Reading from NEAR testnet…
Reading from NEAR testnet…
6NMveLJHDMmMmsh2d18gDuCUCgVa4nDNdcGHKDbGRVfY
sleetcreate.testnet to sleetcreate.testnet · failed
fs_store()
yIsEnumerable$2,toObject$8=toObject$1$2,IndexedObject$4=indexedObject$2,nativeAssign$2=Object.assign,defineProperty2$2=Object.defineProperty,objectAssign$2=!nativeAssign$2||fails$1$2(function(){if(DESCRIPTORS$b&&nativeAssign$2({b:1},nativeAssign$2(defineProperty2$2({},"a",{enumerable:!0,get:function(){defineProperty2$2(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},n={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach(function(c){n[c]=c}),nativeAssign$2({},e)[o]!=7||objectKeys$4(nativeAssign$2({},n)).join("")!=a})?function e(n,o){for(var a=toObject$8(n),c=arguments.length,l=1,u=getOwnPropertySymbolsModule$3.f,d=propertyIsEnumerableModule$3.f;c>l;)for(var h=IndexedObject$4(arguments[l++]),y=u?objectKeys$4(h).concat(u(h)):objectKeys$4(h),p=y.length,v=0,b;p>v;)b=y[v++],(!DESCRIPTORS$b||d.call(h,b))&&(a[b]=h[b]);return a}:nativeAssign$2,$$5=_export$2,assign2$2=objectAssign$2;$$5({target:"Object",stat:!0,forced:Object.assign!==assign2$2},{assign:assign2$2});function __awaiter$9(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;var anObject$1$2=anObject$4$2,regexpFlags$2=function(){var e=anObject$1$2(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n},redefine$7=redefine$2$2.exports,anObject$b=anObject$4$2,fails$f=fails$6$2,flags$2=regexpFlags$2,TO_STRING$2="toString",RegExpPrototype$2=RegExp.prototype,nativeToString$2=RegExpPrototype$2[TO_STRING$2],NOT_GENERIC$2=fails$f(function(){return nativeToString$2.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$2=nativeToString$2.name!=TO_STRING$2;(NOT_GENERIC$2||INCORRECT_NAME$2)&&redefine$7(RegExp.prototype,TO_STRING$2,function(){var n=anObject$b(this),o=String(n.source),a=n.flags,c=String(a===void 0&&n instanceof RegExp&&!("flags"in RegExpPrototype$2)?flags$2.call(n):a);return"/"+o+"/"+c},{unsafe:!0});const initHereWallet=e=>__awaiter$9(void 0,void 0,void 0,function*(){const{store:n,logger:o,emitter:a,options:c,walletOptions:l}=e,u=yield build.HereWallet.connect(l);function d(){return __awaiter$9(this,void 0,void 0,function*(){o.log("HereWallet:getAccounts");const h=yield u.getAccounts(),y=[];for(let p=0;p<h.length;p++){const v=yield u.signer.getPublicKey(h[p],c.network.networkId);y.push({accountId:h[p],publicKey:v.toString()})}return y})}return{get networkId(){return u.networkId},buildImportAccountsUrl(){return`https://my.herewallet.app/import?network=${c.network.networkId}`},account(h){return __awaiter$9(this,void 0,void 0,function*(){return o.log("HereWallet:account"),yield u.account(h)})},switchAccount(h){return __awaiter$9(this,void 0,void 0,function*(){o.log("HereWallet:switchAccount"),yield u.switchAccount(h)})},getAccountId(){return __awaiter$9(this,void 0,void 0,function*(){return o.log("HereWallet:getAccountId"),yield u.getAccountId()})},isSignedIn(){return __awaiter$9(this,void 0,void 0,function*(){return o.log("HereWallet:isSignedIn"),yield u.isSignedIn()})},signIn(h){var y;return __awaiter$9(this,void 0,void 0,function*(){if(o.log("HereWallet:signIn"),!(yield build.waitInjectedHereWallet)){const v=h.contractId!==""?h.contractId:void 0;yield u.signIn(Object.assign(Object.assign({},h),{contractId:v}))}return a.emit("signedIn",{contractId:h.contractId,methodNames:(y=h.methodNames)!==null&&y!==void 0?y:[],accounts:yield d()}),yield d()})},signOut(){return __awaiter$9(this,void 0,void 0,function*(){o.log("HereWallet:signOut"),yield u.signOut()})},getAccounts(){return __awaiter$9(this,void 0,void 0,function*(){return d()})},signAndSendTransaction(h){return __awaiter$9(this,void 0,void 0,function*(){o.log("HereWallet:signAndSendTransaction",h);const{contract:y}=n.getState();return yield u.signAndSendTransaction(Object.assign({receiverId:y==null?void 0:y.contractId},h))})},verifyOwner(){return __awaiter$9(this,void 0,void 0,function*(){throw Error("HereWallet:verifyOwner is deprecated, use signMessage method with implementation NEP0413 Standard")})},signMessage(h){return __awaiter$9(this,void 0,void 0,function*(){return o.log("HereWallet:signMessage",h),yield u.signMessage(h)})},signAndSendTransactions(h){return __awaiter$9(this,void 0,void 0,function*(){return o.log("HereWallet:signAndSendTransactions",h),yield u.signAndSendTransactions(h)})}}});var icon$2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xOS43MzM1IDExLjY4MzFMMjEuNzA4OSA4TDI0LjI5ODMgMTYuNjc2NkwyMC40MTYgMTQuOTIxNUwxOS43MzM1IDExLjY4MzFaTTUuNzYzODggMTUuNTQwOUwzLjc1NTYyIDE5LjE2MjFMOS44OTYwNSAyMi4xNjYxTDE4LjM0NzMgMjEuNTgyOEw1Ljc2Mzg4IDE1LjU0MDlaTTQuNjQ0NjQgMjIuMzY5NEwyLjY0ODY1IDI1Ljk3MTNMMTQuOTA4MyAzMi4wNTc1TDM1LjMzODggMzAuODE3NEwzNy4zMzQ4IDI3LjIxNTRMMTYuOTA0MyAyOC40NTU3TDQuNjQ0NjQgMjIuMzY5NFoiIGZpbGw9IiMyQzMwMzQiLz4KPHBhdGggZD0iTTM3LjMzNTkgMjcuMjE1N0wxNi45MTEyIDI4LjQ1NjFMNC41NDYzMyAyMi4zNTU0TDE3LjkzNTggMjEuNTQ1M0w1Ljc2Mzg3IDE1LjU0MDlMMTEuNzQxIDEwLjQ3ODZMMjQuMTQwMSAxNi41NzYzTDIxLjcwOSA4TDMzLjU1NyAxMy44MUwzNy4zMzU5IDI3LjIxNTdaIiBmaWxsPSIjRkRCRjFDIi8+Cjwvc3ZnPgo=";function setupHereWallet({deprecated:e=!1,iconUrl:n=icon$2,walletOptions:o}={}){return()=>__awaiter$9(this,void 0,void 0,function*(){return{id:"here-wallet",type:"injected",metadata:{name:"Here Wallet",description:"Mobile wallet for NEAR Protocol",useUrlAccountImport:!0,downloadUrl:"https://herewallet.app",topLevelInjected:(yield build.waitInjectedHereWallet)!=null,iconUrl:n,deprecated:e,available:!0},init:c=>initHereWallet(Object.assign(Object.assign({},c),{walletOptions:o}))}})}var NearMobileWallet$1={},WidgetStrategy$1={},config$1={};const proxyUrl$4="https://near-mobile-signer-backend.peersyst.tech",widgetUrl$4="https://near-mobile-signer-backend.peersyst.tech",require$$0={proxyUrl:proxyUrl$4,widgetUrl:widgetUrl$4},proxyUrl$3="",widgetUrl$3="",polling$2={maxIterations:1e3,requestTimeout:6e5,backgroundVisibilityCheckInterval:1e3,backgroundVisibilityCheckTimeout:6e5},nearMobileWalletUrl$1="",require$$1={proxyUrl:proxyUrl$3,widgetUrl:widgetUrl$3,polling:polling$2,nearMobileWalletUrl:nearMobileWalletUrl$1},proxyUrl$2="",widgetUrl$2="",polling$1={maxIterations:1e3,requestTimeout:6e5,backgroundVisibilityCheckInterval:1e3,backgroundVisibilityCheckTimeout:6e5},nearMobileWalletUrl="near-mobile-wallet://sign",require$$2={proxyUrl:proxyUrl$2,widgetUrl:widgetUrl$2,polling:polling$1,nearMobileWalletUrl},proxyUrl$1="https://near-mobile-signer-backend_production.peersyst.tech",widgetUrl$1="https://near-mobile-signer-backend_production.peersyst.tech",require$$3={proxyUrl:proxyUrl$1,widgetUrl:widgetUrl$1},proxyUrl="https://near-mobile-signer-backend.peersyst.tech",widgetUrl="https://near-mobile-signer-backend.peersyst.tech",require$$4={proxyUrl,widgetUrl};var define_process_env_default={},__importDefault$4=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(config$1,"__esModule",{value:!0});const config_dev_json_1=__importDefault$4(require$$0),config_test_json_1=__importDefault$4(require$$1),config_base_json_1=__importDefault$4(require$$2),config_prod_json_1=__importDefault$4(require$$3),config_staging_json_1=__importDefault$4(require$$4),envConfigs={development:Object.assign(Object.assign({},config_base_json_1.default),config_dev_json_1.default),test:Object.assign(Object.assign({},config_base_json_1.default),config_test_json_1.default),staging:Object.assign(Object.assign({},config_base_json_1.default),config_staging_json_1.default),production:Object.assign(Object.assign({},config_base_json_1.default),config_prod_json_1.default)},envKey=define_process_env_default.CONFIG_ENV||"production";if(!(envKey in envConfigs))throw new Error(`${envKey} is not a valid env config`);const config=envConfigs[envKey];config$1.default=config;var __importDefault$3=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(WidgetStrategy$1,"__esModule",{value:!0});WidgetStrategy$1.WidgetStrategy=void 0;const config_1$2=__importDefault$3(config$1),createIframe=e=>{const n=document.createElement("iframe");return n.src=e,n.style.border="none",n.style.zIndex="10000",n.style.position="fixed",n.style.display="none",n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%",document.body.appendChild(n),n};class WidgetStrategy{constructor(){this.widgetUrl=config_1$2.default.widgetUrl,WidgetStrategy.connector==null&&(WidgetStrategy.connector=createIframe(this.widgetUrl),WidgetStrategy.connector.addEventListener("load",()=>{WidgetStrategy.isLoaded=!0}))}close(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=void 0),WidgetStrategy.connector!=null&&(WidgetStrategy.connector.style.display="none")}onRequested(n,o,a){if(WidgetStrategy.connector==null)return;WidgetStrategy.connector.style.display="block";const c=()=>{var l,u;WidgetStrategy.connector.removeEventListener("load",c);const d="message"in o?"message":"request",h=`${config_1$2.default.nearMobileWalletUrl}/${d}/${n}`;(u=(l=WidgetStrategy.connector)===null||l===void 0?void 0:l.contentWindow)===null||u===void 0||u.postMessage({requestUrl:h,isNearMobile:!!window.isNearMobile},new URL(this.widgetUrl).origin)};WidgetStrategy.isLoaded?c():WidgetStrategy.connector.addEventListener("load",c),this.messageHandler=l=>{l.origin===new URL(this.widgetUrl).origin&&l.data==="close"&&(a==null||a(),this.close())},window.addEventListener("message",this.messageHandler)}onApproved(){this.close()}onSuccess(){this.close()}onError(){this.close()}}WidgetStrategy$1.WidgetStrategy=WidgetStrategy;WidgetStrategy.isLoaded=!1;var NearMobileSignerProxy$1={},SignerRequestStatus$1={};Object.defineProperty(SignerRequestStatus$1,"__esModule",{value:!0});SignerRequestStatus$1.SignerRequestStatus=void 0;var SignerRequestStatus;(function(e){e.PENDING="pending",e.APPROVED="approved",e.REJECTED="rejected"})(SignerRequestStatus||(SignerRequestStatus$1.SignerRequestStatus=SignerRequestStatus={}));var service={},ApiError$1={};Object.defineProperty(ApiError$1,"__esModule",{value:!0});ApiError$1.ApiError=void 0;class ApiError extends Error{constructor(n,o,a){super(a),this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=n}}ApiError$1.ApiError=ApiError;var CancelablePromise$1={};Object.defineProperty(CancelablePromise$1,"__esModule",{value:!0});CancelablePromise$1.CancelablePromise=CancelablePromise$1.CancelError=void 0;class CancelError extends Error{constructor(n){super(n),this.name="CancelError"}get isCancelled(){return!0}}CancelablePromise$1.CancelError=CancelError;class CancelablePromise{constructor(n){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this._cancelHandlers=[],this._promise=new Promise((o,a)=>{this._resolve=o,this._reject=a;const c=d=>{var h;this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,(h=this._resolve)===null||h===void 0||h.call(this,d))},l=d=>{var h;this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,(h=this._reject)===null||h===void 0||h.call(this,d))},u=d=>{this._isResolved||this._isRejected||this._isCancelled||this._cancelHandlers.push(d)};return Object.defineProperty(u,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(u,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(u,"isCancelled",{get:()=>this._isCancelled}),n(c,l,u)})}then(n,o){return this._promise.then(n,o)}catch(n){return this._promise.catch(n)}finally(n){return this._promise.finally(n)}cancel(){var n;if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this._cancelHandlers.length)try{for(const o of this._cancelHandlers)o()}catch(o){console.warn("Cancellation threw an error",o);return}this._cancelHandlers.length=0,(n=this._reject)===null||n===void 0||n.call(this,new CancelError("Request aborted"))}}get isCancelled(){return this._isCancelled}}CancelablePromise$1.CancelablePromise=CancelablePromise;var OpenAPI={},__importDefault$2=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OpenAPI,"__esModule",{value:!0});OpenAPI.OpenAPI=void 0;const config_1$1=__importDefault$2(config$1);OpenAPI.OpenAPI={BASE:config_1$1.default.proxyUrl,VERSION:"0.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var $CreateSignerRequest={};Object.defineProperty($CreateSignerRequest,"__esModule",{value:!0});$CreateSignerRequest.$CreateSignerRequest=void 0;$CreateSignerRequest.$CreateSignerRequest={properties:{network:{type:"Enum",isRequired:!0},transactions:{type:"array",contains:{type:"one-of",contains:[{type:"SignerTransactionDto"}]},isRequired:!0},dAppMetadata:{type:"DAppMetadatRequest"}}};var $CreateSignMessageRequest={};Object.defineProperty($CreateSignMessageRequest,"__esModule",{value:!0});$CreateSignMessageRequest.$CreateSignMessageRequest=void 0;$CreateSignMessageRequest.$CreateSignMessageRequest={properties:{network:{type:"Enum",isRequired:!0},message:{type:"string",isRequired:!0},receiver:{type:"string",isRequired:!0},nonce:{type:"array",contains:{type:"number"},isRequired:!0},callbackUrl:{type:"string"},receiverMetadata:{type:"DAppMetadatRequest"}}};var $DAppMetadataDto={};Object.defineProperty($DAppMetadataDto,"__esModule",{value:!0});$DAppMetadataDto.$DAppMetadataDto=void 0;$DAppMetadataDto.$DAppMetadataDto={properties:{name:{type:"string",isRequired:!0},logoUrl:{type:"string",isRequired:!0},url:{type:"string"}}};var $DAppMetadatRequest={};Object.defineProperty($DAppMetadatRequest,"__esModule",{value:!0});$DAppMetadatRequest.$DAppMetadatRequest=void 0;$DAppMetadatRequest.$DAppMetadatRequest={properties:{}};var $SignerRequestDto={};Object.defineProperty($SignerRequestDto,"__esModule",{value:!0});$SignerRequestDto.$SignerRequestDto=void 0;$SignerRequestDto.$SignerRequestDto={properties:{id:{type:"string",isRequired:!0},status:{type:"Enum",isRequired:!0},network:{type:"Enum",isRequired:!0},signerAccountId:{type:"string",isRequired:!0},requests:{type:"array",contains:{properties:{}},isRequired:!0},dAppMetadata:{type:"DAppMetadataDto"},txHash:{type:"array",contains:{type:"string"}},createdAt:{type:"string",isRequired:!0,format:"date-time"},updatedAt:{type:"string",isRequired:!0,format:"date-time"}}};var $SignerRequestStatusDto={};Object.defineProperty($SignerRequestStatusDto,"__esModule",{value:!0});$SignerRequestStatusDto.$SignerRequestStatusDto=void 0;$SignerRequestStatusDto.$SignerRequestStatusDto={properties:{id:{type:"string",isRequired:!0},status:{type:"Enum",isRequired:!0}}};var $SignerTransactionDto={};Object.defineProperty($SignerTransactionDto,"__esModule",{value:!0});$SignerTransactionDto.$SignerTransactionDto=void 0;$SignerTransactionDto.$SignerTransactionDto={properties:{signerId:{type:"string"},receiverId:{type:"string"},actions:{type:"array",contains:{properties:{}},isRequired:!0}}};var $SignMessageRequestDto={};Object.defineProperty($SignMessageRequestDto,"__esModule",{value:!0});$SignMessageRequestDto.$SignMessageRequestDto=void 0;$SignMessageRequestDto.$SignMessageRequestDto={properties:{id:{type:"string",isRequired:!0},message:{type:"string",isRequired:!0},receiver:{type:"string",isRequired:!0},nonce:{type:"array",contains:{type:"number"},isRequired:!0},callbackUrl:{type:"string"},network:{type:"Enum",isRequired:!0},response:{properties:{},isRequired:!0},receiverMetadata:{type:"DAppMetadataDto"},status:{type:"Enum",isRequired:!0}}};var $SignMessageRequestPayload={};Object.defineProperty($SignMessageRequestPayload,"__esModule",{value:!0});$SignMessageRequestPayload.$SignMessageRequestPayload=void 0;$SignMessageRequestPayload.$SignMessageRequestPayload={properties:{accountId:{type:"string",isRequired:!0},signature:{type:"string",isRequired:!0},publicKey:{type:"string",isRequired:!0}}};var $SignRequest={};Object.defineProperty($SignRequest,"__esModule",{value:!0});$SignRequest.$SignRequest=void 0;$SignRequest.$SignRequest={properties:{signerAccountId:{type:"string",isRequired:!0},txHash:{type:"array",contains:{type:"string"},isRequired:!0}}};var SignerRequestApi$1={},request={};(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(H,W,X,Y){function Z(te){return te instanceof X?te:new X(function(V){V(te)})}return new(X||(X=Promise))(function(te,V){function P(E){try{m(Y.next(E))}catch(w){V(w)}}function A(E){try{m(Y.throw(E))}catch(w){V(w)}}function m(E){E.done?te(E.value):Z(E.value).then(P,A)}m((Y=Y.apply(H,W||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.request=e.sendRequest=void 0;const o=ApiError$1,a=CancelablePromise$1,c=H=>H!=null,l=H=>typeof H=="string",u=H=>l(H)&&H!=="",d=H=>typeof H=="object"&&typeof H.type=="string"&&typeof H.stream=="function"&&typeof H.arrayBuffer=="function"&&typeof H.constructor=="function"&&typeof H.constructor.name=="string"&&/^(Blob|File)$/.test(H.constructor.name)&&/^(Blob|File)$/.test(H[Symbol.toStringTag]),h=H=>H instanceof FormData,y=H=>{try{return btoa(H)}catch{return Buffer.from(H).toString("base64")}},p=H=>{const W=[],X=(Z,te)=>{W.push(`${encodeURIComponent(Z)}=${encodeURIComponent(String(te))}`)},Y=(Z,te)=>{c(te)&&(Array.isArray(te)?te.forEach(V=>{Y(Z,V)}):typeof te=="object"?Object.entries(te).forEach(([V,P])=>{Y(`${Z}[${V}]`,P)}):X(Z,te))};return Object.entries(H).forEach(([Z,te])=>{Y(Z,te)}),W.length>0?`?${W.join("&")}`:""},v=(H,W)=>{const X=H.ENCODE_PATH||encodeURI,Y=W.url.replace("{api-version}",H.VERSION).replace(/{(.*?)}/g,(te,V)=>{var P;return!((P=W.path)===null||P===void 0)&&P.hasOwnProperty(V)?X(String(W.path[V])):te}),Z=`${H.BASE}${Y}`;return W.query?`${Z}${p(W.query)}`:Z},b=H=>{if(H.formData){const W=new FormData,X=(Y,Z)=>{l(Z)||d(Z)?W.append(Y,Z):W.append(Y,JSON.stringify(Z))};return Object.entries(H.formData).filter(([Y,Z])=>c(Z)).forEach(([Y,Z])=>{Array.isArray(Z)?Z.forEach(te=>X(Y,te)):X(Y,Z)}),W}},_=(H,W)=>n(void 0,void 0,void 0,function*(){return typeof W=="function"?W(H):W}),T=(H,W)=>n(void 0,void 0,void 0,function*(){const X=yield _(W,H.TOKEN),Y=yield _(W,H.USERNAME),Z=yield _(W,H.PASSWORD),te=yield _(W,H.HEADERS),V=Object.entries(Object.assign(Object.assign({Accept:"application/json"},te),W.headers)).filter(([P,A])=>c(A)).reduce((P,[A,m])=>Object.assign(Object.assign({},P),{[A]:String(m)}),{});if(u(X)&&(V.Authorization=`Bearer ${X}`),u(Y)&&u(Z)){const P=y(`${Y}:${Z}`);V.Authorization=`Basic ${P}`}return W.body&&(W.mediaType?V["Content-Type"]=W.mediaType:d(W.body)?V["Content-Type"]=W.body.type||"application/octet-stream":l(W.body)?V["Content-Type"]="text/plain":h(W.body)||(V["Content-Type"]="application/json")),new Headers(V)}),I=H=>{var W;if(H.body)return!((W=H.mediaType)===null||W===void 0)&&W.includes("/json")?JSON.stringify(H.body):l(H.body)||d(H.body)||h(H.body)?H.body:JSON.stringify(H.body)},U=(H,W,X,Y,Z,te,V)=>n(void 0,void 0,void 0,function*(){const P=new AbortController,A={headers:te,body:Y??Z,method:W.method,signal:P.signal};return H.WITH_CREDENTIALS&&(A.credentials=H.CREDENTIALS),V(()=>P.abort()),yield fetch(X,A)});e.sendRequest=U;const N=(H,W)=>{if(W){const X=H.headers.get(W);if(l(X))return X}},D=H=>n(void 0,void 0,void 0,function*(){if(H.status!==204)try{const W=H.headers.get("Content-Type");if(W)return W.toLowerCase().startsWith("application/json")?yield H.json():yield H.text()}catch(W){console.error(W)}}),L=(H,W)=>{const Y=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},H.errors)[W.status];if(Y)throw new o.ApiError(H,W,Y);if(!W.ok)throw new o.ApiError(H,W,"Generic Error")},B=(H,W)=>new a.CancelablePromise((X,Y,Z)=>n(void 0,void 0,void 0,function*(){try{const te=v(H,W),V=b(W),P=I(W),A=yield T(H,W);if(!Z.isCancelled){const m=yield(0,e.sendRequest)(H,W,te,P,V,A,Z),E=yield D(m),w=N(m,W.responseHeader),C={url:te,ok:m.ok,status:m.status,statusText:m.statusText,body:w??E};L(W,C),X(C.body)}}catch(te){Y(te)}}));e.request=B})(request);Object.defineProperty(SignerRequestApi$1,"__esModule",{value:!0});SignerRequestApi$1.SignerRequestApi=void 0;const OpenAPI_1=OpenAPI,request_1=request;class SignerRequestApi{static createSignerRequest(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"POST",url:"/api/signer-request",body:n,mediaType:"application/json"})}static getSignerRequestStatus(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"GET",url:"/api/signer-request/{id}/status",path:{id:n}})}static approveSignerRequest(n,o){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"POST",url:"/api/signer-request/{id}/approve",path:{id:n},body:o,mediaType:"application/json"})}static rejectSignerRequest(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"POST",url:"/api/signer-request/{id}/reject",path:{id:n}})}static getSignerRequest(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"GET",url:"/api/signer-request/{id}",path:{id:n}})}static createSignMessageRequest(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"POST",url:"/api/signer-request/message",body:n,mediaType:"application/json"})}static getSignMessageRequest(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"GET",url:"/api/signer-request/message/{id}",path:{id:n}})}static signMessageRequest(n,o){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"POST",url:"/api/signer-request/message/{id}/sign",path:{id:n},body:o,mediaType:"application/json"})}static rejectMessageRequest(n){return(0,request_1.request)(OpenAPI_1.OpenAPI,{method:"POST",url:"/api/signer-request/message/{id}/reject",path:{id:n}})}}SignerRequestApi$1.SignerRequestApi=SignerRequestApi;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SignerRequestApi=e.$SignRequest=e.$SignMessageRequestPayload=e.$SignMessageRequestDto=e.$SignerTransactionDto=e.$SignerRequestStatusDto=e.$SignerRequestDto=e.$DAppMetadatRequest=e.$DAppMetadataDto=e.$CreateSignMessageRequest=e.$CreateSignerRequest=e.OpenAPI=e.CancelError=e.CancelablePromise=e.ApiError=void 0;var n=ApiError$1;Object.defineProperty(e,"ApiError",{enumerable:!0,get:function(){return n.ApiError}});var o=CancelablePromise$1;Object.defineProperty(e,"CancelablePromise",{enumerable:!0,get:function(){return o.CancelablePromise}}),Object.defineProperty(e,"CancelError",{enumerable:!0,get:function(){return o.CancelError}});var a=OpenAPI;Object.defineProperty(e,"OpenAPI",{enumerable:!0,get:function(){return a.OpenAPI}});var c=$CreateSignerRequest;Object.defineProperty(e,"$CreateSignerRequest",{enumerable:!0,get:function(){return c.$CreateSignerRequest}});var l=$CreateSignMessageRequest;Object.defineProperty(e,"$CreateSignMessageRequest",{enumerable:!0,get:function(){return l.$CreateSignMessageRequest}});var u=$DAppMetadataDto;Object.defineProperty(e,"$DAppMetadataDto",{enumerable:!0,get:function(){return u.$DAppMetadataDto}});var d=$DAppMetadatRequest;Object.defineProperty(e,"$DAppMetadatRequest",{enumerable:!0,get:function(){return d.$DAppMetadatRequest}});var h=$SignerRequestDto;Object.defineProperty(e,"$SignerRequestDto",{enumerable:!0,get:function(){return h.$SignerRequestDto}});var y=$SignerRequestStatusDto;Object.defineProperty(e,"$SignerRequestStatusDto",{enumerable:!0,get:function(){return y.$SignerRequestStatusDto}});var p=$SignerTransactionDto;Object.defineProperty(e,"$SignerTransactionDto",{enumerable:!0,get:function(){return p.$SignerTransactionDto}});var v=$SignMessageRequestDto;Object.defineProperty(e,"$SignMessageRequestDto",{enumerable:!0,get:function(){return v.$SignMessageRequestDto}});var b=$SignMessageRequestPayload;Object.defineProperty(e,"$SignMessageRequestPayload",{enumerable:!0,get:function(){return b.$SignMessageRequestPayload}});var _=$SignRequest;Object.defineProperty(e,"$SignRequest",{enumerable:!0,get:function(){return _.$SignRequest}});var T=SignerRequestApi$1;Object.defineProperty(e,"SignerRequestApi",{enumerable:!0,get:function(){return T.SignerRequestApi}})})(service);var visibilityAwareTimeoutPolling$1={},polling={},timeoutPromise$1={},__awaiter$8=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(timeoutPromise$1,"__esModule",{value:!0});timeoutPromise$1.TimeoutPromiseError=void 0;class TimeoutPromiseError extends Error{constructor(){super("Promise timeout")}}timeoutPromise$1.TimeoutPromiseError=TimeoutPromiseError;function timeoutPromise(e,n){return __awaiter$8(this,void 0,void 0,function*(){let o;const a=new Promise((l,u)=>{o=setTimeout(()=>{u(new TimeoutPromiseError)},n)}),c=yield Promise.race([e,a]);return clearTimeout(o),c})}timeoutPromise$1.default=timeoutPromise;var __createBinding=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(e,n,o,a){a===void 0&&(a=o);var c=Object.getOwnPropertyDescriptor(n,o);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(e,a,c)}:function(e,n,o,a){a===void 0&&(a=o),e[a]=n[o]}),__setModuleDefault=commonjsGlobal$c&&commonjsGlobal$c.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),__importStar=commonjsGlobal$c&&commonjsGlobal$c.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var o in e)o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)&&__createBinding(n,e,o);return __setModuleDefault(n,e),n},__awaiter$7=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(polling,"__esModule",{value:!0});const timeoutPromise_1=__importStar(timeoutPromise$1);function default_1(e,n,o={}){let a,c=!1;const u=__awaiter$7(this,void 0,void 0,function*(){const{delay:d=1e3,maxIterations:h,timeout:y}=o;let p=0,v=!1,b;function _(){return __awaiter$7(this,void 0,void 0,function*(){v=!1;try{return yield y!==void 0?(0,timeoutPromise_1.default)(e(),y):e()}catch(T){if(T instanceof timeoutPromise_1.TimeoutPromiseError)v=!0;else throw T}})}for(b=yield _();!c&&(v||n(b));){if(p===h)throw new Error("Polling executed the maximum number iterations");yield new Promise(T=>{a=setTimeout(()=>__awaiter$7(this,void 0,void 0,function*(){p++,b=yield _(),T()}),d)})}return b});return u.abort=()=>{c=!0,clearTimeout(a)},u}polling.default=default_1;var waitUntil$1={},__awaiter$6=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(waitUntil$1,"__esModule",{value:!0});waitUntil$1.waitUntil=void 0;function waitUntil({timeout:e,condition:n,interval:o=100}){return __awaiter$6(this,void 0,void 0,function*(){const a=Date.now();return new Promise((c,l)=>{function u(){if(n())return c();if(Date.now()-a>=e)return l(new Error("Timeout reached"));setTimeout(u,o)}u()})})}waitUntil$1.waitUntil=waitUntil;var __awaiter$5=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})},__rest$1=commonjsGlobal$c&&commonjsGlobal$c.__rest||function(e,n){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(e);c<a.length;c++)n.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(o[a[c]]=e[a[c]]);return o},__importDefault$1=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(visibilityAwareTimeoutPolling$1,"__esModule",{value:!0});visibilityAwareTimeoutPolling$1.visibilityAwareTimeoutPolling=void 0;const polling_1=__importDefault$1(polling),waitUntil_1=waitUntil$1,ONE_SECOND=1e3,ONE_MINUTE=60*ONE_SECOND;function visibilityAwareTimeoutPolling(e,n,o){var{timeout:a=10*ONE_MINUTE,visibilityCheckInterval:c=ONE_SECOND,visibilityCheckTimeout:l=10*ONE_MINUTE}=o,u=__rest$1(o,["timeout","visibilityCheckInterval","visibilityCheckTimeout"]);return __awaiter$5(this,void 0,void 0,function*(){let d,h;const y=new Promise((b,_)=>{d=b,h=_});let p=!1;function v(){p=document.hidden}return document.addEventListener("visibilitychange",v),(0,polling_1.default)(()=>__awaiter$5(this,void 0,void 0,function*(){return p&&(yield(0,waitUntil_1.waitUntil)({condition:()=>!p,interval:c,timeout:l})),yield e()}),n,Object.assign({timeout:a},u)).then(b=>{d(b)}).catch(h).finally(()=>{document.removeEventListener("visibilitychange",v)}),y})}visibilityAwareTimeoutPolling$1.visibilityAwareTimeoutPolling=visibilityAwareTimeoutPolling;var __awaiter$4=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})},__importDefault=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NearMobileSignerProxy$1,"__esModule",{value:!0});NearMobileSignerProxy$1.NearMobileSignerProxy=void 0;const config_1=__importDefault(config$1),SignerRequestStatus_1$1=SignerRequestStatus$1,service_1=service,visibilityAwareTimeoutPolling_1=visibilityAwareTimeoutPolling$1;class NearMobileSignerProxy{createRequest(n,o,a){return __awaiter$4(this,void 0,void 0,function*(){return yield service_1.SignerRequestApi.createSignerRequest({network:n,transactions:o,dAppMetadata:a})})}getPollingConfig(){return{maxIterations:config_1.default.polling.maxIterations,visibilityCheckTimeout:config_1.default.polling.backgroundVisibilityCheckTimeout,visibilityCheckInterval:config_1.default.polling.backgroundVisibilityCheckInterval,timeout:config_1.default.polling.requestTimeout}}awaitActionSignatureResolution(n){return __awaiter$4(this,void 0,void 0,function*(){return yield(0,visibilityAwareTimeoutPolling_1.visibilityAwareTimeoutPolling)(()=>service_1.SignerRequestApi.getSignerRequestStatus(n),({status:o})=>o===SignerRequestStatus_1$1.SignerRequestStatus.PENDING,this.getPollingConfig())})}getRequest(n){return __awaiter$4(this,void 0,void 0,function*(){return yield service_1.SignerRequestApi.getSignerRequest(n)})}createSignMessage(n,o,a,c,l,u){return __awaiter$4(this,void 0,void 0,function*(){return yield service_1.SignerRequestApi.createSignMessageRequest({network:n,message:o,receiver:a,nonce:c,callbackUrl:l,receiverMetadata:u})})}awaitMessageSignatureResolution(n){return __awaiter$4(this,void 0,void 0,function*(){return yield(0,visibilityAwareTimeoutPolling_1.visibilityAwareTimeoutPolling)(()=>service_1.SignerRequestApi.getSignMessageRequest(n),({response:o,status:a})=>!o&&a===SignerRequestStatus_1$1.SignerRequestStatus.PENDING,this.getPollingConfig())})}rejectSignerRequest(n){return __awaiter$4(this,void 0,void 0,function*(){yield service_1.SignerRequestApi.rejectSignerRequest(n)})}rejectMessageRequest(n){return __awaiter$4(this,void 0,void 0,function*(){yield service_1.SignerRequestApi.rejectMessageRequest(n)})}}NearMobileSignerProxy$1.NearMobileSignerProxy=NearMobileSignerProxy;var isValidAccessKey$1={};Object.defineProperty(isValidAccessKey$1,"__esModule",{value:!0});isValidAccessKey$1.isValidAccessKey=void 0;const isValidAccessKey=(e,n,o,a)=>{if(n.public_key===o)return!0;const{permission:c}=n.access_key;if(c==="FullAccess")return!0;if(a&&c.FunctionCall){const{receiver_id:l,method_names:u}=c.FunctionCall;if(l===e&&u.includes("add_request_and_confirm"))return!0;if(l===a.receiverId)return a.actions.length!==1?!1:a.actions.every(d=>d.type!=="FunctionCall"?!1:(!d.params.deposit||d.params.deposit.toString()==="0")&&(u.length===0||u.includes(d.params.methodName)))}return!1};isValidAccessKey$1.isValidAccessKey=isValidAccessKey;var createAction={};(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.createAction=e.parseArgs=void 0;const o=browserIndex$7,a=n(bnExports),c=d=>{if(d==="FullAccess")return o.transactions.fullAccessKey();const{receiverId:h,methodNames:y=[]}=d,p=d.allowance?new a.default(d.allowance):void 0;return o.transactions.functionCallAccessKey(h,y,p)},l=d=>typeof d=="string"?Buffer.from(d,"base64"):d;e.parseArgs=l;const u=d=>{switch(d.type){case"CreateAccount":return o.transactions.createAccount();case"DeployContract":{const{code:h}=d.params;return o.transactions.deployContract(h)}case"FunctionCall":{const{methodName:h,args:y,gas:p,deposit:v}=d.params;return o.transactions.functionCall(h,(0,e.parseArgs)(y),new a.default(p),new a.default(v))}case"Transfer":{const{deposit:h}=d.params;return o.transactions.transfer(new a.default(h))}case"Stake":{const{stake:h,publicKey:y}=d.params;return o.transactions.stake(new a.default(h),o.utils.PublicKey.from(y))}case"AddKey":{const{publicKey:h,accessKey:y}=d.params;return o.transactions.addKey(o.utils.PublicKey.from(h),c(y.permission))}case"DeleteKey":{const{publicKey:h}=d.params;return o.transactions.deleteKey(o.utils.PublicKey.from(h))}case"DeleteAccount":{const{beneficiaryId:h}=d.params;return o.transactions.deleteAccount(h)}default:throw new Error("Invalid action type")}};e.createAction=u})(createAction);var errors$1={};Object.defineProperty(errors$1,"__esModule",{value:!0});errors$1.WalletErrors=void 0;var WalletErrors;(function(e){e.NO_ACTIVE_ACCOUNT="NO_ACTIVE_ACCOUNT",e.NO_ACCOUNT_LOCAL_KEY="NO_ACCOUNT_LOCAL_KEY",e.INVALID_ACCESS_KEY="INVALID_ACCESS_KEY",e.NO_SIGNER_ACCOUNT_ID="NO_SIGNER_ACCOUNT_ID",e.REQUEST_NOT_SIGNED="REQUEST_NOT_SIGNED",e.NO_SIGNATURE="NO_SIGNATURE",e.INVALID_SIGNATURE="INVALID_SIGNATURE",e.OPERATION_FAILED="OPERATION_FAILED"})(WalletErrors||(errors$1.WalletErrors=WalletErrors={}));var dataAccess={},repository={},SessionRepository$2={},SessionRepository$1={},WindowLocalStorageRepository$1={},Repository$1={};Object.defineProperty(Repository$1,"__esModule",{value:!0});Repository$1.Repository=void 0;class Repository{constructor(n){this.projectName="near-mobile-signer",this.key=`${this.projectName}:${n}`}}Repository$1.Repository=Repository;Object.defineProperty(WindowLocalStorageRepository$1,"__esModule",{value:!0});WindowLocalStorageRepository$1.WindowLocalStorageRepository=void 0;const Repository_1=Repository$1;class WindowLocalStorageRepository extends Repository_1.Repository{set(n){return Promise.resolve(window.localStorage.setItem(this.key,JSON.stringify(n)))}get(){const n=window.localStorage.getItem(this.key);return Promise.resolve(n?JSON.parse(n):void 0)}clear(){return Promise.resolve(window.localStorage.removeItem(this.key))}}WindowLocalStorageRepository$1.WindowLocalStorageRepository=WindowLocalStorageRepository;var errors={};Object.defineProperty(errors,"__esModule",{value:!0});errors.RepositoryErrorCodes=errors.SessionRepositoryErrorCodes=void 0;var SessionRepositoryErrorCodes;(function(e){e.INVALID_ACCOUNT_ID="INVALID_ACCOUNT_ID",e.ACCOUNT_KEY_NOT_FOUND="ACCOUNT_KEY_NOT_FOUND"})(SessionRepositoryErrorCodes||(errors.SessionRepositoryErrorCodes=SessionRepositoryErrorCodes={}));errors.RepositoryErrorCodes=SessionRepositoryErrorCodes;var __awaiter$3=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(SessionRepository$1,"__esModule",{value:!0});SessionRepository$1.SessionRepository=void 0;const WindowLocalStorageRepository_1=WindowLocalStorageRepository$1,index_1$1=errors,near_api_js_1$2=browserIndex$7;class SessionRepository extends WindowLocalStorageRepository_1.WindowLocalStorageRepository{constructor(){super("session"),this.loadSessionState()}loadSessionState(){return __awaiter$3(this,void 0,void 0,function*(){(yield this.get())||(yield this.set({mainnet:{activeAccount:null,accounts:{}},testnet:{activeAccount:null,accounts:{}}}))})}getKey(n,o){var a;return __awaiter$3(this,void 0,void 0,function*(){const l=(a=(yield this.get())[n])===null||a===void 0?void 0:a.accounts[o];if(!l)throw new Error(index_1$1.RepositoryErrorCodes.ACCOUNT_KEY_NOT_FOUND);return near_api_js_1$2.KeyPair.fromString(l)})}setKey(n,o,a){return __awaiter$3(this,void 0,void 0,function*(){const c=yield this.get();c[n].accounts[o]=a.toString(),yield this.set(c)})}removeKey(n,o){return __awaiter$3(this,void 0,void 0,function*(){const a=yield this.get();a[n].activeAccount===o&&(a[n].activeAccount=null),delete a[n].accounts[o],yield this.set(a)})}getActiveAccount(n){return __awaiter$3(this,void 0,void 0,function*(){return(yield this.get())[n].activeAccount})}setActiveAccount(n,o){return __awaiter$3(this,void 0,void 0,function*(){const a=yield this.get();if(!Object.keys(a[n].accounts).includes(o))throw new Error(index_1$1.RepositoryErrorCodes.INVALID_ACCOUNT_ID);a[n].activeAccount=o,yield this.set(a)})}getAccounts(n){return __awaiter$3(this,void 0,void 0,function*(){const a=(yield this.get())[n].accounts;return Object.keys(a)})}getNetworks(){return __awaiter$3(this,void 0,void 0,function*(){const n=yield this.get();return Object.keys(n)})}clear(){return __awaiter$3(this,void 0,void 0,function*(){yield this.clear()})}}SessionRepository$1.SessionRepository=SessionRepository;(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(a,c,l,u){u===void 0&&(u=l);var d=Object.getOwnPropertyDescriptor(c,l);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(a,u,d)}:function(a,c,l,u){u===void 0&&(u=l),a[u]=c[l]}),o=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(a,c){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&n(c,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),o(SessionRepository$1,e)})(SessionRepository$2);var common={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WindowLocalStorageRepository=e.Repository=void 0;var n=Repository$1;Object.defineProperty(e,"Repository",{enumerable:!0,get:function(){return n.Repository}});var o=WindowLocalStorageRepository$1;Object.defineProperty(e,"WindowLocalStorageRepository",{enumerable:!0,get:function(){return o.WindowLocalStorageRepository}})})(common);(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(a,c,l,u){u===void 0&&(u=l);var d=Object.getOwnPropertyDescriptor(c,l);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(a,u,d)}:function(a,c,l,u){u===void 0&&(u=l),a[u]=c[l]}),o=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(a,c){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&n(c,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),o(SessionRepository$2,e),o(common,e)})(repository);(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(a,c,l,u){u===void 0&&(u=l);var d=Object.getOwnPropertyDescriptor(c,l);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(a,u,d)}:function(a,c,l,u){u===void 0&&(u=l),a[u]=c[l]}),o=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(a,c){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&n(c,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),o(repository,e)})(dataAccess);var verifySignature$1={},payload={};Object.defineProperty(payload,"__esModule",{value:!0});payload.payloadSchema=payload.Payload=void 0;class Payload{constructor(n){this.tag=2147484061,this.message=n.message,this.nonce=n.nonce,this.recipient=n.recipient,n.callbackUrl&&(this.callbackUrl=n.callbackUrl)}}payload.Payload=Payload;payload.payloadSchema=new Map([[Payload,{kind:"struct",fields:[["tag","u32"],["message","string"],["nonce",[32]],["recipient","string"],["callbackUrl",{kind:"option",type:"string"}]]}]]);Object.defineProperty(verifySignature$1,"__esModule",{value:!0});verifySignature$1.verifySignature=void 0;const near_api_js_1$1=browserIndex$7,borsh_1=lib,js_sha256_1=sha256Exports$1,payload_1=payload,verifySignature=({publicKey:e,signature:n,message:o,nonce:a,recipient:c,callbackUrl:l})=>{const u=new payload_1.Payload({message:o,nonce:a,recipient:c,callbackUrl:l}),d=(0,borsh_1.serialize)(payload_1.payloadSchema,u),h=Uint8Array.from(js_sha256_1.sha256.array(d)),y=Buffer.from(n,"base64");return near_api_js_1$1.utils.PublicKey.from(e).verify(h,y)};verifySignature$1.verifySignature=verifySignature;var __awaiter$2=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(NearMobileWallet$1,"__esModule",{value:!0});var NearMobileWallet_2=NearMobileWallet$1.NearMobileWallet=void 0;const near_api_js_1=browserIndex$7,providers_1=providers$2,WidgetStrategy_1=WidgetStrategy$1,NearMobileSignerProxy_1=NearMobileSignerProxy$1,SignerRequestStatus_1=SignerRequestStatus$1,isValidAccessKey_1=isValidAccessKey$1,createAction_1=createAction,errors_1=errors$1,data_access_1=dataAccess,verify_signature_1=verifySignature$1,index_1=errors;class NearMobileWallet{handleRequestStatus(n){var o,a,c,l;n===SignerRequestStatus_1.SignerRequestStatus.APPROVED?(a=(o=this.defaultStrategy).onApproved)===null||a===void 0||a.call(o):n===SignerRequestStatus_1.SignerRequestStatus.REJECTED&&((l=(c=this.defaultStrategy).onError)===null||l===void 0||l.call(c))}loadConnection(n,o){const a=new near_api_js_1.InMemorySigner(this.sessionRepository),c=new providers_1.JsonRpcProvider({url:n??`https://rpc.${o}.near.org`});this.connection=near_api_js_1.Connection.fromConfig({jsvmAccountId:`jsvm.${o}`,provider:c,network:o,signer:a})}retryTransaction({requests:n}){var o,a,c,l;return __awaiter$2(this,void 0,void 0,function*(){try{const{id:u,network:d,requests:h}=yield this.defaultProvider.createRequest(this.network,n,this.dAppMetadata),y=()=>__awaiter$2(this,void 0,void 0,function*(){return yield this.defaultProvider.rejectSignerRequest(u)});(a=(o=this.defaultStrategy).onRequested)===null||a===void 0||a.call(o,u,{network:d,request:h},y);const{status:p}=yield this.defaultProvider.awaitActionSignatureResolution(u);this.handleRequestStatus(p);const{signerAccountId:v,txHash:b}=yield this.defaultProvider.getRequest(u);if(!v||!b)throw new Error(errors_1.WalletErrors.REQUEST_NOT_SIGNED);if(b.length===1)return yield this.rpc.txStatus(b[0],v,"EXECUTED_OPTIMISTIC");throw new Error(errors_1.WalletErrors.OPERATION_FAILED)}catch(u){throw(l=(c=this.defaultStrategy).onError)===null||l===void 0||l.call(c),new Error(u)}})}constructor({nodeUrl:n,network:o="testnet",sessionRepository:a=new data_access_1.SessionRepository,metadata:c}={}){this.network=o,this.sessionRepository=a,this.defaultStrategy=new WidgetStrategy_1.WidgetStrategy,this.defaultProvider=new NearMobileSignerProxy_1.NearMobileSignerProxy,this.dAppMetadata=c,this.loadConnection(n,o)}get rpc(){return this.connection.provider}get signer(){return this.connection.signer}get networkId(){return this.connection.networkId}getAccounts(){return __awaiter$2(this,void 0,void 0,function*(){return this.sessionRepository.getAccounts(this.network)})}isSignedIn(n){return __awaiter$2(this,void 0,void 0,function*(){try{const o=yield this.sessionRepository.getActiveAccount(this.network);if(n&&o!==n||o===null)return!1;const a=yield this.sessionRepository.getKey(this.network,o);if(a===null)throw new Error(index_1.RepositoryErrorCodes.ACCOUNT_KEY_NOT_FOUND);return(yield(yield this.account(o)).getAccessKeys()).find(d=>d.public_key===a.getPublicKey().toString())!==void 0}catch(o){if(o.message===index_1.RepositoryErrorCodes.ACCOUNT_KEY_NOT_FOUND)return!1;throw new Error(o)}})}signOut(){return __awaiter$2(this,void 0,void 0,function*(){const n=yield this.isSignedIn(),o=yield this.sessionRepository.getActiveAccount(this.network);if(!n){yield this.sessionRepository.removeKey(this.network,o);return}const a=yield this.sessionRepository.getKey(this.network,o);if(a===null)throw new Error(errors_1.WalletErrors.NO_ACCOUNT_LOCAL_KEY);const c=a.getPublicKey().toString();try{yield this.silentSignAndSendTransaction({signerId:o,receiverId:o,actions:[{type:"DeleteKey",params:{publicKey:c}}]}),yield this.sessionRepository.removeKey(this.network,o)}catch{yield this.retryTransaction({requests:[{actions:[{type:"DeleteKey",params:{publicKey:c}}],signerId:o,receiverId:o}]}),yield this.sessionRepository.removeKey(this.network,o)}})}signIn({contractId:n,allowance:o,methodNames:a=[]}){var c,l;return __awaiter$2(this,void 0,void 0,function*(){const u=near_api_js_1.KeyPair.fromRandom("ed25519"),d={receiverId:n,methodNames:a,allowance:o},h=[{actions:[{type:"AddKey",params:{publicKey:u.getPublicKey().toString(),accessKey:{permission:d}}}]}],{id:y,network:p,requests:v}=yield this.defaultProvider.createRequest(this.network,h,this.dAppMetadata),b=()=>__awaiter$2(this,void 0,void 0,function*(){return yield this.defaultProvider.rejectSignerRequest(y)});(l=(c=this.defaultStrategy).onRequested)===null||l===void 0||l.call(c,y,{network:p,request:v},b);const{status:_}=yield this.defaultProvider.awaitActionSignatureResolution(y);this.handleRequestStatus(_);const{signerAccountId:T}=yield this.defaultProvider.getRequest(y);if(!T)throw new Error(errors_1.WalletErrors.REQUEST_NOT_SIGNED);return yield this.sessionRepository.setKey(this.network,T,u),yield this.sessionRepository.setActiveAccount(this.network,T),T})}account(n){return __awaiter$2(this,void 0,void 0,function*(){const o=n??(yield this.sessionRepository.getActiveAccount(this.network));if(o===null)throw new Error(errors_1.WalletErrors.NO_ACTIVE_ACCOUNT);return new near_api_js_1.Account(this.connection,o)})}silentSignAndSendTransaction({signerId:n,receiverId:o,actions:a}){return __awaiter$2(this,void 0,void 0,function*(){const c=yield this.account(n),l=yield this.sessionRepository.getKey(this.network,c.accountId);if(l===null)throw new Error(errors_1.WalletErrors.NO_ACTIVE_ACCOUNT);if(!(yield this.isSignedIn(c.accountId)))throw new Error(errors_1.WalletErrors.NO_ACTIVE_ACCOUNT);const d=l.getPublicKey().toString(),h=yield c.getAccessKeys(),y={receiverId:o,actions:a};if(!h.some(v=>(0,isValidAccessKey_1.isValidAccessKey)(c.accountId,v,d,y)))throw new Error(errors_1.WalletErrors.INVALID_ACCESS_KEY);return yield c.signAndSendTransaction({actions:a.map(v=>(0,createAction_1.createAction)(v)),receiverId:o??c.accountId})})}signAndSendTransaction({signerId:n,receiverId:o,actions:a}){var c,l;return __awaiter$2(this,void 0,void 0,function*(){try{if(!(yield this.isSignedIn(n)))throw yield this.sessionRepository.removeKey(this.network,n),new Error(errors_1.WalletErrors.NO_ACTIVE_ACCOUNT);const d=yield this.silentSignAndSendTransaction({signerId:n,receiverId:o,actions:a});return(l=(c=this.defaultStrategy).onSuccess)===null||l===void 0||l.call(c),d}catch(u){if(u.message===errors_1.WalletErrors.NO_ACTIVE_ACCOUNT)throw new Error(u);return yield this.retryTransaction({requests:[{actions:a,receiverId:o,signerId:n}]})}})}signAndSendTransactions({transactions:n}){var o,a,c,l;return __awaiter$2(this,void 0,void 0,function*(){try{if(!(yield this.isSignedIn(n[0].signerId)))throw yield this.sessionRepository.removeKey(this.network,n[0].signerId),new Error(errors_1.WalletErrors.NO_ACTIVE_ACCOUNT);const{id:d,network:h,requests:y}=yield this.defaultProvider.createRequest(this.network,n,this.dAppMetadata),p=()=>__awaiter$2(this,void 0,void 0,function*(){return yield this.defaultProvider.rejectSignerRequest(d)});(a=(o=this.defaultStrategy).onRequested)===null||a===void 0||a.call(o,d,{network:h,request:y},p);const{status:v}=yield this.defaultProvider.awaitActionSignatureResolution(d);this.handleRequestStatus(v);const{signerAccountId:b,txHash:_}=yield this.defaultProvider.getRequest(d);if(!b||!_)throw new Error(errors_1.WalletErrors.REQUEST_NOT_SIGNED);const T=[];for(const I of _){const U=yield this.rpc.txStatus(I,b,"EXECUTED_OPTIMISTIC");T.push(U)}return T}catch(u){throw(l=(c=this.defaultStrategy).onError)===null||l===void 0||l.call(c),new Error(u)}})}signMessage({message:n,receiver:o,nonce:a,callbackUrl:c}){var l,u,d,h,y,p;return __awaiter$2(this,void 0,void 0,function*(){const{id:v}=yield this.defaultProvider.createSignMessage(this.network,n,o,a,c,this.dAppMetadata),b=()=>__awaiter$2(this,void 0,void 0,function*(){return yield this.defaultProvider.rejectMessageRequest(v)});(u=(l=this.defaultStrategy).onRequested)===null||u===void 0||u.call(l,v,{network:this.network,message:n,receiver:o,nonce:a,callbackUrl:c},b);const{response:_,status:T}=yield this.defaultProvider.awaitMessageSignatureResolution(v);if(this.handleRequestStatus(T),!_&&T!==SignerRequestStatus_1.SignerRequestStatus.APPROVED)throw new Error(errors_1.WalletErrors.NO_SIGNATURE);try{const{publicKey:I,signature:U,accountId:N}=_;if(!(0,verify_signature_1.verifySignature)({publicKey:I,signature:U,message:n,nonce:Buffer.from(a),recipient:o,callbackUrl:c}))throw new Error(errors_1.WalletErrors.INVALID_SIGNATURE);if(!(yield(yield this.account(N)).getAccessKeys()).some(W=>!(W.public_key!==I||W.access_key.permission!=="FullAccess")))throw Error(errors_1.WalletErrors.INVALID_ACCESS_KEY);return(h=(d=this.defaultStrategy).onSuccess)===null||h===void 0||h.call(d),{signature:U,publicKey:I,message:n,accountId:N,receiver:o,nonce:a,callbackUrl:c}}catch(I){throw(p=(y=this.defaultStrategy).onError)===null||p===void 0||p.call(y),new Error(I)}})}}NearMobileWallet_2=NearMobileWallet$1.NearMobileWallet=NearMobileWallet;var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$1=function(e){return e&&e.Math==Math&&e},global$a$1=check$1(typeof globalThis=="object"&&globalThis)||check$1(typeof window=="object"&&window)||check$1(typeof self=="object"&&self)||check$1(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$6$1=function(e){try{return!!e()}catch{return!0}},fails$5$1=fails$6$1,descriptors$1=!fails$5$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),objectPropertyIsEnumerable$1={},nativePropertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$1$1&&!nativePropertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function e(n){var o=getOwnPropertyDescriptor$1$1(this,n);return!!o&&o.enumerable}:nativePropertyIsEnumerable$1;var createPropertyDescriptor$2$1=function(e,n){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:n}},toString$1={}.toString,classofRaw$2=function(e){return toString$1.call(e).slice(8,-1)},fails$4$1=fails$6$1,classof$6=classofRaw$2,split$1="".split,indexedObject$1=fails$4$1(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return classof$6(e)=="String"?split$1.call(e,""):Object(e)}:Object,requireObjectCoercible$2$1=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},IndexedObject$1$1=indexedObject$1,requireObjectCoercible$1$1=requireObjectCoercible$2$1,toIndexedObject$3$1=function(e){return IndexedObject$1$1(requireObjectCoercible$1$1(e))},isObject$4$1=function(e){return typeof e=="object"?e!==null:typeof e=="function"},isObject$3$1=isObject$4$1,toPrimitive$2$1=function(e,n){if(!isObject$3$1(e))return e;var o,a;if(n&&typeof(o=e.toString)=="function"&&!isObject$3$1(a=o.call(e))||typeof(o=e.valueOf)=="function"&&!isObject$3$1(a=o.call(e))||!n&&typeof(o=e.toString)=="function"&&!isObject$3$1(a=o.call(e)))return a;throw TypeError("Can't convert object to primitive value")},hasOwnProperty$1={}.hasOwnProperty,has$5$1=function(e,n){return hasOwnProperty$1.call(e,n)},global$9$1=global$a$1,isObject$2$1=isObject$4$1,document$2=global$9$1.document,EXISTS$1=isObject$2$1(document$2)&&isObject$2$1(document$2.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$2.createElement(e):{}},DESCRIPTORS$4$1=descriptors$1,fails$3$1=fails$6$1,createElement$1=documentCreateElement$2,ie8DomDefine$1=!DESCRIPTORS$4$1&&!fails$3$1(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$3$1=descriptors$1,propertyIsEnumerableModule$1$1=objectPropertyIsEnumerable$1,createPropertyDescriptor$1$1=createPropertyDescriptor$2$1,toIndexedObject$2$1=toIndexedObject$3$1,toPrimitive$1$1=toPrimitive$2$1,has$4$1=has$5$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,nativeGetOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$3$1?nativeGetOwnPropertyDescriptor$2:function e(n,o){if(n=toIndexedObject$2$1(n),o=toPrimitive$1$1(o,!0),IE8_DOM_DEFINE$1$1)try{return nativeGetOwnPropertyDescriptor$2(n,o)}catch{}if(has$4$1(n,o))return createPropertyDescriptor$1$1(!propertyIsEnumerableModule$1$1.f.call(n,o),n[o])};var objectDefineProperty$1={},isObject$1$1=isObject$4$1,anObject$4$1=function(e){if(!isObject$1$1(e))throw TypeError(String(e)+" is not an object");return e},DESCRIPTORS$2$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,anObject$3$1=anObject$4$1,toPrimitive$4=toPrimitive$2$1,nativeDefineProperty$2=Object.defineProperty;objectDefineProperty$1.f=DESCRIPTORS$2$1?nativeDefineProperty$2:function e(n,o,a){if(anObject$3$1(n),o=toPrimitive$4(o,!0),anObject$3$1(a),IE8_DOM_DEFINE$2)try{return nativeDefineProperty$2(n,o,a)}catch{}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(n[o]=a.value),n};var DESCRIPTORS$1$1=descriptors$1,definePropertyModule$1$1=objectDefineProperty$1,createPropertyDescriptor$5=createPropertyDescriptor$2$1,createNonEnumerableProperty$4$1=DESCRIPTORS$1$1?function(e,n,o){return definePropertyModule$1$1.f(e,n,createPropertyDescriptor$5(1,o))}:function(e,n,o){return e[n]=o,e},redefine$2$1={exports:{}},global$8$1=global$a$1,createNonEnumerableProperty$3$1=createNonEnumerableProperty$4$1,setGlobal$3$1=function(e,n){try{createNonEnumerableProperty$3$1(global$8$1,e,n)}catch{global$8$1[e]=n}return n},global$7$1=global$a$1,setGlobal$2$1=setGlobal$3$1,SHARED$1="__core-js_shared__",store$3$1=global$7$1[SHARED$1]||setGlobal$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1,functionToString$1=Function.toString;typeof store$2$1.inspectSource!="function"&&(store$2$1.inspectSource=function(e){return functionToString$1.call(e)});var inspectSource$2$1=store$2$1.inspectSource,global$6$1=global$a$1,inspectSource$1$1=inspectSource$2$1,WeakMap$1$1=global$6$1.WeakMap,nativeWeakMap$1=typeof WeakMap$1$1=="function"&&/native code/.test(inspectSource$1$1(WeakMap$1$1)),shared$1$1={exports:{}},store$1$1=sharedStore$1;(shared$1$1.exports=function(e,n){return store$1$1[e]||(store$1$1[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var id$1=0,postfix$1=Math.random(),uid$1$1=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++id$1+postfix$1).toString(36)},shared$3=shared$1$1.exports,uid$4=uid$1$1,keys=shared$3("keys"),sharedKey$1$1=function(e){return keys[e]||(keys[e]=uid$4(e))},hiddenKeys$3$1={},NATIVE_WEAK_MAP$1=nativeWeakMap$1,global$5$1=global$a$1,createNonEnumerableProperty$2$1=createNonEnumerableProperty$4$1,objectHas$1=has$5$1,sharedKey$4=sharedKey$1$1,hiddenKeys$2$1=hiddenKeys$3$1,WeakMap$3=global$5$1.WeakMap,set$2,get$2,has$3$1,enforce$1=function(e){return has$3$1(e)?get$2(e):set$2(e,{})};if(NATIVE_WEAK_MAP$1){var store$4=new WeakMap$3,wmget$1=store$4.get,wmhas$1=store$4.has,wmset$1=store$4.set;set$2=function(e,n){return wmset$1.call(store$4,e,n),n},get$2=function(e){return wmget$1.call(store$4,e)||{}},has$3$1=function(e){return wmhas$1.call(store$4,e)}}else{var STATE$1=sharedKey$4("state");hiddenKeys$2$1[STATE$1]=!0,set$2=function(e,n){return createNonEnumerableProperty$2$1(e,STATE$1,n),n},get$2=function(e){return objectHas$1(e,STATE$1)?e[STATE$1]:{}},has$3$1=function(e){return objectHas$1(e,STATE$1)}}var internalState$1={get:get$2,enforce:enforce$1},global$4$1=global$a$1,createNonEnumerableProperty$1$1=createNonEnumerableProperty$4$1,has$2$1=has$5$1,setGlobal$1$1=setGlobal$3$1,inspectSource$3=inspectSource$2$1,InternalStateModule$4=internalState$1,getInternalState$4=InternalStateModule$4.get,enforceInternalState$1=InternalStateModule$4.enforce,TEMPLATE$1=String(String).split("String");(redefine$2$1.exports=function(e,n,o,a){var c=a?!!a.unsafe:!1,l=a?!!a.enumerable:!1,u=a?!!a.noTargetGet:!1;if(typeof o=="function"&&(typeof n=="string"&&!has$2$1(o,"name")&&createNonEnumerableProperty$1$1(o,"name",n),enforceInternalState$1(o).source=TEMPLATE$1.join(typeof n=="string"?n:"")),e===global$4$1){l?e[n]=o:setGlobal$1$1(n,o);return}else c?!u&&e[n]&&(l=!0):delete e[n];l?e[n]=o:createNonEnumerableProperty$1$1(e,n,o)})(Function.prototype,"toString",function e(){return typeof this=="function"&&getInternalState$4(this).source||inspectSource$3(this)});var global$3$1=global$a$1,path$1$1=global$3$1,path$2=path$1$1,global$2$1=global$a$1,aFunction$4=function(e){return typeof e=="function"?e:void 0},getBuiltIn$1$1=function(e,n){return arguments.length<2?aFunction$4(path$2[e])||aFunction$4(global$2$1[e]):path$2[e]&&path$2[e][n]||global$2$1[e]&&global$2$1[e][n]},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$2=Math.floor,toInteger$2$1=function(e){return isNaN(e=+e)?0:(e>0?floor$2:ceil$1)(e)},toInteger$1$1=toInteger$2$1,min$1$1=Math.min,toLength$1$1=function(e){return e>0?min$1$1(toInteger$1$1(e),9007199254740991):0},toInteger$6=toInteger$2$1,max$1=Math.max,min$2=Math.min,toAbsoluteIndex$1$1=function(e,n){var o=toInteger$6(e);return o<0?max$1(o+n,0):min$2(o,n)},toIndexedObject$1$1=toIndexedObject$3$1,toLength$a=toLength$1$1,toAbsoluteIndex$4=toAbsoluteIndex$1$1,createMethod$2=function(e){return function(n,o,a){var c=toIndexedObject$1$1(n),l=toLength$a(c.length),u=toAbsoluteIndex$4(a,l),d;if(e&&o!=o){for(;l>u;)if(d=c[u++],d!=d)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===o)return e||u||0;return!e&&-1}},arrayIncludes$1={indexOf:createMethod$2(!1)},has$1$1=has$5$1,toIndexedObject$5=toIndexedObject$3$1,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$1$1=hiddenKeys$3$1,objectKeysInternal$1=function(e,n){var o=toIndexedObject$5(e),a=0,c=[],l;for(l in o)!has$1$1(hiddenKeys$1$1,l)&&has$1$1(o,l)&&c.push(l);for(;n.length>a;)has$1$1(o,l=n[a++])&&(~indexOf$1(c,l)||c.push(l));return c},enumBugKeys$2$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$1=objectKeysInternal$1,enumBugKeys$1$1=enumBugKeys$2$1,hiddenKeys$5=enumBugKeys$1$1.concat("length","prototype");objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function e(n){return internalObjectKeys$1$1(n,hiddenKeys$5)};var objectGetOwnPropertySymbols$1={};objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols;var getBuiltIn$4=getBuiltIn$1$1,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$1$1=objectGetOwnPropertySymbols$1,anObject$2$1=anObject$4$1,ownKeys$1$1=getBuiltIn$4("Reflect","ownKeys")||function e(n){var o=getOwnPropertyNamesModule$1.f(anObject$2$1(n)),a=getOwnPropertySymbolsModule$1$1.f;return a?o.concat(a(n)):o},has$c=has$5$1,ownKeys2$1=ownKeys$1$1,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor$1,definePropertyModule$6=objectDefineProperty$1,copyConstructorProperties$1$1=function(e,n){for(var o=ownKeys2$1(n),a=definePropertyModule$6.f,c=getOwnPropertyDescriptorModule$2.f,l=0;l<o.length;l++){var u=o[l];has$c(e,u)||a(e,u,c(n,u))}},fails$2$1=fails$6$1,replacement$1=/#|\.prototype\./,isForced$1$1=function(e,n){var o=data$1[normalize$1(e)];return o==POLYFILL$1?!0:o==NATIVE$1?!1:typeof n=="function"?fails$2$1(n):!!n},normalize$1=isForced$1$1.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$1$1.data={},NATIVE$1=isForced$1$1.NATIVE="N",POLYFILL$1=isForced$1$1.POLYFILL="P",isForced_1$1=isForced$1$1,global$1$1=global$a$1,getOwnPropertyDescriptor2$1=objectGetOwnPropertyDescriptor$1.f,createNonEnumerableProperty$b=createNonEnumerableProperty$4$1,redefine$1$1=redefine$2$1.exports,setGlobal$4=setGlobal$3$1,copyConstructorProperties$2=copyConstructorProperties$1$1,isForced$2=isForced_1$1,_export$1=function(e,n){var o=e.target,a=e.global,c=e.stat,l,u,d,h,y,p;if(a?u=global$1$1:c?u=global$1$1[o]||setGlobal$4(o,{}):u=(global$1$1[o]||{}).prototype,u)for(d in n){if(y=n[d],e.noTargetGet?(p=getOwnPropertyDescriptor2$1(u,d),h=p&&p.value):h=u[d],l=isForced$2(a?d:o+(c?".":"#")+d,e.forced),!l&&h!==void 0){if(typeof y==typeof h)continue;copyConstructorProperties$2(y,h)}(e.sham||h&&h.sham)&&createNonEnumerableProperty$b(y,"sham",!0),redefine$1$1(u,d,y,e)}},internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$4=enumBugKeys$2$1,objectKeys$1$1=Object.keys||function e(n){return internalObjectKeys$2(n,enumBugKeys$4)},requireObjectCoercible$3=requireObjectCoercible$2$1,toObject$1$1=function(e){return Object(requireObjectCoercible$3(e))},DESCRIPTORS$a=descriptors$1,fails$1$1=fails$6$1,objectKeys$3=objectKeys$1$1,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,toObject$7=toObject$1$1,IndexedObject$3=indexedObject$1,nativeAssign$1=Object.assign,defineProperty2$1=Object.defineProperty,objectAssign$1=!nativeAssign$1||fails$1$1(function(){if(DESCRIPTORS$a&&nativeAssign$1({b:1},nativeAssign$1(defineProperty2$1({},"a",{enumerable:!0,get:function(){defineProperty2$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},n={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach(function(c){n[c]=c}),nativeAssign$1({},e)[o]!=7||objectKeys$3(nativeAssign$1({},n)).join("")!=a})?function e(n,o){for(var a=toObject$7(n),c=arguments.length,l=1,u=getOwnPropertySymbolsModule$2.f,d=propertyIsEnumerableModule$2.f;c>l;)for(var h=IndexedObject$3(arguments[l++]),y=u?objectKeys$3(h).concat(u(h)):objectKeys$3(h),p=y.length,v=0,b;p>v;)b=y[v++],(!DESCRIPTORS$a||d.call(h,b))&&(a[b]=h[b]);return a}:nativeAssign$1,$$4=_export$1,assign2$1=objectAssign$1;$$4({target:"Object",stat:!0,forced:Object.assign!==assign2$1},{assign:assign2$1});function __rest(e,n){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(e);c<a.length;c++)n.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(o[a[c]]=e[a[c]]);return o}function __awaiter$1(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;var anObject$1$1=anObject$4$1,regexpFlags$1=function(){var e=anObject$1$1(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n},redefine$6=redefine$2$1.exports,anObject$a=anObject$4$1,fails$e=fails$6$1,flags$1=regexpFlags$1,TO_STRING$1="toString",RegExpPrototype$1=RegExp.prototype,nativeToString$1=RegExpPrototype$1[TO_STRING$1],NOT_GENERIC$1=fails$e(function(){return nativeToString$1.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$1=nativeToString$1.name!=TO_STRING$1;(NOT_GENERIC$1||INCORRECT_NAME$1)&&redefine$6(RegExp.prototype,TO_STRING$1,function(){var n=anObject$a(this),o=String(n.source),a=n.flags,c=String(a===void 0&&n instanceof RegExp&&!("flags"in RegExpPrototype$1)?flags$1.call(n):a);return"/"+o+"/"+c},{unsafe:!0});const initNearMobileWallet=e=>__awaiter$1(void 0,void 0,void 0,function*(){const{store:n,options:o,logger:a,dAppMetadata:c}=e,l=new NearMobileWallet_2({network:o.network.networkId,nodeUrl:o.network.nodeUrl,metadata:c});function u(){return __awaiter$1(this,void 0,void 0,function*(){a.log("[NearMobileWallet]:getAccounts");const d=yield l.getAccounts(),h=[];for(let y=0;y<d.length;y++)h.push({accountId:d[y],publicKey:(yield l.signer.getPublicKey(d[y],o.network.networkId)).toString()});return h})}return{get network(){return"mainnet"},signIn(d){return __awaiter$1(this,void 0,void 0,function*(){a.log("[NearMobileWallet]: signIn");const h=d.contractId!==""?d.contractId:void 0;return yield l.signIn(Object.assign(Object.assign({},d),{contractId:h})),yield u()})},signOut(){return __awaiter$1(this,void 0,void 0,function*(){a.log("[NearMobileWallet]: signOut"),yield l.signOut()})},getAccounts(){return __awaiter$1(this,void 0,void 0,function*(){return u()})},signAndSendTransaction(d){return __awaiter$1(this,void 0,void 0,function*(){a.log("[NearMobileWallet]: signAndSendTransaction",d);const{contract:h}=n.getState();if(!h)throw new Error("Wallet not signed in");return yield l.signAndSendTransaction(Object.assign({receiverId:h.contractId},d))})},verifyOwner(){return __awaiter$1(this,void 0,void 0,function*(){throw Error("[NearMobileWallet]: verifyOwner is deprecated, use signMessage method with implementation NEP0413 Standard")})},signMessage(d){return __awaiter$1(this,void 0,void 0,function*(){const{recipient:h,nonce:y}=d,p=__rest(d,["recipient","nonce"]);a.log("[NearMobileWallet]: signMessage",d);const v=yield l.signMessage(Object.assign(Object.assign({},p),{receiver:h,nonce:Array.from(y)}));return{accountId:v.accountId,signature:v.signature.toString(),publicKey:v.publicKey.toString()}})},signAndSendTransactions(d){return __awaiter$1(this,void 0,void 0,function*(){return a.log("[NearMobileWallet]: signAndSendTransactions",d),yield l.signAndSendTransactions(d)})}}});var icon$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADkeSURBVHgB7X0JvCVFfe7Xfc/d5m5z7519hp1h34ZlAFFQUFxCgJBIRH68SCIkRn2aiEZ88Rfz3i/PLCpGxReigD7WgEbjhqADijDMALMAszIzDAPMPnfuvt9zOlV9Tp9TXV3Vp8853dXdZ+r7Mdyurn//q7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FbD2OZhsaQGuv11yLl3kp6/0wjC3k8u2aiZrPbtoTtOrX/qSkQt6/H8DRMdL1OqM1CwAAAAASUVORK5CYII=";function setupNearMobileWallet({dAppMetadata:e}={}){return()=>__awaiter$1(this,void 0,void 0,function*(){return{id:"near-mobile-wallet",type:"injected",metadata:{iconUrl:icon$1,name:"Near Mobile Wallet",description:"Mobile wallet for NEAR Protocol",useUrlAccountImport:!1,downloadUrl:"https://nearmobile.app/",deprecated:!1,available:!0},init:n=>initNearMobileWallet(Object.assign(Object.assign({},n),{dAppMetadata:e}))}})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$d=function(e){try{return!!e()}catch{return!0}},toString={}.toString,classofRaw$1=function(e){return toString.call(e).slice(8,-1)},fails$c=fails$d,classof$5=classofRaw$1,split="".split,indexedObject=fails$c(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return classof$5(e)=="String"?split.call(e,""):Object(e)}:Object,requireObjectCoercible$2=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$4=function(e){return IndexedObject$2(requireObjectCoercible$1(e))},check=function(e){return e&&e.Math==Math&&e},global$h=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||Function("return this")(),shared$2={exports:{}},fails$b=fails$d,descriptors=!fails$b(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),objectDefineProperty={},isObject$9=function(e){return typeof e=="object"?e!==null:typeof e=="function"},global$g=global$h,isObject$8=isObject$9,document$1=global$g.document,EXISTS=isObject$8(document$1)&&isObject$8(document$1.createElement),documentCreateElement$1=function(e){return EXISTS?document$1.createElement(e):{}},DESCRIPTORS$9=descriptors,fails$a=fails$d,createElement=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$9&&!fails$a(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!=7}),isObject$7=isObject$9,anObject$9=function(e){if(!isObject$7(e))throw TypeError(String(e)+" is not an object");return e},isObject$6=isObject$9,toPrimitive$3=function(e,n){if(!isObject$6(e))return e;var o,a;if(n&&typeof(o=e.toString)=="function"&&!isObject$6(a=o.call(e))||typeof(o=e.valueOf)=="function"&&!isObject$6(a=o.call(e))||!n&&typeof(o=e.toString)=="function"&&!isObject$6(a=o.call(e)))return a;throw TypeError("Can't convert object to primitive value")},DESCRIPTORS$8=descriptors,IE8_DOM_DEFINE$1=ie8DomDefine,anObject$8=anObject$9,toPrimitive$2=toPrimitive$3,nativeDefineProperty$1=Object.defineProperty;objectDefineProperty.f=DESCRIPTORS$8?nativeDefineProperty$1:function e(n,o,a){if(anObject$8(n),o=toPrimitive$2(o,!0),anObject$8(a),IE8_DOM_DEFINE$1)try{return nativeDefineProperty$1(n,o,a)}catch{}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(n[o]=a.value),n};var createPropertyDescriptor$4=function(e,n){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:n}},DESCRIPTORS$7=descriptors,definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$4,createNonEnumerableProperty$a=DESCRIPTORS$7?function(e,n,o){return definePropertyModule$5.f(e,n,createPropertyDescriptor$3(1,o))}:function(e,n,o){return e[n]=o,e},global$f=global$h,createNonEnumerableProperty$9=createNonEnumerableProperty$a,setGlobal$3=function(e,n){try{createNonEnumerableProperty$9(global$f,e,n)}catch{global$f[e]=n}return n},global$e=global$h,setGlobal$2=setGlobal$3,SHARED="__core-js_shared__",store$3=global$e[SHARED]||setGlobal$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$2.exports=function(e,n){return store$2[e]||(store$2[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var hasOwnProperty={}.hasOwnProperty,has$b=function(e,n){return hasOwnProperty.call(e,n)},id=0,postfix=Math.random(),uid$3=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++id+postfix).toString(36)},fails$9=fails$d,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$9(function(){return!String(Symbol())}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$d=global$h,shared$1=shared$2.exports,has$a=has$b,uid$2=uid$3,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$1("wks"),Symbol$1=global$d.Symbol,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$2,wellKnownSymbol$e=function(e){return has$a(WellKnownSymbolsStore,e)||(NATIVE_SYMBOL&&has$a(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},ceil=Math.ceil,floor$1=Math.floor,toInteger$5=function(e){return isNaN(e=+e)?0:(e>0?floor$1:ceil)(e)},toInteger$4=toInteger$5,min$1=Math.min,toLength$9=function(e){return e>0?min$1(toInteger$4(e),9007199254740991):0},toInteger$3=toInteger$5,max=Math.max,min=Math.min,toAbsoluteIndex$3=function(e,n){var o=toInteger$3(e);return o<0?max(o+n,0):min(o,n)},toIndexedObject$3=toIndexedObject$4,toLength$8=toLength$9,toAbsoluteIndex$2=toAbsoluteIndex$3,createMethod$1=function(e){return function(n,o,a){var c=toIndexedObject$3(n),l=toLength$8(c.length),u=toAbsoluteIndex$2(a,l),d;if(e&&o!=o){for(;l>u;)if(d=c[u++],d!=d)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===o)return e||u||0;return!e&&-1}},arrayIncludes={indexOf:createMethod$1(!1)},hiddenKeys$4={},has$9=has$b,toIndexedObject$2=toIndexedObject$4,indexOf=arrayIncludes.indexOf,hiddenKeys$3=hiddenKeys$4,objectKeysInternal=function(e,n){var o=toIndexedObject$2(e),a=0,c=[],l;for(l in o)!has$9(hiddenKeys$3,l)&&has$9(o,l)&&c.push(l);for(;n.length>a;)has$9(o,l=n[a++])&&(~indexOf(c,l)||c.push(l));return c},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$2=Object.keys||function e(n){return internalObjectKeys$1(n,enumBugKeys$2)},DESCRIPTORS$6=descriptors,definePropertyModule$4=objectDefineProperty,anObject$7=anObject$9,objectKeys$1=objectKeys$2,objectDefineProperties=DESCRIPTORS$6?Object.defineProperties:function e(n,o){anObject$7(n);for(var a=objectKeys$1(o),c=a.length,l=0,u;c>l;)definePropertyModule$4.f(n,u=a[l++],o[u]);return n},global$c=global$h,path$1=global$c,path=path$1,global$b=global$h,aFunction$3=function(e){return typeof e=="function"?e:void 0},getBuiltIn$3=function(e,n){return arguments.length<2?aFunction$3(path[e])||aFunction$3(global$b[e]):path[e]&&path[e][n]||global$b[e]&&global$b[e][n]},getBuiltIn$2=getBuiltIn$3,html$1=getBuiltIn$2("document","documentElement"),shared=shared$2.exports,uid$1=uid$3,keys$1=shared("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid$1(e))},anObject$6=anObject$9,defineProperties2=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$2=hiddenKeys$4,html=html$1,documentCreateElement=documentCreateElement$1,sharedKey$2=sharedKey$3,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$2("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var n=e.parentWindow.Object;return e=null,n},NullProtoObjectViaIFrame=function(){var e=documentCreateElement("iframe"),n="java"+SCRIPT+":",o;return e.style.display="none",html.appendChild(e),e.src=String(n),o=e.contentWindow.document,o.open(),o.write(scriptTag("document.F=Object")),o.close(),o.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch{}NullProtoObject=activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys$1.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[e]];return NullProtoObject()};hiddenKeys$2[IE_PROTO$1]=!0;var objectCreate=Object.create||function e(n,o){var a;return n!==null?(EmptyConstructor[PROTOTYPE$1]=anObject$6(n),a=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,a[IE_PROTO$1]=n):a=NullProtoObject(),o===void 0?a:defineProperties2(a,o)},wellKnownSymbol$d=wellKnownSymbol$e,create$2=objectCreate,definePropertyModule$3=objectDefineProperty,UNSCOPABLES=wellKnownSymbol$d("unscopables"),ArrayPrototype$1=Array.prototype;ArrayPrototype$1[UNSCOPABLES]==null&&definePropertyModule$3.f(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)});var addToUnscopables$1=function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0},iterators={},store$1=sharedStore,functionToString=Function.toString;typeof store$1.inspectSource!="function"&&(store$1.inspectSource=function(e){return functionToString.call(e)});var inspectSource$2=store$1.inspectSource,global$a=global$h,inspectSource$1=inspectSource$2,WeakMap$1=global$a.WeakMap,nativeWeakMap=typeof WeakMap$1=="function"&&/native code/.test(inspectSource$1(WeakMap$1)),NATIVE_WEAK_MAP=nativeWeakMap,global$9=global$h,isObject$5=isObject$9,createNonEnumerableProperty$8=createNonEnumerableProperty$a,objectHas=has$b,sharedKey$1=sharedKey$3,hiddenKeys$1=hiddenKeys$4,WeakMap$2=global$9.WeakMap,set$1,get$1,has$8,enforce=function(e){return has$8(e)?get$1(e):set$1(e,{})},getterFor=function(e){return function(n){var o;if(!isObject$5(n)||(o=get$1(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return o}};if(NATIVE_WEAK_MAP){var store=new WeakMap$2,wmget=store.get,wmhas=store.has,wmset=store.set;set$1=function(e,n){return wmset.call(store,e,n),n},get$1=function(e){return wmget.call(store,e)||{}},has$8=function(e){return wmhas.call(store,e)}}else{var STATE=sharedKey$1("state");hiddenKeys$1[STATE]=!0,set$1=function(e,n){return createNonEnumerableProperty$8(e,STATE,n),n},get$1=function(e){return objectHas(e,STATE)?e[STATE]:{}},has$8=function(e){return objectHas(e,STATE)}}var internalState={set:set$1,get:get$1,has:has$8,enforce,getterFor},objectGetOwnPropertyDescriptor={},objectPropertyIsEnumerable={},nativePropertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!nativePropertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function e(n){var o=getOwnPropertyDescriptor$1(this,n);return!!o&&o.enumerable}:nativePropertyIsEnumerable;var DESCRIPTORS$5=descriptors,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$4,toIndexedObject$1=toIndexedObject$4,toPrimitive$1=toPrimitive$3,has$7=has$b,IE8_DOM_DEFINE=ie8DomDefine,nativeGetOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$5?nativeGetOwnPropertyDescriptor$1:function e(n,o){if(n=toIndexedObject$1(n),o=toPrimitive$1(o,!0),IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor$1(n,o)}catch{}if(has$7(n,o))return createPropertyDescriptor$2(!propertyIsEnumerableModule$1.f.call(n,o),n[o])};var redefine$5={exports:{}},global$8=global$h,createNonEnumerableProperty$7=createNonEnumerableProperty$a,has$6=has$b,setGlobal$1=setGlobal$3,inspectSource=inspectSource$2,InternalStateModule$3=internalState,getInternalState$3=InternalStateModule$3.get,enforceInternalState=InternalStateModule$3.enforce,TEMPLATE=String(String).split("String");(redefine$5.exports=function(e,n,o,a){var c=a?!!a.unsafe:!1,l=a?!!a.enumerable:!1,u=a?!!a.noTargetGet:!1;if(typeof o=="function"&&(typeof n=="string"&&!has$6(o,"name")&&createNonEnumerableProperty$7(o,"name",n),enforceInternalState(o).source=TEMPLATE.join(typeof n=="string"?n:"")),e===global$8){l?e[n]=o:setGlobal$1(n,o);return}else c?!u&&e[n]&&(l=!0):delete e[n];l?e[n]=o:createNonEnumerableProperty$7(e,n,o)})(Function.prototype,"toString",function e(){return typeof this=="function"&&getInternalState$3(this).source||inspectSource(this)});var objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function e(n){return internalObjectKeys(n,hiddenKeys)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$1=getBuiltIn$3,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$5=anObject$9,ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function e(n){var o=getOwnPropertyNamesModule.f(anObject$5(n)),a=getOwnPropertySymbolsModule$1.f;return a?o.concat(a(n)):o},has$5=has$b,ownKeys2=ownKeys$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$1=function(e,n){for(var o=ownKeys2(n),a=definePropertyModule$2.f,c=getOwnPropertyDescriptorModule$1.f,l=0;l<o.length;l++){var u=o[l];has$5(e,u)||a(e,u,c(n,u))}},fails$8=fails$d,replacement=/#|\.prototype\./,isForced$1=function(e,n){var o=data[normalize(e)];return o==POLYFILL?!0:o==NATIVE?!1:typeof n=="function"?fails$8(n):!!n},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$7=global$h,getOwnPropertyDescriptor2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$6=createNonEnumerableProperty$a,redefine$4=redefine$5.exports,setGlobal=setGlobal$3,copyConstructorProperties=copyConstructorProperties$1,isForced=isForced_1,_export=function(e,n){var o=e.target,a=e.global,c=e.stat,l,u,d,h,y,p;if(a?u=global$7:c?u=global$7[o]||setGlobal(o,{}):u=(global$7[o]||{}).prototype,u)for(d in n){if(y=n[d],e.noTargetGet?(p=getOwnPropertyDescriptor2(u,d),h=p&&p.value):h=u[d],l=isForced(a?d:o+(c?".":"#")+d,e.forced),!l&&h!==void 0){if(typeof y==typeof h)continue;copyConstructorProperties(y,h)}(e.sham||h&&h.sham)&&createNonEnumerableProperty$6(y,"sham",!0),redefine$4(u,d,y,e)}},requireObjectCoercible=requireObjectCoercible$2,toObject$6=function(e){return Object(requireObjectCoercible(e))},fails$7=fails$d,correctPrototypeGetter=!fails$7(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),has$4=has$b,toObject$5=toObject$6,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),ObjectPrototype$2=Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?Object.getPrototypeOf:function(e){return e=toObject$5(e),has$4(e,IE_PROTO)?e[IE_PROTO]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ObjectPrototype$2:null},getPrototypeOf$3=objectGetPrototypeOf,createNonEnumerableProperty$5=createNonEnumerableProperty$a,has$3=has$b,wellKnownSymbol$c=wellKnownSymbol$e,ITERATOR$5=wellKnownSymbol$c("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,returnThis$2=function(){return this},IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$3(getPrototypeOf$3(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);IteratorPrototype$2==null&&(IteratorPrototype$2={});has$3(IteratorPrototype$2,ITERATOR$5)||createNonEnumerableProperty$5(IteratorPrototype$2,ITERATOR$5,returnThis$2);var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},defineProperty$3=objectDefineProperty.f,has$2=has$b,wellKnownSymbol$b=wellKnownSymbol$e,TO_STRING_TAG$4=wellKnownSymbol$b("toStringTag"),setToStringTag$3=function(e,n,o){e&&!has$2(e=o?e:e.prototype,TO_STRING_TAG$4)&&defineProperty$3(e,TO_STRING_TAG$4,{configurable:!0,value:n})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$1=createPropertyDescriptor$4,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,n,o){var a=n+" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$1(1,o)}),setToStringTag$2(e,a,!1),Iterators$4[a]=returnThis$1,e},isObject$4=isObject$9,aPossiblePrototype$1=function(e){if(!isObject$4(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e},anObject$4=anObject$9,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,n={},o;try{o=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,o.call(n,[]),e=n instanceof Array}catch{}return function(c,l){return anObject$4(c),aPossiblePrototype(l),e?o.call(c,l):c.__proto__=l,c}}():void 0),$$3=_export,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf$2=objectGetPrototypeOf,setPrototypeOf$4=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$4=createNonEnumerableProperty$a,redefine$3=redefine$5.exports,wellKnownSymbol$a=wellKnownSymbol$e,Iterators$3=iterators,IteratorsCore=iteratorsCore,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$4=wellKnownSymbol$a("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,n,o,a,c,l,u){createIteratorConstructor(o,n,a);var d=function(N){if(N===c&&b)return b;if(!BUGGY_SAFARI_ITERATORS&&N in p)return p[N];switch(N){case KEYS:return function(){return new o(this,N)};case VALUES:return function(){return new o(this,N)};case ENTRIES:return function(){return new o(this,N)}}return function(){return new o(this)}},h=n+" Iterator",y=!1,p=e.prototype,v=p[ITERATOR$4]||p["@@iterator"]||c&&p[c],b=!BUGGY_SAFARI_ITERATORS&&v||d(c),_=n=="Array"&&p.entries||v,T,I,U;if(_&&(T=getPrototypeOf$2(_.call(new e)),IteratorPrototype!==Object.prototype&&T.next&&(getPrototypeOf$2(T)!==IteratorPrototype&&(setPrototypeOf$4?setPrototypeOf$4(T,IteratorPrototype):typeof T[ITERATOR$4]!="function"&&createNonEnumerableProperty$4(T,ITERATOR$4,returnThis)),setToStringTag$1(T,h,!0))),c==VALUES&&v&&v.name!==VALUES&&(y=!0,b=function(){return v.call(this)}),p[ITERATOR$4]!==b&&createNonEnumerableProperty$4(p,ITERATOR$4,b),Iterators$3[n]=b,c)if(I={values:d(VALUES),keys:l?b:d(KEYS),entries:d(ENTRIES)},u)for(U in I)(BUGGY_SAFARI_ITERATORS||y||!(U in p))&&redefine$3(p,U,I[U]);else $$3({target:n,proto:!0,forced:BUGGY_SAFARI_ITERATORS||y},I);return I},toIndexedObject=toIndexedObject$4,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$2=internalState,defineIterator=defineIterator$1,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState$2=InternalStateModule$2.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,n){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:n})},function(){var e=getInternalState$2(this),n=e.target,o=e.kind,a=e.index++;return!n||a>=n.length?(e.target=void 0,{value:void 0,done:!0}):o=="keys"?{value:a,done:!1}:o=="values"?{value:n[a],done:!1}:{value:[a,n[a]],done:!1}},"values");Iterators$2.Arguments=Iterators$2.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries");var arrayBufferNative=typeof ArrayBuffer<"u"&&typeof DataView<"u",redefine$2=redefine$5.exports,redefineAll$1=function(e,n,o){for(var a in n)redefine$2(e,a,n[a],o);return e},anInstance$2=function(e,n,o){if(!(e instanceof n))throw TypeError("Incorrect "+(o?o+" ":"")+"invocation");return e},toInteger$2=toInteger$5,toLength$7=toLength$9,toIndex$2=function(e){if(e===void 0)return 0;var n=toInteger$2(e),o=toLength$7(n);if(n!==o)throw RangeError("Wrong length or index");return o},Infinity$1=1/0,abs=Math.abs,pow=Math.pow,floor=Math.floor,log=Math.log,LN2=Math.LN2,pack=function(e,n,o){var a=new Array(o),c=o*8-n-1,l=(1<<c)-1,u=l>>1,d=n===23?pow(2,-24)-pow(2,-77):0,h=e<0||e===0&&1/e<0?1:0,y=0,p,v,b;for(e=abs(e),e!=e||e===Infinity$1?(v=e!=e?1:0,p=l):(p=floor(log(e)/LN2),e*(b=pow(2,-p))<1&&(p--,b*=2),p+u>=1?e+=d/b:e+=d*pow(2,1-u),e*b>=2&&(p++,b/=2),p+u>=l?(v=0,p=l):p+u>=1?(v=(e*b-1)*pow(2,n),p=p+u):(v=e*pow(2,u-1)*pow(2,n),p=0));n>=8;a[y++]=v&255,v/=256,n-=8);for(p=p<<n|v,c+=n;c>0;a[y++]=p&255,p/=256,c-=8);return a[--y]|=h*128,a},unpack=function(e,n){var o=e.length,a=o*8-n-1,c=(1<<a)-1,l=c>>1,u=a-7,d=o-1,h=e[d--],y=h&127,p;for(h>>=7;u>0;y=y*256+e[d],d--,u-=8);for(p=y&(1<<-u)-1,y>>=-u,u+=n;u>0;p=p*256+e[d],d--,u-=8);if(y===0)y=1-l;else{if(y===c)return p?NaN:h?-1/0:Infinity$1;p=p+pow(2,n),y=y-l}return(h?-1:1)*p*pow(2,y-n)},ieee754={pack,unpack},toObject$4=toObject$6,toAbsoluteIndex$1=toAbsoluteIndex$3,toLength$6=toLength$9,arrayFill$1=function e(n){for(var o=toObject$4(this),a=toLength$6(o.length),c=arguments.length,l=toAbsoluteIndex$1(c>1?arguments[1]:void 0,a),u=c>2?arguments[2]:void 0,d=u===void 0?a:toAbsoluteIndex$1(u,a);d>l;)o[l++]=n;return o},global$6=global$h,DESCRIPTORS$4=descriptors,NATIVE_ARRAY_BUFFER$1=arrayBufferNative,createNonEnumerableProperty$3=createNonEnumerableProperty$a,redefineAll=redefineAll$1,fails$6=fails$d,anInstance$1=anInstance$2,toInteger$1=toInteger$5,toLength$5=toLength$9,toIndex$1=toIndex$2,IEEE754=ieee754,getPrototypeOf$1=objectGetPrototypeOf,setPrototypeOf$3=objectSetPrototypeOf,getOwnPropertyNames$1=objectGetOwnPropertyNames.f,defineProperty$2=objectDefineProperty.f,arrayFill=arrayFill$1,setToStringTag=setToStringTag$3,InternalStateModule$1=internalState,getInternalState$1=InternalStateModule$1.get,setInternalState$1=InternalStateModule$1.set,ARRAY_BUFFER="ArrayBuffer",DATA_VIEW="DataView",PROTOTYPE="prototype",WRONG_LENGTH$1="Wrong length",WRONG_INDEX="Wrong index",NativeArrayBuffer=global$6[ARRAY_BUFFER],$ArrayBuffer=NativeArrayBuffer,$DataView=global$6[DATA_VIEW],$DataViewPrototype=$DataView&&$DataView[PROTOTYPE],ObjectPrototype$1=Object.prototype,RangeError$2=global$6.RangeError,packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(e){return[e&255]},packInt16=function(e){return[e&255,e>>8&255]},packInt32=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},unpackInt32=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},packFloat32=function(e){return packIEEE754(e,23,4)},packFloat64=function(e){return packIEEE754(e,52,8)},addGetter$1=function(e,n){defineProperty$2(e[PROTOTYPE],n,{get:function(){return getInternalState$1(this)[n]}})},get=function(e,n,o,a){var c=toIndex$1(o),l=getInternalState$1(e);if(c+n>l.byteLength)throw RangeError$2(WRONG_INDEX);var u=getInternalState$1(l.buffer).bytes,d=c+l.byteOffset,h=u.slice(d,d+n);return a?h:h.reverse()},set=function(e,n,o,a,c,l){var u=toIndex$1(o),d=getInternalState$1(e);if(u+n>d.byteLength)throw RangeError$2(WRONG_INDEX);for(var h=getInternalState$1(d.buffer).bytes,y=u+d.byteOffset,p=a(+c),v=0;v<n;v++)h[y+v]=p[l?v:n-v-1]};if(!NATIVE_ARRAY_BUFFER$1)$ArrayBuffer=function(n){anInstance$1(this,$ArrayBuffer,ARRAY_BUFFER);var o=toIndex$1(n);setInternalState$1(this,{bytes:arrayFill.call(new Array(o),0),byteLength:o}),DESCRIPTORS$4||(this.byteLength=o)},$DataView=function(n,o,a){anInstance$1(this,$DataView,DATA_VIEW),anInstance$1(n,$ArrayBuffer,DATA_VIEW);var c=getInternalState$1(n).byteLength,l=toInteger$1(o);if(l<0||l>c)throw RangeError$2("Wrong offset");if(a=a===void 0?c-l:toLength$5(a),l+a>c)throw RangeError$2(WRONG_LENGTH$1);setInternalState$1(this,{buffer:n,byteLength:a,byteOffset:l}),DESCRIPTORS$4||(this.buffer=n,this.byteLength=a,this.byteOffset=l)},DESCRIPTORS$4&&(addGetter$1($ArrayBuffer,"byteLength"),addGetter$1($DataView,"buffer"),addGetter$1($DataView,"byteLength"),addGetter$1($DataView,"byteOffset")),redefineAll($DataView[PROTOTYPE],{getInt8:function(n){return get(this,1,n)[0]<<24>>24},getUint8:function(n){return get(this,1,n)[0]},getInt16:function(n){var o=get(this,2,n,arguments.length>1?arguments[1]:void 0);return(o[1]<<8|o[0])<<16>>16},getUint16:function(n){var o=get(this,2,n,arguments.length>1?arguments[1]:void 0);return o[1]<<8|o[0]},getInt32:function(n){return unpackInt32(get(this,4,n,arguments.length>1?arguments[1]:void 0))},getUint32:function(n){return unpackInt32(get(this,4,n,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(n){return unpackIEEE754(get(this,4,n,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(n){return unpackIEEE754(get(this,8,n,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(n,o){set(this,1,n,packInt8,o)},setUint8:function(n,o){set(this,1,n,packInt8,o)},setInt16:function(n,o){set(this,2,n,packInt16,o,arguments.length>2?arguments[2]:void 0)},setUint16:function(n,o){set(this,2,n,packInt16,o,arguments.length>2?arguments[2]:void 0)},setInt32:function(n,o){set(this,4,n,packInt32,o,arguments.length>2?arguments[2]:void 0)},setUint32:function(n,o){set(this,4,n,packInt32,o,arguments.length>2?arguments[2]:void 0)},setFloat32:function(n,o){set(this,4,n,packFloat32,o,arguments.length>2?arguments[2]:void 0)},setFloat64:function(n,o){set(this,8,n,packFloat64,o,arguments.length>2?arguments[2]:void 0)}});else{if(!fails$6(function(){NativeArrayBuffer(1)})||!fails$6(function(){new NativeArrayBuffer(-1)})||fails$6(function(){return new NativeArrayBuffer,new NativeArrayBuffer(1.5),new NativeArrayBuffer(NaN),NativeArrayBuffer.name!=ARRAY_BUFFER})){$ArrayBuffer=function(n){return anInstance$1(this,$ArrayBuffer),new NativeArrayBuffer(toIndex$1(n))};for(var ArrayBufferPrototype=$ArrayBuffer[PROTOTYPE]=NativeArrayBuffer[PROTOTYPE],keys2=getOwnPropertyNames$1(NativeArrayBuffer),j=0,key;keys2.length>j;)(key=keys2[j++])in $ArrayBuffer||createNonEnumerableProperty$3($ArrayBuffer,key,NativeArrayBuffer[key]);ArrayBufferPrototype.constructor=$ArrayBuffer}setPrototypeOf$3&&getPrototypeOf$1($DataViewPrototype)!==ObjectPrototype$1&&setPrototypeOf$3($DataViewPrototype,ObjectPrototype$1);var testView=new $DataView(new $ArrayBuffer(2)),nativeSetInt8=$DataViewPrototype.setInt8;testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),(testView.getInt8(0)||!testView.getInt8(1))&&redefineAll($DataViewPrototype,{setInt8:function(n,o){nativeSetInt8.call(this,n,o<<24>>24)},setUint8:function(n,o){nativeSetInt8.call(this,n,o<<24>>24)}},{unsafe:!0})}setToStringTag($ArrayBuffer,ARRAY_BUFFER);setToStringTag($DataView,DATA_VIEW);var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},aFunction$2=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},anObject$3=anObject$9,aFunction$1=aFunction$2,wellKnownSymbol$9=wellKnownSymbol$e,SPECIES$2=wellKnownSymbol$9("species"),speciesConstructor$1=function(e,n){var o=anObject$3(e).constructor,a;return o===void 0||(a=anObject$3(o)[SPECIES$2])==null?n:aFunction$1(a)},$$2=_export,fails$5=fails$d,ArrayBufferModule$1=arrayBuffer,anObject$2=anObject$9,toAbsoluteIndex=toAbsoluteIndex$3,toLength$4=toLength$9,speciesConstructor=speciesConstructor$1,ArrayBuffer$3=ArrayBufferModule$1.ArrayBuffer,DataView$2=ArrayBufferModule$1.DataView,nativeArrayBufferSlice=ArrayBuffer$3.prototype.slice,INCORRECT_SLICE=fails$5(function(){return!new ArrayBuffer$3(2).slice(1,void 0).byteLength});$$2({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE},{slice:function e(n,o){if(nativeArrayBufferSlice!==void 0&&o===void 0)return nativeArrayBufferSlice.call(anObject$2(this),n);for(var a=anObject$2(this).byteLength,c=toAbsoluteIndex(n,a),l=toAbsoluteIndex(o===void 0?a:o,a),u=new(speciesConstructor(this,ArrayBuffer$3))(toLength$4(l-c)),d=new DataView$2(this),h=new DataView$2(u),y=0;c<l;)h.setUint8(y++,d.getUint8(c++));return u}});var DESCRIPTORS$3=descriptors,fails$4=fails$d,objectKeys=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$6,IndexedObject$1=indexedObject,nativeAssign=Object.assign,defineProperty$1=Object.defineProperty,objectAssign=!nativeAssign||fails$4(function(){if(DESCRIPTORS$3&&nativeAssign({b:1},nativeAssign(defineProperty$1({},"a",{enumerable:!0,get:function(){defineProperty$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},n={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach(function(c){n[c]=c}),nativeAssign({},e)[o]!=7||objectKeys(nativeAssign({},n)).join("")!=a})?function e(n,o){for(var a=toObject$3(n),c=arguments.length,l=1,u=getOwnPropertySymbolsModule.f,d=propertyIsEnumerableModule.f;c>l;)for(var h=IndexedObject$1(arguments[l++]),y=u?objectKeys(h).concat(u(h)):objectKeys(h),p=y.length,v=0,b;p>v;)b=y[v++],(!DESCRIPTORS$3||d.call(h,b))&&(a[b]=h[b]);return a}:nativeAssign,$$1=_export,assign2=objectAssign;$$1({target:"Object",stat:!0,forced:Object.assign!==assign2},{assign:assign2});var anObject$1=anObject$9,regexpFlags=function(){var e=anObject$1(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n},redefine$1=redefine$5.exports,anObject=anObject$9,fails$3=fails$d,flags=regexpFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,nativeToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$3(function(){return nativeToString.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME=nativeToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&redefine$1(RegExp.prototype,TO_STRING,function(){var n=anObject(this),o=String(n.source),a=n.flags,c=String(a===void 0&&n instanceof RegExp&&!("flags"in RegExpPrototype)?flags.call(n):a);return"/"+o+"/"+c},{unsafe:!0});var typedArrayConstructor={exports:{}},wellKnownSymbol$8=wellKnownSymbol$e,ITERATOR$3=wellKnownSymbol$8("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var checkCorrectnessOfIteration$1=function(e,n){if(!n&&!SAFE_CLOSING)return!1;var o=!1;try{var a={};a[ITERATOR$3]=function(){return{next:function(){return{done:o=!0}}}},e(a)}catch{}return o},wellKnownSymbol$7=wellKnownSymbol$e,TO_STRING_TAG$3=wellKnownSymbol$7("toStringTag"),test={};test[TO_STRING_TAG$3]="z";var toStringTagSupport=String(test)==="[object z]",TO_STRING_TAG_SUPPORT=toStringTagSupport,classofRaw=classofRaw$1,wellKnownSymbol$6=wellKnownSymbol$e,TO_STRING_TAG$2=wellKnownSymbol$6("toStringTag"),CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())=="Arguments",tryGet=function(e,n){try{return e[n]}catch{}},classof$4=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var n,o,a;return e===void 0?"Undefined":e===null?"Null":typeof(o=tryGet(n=Object(e),TO_STRING_TAG$2))=="string"?o:CORRECT_ARGUMENTS?classofRaw(n):(a=classofRaw(n))=="Object"&&typeof n.callee=="function"?"Arguments":a},NATIVE_ARRAY_BUFFER=arrayBufferNative,DESCRIPTORS$2=descriptors,global$5=global$h,isObject$3=isObject$9,has$1=has$b,classof$3=classof$4,createNonEnumerableProperty$2=createNonEnumerableProperty$a,redefine=redefine$5.exports,defineProperty2=objectDefineProperty.f,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,wellKnownSymbol$5=wellKnownSymbol$e,uid=uid$3,Int8Array$3=global$5.Int8Array,Int8ArrayPrototype=Int8Array$3&&Int8Array$3.prototype,Uint8ClampedArray$1=global$5.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray$1&&Uint8ClampedArray$1.prototype,TypedArray$1=Int8Array$3&&getPrototypeOf(Int8Array$3),TypedArrayPrototype$1=Int8ArrayPrototype&&getPrototypeOf(Int8ArrayPrototype),ObjectPrototype=Object.prototype,isPrototypeOf=ObjectPrototype.isPrototypeOf,TO_STRING_TAG$1=wellKnownSymbol$5("toStringTag"),TYPED_ARRAY_TAG$1=uid("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS$2=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf$2&&classof$3(global$5.opera)!=="Opera",TYPED_ARRAY_TAG_REQIRED=!1,NAME,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},isTypedArray$1=function(e){return isObject$3(e)&&has$1(TypedArrayConstructorsList,classof$3(e))},aTypedArray$4=function(e){if(isTypedArray$1(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor$2=function(e){if(setPrototypeOf$2){if(isPrototypeOf.call(TypedArray$1,e))return e}else for(var n in TypedArrayConstructorsList)if(has$1(TypedArrayConstructorsList,NAME)){var o=global$5[n];if(o&&(e===o||isPrototypeOf.call(o,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod$4=function(e,n,o){if(DESCRIPTORS$2){if(o)for(var a in TypedArrayConstructorsList){var c=global$5[a];c&&has$1(c.prototype,e)&&delete c.prototype[e]}(!TypedArrayPrototype$1[e]||o)&&redefine(TypedArrayPrototype$1,e,o?n:NATIVE_ARRAY_BUFFER_VIEWS$2&&Int8ArrayPrototype[e]||n)}};for(NAME in TypedArrayConstructorsList)global$5[NAME]||(NATIVE_ARRAY_BUFFER_VIEWS$2=!1);if((!NATIVE_ARRAY_BUFFER_VIEWS$2||typeof TypedArray$1!="function"||TypedArray$1===Function.prototype)&&(TypedArray$1=function(){throw TypeError("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$2))for(NAME in TypedArrayConstructorsList)global$5[NAME]&&setPrototypeOf$2(global$5[NAME],TypedArray$1);if((!NATIVE_ARRAY_BUFFER_VIEWS$2||!TypedArrayPrototype$1||TypedArrayPrototype$1===ObjectPrototype)&&(TypedArrayPrototype$1=TypedArray$1.prototype,NATIVE_ARRAY_BUFFER_VIEWS$2))for(NAME in TypedArrayConstructorsList)global$5[NAME]&&setPrototypeOf$2(global$5[NAME].prototype,TypedArrayPrototype$1);NATIVE_ARRAY_BUFFER_VIEWS$2&&getPrototypeOf(Uint8ClampedArrayPrototype)!==TypedArrayPrototype$1&&setPrototypeOf$2(Uint8ClampedArrayPrototype,TypedArrayPrototype$1);if(DESCRIPTORS$2&&!has$1(TypedArrayPrototype$1,TO_STRING_TAG$1)){TYPED_ARRAY_TAG_REQIRED=!0,defineProperty2(TypedArrayPrototype$1,TO_STRING_TAG$1,{get:function(){return isObject$3(this)?this[TYPED_ARRAY_TAG$1]:void 0}});for(NAME in TypedArrayConstructorsList)global$5[NAME]&&createNonEnumerableProperty$2(global$5[NAME],TYPED_ARRAY_TAG$1,NAME)}var arrayBufferViewCore={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$2,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQIRED&&TYPED_ARRAY_TAG$1,aTypedArray:aTypedArray$4,aTypedArrayConstructor:aTypedArrayConstructor$2,exportTypedArrayMethod:exportTypedArrayMethod$4,isTypedArray:isTypedArray$1,TypedArray:TypedArray$1,TypedArrayPrototype:TypedArrayPrototype$1},global$4=global$h,fails$2=fails$d,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,NATIVE_ARRAY_BUFFER_VIEWS$1=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$2=global$4.ArrayBuffer,Int8Array$2=global$4.Int8Array,typedArrayConstructorsRequireWrappers=!NATIVE_ARRAY_BUFFER_VIEWS$1||!fails$2(function(){Int8Array$2(1)})||!fails$2(function(){new Int8Array$2(-1)})||!checkCorrectnessOfIteration(function(e){new Int8Array$2,new Int8Array$2(null),new Int8Array$2(1.5),new Int8Array$2(e)},!0)||fails$2(function(){return new Int8Array$2(new ArrayBuffer$2(2),1,void 0).length!==1}),toInteger=toInteger$5,toPositiveInteger$1=function(e){var n=toInteger(e);if(n<0)throw RangeError("The argument can't be less than 0");return n},toPositiveInteger=toPositiveInteger$1,toOffset$2=function(e,n){var o=toPositiveInteger(e);if(o%n)throw RangeError("Wrong offset");return o},classof$2=classof$4,Iterators$1=iterators,wellKnownSymbol$4=wellKnownSymbol$e,ITERATOR$2=wellKnownSymbol$4("iterator"),getIteratorMethod$1=function(e){if(e!=null)return e[ITERATOR$2]||e["@@iterator"]||Iterators$1[classof$2(e)]},wellKnownSymbol$3=wellKnownSymbol$e,Iterators=iterators,ITERATOR$1=wellKnownSymbol$3("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return e!==void 0&&(Iterators.Array===e||ArrayPrototype[ITERATOR$1]===e)},aFunction=aFunction$2,functionBindContext=function(e,n,o){if(aFunction(e),n===void 0)return e;switch(o){case 0:return function(){return e.call(n)};case 1:return function(a){return e.call(n,a)};case 2:return function(a,c){return e.call(n,a,c)};case 3:return function(a,c,l){return e.call(n,a,c,l)}}return function(){return e.apply(n,arguments)}},toObject$2=toObject$6,toLength$3=toLength$9,getIteratorMethod=getIteratorMethod$1,isArrayIteratorMethod=isArrayIteratorMethod$1,bind$1=functionBindContext,aTypedArrayConstructor$1=arrayBufferViewCore.aTypedArrayConstructor,typedArrayFrom$1=function e(n){var o=toObject$2(n),a=arguments.length,c=a>1?arguments[1]:void 0,l=c!==void 0,u=getIteratorMethod(o),d,h,y,p,v,b;if(u!=null&&!isArrayIteratorMethod(u))for(v=u.call(o),b=v.next,o=[];!(p=b.call(v)).done;)o.push(p.value);for(l&&a>2&&(c=bind$1(c,arguments[2],2)),h=toLength$3(o.length),y=new(aTypedArrayConstructor$1(this))(h),d=0;h>d;d++)y[d]=l?c(o[d],d):o[d];return y},classof$1=classofRaw$1,isArray$1=Array.isArray||function e(n){return classof$1(n)=="Array"},isObject$2=isObject$9,isArray2=isArray$1,wellKnownSymbol$2=wellKnownSymbol$e,SPECIES$1=wellKnownSymbol$2("species"),arraySpeciesCreate$1=function(e,n){var o;return isArray2(e)&&(o=e.constructor,typeof o=="function"&&(o===Array||isArray2(o.prototype))?o=void 0:isObject$2(o)&&(o=o[SPECIES$1],o===null&&(o=void 0))),new(o===void 0?Array:o)(n===0?0:n)},bind=functionBindContext,IndexedObject=indexedObject,toObject$1=toObject$6,toLength$2=toLength$9,arraySpeciesCreate=arraySpeciesCreate$1,push=[].push,createMethod=function(e){var n=e==1,o=e==2,a=e==3,c=e==4,l=e==6,u=e==5||l;return function(d,h,y,p){for(var v=toObject$1(d),b=IndexedObject(v),_=bind(h,y,3),T=toLength$2(b.length),I=0,U=p||arraySpeciesCreate,N=n?U(d,T):o?U(d,0):void 0,D,L;T>I;I++)if((u||I in b)&&(D=b[I],L=_(D,I,v),e)){if(n)N[I]=L;else if(L)switch(e){case 3:return!0;case 5:return D;case 6:return I;case 2:push.call(N,D)}else if(c)return!1}return l?-1:a||c?c:N}},arrayIteration={forEach:createMethod(0)},getBuiltIn=getBuiltIn$3,definePropertyModule$1=objectDefineProperty,wellKnownSymbol$1=wellKnownSymbol$e,DESCRIPTORS$1=descriptors,SPECIES=wellKnownSymbol$1("species"),setSpecies$1=function(e){var n=getBuiltIn(e),o=definePropertyModule$1.f;DESCRIPTORS$1&&n&&!n[SPECIES]&&o(n,SPECIES,{configurable:!0,get:function(){return this}})},isObject$1=isObject$9,setPrototypeOf$1=objectSetPrototypeOf,inheritIfRequired$1=function(e,n,o){var a,c;return setPrototypeOf$1&&typeof(a=n.constructor)=="function"&&a!==o&&isObject$1(c=a.prototype)&&c!==o.prototype&&setPrototypeOf$1(e,c),e},$=_export,global$3=global$h,DESCRIPTORS=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$4=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance=anInstance$2,createPropertyDescriptor=createPropertyDescriptor$4,createNonEnumerableProperty$1=createNonEnumerableProperty$a,toLength$1=toLength$9,toIndex=toIndex$2,toOffset$1=toOffset$2,toPrimitive=toPrimitive$3,has=has$b,classof=classof$4,isObject=isObject$9,create2=objectCreate,setPrototypeOf=objectSetPrototypeOf,getOwnPropertyNames2=objectGetOwnPropertyNames.f,typedArrayFrom=typedArrayFrom$1,forEach=arrayIteration.forEach,setSpecies=setSpecies$1,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,InternalStateModule=internalState,inheritIfRequired=inheritIfRequired$1,getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,round=Math.round,RangeError$1=global$3.RangeError,ArrayBuffer$1=ArrayBufferModule.ArrayBuffer,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$4.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$4.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$4.TypedArray,TypedArrayPrototype=ArrayBufferViewCore$4.TypedArrayPrototype,aTypedArrayConstructor=ArrayBufferViewCore$4.aTypedArrayConstructor,isTypedArray=ArrayBufferViewCore$4.isTypedArray,BYTES_PER_ELEMENT="BYTES_PER_ELEMENT",WRONG_LENGTH="Wrong length",fromList=function(e,n){for(var o=0,a=n.length,c=new(aTypedArrayConstructor(e))(a);a>o;)c[o]=n[o++];return c},addGetter=function(e,n){nativeDefineProperty(e,n,{get:function(){return getInternalState(this)[n]}})},isArrayBuffer=function(e){var n;return e instanceof ArrayBuffer$1||(n=classof(e))=="ArrayBuffer"||n=="SharedArrayBuffer"},isTypedArrayIndex=function(e,n){return isTypedArray(e)&&typeof n!="symbol"&&n in e&&String(+n)==String(n)},wrappedGetOwnPropertyDescriptor=function e(n,o){return isTypedArrayIndex(n,o=toPrimitive(o,!0))?createPropertyDescriptor(2,n[o]):nativeGetOwnPropertyDescriptor(n,o)},wrappedDefineProperty=function e(n,o,a){return isTypedArrayIndex(n,o=toPrimitive(o,!0))&&isObject(a)&&has(a,"value")&&!has(a,"get")&&!has(a,"set")&&!a.configurable&&(!has(a,"writable")||a.writable)&&(!has(a,"enumerable")||a.enumerable)?(n[o]=a.value,n):nativeDefineProperty(n,o,a)};DESCRIPTORS?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype,"buffer"),addGetter(TypedArrayPrototype,"byteOffset"),addGetter(TypedArrayPrototype,"byteLength"),addGetter(TypedArrayPrototype,"length")),$({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(e,n,o){var a=e.match(/\d+$/)[0]/8,c=e+(o?"Clamped":"")+"Array",l="get"+e,u="set"+e,d=global$3[c],h=d,y=h&&h.prototype,p={},v=function(T,I){var U=getInternalState(T);return U.view[l](I*a+U.byteOffset,!0)},b=function(T,I,U){var N=getInternalState(T);o&&(U=(U=round(U))<0?0:U>255?255:U&255),N.view[u](I*a+N.byteOffset,U,!0)},_=function(T,I){nativeDefineProperty(T,I,{get:function(){return v(this,I)},set:function(U){return b(this,I,U)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(h=n(function(T,I,U,N){return anInstance(T,h,c),inheritIfRequired(function(){return isObject(I)?isArrayBuffer(I)?N!==void 0?new d(I,toOffset$1(U,a),N):U!==void 0?new d(I,toOffset$1(U,a)):new d(I):isTypedArray(I)?fromList(h,I):typedArrayFrom.call(h,I):new d(toIndex(I))}(),T,h)}),setPrototypeOf&&setPrototypeOf(h,TypedArray),forEach(getOwnPropertyNames2(d),function(T){T in h||createNonEnumerableProperty$1(h,T,d[T])}),h.prototype=y):(h=n(function(T,I,U,N){anInstance(T,h,c);var D=0,L=0,B,H,W;if(!isObject(I))W=toIndex(I),H=W*a,B=new ArrayBuffer$1(H);else if(isArrayBuffer(I)){B=I,L=toOffset$1(U,a);var X=I.byteLength;if(N===void 0){if(X%a||(H=X-L,H<0))throw RangeError$1(WRONG_LENGTH)}else if(H=toLength$1(N)*a,H+L>X)throw RangeError$1(WRONG_LENGTH);W=H/a}else return isTypedArray(I)?fromList(h,I):typedArrayFrom.call(h,I);for(setInternalState(T,{buffer:B,byteOffset:L,byteLength:H,length:W,view:new DataView$1(B)});D<W;)_(T,D++)}),setPrototypeOf&&setPrototypeOf(h,TypedArray),y=h.prototype=create2(TypedArrayPrototype)),y.constructor!==h&&createNonEnumerableProperty$1(y,"constructor",h),TYPED_ARRAY_TAG&&createNonEnumerableProperty$1(y,TYPED_ARRAY_TAG,c),p[c]=h,$({global:!0,forced:h!=d,sham:!NATIVE_ARRAY_BUFFER_VIEWS},p),BYTES_PER_ELEMENT in h||createNonEnumerableProperty$1(h,BYTES_PER_ELEMENT,a),BYTES_PER_ELEMENT in y||createNonEnumerableProperty$1(y,BYTES_PER_ELEMENT,a),setSpecies(c)}):typedArrayConstructor.exports=function(){};var createTypedArrayConstructor=typedArrayConstructor.exports;createTypedArrayConstructor("Uint8",function(e){return function(o,a,c){return e(this,o,a,c)}});var ArrayBufferViewCore$3=arrayBufferViewCore,$fill=arrayFill$1,aTypedArray$3=ArrayBufferViewCore$3.aTypedArray,exportTypedArrayMethod$3=ArrayBufferViewCore$3.exportTypedArrayMethod;exportTypedArrayMethod$3("fill",function e(n){return $fill.apply(aTypedArray$3(this),arguments)});var ArrayBufferViewCore$2=arrayBufferViewCore,toLength=toLength$9,toOffset=toOffset$2,toObject=toObject$6,fails$1=fails$d,aTypedArray$2=ArrayBufferViewCore$2.aTypedArray,exportTypedArrayMethod$2=ArrayBufferViewCore$2.exportTypedArrayMethod,FORCED$1=fails$1(function(){new Int8Array(1).set({})});exportTypedArrayMethod$2("set",function e(n){aTypedArray$2(this);var o=toOffset(arguments.length>1?arguments[1]:void 0,1),a=this.length,c=toObject(n),l=toLength(c.length),u=0;if(l+o>a)throw RangeError("Wrong length");for(;u<l;)this[o+u]=c[u++]},FORCED$1);var ArrayBufferViewCore$1=arrayBufferViewCore,aTypedArray$1=ArrayBufferViewCore$1.aTypedArray,exportTypedArrayMethod$1=ArrayBufferViewCore$1.exportTypedArrayMethod,$sort=[].sort;exportTypedArrayMethod$1("sort",function e(n){return $sort.call(aTypedArray$1(this),n)});var global$2=global$h,ArrayBufferViewCore=arrayBufferViewCore,fails=fails$d,Int8Array$1=global$2.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,$slice=[].slice,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails(function(){$toLocaleString.call(new Int8Array$1(1))}),FORCED=fails(function(){return[1,2].toLocaleString()!=new Int8Array$1([1,2]).toLocaleString()})||!fails(function(){Int8Array$1.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod("toLocaleString",function e(){return $toLocaleString.apply(TO_LOCALE_STRING_BUG?$slice.call(aTypedArray(this)):aTypedArray(this),arguments)},FORCED);var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},global$1=global$h,DOMIterables=domIterables,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$a,wellKnownSymbol=wellKnownSymbol$e,ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values;for(var COLLECTION_NAME in DOMIterables){var Collection=global$1[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype){if(CollectionPrototype[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR,ArrayValues)}catch{CollectionPrototype[ITERATOR]=ArrayValues}if(CollectionPrototype[TO_STRING_TAG]||createNonEnumerableProperty(CollectionPrototype,TO_STRING_TAG,COLLECTION_NAME),DOMIterables[COLLECTION_NAME]){for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch{CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}}function __awaiter(e,n,o,a){function c(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(p){try{y(a.next(p))}catch(v){u(v)}}function h(p){try{y(a.throw(p))}catch(v){u(v)}}function y(p){p.done?l(p.value):c(p.value).then(d,h)}y((a=a.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;var icon="data:image/png;base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z7ZO05Mx82cmwYvMZFSJqArYukaKFyZpNwRETRf6Mpkg9S7WmxgBPVTBQT6JaADcIhJv5iMz5AXE/3joGNiOhWAO53Gd5tbDpZLOH/sVkiZjOYKiVpnq07LZPQEDQEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAgQQJ/D/LxtSxjmI1fwAAAABJRU5ErkJggg==";const STORAGE_ACCOUNT="account",isInstalled=()=>waitFor(()=>!!window.dapp).catch(()=>!1);function setupWalletState(e){return __awaiter(this,void 0,void 0,function*(){const n=yield e.getItem(STORAGE_ACCOUNT);return window.dapp?{wallet:window.dapp,account:n||void 0}:{}})}const WelldoneWallet=({options:e,store:n,emitter:o,logger:a,storage:c,provider:l})=>__awaiter(void 0,void 0,void 0,function*(){const u=yield setupWalletState(c),d=()=>__awaiter(void 0,void 0,void 0,function*(){if(u.wallet){const I=yield u.wallet.request("near",{method:"dapp:accounts"});return I.near?[I.near.address,I.near.pubKey]:[]}return[]}),h=({accountId:I,publicKey:U})=>__awaiter(void 0,void 0,void 0,function*(){if(a.log("validateAccessKey",{accountId:I,publicKey:U}),!u.wallet)throw new Error("Wallet is not installed");const N=yield u.wallet.request("near",{method:"query",params:{request_type:"view_access_key",finality:"final",account_id:I,public_key:U}});if(a.log("validateAccessKey:accessKey",{accessKey:N}),N.permission!=="FullAccess")throw new Error("Public key requires 'FullAccess' permission");return N}),y=()=>{u.account&&(c.removeItem(STORAGE_ACCOUNT),delete u.account)},p=()=>u.account?[{accountId:u.account.accountId,publicKey:u.account.publicKey}]:[],v=()=>__awaiter(void 0,void 0,void 0,function*(){y(),o.emit("signedOut",null)}),b=()=>{u.wallet&&(u.wallet.on("dapp:accountsChanged",I=>__awaiter(void 0,void 0,void 0,function*(){a.log("onAccountChange",I),yield v()})),u.wallet.on("dapp:chainChanged",I=>__awaiter(void 0,void 0,void 0,function*(){a.log("onNetworkChange",I);const U=I.split(":")[1]==="near"?"mainnet":"testnet";e.network.networkId!==U&&(yield v(),o.emit("networkChanged",{networkId:U}))})))},_={createKey:()=>{throw new Error("Not implemented")},getPublicKey:I=>__awaiter(void 0,void 0,void 0,function*(){const N=p().find(D=>D.accountId===I);if(!N)throw new Error("Failed to find public key for account");return browserIndex$2.utils.PublicKey.from(N.publicKey)}),signMessage:(I,U)=>__awaiter(void 0,void 0,void 0,function*(){if(!u.wallet)throw new Error("Wallet is not installed");if(!p().find(L=>L.accountId===U))throw new Error("Failed to find account for signing");try{const L=browserIndex$2.transactions.Transaction.decode(Buffer.from(I)),B=Buffer.from(L.encode()).toString("hex"),H=yield u.wallet.request("near",{method:"dapp:signTransaction",params:["0x"+B]});return{signature:Buffer.from(H[0].signature.substr(2),"hex"),publicKey:browserIndex$2.utils.PublicKey.from(H[0].publicKey)}}catch{const B=yield u.wallet.request("near",{method:"dapp:signMessage",params:["0x"+Buffer.from(I).toString("hex")]});return{signature:Buffer.from(B[0].signature.substr(2),"hex"),publicKey:browserIndex$2.utils.PublicKey.from(B[0].publicKey)}}})},T=I=>{const U=p(),{contract:N}=n.getState();if(!U.length||!N)throw new Error("Wallet not signed in");return I.map(D=>({signerId:D.signerId||U[0].accountId,receiverId:D.receiverId||N.contractId,actions:D.actions}))};return{signIn(){return __awaiter(this,void 0,void 0,function*(){const I=p();if(I.length)return I;u.account&&(yield v());const U=yield d();if(!(yield h({accountId:U[0],publicKey:U[1]})))throw v(),new Error(`Public key (${U[1]}) is not registered with the account '${U[0]}'.`);return yield c.setItem(STORAGE_ACCOUNT,{accountId:U[0],publicKey:U[1]}),u.account={accountId:U[0],publicKey:U[1]},b(),p()})},getAccounts(){return __awaiter(this,void 0,void 0,function*(){return p()})},signOut:v,verifyOwner({message:I}){return __awaiter(this,void 0,void 0,function*(){if(a.log("verifyOwner",{message:I}),!u.wallet)throw new Error("Wallet is not installed");const U=u.account;if(!U)throw new Error("Wallet not signed in");const N=U.accountId,D=browserIndex$2.utils.PublicKey.fromString(U.publicKey),L=yield l.block({finality:"final"}),B={accountId:N,message:I,blockId:L.header.hash,publicKey:Buffer.from(D.data).toString("base64"),keyType:D.keyType},H=JSON.stringify(B),W=yield _.signMessage(new Uint8Array(Buffer.from(H)),N);return Object.assign(Object.assign({},B),{signature:Buffer.from(W.signature).toString("base64")})})},signMessage(I){return __awaiter(this,void 0,void 0,function*(){if(!u.wallet)throw new Error("Wallet is not installed");const N=(yield d())[0];if(!N)throw new Error("Failed to find account for signing");const D=serializeNep413(I),L=yield u.wallet.request("near",{method:"dapp:signMessage",params:["0x"+D.toString("hex")]}),B={accountId:N,publicKey:L[0].publicKey,signature:Buffer.from(L[0].signature.substr(2),"hex").toString("base64")};return I.state?Object.assign(Object.assign({},B),{state:I.state}):B})},signAndSendTransaction({signerId:I,receiverId:U,actions:N}){return __awaiter(this,void 0,void 0,function*(){a.log("signAndSendTransaction",{signerId:I,receiverId:U,actions:N});const{contract:D}=n.getState();if(!p().length||!D)throw new Error("Wallet not signed in");const[B]=yield signTransactions(T([{signerId:I,receiverId:U,actions:N}]),_,e.network);return l.sendTransaction(B)})},signAndSendTransactions({transactions:I}){return __awaiter(this,void 0,void 0,function*(){a.log("signAndSendTransactions",{transactions:I});const U=yield signTransactions(T(I),_,e.network),N=[];for(let D=0;D<U.length;D++)N.push(yield l.sendTransaction(U[D]));return N})},importAccountsInSecureContext({accounts:I}){return __awaiter(this,void 0,void 0,function*(){if(!u.wallet)throw new Error("Wallet is not installed");const U=[];I.forEach(({privateKey:D})=>{D.slice(0,8)==="ed25519:"?U.push(D.slice(8)):U.push(D)});const N={privateKey:U,network:e.network.networkId};yield u.wallet.request("near",{method:"experimental:near:importPrivatekey",params:[N]})})}}});function setupWelldoneWallet({iconUrl:e=icon,deprecated:n=!1}={}){return()=>__awaiter(this,void 0,void 0,function*(){const o=isMobile$2(),a=isCurrentBrowserSupported(["chrome","edge-chromium","opera"]);if(o||!a)return null;const c=yield isInstalled();return{id:"welldone-wallet",type:"injected",metadata:{name:"WELLDONE Wallet",description:"WELLDONE Wallet for Multichains",iconUrl:e,downloadUrl:"https://chrome.google.com/webstore/detail/welldone-wallet/bmkakpenjmcpfhhjadflneinmhboecjf",deprecated:n,available:c},init:WelldoneWallet}})}const THIRTY_TGAS="30000000000000",NO_DEPOSIT="0";class Wallet{constructor({networkId:n="testnet",createAccessKeyFor:o=void 0}){pe(this,"startUp",async n=>{this.selector=setupWalletSelector({network:this.networkId,modules:[setupMeteorWallet(),setupLedger(),lib$p.setupBitteWallet(),setupHereWallet(),setupSender(),setupNearMobileWallet(),setupWelldoneWallet(),setupMyNearWallet()]});const o=await this.selector,c=o.isSignedIn()?o.store.getState().accounts[0].accountId:"";return o.store.observable.subscribe(async l=>{var d;const u=(d=l==null?void 0:l.accounts.find(h=>h.active))==null?void 0:d.accountId;n(u||"")}),c});pe(this,"signIn",async()=>{setupModal(await this.selector,{contractId:this.createAccessKeyFor}).show()});pe(this,"signOut",async()=>{(await(await this.selector).wallet()).signOut()});pe(this,"viewMethod",async({contractId:n,method:o,args:a={}})=>{const c=`https://rpc.${this.networkId}.near.org`,u=await new browserIndex$4.providers.JsonRpcProvider({url:c}).query({request_type:"call_function",account_id:n,method_name:o,args_base64:buffer$1.Buffer.from(JSON.stringify(a)).toString("base64"),finality:"optimistic"});return JSON.parse(buffer$1.Buffer.from(u.result).toString())});pe(this,"callMethod",async({contractId:n,method:o,args:a={},gas:c=THIRTY_TGAS,deposit:l=NO_DEPOSIT})=>{const d=await(await(await this.selector).wallet()).signAndSendTransaction({receiverId:n,actions:[{type:"FunctionCall",params:{methodName:o,args:a,gas:c,deposit:l}}]});return browserIndex$4.providers.getTransactionLastResult(d)});pe(this,"getTransactionResult",async n=>{const o=await this.selector,{network:a}=o.options,l=await new browserIndex$4.providers.JsonRpcProvider({url:a.nodeUrl}).txStatus(n,"unnused");return browserIndex$4.providers.getTransactionLastResult(l)});pe(this,"getBalance",async(n,o=!1)=>{const a=await this.selector,{network:c}=a.options,u=await new browserIndex$4.providers.JsonRpcProvider({url:c.nodeUrl}).query({request_type:"view_account",account_id:n,finality:"final"});return o?u.amount?browserIndex$4.utils.format.formatNearAmount(u.amount):"0":u.amount||"0"});pe(this,"signAndSendTransactions",async({transactions:n})=>(await(await this.selector).wallet()).signAndSendTransactions({transactions:n}));pe(this,"getAccessKeys",async n=>{const o=await this.selector,{network:a}=o.options;return(await new browserIndex$4.providers.JsonRpcProvider({url:a.nodeUrl}).query({request_type:"view_access_key_list",account_id:n,finality:"final"})).keys});this.createAccessKeyFor=o,this.networkId=n}}const NearContext=reactExports.createContext({wallet:void 0,signedAccountId:""}),Navigation=()=>{const{networkId:e,onNetworkChange:n,signedAccountId:o,wallet:a}=reactExports.useContext(NearContext),c=async u=>{const d=u.target.checked?"mainnet":"testnet";n(d)},l=()=>{o?a.signOut():a.signIn()};return jsxRuntimeExports.jsx("nav",{className:styles$6.navbar,children:jsxRuntimeExports.jsxs("div",{className:styles$6.navContent,children:[jsxRuntimeExports.jsx("div",{className:styles$6.toggleContainer,children:jsxRuntimeExports.jsxs("div",{className:networkStyles.networkToggle,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:networkStyles.networkToggleInput,id:"networkToggle",checked:e==="mainnet",onChange:c}),jsxRuntimeExports.jsx("label",{className:networkStyles.networkToggleLabel,htmlFor:"networkToggle",children:jsxRuntimeExports.jsx("div",{className:networkStyles.networkToggleInner,children:jsxRuntimeExports.jsx("div",{className:networkStyles.networkToggleSwitch})})})]})}),jsxRuntimeExports.jsx("button",{className:styles$6.loginButton,onClick:l,children:o?"Logout":"Login"})]})})},footer="_footer_1q9e8_1",styles$5={footer},Footer=()=>jsxRuntimeExports.jsx("footer",{className:styles$5.footer,children:jsxRuntimeExports.jsx("div",{className:"text-uppercase",children:"COPYRIGHT 2025 BY SLEET.NEAR"})}),container$4="_container_tpc79_1",logo="_logo_tpc79_14",title$4="_title_tpc79_20",subtitle="_subtitle_tpc79_28",styles$4={container:container$4,logo,title:title$4,subtitle},sleetIcon="/assets/sleet_code_icon_trans-BBonpfqZ.png",HeaderContent=()=>jsxRuntimeExports.jsxs("div",{className:styles$4.container,children:[jsxRuntimeExports.jsx("img",{src:sleetIcon,alt:"Sleet Code Icon",className:styles$4.logo}),jsxRuntimeExports.jsxs("h1",{className:styles$4.title,children:["SLEET",jsxRuntimeExports.jsx("br",{}),"CREATE"]}),jsxRuntimeExports.jsxs("p",{className:styles$4.subtitle,children:["NEAR ACCOUNT CREATION",jsxRuntimeExports.jsx("br",{}),"AND LEARNING PLAYGROUND"]})]}),container$3="_container_e7nk3_1",title$3="_title_e7nk3_15",description$3="_description_e7nk3_23",actionArea$2="_actionArea_e7nk3_33",button$1="_button_e7nk3_45",keyInfo="_keyInfo_e7nk3_67",warningBox="_warningBox_e7nk3_72",keyBox="_keyBox_e7nk3_81",styles$3={container:container$3,title:title$3,description:description$3,actionArea:actionArea$2,button:button$1,keyInfo,warningBox,keyBox},KeyPairs=()=>{const[e,n]=reactExports.useState(null),o=()=>{const c=browserIndex$4.KeyPair.fromRandom("ed25519");n(c)},a=()=>{if(!e)return;const c=["# NEAR Key Pair Information","","⚠️ **IMPORTANT: Keep this information secure and private!**","","## Public Key","```",e.getPublicKey().toString(),"```","","## Private Key","⚠️ **WARNING: Never share your private key with anyone!**","```",e.toString(),"```","","## Security Notes","- Store this information in a secure location","- Never share your private key","- Make sure to backup this information","- Required for account recovery"].join(`
`),l=new Blob([c],{type:"text/markdown"}),u=URL.createObjectURL(l),d=document.createElement("a");d.href=u,d.download="near-keypair.md",d.click(),URL.revokeObjectURL(u)};return jsxRuntimeExports.jsxs("div",{className:styles$3.container,children:[jsxRuntimeExports.jsx("h2",{className:styles$3.title,children:"Create Key Pairs"}),jsxRuntimeExports.jsx("p",{className:styles$3.description,children:"Generate a new key pair that can be used independently or for future NEAR accounts. This includes a public key (shared) and private key (secret)."}),jsxRuntimeExports.jsxs("div",{className:styles$3.actionArea,children:[jsxRuntimeExports.jsx("button",{className:styles$3.button,onClick:o,children:"Generate New Key Pair"}),jsxRuntimeExports.jsx("button",{className:styles$3.button,onClick:a,disabled:!e,children:"Save as Markdown"}),e&&jsxRuntimeExports.jsxs("div",{className:styles$3.keyInfo,children:[jsxRuntimeExports.jsx("div",{className:styles$3.warningBox,children:"⚠️ Warning: Keep your private key secure and never share it with anyone! Make sure to save and backup this information if you plan to use it for a NEAR account."}),jsxRuntimeExports.jsxs("div",{className:styles$3.keyBox,children:[jsxRuntimeExports.jsx("h3",{children:"Public Key"}),jsxRuntimeExports.jsx("pre",{children:e.getPublicKey().toString()})]}),jsxRuntimeExports.jsxs("div",{className:styles$3.keyBox,children:[jsxRuntimeExports.jsx("h3",{children:"Private Key"}),jsxRuntimeExports.jsx("pre",{children:e.toString()})]})]})]})]})},container$2="_container_1o3pr_1",title$2="_title_1o3pr_13",description$2="_description_1o3pr_21",cliInfo="_cliInfo_1o3pr_31",cliNote="_cliNote_1o3pr_39",cliCommand="_cliCommand_1o3pr_46",styles$2={container:container$2,title:title$2,description:description$2,cliInfo,cliNote,cliCommand},ImplicitAccounts=()=>jsxRuntimeExports.jsxs("div",{className:styles$2.container,children:[jsxRuntimeExports.jsx("h2",{className:styles$2.title,children:"Create Implicit Accounts"}),jsxRuntimeExports.jsx("p",{className:styles$2.description,children:"Implicit accounts are denoted by a 64 character address, which corresponds to a unique public/private key-pair."}),jsxRuntimeExports.jsx("div",{className:styles$2.cliInfo,children:jsxRuntimeExports.jsxs("p",{className:styles$2.cliNote,children:["Create using NEAR CLI:",jsxRuntimeExports.jsx("code",{className:styles$2.cliCommand,children:"near account create-account fund-later use-auto-generation save-to-folder ~/.near-credentials/implicit"})]})})]}),container$1="_container_18cbp_1",title$1="_title_18cbp_13",description$1="_description_18cbp_21",actionArea$1="_actionArea_18cbp_31",cliExample="_cliExample_18cbp_38",cliTitle="_cliTitle_18cbp_47",cliCode="_cliCode_18cbp_53",inputGroup="_inputGroup_18cbp_65",input$1="_input_18cbp_65",button="_button_18cbp_86",error="_error_18cbp_101",styles$1={container:container$1,title:title$1,description:description$1,actionArea:actionArea$1,cliExample,cliTitle,cliCode,inputGroup,input:input$1,button,error},contractPerNetwork={mainnet:"near",testnet:"testnet"},networkId=localStorage.getItem("networkId")||"testnet",NetworkId=networkId,NearContract=contractPerNetwork[NetworkId],NamedAccounts=()=>{const{networkId:e}=reactExports.useContext(NearContext),[n,o]=reactExports.useState(""),[a,c]=reactExports.useState(""),[l,u]=reactExports.useState(""),[d,h]=reactExports.useState(null),[y,p]=reactExports.useState(!1),[v,b]=reactExports.useState(null),[_,T]=reactExports.useState(null),[I,U]=reactExports.useState("near create-account example.testnet --masterAccount funding-account.testnet --initialBalance 10");reactExports.useEffect(()=>{(async()=>{const B=new Wallet({networkId:e});await B.startUp(()=>{}),h(B)})()},[e]);const N=async L=>{if(!L){b(null);return}try{const B=new browserIndex$4.providers.JsonRpcProvider({url:`https://rpc.${e}.near.org`});try{await B.query({request_type:"view_account",account_id:L,finality:"optimistic"}),b(!1)}catch(H){const W=H.toString();W.includes("does not exist")?b(!0):(b(null),console.error("Error checking account availability:",W))}}catch(B){console.error("Error initializing provider:",B),b(null)}finally{p(!1)}},D=async()=>{try{if(u(""),!n||!a){u("Please fill in both account ID and public key");return}if(!d){u("Wallet is not initialized");return}if(!/^[a-z0-9-_]+\.testnet$/.test(n)&&!/^[a-z0-9-_]+\.near$/.test(n)){u("Invalid account ID format. Must end with .near or .testnet and contain only lowercase letters, numbers, - or _");return}if(!/^ed25519:[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$/.test(a)){u('Invalid public key format. Must start with "ed25519:" followed by base58 characters');return}await d.callMethod({contractId:NearContract,method:"create_account",args:{new_account_id:n,new_public_key:a}})}catch(L){let B="Failed to create account";try{const H=JSON.parse(L.message);H.kind&&H.kind.account_id&&(B=`Account creation failed: The account ${H.kind.account_id} is not available`)}catch{B=L.message}u(B)}};return reactExports.useEffect(()=>{if(n){const L=e==="mainnet"?"near":"testnet",B=a?` --publicKey ${a}`:"";U(`near create-account ${n} --masterAccount funding-account.${L} --initialBalance 1${B}`)}else{const L=e==="mainnet"?"near":"testnet";U(`near create-account example.${L} --masterAccount funding-account.${L} --initialBalance 1`)}},[n,a,e]),jsxRuntimeExports.jsxs("div",{className:styles$1.container,children:[jsxRuntimeExports.jsx("h2",{className:styles$1.title,children:"Create NEAR Named Accounts"}),jsxRuntimeExports.jsx("p",{className:styles$1.description,children:"Create a human-readable account name on NEAR. This requires an existing account to act as the funding account."}),jsxRuntimeExports.jsxs("div",{className:styles$1.cliExample,children:[jsxRuntimeExports.jsx("p",{className:styles$1.cliTitle,children:"NEAR CLI Command:"}),jsxRuntimeExports.jsx("code",{className:styles$1.cliCode,children:I})]}),jsxRuntimeExports.jsxs("div",{className:styles$1.actionArea,children:[jsxRuntimeExports.jsxs("div",{className:styles$1.inputGroup,children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Enter account ID (without .${e==="mainnet"?"near":"testnet"})`,value:n.split(".")[0],onChange:L=>{const B=L.target.value.toLowerCase().replace(/[^a-z0-9-_]/g,""),W=B?`${B}.${e==="mainnet"?"near":"testnet"}`:"";o(W),_&&clearTimeout(_),W?(p(!0),T(setTimeout(()=>{N(W)},500))):b(null)},className:styles$1.input}),jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Enter public key (ed25519:...)",value:a,onChange:L=>c(L.target.value),className:styles$1.input}),y&&jsxRuntimeExports.jsx("p",{className:styles$1.checking,children:"Checking availability..."}),!y&&v===!0&&n&&jsxRuntimeExports.jsx("p",{className:styles$1.available,children:"✓ Account name is available"}),!y&&v===!1&&n&&jsxRuntimeExports.jsx("p",{className:styles$1.unavailable,children:"✗ Account name is not available"}),jsxRuntimeExports.jsx("button",{onClick:D,className:styles$1.button,children:"Create Account"})]}),l&&jsxRuntimeExports.jsx("p",{className:styles$1.error,children:l})]})]})},container="_container_lca1b_1",title="_title_lca1b_13",description="_description_lca1b_21",actionArea="_actionArea_lca1b_31",formGroup="_formGroup_lca1b_38",input="_input_lca1b_42",cliPreview="_cliPreview_lca1b_58",styles={container,title,description,actionArea,formGroup,input,cliPreview},SubAccounts=()=>{const[e,n]=reactExports.useState(""),[o,a]=reactExports.useState(""),[c,l]=reactExports.useState(""),u=()=>{if(!e||!o)return"";let h=`near create-account ${`${o}.${e}`} --masterAccount ${e} --initialBalance 1`;return c&&(h+=` --publicKey ${c}`),h};return jsxRuntimeExports.jsxs("div",{className:styles.container,children:[jsxRuntimeExports.jsx("h2",{className:styles.title,children:"Create NEAR Subaccounts"}),jsxRuntimeExports.jsx("p",{className:styles.description,children:"Create accounts under your main account (e.g., app.myaccount.near). This requires an existing account to act as the parent account."}),jsxRuntimeExports.jsxs("div",{className:styles.actionArea,children:[jsxRuntimeExports.jsx("div",{className:styles.formGroup,children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Master Account (e.g., myaccount.near)",value:e,onChange:d=>n(d.target.value),className:styles.input})}),jsxRuntimeExports.jsx("div",{className:styles.formGroup,children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Subaccount ID (e.g., app)",value:o,onChange:d=>a(d.target.value),className:styles.input})}),jsxRuntimeExports.jsx("div",{className:styles.formGroup,children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Public Key (optional)",value:c,onChange:d=>l(d.target.value),className:styles.input})}),jsxRuntimeExports.jsxs("div",{className:styles.cliPreview,children:[jsxRuntimeExports.jsx("h3",{children:"CLI Command Preview:"}),jsxRuntimeExports.jsx("pre",{children:u()||"near create-account app.myaccount.near --masterAccount myaccount.near --initialBalance 1"})]})]})]})},MainContent=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderContent,{}),jsxRuntimeExports.jsx(KeyPairs,{}),jsxRuntimeExports.jsx(ImplicitAccounts,{}),jsxRuntimeExports.jsx(NamedAccounts,{}),jsxRuntimeExports.jsx(SubAccounts,{})]});function App(){const[e,n]=reactExports.useState(null),o=localStorage.getItem("networkId")||NetworkId,a=reactExports.useMemo(()=>new Wallet({networkId:o,createAccessKeyFor:e}),[o,e]);reactExports.useEffect(()=>{a.startUp(n)},[a]);const c=reactExports.useCallback(async l=>{e||(localStorage.setItem("networkId",l),window.location.reload())},[e]);return jsxRuntimeExports.jsx(NearContext.Provider,{value:{wallet:a,signedAccountId:e,networkId:o,onNetworkChange:c},children:jsxRuntimeExports.jsxs("div",{className:"container d-flex flex-column min-vh-100",children:[jsxRuntimeExports.jsx(Navigation,{}),jsxRuntimeExports.jsx("main",{className:"mt-4 flex-grow-1",children:jsxRuntimeExports.jsx(MainContent,{})}),jsxRuntimeExports.jsx(Footer,{})]})})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));
fs_store()
reak;case"value":u=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(formatProdErrorMessage(137,n));break;default:_!==v&&setProp(e,n,b,_,a,v)}}updateInput(e,u,d,h,y,p,l,c);return;case"select":_=u=d=b=null;for(l in o)if(h=o[l],o.hasOwnProperty(l)&&h!=null)switch(l){case"value":break;case"multiple":_=h;default:a.hasOwnProperty(l)||setProp(e,n,l,null,a,h)}for(c in a)if(l=a[c],h=o[c],a.hasOwnProperty(c)&&(l!=null||h!=null))switch(c){case"value":b=l;break;case"defaultValue":d=l;break;case"multiple":u=l;default:l!==h&&setProp(e,n,c,l,a,h)}n=d,o=u,a=_,b!=null?updateOptions(e,!!o,b,!1):!!a!=!!o&&(n!=null?updateOptions(e,!!o,n,!0):updateOptions(e,!!o,o?[]:"",!1));return;case"textarea":_=b=null;for(d in o)if(c=o[d],o.hasOwnProperty(d)&&c!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:setProp(e,n,d,null,a,c)}for(u in a)if(c=a[u],l=o[u],a.hasOwnProperty(u)&&(c!=null||l!=null))switch(u){case"value":b=c;break;case"defaultValue":_=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(formatProdErrorMessage(91));break;default:c!==l&&setProp(e,n,u,c,a,l)}updateTextarea(e,b,_);return;case"option":for(var T in o)if(b=o[T],o.hasOwnProperty(T)&&b!=null&&!a.hasOwnProperty(T))switch(T){case"selected":e.selected=!1;break;default:setProp(e,n,T,null,a,b)}for(h in a)if(b=a[h],_=o[h],a.hasOwnProperty(h)&&b!==_&&(b!=null||_!=null))switch(h){case"selected":e.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:setProp(e,n,h,b,a,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in o)b=o[I],o.hasOwnProperty(I)&&b!=null&&!a.hasOwnProperty(I)&&setProp(e,n,I,null,a,b);for(y in a)if(b=a[y],_=o[y],a.hasOwnProperty(y)&&b!==_&&(b!=null||_!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(formatProdErrorMessage(137,n));break;default:setProp(e,n,y,b,a,_)}return;default:if(isCustomElement(n)){for(var U in o)b=o[U],o.hasOwnProperty(U)&&b!==void 0&&!a.hasOwnProperty(U)&&setPropOnCustomElement(e,n,U,void 0,a,b);for(p in a)b=a[p],_=o[p],!a.hasOwnProperty(p)||b===_||b===void 0&&_===void 0||setPropOnCustomElement(e,n,p,b,a,_);return}}for(var N in o)b=o[N],o.hasOwnProperty(N)&&b!=null&&!a.hasOwnProperty(N)&&setProp(e,n,N,null,a,b);for(v in a)b=a[v],_=o[v],!a.hasOwnProperty(v)||b===_||b==null&&_==null||setProp(e,n,v,b,a,_)}var eventsEnabled=null,selectionInformation=null;function getOwnerDocumentFromRootContainer(e){return e.nodeType===9?e:e.ownerDocument}function getOwnHostContext(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function getChildHostContextProd(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function shouldSetTextContent(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var currentPopstateTransitionEvent=null;function shouldAttemptEagerTransition(){var e=window.event;return e&&e.type==="popstate"?e===currentPopstateTransitionEvent?!1:(currentPopstateTransitionEvent=e,!0):(currentPopstateTransitionEvent=null,!1)}var scheduleTimeout=typeof setTimeout=="function"?setTimeout:void 0,cancelTimeout=typeof clearTimeout=="function"?clearTimeout:void 0,localPromise=typeof Promise=="function"?Promise:void 0,scheduleMicrotask=typeof queueMicrotask=="function"?queueMicrotask:typeof localPromise<"u"?function(e){return localPromise.resolve(null).then(e).catch(handleErrorInNextTick)}:scheduleTimeout;function handleErrorInNextTick(e){setTimeout(function(){throw e})}function clearSuspenseBoundary(e,n){var o=n,a=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){e.removeChild(c),retryIfBlockedOn(n);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);retryIfBlockedOn(n)}function clearContainerSparingly(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":clearContainerSparingly(o),detachDeletedInstance(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function canHydrateInstance(e,n,o,a){for(;e.nodeType===1;){var c=o;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[internalHoistableMarker])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==c.rel||e.getAttribute("href")!==(c.href==null?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var l=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=getNextHydratable(e.nextSibling),e===null)break}return null}function canHydrateTextInstance(e,n,o){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=getNextHydratable(e.nextSibling),e===null))return null;return e}function getNextHydratable(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}function getParentSuspenseInstance(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}function resolveSingletonInstance(e,n,o){switch(n=getOwnerDocumentFromRootContainer(o),e){case"html":if(e=n.documentElement,!e)throw Error(formatProdErrorMessage(452));return e;case"head":if(e=n.head,!e)throw Error(formatProdErrorMessage(453));return e;case"body":if(e=n.body,!e)throw Error(formatProdErrorMessage(454));return e;default:throw Error(formatProdErrorMessage(451))}}var preloadPropsMap=new Map,preconnectsSet=new Set;function getHoistableRoot(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var previousDispatcher=ReactDOMSharedInternals.d;ReactDOMSharedInternals.d={f:flushSyncWork,r:requestFormReset,D:prefetchDNS,C:preconnect,L:preload,m:preloadModule,X:preinitScript,S:preinitStyle,M:preinitModuleScript};function flushSyncWork(){var e=previousDispatcher.f(),n=flushSyncWork$1();return e||n}function requestFormReset(e){var n=getInstanceFromNode(e);n!==null&&n.tag===5&&n.type==="form"?requestFormReset$1(n):previousDispatcher.r(e)}var globalDocument=typeof document>"u"?null:document;function preconnectAs(e,n,o){var a=globalDocument;if(a&&typeof n=="string"&&n){var c=escapeSelectorAttributeValueInsideDoubleQuotes(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof o=="string"&&(c+='[crossorigin="'+o+'"]'),preconnectsSet.has(c)||(preconnectsSet.add(c),e={rel:e,crossOrigin:o,href:n},a.querySelector(c)===null&&(n=a.createElement("link"),setInitialProperties(n,"link",e),markNodeAsHoistable(n),a.head.appendChild(n)))}}function prefetchDNS(e){previousDispatcher.D(e),preconnectAs("dns-prefetch",e,null)}function preconnect(e,n){previousDispatcher.C(e,n),preconnectAs("preconnect",e,n)}function preload(e,n,o){previousDispatcher.L(e,n,o);var a=globalDocument;if(a&&e&&n){var c='link[rel="preload"][as="'+escapeSelectorAttributeValueInsideDoubleQuotes(n)+'"]';n==="image"&&o&&o.imageSrcSet?(c+='[imagesrcset="'+escapeSelectorAttributeValueInsideDoubleQuotes(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(c+='[imagesizes="'+escapeSelectorAttributeValueInsideDoubleQuotes(o.imageSizes)+'"]')):c+='[href="'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'"]';var l=c;switch(n){case"style":l=getStyleKey(e);break;case"script":l=getScriptKey(e)}preloadPropsMap.has(l)||(e=assign({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:e,as:n},o),preloadPropsMap.set(l,e),a.querySelector(c)!==null||n==="style"&&a.querySelector(getStylesheetSelectorFromKey(l))||n==="script"&&a.querySelector(getScriptSelectorFromKey(l))||(n=a.createElement("link"),setInitialProperties(n,"link",e),markNodeAsHoistable(n),a.head.appendChild(n)))}}function preloadModule(e,n){previousDispatcher.m(e,n);var o=globalDocument;if(o&&e){var a=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+escapeSelectorAttributeValueInsideDoubleQuotes(a)+'"][href="'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'"]',l=c;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=getScriptKey(e)}if(!preloadPropsMap.has(l)&&(e=assign({rel:"modulepreload",href:e},n),preloadPropsMap.set(l,e),o.querySelector(c)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(getScriptSelectorFromKey(l)))return}a=o.createElement("link"),setInitialProperties(a,"link",e),markNodeAsHoistable(a),o.head.appendChild(a)}}}function preinitStyle(e,n,o){previousDispatcher.S(e,n,o);var a=globalDocument;if(a&&e){var c=getResourcesFromRoot(a).hoistableStyles,l=getStyleKey(e);n=n||"default";var u=c.get(l);if(!u){var d={loading:0,preload:null};if(u=a.querySelector(getStylesheetSelectorFromKey(l)))d.loading=5;else{e=assign({rel:"stylesheet",href:e,"data-precedence":n},o),(o=preloadPropsMap.get(l))&&adoptPreloadPropsForStylesheet(e,o);var h=u=a.createElement("link");markNodeAsHoistable(h),setInitialProperties(h,"link",e),h._p=new Promise(function(y,p){h.onload=y,h.onerror=p}),h.addEventListener("load",function(){d.loading|=1}),h.addEventListener("error",function(){d.loading|=2}),d.loading|=4,insertStylesheet(u,n,a)}u={type:"stylesheet",instance:u,count:1,state:d},c.set(l,u)}}}function preinitScript(e,n){previousDispatcher.X(e,n);var o=globalDocument;if(o&&e){var a=getResourcesFromRoot(o).hoistableScripts,c=getScriptKey(e),l=a.get(c);l||(l=o.querySelector(getScriptSelectorFromKey(c)),l||(e=assign({src:e,async:!0},n),(n=preloadPropsMap.get(c))&&adoptPreloadPropsForScript(e,n),l=o.createElement("script"),markNodeAsHoistable(l),setInitialProperties(l,"link",e),o.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(c,l))}}function preinitModuleScript(e,n){previousDispatcher.M(e,n);var o=globalDocument;if(o&&e){var a=getResourcesFromRoot(o).hoistableScripts,c=getScriptKey(e),l=a.get(c);l||(l=o.querySelector(getScriptSelectorFromKey(c)),l||(e=assign({src:e,async:!0,type:"module"},n),(n=preloadPropsMap.get(c))&&adoptPreloadPropsForScript(e,n),l=o.createElement("script"),markNodeAsHoistable(l),setInitialProperties(l,"link",e),o.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(c,l))}}function getResource(e,n,o,a){var c=(c=rootInstanceStackCursor.current)?getHoistableRoot(c):null;if(!c)throw Error(formatProdErrorMessage(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(n=getStyleKey(o.href),o=getResourcesFromRoot(c).hoistableStyles,a=o.get(n),a||(a={type:"style",instance:null,count:0,state:null},o.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=getStyleKey(o.href);var l=getResourcesFromRoot(c).hoistableStyles,u=l.get(e);if(u||(c=c.ownerDocument||c,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,u),(l=c.querySelector(getStylesheetSelectorFromKey(e)))&&!l._p&&(u.instance=l,u.state.loading=5),preloadPropsMap.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},preloadPropsMap.set(e,o),l||preloadStylesheet(c,e,o,u.state))),n&&a===null)throw Error(formatProdErrorMessage(528,""));return u}if(n&&a!==null)throw Error(formatProdErrorMessage(529,""));return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=getScriptKey(o),o=getResourcesFromRoot(c).hoistableScripts,a=o.get(n),a||(a={type:"script",instance:null,count:0,state:null},o.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(formatProdErrorMessage(444,e))}}function getStyleKey(e){return'href="'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'"'}function getStylesheetSelectorFromKey(e){return'link[rel="stylesheet"]['+e+"]"}function stylesheetPropsFromRawProps(e){return assign({},e,{"data-precedence":e.precedence,precedence:null})}function preloadStylesheet(e,n,o,a){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?a.loading=1:(n=e.createElement("link"),a.preload=n,n.addEventListener("load",function(){return a.loading|=1}),n.addEventListener("error",function(){return a.loading|=2}),setInitialProperties(n,"link",o),markNodeAsHoistable(n),e.head.appendChild(n))}function getScriptKey(e){return'[src="'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'"]'}function getScriptSelectorFromKey(e){return"script[async]"+e}function acquireResource(e,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var a=e.querySelector('style[data-href~="'+escapeSelectorAttributeValueInsideDoubleQuotes(o.href)+'"]');if(a)return n.instance=a,markNodeAsHoistable(a),a;var c=assign({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),markNodeAsHoistable(a),setInitialProperties(a,"style",c),insertStylesheet(a,o.precedence,e),n.instance=a;case"stylesheet":c=getStyleKey(o.href);var l=e.querySelector(getStylesheetSelectorFromKey(c));if(l)return n.state.loading|=4,n.instance=l,markNodeAsHoistable(l),l;a=stylesheetPropsFromRawProps(o),(c=preloadPropsMap.get(c))&&adoptPreloadPropsForStylesheet(a,c),l=(e.ownerDocument||e).createElement("link"),markNodeAsHoistable(l);var u=l;return u._p=new Promise(function(d,h){u.onload=d,u.onerror=h}),setInitialProperties(l,"link",a),n.state.loading|=4,insertStylesheet(l,o.precedence,e),n.instance=l;case"script":return l=getScriptKey(o.src),(c=e.querySelector(getScriptSelectorFromKey(l)))?(n.instance=c,markNodeAsHoistable(c),c):(a=o,(c=preloadPropsMap.get(l))&&(a=assign({},o),adoptPreloadPropsForScript(a,c)),e=e.ownerDocument||e,c=e.createElement("script"),markNodeAsHoistable(c),setInitialProperties(c,"link",a),e.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(formatProdErrorMessage(443,n.type))}else n.type==="stylesheet"&&!(n.state.loading&4)&&(a=n.instance,n.state.loading|=4,insertStylesheet(a,o.precedence,e));return n.instance}function insertStylesheet(e,n,o){for(var a=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=a.length?a[a.length-1]:null,l=c,u=0;u<a.length;u++){var d=a[u];if(d.dataset.precedence===n)l=d;else if(l!==c)break}l?l.parentNode.insertBefore(e,l.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(e,n.firstChild))}function adoptPreloadPropsForStylesheet(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function adoptPreloadPropsForScript(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var tagCaches=null;function getHydratableHoistableCache(e,n,o){if(tagCaches===null){var a=new Map,c=tagCaches=new Map;c.set(o,a)}else c=tagCaches,a=c.get(o),a||(a=new Map,c.set(o,a));if(a.has(e))return a;for(a.set(e,null),o=o.getElementsByTagName(e),c=0;c<o.length;c++){var l=o[c];if(!(l[internalHoistableMarker]||l[internalInstanceKey]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var u=l.getAttribute(n)||"";u=e+u;var d=a.get(u);d?d.push(l):a.set(u,[l])}}return a}function mountHoistable(e,n,o){e=e.ownerDocument||e,e.head.insertBefore(o,n==="title"?e.querySelector("head > title"):null)}function isHostHoistableType(e,n,o){if(o===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function preloadResource(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var suspendedState=null;function noop$4(){}function suspendResource(e,n,o){if(suspendedState===null)throw Error(formatProdErrorMessage(475));var a=suspendedState;if(n.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var c=getStyleKey(o.href),l=e.querySelector(getStylesheetSelectorFromKey(c));if(l){e=l._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=onUnsuspend.bind(a),e.then(a,a)),n.state.loading|=4,n.instance=l,markNodeAsHoistable(l);return}l=e.ownerDocument||e,o=stylesheetPropsFromRawProps(o),(c=preloadPropsMap.get(c))&&adoptPreloadPropsForStylesheet(o,c),l=l.createElement("link"),markNodeAsHoistable(l);var u=l;u._p=new Promise(function(d,h){u.onload=d,u.onerror=h}),setInitialProperties(l,"link",o),n.instance=l}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(n,e),(e=n.state.preload)&&!(n.state.loading&3)&&(a.count++,n=onUnsuspend.bind(a),e.addEventListener("load",n),e.addEventListener("error",n))}}function waitForCommitToBeReady(){if(suspendedState===null)throw Error(formatProdErrorMessage(475));var e=suspendedState;return e.stylesheets&&e.count===0&&insertSuspendedStylesheets(e,e.stylesheets),0<e.count?function(n){var o=setTimeout(function(){if(e.stylesheets&&insertSuspendedStylesheets(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(o)}}:null}function onUnsuspend(){if(this.count--,this.count===0){if(this.stylesheets)insertSuspendedStylesheets(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var precedencesByRoot=null;function insertSuspendedStylesheets(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,precedencesByRoot=new Map,n.forEach(insertStylesheetIntoRoot,e),precedencesByRoot=null,onUnsuspend.call(e))}function insertStylesheetIntoRoot(e,n){if(!(n.state.loading&4)){var o=precedencesByRoot.get(e);if(o)var a=o.get(null);else{o=new Map,precedencesByRoot.set(e,o);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<c.length;l++){var u=c[l];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(o.set(u.dataset.precedence,u),a=u)}a&&o.set(null,a)}c=n.instance,u=c.getAttribute("data-precedence"),l=o.get(u)||a,l===a&&o.set(null,c),o.set(u,c),this.count++,a=onUnsuspend.bind(this),c.addEventListener("load",a),c.addEventListener("error",a),l?l.parentNode.insertBefore(c,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=4}}var HostTransitionContext={$$typeof:REACT_CONTEXT_TYPE,Provider:null,Consumer:null,_currentValue:sharedNotPendingObject,_currentValue2:sharedNotPendingObject,_threadCount:0};function FiberRootNode(e,n,o,a,c,l,u,d){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=createLaneMap(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=createLaneMap(0),this.hiddenUpdates=createLaneMap(null),this.identifierPrefix=a,this.onUncaughtError=c,this.onCaughtError=l,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function createFiberRoot(e,n,o,a,c,l,u,d,h,y,p,v){return e=new FiberRootNode(e,n,o,u,d,h,y,v),n=1,l===!0&&(n|=24),l=createFiberImplClass(3,null,null,n),e.current=l,l.stateNode=e,n=createCache(),n.refCount++,e.pooledCache=n,n.refCount++,l.memoizedState={element:a,isDehydrated:o,cache:n},initializeUpdateQueue(l),e}function getContextForSubtree(e){return e?(e=emptyContextObject,e):emptyContextObject}function updateContainerImpl(e,n,o,a,c,l){c=getContextForSubtree(c),a.context===null?a.context=c:a.pendingContext=c,a=createUpdate(n),a.payload={element:o},l=l===void 0?null:l,l!==null&&(a.callback=l),o=enqueueUpdate(e,a,n),o!==null&&(scheduleUpdateOnFiber(o,e,n),entangleTransitions(o,e,n))}function markRetryLaneImpl(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function markRetryLaneIfNotHydrated(e,n){markRetryLaneImpl(e,n),(e=e.alternate)&&markRetryLaneImpl(e,n)}function attemptContinuousHydration(e){if(e.tag===13){var n=enqueueConcurrentRenderForLane(e,67108864);n!==null&&scheduleUpdateOnFiber(n,e,67108864),markRetryLaneIfNotHydrated(e,67108864)}}var _enabled=!0;function dispatchDiscreteEvent(e,n,o,a){var c=ReactSharedInternals.T;ReactSharedInternals.T=null;var l=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=2,dispatchEvent$6(e,n,o,a)}finally{ReactDOMSharedInternals.p=l,ReactSharedInternals.T=c}}function dispatchContinuousEvent(e,n,o,a){var c=ReactSharedInternals.T;ReactSharedInternals.T=null;var l=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=8,dispatchEvent$6(e,n,o,a)}finally{ReactDOMSharedInternals.p=l,ReactSharedInternals.T=c}}function dispatchEvent$6(e,n,o,a){if(_enabled){var c=findInstanceBlockingEvent(a);if(c===null)dispatchEventForPluginEventSystem(e,n,a,return_targetInst,o),clearIfContinuousEvent(e,a);else if(queueIfContinuousEvent(c,e,n,o,a))a.stopPropagation();else if(clearIfContinuousEvent(e,a),n&4&&-1<discreteReplayableEvents.indexOf(e)){for(;c!==null;){var l=getInstanceFromNode(c);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var u=getHighestPriorityLanes(l.pendingLanes);if(u!==0){var d=l;for(d.pendingLanes|=2,d.entangledLanes|=2;u;){var h=1<<31-clz32(u);d.entanglements[1]|=h,u&=~h}ensureRootIsScheduled(l),!(executionContext&6)&&(workInProgressRootRenderTargetTime=now()+500,flushSyncWorkAcrossRoots_impl(0))}}break;case 13:d=enqueueConcurrentRenderForLane(l,2),d!==null&&scheduleUpdateOnFiber(d,l,2),flushSyncWork$1(),markRetryLaneIfNotHydrated(l,2)}if(l=findInstanceBlockingEvent(a),l===null&&dispatchEventForPluginEventSystem(e,n,a,return_targetInst,o),l===c)break;c=l}c!==null&&a.stopPropagation()}else dispatchEventForPluginEventSystem(e,n,a,null,o)}}function findInstanceBlockingEvent(e){return e=getEventTarget(e),findInstanceBlockingTarget(e)}var return_targetInst=null;function findInstanceBlockingTarget(e){if(return_targetInst=null,e=getClosestInstanceFromNode(e),e!==null){var n=getNearestMountedFiber(e);if(n===null)e=null;else{var o=n.tag;if(o===13){if(e=getSuspenseInstanceFromFiber(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return return_targetInst=e,null}function getEventPriority(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(getCurrentPriorityLevel()){case ImmediatePriority:return 2;case UserBlockingPriority:return 8;case NormalPriority$1:case LowPriority:return 32;case IdlePriority:return 268435456;default:return 32}default:return 32}}var hasScheduledReplayAttempt=!1,queuedFocus=null,queuedDrag=null,queuedMouse=null,queuedPointers=new Map,queuedPointerCaptures=new Map,queuedExplicitHydrationTargets=[],discreteReplayableEvents="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function clearIfContinuousEvent(e,n){switch(e){case"focusin":case"focusout":queuedFocus=null;break;case"dragenter":case"dragleave":queuedDrag=null;break;case"mouseover":case"mouseout":queuedMouse=null;break;case"pointerover":case"pointerout":queuedPointers.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":queuedPointerCaptures.delete(n.pointerId)}}function accumulateOrCreateContinuousQueuedReplayableEvent(e,n,o,a,c,l){return e===null||e.nativeEvent!==l?(e={blockedOn:n,domEventName:o,eventSystemFlags:a,nativeEvent:l,targetContainers:[c]},n!==null&&(n=getInstanceFromNode(n),n!==null&&attemptContinuousHydration(n)),e):(e.eventSystemFlags|=a,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function queueIfContinuousEvent(e,n,o,a,c){switch(n){case"focusin":return queuedFocus=accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus,e,n,o,a,c),!0;case"dragenter":return queuedDrag=accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag,e,n,o,a,c),!0;case"mouseover":return queuedMouse=accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse,e,n,o,a,c),!0;case"pointerover":var l=c.pointerId;return queuedPointers.set(l,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(l)||null,e,n,o,a,c)),!0;case"gotpointercapture":return l=c.pointerId,queuedPointerCaptures.set(l,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(l)||null,e,n,o,a,c)),!0}return!1}function attemptExplicitHydrationTarget(e){var n=getClosestInstanceFromNode(e.target);if(n!==null){var o=getNearestMountedFiber(n);if(o!==null){if(n=o.tag,n===13){if(n=getSuspenseInstanceFromFiber(o),n!==null){e.blockedOn=n,runWithPriority(e.priority,function(){if(o.tag===13){var a=requestUpdateLane(),c=enqueueConcurrentRenderForLane(o,a);c!==null&&scheduleUpdateOnFiber(c,o,a),markRetryLaneIfNotHydrated(o,a)}});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function attemptReplayContinuousQueuedEvent(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=findInstanceBlockingEvent(e.nativeEvent);if(o===null){o=e.nativeEvent;var a=new o.constructor(o.type,o);currentReplayingEvent=a,o.target.dispatchEvent(a),currentReplayingEvent=null}else return n=getInstanceFromNode(o),n!==null&&attemptContinuousHydration(n),e.blockedOn=o,!1;n.shift()}return!0}function attemptReplayContinuousQueuedEventInMap(e,n,o){attemptReplayContinuousQueuedEvent(e)&&o.delete(n)}function replayUnblockedEvents(){hasScheduledReplayAttempt=!1,queuedFocus!==null&&attemptReplayContinuousQueuedEvent(queuedFocus)&&(queuedFocus=null),queuedDrag!==null&&attemptReplayContinuousQueuedEvent(queuedDrag)&&(queuedDrag=null),queuedMouse!==null&&attemptReplayContinuousQueuedEvent(queuedMouse)&&(queuedMouse=null),queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap),queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap)}function scheduleCallbackIfUnblocked(e,n){e.blockedOn===n&&(e.blockedOn=null,hasScheduledReplayAttempt||(hasScheduledReplayAttempt=!0,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,replayUnblockedEvents)))}var lastScheduledReplayQueue=null;function scheduleReplayQueueIfNeeded(e){lastScheduledReplayQueue!==e&&(lastScheduledReplayQueue=e,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,function(){lastScheduledReplayQueue===e&&(lastScheduledReplayQueue=null);for(var n=0;n<e.length;n+=3){var o=e[n],a=e[n+1],c=e[n+2];if(typeof a!="function"){if(findInstanceBlockingTarget(a||o)===null)continue;break}var l=getInstanceFromNode(o);l!==null&&(e.splice(n,3),n-=3,startHostTransition(l,{pending:!0,data:c,method:o.method,action:a},a,c))}}))}function retryIfBlockedOn(e){function n(h){return scheduleCallbackIfUnblocked(h,e)}queuedFocus!==null&&scheduleCallbackIfUnblocked(queuedFocus,e),queuedDrag!==null&&scheduleCallbackIfUnblocked(queuedDrag,e),queuedMouse!==null&&scheduleCallbackIfUnblocked(queuedMouse,e),queuedPointers.forEach(n),queuedPointerCaptures.forEach(n);for(var o=0;o<queuedExplicitHydrationTargets.length;o++){var a=queuedExplicitHydrationTargets[o];a.blockedOn===e&&(a.blockedOn=null)}for(;0<queuedExplicitHydrationTargets.length&&(o=queuedExplicitHydrationTargets[0],o.blockedOn===null);)attemptExplicitHydrationTarget(o),o.blockedOn===null&&queuedExplicitHydrationTargets.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(a=0;a<o.length;a+=3){var c=o[a],l=o[a+1],u=c[internalPropsKey]||null;if(typeof l=="function")u||scheduleReplayQueueIfNeeded(o);else if(u){var d=null;if(l&&l.hasAttribute("formAction")){if(c=l,u=l[internalPropsKey]||null)d=u.formAction;else if(findInstanceBlockingTarget(c)!==null)continue}else d=u.action;typeof d=="function"?o[a+1]=d:(o.splice(a,3),a-=3),scheduleReplayQueueIfNeeded(o)}}}function ReactDOMRoot(e){this._internalRoot=e}ReactDOMHydrationRoot.prototype.render=ReactDOMRoot.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(formatProdErrorMessage(409));var o=n.current,a=requestUpdateLane();updateContainerImpl(o,a,e,n,null,null)};ReactDOMHydrationRoot.prototype.unmount=ReactDOMRoot.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;e.tag===0&&flushPassiveEffects(),updateContainerImpl(e.current,2,null,e,null,null),flushSyncWork$1(),n[internalContainerInstanceKey]=null}};function ReactDOMHydrationRoot(e){this._internalRoot=e}ReactDOMHydrationRoot.prototype.unstable_scheduleHydration=function(e){if(e){var n=resolveUpdatePriority();e={blockedOn:null,target:e,priority:n};for(var o=0;o<queuedExplicitHydrationTargets.length&&n!==0&&n<queuedExplicitHydrationTargets[o].priority;o++);queuedExplicitHydrationTargets.splice(o,0,e),o===0&&attemptExplicitHydrationTarget(e)}};var isomorphicReactPackageVersion$jscomp$inline_1686=React.version;if(isomorphicReactPackageVersion$jscomp$inline_1686!=="19.0.0")throw Error(formatProdErrorMessage(527,isomorphicReactPackageVersion$jscomp$inline_1686,"19.0.0"));ReactDOMSharedInternals.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(formatProdErrorMessage(188)):(e=Object.keys(e).join(","),Error(formatProdErrorMessage(268,e)));return e=findCurrentFiberUsingSlowPath(n),e=e!==null?findCurrentHostFiberImpl(e):null,e=e===null?null:e.stateNode,e};var internals$jscomp$inline_2165={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:ReactSharedInternals,findFiberByHostInstance:getClosestInstanceFromNode,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hook$jscomp$inline_2166=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hook$jscomp$inline_2166.isDisabled&&hook$jscomp$inline_2166.supportsFiber)try{rendererID=hook$jscomp$inline_2166.inject(internals$jscomp$inline_2165),injectedHook=hook$jscomp$inline_2166}catch{}}reactDomClient_production.createRoot=function(e,n){if(!isValidContainer(e))throw Error(formatProdErrorMessage(299));var o=!1,a="",c=defaultOnUncaughtError,l=defaultOnCaughtError,u=defaultOnRecoverableError,d=null;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(u=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(d=n.unstable_transitionCallbacks)),n=createFiberRoot(e,1,!1,null,null,o,a,c,l,u,d,null),e[internalContainerInstanceKey]=n.current,listenToAllSupportedEvents(e.nodeType===8?e.parentNode:e),new ReactDOMRoot(n)};reactDomClient_production.hydrateRoot=function(e,n,o){if(!isValidContainer(e))throw Error(formatProdErrorMessage(299));var a=!1,c="",l=defaultOnUncaughtError,u=defaultOnCaughtError,d=defaultOnRecoverableError,h=null,y=null;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onUncaughtError!==void 0&&(l=o.onUncaughtError),o.onCaughtError!==void 0&&(u=o.onCaughtError),o.onRecoverableError!==void 0&&(d=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(h=o.unstable_transitionCallbacks),o.formState!==void 0&&(y=o.formState)),n=createFiberRoot(e,1,!0,n,o??null,a,c,l,u,d,h,y),n.context=getContextForSubtree(null),o=n.current,a=requestUpdateLane(),c=createUpdate(a),c.callback=null,enqueueUpdate(o,c,a),n.current.lanes=a,markRootUpdated$1(n,a),ensureRootIsScheduled(n),e[internalContainerInstanceKey]=n.current,listenToAllSupportedEvents(e),new ReactDOMHydrationRoot(n)};reactDomClient_production.version="19.0.0";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),client.exports=reactDomClient_production;var clientExports=client.exports;const navbar="_navbar_533pz_1",navContent="_navContent_533pz_12",toggleContainer="_toggleContainer_533pz_20",loginButton="_loginButton_533pz_26",styles$6={navbar,navContent,toggleContainer,loginButton},networkToggle="_networkToggle_rk9sz_1",networkToggleInput="_networkToggleInput_rk9sz_7",networkToggleLabel="_networkToggleLabel_rk9sz_13",networkToggleSwitch="_networkToggleSwitch_rk9sz_27",networkToggleInner="_networkToggleInner_rk9sz_47",networkStyles={networkToggle,networkToggleInput,networkToggleLabel,networkToggleSwitch,networkToggleInner};var lib$p={},bitteWalletSetup={},bitteWallet={},browserIndex$7={},browserIndex$6={},keystore$5={},lib$o={},in_memory_key_store$5={},lib$n={},constants$a={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.KeySize=e.KeyType=void 0,function(n){n[n.ED25519=0]="ED25519",n[n.SECP256K1=1]="SECP256K1"}(e.KeyType||(e.KeyType={})),function(n){n[n.SECRET_KEY=32]="SECRET_KEY",n[n.ED25519_PUBLIC_KEY=32]="ED25519_PUBLIC_KEY",n[n.SECP256k1_PUBLIC_KEY=64]="SECP256k1_PUBLIC_KEY"}(e.KeySize||(e.KeySize={}))})(constants$a);var key_pair$5={},key_pair_base$2={};Object.defineProperty(key_pair_base$2,"__esModule",{value:!0});key_pair_base$2.KeyPairBase=void 0;let KeyPairBase$2=class{};key_pair_base$2.KeyPairBase=KeyPairBase$2;var key_pair_ed25519$2={},lib$m={},constants$9={};Object.defineProperty(constants$9,"__esModule",{value:!0});constants$9.DEFAULT_FUNCTION_CALL_GAS=void 0;constants$9.DEFAULT_FUNCTION_CALL_GAS=BigInt("30000000000000");var errors$g={},errors$f={},logger$9={},logger$8={},console_logger$2={};Object.defineProperty(console_logger$2,"__esModule",{value:!0});console_logger$2.ConsoleLogger=void 0;let ConsoleLogger$2=class{constructor(n){this.logLevels=n,this.isLevelEnabled=o=>this.logLevels.includes(o)}print(n,o,...a){switch(n){case"error":case"fatal":return console.error(o,...a);case"warn":return console.warn(o,...a);case"log":return console.log(o,...a);case"debug":case"verbose":return console.debug(o,...a)}}verbose(n,...o){this.isLevelEnabled("verbose")&&this.print("verbose",n,...o)}debug(n,...o){this.isLevelEnabled("debug")&&this.print("debug",n,...o)}log(n,...o){this.isLevelEnabled("log")&&this.print("log",n,...o)}warn(n,...o){this.isLevelEnabled("warn")&&this.print("warn",n,...o)}error(n,...o){this.isLevelEnabled("error")&&this.print("error",n,...o)}fatal(n,...o){this.isLevelEnabled("fatal")&&this.print("fatal",n,...o)}};console_logger$2.ConsoleLogger=ConsoleLogger$2;var define_process_env_default$3={},_a$1;Object.defineProperty(logger$8,"__esModule",{value:!0});logger$8.Logger=void 0;const console_logger_1$2=console_logger$2,DEFAULT_LOG_LEVELS$2=["verbose","debug","log","warn","error","fatal"],DEFAULT_LOGGER$2=typeof process=="object"&&define_process_env_default$3.NEAR_NO_LOGS?void 0:new console_logger_1$2.ConsoleLogger(DEFAULT_LOG_LEVELS$2);let Logger$3=class{static error(n,...o){var a;(a=this.instanceRef)===null||a===void 0||a.error(n,...o)}static log(n,...o){var a;(a=this.instanceRef)===null||a===void 0||a.log(n,...o)}static warn(n,...o){var a;(a=this.instanceRef)===null||a===void 0||a.warn(n,...o)}static debug(n,...o){var a,c;(c=(a=this.instanceRef)===null||a===void 0?void 0:a.debug)===null||c===void 0||c.call(a,n,...o)}static verbose(n,...o){var a,c;(c=(a=this.instanceRef)===null||a===void 0?void 0:a.verbose)===null||c===void 0||c.call(a,n,...o)}static fatal(n,...o){var a,c;(c=(a=this.instanceRef)===null||a===void 0?void 0:a.fatal)===null||c===void 0||c.call(a,n,...o)}};logger$8.Logger=Logger$3;_a$1=Logger$3;Logger$3.instanceRef=DEFAULT_LOGGER$2;Logger$3.overrideLogger=e=>{_a$1.instanceRef=e};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;var n=logger$8;Object.defineProperty(e,"Logger",{enumerable:!0,get:function(){return n.Logger}})})(logger$9);Object.defineProperty(errors$f,"__esModule",{value:!0});errors$f.logWarning=void 0;const logger_1$4=logger$9;function logWarning$1(...e){const[n,...o]=e;logger_1$4.Logger.warn(n,...o)}errors$f.logWarning=logWarning$1;var rpc_errors$5={},lib$l={},assignable$1={};Object.defineProperty(assignable$1,"__esModule",{value:!0});assignable$1.Assignable=void 0;let Assignable$1=class{constructor(n){Object.keys(n).map(o=>{this[o]=n[o]})}};assignable$1.Assignable=Assignable$1;var errors$e={};Object.defineProperty(errors$e,"__esModule",{value:!0});errors$e.ErrorContext=errors$e.TypedError=errors$e.ArgumentTypeError=errors$e.PositionalArgsError=void 0;let PositionalArgsError$1=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};errors$e.PositionalArgsError=PositionalArgsError$1;let ArgumentTypeError$1=class extends Error{constructor(n,o,a){super(`Expected ${o} for '${n}' argument, but got '${JSON.stringify(a)}'`)}};errors$e.ArgumentTypeError=ArgumentTypeError$1;let TypedError$1=class extends Error{constructor(n,o,a){super(n),this.type=o||"UntypedError",this.context=a}};errors$e.TypedError=TypedError$1;let ErrorContext$1=class{constructor(n){this.transactionHash=n}};errors$e.ErrorContext=ErrorContext$1;var provider$a={},light_client$1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IdType=void 0,function(n){n.Transaction="transaction",n.Receipt="receipt"}(e.IdType||(e.IdType={}))})(light_client$1);var response$1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FinalExecutionStatusBasic=e.ExecutionStatusBasic=void 0,function(n){n.Unknown="Unknown",n.Pending="Pending",n.Failure="Failure"}(e.ExecutionStatusBasic||(e.ExecutionStatusBasic={})),function(n){n.NotStarted="NotStarted",n.Started="Started",n.Failure="Failure"}(e.FinalExecutionStatusBasic||(e.FinalExecutionStatusBasic={}))})(response$1);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FinalExecutionStatusBasic=e.ExecutionStatusBasic=e.IdType=void 0;var n=light_client$1;Object.defineProperty(e,"IdType",{enumerable:!0,get:function(){return n.IdType}});var o=response$1;Object.defineProperty(e,"ExecutionStatusBasic",{enumerable:!0,get:function(){return o.ExecutionStatusBasic}}),Object.defineProperty(e,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return o.FinalExecutionStatusBasic}})})(provider$a);(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(a,c,l,u){u===void 0&&(u=l);var d=Object.getOwnPropertyDescriptor(c,l);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(a,u,d)}:function(a,c,l,u){u===void 0&&(u=l),a[u]=c[l]}),o=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(a,c){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&n(c,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),o(assignable$1,e),o(errors$e,e),o(provider$a,e)})(lib$l);var mustache={exports:{}};(function(e,n){(function(o,a){e.exports=a()})(commonjsGlobal$c,function(){/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var o=Object.prototype.toString,a=Array.isArray||function(A){return o.call(A)==="[object Array]"};function c(P){return typeof P=="function"}function l(P){return a(P)?"array":typeof P}function u(P){return P.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function d(P,A){return P!=null&&typeof P=="object"&&A in P}function h(P,A){return P!=null&&typeof P!="object"&&P.hasOwnProperty&&P.hasOwnProperty(A)}var y=RegExp.prototype.test;function p(P,A){return y.call(P,A)}var v=/\S/;function b(P){return!p(v,P)}var _={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function T(P){return String(P).replace(/[&<>"'`=\/]/g,function(m){return _[m]})}var I=/\s*/,U=/\s+/,N=/\s*=/,D=/\s*\}/,L=/#|\^|\/|>|\{|&|=|!/;function B(P,A){if(!P)return[];var m=!1,E=[],w=[],C=[],k=!1,O=!1,S="",M=0;function x(){if(k&&!O)for(;C.length;)delete w[C.pop()];else C=[];k=!1,O=!1}var G,z,ee;function ne(be){if(typeof be=="string"&&(be=be.split(U,2)),!a(be)||be.length!==2)throw new Error("Invalid tags: "+be);G=new RegExp(u(be[0])+"\\s*"),z=new RegExp("\\s*"+u(be[1])),ee=new RegExp("\\s*"+u("}"+be[1]))}ne(A||te.tags);for(var fe=new X(P),de,oe,ue,se,ie,ce;!fe.eos();){if(de=fe.pos,ue=fe.scanUntil(G),ue)for(var he=0,ve=ue.length;he<ve;++he)se=ue.charAt(he),b(se)?(C.push(w.length),S+=se):(O=!0,m=!0,S+=" "),w.push(["text",se,de,de+1]),de+=1,se===`
`&&(x(),S="",M=0,m=!1);if(!fe.scan(G))break;if(k=!0,oe=fe.scan(L)||"name",fe.scan(I),oe==="="?(ue=fe.scanUntil(N),fe.scan(N),fe.scanUntil(z)):oe==="{"?(ue=fe.scanUntil(ee),fe.scan(D),fe.scanUntil(z),oe="&"):ue=fe.scanUntil(z),!fe.scan(z))throw new Error("Unclosed tag at "+fe.pos);if(oe==">"?ie=[oe,ue,de,fe.pos,S,M,m]:ie=[oe,ue,de,fe.pos],M++,w.push(ie),oe==="#"||oe==="^")E.push(ie);else if(oe==="/"){if(ce=E.pop(),!ce)throw new Error('Unopened section "'+ue+'" at '+de);if(ce[1]!==ue)throw new Error('Unclosed section "'+ce[1]+'" at '+de)}else oe==="name"||oe==="{"||oe==="&"?O=!0:oe==="="&&ne(ue)}if(x(),ce=E.pop(),ce)throw new Error('Unclosed section "'+ce[1]+'" at '+fe.pos);return W(H(w))}function H(P){for(var A=[],m,E,w=0,C=P.length;w<C;++w)m=P[w],m&&(m[0]==="text"&&E&&E[0]==="text"?(E[1]+=m[1],E[3]=m[3]):(A.push(m),E=m));return A}function W(P){for(var A=[],m=A,E=[],w,C,k=0,O=P.length;k<O;++k)switch(w=P[k],w[0]){case"#":case"^":m.push(w),E.push(w),m=w[4]=[];break;case"/":C=E.pop(),C[5]=w[2],m=E.length>0?E[E.length-1][4]:A;break;default:m.push(w)}return A}function X(P){this.string=P,this.tail=P,this.pos=0}X.prototype.eos=function(){return this.tail===""},X.prototype.scan=function(A){var m=this.tail.match(A);if(!m||m.index!==0)return"";var E=m[0];return this.tail=this.tail.substring(E.length),this.pos+=E.length,E},X.prototype.scanUntil=function(A){var m=this.tail.search(A),E;switch(m){case-1:E=this.tail,this.tail="";break;case 0:E="";break;default:E=this.tail.substring(0,m),this.tail=this.tail.substring(m)}return this.pos+=E.length,E};function Y(P,A){this.view=P,this.cache={".":this.view},this.parent=A}Y.prototype.push=function(A){return new Y(A,this)},Y.prototype.lookup=function(A){var m=this.cache,E;if(m.hasOwnProperty(A))E=m[A];else{for(var w=this,C,k,O,S=!1;w;){if(A.indexOf(".")>0)for(C=w.view,k=A.split("."),O=0;C!=null&&O<k.length;)O===k.length-1&&(S=d(C,k[O])||h(C,k[O])),C=C[k[O++]];else C=w.view[A],S=d(w.view,A);if(S){E=C;break}w=w.parent}m[A]=E}return c(E)&&(E=E.call(this.view)),E};function Z(){this.templateCache={_cache:{},set:function(A,m){this._cache[A]=m},get:function(A){return this._cache[A]},clear:function(){this._cache={}}}}Z.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Z.prototype.parse=function(A,m){var E=this.templateCache,w=A+":"+(m||te.tags).join(":"),C=typeof E<"u",k=C?E.get(w):void 0;return k==null&&(k=B(A,m),C&&E.set(w,k)),k},Z.prototype.render=function(A,m,E,w){var C=this.parse(A,w),k=m instanceof Y?m:new Y(m,void 0);return this.renderTokens(C,k,E,A,w)},Z.prototype.renderTokens=function(A,m,E,w,C){for(var k="",O,S,M,x=0,G=A.length;x<G;++x)M=void 0,O=A[x],S=O[0],S==="#"?M=this.renderSection(O,m,E,w):S==="^"?M=this.renderInverted(O,m,E,w):S===">"?M=this.renderPartial(O,m,E,C):S==="&"?M=this.unescapedValue(O,m):S==="name"?M=this.escapedValue(O,m):S==="text"&&(M=this.rawValue(O)),M!==void 0&&(k+=M);return k},Z.prototype.renderSection=function(A,m,E,w){var C=this,k="",O=m.lookup(A[1]);function S(G){return C.render(G,m,E)}if(O){if(a(O))for(var M=0,x=O.length;M<x;++M)k+=this.renderTokens(A[4],m.push(O[M]),E,w);else if(typeof O=="object"||typeof O=="string"||typeof O=="number")k+=this.renderTokens(A[4],m.push(O),E,w);else if(c(O)){if(typeof w!="string")throw new Error("Cannot use higher-order sections without the original template");O=O.call(m.view,w.slice(A[3],A[5]),S),O!=null&&(k+=O)}else k+=this.renderTokens(A[4],m,E,w);return k}},Z.prototype.renderInverted=function(A,m,E,w){var C=m.lookup(A[1]);if(!C||a(C)&&C.length===0)return this.renderTokens(A[4],m,E,w)},Z.prototype.indentPartial=function(A,m,E){for(var w=m.replace(/[^ \t]/g,""),C=A.split(`
`),k=0;k<C.length;k++)C[k].length&&(k>0||!E)&&(C[k]=w+C[k]);return C.join(`
`)},Z.prototype.renderPartial=function(A,m,E,w){if(E){var C=c(E)?E(A[1]):E[A[1]];if(C!=null){var k=A[6],O=A[5],S=A[4],M=C;return O==0&&S&&(M=this.indentPartial(C,S,k)),this.renderTokens(this.parse(M,w),m,E,M)}}},Z.prototype.unescapedValue=function(A,m){var E=m.lookup(A[1]);if(E!=null)return E},Z.prototype.escapedValue=function(A,m){var E=m.lookup(A[1]);if(E!=null)return te.escape(E)},Z.prototype.rawValue=function(A){return A[1]};var te={name:"mustache.js",version:"4.0.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(P){V.templateCache=P},get templateCache(){return V.templateCache}},V=new Z;return te.clearCache=function(){return V.clearCache()},te.parse=function(A,m){return V.parse(A,m)},te.render=function(A,m,E,w){if(typeof A!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+l(A)+'" was given as the first argument for mustache#render(template, view, partials)');return V.render(A,m,E,w)},te.escape=T,te.Scanner=X,te.Context=Y,te.Writer=Z,te})})(mustache);var mustacheExports=mustache.exports,format$6={},safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,n){var o=buffer$1,a=o.Buffer;function c(u,d){for(var h in u)d[h]=u[h]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(c(o,n),n.Buffer=l);function l(u,d,h){return a(u,d,h)}l.prototype=Object.create(a.prototype),c(a,l),l.from=function(u,d,h){if(typeof u=="number")throw new TypeError("Argument must not be a number");return a(u,d,h)},l.alloc=function(u,d,h){if(typeof u!="number")throw new TypeError("Argument must be a number");var y=a(u);return d!==void 0?typeof h=="string"?y.fill(d,h):y.fill(d):y.fill(0),y},l.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return a(u)},l.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(u)}})(safeBuffer,safeBuffer.exports);var safeBufferExports=safeBuffer.exports,Buffer$2=safeBufferExports.Buffer,baseX=function(n){for(var o={},a=n.length,c=n.charAt(0),l=0;l<n.length;l++){var u=n.charAt(l);if(o[u]!==void 0)throw new TypeError(u+" is ambiguous");o[u]=l}function d(p){if(p.length===0)return"";for(var v=[0],b=0;b<p.length;++b){for(var _=0,T=p[b];_<v.length;++_)T+=v[_]<<8,v[_]=T%a,T=T/a|0;for(;T>0;)v.push(T%a),T=T/a|0}for(var I="",U=0;p[U]===0&&U<p.length-1;++U)I+=n[0];for(var N=v.length-1;N>=0;--N)I+=n[v[N]];return I}function h(p){if(p.length===0)return Buffer$2.allocUnsafe(0);for(var v=[0],b=0;b<p.length;b++){var _=o[p[b]];if(_===void 0)return;for(var T=0,I=_;T<v.length;++T)I+=v[T]*a,v[T]=I&255,I>>=8;for(;I>0;)v.push(I&255),I>>=8}for(var U=0;p[U]===c&&U<p.length-1;++U)v.push(0);return Buffer$2.from(v.reverse())}function y(p){var v=h(p);if(v)return v;throw new Error("Non-base"+a+" character")}return{encode:d,decodeUnsafe:h,decode:y}},basex$1=baseX,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",bs58$1=basex$1(ALPHABET$1);(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.baseDecode=e.baseEncode=e.parseNearAmount=e.formatNearAmount=e.NEAR_NOMINATION=e.NEAR_NOMINATION_EXP=void 0;const o=n(bs58$1);e.NEAR_NOMINATION_EXP=24,e.NEAR_NOMINATION=BigInt(10)**BigInt(e.NEAR_NOMINATION_EXP);const a=[],c=BigInt(10);for(let _=0,T=BigInt(5);_<e.NEAR_NOMINATION_EXP;_++,T=T*c)a[_]=T;function l(_,T=e.NEAR_NOMINATION_EXP){let I=BigInt(_);if(T!==e.NEAR_NOMINATION_EXP){const D=e.NEAR_NOMINATION_EXP-T-1;D>0&&(I+=a[D])}_=I.toString();const U=_.substring(0,_.length-e.NEAR_NOMINATION_EXP)||"0",N=_.substring(_.length-e.NEAR_NOMINATION_EXP).padStart(e.NEAR_NOMINATION_EXP,"0").substring(0,T);return h(`${p(U)}.${N}`)}e.formatNearAmount=l;function u(_){if(!_)return null;_=d(_);const T=_.split("."),I=T[0],U=T[1]||"";if(T.length>2||U.length>e.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${_}' as NEAR amount`);return y(I+U.padEnd(e.NEAR_NOMINATION_EXP,"0"))}e.parseNearAmount=u;function d(_){return _.replace(/,/g,"").trim()}function h(_){return _.replace(/\.?0*$/,"")}function y(_){return _=_.replace(/^0+/,""),_===""?"0":_}function p(_){const T=/(-?\d+)(\d{3})/;for(;T.test(_);)_=_.replace(T,"$1,$2");return _}function v(_){if(typeof _=="string"){const T=[];for(let I=0;I<_.length;I++)T.push(_.charCodeAt(I));_=new Uint8Array(T)}return o.default.encode(_)}e.baseEncode=v;function b(_){return new Uint8Array(o.default.decode(_))}e.baseDecode=b})(format$6);const GasLimitExceeded$2="Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName$2="Method name is empty",WasmerCompileError$2="Wasmer compilation error: {{msg}}",GuestPanic$2="Smart contract panicked: {{panic_msg}}",Memory$2="Error creating Wasm memory",GasExceeded$2="Exceeded the prepaid gas",MethodUTF8Error$2="Method name is not valid UTF8 string",BadUTF16$2="String encoding is bad UTF-16 sequence",WasmTrap$2="WebAssembly trap: {{msg}}",GasInstrumentation$2="Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex$2="{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex$2="Accessed invalid promise result index: {{result_idx}}",Deserialization$2="Error happened while deserializing the module",MethodNotFound$2="Contract method is not found",InvalidRegisterId$2="Accessed invalid register id: {{register_id}}",InvalidReceiptIndex$2="VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName$2="Method name is empty in contract call",CannotReturnJointPromise$2="Returning joint promise is currently prohibited",StackHeightInstrumentation$2="Stack instrumentation failed",CodeDoesNotExist$2="Cannot find contract code for account {{account_id}}",MethodInvalidSignature$2="Invalid method signature",IntegerOverflow$2="Integer overflow happened during contract execution",MemoryAccessViolation$2="MemoryAccessViolation",InvalidIteratorIndex$2="Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated$2="Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId$2="VM Logic returned an invalid account id",Serialization$2="Error happened while serializing the module",CannotAppendActionToJointPromise$2="Actions can only be appended to non-joint promise.",InternalMemoryDeclared$2="Internal memory declaration has been found in the module",Instantiate$2="Error happened during instantiation",ProhibitedInView$2="{{method_name}} is not allowed in view calls",InvalidMethodName$2="VM Logic returned an invalid method name",BadUTF8$2="String encoding is bad UTF-8 sequence",BalanceExceeded$2="Exceeded the account balance",LinkError$2="Wasm contract link error: {{msg}}",InvalidPublicKey$2="VM Logic provided an invalid public key",ActorNoPermission$2="Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState$2="The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch$2="Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow$2="Transaction gas or balance cost is too high",InvalidSignature$2="Transaction is not signed with the given public key",AccessKeyNotFound$2=`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance$2="Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance$2="Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired$2="Transaction has expired",DeleteAccountStaking$2="Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist$2="Signer {{signer_id}} does not exist",TriesToStake$2="Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists$2="The public key {{public_key}} is already used for an existing access key",InvalidSigner$2="Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed$2="The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess$2="The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake$2="Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce$2="Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists$2="Can't create a new account {{account_id}}, because it already exists",InvalidChain$2="Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist$2="Can't complete the action because account {{account_id}} doesn't exist",AccessKeyDoesNotExist$2="Can't complete the action because access key {{public_key}} doesn't exist",MethodNameMismatch$2="Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent$2="Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance$2="Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver$2="Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist$2="Account {{account_id}} tries to remove an access key that doesn't exist",Timeout$2="Timeout exceeded",Closed$2="Connection closed",ShardCongested$1="Shard {{shard_id}} rejected the transaction due to congestion level {{congestion_level}}, try again later",ShardStuck$1="Shard {{shard_id}} rejected the transaction because it missed {{missed_chunks}} chunks and needs to recover before accepting new transactions, try again later",require$$3$2={GasLimitExceeded:GasLimitExceeded$2,MethodEmptyName:MethodEmptyName$2,WasmerCompileError:WasmerCompileError$2,GuestPanic:GuestPanic$2,Memory:Memory$2,GasExceeded:GasExceeded$2,MethodUTF8Error:MethodUTF8Error$2,BadUTF16:BadUTF16$2,WasmTrap:WasmTrap$2,GasInstrumentation:GasInstrumentation$2,InvalidPromiseIndex:InvalidPromiseIndex$2,InvalidPromiseResultIndex:InvalidPromiseResultIndex$2,Deserialization:Deserialization$2,MethodNotFound:MethodNotFound$2,InvalidRegisterId:InvalidRegisterId$2,InvalidReceiptIndex:InvalidReceiptIndex$2,EmptyMethodName:EmptyMethodName$2,CannotReturnJointPromise:CannotReturnJointPromise$2,StackHeightInstrumentation:StackHeightInstrumentation$2,CodeDoesNotExist:CodeDoesNotExist$2,MethodInvalidSignature:MethodInvalidSignature$2,IntegerOverflow:IntegerOverflow$2,MemoryAccessViolation:MemoryAccessViolation$2,InvalidIteratorIndex:InvalidIteratorIndex$2,IteratorWasInvalidated:IteratorWasInvalidated$2,InvalidAccountId:InvalidAccountId$2,Serialization:Serialization$2,CannotAppendActionToJointPromise:CannotAppendActionToJointPromise$2,InternalMemoryDeclared:InternalMemoryDeclared$2,Instantiate:Instantiate$2,ProhibitedInView:ProhibitedInView$2,InvalidMethodName:InvalidMethodName$2,BadUTF8:BadUTF8$2,BalanceExceeded:BalanceExceeded$2,LinkError:LinkError$2,InvalidPublicKey:InvalidPublicKey$2,ActorNoPermission:ActorNoPermission$2,LackBalanceForState:LackBalanceForState$2,ReceiverMismatch:ReceiverMismatch$2,CostOverflow:CostOverflow$2,InvalidSignature:InvalidSignature$2,AccessKeyNotFound:AccessKeyNotFound$2,NotEnoughBalance:NotEnoughBalance$2,NotEnoughAllowance:NotEnoughAllowance$2,Expired:Expired$2,DeleteAccountStaking:DeleteAccountStaking$2,SignerDoesNotExist:SignerDoesNotExist$2,TriesToStake:TriesToStake$2,AddKeyAlreadyExists:AddKeyAlreadyExists$2,InvalidSigner:InvalidSigner$2,CreateAccountNotAllowed:CreateAccountNotAllowed$2,RequiresFullAccess:RequiresFullAccess$2,TriesToUnstake:TriesToUnstake$2,InvalidNonce:InvalidNonce$2,AccountAlreadyExists:AccountAlreadyExists$2,InvalidChain:InvalidChain$2,AccountDoesNotExist:AccountDoesNotExist$2,AccessKeyDoesNotExist:AccessKeyDoesNotExist$2,MethodNameMismatch:MethodNameMismatch$2,DeleteAccountHasRent:DeleteAccountHasRent$2,DeleteAccountHasEnoughBalance:DeleteAccountHasEnoughBalance$2,InvalidReceiver:InvalidReceiver$2,DeleteKeyDoesNotExist:DeleteKeyDoesNotExist$2,Timeout:Timeout$2,Closed:Closed$2,ShardCongested:ShardCongested$1,ShardStuck:ShardStuck$1},schema$5={AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed","DeleteAccountWithLargeState","DelegateActionInvalidSignature","DelegateActionSenderDoesNotMatchTxReceiver","DelegateActionExpired","DelegateActionAccessKeyError","DelegateActionInvalidNonce","DelegateActionNonceTooLarge"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas","DelegateActionMustBeOnlyOne","UnsupportedProtocolFeature"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},AltBn128InvalidInput:{name:"AltBn128InvalidInput",subtypes:[],props:{msg:""}},BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",forwarded_buffered_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_buffered_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DelegateActionExpired:{name:"DelegateActionExpired",subtypes:[],props:{}},DelegateActionInvalidNonce:{name:"DelegateActionInvalidNonce",subtypes:[],props:{ak_nonce:"",delegate_nonce:""}},DelegateActionInvalidSignature:{name:"DelegateActionInvalidSignature",subtypes:[],props:{}},DelegateActionMustBeOnlyOne:{name:"DelegateActionMustBeOnlyOne",subtypes:[],props:{}},DelegateActionNonceTooLarge:{name:"DelegateActionNonceTooLarge",subtypes:[],props:{delegate_nonce:"",upper_bound:""}},DelegateActionSenderDoesNotMatchTxReceiver:{name:"DelegateActionSenderDoesNotMatchTxReceiver",subtypes:[],props:{receiver_id:"",sender_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteAccountWithLargeState:{name:"DeleteAccountWithLargeState",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},ECRecoverError:{name:"ECRecoverError",subtypes:[],props:{msg:""}},Ed25519VerifyInvalidInput:{name:"Ed25519VerifyInvalidInput",subtypes:[],props:{msg:""}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated","ECRecoverError","AltBn128InvalidInput","Ed25519VerifyInvalidInput"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},IndirectCallToNull:{name:"IndirectCallToNull",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","NonceTooLarge","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation","TransactionSizeExceeded","StorageError","ShardCongested","ShardStuck"],props:{}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodNotFound","MethodInvalidSignature"],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NonceTooLarge:{name:"NonceTooLarge",subtypes:[],props:{tx_nonce:"",upper_bound:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory","TooManyFunctions","TooManyLocals"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReceiptSizeExceeded:{name:"ReceiptSizeExceeded",subtypes:[],props:{limit:"",size:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation","ReceiptSizeExceeded"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},ShardCongested:{name:"ShardCongested",subtypes:[],props:{congestion_level:"",shard_id:""}},ShardStuck:{name:"ShardStuck",subtypes:[],props:{missed_chunks:"",shard_id:""}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TooManyFunctions:{name:"TooManyFunctions",subtypes:[],props:{}},TooManyLocals:{name:"TooManyLocals",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TransactionSizeExceeded:{name:"TransactionSizeExceeded",subtypes:[],props:{limit:"",size:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},UnsupportedProtocolFeature:{name:"UnsupportedProtocolFeature",subtypes:[],props:{protocol_feature:"",version:""}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","IndirectCallToNull","StackOverflow","GenericTrap"],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},Closed:{name:"Closed",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}},require$$4$4={schema:schema$5};var __importDefault$s=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rpc_errors$5,"__esModule",{value:!0});rpc_errors$5.getErrorTypeFromErrorMessage=rpc_errors$5.formatError=rpc_errors$5.parseResultError=rpc_errors$5.parseRpcError=rpc_errors$5.ServerError=void 0;const types_1$G=lib$l,mustache_1$2=__importDefault$s(mustacheExports),format_1$2=format$6,error_messages_json_1$2=__importDefault$s(require$$3$2),rpc_error_schema_json_1$2=__importDefault$s(require$$4$4),mustacheHelpers$2={formatNear:()=>(e,n)=>(0,format_1$2.formatNearAmount)(n(e))};let ServerError$2=class extends types_1$G.TypedError{};rpc_errors$5.ServerError=ServerError$2;let ServerTransactionError$2=class extends ServerError$2{};function parseRpcError$2(e){const n={},o=walkSubtype$2(e,rpc_error_schema_json_1$2.default.schema,n,""),a=new ServerError$2(formatError$2(o,n),o);return Object.assign(a,n),a}rpc_errors$5.parseRpcError=parseRpcError$2;function parseResultError$2(e){const n=parseRpcError$2(e.status.Failure),o=new ServerTransactionError$2;return Object.assign(o,n),o.type=n.type,o.message=n.message,o.transaction_outcome=e.transaction_outcome,o}rpc_errors$5.parseResultError=parseResultError$2;function formatError$2(e,n){return typeof error_messages_json_1$2.default[e]=="string"?mustache_1$2.default.render(error_messages_json_1$2.default[e],Object.assign(Object.assign({},n),mustacheHelpers$2)):JSON.stringify(n)}rpc_errors$5.formatError=formatError$2;function walkSubtype$2(e,n,o,a){let c,l,u;for(const d in n){if(isString$2(e[d]))return e[d];if(isObject$o(e[d]))c=e[d],l=n[d],u=d;else if(isObject$o(e.kind)&&isObject$o(e.kind[d]))c=e.kind[d],l=n[d],u=d;else continue}if(c&&l){for(const d of Object.keys(l.props))o[d]=c[d];return walkSubtype$2(c,n,o,u)}else return o.kind=e,a}function getErrorTypeFromErrorMessage$2(e,n){switch(!0){case/^account .*? does not exist while viewing$/.test(e):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(e):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(e):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(e):return"CodeDoesNotExist";case/wasm execution failed with error: CompilationError\(CodeDoesNotExist/.test(e):return"CodeDoesNotExist";case/wasm execution failed with error: FunctionCallError\(MethodResolveError\(MethodNotFound/.test(e):return"MethodNotFound";case/wasm execution failed with error: MethodResolveError\(MethodNotFound/.test(e):return"MethodNotFound";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(e):return"InvalidNonce";default:return n}}rpc_errors$5.getErrorTypeFromErrorMessage=getErrorTypeFromErrorMessage$2;function isObject$o(e){return Object.prototype.toString.call(e)==="[object Object]"}function isString$2(e){return Object.prototype.toString.call(e)==="[object String]"}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseRpcError=e.parseResultError=e.getErrorTypeFromErrorMessage=e.formatError=e.ServerError=e.logWarning=void 0;var n=errors$f;Object.defineProperty(e,"logWarning",{enumerable:!0,get:function(){return n.logWarning}});var o=rpc_errors$5;Object.defineProperty(e,"ServerError",{enumerable:!0,get:function(){return o.ServerError}}),Object.defineProperty(e,"formatError",{enumerable:!0,get:function(){return o.formatError}}),Object.defineProperty(e,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return o.getErrorTypeFromErrorMessage}}),Object.defineProperty(e,"parseResultError",{enumerable:!0,get:function(){return o.parseResultError}}),Object.defineProperty(e,"parseRpcError",{enumerable:!0,get:function(){return o.parseRpcError}})})(errors$g);var logging$2={};Object.defineProperty(logging$2,"__esModule",{value:!0});logging$2.printTxOutcomeLogs=logging$2.printTxOutcomeLogsAndFailures=void 0;const errors_1$7=errors$g,logger_1$3=logger$9;function printTxOutcomeLogsAndFailures$2({contractId:e,outcome:n}){const o=[n.transaction_outcome,...n.receipts_outcome].reduce((a,c)=>{const l=typeof c.outcome.status=="object"&&typeof c.outcome.status.Failure=="object";return c.outcome.logs.length||l?a.concat({receiptIds:c.outcome.receipt_ids,logs:c.outcome.logs,failure:typeof c.outcome.status=="object"&&c.outcome.status.Failure!==void 0?(0,errors_1$7.parseRpcError)(c.outcome.status.Failure):null}):a},[]);for(const a of o)logger_1$3.Logger.log(`Receipt${a.receiptIds.length>1?"s":""}: ${a.receiptIds.join(", ")}`),printTxOutcomeLogs$2({contractId:e,logs:a.logs,prefix:" "}),a.failure&&logger_1$3.Logger.warn(` Failure [${e}]: ${a.failure}`)}logging$2.printTxOutcomeLogsAndFailures=printTxOutcomeLogsAndFailures$2;function printTxOutcomeLogs$2({contractId:e,logs:n,prefix:o=""}){for(const a of n)logger_1$3.Logger.log(`${o}Log [${e}]: ${a}`)}logging$2.printTxOutcomeLogs=printTxOutcomeLogs$2;var provider$9={};Object.defineProperty(provider$9,"__esModule",{value:!0});provider$9.getTransactionLastResult=void 0;function getTransactionLastResult$2(e){if(typeof e.status=="object"&&typeof e.status.SuccessValue=="string"){const n=Buffer.from(e.status.SuccessValue,"base64").toString();try{return JSON.parse(n)}catch{return n}}return null}provider$9.getTransactionLastResult=getTransactionLastResult$2;var validators$5={};/*!
* depd
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var browser$5=depd$1;function depd$1(e){if(!e)throw new TypeError("argument namespace is required");function n(o){}return n._file=void 0,n._ignored=!0,n._namespace=e,n._traced=!1,n._warned=Object.create(null),n.function=wrapfunction$1,n.property=wrapproperty$1,n}function wrapfunction$1(e,n){if(typeof e!="function")throw new TypeError("argument fn must be a function");return e}function wrapproperty$1(e,n,o){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("argument obj must be object");var a=Object.getOwnPropertyDescriptor(e,n);if(!a)throw new TypeError("must call property on owner object");if(!a.configurable)throw new TypeError("property must be configurable")}var utils$J={};Object.defineProperty(utils$J,"__esModule",{value:!0});utils$J.sortBigIntAsc=void 0;function sortBigIntAsc$2(e,n){return e<n?-1:e>n?1:0}utils$J.sortBigIntAsc=sortBigIntAsc$2;var __importDefault$r=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(validators$5,"__esModule",{value:!0});validators$5.diffEpochValidators=validators$5.findSeatPrice=void 0;const depd_1$5=__importDefault$r(browser$5),utils_1$K=utils$J;function findSeatPrice$2(e,n,o,a){return a&&a<49?findSeatPriceForProtocolBefore49$2(e,n):(o||((0,depd_1$5.default)("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),o=[1,6250]),findSeatPriceForProtocolAfter49$2(e,n,o))}validators$5.findSeatPrice=findSeatPrice$2;function findSeatPriceForProtocolBefore49$2(e,n){const o=e.map(d=>BigInt(d.stake)).sort(utils_1$K.sortBigIntAsc),a=BigInt(n),c=o.reduce((d,h)=>d+h);if(c<a)throw new Error("Stakes are below seats");let l=BigInt(1),u=c+BigInt(1);for(;l!==u-BigInt(1);){const d=(l+u)/BigInt(2);let h=!1,y=BigInt(0);for(let p=0;p<o.length;++p)if(y=y+o[p]/d,y>=a){l=d,h=!0;break}h||(u=d)}return l}function findSeatPriceForProtocolAfter49$2(e,n,o){if(o.length!=2)throw Error("minimumStakeRatio should have 2 elements");const a=e.map(l=>BigInt(l.stake)).sort(utils_1$K.sortBigIntAsc),c=a.reduce((l,u)=>l+u);return e.length<n?c*BigInt(o[0])/BigInt(o[1]):a[0]+BigInt(1)}function diffEpochValidators$2(e,n){const o=new Map;e.forEach(c=>o.set(c.account_id,c));const a=new Set(n.map(c=>c.account_id));return{newValidators:n.filter(c=>!o.has(c.account_id)),removedValidators:e.filter(c=>!a.has(c.account_id)),changedValidators:n.filter(c=>o.has(c.account_id)&&o.get(c.account_id).stake!=c.stake).map(c=>({current:o.get(c.account_id),next:c}))}}validators$5.diffEpochValidators=diffEpochValidators$2;(function(e){var n=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(a,c,l,u){u===void 0&&(u=l);var d=Object.getOwnPropertyDescriptor(c,l);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(a,u,d)}:function(a,c,l,u){u===void 0&&(u=l),a[u]=c[l]}),o=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(a,c){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&n(c,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),o(constants$9,e),o(errors$g,e),o(format$6,e),o(logging$2,e),o(provider$9,e),o(validators$5,e),o(logger$9,e),o(utils$J,e)})(lib$m);var ed25519$1={},sha512$1={},_sha2$1={},_assert$2={};Object.defineProperty(_assert$2,"__esModule",{value:!0});_assert$2.output=_assert$2.exists=_assert$2.hash=_assert$2.bytes=_assert$2.bool=_assert$2.number=void 0;function number$1(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}_assert$2.number=number$1;function bool$1(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}_assert$2.bool=bool$1;function bytes$1(e,...n){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}_assert$2.bytes=bytes$1;function hash$4(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(e.outputLen),number$1(e.blockLen)}_assert$2.hash=hash$4;function exists$1(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}_assert$2.exists=exists$1;function output$1(e,n){bytes$1(e);const o=n.outputLen;if(e.length<o)throw new Error(`digestInto() expects output buffer of length at least ${o}`)}_assert$2.output=output$1;const assert$j={number:number$1,bool:bool$1,bytes:bytes$1,hash:hash$4,exists:exists$1,output:output$1};_assert$2.default=assert$j;var utils$I={},crypto$5={};Object.defineProperty(crypto$5,"__esModule",{value:!0});crypto$5.crypto=void 0;crypto$5.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=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=void 0;const n=crypto$5,o=W=>W instanceof Uint8Array,a=W=>new Uint8Array(W.buffer,W.byteOffset,W.byteLength);e.u8=a;const c=W=>new Uint32Array(W.buffer,W.byteOffset,Math.floor(W.byteLength/4));e.u32=c;const l=W=>new DataView(W.buffer,W.byteOffset,W.byteLength);e.createView=l;const u=(W,X)=>W<<32-X|W>>>X;if(e.rotr=u,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const d=Array.from({length:256},(W,X)=>X.toString(16).padStart(2,"0"));function h(W){if(!o(W))throw new Error("Uint8Array expected");let X="";for(let Y=0;Y<W.length;Y++)X+=d[W[Y]];return X}e.bytesToHex=h;function y(W){if(typeof W!="string")throw new Error("hex string expected, got "+typeof W);const X=W.length;if(X%2)throw new Error("padded hex string expected, got unpadded hex of length "+X);const Y=new Uint8Array(X/2);for(let Z=0;Z<Y.length;Z++){const te=Z*2,V=W.slice(te,te+2),P=Number.parseInt(V,16);if(Number.isNaN(P)||P<0)throw new Error("Invalid byte sequence");Y[Z]=P}return Y}e.hexToBytes=y;const p=async()=>{};e.nextTick=p;async function v(W,X,Y){let Z=Date.now();for(let te=0;te<W;te++){Y(te);const V=Date.now()-Z;V>=0&&V<X||(await(0,e.nextTick)(),Z+=V)}}e.asyncLoop=v;function b(W){if(typeof W!="string")throw new Error(`utf8ToBytes expected string, got ${typeof W}`);return new Uint8Array(new TextEncoder().encode(W))}e.utf8ToBytes=b;function _(W){if(typeof W=="string"&&(W=b(W)),!o(W))throw new Error(`expected Uint8Array, got ${typeof W}`);return W}e.toBytes=_;function T(...W){const X=new Uint8Array(W.reduce((Z,te)=>Z+te.length,0));let Y=0;return W.forEach(Z=>{if(!o(Z))throw new Error("Uint8Array expected");X.set(Z,Y),Y+=Z.length}),X}e.concatBytes=T;class I{clone(){return this._cloneInto()}}e.Hash=I;const U={}.toString;function N(W,X){if(X!==void 0&&U.call(X)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(W,X)}e.checkOpts=N;function D(W){const X=Z=>W().update(_(Z)).digest(),Y=W();return X.outputLen=Y.outputLen,X.blockLen=Y.blockLen,X.create=()=>W(),X}e.wrapConstructor=D;function L(W){const X=(Z,te)=>W(te).update(_(Z)).digest(),Y=W({});return X.outputLen=Y.outputLen,X.blockLen=Y.blockLen,X.create=Z=>W(Z),X}e.wrapConstructorWithOpts=L;function B(W){const X=(Z,te)=>W(te).update(_(Z)).digest(),Y=W({});return X.outputLen=Y.outputLen,X.blockLen=Y.blockLen,X.create=Z=>W(Z),X}e.wrapXOFConstructorWithOpts=B;function H(W=32){if(n.crypto&&typeof n.crypto.getRandomValues=="function")return n.crypto.getRandomValues(new Uint8Array(W));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=H})(utils$I);Object.defineProperty(_sha2$1,"__esModule",{value:!0});_sha2$1.SHA2=void 0;const _assert_js_1$2=_assert$2,utils_js_1$f=utils$I;function setBigUint64$2(e,n,o,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,o,a);const c=BigInt(32),l=BigInt(4294967295),u=Number(o>>c&l),d=Number(o&l),h=a?4:0,y=a?0:4;e.setUint32(n+h,u,a),e.setUint32(n+y,d,a)}let SHA2$1=class extends utils_js_1$f.Hash{constructor(n,o,a,c){super(),this.blockLen=n,this.outputLen=o,this.padOffset=a,this.isLE=c,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(n),this.view=(0,utils_js_1$f.createView)(this.buffer)}update(n){(0,_assert_js_1$2.exists)(this);const{view:o,buffer:a,blockLen:c}=this;n=(0,utils_js_1$f.toBytes)(n);const l=n.length;for(let u=0;u<l;){const d=Math.min(c-this.pos,l-u);if(d===c){const h=(0,utils_js_1$f.createView)(n);for(;c<=l-u;u+=c)this.process(h,u);continue}a.set(n.subarray(u,u+d),this.pos),this.pos+=d,u+=d,this.pos===c&&(this.process(o,0),this.pos=0)}return this.length+=n.length,this.roundClean(),this}digestInto(n){(0,_assert_js_1$2.exists)(this),(0,_assert_js_1$2.output)(n,this),this.finished=!0;const{buffer:o,view:a,blockLen:c,isLE:l}=this;let{pos:u}=this;o[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>c-u&&(this.process(a,0),u=0);for(let v=u;v<c;v++)o[v]=0;setBigUint64$2(a,c-8,BigInt(this.length*8),l),this.process(a,0);const d=(0,utils_js_1$f.createView)(n),h=this.outputLen;if(h%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=h/4,p=this.get();if(y>p.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<y;v++)d.setUint32(4*v,p[v],l)}digest(){const{buffer:n,outputLen:o}=this;this.digestInto(n);const a=n.slice(0,o);return this.destroy(),a}_cloneInto(n){n||(n=new this.constructor),n.set(...this.get());const{blockLen:o,buffer:a,length:c,finished:l,destroyed:u,pos:d}=this;return n.length=c,n.pos=d,n.finished=l,n.destroyed=u,c%o&&n.buffer.set(a),n}};_sha2$1.SHA2=SHA2$1;var _u64$1={};Object.defineProperty(_u64$1,"__esModule",{value:!0});_u64$1.add5L=_u64$1.add5H=_u64$1.add4H=_u64$1.add4L=_u64$1.add3H=_u64$1.add3L=_u64$1.add=_u64$1.rotlBL=_u64$1.rotlBH=_u64$1.rotlSL=_u64$1.rotlSH=_u64$1.rotr32L=_u64$1.rotr32H=_u64$1.rotrBL=_u64$1.rotrBH=_u64$1.rotrSL=_u64$1.rotrSH=_u64$1.shrSL=_u64$1.shrSH=_u64$1.toBig=_u64$1.split=_u64$1.fromBig=void 0;const U32_MASK64$1=BigInt(2**32-1),_32n$1=BigInt(32);function fromBig$1(e,n=!1){return n?{h:Number(e&U32_MASK64$1),l:Number(e>>_32n$1&U32_MASK64$1)}:{h:Number(e>>_32n$1&U32_MASK64$1)|0,l:Number(e&U32_MASK64$1)|0}}_u64$1.fromBig=fromBig$1;function split$d(e,n=!1){let o=new Uint32Array(e.length),a=new Uint32Array(e.length);for(let c=0;c<e.length;c++){const{h:l,l:u}=fromBig$1(e[c],n);[o[c],a[c]]=[l,u]}return[o,a]}_u64$1.split=split$d;const toBig$1=(e,n)=>BigInt(e>>>0)<<_32n$1|BigInt(n>>>0);_u64$1.toBig=toBig$1;const shrSH$1=(e,n,o)=>e>>>o;_u64$1.shrSH=shrSH$1;const shrSL$1=(e,n,o)=>e<<32-o|n>>>o;_u64$1.shrSL=shrSL$1;const rotrSH$1=(e,n,o)=>e>>>o|n<<32-o;_u64$1.rotrSH=rotrSH$1;const rotrSL$1=(e,n,o)=>e<<32-o|n>>>o;_u64$1.rotrSL=rotrSL$1;const rotrBH$1=(e,n,o)=>e<<64-o|n>>>o-32;_u64$1.rotrBH=rotrBH$1;const rotrBL$1=(e,n,o)=>e>>>o-32|n<<64-o;_u64$1.rotrBL=rotrBL$1;const rotr32H$1=(e,n)=>n;_u64$1.rotr32H=rotr32H$1;const rotr32L$1=(e,n)=>e;_u64$1.rotr32L=rotr32L$1;const rotlSH$1=(e,n,o)=>e<<o|n>>>32-o;_u64$1.rotlSH=rotlSH$1;const rotlSL$1=(e,n,o)=>n<<o|e>>>32-o;_u64$1.rotlSL=rotlSL$1;const rotlBH$1=(e,n,o)=>n<<o-32|e>>>64-o;_u64$1.rotlBH=rotlBH$1;const rotlBL$1=(e,n,o)=>e<<o-32|n>>>64-o;_u64$1.rotlBL=rotlBL$1;function add$1(e,n,o,a){const c=(n>>>0)+(a>>>0);return{h:e+o+(c/2**32|0)|0,l:c|0}}_u64$1.add=add$1;const add3L$1=(e,n,o)=>(e>>>0)+(n>>>0)+(o>>>0);_u64$1.add3L=add3L$1;const add3H$1=(e,n,o,a)=>n+o+a+(e/2**32|0)|0;_u64$1.add3H=add3H$1;const add4L$1=(e,n,o,a)=>(e>>>0)+(n>>>0)+(o>>>0)+(a>>>0);_u64$1.add4L=add4L$1;const add4H$1=(e,n,o,a,c)=>n+o+a+c+(e/2**32|0)|0;_u64$1.add4H=add4H$1;const add5L$1=(e,n,o,a,c)=>(e>>>0)+(n>>>0)+(o>>>0)+(a>>>0)+(c>>>0);_u64$1.add5L=add5L$1;const add5H$1=(e,n,o,a,c,l)=>n+o+a+c+l+(e/2**32|0)|0;_u64$1.add5H=add5H$1;const u64$1={fromBig:fromBig$1,split:split$d,toBig:toBig$1,shrSH:shrSH$1,shrSL:shrSL$1,rotrSH:rotrSH$1,rotrSL:rotrSL$1,rotrBH:rotrBH$1,rotrBL:rotrBL$1,rotr32H:rotr32H$1,rotr32L:rotr32L$1,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add:add$1,add3L:add3L$1,add3H:add3H$1,add4L:add4L$1,add4H:add4H$1,add5H:add5H$1,add5L:add5L$1};_u64$1.default=u64$1;Object.defineProperty(sha512$1,"__esModule",{value:!0});sha512$1.sha384=sha512$1.sha512_256=sha512$1.sha512_224=sha512$1.sha512=sha512$1.SHA512=void 0;const _sha2_js_1$1=_sha2$1,_u64_js_1$1=_u64$1,utils_js_1$e=utils$I,[SHA512_Kh$1,SHA512_Kl$1]=_u64_js_1$1.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),SHA512_W_H$1=new Uint32Array(80),SHA512_W_L$1=new Uint32Array(80);let SHA512$3=class extends _sha2_js_1$1.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:n,Al:o,Bh:a,Bl:c,Ch:l,Cl:u,Dh:d,Dl:h,Eh:y,El:p,Fh:v,Fl:b,Gh:_,Gl:T,Hh:I,Hl:U}=this;return[n,o,a,c,l,u,d,h,y,p,v,b,_,T,I,U]}set(n,o,a,c,l,u,d,h,y,p,v,b,_,T,I,U){this.Ah=n|0,this.Al=o|0,this.Bh=a|0,this.Bl=c|0,this.Ch=l|0,this.Cl=u|0,this.Dh=d|0,this.Dl=h|0,this.Eh=y|0,this.El=p|0,this.Fh=v|0,this.Fl=b|0,this.Gh=_|0,this.Gl=T|0,this.Hh=I|0,this.Hl=U|0}process(n,o){for(let L=0;L<16;L++,o+=4)SHA512_W_H$1[L]=n.getUint32(o),SHA512_W_L$1[L]=n.getUint32(o+=4);for(let L=16;L<80;L++){const B=SHA512_W_H$1[L-15]|0,H=SHA512_W_L$1[L-15]|0,W=_u64_js_1$1.default.rotrSH(B,H,1)^_u64_js_1$1.default.rotrSH(B,H,8)^_u64_js_1$1.default.shrSH(B,H,7),X=_u64_js_1$1.default.rotrSL(B,H,1)^_u64_js_1$1.default.rotrSL(B,H,8)^_u64_js_1$1.default.shrSL(B,H,7),Y=SHA512_W_H$1[L-2]|0,Z=SHA512_W_L$1[L-2]|0,te=_u64_js_1$1.default.rotrSH(Y,Z,19)^_u64_js_1$1.default.rotrBH(Y,Z,61)^_u64_js_1$1.default.shrSH(Y,Z,6),V=_u64_js_1$1.default.rotrSL(Y,Z,19)^_u64_js_1$1.default.rotrBL(Y,Z,61)^_u64_js_1$1.default.shrSL(Y,Z,6),P=_u64_js_1$1.default.add4L(X,V,SHA512_W_L$1[L-7],SHA512_W_L$1[L-16]),A=_u64_js_1$1.default.add4H(P,W,te,SHA512_W_H$1[L-7],SHA512_W_H$1[L-16]);SHA512_W_H$1[L]=A|0,SHA512_W_L$1[L]=P|0}let{Ah:a,Al:c,Bh:l,Bl:u,Ch:d,Cl:h,Dh:y,Dl:p,Eh:v,El:b,Fh:_,Fl:T,Gh:I,Gl:U,Hh:N,Hl:D}=this;for(let L=0;L<80;L++){const B=_u64_js_1$1.default.rotrSH(v,b,14)^_u64_js_1$1.default.rotrSH(v,b,18)^_u64_js_1$1.default.rotrBH(v,b,41),H=_u64_js_1$1.default.rotrSL(v,b,14)^_u64_js_1$1.default.rotrSL(v,b,18)^_u64_js_1$1.default.rotrBL(v,b,41),W=v&_^~v&I,X=b&T^~b&U,Y=_u64_js_1$1.default.add5L(D,H,X,SHA512_Kl$1[L],SHA512_W_L$1[L]),Z=_u64_js_1$1.default.add5H(Y,N,B,W,SHA512_Kh$1[L],SHA512_W_H$1[L]),te=Y|0,V=_u64_js_1$1.default.rotrSH(a,c,28)^_u64_js_1$1.default.rotrBH(a,c,34)^_u64_js_1$1.default.rotrBH(a,c,39),P=_u64_js_1$1.default.rotrSL(a,c,28)^_u64_js_1$1.default.rotrBL(a,c,34)^_u64_js_1$1.default.rotrBL(a,c,39),A=a&l^a&d^l&d,m=c&u^c&h^u&h;N=I|0,D=U|0,I=_|0,U=T|0,_=v|0,T=b|0,{h:v,l:b}=_u64_js_1$1.default.add(y|0,p|0,Z|0,te|0),y=d|0,p=h|0,d=l|0,h=u|0,l=a|0,u=c|0;const E=_u64_js_1$1.default.add3L(te,P,m);a=_u64_js_1$1.default.add3H(E,Z,V,A),c=E|0}({h:a,l:c}=_u64_js_1$1.default.add(this.Ah|0,this.Al|0,a|0,c|0)),{h:l,l:u}=_u64_js_1$1.default.add(this.Bh|0,this.Bl|0,l|0,u|0),{h:d,l:h}=_u64_js_1$1.default.add(this.Ch|0,this.Cl|0,d|0,h|0),{h:y,l:p}=_u64_js_1$1.default.add(this.Dh|0,this.Dl|0,y|0,p|0),{h:v,l:b}=_u64_js_1$1.default.add(this.Eh|0,this.El|0,v|0,b|0),{h:_,l:T}=_u64_js_1$1.default.add(this.Fh|0,this.Fl|0,_|0,T|0),{h:I,l:U}=_u64_js_1$1.default.add(this.Gh|0,this.Gl|0,I|0,U|0),{h:N,l:D}=_u64_js_1$1.default.add(this.Hh|0,this.Hl|0,N|0,D|0),this.set(a,c,l,u,d,h,y,p,v,b,_,T,I,U,N,D)}roundClean(){SHA512_W_H$1.fill(0),SHA512_W_L$1.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};sha512$1.SHA512=SHA512$3;let SHA512_224$1=class extends SHA512$3{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}},SHA512_256$1=class extends SHA512$3{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}},SHA384$2=class extends SHA512$3{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};sha512$1.sha512=(0,utils_js_1$e.wrapConstructor)(()=>new SHA512$3);sha512$1.sha512_224=(0,utils_js_1$e.wrapConstructor)(()=>new SHA512_224$1);sha512$1.sha512_256=(0,utils_js_1$e.wrapConstructor)(()=>new SHA512_256$1);sha512$1.sha384=(0,utils_js_1$e.wrapConstructor)(()=>new SHA384$2);var edwards$2={},modular$1={},utils$H={};Object.defineProperty(utils$H,"__esModule",{value:!0});utils$H.validateObject=utils$H.createHmacDrbg=utils$H.bitMask=utils$H.bitSet=utils$H.bitGet=utils$H.bitLen=utils$H.utf8ToBytes=utils$H.equalBytes=utils$H.concatBytes=utils$H.ensureBytes=utils$H.numberToVarBytesBE=utils$H.numberToBytesLE=utils$H.numberToBytesBE=utils$H.bytesToNumberLE=utils$H.bytesToNumberBE=utils$H.hexToBytes=utils$H.hexToNumber=utils$H.numberToHexUnpadded=utils$H.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$9=BigInt(0),_1n$9=BigInt(1),_2n$5=BigInt(2),u8a=e=>e instanceof Uint8Array,hexes$1=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function bytesToHex$1(e){if(!u8a(e))throw new Error("Uint8Array expected");let n="";for(let o=0;o<e.length;o++)n+=hexes$1[e[o]];return n}utils$H.bytesToHex=bytesToHex$1;function numberToHexUnpadded$1(e){const n=e.toString(16);return n.length&1?`0${n}`:n}utils$H.numberToHexUnpadded=numberToHexUnpadded$1;function hexToNumber$1(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}utils$H.hexToNumber=hexToNumber$1;function hexToBytes$1(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const n=e.length;if(n%2)throw new Error("padded hex string expected, got unpadded hex of length "+n);const o=new Uint8Array(n/2);for(let a=0;a<o.length;a++){const c=a*2,l=e.slice(c,c+2),u=Number.parseInt(l,16);if(Number.isNaN(u)||u<0)throw new Error("Invalid byte sequence");o[a]=u}return o}utils$H.hexToBytes=hexToBytes$1;function bytesToNumberBE$1(e){return hexToNumber$1(bytesToHex$1(e))}utils$H.bytesToNumberBE=bytesToNumberBE$1;function bytesToNumberLE$1(e){if(!u8a(e))throw new Error("Uint8Array expected");return hexToNumber$1(bytesToHex$1(Uint8Array.from(e).reverse()))}utils$H.bytesToNumberLE=bytesToNumberLE$1;function numberToBytesBE$1(e,n){return hexToBytes$1(e.toString(16).padStart(n*2,"0"))}utils$H.numberToBytesBE=numberToBytesBE$1;function numberToBytesLE$1(e,n){return numberToBytesBE$1(e,n).reverse()}utils$H.numberToBytesLE=numberToBytesLE$1;function numberToVarBytesBE$1(e){return hexToBytes$1(numberToHexUnpadded$1(e))}utils$H.numberToVarBytesBE=numberToVarBytesBE$1;function ensureBytes$1(e,n,o){let a;if(typeof n=="string")try{a=hexToBytes$1(n)}catch(l){throw new Error(`${e} must be valid hex string, got "${n}". Cause: ${l}`)}else if(u8a(n))a=Uint8Array.from(n);else throw new Error(`${e} must be hex string or Uint8Array`);const c=a.length;if(typeof o=="number"&&c!==o)throw new Error(`${e} expected ${o} bytes, got ${c}`);return a}utils$H.ensureBytes=ensureBytes$1;function concatBytes$1(...e){const n=new Uint8Array(e.reduce((a,c)=>a+c.length,0));let o=0;return e.forEach(a=>{if(!u8a(a))throw new Error("Uint8Array expected");n.set(a,o),o+=a.length}),n}utils$H.concatBytes=concatBytes$1;function equalBytes$1(e,n){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==n[o])return!1;return!0}utils$H.equalBytes=equalBytes$1;function utf8ToBytes$1(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}utils$H.utf8ToBytes=utf8ToBytes$1;function bitLen$1(e){let n;for(n=0;e>_0n$9;e>>=_1n$9,n+=1);return n}utils$H.bitLen=bitLen$1;function bitGet$1(e,n){return e>>BigInt(n)&_1n$9}utils$H.bitGet=bitGet$1;const bitSet$1=(e,n,o)=>e|(o?_1n$9:_0n$9)<<BigInt(n);utils$H.bitSet=bitSet$1;const bitMask$1=e=>(_2n$5<<BigInt(e-1))-_1n$9;utils$H.bitMask=bitMask$1;const u8n$1=e=>new Uint8Array(e),u8fr$1=e=>Uint8Array.from(e);function createHmacDrbg$1(e,n,o){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof o!="function")throw new Error("hmacFn must be a function");let a=u8n$1(e),c=u8n$1(e),l=0;const u=()=>{a.fill(1),c.fill(0),l=0},d=(...v)=>o(c,a,...v),h=(v=u8n$1())=>{c=d(u8fr$1([0]),v),a=d(),v.length!==0&&(c=d(u8fr$1([1]),v),a=d())},y=()=>{if(l++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const b=[];for(;v<n;){a=d();const _=a.slice();b.push(_),v+=a.length}return concatBytes$1(...b)};return(v,b)=>{u(),h(v);let _;for(;!(_=b(y()));)h();return u(),_}}utils$H.createHmacDrbg=createHmacDrbg$1;const validatorFns$1={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,n)=>n.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function validateObject$1(e,n,o={}){const a=(c,l,u)=>{const d=validatorFns$1[l];if(typeof d!="function")throw new Error(`Invalid validator "${l}", expected function`);const h=e[c];if(!(u&&h===void 0)&&!d(h,e))throw new Error(`Invalid param ${String(c)}=${h} (${typeof h}), expected ${l}`)};for(const[c,l]of Object.entries(n))a(c,l,!1);for(const[c,l]of Object.entries(o))a(c,l,!0);return e}utils$H.validateObject=validateObject$1;Object.defineProperty(modular$1,"__esModule",{value:!0});modular$1.mapHashToField=modular$1.getMinHashLength=modular$1.getFieldBytesLength=modular$1.hashToPrivateScalar=modular$1.FpSqrtEven=modular$1.FpSqrtOdd=modular$1.Field=modular$1.nLength=modular$1.FpIsSquare=modular$1.FpDiv=modular$1.FpInvertBatch=modular$1.FpPow=modular$1.validateField=modular$1.isNegativeLE=modular$1.FpSqrt=modular$1.tonelliShanks=modular$1.invert=modular$1.pow2=modular$1.pow=modular$1.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const utils_js_1$d=utils$H,_0n$8=BigInt(0),_1n$8=BigInt(1),_2n$4=BigInt(2),_3n$1=BigInt(3),_4n$1=BigInt(4),_5n$1=BigInt(5),_8n$3=BigInt(8);BigInt(9);BigInt(16);function mod$1(e,n){const o=e%n;return o>=_0n$8?o:n+o}modular$1.mod=mod$1;function pow$8(e,n,o){if(o<=_0n$8||n<_0n$8)throw new Error("Expected power/modulo > 0");if(o===_1n$8)return _0n$8;let a=_1n$8;for(;n>_0n$8;)n&_1n$8&&(a=a*e%o),e=e*e%o,n>>=_1n$8;return a}modular$1.pow=pow$8;function pow2$1(e,n,o){let a=e;for(;n-- >_0n$8;)a*=a,a%=o;return a}modular$1.pow2=pow2$1;function invert$1(e,n){if(e===_0n$8||n<=_0n$8)throw new Error(`invert: expected positive integers, got n=${e} mod=${n}`);let o=mod$1(e,n),a=n,c=_0n$8,l=_1n$8;for(;o!==_0n$8;){const d=a/o,h=a%o,y=c-l*d;a=o,o=h,c=l,l=y}if(a!==_1n$8)throw new Error("invert: does not exist");return mod$1(c,n)}modular$1.invert=invert$1;function tonelliShanks$1(e){const n=(e-_1n$8)/_2n$4;let o,a,c;for(o=e-_1n$8,a=0;o%_2n$4===_0n$8;o/=_2n$4,a++);for(c=_2n$4;c<e&&pow$8(c,n,e)!==e-_1n$8;c++);if(a===1){const u=(e+_1n$8)/_4n$1;return function(h,y){const p=h.pow(y,u);if(!h.eql(h.sqr(p),y))throw new Error("Cannot find square root");return p}}const l=(o+_1n$8)/_2n$4;return function(d,h){if(d.pow(h,n)===d.neg(d.ONE))throw new Error("Cannot find square root");let y=a,p=d.pow(d.mul(d.ONE,c),o),v=d.pow(h,l),b=d.pow(h,o);for(;!d.eql(b,d.ONE);){if(d.eql(b,d.ZERO))return d.ZERO;let _=1;for(let I=d.sqr(b);_<y&&!d.eql(I,d.ONE);_++)I=d.sqr(I);const T=d.pow(p,_1n$8<<BigInt(y-_-1));p=d.sqr(T),v=d.mul(v,T),b=d.mul(b,p),y=_}return v}}modular$1.tonelliShanks=tonelliShanks$1;function FpSqrt$1(e){if(e%_4n$1===_3n$1){const n=(e+_1n$8)/_4n$1;return function(a,c){const l=a.pow(c,n);if(!a.eql(a.sqr(l),c))throw new Error("Cannot find square root");return l}}if(e%_8n$3===_5n$1){const n=(e-_5n$1)/_8n$3;return function(a,c){const l=a.mul(c,_2n$4),u=a.pow(l,n),d=a.mul(c,u),h=a.mul(a.mul(d,_2n$4),u),y=a.mul(d,a.sub(h,a.ONE));if(!a.eql(a.sqr(y),c))throw new Error("Cannot find square root");return y}}return tonelliShanks$1(e)}modular$1.FpSqrt=FpSqrt$1;const isNegativeLE$1=(e,n)=>(mod$1(e,n)&_1n$8)===_1n$8;modular$1.isNegativeLE=isNegativeLE$1;const FIELD_FIELDS$1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField$1(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},o=FIELD_FIELDS$1.reduce((a,c)=>(a[c]="function",a),n);return(0,utils_js_1$d.validateObject)(e,o)}modular$1.validateField=validateField$1;function FpPow$1(e,n,o){if(o<_0n$8)throw new Error("Expected power > 0");if(o===_0n$8)return e.ONE;if(o===_1n$8)return n;let a=e.ONE,c=n;for(;o>_0n$8;)o&_1n$8&&(a=e.mul(a,c)),c=e.sqr(c),o>>=_1n$8;return a}modular$1.FpPow=FpPow$1;function FpInvertBatch$1(e,n){const o=new Array(n.length),a=n.reduce((l,u,d)=>e.is0(u)?l:(o[d]=l,e.mul(l,u)),e.ONE),c=e.inv(a);return n.reduceRight((l,u,d)=>e.is0(u)?l:(o[d]=e.mul(l,o[d]),e.mul(l,u)),c),o}modular$1.FpInvertBatch=FpInvertBatch$1;function FpDiv$1(e,n,o){return e.mul(n,typeof o=="bigint"?invert$1(o,e.ORDER):e.inv(o))}modular$1.FpDiv=FpDiv$1;function FpIsSquare$1(e){const n=(e.ORDER-_1n$8)/_2n$4;return o=>{const a=e.pow(o,n);return e.eql(a,e.ZERO)||e.eql(a,e.ONE)}}modular$1.FpIsSquare=FpIsSquare$1;function nLength$1(e,n){const o=n!==void 0?n:e.toString(2).length,a=Math.ceil(o/8);return{nBitLength:o,nByteLength:a}}modular$1.nLength=nLength$1;function Field$1(e,n,o=!1,a={}){if(e<=_0n$8)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:c,nByteLength:l}=nLength$1(e,n);if(l>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=FpSqrt$1(e),d=Object.freeze({ORDER:e,BITS:c,BYTES:l,MASK:(0,utils_js_1$d.bitMask)(c),ZERO:_0n$8,ONE:_1n$8,create:h=>mod$1(h,e),isValid:h=>{if(typeof h!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof h}`);return _0n$8<=h&&h<e},is0:h=>h===_0n$8,isOdd:h=>(h&_1n$8)===_1n$8,neg:h=>mod$1(-h,e),eql:(h,y)=>h===y,sqr:h=>mod$1(h*h,e),add:(h,y)=>mod$1(h+y,e),sub:(h,y)=>mod$1(h-y,e),mul:(h,y)=>mod$1(h*y,e),pow:(h,y)=>FpPow$1(d,h,y),div:(h,y)=>mod$1(h*invert$1(y,e),e),sqrN:h=>h*h,addN:(h,y)=>h+y,subN:(h,y)=>h-y,mulN:(h,y)=>h*y,inv:h=>invert$1(h,e),sqrt:a.sqrt||(h=>u(d,h)),invertBatch:h=>FpInvertBatch$1(d,h),cmov:(h,y,p)=>p?y:h,toBytes:h=>o?(0,utils_js_1$d.numberToBytesLE)(h,l):(0,utils_js_1$d.numberToBytesBE)(h,l),fromBytes:h=>{if(h.length!==l)throw new Error(`Fp.fromBytes: expected ${l}, got ${h.length}`);return o?(0,utils_js_1$d.bytesToNumberLE)(h):(0,utils_js_1$d.bytesToNumberBE)(h)}});return Object.freeze(d)}modular$1.Field=Field$1;function FpSqrtOdd$1(e,n){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const o=e.sqrt(n);return e.isOdd(o)?o:e.neg(o)}modular$1.FpSqrtOdd=FpSqrtOdd$1;function FpSqrtEven$1(e,n){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const o=e.sqrt(n);return e.isOdd(o)?e.neg(o):o}modular$1.FpSqrtEven=FpSqrtEven$1;function hashToPrivateScalar$1(e,n,o=!1){e=(0,utils_js_1$d.ensureBytes)("privateHash",e);const a=e.length,c=nLength$1(n).nByteLength+8;if(c<24||a<c||a>1024)throw new Error(`hashToPrivateScalar: expected ${c}-1024 bytes of input, got ${a}`);const l=o?(0,utils_js_1$d.bytesToNumberLE)(e):(0,utils_js_1$d.bytesToNumberBE)(e);return mod$1(l,n-_1n$8)+_1n$8}modular$1.hashToPrivateScalar=hashToPrivateScalar$1;function getFieldBytesLength$1(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}modular$1.getFieldBytesLength=getFieldBytesLength$1;function getMinHashLength$1(e){const n=getFieldBytesLength$1(e);return n+Math.ceil(n/2)}modular$1.getMinHashLength=getMinHashLength$1;function mapHashToField$1(e,n,o=!1){const a=e.length,c=getFieldBytesLength$1(n),l=getMinHashLength$1(n);if(a<16||a<l||a>1024)throw new Error(`expected ${l}-1024 bytes of input, got ${a}`);const u=o?(0,utils_js_1$d.bytesToNumberBE)(e):(0,utils_js_1$d.bytesToNumberLE)(e),d=mod$1(u,n-_1n$8)+_1n$8;return o?(0,utils_js_1$d.numberToBytesLE)(d,c):(0,utils_js_1$d.numberToBytesBE)(d,c)}modular$1.mapHashToField=mapHashToField$1;var curve$2={};Object.defineProperty(curve$2,"__esModule",{value:!0});curve$2.validateBasic=curve$2.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$7=modular$1,utils_js_1$c=utils$H,_0n$7=BigInt(0),_1n$7=BigInt(1);function wNAF$1(e,n){const o=(c,l)=>{const u=l.negate();return c?u:l},a=c=>{const l=Math.ceil(n/c)+1,u=2**(c-1);return{windows:l,windowSize:u}};return{constTimeNegate:o,unsafeLadder(c,l){let u=e.ZERO,d=c;for(;l>_0n$7;)l&_1n$7&&(u=u.add(d)),d=d.double(),l>>=_1n$7;return u},precomputeWindow(c,l){const{windows:u,windowSize:d}=a(l),h=[];let y=c,p=y;for(let v=0;v<u;v++){p=y,h.push(p);for(let b=1;b<d;b++)p=p.add(y),h.push(p);y=p.double()}return h},wNAF(c,l,u){const{windows:d,windowSize:h}=a(c);let y=e.ZERO,p=e.BASE;const v=BigInt(2**c-1),b=2**c,_=BigInt(c);for(let T=0;T<d;T++){const I=T*h;let U=Number(u&v);u>>=_,U>h&&(U-=b,u+=_1n$7);const N=I,D=I+Math.abs(U)-1,L=T%2!==0,B=U<0;U===0?p=p.add(o(L,l[N])):y=y.add(o(B,l[D]))}return{p:y,f:p}},wNAFCached(c,l,u,d){const h=c._WINDOW_SIZE||1;let y=l.get(c);return y||(y=this.precomputeWindow(c,h),h!==1&&l.set(c,d(y))),this.wNAF(h,y,u)}}}curve$2.wNAF=wNAF$1;function validateBasic$1(e){return(0,modular_js_1$7.validateField)(e.Fp),(0,utils_js_1$c.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,modular_js_1$7.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}curve$2.validateBasic=validateBasic$1;Object.defineProperty(edwards$2,"__esModule",{value:!0});edwards$2.twistedEdwards=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$6=modular$1,ut$1=utils$H,utils_js_1$b=utils$H,curve_js_1$1=curve$2,_0n$6=BigInt(0),_1n$6=BigInt(1),_2n$3=BigInt(2),_8n$2=BigInt(8),VERIFY_DEFAULT$1={zip215:!0};function validateOpts$3(e){const n=(0,curve_js_1$1.validateBasic)(e);return ut$1.validateObject(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...n})}function twistedEdwards$1(e){const n=validateOpts$3(e),{Fp:o,n:a,prehash:c,hash:l,randomBytes:u,nByteLength:d,h}=n,y=_2n$3<<BigInt(d*8)-_1n$6,p=o.create,v=n.uvRatio||((k,O)=>{try{return{isValid:!0,value:o.sqrt(k*o.inv(O))}}catch{return{isValid:!1,value:_0n$6}}}),b=n.adjustScalarBytes||(k=>k),_=n.domain||((k,O,S)=>{if(O.length||S)throw new Error("Contexts/pre-hash are not supported");return k}),T=k=>typeof k=="bigint"&&_0n$6<k,I=(k,O)=>T(k)&&T(O)&&k<O,U=k=>k===_0n$6||I(k,y);function N(k,O){if(I(k,O))return k;throw new Error(`Expected valid scalar < ${O}, got ${typeof k} ${k}`)}function D(k){return k===_0n$6?k:N(k,a)}const L=new Map;function B(k){if(!(k instanceof H))throw new Error("ExtendedPoint expected")}class H{constructor(O,S,M,x){if(this.ex=O,this.ey=S,this.ez=M,this.et=x,!U(O))throw new Error("x required");if(!U(S))throw new Error("y required");if(!U(M))throw new Error("z required");if(!U(x))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(O){if(O instanceof H)throw new Error("extended point not allowed");const{x:S,y:M}=O||{};if(!U(S)||!U(M))throw new Error("invalid affine point");return new H(S,M,_1n$6,p(S*M))}static normalizeZ(O){const S=o.invertBatch(O.map(M=>M.ez));return O.map((M,x)=>M.toAffine(S[x])).map(H.fromAffine)}_setWindowSize(O){this._WINDOW_SIZE=O,L.delete(this)}assertValidity(){const{a:O,d:S}=n;if(this.is0())throw new Error("bad point: ZERO");const{ex:M,ey:x,ez:G,et:z}=this,ee=p(M*M),ne=p(x*x),fe=p(G*G),de=p(fe*fe),oe=p(ee*O),ue=p(fe*p(oe+ne)),se=p(de+p(S*p(ee*ne)));if(ue!==se)throw new Error("bad point: equation left != right (1)");const ie=p(M*x),ce=p(G*z);if(ie!==ce)throw new Error("bad point: equation left != right (2)")}equals(O){B(O);const{ex:S,ey:M,ez:x}=this,{ex:G,ey:z,ez:ee}=O,ne=p(S*ee),fe=p(G*x),de=p(M*ee),oe=p(z*x);return ne===fe&&de===oe}is0(){return this.equals(H.ZERO)}negate(){return new H(p(-this.ex),this.ey,this.ez,p(-this.et))}double(){const{a:O}=n,{ex:S,ey:M,ez:x}=this,G=p(S*S),z=p(M*M),ee=p(_2n$3*p(x*x)),ne=p(O*G),fe=S+M,de=p(p(fe*fe)-G-z),oe=ne+z,ue=oe-ee,se=ne-z,ie=p(de*ue),ce=p(oe*se),he=p(de*se),ve=p(ue*oe);return new H(ie,ce,ve,he)}add(O){B(O);const{a:S,d:M}=n,{ex:x,ey:G,ez:z,et:ee}=this,{ex:ne,ey:fe,ez:de,et:oe}=O;if(S===BigInt(-1)){const Se=p((G-x)*(fe+ne)),we=p((G+x)*(fe-ne)),Ae=p(we-Se);if(Ae===_0n$6)return this.double();const Oe=p(z*_2n$3*oe),Pe=p(ee*_2n$3*de),J=Pe+Oe,F=we+Se,q=Pe-Oe,Q=p(J*Ae),ae=p(F*q),$e=p(J*q),ye=p(Ae*F);return new H(Q,ae,ye,$e)}const ue=p(x*ne),se=p(G*fe),ie=p(ee*M*oe),ce=p(z*de),he=p((x+G)*(ne+fe)-ue-se),ve=ce-ie,be=ce+ie,ge=p(se-S*ue),me=p(he*ve),le=p(be*ge),Ee=p(he*ge),_e=p(ve*be);return new H(me,le,_e,Ee)}subtract(O){return this.add(O.negate())}wNAF(O){return Y.wNAFCached(this,L,O,H.normalizeZ)}multiply(O){const{p:S,f:M}=this.wNAF(N(O,a));return H.normalizeZ([S,M])[0]}multiplyUnsafe(O){let S=D(O);return S===_0n$6?X:this.equals(X)||S===_1n$6?this:this.equals(W)?this.wNAF(S).p:Y.unsafeLadder(this,S)}isSmallOrder(){return this.multiplyUnsafe(h).is0()}isTorsionFree(){return Y.unsafeLadder(this,a).is0()}toAffine(O){const{ex:S,ey:M,ez:x}=this,G=this.is0();O==null&&(O=G?_8n$2:o.inv(x));const z=p(S*O),ee=p(M*O),ne=p(x*O);if(G)return{x:_0n$6,y:_1n$6};if(ne!==_1n$6)throw new Error("invZ was invalid");return{x:z,y:ee}}clearCofactor(){const{h:O}=n;return O===_1n$6?this:this.multiplyUnsafe(O)}static fromHex(O,S=!1){const{d:M,a:x}=n,G=o.BYTES;O=(0,utils_js_1$b.ensureBytes)("pointHex",O,G);const z=O.slice(),ee=O[G-1];z[G-1]=ee&-129;const ne=ut$1.bytesToNumberLE(z);ne===_0n$6||(S?N(ne,y):N(ne,o.ORDER));const fe=p(ne*ne),de=p(fe-_1n$6),oe=p(M*fe-x);let{isValid:ue,value:se}=v(de,oe);if(!ue)throw new Error("Point.fromHex: invalid y coordinate");const ie=(se&_1n$6)===_1n$6,ce=(ee&128)!==0;if(!S&&se===_0n$6&&ce)throw new Error("Point.fromHex: x=0 and x_0=1");return ce!==ie&&(se=p(-se)),H.fromAffine({x:se,y:ne})}static fromPrivateKey(O){return V(O).point}toRawBytes(){const{x:O,y:S}=this.toAffine(),M=ut$1.numberToBytesLE(S,o.BYTES);return M[M.length-1]|=O&_1n$6?128:0,M}toHex(){return ut$1.bytesToHex(this.toRawBytes())}}H.BASE=new H(n.Gx,n.Gy,_1n$6,p(n.Gx*n.Gy)),H.ZERO=new H(_0n$6,_1n$6,_1n$6,_0n$6);const{BASE:W,ZERO:X}=H,Y=(0,curve_js_1$1.wNAF)(H,d*8);function Z(k){return(0,modular_js_1$6.mod)(k,a)}function te(k){return Z(ut$1.bytesToNumberLE(k))}function V(k){const O=d;k=(0,utils_js_1$b.ensureBytes)("private key",k,O);const S=(0,utils_js_1$b.ensureBytes)("hashed private key",l(k),2*O),M=b(S.slice(0,O)),x=S.slice(O,2*O),G=te(M),z=W.multiply(G),ee=z.toRawBytes();return{head:M,prefix:x,scalar:G,point:z,pointBytes:ee}}function P(k){return V(k).pointBytes}function A(k=new Uint8Array,...O){const S=ut$1.concatBytes(...O);return te(l(_(S,(0,utils_js_1$b.ensureBytes)("context",k),!!c)))}function m(k,O,S={}){k=(0,utils_js_1$b.ensureBytes)("message",k),c&&(k=c(k));const{prefix:M,scalar:x,pointBytes:G}=V(O),z=A(S.context,M,k),ee=W.multiply(z).toRawBytes(),ne=A(S.context,ee,G,k),fe=Z(z+ne*x);D(fe);const de=ut$1.concatBytes(ee,ut$1.numberToBytesLE(fe,o.BYTES));return(0,utils_js_1$b.ensureBytes)("result",de,d*2)}const E=VERIFY_DEFAULT$1;function w(k,O,S,M=E){const{context:x,zip215:G}=M,z=o.BYTES;k=(0,utils_js_1$b.ensureBytes)("signature",k,2*z),O=(0,utils_js_1$b.ensureBytes)("message",O),c&&(O=c(O));const ee=ut$1.bytesToNumberLE(k.slice(z,2*z));let ne,fe,de;try{ne=H.fromHex(S,G),fe=H.fromHex(k.slice(0,z),G),de=W.multiplyUnsafe(ee)}catch{return!1}if(!G&&ne.isSmallOrder())return!1;const oe=A(x,fe.toRawBytes(),ne.toRawBytes(),O);return fe.add(ne.multiplyUnsafe(oe)).subtract(de).clearCofactor().equals(H.ZERO)}return W._setWindowSize(8),{CURVE:n,getPublicKey:P,sign:m,verify:w,ExtendedPoint:H,utils:{getExtendedPublicKey:V,randomPrivateKey:()=>u(o.BYTES),precompute(k=8,O=H.BASE){return O._setWindowSize(k),O.multiply(BigInt(3)),O}}}}edwards$2.twistedEdwards=twistedEdwards$1;var montgomery$3={};Object.defineProperty(montgomery$3,"__esModule",{value:!0});montgomery$3.montgomery=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$5=modular$1,utils_js_1$a=utils$H,_0n$5=BigInt(0),_1n$5=BigInt(1);function validateOpts$2(e){return(0,utils_js_1$a.validateObject)(e,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...e})}function montgomery$2(e){const n=validateOpts$2(e),{P:o}=n,a=L=>(0,modular_js_1$5.mod)(L,o),c=n.montgomeryBits,l=Math.ceil(c/8),u=n.nByteLength,d=n.adjustScalarBytes||(L=>L),h=n.powPminus2||(L=>(0,modular_js_1$5.pow)(L,o-BigInt(2),o));function y(L,B,H){const W=a(L*(B-H));return B=a(B-W),H=a(H+W),[B,H]}function p(L){if(typeof L=="bigint"&&_0n$5<=L&&L<o)return L;throw new Error("Expected valid scalar 0 < scalar < CURVE.P")}const v=(n.a-BigInt(2))/BigInt(4);function b(L,B){const H=p(L),W=p(B),X=H;let Y=_1n$5,Z=_0n$5,te=H,V=_1n$5,P=_0n$5,A;for(let E=BigInt(c-1);E>=_0n$5;E--){const w=W>>E&_1n$5;P^=w,A=y(P,Y,te),Y=A[0],te=A[1],A=y(P,Z,V),Z=A[0],V=A[1],P=w;const C=Y+Z,k=a(C*C),O=Y-Z,S=a(O*O),M=k-S,x=te+V,G=te-V,z=a(G*C),ee=a(x*O),ne=z+ee,fe=z-ee;te=a(ne*ne),V=a(X*a(fe*fe)),Y=a(k*S),Z=a(M*(k+a(v*M)))}A=y(P,Y,te),Y=A[0],te=A[1],A=y(P,Z,V),Z=A[0],V=A[1];const m=h(Z);return a(Y*m)}function _(L){return(0,utils_js_1$a.numberToBytesLE)(a(L),l)}function T(L){const B=(0,utils_js_1$a.ensureBytes)("u coordinate",L,l);return u===l&&(B[u-1]&=127),(0,utils_js_1$a.bytesToNumberLE)(B)}function I(L){const B=(0,utils_js_1$a.ensureBytes)("scalar",L);if(B.length!==l&&B.length!==u)throw new Error(`Expected ${l} or ${u} bytes, got ${B.length}`);return(0,utils_js_1$a.bytesToNumberLE)(d(B))}function U(L,B){const H=T(B),W=I(L),X=b(H,W);if(X===_0n$5)throw new Error("Invalid private or public key received");return _(X)}const N=_(n.Gu);function D(L){return U(L,N)}return{scalarMult:U,scalarMultBase:D,getSharedSecret:(L,B)=>U(L,B),getPublicKey:L=>D(L),utils:{randomPrivateKey:()=>n.randomBytes(n.nByteLength)},GuBytes:N}}montgomery$3.montgomery=montgomery$2;var hashToCurve$1={};Object.defineProperty(hashToCurve$1,"__esModule",{value:!0});hashToCurve$1.createHasher=hashToCurve$1.isogenyMap=hashToCurve$1.hash_to_field=hashToCurve$1.expand_message_xof=hashToCurve$1.expand_message_xmd=void 0;const modular_js_1$4=modular$1,utils_js_1$9=utils$H;function validateDST(e){if(e instanceof Uint8Array)return e;if(typeof e=="string")return(0,utils_js_1$9.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}const os2ip$1=utils_js_1$9.bytesToNumberBE;function i2osp$1(e,n){if(e<0||e>=1<<8*n)throw new Error(`bad I2OSP call: value=${e} length=${n}`);const o=Array.from({length:n}).fill(0);for(let a=n-1;a>=0;a--)o[a]=e&255,e>>>=8;return new Uint8Array(o)}function strxor$1(e,n){const o=new Uint8Array(e.length);for(let a=0;a<e.length;a++)o[a]=e[a]^n[a];return o}function isBytes$3(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected")}function isNum(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function expand_message_xmd$1(e,n,o,a){isBytes$3(e),isBytes$3(n),isNum(o),n.length>255&&(n=a((0,utils_js_1$9.concatBytes)((0,utils_js_1$9.utf8ToBytes)("H2C-OVERSIZE-DST-"),n)));const{outputLen:c,blockLen:l}=a,u=Math.ceil(o/c);if(u>255)throw new Error("Invalid xmd length");const d=(0,utils_js_1$9.concatBytes)(n,i2osp$1(n.length,1)),h=i2osp$1(0,l),y=i2osp$1(o,2),p=new Array(u),v=a((0,utils_js_1$9.concatBytes)(h,e,y,i2osp$1(0,1),d));p[0]=a((0,utils_js_1$9.concatBytes)(v,i2osp$1(1,1),d));for(let _=1;_<=u;_++){const T=[strxor$1(v,p[_-1]),i2osp$1(_+1,1),d];p[_]=a((0,utils_js_1$9.concatBytes)(...T))}return(0,utils_js_1$9.concatBytes)(...p).slice(0,o)}hashToCurve$1.expand_message_xmd=expand_message_xmd$1;function expand_message_xof$1(e,n,o,a,c){if(isBytes$3(e),isBytes$3(n),isNum(o),n.length>255){const l=Math.ceil(2*a/8);n=c.create({dkLen:l}).update((0,utils_js_1$9.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(n).digest()}if(o>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return c.create({dkLen:o}).update(e).update(i2osp$1(o,2)).update(n).update(i2osp$1(n.length,1)).digest()}hashToCurve$1.expand_message_xof=expand_message_xof$1;function hash_to_field$1(e,n,o){(0,utils_js_1$9.validateObject)(o,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:a,k:c,m:l,hash:u,expand:d,DST:h}=o;isBytes$3(e),isNum(n);const y=validateDST(h),p=a.toString(2).length,v=Math.ceil((p+c)/8),b=n*l*v;let _;if(d==="xmd")_=expand_message_xmd$1(e,y,b,u);else if(d==="xof")_=expand_message_xof$1(e,y,b,c,u);else if(d==="_internal_pass")_=e;else throw new Error('expand must be "xmd" or "xof"');const T=new Array(n);for(let I=0;I<n;I++){const U=new Array(l);for(let N=0;N<l;N++){const D=v*(N+I*l),L=_.subarray(D,D+v);U[N]=(0,modular_js_1$4.mod)(os2ip$1(L),a)}T[I]=U}return T}hashToCurve$1.hash_to_field=hash_to_field$1;function isogenyMap$1(e,n){const o=n.map(a=>Array.from(a).reverse());return(a,c)=>{const[l,u,d,h]=o.map(y=>y.reduce((p,v)=>e.add(e.mul(p,a),v)));return a=e.div(l,u),c=e.mul(c,e.div(d,h)),{x:a,y:c}}}hashToCurve$1.isogenyMap=isogenyMap$1;function createHasher$1(e,n,o){if(typeof n!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(a,c){const l=hash_to_field$1(a,2,{...o,DST:o.DST,...c}),u=e.fromAffine(n(l[0])),d=e.fromAffine(n(l[1])),h=u.add(d).clearCofactor();return h.assertValidity(),h},encodeToCurve(a,c){const l=hash_to_field$1(a,1,{...o,DST:o.encodeDST,...c}),u=e.fromAffine(n(l[0])).clearCofactor();return u.assertValidity(),u}}}hashToCurve$1.createHasher=createHasher$1;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hash_to_ristretto255=e.hashToRistretto255=e.RistrettoPoint=e.encodeToCurve=e.hashToCurve=e.edwardsToMontgomeryPriv=e.edwardsToMontgomery=e.edwardsToMontgomeryPub=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=e.ED25519_TORSION_SUBGROUP=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const n=sha512$1,o=utils$I,a=edwards$2,c=montgomery$3,l=modular$1,u=utils$H,d=hashToCurve$1,h=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),y=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),p=BigInt(0),v=BigInt(1),b=BigInt(2),_=BigInt(5),T=BigInt(10),I=BigInt(20),U=BigInt(40),N=BigInt(80);function D(se){const ie=h,he=se*se%ie*se%ie,ve=(0,l.pow2)(he,b,ie)*he%ie,be=(0,l.pow2)(ve,v,ie)*se%ie,ge=(0,l.pow2)(be,_,ie)*be%ie,me=(0,l.pow2)(ge,T,ie)*ge%ie,le=(0,l.pow2)(me,I,ie)*me%ie,Ee=(0,l.pow2)(le,U,ie)*le%ie,_e=(0,l.pow2)(Ee,N,ie)*Ee%ie,Se=(0,l.pow2)(_e,N,ie)*Ee%ie,we=(0,l.pow2)(Se,T,ie)*ge%ie;return{pow_p_5_8:(0,l.pow2)(we,b,ie)*se%ie,b2:he}}function L(se){return se[0]&=248,se[31]&=127,se[31]|=64,se}function B(se,ie){const ce=h,he=(0,l.mod)(ie*ie*ie,ce),ve=(0,l.mod)(he*he*ie,ce),be=D(se*ve).pow_p_5_8;let ge=(0,l.mod)(se*he*be,ce);const me=(0,l.mod)(ie*ge*ge,ce),le=ge,Ee=(0,l.mod)(ge*y,ce),_e=me===se,Se=me===(0,l.mod)(-se,ce),we=me===(0,l.mod)(-se*y,ce);return _e&&(ge=le),(Se||we)&&(ge=Ee),(0,l.isNegativeLE)(ge,ce)&&(ge=(0,l.mod)(-ge,ce)),{isValid:_e||Se,value:ge}}e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const H=(0,l.Field)(h,void 0,!0),W={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:H,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:n.sha512,randomBytes:o.randomBytes,adjustScalarBytes:L,uvRatio:B};e.ed25519=(0,a.twistedEdwards)(W);function X(se,ie,ce){if(ie.length>255)throw new Error("Context is too big");return(0,o.concatBytes)((0,o.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([ce?1:0,ie.length]),ie,se)}e.ed25519ctx=(0,a.twistedEdwards)({...W,domain:X}),e.ed25519ph=(0,a.twistedEdwards)({...W,domain:X,prehash:n.sha512}),e.x25519=(0,c.montgomery)({P:h,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:se=>{const ie=h,{pow_p_5_8:ce,b2:he}=D(se);return(0,l.mod)((0,l.pow2)(ce,BigInt(3),ie)*he,ie)},adjustScalarBytes:L,randomBytes:o.randomBytes});function Y(se){const{y:ie}=e.ed25519.ExtendedPoint.fromHex(se),ce=BigInt(1);return H.toBytes(H.create((ce+ie)*H.inv(ce-ie)))}e.edwardsToMontgomeryPub=Y,e.edwardsToMontgomery=Y;function Z(se){const ie=W.hash(se.subarray(0,32));return W.adjustScalarBytes(ie).subarray(0,32)}e.edwardsToMontgomeryPriv=Z;const te=(H.ORDER+BigInt(3))/BigInt(8),V=H.pow(b,te),P=H.sqrt(H.neg(H.ONE)),A=(H.ORDER-BigInt(5))/BigInt(8),m=BigInt(486662);function E(se){let ie=H.sqr(se);ie=H.mul(ie,b);let ce=H.add(ie,H.ONE),he=H.neg(m),ve=H.sqr(ce),be=H.mul(ve,ce),ge=H.mul(ie,m);ge=H.mul(ge,he),ge=H.add(ge,ve),ge=H.mul(ge,he);let me=H.sqr(be);ve=H.sqr(me),me=H.mul(me,be),me=H.mul(me,ge),ve=H.mul(ve,me);let le=H.pow(ve,A);le=H.mul(le,me);let Ee=H.mul(le,P);ve=H.sqr(le),ve=H.mul(ve,be);let _e=H.eql(ve,ge),Se=H.cmov(Ee,le,_e),we=H.mul(he,ie),Ae=H.mul(le,se);Ae=H.mul(Ae,V);let Oe=H.mul(Ae,P),Pe=H.mul(ge,ie);ve=H.sqr(Ae),ve=H.mul(ve,be);let J=H.eql(ve,Pe),F=H.cmov(Oe,Ae,J);ve=H.sqr(Se),ve=H.mul(ve,be);let q=H.eql(ve,ge),Q=H.cmov(we,he,q),ae=H.cmov(F,Se,q),$e=H.isOdd(ae);return ae=H.cmov(ae,H.neg(ae),q!==$e),{xMn:Q,xMd:ce,yMn:ae,yMd:v}}const w=(0,l.FpSqrtEven)(H,H.neg(BigInt(486664)));function C(se){const{xMn:ie,xMd:ce,yMn:he,yMd:ve}=E(se);let be=H.mul(ie,ve);be=H.mul(be,w);let ge=H.mul(ce,he),me=H.sub(ie,ce),le=H.add(ie,ce),Ee=H.mul(ge,le),_e=H.eql(Ee,H.ZERO);be=H.cmov(be,H.ZERO,_e),ge=H.cmov(ge,H.ONE,_e),me=H.cmov(me,H.ONE,_e),le=H.cmov(le,H.ONE,_e);const Se=H.invertBatch([ge,le]);return{x:H.mul(be,Se[0]),y:H.mul(me,Se[1])}}const k=(0,d.createHasher)(e.ed25519.ExtendedPoint,se=>C(se[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:H.ORDER,m:1,k:128,expand:"xmd",hash:n.sha512});e.hashToCurve=k.hashToCurve,e.encodeToCurve=k.encodeToCurve;function O(se){if(!(se instanceof oe))throw new Error("RistrettoPoint expected")}const S=y,M=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),x=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),G=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),z=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),ee=se=>B(v,se),ne=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),fe=se=>e.ed25519.CURVE.Fp.create((0,u.bytesToNumberLE)(se)&ne);function de(se){const{d:ie}=e.ed25519.CURVE,ce=e.ed25519.CURVE.Fp.ORDER,he=e.ed25519.CURVE.Fp.create,ve=he(S*se*se),be=he((ve+v)*G);let ge=BigInt(-1);const me=he((ge-ie*ve)*he(ve+ie));let{isValid:le,value:Ee}=B(be,me),_e=he(Ee*se);(0,l.isNegativeLE)(_e,ce)||(_e=he(-_e)),le||(Ee=_e),le||(ge=ve);const Se=he(ge*(ve-v)*z-me),we=Ee*Ee,Ae=he((Ee+Ee)*me),Oe=he(Se*M),Pe=he(v-we),J=he(v+we);return new e.ed25519.ExtendedPoint(he(Ae*J),he(Pe*Oe),he(Oe*J),he(Ae*Pe))}class oe{constructor(ie){this.ep=ie}static fromAffine(ie){return new oe(e.ed25519.ExtendedPoint.fromAffine(ie))}static hashToCurve(ie){ie=(0,u.ensureBytes)("ristrettoHash",ie,64);const ce=fe(ie.slice(0,32)),he=de(ce),ve=fe(ie.slice(32,64)),be=de(ve);return new oe(he.add(be))}static fromHex(ie){ie=(0,u.ensureBytes)("ristrettoHex",ie,32);const{a:ce,d:he}=e.ed25519.CURVE,ve=e.ed25519.CURVE.Fp.ORDER,be=e.ed25519.CURVE.Fp.create,ge="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",me=fe(ie);if(!(0,u.equalBytes)((0,u.numberToBytesLE)(me,32),ie)||(0,l.isNegativeLE)(me,ve))throw new Error(ge);const le=be(me*me),Ee=be(v+ce*le),_e=be(v-ce*le),Se=be(Ee*Ee),we=be(_e*_e),Ae=be(ce*he*Se-we),{isValid:Oe,value:Pe}=ee(be(Ae*we)),J=be(Pe*_e),F=be(Pe*J*Ae);let q=be((me+me)*J);(0,l.isNegativeLE)(q,ve)&&(q=be(-q));const Q=be(Ee*F),ae=be(q*Q);if(!Oe||(0,l.isNegativeLE)(ae,ve)||Q===p)throw new Error(ge);return new oe(new e.ed25519.ExtendedPoint(q,Q,v,ae))}toRawBytes(){let{ex:ie,ey:ce,ez:he,et:ve}=this.ep;const be=e.ed25519.CURVE.Fp.ORDER,ge=e.ed25519.CURVE.Fp.create,me=ge(ge(he+ce)*ge(he-ce)),le=ge(ie*ce),Ee=ge(le*le),{value:_e}=ee(ge(me*Ee)),Se=ge(_e*me),we=ge(_e*le),Ae=ge(Se*we*ve);let Oe;if((0,l.isNegativeLE)(ve*Ae,be)){let J=ge(ce*S),F=ge(ie*S);ie=J,ce=F,Oe=ge(Se*x)}else Oe=we;(0,l.isNegativeLE)(ie*Ae,be)&&(ce=ge(-ce));let Pe=ge((he-ce)*Oe);return(0,l.isNegativeLE)(Pe,be)&&(Pe=ge(-Pe)),(0,u.numberToBytesLE)(Pe,32)}toHex(){return(0,u.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(ie){O(ie);const{ex:ce,ey:he}=this.ep,{ex:ve,ey:be}=ie.ep,ge=e.ed25519.CURVE.Fp.create,me=ge(ce*be)===ge(he*ve),le=ge(he*be)===ge(ce*ve);return me||le}add(ie){return O(ie),new oe(this.ep.add(ie.ep))}subtract(ie){return O(ie),new oe(this.ep.subtract(ie.ep))}multiply(ie){return new oe(this.ep.multiply(ie))}multiplyUnsafe(ie){return new oe(this.ep.multiplyUnsafe(ie))}}e.RistrettoPoint=(oe.BASE||(oe.BASE=new oe(e.ed25519.ExtendedPoint.BASE)),oe.ZERO||(oe.ZERO=new oe(e.ed25519.ExtendedPoint.ZERO)),oe);const ue=(se,ie)=>{const ce=ie.DST,he=typeof ce=="string"?(0,o.utf8ToBytes)(ce):ce,ve=(0,d.expand_message_xmd)(se,he,64,n.sha512);return oe.hashToCurve(ve)};e.hashToRistretto255=ue,e.hash_to_ristretto255=e.hashToRistretto255})(ed25519$1);var browser$4={exports:{}},MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$1=safeBufferExports.Buffer,crypto$4=globalThis.crypto||globalThis.msCrypto;crypto$4&&crypto$4.getRandomValues?browser$4.exports=randomBytes:browser$4.exports=oldBrowser;function randomBytes(e,n){if(e>MAX_UINT32)throw new RangeError("requested too many random bytes");var o=Buffer$1.allocUnsafe(e);if(e>0)if(e>MAX_BYTES)for(var a=0;a<e;a+=MAX_BYTES)crypto$4.getRandomValues(o.slice(a,a+MAX_BYTES));else crypto$4.getRandomValues(o);return typeof n=="function"?process.nextTick(function(){n(null,o)}):o}var browserExports=browser$4.exports,public_key$2={};const errors$d={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function assert$i(e,n){if(!e)throw new Error(n)}function isUint8Array$4(e,n,o){if(assert$i(n instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),o!==void 0)if(Array.isArray(o)){const a=o.join(", "),c=`Expected ${e} to be an Uint8Array with length [${a}]`;assert$i(o.includes(n.length),c)}else{const a=`Expected ${e} to be an Uint8Array with length ${o}`;assert$i(n.length===o,a)}}function isCompressed$1(e){assert$i(toTypeString$1(e)==="Boolean","Expected compressed to be a Boolean")}function getAssertedOutput$1(e=o=>new Uint8Array(o),n){return typeof e=="function"&&(e=e(n)),isUint8Array$4("output",e,n),e}function toTypeString$1(e){return Object.prototype.toString.call(e).slice(8,-1)}var lib$k=e=>({contextRandomize(n){switch(assert$i(n===null||n instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),n!==null&&isUint8Array$4("seed",n,32),e.contextRandomize(n)){case 1:throw new Error(errors$d.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(n){return isUint8Array$4("private key",n,32),e.privateKeyVerify(n)===0},privateKeyNegate(n){switch(isUint8Array$4("private key",n,32),e.privateKeyNegate(n)){case 0:return n;case 1:throw new Error(errors$d.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(n,o){switch(isUint8Array$4("private key",n,32),isUint8Array$4("tweak",o,32),e.privateKeyTweakAdd(n,o)){case 0:return n;case 1:throw new Error(errors$d.TWEAK_ADD)}},privateKeyTweakMul(n,o){switch(isUint8Array$4("private key",n,32),isUint8Array$4("tweak",o,32),e.privateKeyTweakMul(n,o)){case 0:return n;case 1:throw new Error(errors$d.TWEAK_MUL)}},publicKeyVerify(n){return isUint8Array$4("public key",n,[33,65]),e.publicKeyVerify(n)===0},publicKeyCreate(n,o=!0,a){switch(isUint8Array$4("private key",n,32),isCompressed$1(o),a=getAssertedOutput$1(a,o?33:65),e.publicKeyCreate(a,n)){case 0:return a;case 1:throw new Error(errors$d.SECKEY_INVALID);case 2:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyConvert(n,o=!0,a){switch(isUint8Array$4("public key",n,[33,65]),isCompressed$1(o),a=getAssertedOutput$1(a,o?33:65),e.publicKeyConvert(a,n)){case 0:return a;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyNegate(n,o=!0,a){switch(isUint8Array$4("public key",n,[33,65]),isCompressed$1(o),a=getAssertedOutput$1(a,o?33:65),e.publicKeyNegate(a,n)){case 0:return a;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE);case 3:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyCombine(n,o=!0,a){assert$i(Array.isArray(n),"Expected public keys to be an Array"),assert$i(n.length>0,"Expected public keys array will have more than zero items");for(const c of n)isUint8Array$4("public key",c,[33,65]);switch(isCompressed$1(o),a=getAssertedOutput$1(a,o?33:65),e.publicKeyCombine(a,n)){case 0:return a;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.PUBKEY_COMBINE);case 3:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(n,o,a=!0,c){switch(isUint8Array$4("public key",n,[33,65]),isUint8Array$4("tweak",o,32),isCompressed$1(a),c=getAssertedOutput$1(c,a?33:65),e.publicKeyTweakAdd(c,n,o)){case 0:return c;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.TWEAK_ADD)}},publicKeyTweakMul(n,o,a=!0,c){switch(isUint8Array$4("public key",n,[33,65]),isUint8Array$4("tweak",o,32),isCompressed$1(a),c=getAssertedOutput$1(c,a?33:65),e.publicKeyTweakMul(c,n,o)){case 0:return c;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.TWEAK_MUL)}},signatureNormalize(n){switch(isUint8Array$4("signature",n,64),e.signatureNormalize(n)){case 0:return n;case 1:throw new Error(errors$d.SIG_PARSE)}},signatureExport(n,o){isUint8Array$4("signature",n,64),o=getAssertedOutput$1(o,72);const a={output:o,outputlen:72};switch(e.signatureExport(a,n)){case 0:return o.slice(0,a.outputlen);case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE)}},signatureImport(n,o){switch(isUint8Array$4("signature",n),o=getAssertedOutput$1(o,64),e.signatureImport(o,n)){case 0:return o;case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE)}},ecdsaSign(n,o,a={},c){isUint8Array$4("message",n,32),isUint8Array$4("private key",o,32),assert$i(toTypeString$1(a)==="Object","Expected options to be an Object"),a.data!==void 0&&isUint8Array$4("options.data",a.data),a.noncefn!==void 0&&assert$i(toTypeString$1(a.noncefn)==="Function","Expected options.noncefn to be a Function"),c=getAssertedOutput$1(c,64);const l={signature:c,recid:null};switch(e.ecdsaSign(l,n,o,a.data,a.noncefn)){case 0:return l;case 1:throw new Error(errors$d.SIGN);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE)}},ecdsaVerify(n,o,a){switch(isUint8Array$4("signature",n,64),isUint8Array$4("message",o,32),isUint8Array$4("public key",a,[33,65]),e.ecdsaVerify(n,o,a)){case 0:return!0;case 3:return!1;case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.PUBKEY_PARSE)}},ecdsaRecover(n,o,a,c=!0,l){switch(isUint8Array$4("signature",n,64),assert$i(toTypeString$1(o)==="Number"&&o>=0&&o<=3,"Expected recovery id to be a Number within interval [0, 3]"),isUint8Array$4("message",a,32),isCompressed$1(c),l=getAssertedOutput$1(l,c?33:65),e.ecdsaRecover(l,n,o,a)){case 0:return l;case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.RECOVER);case 3:throw new Error(errors$d.IMPOSSIBLE_CASE)}},ecdh(n,o,a={},c){switch(isUint8Array$4("public key",n,[33,65]),isUint8Array$4("private key",o,32),assert$i(toTypeString$1(a)==="Object","Expected options to be an Object"),a.data!==void 0&&isUint8Array$4("options.data",a.data),a.hashfn!==void 0?(assert$i(toTypeString$1(a.hashfn)==="Function","Expected options.hashfn to be a Function"),a.xbuf!==void 0&&isUint8Array$4("options.xbuf",a.xbuf,32),a.ybuf!==void 0&&isUint8Array$4("options.ybuf",a.ybuf,32),isUint8Array$4("output",c)):c=getAssertedOutput$1(c,32),e.ecdh(c,n,o,a.data,a.hashfn,a.xbuf,a.ybuf)){case 0:return c;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.ECDH)}}}),elliptic$4={};const version$7="6.6.1",require$$0$5={version:version$7};var utils$G={},bn$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$4$3=getAugmentedNamespace(__viteBrowserExternal$1);bn$1.exports;(function(e){(function(n,o){function a(V,P){if(!V)throw new Error(P||"Assertion failed")}function c(V,P){V.super_=P;var A=function(){};A.prototype=P.prototype,V.prototype=new A,V.prototype.constructor=V}function l(V,P,A){if(l.isBN(V))return V;this.negative=0,this.words=null,this.length=0,this.red=null,V!==null&&((P==="le"||P==="be")&&(A=P,P=10),this._init(V||0,P||10,A||"be"))}typeof n=="object"?n.exports=l:o.BN=l,l.BN=l,l.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=require$$4$3.Buffer}catch{}l.isBN=function(P){return P instanceof l?!0:P!==null&&typeof P=="object"&&P.constructor.wordSize===l.wordSize&&Array.isArray(P.words)},l.max=function(P,A){return P.cmp(A)>0?P:A},l.min=function(P,A){return P.cmp(A)<0?P:A},l.prototype._init=function(P,A,m){if(typeof P=="number")return this._initNumber(P,A,m);if(typeof P=="object")return this._initArray(P,A,m);A==="hex"&&(A=16),a(A===(A|0)&&A>=2&&A<=36),P=P.toString().replace(/\s+/g,"");var E=0;P[0]==="-"&&(E++,this.negative=1),E<P.length&&(A===16?this._parseHex(P,E,m):(this._parseBase(P,A,E),m==="le"&&this._initArray(this.toArray(),A,m)))},l.prototype._initNumber=function(P,A,m){P<0&&(this.negative=1,P=-P),P<67108864?(this.words=[P&67108863],this.length=1):P<4503599627370496?(this.words=[P&67108863,P/67108864&67108863],this.length=2):(a(P<9007199254740992),this.words=[P&67108863,P/67108864&67108863,1],this.length=3),m==="le"&&this._initArray(this.toArray(),A,m)},l.prototype._initArray=function(P,A,m){if(a(typeof P.length=="number"),P.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(P.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var w,C,k=0;if(m==="be")for(E=P.length-1,w=0;E>=0;E-=3)C=P[E]|P[E-1]<<8|P[E-2]<<16,this.words[w]|=C<<k&67108863,this.words[w+1]=C>>>26-k&67108863,k+=24,k>=26&&(k-=26,w++);else if(m==="le")for(E=0,w=0;E<P.length;E+=3)C=P[E]|P[E+1]<<8|P[E+2]<<16,this.words[w]|=C<<k&67108863,this.words[w+1]=C>>>26-k&67108863,k+=24,k>=26&&(k-=26,w++);return this.strip()};function d(V,P){var A=V.charCodeAt(P);return A>=65&&A<=70?A-55:A>=97&&A<=102?A-87:A-48&15}function h(V,P,A){var m=d(V,A);return A-1>=P&&(m|=d(V,A-1)<<4),m}l.prototype._parseHex=function(P,A,m){this.length=Math.ceil((P.length-A)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var w=0,C=0,k;if(m==="be")for(E=P.length-1;E>=A;E-=2)k=h(P,A,E)<<w,this.words[C]|=k&67108863,w>=18?(w-=18,C+=1,this.words[C]|=k>>>26):w+=8;else{var O=P.length-A;for(E=O%2===0?A+1:A;E<P.length;E+=2)k=h(P,A,E)<<w,this.words[C]|=k&67108863,w>=18?(w-=18,C+=1,this.words[C]|=k>>>26):w+=8}this.strip()};function y(V,P,A,m){for(var E=0,w=Math.min(V.length,A),C=P;C<w;C++){var k=V.charCodeAt(C)-48;E*=m,k>=49?E+=k-49+10:k>=17?E+=k-17+10:E+=k}return E}l.prototype._parseBase=function(P,A,m){this.words=[0],this.length=1;for(var E=0,w=1;w<=67108863;w*=A)E++;E--,w=w/A|0;for(var C=P.length-m,k=C%E,O=Math.min(C,C-k)+m,S=0,M=m;M<O;M+=E)S=y(P,M,M+E,A),this.imuln(w),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S);if(k!==0){var x=1;for(S=y(P,M,P.length,A),M=0;M<k;M++)x*=A;this.imuln(x),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S)}this.strip()},l.prototype.copy=function(P){P.words=new Array(this.length);for(var A=0;A<this.length;A++)P.words[A]=this.words[A];P.length=this.length,P.negative=this.negative,P.red=this.red},l.prototype.clone=function(){var P=new l(null);return this.copy(P),P},l.prototype._expand=function(P){for(;this.length<P;)this.words[this.length++]=0;return this},l.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},l.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},l.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","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"],v=[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];l.prototype.toString=function(P,A){P=P||10,A=A|0||1;var m;if(P===16||P==="hex"){m="";for(var E=0,w=0,C=0;C<this.length;C++){var k=this.words[C],O=((k<<E|w)&16777215).toString(16);w=k>>>24-E&16777215,E+=2,E>=26&&(E-=26,C--),w!==0||C!==this.length-1?m=p[6-O.length]+O+m:m=O+m}for(w!==0&&(m=w.toString(16)+m);m.length%A!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(P===(P|0)&&P>=2&&P<=36){var S=v[P],M=b[P];m="";var x=this.clone();for(x.negative=0;!x.isZero();){var G=x.modn(M).toString(P);x=x.idivn(M),x.isZero()?m=G+m:m=p[S-G.length]+G+m}for(this.isZero()&&(m="0"+m);m.length%A!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}a(!1,"Base should be between 2 and 36")},l.prototype.toNumber=function(){var P=this.words[0];return this.length===2?P+=this.words[1]*67108864:this.length===3&&this.words[2]===1?P+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-P:P},l.prototype.toJSON=function(){return this.toString(16)},l.prototype.toBuffer=function(P,A){return a(typeof u<"u"),this.toArrayLike(u,P,A)},l.prototype.toArray=function(P,A){return this.toArrayLike(Array,P,A)},l.prototype.toArrayLike=function(P,A,m){var E=this.byteLength(),w=m||Math.max(1,E);a(E<=w,"byte array longer than desired length"),a(w>0,"Requested array length <= 0"),this.strip();var C=A==="le",k=new P(w),O,S,M=this.clone();if(C){for(S=0;!M.isZero();S++)O=M.andln(255),M.iushrn(8),k[S]=O;for(;S<w;S++)k[S]=0}else{for(S=0;S<w-E;S++)k[S]=0;for(S=0;!M.isZero();S++)O=M.andln(255),M.iushrn(8),k[w-S-1]=O}return k},Math.clz32?l.prototype._countBits=function(P){return 32-Math.clz32(P)}:l.prototype._countBits=function(P){var A=P,m=0;return A>=4096&&(m+=13,A>>>=13),A>=64&&(m+=7,A>>>=7),A>=8&&(m+=4,A>>>=4),A>=2&&(m+=2,A>>>=2),m+A},l.prototype._zeroBits=function(P){if(P===0)return 26;var A=P,m=0;return A&8191||(m+=13,A>>>=13),A&127||(m+=7,A>>>=7),A&15||(m+=4,A>>>=4),A&3||(m+=2,A>>>=2),A&1||m++,m},l.prototype.bitLength=function(){var P=this.words[this.length-1],A=this._countBits(P);return(this.length-1)*26+A};function _(V){for(var P=new Array(V.bitLength()),A=0;A<P.length;A++){var m=A/26|0,E=A%26;P[A]=(V.words[m]&1<<E)>>>E}return P}l.prototype.zeroBits=function(){if(this.isZero())return 0;for(var P=0,A=0;A<this.length;A++){var m=this._zeroBits(this.words[A]);if(P+=m,m!==26)break}return P},l.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},l.prototype.toTwos=function(P){return this.negative!==0?this.abs().inotn(P).iaddn(1):this.clone()},l.prototype.fromTwos=function(P){return this.testn(P-1)?this.notn(P).iaddn(1).ineg():this.clone()},l.prototype.isNeg=function(){return this.negative!==0},l.prototype.neg=function(){return this.clone().ineg()},l.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},l.prototype.iuor=function(P){for(;this.length<P.length;)this.words[this.length++]=0;for(var A=0;A<P.length;A++)this.words[A]=this.words[A]|P.words[A];return this.strip()},l.prototype.ior=function(P){return a((this.negative|P.negative)===0),this.iuor(P)},l.prototype.or=function(P){return this.length>P.length?this.clone().ior(P):P.clone().ior(this)},l.prototype.uor=function(P){return this.length>P.length?this.clone().iuor(P):P.clone().iuor(this)},l.prototype.iuand=function(P){var A;this.length>P.length?A=P:A=this;for(var m=0;m<A.length;m++)this.words[m]=this.words[m]&P.words[m];return this.length=A.length,this.strip()},l.prototype.iand=function(P){return a((this.negative|P.negative)===0),this.iuand(P)},l.prototype.and=function(P){return this.length>P.length?this.clone().iand(P):P.clone().iand(this)},l.prototype.uand=function(P){return this.length>P.length?this.clone().iuand(P):P.clone().iuand(this)},l.prototype.iuxor=function(P){var A,m;this.length>P.length?(A=this,m=P):(A=P,m=this);for(var E=0;E<m.length;E++)this.words[E]=A.words[E]^m.words[E];if(this!==A)for(;E<A.length;E++)this.words[E]=A.words[E];return this.length=A.length,this.strip()},l.prototype.ixor=function(P){return a((this.negative|P.negative)===0),this.iuxor(P)},l.prototype.xor=function(P){return this.length>P.length?this.clone().ixor(P):P.clone().ixor(this)},l.prototype.uxor=function(P){return this.length>P.length?this.clone().iuxor(P):P.clone().iuxor(this)},l.prototype.inotn=function(P){a(typeof P=="number"&&P>=0);var A=Math.ceil(P/26)|0,m=P%26;this._expand(A),m>0&&A--;for(var E=0;E<A;E++)this.words[E]=~this.words[E]&67108863;return m>0&&(this.words[E]=~this.words[E]&67108863>>26-m),this.strip()},l.prototype.notn=function(P){return this.clone().inotn(P)},l.prototype.setn=function(P,A){a(typeof P=="number"&&P>=0);var m=P/26|0,E=P%26;return this._expand(m+1),A?this.words[m]=this.words[m]|1<<E:this.words[m]=this.words[m]&~(1<<E),this.strip()},l.prototype.iadd=function(P){var A;if(this.negative!==0&&P.negative===0)return this.negative=0,A=this.isub(P),this.negative^=1,this._normSign();if(this.negative===0&&P.negative!==0)return P.negative=0,A=this.isub(P),P.negative=1,A._normSign();var m,E;this.length>P.length?(m=this,E=P):(m=P,E=this);for(var w=0,C=0;C<E.length;C++)A=(m.words[C]|0)+(E.words[C]|0)+w,this.words[C]=A&67108863,w=A>>>26;for(;w!==0&&C<m.length;C++)A=(m.words[C]|0)+w,this.words[C]=A&67108863,w=A>>>26;if(this.length=m.length,w!==0)this.words[this.length]=w,this.length++;else if(m!==this)for(;C<m.length;C++)this.words[C]=m.words[C];return this},l.prototype.add=function(P){var A;return P.negative!==0&&this.negative===0?(P.negative=0,A=this.sub(P),P.negative^=1,A):P.negative===0&&this.negative!==0?(this.negative=0,A=P.sub(this),this.negative=1,A):this.length>P.length?this.clone().iadd(P):P.clone().iadd(this)},l.prototype.isub=function(P){if(P.negative!==0){P.negative=0;var A=this.iadd(P);return P.negative=1,A._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(P),this.negative=1,this._normSign();var m=this.cmp(P);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,w;m>0?(E=this,w=P):(E=P,w=this);for(var C=0,k=0;k<w.length;k++)A=(E.words[k]|0)-(w.words[k]|0)+C,C=A>>26,this.words[k]=A&67108863;for(;C!==0&&k<E.length;k++)A=(E.words[k]|0)+C,C=A>>26,this.words[k]=A&67108863;if(C===0&&k<E.length&&E!==this)for(;k<E.length;k++)this.words[k]=E.words[k];return this.length=Math.max(this.length,k),E!==this&&(this.negative=1),this.strip()},l.prototype.sub=function(P){return this.clone().isub(P)};function T(V,P,A){A.negative=P.negative^V.negative;var m=V.length+P.length|0;A.length=m,m=m-1|0;var E=V.words[0]|0,w=P.words[0]|0,C=E*w,k=C&67108863,O=C/67108864|0;A.words[0]=k;for(var S=1;S<m;S++){for(var M=O>>>26,x=O&67108863,G=Math.min(S,P.length-1),z=Math.max(0,S-V.length+1);z<=G;z++){var ee=S-z|0;E=V.words[ee]|0,w=P.words[z]|0,C=E*w+x,M+=C/67108864|0,x=C&67108863}A.words[S]=x|0,O=M|0}return O!==0?A.words[S]=O|0:A.length--,A.strip()}var I=function(P,A,m){var E=P.words,w=A.words,C=m.words,k=0,O,S,M,x=E[0]|0,G=x&8191,z=x>>>13,ee=E[1]|0,ne=ee&8191,fe=ee>>>13,de=E[2]|0,oe=de&8191,ue=de>>>13,se=E[3]|0,ie=se&8191,ce=se>>>13,he=E[4]|0,ve=he&8191,be=he>>>13,ge=E[5]|0,me=ge&8191,le=ge>>>13,Ee=E[6]|0,_e=Ee&8191,Se=Ee>>>13,we=E[7]|0,Ae=we&8191,Oe=we>>>13,Pe=E[8]|0,J=Pe&8191,F=Pe>>>13,q=E[9]|0,Q=q&8191,ae=q>>>13,$e=w[0]|0,ye=$e&8191,Te=$e>>>13,Ce=w[1]|0,Ie=Ce&8191,je=Ce>>>13,Re=w[2]|0,Me=Re&8191,Ge=Re>>>13,He=w[3]|0,Ne=He&8191,We=He>>>13,Ve=w[4]|0,xe=Ve&8191,qe=Ve>>>13,ze=w[5]|0,De=ze&8191,Ye=ze>>>13,Je=w[6]|0,Le=Je&8191,Xe=Je>>>13,Ze=w[7]|0,ke=Ze&8191,Qe=Ze>>>13,et=w[8]|0,Be=et&8191,tt=et>>>13,rt=w[9]|0,Ue=rt&8191,nt=rt>>>13;m.negative=P.negative^A.negative,m.length=19,O=Math.imul(G,ye),S=Math.imul(G,Te),S=S+Math.imul(z,ye)|0,M=Math.imul(z,Te);var Ke=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,O=Math.imul(ne,ye),S=Math.imul(ne,Te),S=S+Math.imul(fe,ye)|0,M=Math.imul(fe,Te),O=O+Math.imul(G,Ie)|0,S=S+Math.imul(G,je)|0,S=S+Math.imul(z,Ie)|0,M=M+Math.imul(z,je)|0;var Fe=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,O=Math.imul(oe,ye),S=Math.imul(oe,Te),S=S+Math.imul(ue,ye)|0,M=Math.imul(ue,Te),O=O+Math.imul(ne,Ie)|0,S=S+Math.imul(ne,je)|0,S=S+Math.imul(fe,Ie)|0,M=M+Math.imul(fe,je)|0,O=O+Math.imul(G,Me)|0,S=S+Math.imul(G,Ge)|0,S=S+Math.imul(z,Me)|0,M=M+Math.imul(z,Ge)|0;var it=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(it>>>26)|0,it&=67108863,O=Math.imul(ie,ye),S=Math.imul(ie,Te),S=S+Math.imul(ce,ye)|0,M=Math.imul(ce,Te),O=O+Math.imul(oe,Ie)|0,S=S+Math.imul(oe,je)|0,S=S+Math.imul(ue,Ie)|0,M=M+Math.imul(ue,je)|0,O=O+Math.imul(ne,Me)|0,S=S+Math.imul(ne,Ge)|0,S=S+Math.imul(fe,Me)|0,M=M+Math.imul(fe,Ge)|0,O=O+Math.imul(G,Ne)|0,S=S+Math.imul(G,We)|0,S=S+Math.imul(z,Ne)|0,M=M+Math.imul(z,We)|0;var st=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(st>>>26)|0,st&=67108863,O=Math.imul(ve,ye),S=Math.imul(ve,Te),S=S+Math.imul(be,ye)|0,M=Math.imul(be,Te),O=O+Math.imul(ie,Ie)|0,S=S+Math.imul(ie,je)|0,S=S+Math.imul(ce,Ie)|0,M=M+Math.imul(ce,je)|0,O=O+Math.imul(oe,Me)|0,S=S+Math.imul(oe,Ge)|0,S=S+Math.imul(ue,Me)|0,M=M+Math.imul(ue,Ge)|0,O=O+Math.imul(ne,Ne)|0,S=S+Math.imul(ne,We)|0,S=S+Math.imul(fe,Ne)|0,M=M+Math.imul(fe,We)|0,O=O+Math.imul(G,xe)|0,S=S+Math.imul(G,qe)|0,S=S+Math.imul(z,xe)|0,M=M+Math.imul(z,qe)|0;var ct=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(ct>>>26)|0,ct&=67108863,O=Math.imul(me,ye),S=Math.imul(me,Te),S=S+Math.imul(le,ye)|0,M=Math.imul(le,Te),O=O+Math.imul(ve,Ie)|0,S=S+Math.imul(ve,je)|0,S=S+Math.imul(be,Ie)|0,M=M+Math.imul(be,je)|0,O=O+Math.imul(ie,Me)|0,S=S+Math.imul(ie,Ge)|0,S=S+Math.imul(ce,Me)|0,M=M+Math.imul(ce,Ge)|0,O=O+Math.imul(oe,Ne)|0,S=S+Math.imul(oe,We)|0,S=S+Math.imul(ue,Ne)|0,M=M+Math.imul(ue,We)|0,O=O+Math.imul(ne,xe)|0,S=S+Math.imul(ne,qe)|0,S=S+Math.imul(fe,xe)|0,M=M+Math.imul(fe,qe)|0,O=O+Math.imul(G,De)|0,S=S+Math.imul(G,Ye)|0,S=S+Math.imul(z,De)|0,M=M+Math.imul(z,Ye)|0;var ft=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(ft>>>26)|0,ft&=67108863,O=Math.imul(_e,ye),S=Math.imul(_e,Te),S=S+Math.imul(Se,ye)|0,M=Math.imul(Se,Te),O=O+Math.imul(me,Ie)|0,S=S+Math.imul(me,je)|0,S=S+Math.imul(le,Ie)|0,M=M+Math.imul(le,je)|0,O=O+Math.imul(ve,Me)|0,S=S+Math.imul(ve,Ge)|0,S=S+Math.imul(be,Me)|0,M=M+Math.imul(be,Ge)|0,O=O+Math.imul(ie,Ne)|0,S=S+Math.imul(ie,We)|0,S=S+Math.imul(ce,Ne)|0,M=M+Math.imul(ce,We)|0,O=O+Math.imul(oe,xe)|0,S=S+Math.imul(oe,qe)|0,S=S+Math.imul(ue,xe)|0,M=M+Math.imul(ue,qe)|0,O=O+Math.imul(ne,De)|0,S=S+Math.imul(ne,Ye)|0,S=S+Math.imul(fe,De)|0,M=M+Math.imul(fe,Ye)|0,O=O+Math.imul(G,Le)|0,S=S+Math.imul(G,Xe)|0,S=S+Math.imul(z,Le)|0,M=M+Math.imul(z,Xe)|0;var dt=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(dt>>>26)|0,dt&=67108863,O=Math.imul(Ae,ye),S=Math.imul(Ae,Te),S=S+Math.imul(Oe,ye)|0,M=Math.imul(Oe,Te),O=O+Math.imul(_e,Ie)|0,S=S+Math.imul(_e,je)|0,S=S+Math.imul(Se,Ie)|0,M=M+Math.imul(Se,je)|0,O=O+Math.imul(me,Me)|0,S=S+Math.imul(me,Ge)|0,S=S+Math.imul(le,Me)|0,M=M+Math.imul(le,Ge)|0,O=O+Math.imul(ve,Ne)|0,S=S+Math.imul(ve,We)|0,S=S+Math.imul(be,Ne)|0,M=M+Math.imul(be,We)|0,O=O+Math.imul(ie,xe)|0,S=S+Math.imul(ie,qe)|0,S=S+Math.imul(ce,xe)|0,M=M+Math.imul(ce,qe)|0,O=O+Math.imul(oe,De)|0,S=S+Math.imul(oe,Ye)|0,S=S+Math.imul(ue,De)|0,M=M+Math.imul(ue,Ye)|0,O=O+Math.imul(ne,Le)|0,S=S+Math.imul(ne,Xe)|0,S=S+Math.imul(fe,Le)|0,M=M+Math.imul(fe,Xe)|0,O=O+Math.imul(G,ke)|0,S=S+Math.imul(G,Qe)|0,S=S+Math.imul(z,ke)|0,M=M+Math.imul(z,Qe)|0;var $t=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+($t>>>26)|0,$t&=67108863,O=Math.imul(J,ye),S=Math.imul(J,Te),S=S+Math.imul(F,ye)|0,M=Math.imul(F,Te),O=O+Math.imul(Ae,Ie)|0,S=S+Math.imul(Ae,je)|0,S=S+Math.imul(Oe,Ie)|0,M=M+Math.imul(Oe,je)|0,O=O+Math.imul(_e,Me)|0,S=S+Math.imul(_e,Ge)|0,S=S+Math.imul(Se,Me)|0,M=M+Math.imul(Se,Ge)|0,O=O+Math.imul(me,Ne)|0,S=S+Math.imul(me,We)|0,S=S+Math.imul(le,Ne)|0,M=M+Math.imul(le,We)|0,O=O+Math.imul(ve,xe)|0,S=S+Math.imul(ve,qe)|0,S=S+Math.imul(be,xe)|0,M=M+Math.imul(be,qe)|0,O=O+Math.imul(ie,De)|0,S=S+Math.imul(ie,Ye)|0,S=S+Math.imul(ce,De)|0,M=M+Math.imul(ce,Ye)|0,O=O+Math.imul(oe,Le)|0,S=S+Math.imul(oe,Xe)|0,S=S+Math.imul(ue,Le)|0,M=M+Math.imul(ue,Xe)|0,O=O+Math.imul(ne,ke)|0,S=S+Math.imul(ne,Qe)|0,S=S+Math.imul(fe,ke)|0,M=M+Math.imul(fe,Qe)|0,O=O+Math.imul(G,Be)|0,S=S+Math.imul(G,tt)|0,S=S+Math.imul(z,Be)|0,M=M+Math.imul(z,tt)|0;var ht=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(ht>>>26)|0,ht&=67108863,O=Math.imul(Q,ye),S=Math.imul(Q,Te),S=S+Math.imul(ae,ye)|0,M=Math.imul(ae,Te),O=O+Math.imul(J,Ie)|0,S=S+Math.imul(J,je)|0,S=S+Math.imul(F,Ie)|0,M=M+Math.imul(F,je)|0,O=O+Math.imul(Ae,Me)|0,S=S+Math.imul(Ae,Ge)|0,S=S+Math.imul(Oe,Me)|0,M=M+Math.imul(Oe,Ge)|0,O=O+Math.imul(_e,Ne)|0,S=S+Math.imul(_e,We)|0,S=S+Math.imul(Se,Ne)|0,M=M+Math.imul(Se,We)|0,O=O+Math.imul(me,xe)|0,S=S+Math.imul(me,qe)|0,S=S+Math.imul(le,xe)|0,M=M+Math.imul(le,qe)|0,O=O+Math.imul(ve,De)|0,S=S+Math.imul(ve,Ye)|0,S=S+Math.imul(be,De)|0,M=M+Math.imul(be,Ye)|0,O=O+Math.imul(ie,Le)|0,S=S+Math.imul(ie,Xe)|0,S=S+Math.imul(ce,Le)|0,M=M+Math.imul(ce,Xe)|0,O=O+Math.imul(oe,ke)|0,S=S+Math.imul(oe,Qe)|0,S=S+Math.imul(ue,ke)|0,M=M+Math.imul(ue,Qe)|0,O=O+Math.imul(ne,Be)|0,S=S+Math.imul(ne,tt)|0,S=S+Math.imul(fe,Be)|0,M=M+Math.imul(fe,tt)|0,O=O+Math.imul(G,Ue)|0,S=S+Math.imul(G,nt)|0,S=S+Math.imul(z,Ue)|0,M=M+Math.imul(z,nt)|0;var pt=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(pt>>>26)|0,pt&=67108863,O=Math.imul(Q,Ie),S=Math.imul(Q,je),S=S+Math.imul(ae,Ie)|0,M=Math.imul(ae,je),O=O+Math.imul(J,Me)|0,S=S+Math.imul(J,Ge)|0,S=S+Math.imul(F,Me)|0,M=M+Math.imul(F,Ge)|0,O=O+Math.imul(Ae,Ne)|0,S=S+Math.imul(Ae,We)|0,S=S+Math.imul(Oe,Ne)|0,M=M+Math.imul(Oe,We)|0,O=O+Math.imul(_e,xe)|0,S=S+Math.imul(_e,qe)|0,S=S+Math.imul(Se,xe)|0,M=M+Math.imul(Se,qe)|0,O=O+Math.imul(me,De)|0,S=S+Math.imul(me,Ye)|0,S=S+Math.imul(le,De)|0,M=M+Math.imul(le,Ye)|0,O=O+Math.imul(ve,Le)|0,S=S+Math.imul(ve,Xe)|0,S=S+Math.imul(be,Le)|0,M=M+Math.imul(be,Xe)|0,O=O+Math.imul(ie,ke)|0,S=S+Math.imul(ie,Qe)|0,S=S+Math.imul(ce,ke)|0,M=M+Math.imul(ce,Qe)|0,O=O+Math.imul(oe,Be)|0,S=S+Math.imul(oe,tt)|0,S=S+Math.imul(ue,Be)|0,M=M+Math.imul(ue,tt)|0,O=O+Math.imul(ne,Ue)|0,S=S+Math.imul(ne,nt)|0,S=S+Math.imul(fe,Ue)|0,M=M+Math.imul(fe,nt)|0;var yt=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(yt>>>26)|0,yt&=67108863,O=Math.imul(Q,Me),S=Math.imul(Q,Ge),S=S+Math.imul(ae,Me)|0,M=Math.imul(ae,Ge),O=O+Math.imul(J,Ne)|0,S=S+Math.imul(J,We)|0,S=S+Math.imul(F,Ne)|0,M=M+Math.imul(F,We)|0,O=O+Math.imul(Ae,xe)|0,S=S+Math.imul(Ae,qe)|0,S=S+Math.imul(Oe,xe)|0,M=M+Math.imul(Oe,qe)|0,O=O+Math.imul(_e,De)|0,S=S+Math.imul(_e,Ye)|0,S=S+Math.imul(Se,De)|0,M=M+Math.imul(Se,Ye)|0,O=O+Math.imul(me,Le)|0,S=S+Math.imul(me,Xe)|0,S=S+Math.imul(le,Le)|0,M=M+Math.imul(le,Xe)|0,O=O+Math.imul(ve,ke)|0,S=S+Math.imul(ve,Qe)|0,S=S+Math.imul(be,ke)|0,M=M+Math.imul(be,Qe)|0,O=O+Math.imul(ie,Be)|0,S=S+Math.imul(ie,tt)|0,S=S+Math.imul(ce,Be)|0,M=M+Math.imul(ce,tt)|0,O=O+Math.imul(oe,Ue)|0,S=S+Math.imul(oe,nt)|0,S=S+Math.imul(ue,Ue)|0,M=M+Math.imul(ue,nt)|0;var vt=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(vt>>>26)|0,vt&=67108863,O=Math.imul(Q,Ne),S=Math.imul(Q,We),S=S+Math.imul(ae,Ne)|0,M=Math.imul(ae,We),O=O+Math.imul(J,xe)|0,S=S+Math.imul(J,qe)|0,S=S+Math.imul(F,xe)|0,M=M+Math.imul(F,qe)|0,O=O+Math.imul(Ae,De)|0,S=S+Math.imul(Ae,Ye)|0,S=S+Math.imul(Oe,De)|0,M=M+Math.imul(Oe,Ye)|0,O=O+Math.imul(_e,Le)|0,S=S+Math.imul(_e,Xe)|0,S=S+Math.imul(Se,Le)|0,M=M+Math.imul(Se,Xe)|0,O=O+Math.imul(me,ke)|0,S=S+Math.imul(me,Qe)|0,S=S+Math.imul(le,ke)|0,M=M+Math.imul(le,Qe)|0,O=O+Math.imul(ve,Be)|0,S=S+Math.imul(ve,tt)|0,S=S+Math.imul(be,Be)|0,M=M+Math.imul(be,tt)|0,O=O+Math.imul(ie,Ue)|0,S=S+Math.imul(ie,nt)|0,S=S+Math.imul(ce,Ue)|0,M=M+Math.imul(ce,nt)|0;var bt=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(bt>>>26)|0,bt&=67108863,O=Math.imul(Q,xe),S=Math.imul(Q,qe),S=S+Math.imul(ae,xe)|0,M=Math.imul(ae,qe),O=O+Math.imul(J,De)|0,S=S+Math.imul(J,Ye)|0,S=S+Math.imul(F,De)|0,M=M+Math.imul(F,Ye)|0,O=O+Math.imul(Ae,Le)|0,S=S+Math.imul(Ae,Xe)|0,S=S+Math.imul(Oe,Le)|0,M=M+Math.imul(Oe,Xe)|0,O=O+Math.imul(_e,ke)|0,S=S+Math.imul(_e,Qe)|0,S=S+Math.imul(Se,ke)|0,M=M+Math.imul(Se,Qe)|0,O=O+Math.imul(me,Be)|0,S=S+Math.imul(me,tt)|0,S=S+Math.imul(le,Be)|0,M=M+Math.imul(le,tt)|0,O=O+Math.imul(ve,Ue)|0,S=S+Math.imul(ve,nt)|0,S=S+Math.imul(be,Ue)|0,M=M+Math.imul(be,nt)|0;var mt=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(mt>>>26)|0,mt&=67108863,O=Math.imul(Q,De),S=Math.imul(Q,Ye),S=S+Math.imul(ae,De)|0,M=Math.imul(ae,Ye),O=O+Math.imul(J,Le)|0,S=S+Math.imul(J,Xe)|0,S=S+Math.imul(F,Le)|0,M=M+Math.imul(F,Xe)|0,O=O+Math.imul(Ae,ke)|0,S=S+Math.imul(Ae,Qe)|0,S=S+Math.imul(Oe,ke)|0,M=M+Math.imul(Oe,Qe)|0,O=O+Math.imul(_e,Be)|0,S=S+Math.imul(_e,tt)|0,S=S+Math.imul(Se,Be)|0,M=M+Math.imul(Se,tt)|0,O=O+Math.imul(me,Ue)|0,S=S+Math.imul(me,nt)|0,S=S+Math.imul(le,Ue)|0,M=M+Math.imul(le,nt)|0;var _t=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(_t>>>26)|0,_t&=67108863,O=Math.imul(Q,Le),S=Math.imul(Q,Xe),S=S+Math.imul(ae,Le)|0,M=Math.imul(ae,Xe),O=O+Math.imul(J,ke)|0,S=S+Math.imul(J,Qe)|0,S=S+Math.imul(F,ke)|0,M=M+Math.imul(F,Qe)|0,O=O+Math.imul(Ae,Be)|0,S=S+Math.imul(Ae,tt)|0,S=S+Math.imul(Oe,Be)|0,M=M+Math.imul(Oe,tt)|0,O=O+Math.imul(_e,Ue)|0,S=S+Math.imul(_e,nt)|0,S=S+Math.imul(Se,Ue)|0,M=M+Math.imul(Se,nt)|0;var Et=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(Et>>>26)|0,Et&=67108863,O=Math.imul(Q,ke),S=Math.imul(Q,Qe),S=S+Math.imul(ae,ke)|0,M=Math.imul(ae,Qe),O=O+Math.imul(J,Be)|0,S=S+Math.imul(J,tt)|0,S=S+Math.imul(F,Be)|0,M=M+Math.imul(F,tt)|0,O=O+Math.imul(Ae,Ue)|0,S=S+Math.imul(Ae,nt)|0,S=S+Math.imul(Oe,Ue)|0,M=M+Math.imul(Oe,nt)|0;var St=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(St>>>26)|0,St&=67108863,O=Math.imul(Q,Be),S=Math.imul(Q,tt),S=S+Math.imul(ae,Be)|0,M=Math.imul(ae,tt),O=O+Math.imul(J,Ue)|0,S=S+Math.imul(J,nt)|0,S=S+Math.imul(F,Ue)|0,M=M+Math.imul(F,nt)|0;var At=(k+O|0)+((S&8191)<<13)|0;k=(M+(S>>>13)|0)+(At>>>26)|0,At&=67108863,O=Math.imul(Q,Ue),S=Math.imul(Q,nt),S=S+Math.imul(ae,Ue)|0,M=Math.imul(ae,nt);var wt=(k+O|0)+((S&8191)<<13)|0;return k=(M+(S>>>13)|0)+(wt>>>26)|0,wt&=67108863,C[0]=Ke,C[1]=Fe,C[2]=it,C[3]=st,C[4]=ct,C[5]=ft,C[6]=dt,C[7]=$t,C[8]=ht,C[9]=pt,C[10]=yt,C[11]=vt,C[12]=bt,C[13]=mt,C[14]=_t,C[15]=Et,C[16]=St,C[17]=At,C[18]=wt,k!==0&&(C[19]=k,m.length++),m};Math.imul||(I=T);function U(V,P,A){A.negative=P.negative^V.negative,A.length=V.length+P.length;for(var m=0,E=0,w=0;w<A.length-1;w++){var C=E;E=0;for(var k=m&67108863,O=Math.min(w,P.length-1),S=Math.max(0,w-V.length+1);S<=O;S++){var M=w-S,x=V.words[M]|0,G=P.words[S]|0,z=x*G,ee=z&67108863;C=C+(z/67108864|0)|0,ee=ee+k|0,k=ee&67108863,C=C+(ee>>>26)|0,E+=C>>>26,C&=67108863}A.words[w]=k,m=C,C=E}return m!==0?A.words[w]=m:A.length--,A.strip()}function N(V,P,A){var m=new D;return m.mulp(V,P,A)}l.prototype.mulTo=function(P,A){var m,E=this.length+P.length;return this.length===10&&P.length===10?m=I(this,P,A):E<63?m=T(this,P,A):E<1024?m=U(this,P,A):m=N(this,P,A),m};function D(V,P){this.x=V,this.y=P}D.prototype.makeRBT=function(P){for(var A=new Array(P),m=l.prototype._countBits(P)-1,E=0;E<P;E++)A[E]=this.revBin(E,m,P);return A},D.prototype.revBin=function(P,A,m){if(P===0||P===m-1)return P;for(var E=0,w=0;w<A;w++)E|=(P&1)<<A-w-1,P>>=1;return E},D.prototype.permute=function(P,A,m,E,w,C){for(var k=0;k<C;k++)E[k]=A[P[k]],w[k]=m[P[k]]},D.prototype.transform=function(P,A,m,E,w,C){this.permute(C,P,A,m,E,w);for(var k=1;k<w;k<<=1)for(var O=k<<1,S=Math.cos(2*Math.PI/O),M=Math.sin(2*Math.PI/O),x=0;x<w;x+=O)for(var G=S,z=M,ee=0;ee<k;ee++){var ne=m[x+ee],fe=E[x+ee],de=m[x+ee+k],oe=E[x+ee+k],ue=G*de-z*oe;oe=G*oe+z*de,de=ue,m[x+ee]=ne+de,E[x+ee]=fe+oe,m[x+ee+k]=ne-de,E[x+ee+k]=fe-oe,ee!==O&&(ue=S*G-M*z,z=S*z+M*G,G=ue)}},D.prototype.guessLen13b=function(P,A){var m=Math.max(A,P)|1,E=m&1,w=0;for(m=m/2|0;m;m=m>>>1)w++;return 1<<w+1+E},D.prototype.conjugate=function(P,A,m){if(!(m<=1))for(var E=0;E<m/2;E++){var w=P[E];P[E]=P[m-E-1],P[m-E-1]=w,w=A[E],A[E]=-A[m-E-1],A[m-E-1]=-w}},D.prototype.normalize13b=function(P,A){for(var m=0,E=0;E<A/2;E++){var w=Math.round(P[2*E+1]/A)*8192+Math.round(P[2*E]/A)+m;P[E]=w&67108863,w<67108864?m=0:m=w/67108864|0}return P},D.prototype.convert13b=function(P,A,m,E){for(var w=0,C=0;C<A;C++)w=w+(P[C]|0),m[2*C]=w&8191,w=w>>>13,m[2*C+1]=w&8191,w=w>>>13;for(C=2*A;C<E;++C)m[C]=0;a(w===0),a((w&-8192)===0)},D.prototype.stub=function(P){for(var A=new Array(P),m=0;m<P;m++)A[m]=0;return A},D.prototype.mulp=function(P,A,m){var E=2*this.guessLen13b(P.length,A.length),w=this.makeRBT(E),C=this.stub(E),k=new Array(E),O=new Array(E),S=new Array(E),M=new Array(E),x=new Array(E),G=new Array(E),z=m.words;z.length=E,this.convert13b(P.words,P.length,k,E),this.convert13b(A.words,A.length,M,E),this.transform(k,C,O,S,E,w),this.transform(M,C,x,G,E,w);for(var ee=0;ee<E;ee++){var ne=O[ee]*x[ee]-S[ee]*G[ee];S[ee]=O[ee]*G[ee]+S[ee]*x[ee],O[ee]=ne}return this.conjugate(O,S,E),this.transform(O,S,z,C,E,w),this.conjugate(z,C,E),this.normalize13b(z,E),m.negative=P.negative^A.negative,m.length=P.length+A.length,m.strip()},l.prototype.mul=function(P){var A=new l(null);return A.words=new Array(this.length+P.length),this.mulTo(P,A)},l.prototype.mulf=function(P){var A=new l(null);return A.words=new Array(this.length+P.length),N(this,P,A)},l.prototype.imul=function(P){return this.clone().mulTo(P,this)},l.prototype.imuln=function(P){a(typeof P=="number"),a(P<67108864);for(var A=0,m=0;m<this.length;m++){var E=(this.words[m]|0)*P,w=(E&67108863)+(A&67108863);A>>=26,A+=E/67108864|0,A+=w>>>26,this.words[m]=w&67108863}return A!==0&&(this.words[m]=A,this.length++),this},l.prototype.muln=function(P){return this.clone().imuln(P)},l.prototype.sqr=function(){return this.mul(this)},l.prototype.isqr=function(){return this.imul(this.clone())},l.prototype.pow=function(P){var A=_(P);if(A.length===0)return new l(1);for(var m=this,E=0;E<A.length&&A[E]===0;E++,m=m.sqr());if(++E<A.length)for(var w=m.sqr();E<A.length;E++,w=w.sqr())A[E]!==0&&(m=m.mul(w));return m},l.prototype.iushln=function(P){a(typeof P=="number"&&P>=0);var A=P%26,m=(P-A)/26,E=67108863>>>26-A<<26-A,w;if(A!==0){var C=0;for(w=0;w<this.length;w++){var k=this.words[w]&E,O=(this.words[w]|0)-k<<A;this.words[w]=O|C,C=k>>>26-A}C&&(this.words[w]=C,this.length++)}if(m!==0){for(w=this.length-1;w>=0;w--)this.words[w+m]=this.words[w];for(w=0;w<m;w++)this.words[w]=0;this.length+=m}return this.strip()},l.prototype.ishln=function(P){return a(this.negative===0),this.iushln(P)},l.prototype.iushrn=function(P,A,m){a(typeof P=="number"&&P>=0);var E;A?E=(A-A%26)/26:E=0;var w=P%26,C=Math.min((P-w)/26,this.length),k=67108863^67108863>>>w<<w,O=m;if(E-=C,E=Math.max(0,E),O){for(var S=0;S<C;S++)O.words[S]=this.words[S];O.length=C}if(C!==0)if(this.length>C)for(this.length-=C,S=0;S<this.length;S++)this.words[S]=this.words[S+C];else this.words[0]=0,this.length=1;var M=0;for(S=this.length-1;S>=0&&(M!==0||S>=E);S--){var x=this.words[S]|0;this.words[S]=M<<26-w|x>>>w,M=x&k}return O&&M!==0&&(O.words[O.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},l.prototype.ishrn=function(P,A,m){return a(this.negative===0),this.iushrn(P,A,m)},l.prototype.shln=function(P){return this.clone().ishln(P)},l.prototype.ushln=function(P){return this.clone().iushln(P)},l.prototype.shrn=function(P){return this.clone().ishrn(P)},l.prototype.ushrn=function(P){return this.clone().iushrn(P)},l.prototype.testn=function(P){a(typeof P=="number"&&P>=0);var A=P%26,m=(P-A)/26,E=1<<A;if(this.length<=m)return!1;var w=this.words[m];return!!(w&E)},l.prototype.imaskn=function(P){a(typeof P=="number"&&P>=0);var A=P%26,m=(P-A)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(A!==0&&m++,this.length=Math.min(m,this.length),A!==0){var E=67108863^67108863>>>A<<A;this.words[this.length-1]&=E}return this.strip()},l.prototype.maskn=function(P){return this.clone().imaskn(P)},l.prototype.iaddn=function(P){return a(typeof P=="number"),a(P<67108864),P<0?this.isubn(-P):this.negative!==0?this.length===1&&(this.words[0]|0)<P?(this.words[0]=P-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(P),this.negative=1,this):this._iaddn(P)},l.prototype._iaddn=function(P){this.words[0]+=P;for(var A=0;A<this.length&&this.words[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},l.prototype.isubn=function(P){if(a(typeof P=="number"),a(P<67108864),P<0)return this.iaddn(-P);if(this.negative!==0)return this.negative=0,this.iaddn(P),this.negative=1,this;if(this.words[0]-=P,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var A=0;A<this.length&&this.words[A]<0;A++)this.words[A]+=67108864,this.words[A+1]-=1;return this.strip()},l.prototype.addn=function(P){return this.clone().iaddn(P)},l.prototype.subn=function(P){return this.clone().isubn(P)},l.prototype.iabs=function(){return this.negative=0,this},l.prototype.abs=function(){return this.clone().iabs()},l.prototype._ishlnsubmul=function(P,A,m){var E=P.length+m,w;this._expand(E);var C,k=0;for(w=0;w<P.length;w++){C=(this.words[w+m]|0)+k;var O=(P.words[w]|0)*A;C-=O&67108863,k=(C>>26)-(O/67108864|0),this.words[w+m]=C&67108863}for(;w<this.length-m;w++)C=(this.words[w+m]|0)+k,k=C>>26,this.words[w+m]=C&67108863;if(k===0)return this.strip();for(a(k===-1),k=0,w=0;w<this.length;w++)C=-(this.words[w]|0)+k,k=C>>26,this.words[w]=C&67108863;return this.negative=1,this.strip()},l.prototype._wordDiv=function(P,A){var m=this.length-P.length,E=this.clone(),w=P,C=w.words[w.length-1]|0,k=this._countBits(C);m=26-k,m!==0&&(w=w.ushln(m),E.iushln(m),C=w.words[w.length-1]|0);var O=E.length-w.length,S;if(A!=="mod"){S=new l(null),S.length=O+1,S.words=new Array(S.length);for(var M=0;M<S.length;M++)S.words[M]=0}var x=E.clone()._ishlnsubmul(w,1,O);x.negative===0&&(E=x,S&&(S.words[O]=1));for(var G=O-1;G>=0;G--){var z=(E.words[w.length+G]|0)*67108864+(E.words[w.length+G-1]|0);for(z=Math.min(z/C|0,67108863),E._ishlnsubmul(w,z,G);E.negative!==0;)z--,E.negative=0,E._ishlnsubmul(w,1,G),E.isZero()||(E.negative^=1);S&&(S.words[G]=z)}return S&&S.strip(),E.strip(),A!=="div"&&m!==0&&E.iushrn(m),{div:S||null,mod:E}},l.prototype.divmod=function(P,A,m){if(a(!P.isZero()),this.isZero())return{div:new l(0),mod:new l(0)};var E,w,C;return this.negative!==0&&P.negative===0?(C=this.neg().divmod(P,A),A!=="mod"&&(E=C.div.neg()),A!=="div"&&(w=C.mod.neg(),m&&w.negative!==0&&w.iadd(P)),{div:E,mod:w}):this.negative===0&&P.negative!==0?(C=this.divmod(P.neg(),A),A!=="mod"&&(E=C.div.neg()),{div:E,mod:C.mod}):this.negative&P.negative?(C=this.neg().divmod(P.neg(),A),A!=="div"&&(w=C.mod.neg(),m&&w.negative!==0&&w.isub(P)),{div:C.div,mod:w}):P.length>this.length||this.cmp(P)<0?{div:new l(0),mod:this}:P.length===1?A==="div"?{div:this.divn(P.words[0]),mod:null}:A==="mod"?{div:null,mod:new l(this.modn(P.words[0]))}:{div:this.divn(P.words[0]),mod:new l(this.modn(P.words[0]))}:this._wordDiv(P,A)},l.prototype.div=function(P){return this.divmod(P,"div",!1).div},l.prototype.mod=function(P){return this.divmod(P,"mod",!1).mod},l.prototype.umod=function(P){return this.divmod(P,"mod",!0).mod},l.prototype.divRound=function(P){var A=this.divmod(P);if(A.mod.isZero())return A.div;var m=A.div.negative!==0?A.mod.isub(P):A.mod,E=P.ushrn(1),w=P.andln(1),C=m.cmp(E);return C<0||w===1&&C===0?A.div:A.div.negative!==0?A.div.isubn(1):A.div.iaddn(1)},l.prototype.modn=function(P){a(P<=67108863);for(var A=(1<<26)%P,m=0,E=this.length-1;E>=0;E--)m=(A*m+(this.words[E]|0))%P;return m},l.prototype.idivn=function(P){a(P<=67108863);for(var A=0,m=this.length-1;m>=0;m--){var E=(this.words[m]|0)+A*67108864;this.words[m]=E/P|0,A=E%P}return this.strip()},l.prototype.divn=function(P){return this.clone().idivn(P)},l.prototype.egcd=function(P){a(P.negative===0),a(!P.isZero());var A=this,m=P.clone();A.negative!==0?A=A.umod(P):A=A.clone();for(var E=new l(1),w=new l(0),C=new l(0),k=new l(1),O=0;A.isEven()&&m.isEven();)A.iushrn(1),m.iushrn(1),++O;for(var S=m.clone(),M=A.clone();!A.isZero();){for(var x=0,G=1;!(A.words[0]&G)&&x<26;++x,G<<=1);if(x>0)for(A.iushrn(x);x-- >0;)(E.isOdd()||w.isOdd())&&(E.iadd(S),w.isub(M)),E.iushrn(1),w.iushrn(1);for(var z=0,ee=1;!(m.words[0]&ee)&&z<26;++z,ee<<=1);if(z>0)for(m.iushrn(z);z-- >0;)(C.isOdd()||k.isOdd())&&(C.iadd(S),k.isub(M)),C.iushrn(1),k.iushrn(1);A.cmp(m)>=0?(A.isub(m),E.isub(C),w.isub(k)):(m.isub(A),C.isub(E),k.isub(w))}return{a:C,b:k,gcd:m.iushln(O)}},l.prototype._invmp=function(P){a(P.negative===0),a(!P.isZero());var A=this,m=P.clone();A.negative!==0?A=A.umod(P):A=A.clone();for(var E=new l(1),w=new l(0),C=m.clone();A.cmpn(1)>0&&m.cmpn(1)>0;){for(var k=0,O=1;!(A.words[0]&O)&&k<26;++k,O<<=1);if(k>0)for(A.iushrn(k);k-- >0;)E.isOdd()&&E.iadd(C),E.iushrn(1);for(var S=0,M=1;!(m.words[0]&M)&&S<26;++S,M<<=1);if(S>0)for(m.iushrn(S);S-- >0;)w.isOdd()&&w.iadd(C),w.iushrn(1);A.cmp(m)>=0?(A.isub(m),E.isub(w)):(m.isub(A),w.isub(E))}var x;return A.cmpn(1)===0?x=E:x=w,x.cmpn(0)<0&&x.iadd(P),x},l.prototype.gcd=function(P){if(this.isZero())return P.abs();if(P.isZero())return this.abs();var A=this.clone(),m=P.clone();A.negative=0,m.negative=0;for(var E=0;A.isEven()&&m.isEven();E++)A.iushrn(1),m.iushrn(1);do{for(;A.isEven();)A.iushrn(1);for(;m.isEven();)m.iushrn(1);var w=A.cmp(m);if(w<0){var C=A;A=m,m=C}else if(w===0||m.cmpn(1)===0)break;A.isub(m)}while(!0);return m.iushln(E)},l.prototype.invm=function(P){return this.egcd(P).a.umod(P)},l.prototype.isEven=function(){return(this.words[0]&1)===0},l.prototype.isOdd=function(){return(this.words[0]&1)===1},l.prototype.andln=function(P){return this.words[0]&P},l.prototype.bincn=function(P){a(typeof P=="number");var A=P%26,m=(P-A)/26,E=1<<A;if(this.length<=m)return this._expand(m+1),this.words[m]|=E,this;for(var w=E,C=m;w!==0&&C<this.length;C++){var k=this.words[C]|0;k+=w,w=k>>>26,k&=67108863,this.words[C]=k}return w!==0&&(this.words[C]=w,this.length++),this},l.prototype.isZero=function(){return this.length===1&&this.words[0]===0},l.prototype.cmpn=function(P){var A=P<0;if(this.negative!==0&&!A)return-1;if(this.negative===0&&A)return 1;this.strip();var m;if(this.length>1)m=1;else{A&&(P=-P),a(P<=67108863,"Number is too big");var E=this.words[0]|0;m=E===P?0:E<P?-1:1}return this.negative!==0?-m|0:m},l.prototype.cmp=function(P){if(this.negative!==0&&P.negative===0)return-1;if(this.negative===0&&P.negative!==0)return 1;var A=this.ucmp(P);return this.negative!==0?-A|0:A},l.prototype.ucmp=function(P){if(this.length>P.length)return 1;if(this.length<P.length)return-1;for(var A=0,m=this.length-1;m>=0;m--){var E=this.words[m]|0,w=P.words[m]|0;if(E!==w){E<w?A=-1:E>w&&(A=1);break}}return A},l.prototype.gtn=function(P){return this.cmpn(P)===1},l.prototype.gt=function(P){return this.cmp(P)===1},l.prototype.gten=function(P){return this.cmpn(P)>=0},l.prototype.gte=function(P){return this.cmp(P)>=0},l.prototype.ltn=function(P){return this.cmpn(P)===-1},l.prototype.lt=function(P){return this.cmp(P)===-1},l.prototype.lten=function(P){return this.cmpn(P)<=0},l.prototype.lte=function(P){return this.cmp(P)<=0},l.prototype.eqn=function(P){return this.cmpn(P)===0},l.prototype.eq=function(P){return this.cmp(P)===0},l.red=function(P){return new Z(P)},l.prototype.toRed=function(P){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),P.convertTo(this)._forceRed(P)},l.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},l.prototype._forceRed=function(P){return this.red=P,this},l.prototype.forceRed=function(P){return a(!this.red,"Already a number in reduction context"),this._forceRed(P)},l.prototype.redAdd=function(P){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,P)},l.prototype.redIAdd=function(P){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,P)},l.prototype.redSub=function(P){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,P)},l.prototype.redISub=function(P){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,P)},l.prototype.redShl=function(P){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,P)},l.prototype.redMul=function(P){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.mul(this,P)},l.prototype.redIMul=function(P){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.imul(this,P)},l.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},l.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},l.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},l.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},l.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},l.prototype.redPow=function(P){return a(this.red&&!P.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,P)};var L={k256:null,p224:null,p192:null,p25519:null};function B(V,P){this.name=V,this.p=new l(P,16),this.n=this.p.bitLength(),this.k=new l(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var P=new l(null);return P.words=new Array(Math.ceil(this.n/13)),P},B.prototype.ireduce=function(P){var A=P,m;do this.split(A,this.tmp),A=this.imulK(A),A=A.iadd(this.tmp),m=A.bitLength();while(m>this.n);var E=m<this.n?-1:A.ucmp(this.p);return E===0?(A.words[0]=0,A.length=1):E>0?A.isub(this.p):A.strip!==void 0?A.strip():A._strip(),A},B.prototype.split=function(P,A){P.iushrn(this.n,0,A)},B.prototype.imulK=function(P){return P.imul(this.k)};function H(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(H,B),H.prototype.split=function(P,A){for(var m=4194303,E=Math.min(P.length,9),w=0;w<E;w++)A.words[w]=P.words[w];if(A.length=E,P.length<=9){P.words[0]=0,P.length=1;return}var C=P.words[9];for(A.words[A.length++]=C&m,w=10;w<P.length;w++){var k=P.words[w]|0;P.words[w-10]=(k&m)<<4|C>>>22,C=k}C>>>=22,P.words[w-10]=C,C===0&&P.length>10?P.length-=10:P.length-=9},H.prototype.imulK=function(P){P.words[P.length]=0,P.words[P.length+1]=0,P.length+=2;for(var A=0,m=0;m<P.length;m++){var E=P.words[m]|0;A+=E*977,P.words[m]=A&67108863,A=E*64+(A/67108864|0)}return P.words[P.length-1]===0&&(P.length--,P.words[P.length-1]===0&&P.length--),P};function W(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(W,B);function X(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(X,B);function Y(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(Y,B),Y.prototype.imulK=function(P){for(var A=0,m=0;m<P.length;m++){var E=(P.words[m]|0)*19+A,w=E&67108863;E>>>=26,P.words[m]=w,A=E}return A!==0&&(P.words[P.length++]=A),P},l._prime=function(P){if(L[P])return L[P];var A;if(P==="k256")A=new H;else if(P==="p224")A=new W;else if(P==="p192")A=new X;else if(P==="p25519")A=new Y;else throw new Error("Unknown prime "+P);return L[P]=A,A};function Z(V){if(typeof V=="string"){var P=l._prime(V);this.m=P.p,this.prime=P}else a(V.gtn(1),"modulus must be greater than 1"),this.m=V,this.prime=null}Z.prototype._verify1=function(P){a(P.negative===0,"red works only with positives"),a(P.red,"red works only with red numbers")},Z.prototype._verify2=function(P,A){a((P.negative|A.negative)===0,"red works only with positives"),a(P.red&&P.red===A.red,"red works only with red numbers")},Z.prototype.imod=function(P){return this.prime?this.prime.ireduce(P)._forceRed(this):P.umod(this.m)._forceRed(this)},Z.prototype.neg=function(P){return P.isZero()?P.clone():this.m.sub(P)._forceRed(this)},Z.prototype.add=function(P,A){this._verify2(P,A);var m=P.add(A);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},Z.prototype.iadd=function(P,A){this._verify2(P,A);var m=P.iadd(A);return m.cmp(this.m)>=0&&m.isub(this.m),m},Z.prototype.sub=function(P,A){this._verify2(P,A);var m=P.sub(A);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},Z.prototype.isub=function(P,A){this._verify2(P,A);var m=P.isub(A);return m.cmpn(0)<0&&m.iadd(this.m),m},Z.prototype.shl=function(P,A){return this._verify1(P),this.imod(P.ushln(A))},Z.prototype.imul=function(P,A){return this._verify2(P,A),this.imod(P.imul(A))},Z.prototype.mul=function(P,A){return this._verify2(P,A),this.imod(P.mul(A))},Z.prototype.isqr=function(P){return this.imul(P,P.clone())},Z.prototype.sqr=function(P){return this.mul(P,P)},Z.prototype.sqrt=function(P){if(P.isZero())return P.clone();var A=this.m.andln(3);if(a(A%2===1),A===3){var m=this.m.add(new l(1)).iushrn(2);return this.pow(P,m)}for(var E=this.m.subn(1),w=0;!E.isZero()&&E.andln(1)===0;)w++,E.iushrn(1);a(!E.isZero());var C=new l(1).toRed(this),k=C.redNeg(),O=this.m.subn(1).iushrn(1),S=this.m.bitLength();for(S=new l(2*S*S).toRed(this);this.pow(S,O).cmp(k)!==0;)S.redIAdd(k);for(var M=this.pow(S,E),x=this.pow(P,E.addn(1).iushrn(1)),G=this.pow(P,E),z=w;G.cmp(C)!==0;){for(var ee=G,ne=0;ee.cmp(C)!==0;ne++)ee=ee.redSqr();a(ne<z);var fe=this.pow(M,new l(1).iushln(z-ne-1));x=x.redMul(fe),M=fe.redSqr(),G=G.redMul(M),z=ne}return x},Z.prototype.invm=function(P){var A=P._invmp(this.m);return A.negative!==0?(A.negative=0,this.imod(A).redNeg()):this.imod(A)},Z.prototype.pow=function(P,A){if(A.isZero())return new l(1).toRed(this);if(A.cmpn(1)===0)return P.clone();var m=4,E=new Array(1<<m);E[0]=new l(1).toRed(this),E[1]=P;for(var w=2;w<E.length;w++)E[w]=this.mul(E[w-1],P);var C=E[0],k=0,O=0,S=A.bitLength()%26;for(S===0&&(S=26),w=A.length-1;w>=0;w--){for(var M=A.words[w],x=S-1;x>=0;x--){var G=M>>x&1;if(C!==E[0]&&(C=this.sqr(C)),G===0&&k===0){O=0;continue}k<<=1,k|=G,O++,!(O!==m&&(w!==0||x!==0))&&(C=this.mul(C,E[k]),O=0,k=0)}S=26}return C},Z.prototype.convertTo=function(P){var A=P.umod(this.m);return A===P?A.clone():A},Z.prototype.convertFrom=function(P){var A=P.clone();return A.red=null,A},l.mont=function(P){return new te(P)};function te(V){Z.call(this,V),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new l(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)}c(te,Z),te.prototype.convertTo=function(P){return this.imod(P.ushln(this.shift))},te.prototype.convertFrom=function(P){var A=this.imod(P.mul(this.rinv));return A.red=null,A},te.prototype.imul=function(P,A){if(P.isZero()||A.isZero())return P.words[0]=0,P.length=1,P;var m=P.imul(A),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=m.isub(E).iushrn(this.shift),C=w;return w.cmp(this.m)>=0?C=w.isub(this.m):w.cmpn(0)<0&&(C=w.iadd(this.m)),C._forceRed(this)},te.prototype.mul=function(P,A){if(P.isZero()||A.isZero())return new l(0)._forceRed(this);var m=P.mul(A),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=m.isub(E).iushrn(this.shift),C=w;return w.cmp(this.m)>=0?C=w.isub(this.m):w.cmpn(0)<0&&(C=w.iadd(this.m)),C._forceRed(this)},te.prototype.invm=function(P){var A=this.imod(P._invmp(this.m).mul(this.r2));return A._forceRed(this)}})(e,commonjsGlobal$c)})(bn$1);var bnExports$1=bn$1.exports,minimalisticAssert=assert$h;function assert$h(e,n){if(!e)throw new Error(n||"Assertion failed")}assert$h.equal=function(n,o,a){if(n!=o)throw new Error(a||"Assertion failed: "+n+" != "+o)};var utils$F={};(function(e){var n=e;function o(l,u){if(Array.isArray(l))return l.slice();if(!l)return[];var d=[];if(typeof l!="string"){for(var h=0;h<l.length;h++)d[h]=l[h]|0;return d}if(u==="hex"){l=l.replace(/[^a-z0-9]+/ig,""),l.length%2!==0&&(l="0"+l);for(var h=0;h<l.length;h+=2)d.push(parseInt(l[h]+l[h+1],16))}else for(var h=0;h<l.length;h++){var y=l.charCodeAt(h),p=y>>8,v=y&255;p?d.push(p,v):d.push(v)}return d}n.toArray=o;function a(l){return l.length===1?"0"+l:l}n.zero2=a;function c(l){for(var u="",d=0;d<l.length;d++)u+=a(l[d].toString(16));return u}n.toHex=c,n.encode=function(u,d){return d==="hex"?c(u):u}})(utils$F);(function(e){var n=e,o=bnExports$1,a=minimalisticAssert,c=utils$F;n.assert=a,n.toArray=c.toArray,n.zero2=c.zero2,n.toHex=c.toHex,n.encode=c.encode;function l(p,v,b){var _=new Array(Math.max(p.bitLength(),b)+1),T;for(T=0;T<_.length;T+=1)_[T]=0;var I=1<<v+1,U=p.clone();for(T=0;T<_.length;T++){var N,D=U.andln(I-1);U.isOdd()?(D>(I>>1)-1?N=(I>>1)-D:N=D,U.isubn(N)):N=0,_[T]=N,U.iushrn(1)}return _}n.getNAF=l;function u(p,v){var b=[[],[]];p=p.clone(),v=v.clone();for(var _=0,T=0,I;p.cmpn(-_)>0||v.cmpn(-T)>0;){var U=p.andln(3)+_&3,N=v.andln(3)+T&3;U===3&&(U=-1),N===3&&(N=-1);var D;U&1?(I=p.andln(7)+_&7,(I===3||I===5)&&N===2?D=-U:D=U):D=0,b[0].push(D);var L;N&1?(I=v.andln(7)+T&7,(I===3||I===5)&&U===2?L=-N:L=N):L=0,b[1].push(L),2*_===D+1&&(_=1-_),2*T===L+1&&(T=1-T),p.iushrn(1),v.iushrn(1)}return b}n.getJSF=u;function d(p,v,b){var _="_"+v;p.prototype[v]=function(){return this[_]!==void 0?this[_]:this[_]=b.call(this)}}n.cachedProperty=d;function h(p){return typeof p=="string"?n.toArray(p,"hex"):p}n.parseBytes=h;function y(p){return new o(p,"hex","le")}n.intFromLE=y})(utils$G);var brorand={exports:{}},r$1;brorand.exports=function(n){return r$1||(r$1=new Rand(null)),r$1.generate(n)};function Rand(e){this.rand=e}brorand.exports.Rand=Rand;Rand.prototype.generate=function(n){return this._rand(n)};Rand.prototype._rand=function(n){if(this.rand.getBytes)return this.rand.getBytes(n);for(var o=new Uint8Array(n),a=0;a<o.length;a++)o[a]=this.rand.getByte();return o};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Rand.prototype._rand=function(n){var o=new Uint8Array(n);return self.crypto.getRandomValues(o),o}:self.msCrypto&&self.msCrypto.getRandomValues?Rand.prototype._rand=function(n){var o=new Uint8Array(n);return self.msCrypto.getRandomValues(o),o}:typeof window=="object"&&(Rand.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var crypto$3=require$$4$3;if(typeof crypto$3.randomBytes!="function")throw new Error("Not supported");Rand.prototype._rand=function(n){return crypto$3.randomBytes(n)}}catch{}var brorandExports=brorand.exports,curve$1={},BN$9=bnExports$1,utils$E=utils$G,getNAF=utils$E.getNAF,getJSF=utils$E.getJSF,assert$g=utils$E.assert;function BaseCurve(e,n){this.type=e,this.p=new BN$9(n.p,16),this.red=n.prime?BN$9.red(n.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=n.n&&new BN$9(n.n,16),this.g=n.g&&this.pointFromJSON(n.g,n.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 o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$2=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(n,o){assert$g(n.precomputed);var a=n._getDoubles(),c=getNAF(o,1,this._bitLength),l=(1<<a.step+1)-(a.step%2===0?2:1);l/=3;var u=[],d,h;for(d=0;d<c.length;d+=a.step){h=0;for(var y=d+a.step-1;y>=d;y--)h=(h<<1)+c[y];u.push(h)}for(var p=this.jpoint(null,null,null),v=this.jpoint(null,null,null),b=l;b>0;b--){for(d=0;d<u.length;d++)h=u[d],h===b?v=v.mixedAdd(a.points[d]):h===-b&&(v=v.mixedAdd(a.points[d].neg()));p=p.add(v)}return p.toP()};BaseCurve.prototype._wnafMul=function(n,o){var a=4,c=n._getNAFPoints(a);a=c.wnd;for(var l=c.points,u=getNAF(o,a,this._bitLength),d=this.jpoint(null,null,null),h=u.length-1;h>=0;h--){for(var y=0;h>=0&&u[h]===0;h--)y++;if(h>=0&&y++,d=d.dblp(y),h<0)break;var p=u[h];assert$g(p!==0),n.type==="affine"?p>0?d=d.mixedAdd(l[p-1>>1]):d=d.mixedAdd(l[-p-1>>1].neg()):p>0?d=d.add(l[p-1>>1]):d=d.add(l[-p-1>>1].neg())}return n.type==="affine"?d.toP():d};BaseCurve.prototype._wnafMulAdd=function(n,o,a,c,l){var u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,y=0,p,v,b;for(p=0;p<c;p++){b=o[p];var _=b._getNAFPoints(n);u[p]=_.wnd,d[p]=_.points}for(p=c-1;p>=1;p-=2){var T=p-1,I=p;if(u[T]!==1||u[I]!==1){h[T]=getNAF(a[T],u[T],this._bitLength),h[I]=getNAF(a[I],u[I],this._bitLength),y=Math.max(h[T].length,y),y=Math.max(h[I].length,y);continue}var U=[o[T],null,null,o[I]];o[T].y.cmp(o[I].y)===0?(U[1]=o[T].add(o[I]),U[2]=o[T].toJ().mixedAdd(o[I].neg())):o[T].y.cmp(o[I].y.redNeg())===0?(U[1]=o[T].toJ().mixedAdd(o[I]),U[2]=o[T].add(o[I].neg())):(U[1]=o[T].toJ().mixedAdd(o[I]),U[2]=o[T].toJ().mixedAdd(o[I].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],D=getJSF(a[T],a[I]);for(y=Math.max(D[0].length,y),h[T]=new Array(y),h[I]=new Array(y),v=0;v<y;v++){var L=D[0][v]|0,B=D[1][v]|0;h[T][v]=N[(L+1)*3+(B+1)],h[I][v]=0,d[T]=U}}var H=this.jpoint(null,null,null),W=this._wnafT4;for(p=y;p>=0;p--){for(var X=0;p>=0;){var Y=!0;for(v=0;v<c;v++)W[v]=h[v][p]|0,W[v]!==0&&(Y=!1);if(!Y)break;X++,p--}if(p>=0&&X++,H=H.dblp(X),p<0)break;for(v=0;v<c;v++){var Z=W[v];Z!==0&&(Z>0?b=d[v][Z-1>>1]:Z<0&&(b=d[v][-Z-1>>1].neg()),b.type==="affine"?H=H.mixedAdd(b):H=H.add(b))}}for(p=0;p<c;p++)d[p]=null;return l?H:H.toP()};function BasePoint(e,n){this.curve=e,this.type=n,this.precomputed=null}BaseCurve.BasePoint=BasePoint;BasePoint.prototype.eq=function(){throw new Error("Not implemented")};BasePoint.prototype.validate=function(){return this.curve.validate(this)};BaseCurve.prototype.decodePoint=function(n,o){n=utils$E.toArray(n,o);var a=this.p.byteLength();if((n[0]===4||n[0]===6||n[0]===7)&&n.length-1===2*a){n[0]===6?assert$g(n[n.length-1]%2===0):n[0]===7&&assert$g(n[n.length-1]%2===1);var c=this.point(n.slice(1,1+a),n.slice(1+a,1+2*a));return c}else if((n[0]===2||n[0]===3)&&n.length-1===a)return this.pointFromX(n.slice(1,1+a),n[0]===3);throw new Error("Unknown point format")};BasePoint.prototype.encodeCompressed=function(n){return this.encode(n,!0)};BasePoint.prototype._encode=function(n){var o=this.curve.p.byteLength(),a=this.getX().toArray("be",o);return n?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",o))};BasePoint.prototype.encode=function(n,o){return utils$E.encode(this._encode(o),n)};BasePoint.prototype.precompute=function(n){if(this.precomputed)return this;var o={doubles:null,naf:null,beta:null};return o.naf=this._getNAFPoints(8),o.doubles=this._getDoubles(4,n),o.beta=this._getBeta(),this.precomputed=o,this};BasePoint.prototype._hasDoubles=function(n){if(!this.precomputed)return!1;var o=this.precomputed.doubles;return o?o.points.length>=Math.ceil((n.bitLength()+1)/o.step):!1};BasePoint.prototype._getDoubles=function(n,o){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],c=this,l=0;l<o;l+=n){for(var u=0;u<n;u++)c=c.dbl();a.push(c)}return{step:n,points:a}};BasePoint.prototype._getNAFPoints=function(n){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var o=[this],a=(1<<n)-1,c=a===1?null:this.dbl(),l=1;l<a;l++)o[l]=o[l-1].add(c);return{wnd:n,points:o}};BasePoint.prototype._getBeta=function(){return null};BasePoint.prototype.dblp=function(n){for(var o=this,a=0;a<n;a++)o=o.dbl();return o};var inherits_browser$1={exports:{}};typeof Object.create=="function"?inherits_browser$1.exports=function(n,o){o&&(n.super_=o,n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser$1.exports=function(n,o){if(o){n.super_=o;var a=function(){};a.prototype=o.prototype,n.prototype=new a,n.prototype.constructor=n}};var inherits_browserExports$1=inherits_browser$1.exports,utils$D=utils$G,BN$8=bnExports$1,inherits$3=inherits_browserExports$1,Base$2=base$2,assert$f=utils$D.assert;function ShortCurve(e){Base$2.call(this,"short",e),this.a=new BN$8(e.a,16).toRed(this.red),this.b=new BN$8(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}inherits$3(ShortCurve,Base$2);var short=ShortCurve;ShortCurve.prototype._getEndomorphism=function(n){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var o,a;if(n.beta)o=new BN$8(n.beta,16).toRed(this.red);else{var c=this._getEndoRoots(this.p);o=c[0].cmp(c[1])<0?c[0]:c[1],o=o.toRed(this.red)}if(n.lambda)a=new BN$8(n.lambda,16);else{var l=this._getEndoRoots(this.n);this.g.mul(l[0]).x.cmp(this.g.x.redMul(o))===0?a=l[0]:(a=l[1],assert$f(this.g.mul(a).x.cmp(this.g.x.redMul(o))===0))}var u;return n.basis?u=n.basis.map(function(d){return{a:new BN$8(d.a,16),b:new BN$8(d.b,16)}}):u=this._getEndoBasis(a),{beta:o,lambda:a,basis:u}}};ShortCurve.prototype._getEndoRoots=function(n){var o=n===this.p?this.red:BN$8.mont(n),a=new BN$8(2).toRed(o).redInvm(),c=a.redNeg(),l=new BN$8(3).toRed(o).redNeg().redSqrt().redMul(a),u=c.redAdd(l).fromRed(),d=c.redSub(l).fromRed();return[u,d]};ShortCurve.prototype._getEndoBasis=function(n){for(var o=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=n,c=this.n.clone(),l=new BN$8(1),u=new BN$8(0),d=new BN$8(0),h=new BN$8(1),y,p,v,b,_,T,I,U=0,N,D;a.cmpn(0)!==0;){var L=c.div(a);N=c.sub(L.mul(a)),D=d.sub(L.mul(l));var B=h.sub(L.mul(u));if(!v&&N.cmp(o)<0)y=I.neg(),p=l,v=N.neg(),b=D;else if(v&&++U===2)break;I=N,c=a,a=N,d=l,l=D,h=u,u=B}_=N.neg(),T=D;var H=v.sqr().add(b.sqr()),W=_.sqr().add(T.sqr());return W.cmp(H)>=0&&(_=y,T=p),v.negative&&(v=v.neg(),b=b.neg()),_.negative&&(_=_.neg(),T=T.neg()),[{a:v,b},{a:_,b:T}]};ShortCurve.prototype._endoSplit=function(n){var o=this.endo.basis,a=o[0],c=o[1],l=c.b.mul(n).divRound(this.n),u=a.b.neg().mul(n).divRound(this.n),d=l.mul(a.a),h=u.mul(c.a),y=l.mul(a.b),p=u.mul(c.b),v=n.sub(d).sub(h),b=y.add(p).neg();return{k1:v,k2:b}};ShortCurve.prototype.pointFromX=function(n,o){n=new BN$8(n,16),n.red||(n=n.toRed(this.red));var a=n.redSqr().redMul(n).redIAdd(n.redMul(this.a)).redIAdd(this.b),c=a.redSqrt();if(c.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");var l=c.fromRed().isOdd();return(o&&!l||!o&&l)&&(c=c.redNeg()),this.point(n,c)};ShortCurve.prototype.validate=function(n){if(n.inf)return!0;var o=n.x,a=n.y,c=this.a.redMul(o),l=o.redSqr().redMul(o).redIAdd(c).redIAdd(this.b);return a.redSqr().redISub(l).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(n,o,a){for(var c=this._endoWnafT1,l=this._endoWnafT2,u=0;u<n.length;u++){var d=this._endoSplit(o[u]),h=n[u],y=h._getBeta();d.k1.negative&&(d.k1.ineg(),h=h.neg(!0)),d.k2.negative&&(d.k2.ineg(),y=y.neg(!0)),c[u*2]=h,c[u*2+1]=y,l[u*2]=d.k1,l[u*2+1]=d.k2}for(var p=this._wnafMulAdd(1,c,l,u*2,a),v=0;v<u*2;v++)c[v]=null,l[v]=null;return p};function Point$2(e,n,o,a){Base$2.BasePoint.call(this,e,"affine"),n===null&&o===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new BN$8(n,16),this.y=new BN$8(o,16),a&&(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)}inherits$3(Point$2,Base$2.BasePoint);ShortCurve.prototype.point=function(n,o,a){return new Point$2(this,n,o,a)};ShortCurve.prototype.pointFromJSON=function(n,o){return Point$2.fromJSON(this,n,o)};Point$2.prototype._getBeta=function(){if(this.curve.endo){var n=this.precomputed;if(n&&n.beta)return n.beta;var o=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(n){var a=this.curve,c=function(l){return a.point(l.x.redMul(a.endo.beta),l.y)};n.beta=o,o.precomputed={beta:null,naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(c)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(c)}}}return o}};Point$2.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};Point$2.fromJSON=function(n,o,a){typeof o=="string"&&(o=JSON.parse(o));var c=n.point(o[0],o[1],a);if(!o[2])return c;function l(d){return n.point(d[0],d[1],a)}var u=o[2];return c.precomputed={beta:null,doubles:u.doubles&&{step:u.doubles.step,points:[c].concat(u.doubles.points.map(l))},naf:u.naf&&{wnd:u.naf.wnd,points:[c].concat(u.naf.points.map(l))}},c};Point$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(n){if(this.inf)return n;if(n.inf)return this;if(this.eq(n))return this.dbl();if(this.neg().eq(n))return this.curve.point(null,null);if(this.x.cmp(n.x)===0)return this.curve.point(null,null);var o=this.y.redSub(n.y);o.cmpn(0)!==0&&(o=o.redMul(this.x.redSub(n.x).redInvm()));var a=o.redSqr().redISub(this.x).redISub(n.x),c=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,c)};Point$2.prototype.dbl=function(){if(this.inf)return this;var n=this.y.redAdd(this.y);if(n.cmpn(0)===0)return this.curve.point(null,null);var o=this.curve.a,a=this.x.redSqr(),c=n.redInvm(),l=a.redAdd(a).redIAdd(a).redIAdd(o).redMul(c),u=l.redSqr().redISub(this.x.redAdd(this.x)),d=l.redMul(this.x.redSub(u)).redISub(this.y);return this.curve.point(u,d)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(n){return n=new BN$8(n,16),this.isInfinity()?this:this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve.endo?this.curve._endoWnafMulAdd([this],[n]):this.curve._wnafMul(this,n)};Point$2.prototype.mulAdd=function(n,o,a){var c=[this,o],l=[n,a];return this.curve.endo?this.curve._endoWnafMulAdd(c,l):this.curve._wnafMulAdd(1,c,l,2)};Point$2.prototype.jmulAdd=function(n,o,a){var c=[this,o],l=[n,a];return this.curve.endo?this.curve._endoWnafMulAdd(c,l,!0):this.curve._wnafMulAdd(1,c,l,2,!0)};Point$2.prototype.eq=function(n){return this===n||this.inf===n.inf&&(this.inf||this.x.cmp(n.x)===0&&this.y.cmp(n.y)===0)};Point$2.prototype.neg=function(n){if(this.inf)return this;var o=this.curve.point(this.x,this.y.redNeg());if(n&&this.precomputed){var a=this.precomputed,c=function(l){return l.neg()};o.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(c)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(c)}}}return o};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var n=this.curve.jpoint(this.x,this.y,this.curve.one);return n};function JPoint(e,n,o,a){Base$2.BasePoint.call(this,e,"jacobian"),n===null&&o===null&&a===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(n,16),this.y=new BN$8(o,16),this.z=new BN$8(a,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}inherits$3(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(n,o,a){return new JPoint(this,n,o,a)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var n=this.z.redInvm(),o=n.redSqr(),a=this.x.redMul(o),c=this.y.redMul(o).redMul(n);return this.curve.point(a,c)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var o=n.z.redSqr(),a=this.z.redSqr(),c=this.x.redMul(o),l=n.x.redMul(a),u=this.y.redMul(o.redMul(n.z)),d=n.y.redMul(a.redMul(this.z)),h=c.redSub(l),y=u.redSub(d);if(h.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=h.redSqr(),v=p.redMul(h),b=c.redMul(p),_=y.redSqr().redIAdd(v).redISub(b).redISub(b),T=y.redMul(b.redISub(_)).redISub(u.redMul(v)),I=this.z.redMul(n.z).redMul(h);return this.curve.jpoint(_,T,I)};JPoint.prototype.mixedAdd=function(n){if(this.isInfinity())return n.toJ();if(n.isInfinity())return this;var o=this.z.redSqr(),a=this.x,c=n.x.redMul(o),l=this.y,u=n.y.redMul(o).redMul(this.z),d=a.redSub(c),h=l.redSub(u);if(d.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=d.redSqr(),p=y.redMul(d),v=a.redMul(y),b=h.redSqr().redIAdd(p).redISub(v).redISub(v),_=h.redMul(v.redISub(b)).redISub(l.redMul(p)),T=this.z.redMul(d);return this.curve.jpoint(b,_,T)};JPoint.prototype.dblp=function(n){if(n===0)return this;if(this.isInfinity())return this;if(!n)return this.dbl();var o;if(this.curve.zeroA||this.curve.threeA){var a=this;for(o=0;o<n;o++)a=a.dbl();return a}var c=this.curve.a,l=this.curve.tinv,u=this.x,d=this.y,h=this.z,y=h.redSqr().redSqr(),p=d.redAdd(d);for(o=0;o<n;o++){var v=u.redSqr(),b=p.redSqr(),_=b.redSqr(),T=v.redAdd(v).redIAdd(v).redIAdd(c.redMul(y)),I=u.redMul(b),U=T.redSqr().redISub(I.redAdd(I)),N=I.redISub(U),D=T.redMul(N);D=D.redIAdd(D).redISub(_);var L=p.redMul(h);o+1<n&&(y=y.redMul(_)),u=U,h=L,p=D}return this.curve.jpoint(u,p.redMul(l),h)};JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};JPoint.prototype._zeroDbl=function(){var n,o,a;if(this.zOne){var c=this.x.redSqr(),l=this.y.redSqr(),u=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(c).redISub(u);d=d.redIAdd(d);var h=c.redAdd(c).redIAdd(c),y=h.redSqr().redISub(d).redISub(d),p=u.redIAdd(u);p=p.redIAdd(p),p=p.redIAdd(p),n=y,o=h.redMul(d.redISub(y)).redISub(p),a=this.y.redAdd(this.y)}else{var v=this.x.redSqr(),b=this.y.redSqr(),_=b.redSqr(),T=this.x.redAdd(b).redSqr().redISub(v).redISub(_);T=T.redIAdd(T);var I=v.redAdd(v).redIAdd(v),U=I.redSqr(),N=_.redIAdd(_);N=N.redIAdd(N),N=N.redIAdd(N),n=U.redISub(T).redISub(T),o=I.redMul(T.redISub(n)).redISub(N),a=this.y.redMul(this.z),a=a.redIAdd(a)}return this.curve.jpoint(n,o,a)};JPoint.prototype._threeDbl=function(){var n,o,a;if(this.zOne){var c=this.x.redSqr(),l=this.y.redSqr(),u=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(c).redISub(u);d=d.redIAdd(d);var h=c.redAdd(c).redIAdd(c).redIAdd(this.curve.a),y=h.redSqr().redISub(d).redISub(d);n=y;var p=u.redIAdd(u);p=p.redIAdd(p),p=p.redIAdd(p),o=h.redMul(d.redISub(y)).redISub(p),a=this.y.redAdd(this.y)}else{var v=this.z.redSqr(),b=this.y.redSqr(),_=this.x.redMul(b),T=this.x.redSub(v).redMul(this.x.redAdd(v));T=T.redAdd(T).redIAdd(T);var I=_.redIAdd(_);I=I.redIAdd(I);var U=I.redAdd(I);n=T.redSqr().redISub(U),a=this.y.redAdd(this.z).redSqr().redISub(b).redISub(v);var N=b.redSqr();N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N),o=T.redMul(I.redISub(n)).redISub(N)}return this.curve.jpoint(n,o,a)};JPoint.prototype._dbl=function(){var n=this.curve.a,o=this.x,a=this.y,c=this.z,l=c.redSqr().redSqr(),u=o.redSqr(),d=a.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),y=o.redAdd(o);y=y.redIAdd(y);var p=y.redMul(d),v=h.redSqr().redISub(p.redAdd(p)),b=p.redISub(v),_=d.redSqr();_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var T=h.redMul(b).redISub(_),I=a.redAdd(a).redMul(c);return this.curve.jpoint(v,T,I)};JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var n=this.x.redSqr(),o=this.y.redSqr(),a=this.z.redSqr(),c=o.redSqr(),l=n.redAdd(n).redIAdd(n),u=l.redSqr(),d=this.x.redAdd(o).redSqr().redISub(n).redISub(c);d=d.redIAdd(d),d=d.redAdd(d).redIAdd(d),d=d.redISub(u);var h=d.redSqr(),y=c.redIAdd(c);y=y.redIAdd(y),y=y.redIAdd(y),y=y.redIAdd(y);var p=l.redIAdd(d).redSqr().redISub(u).redISub(h).redISub(y),v=o.redMul(p);v=v.redIAdd(v),v=v.redIAdd(v);var b=this.x.redMul(h).redISub(v);b=b.redIAdd(b),b=b.redIAdd(b);var _=this.y.redMul(p.redMul(y.redISub(p)).redISub(d.redMul(h)));_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var T=this.z.redAdd(d).redSqr().redISub(a).redISub(h);return this.curve.jpoint(b,_,T)};JPoint.prototype.mul=function(n,o){return n=new BN$8(n,o),this.curve._wnafMul(this,n)};JPoint.prototype.eq=function(n){if(n.type==="affine")return this.eq(n.toJ());if(this===n)return!0;var o=this.z.redSqr(),a=n.z.redSqr();if(this.x.redMul(a).redISub(n.x.redMul(o)).cmpn(0)!==0)return!1;var c=o.redMul(this.z),l=a.redMul(n.z);return this.y.redMul(l).redISub(n.y.redMul(c)).cmpn(0)===0};JPoint.prototype.eqXToP=function(n){var o=this.z.redSqr(),a=n.toRed(this.curve.red).redMul(o);if(this.x.cmp(a)===0)return!0;for(var c=n.clone(),l=this.curve.redN.redMul(o);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(l),this.x.cmp(a)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$7=bnExports$1,inherits$2=inherits_browserExports$1,Base$1=base$2,utils$C=utils$G;function MontCurve(e){Base$1.call(this,"mont",e),this.a=new BN$7(e.a,16).toRed(this.red),this.b=new BN$7(e.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$2(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(n){var o=n.normalize().x,a=o.redSqr(),c=a.redMul(o).redAdd(a.redMul(this.a)).redAdd(o),l=c.redSqrt();return l.redSqr().cmp(c)===0};function Point$1(e,n,o){Base$1.BasePoint.call(this,e,"projective"),n===null&&o===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(n,16),this.z=new BN$7(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$2(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(n,o){return this.point(utils$C.toArray(n,o),1)};MontCurve.prototype.point=function(n,o){return new Point$1(this,n,o)};MontCurve.prototype.pointFromJSON=function(n){return Point$1.fromJSON(this,n)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(n,o){return new Point$1(n,o[0],o[1]||n.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var n=this.x.redAdd(this.z),o=n.redSqr(),a=this.x.redSub(this.z),c=a.redSqr(),l=o.redSub(c),u=o.redMul(c),d=l.redMul(c.redAdd(this.curve.a24.redMul(l)));return this.curve.point(u,d)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(n,o){var a=this.x.redAdd(this.z),c=this.x.redSub(this.z),l=n.x.redAdd(n.z),u=n.x.redSub(n.z),d=u.redMul(a),h=l.redMul(c),y=o.z.redMul(d.redAdd(h).redSqr()),p=o.x.redMul(d.redISub(h).redSqr());return this.curve.point(y,p)};Point$1.prototype.mul=function(n){for(var o=n.clone(),a=this,c=this.curve.point(null,null),l=this,u=[];o.cmpn(0)!==0;o.iushrn(1))u.push(o.andln(1));for(var d=u.length-1;d>=0;d--)u[d]===0?(a=a.diffAdd(c,l),c=c.dbl()):(c=a.diffAdd(c,l),a=a.dbl());return c};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(n){return this.getX().cmp(n.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$B=utils$G,BN$6=bnExports$1,inherits$1=inherits_browserExports$1,Base=base$2,assert$e=utils$B.assert;function EdwardsCurve(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",e),this.a=new BN$6(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}inherits$1(EdwardsCurve,Base);var edwards$1=EdwardsCurve;EdwardsCurve.prototype._mulA=function(n){return this.mOneA?n.redNeg():this.a.redMul(n)};EdwardsCurve.prototype._mulC=function(n){return this.oneC?n:this.c.redMul(n)};EdwardsCurve.prototype.jpoint=function(n,o,a,c){return this.point(n,o,a,c)};EdwardsCurve.prototype.pointFromX=function(n,o){n=new BN$6(n,16),n.red||(n=n.toRed(this.red));var a=n.redSqr(),c=this.c2.redSub(this.a.redMul(a)),l=this.one.redSub(this.c2.redMul(this.d).redMul(a)),u=c.redMul(l.redInvm()),d=u.redSqrt();if(d.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");var h=d.fromRed().isOdd();return(o&&!h||!o&&h)&&(d=d.redNeg()),this.point(n,d)};EdwardsCurve.prototype.pointFromY=function(n,o){n=new BN$6(n,16),n.red||(n=n.toRed(this.red));var a=n.redSqr(),c=a.redSub(this.c2),l=a.redMul(this.d).redMul(this.c2).redSub(this.a),u=c.redMul(l.redInvm());if(u.cmp(this.zero)===0){if(o)throw new Error("invalid point");return this.point(this.zero,n)}var d=u.redSqrt();if(d.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");return d.fromRed().isOdd()!==o&&(d=d.redNeg()),this.point(d,n)};EdwardsCurve.prototype.validate=function(n){if(n.isInfinity())return!0;n.normalize();var o=n.x.redSqr(),a=n.y.redSqr(),c=o.redMul(this.a).redAdd(a),l=this.c2.redMul(this.one.redAdd(this.d.redMul(o).redMul(a)));return c.cmp(l)===0};function Point(e,n,o,a,c){Base.BasePoint.call(this,e,"projective"),n===null&&o===null&&a===null?(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 BN$6(n,16),this.y=new BN$6(o,16),this.z=a?new BN$6(a,16):this.curve.one,this.t=c&&new BN$6(c,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()))))}inherits$1(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(n){return Point.fromJSON(this,n)};EdwardsCurve.prototype.point=function(n,o,a,c){return new Point(this,n,o,a,c)};Point.fromJSON=function(n,o){return new Point(n,o[0],o[1],o[2])};Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var n=this.x.redSqr(),o=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var c=this.curve._mulA(n),l=this.x.redAdd(this.y).redSqr().redISub(n).redISub(o),u=c.redAdd(o),d=u.redSub(a),h=c.redSub(o),y=l.redMul(d),p=u.redMul(h),v=l.redMul(h),b=d.redMul(u);return this.curve.point(y,p,b,v)};Point.prototype._projDbl=function(){var n=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),a=this.y.redSqr(),c,l,u,d,h,y;if(this.curve.twisted){d=this.curve._mulA(o);var p=d.redAdd(a);this.zOne?(c=n.redSub(o).redSub(a).redMul(p.redSub(this.curve.two)),l=p.redMul(d.redSub(a)),u=p.redSqr().redSub(p).redSub(p)):(h=this.z.redSqr(),y=p.redSub(h).redISub(h),c=n.redSub(o).redISub(a).redMul(y),l=p.redMul(d.redSub(a)),u=p.redMul(y))}else d=o.redAdd(a),h=this.curve._mulC(this.z).redSqr(),y=d.redSub(h).redSub(h),c=this.curve._mulC(n.redISub(d)).redMul(y),l=this.curve._mulC(d).redMul(o.redISub(a)),u=d.redMul(y);return this.curve.point(c,l,u)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(n){var o=this.y.redSub(this.x).redMul(n.y.redSub(n.x)),a=this.y.redAdd(this.x).redMul(n.y.redAdd(n.x)),c=this.t.redMul(this.curve.dd).redMul(n.t),l=this.z.redMul(n.z.redAdd(n.z)),u=a.redSub(o),d=l.redSub(c),h=l.redAdd(c),y=a.redAdd(o),p=u.redMul(d),v=h.redMul(y),b=u.redMul(y),_=d.redMul(h);return this.curve.point(p,v,_,b)};Point.prototype._projAdd=function(n){var o=this.z.redMul(n.z),a=o.redSqr(),c=this.x.redMul(n.x),l=this.y.redMul(n.y),u=this.curve.d.redMul(c).redMul(l),d=a.redSub(u),h=a.redAdd(u),y=this.x.redAdd(this.y).redMul(n.x.redAdd(n.y)).redISub(c).redISub(l),p=o.redMul(d).redMul(y),v,b;return this.curve.twisted?(v=o.redMul(h).redMul(l.redSub(this.curve._mulA(c))),b=d.redMul(h)):(v=o.redMul(h).redMul(l.redSub(c)),b=this.curve._mulC(d).redMul(h)),this.curve.point(p,v,b)};Point.prototype.add=function(n){return this.isInfinity()?n:n.isInfinity()?this:this.curve.extended?this._extAdd(n):this._projAdd(n)};Point.prototype.mul=function(n){return this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve._wnafMul(this,n)};Point.prototype.mulAdd=function(n,o,a){return this.curve._wnafMulAdd(1,[this,o],[n,a],2,!1)};Point.prototype.jmulAdd=function(n,o,a){return this.curve._wnafMulAdd(1,[this,o],[n,a],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var n=this.z.redInvm();return this.x=this.x.redMul(n),this.y=this.y.redMul(n),this.t&&(this.t=this.t.redMul(n)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(n){return this===n||this.getX().cmp(n.getX())===0&&this.getY().cmp(n.getY())===0};Point.prototype.eqXToP=function(n){var o=n.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(o)===0)return!0;for(var a=n.clone(),c=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(o.redIAdd(c),this.x.cmp(o)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(e){var n=e;n.base=base$2,n.short=short,n.mont=mont,n.edwards=edwards$1})(curve$1);var curves$2={},hash$3={},utils$A={},assert$d=minimalisticAssert,inherits=inherits_browserExports$1;utils$A.inherits=inherits;function isSurrogatePair(e,n){return(e.charCodeAt(n)&64512)!==55296||n<0||n+1>=e.length?!1:(e.charCodeAt(n+1)&64512)===56320}function toArray(e,n){if(Array.isArray(e))return e.slice();if(!e)return[];var o=[];if(typeof e=="string")if(n){if(n==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),c=0;c<e.length;c+=2)o.push(parseInt(e[c]+e[c+1],16))}else for(var a=0,c=0;c<e.length;c++){var l=e.charCodeAt(c);l<128?o[a++]=l:l<2048?(o[a++]=l>>6|192,o[a++]=l&63|128):isSurrogatePair(e,c)?(l=65536+((l&1023)<<10)+(e.charCodeAt(++c)&1023),o[a++]=l>>18|240,o[a++]=l>>12&63|128,o[a++]=l>>6&63|128,o[a++]=l&63|128):(o[a++]=l>>12|224,o[a++]=l>>6&63|128,o[a++]=l&63|128)}else for(c=0;c<e.length;c++)o[c]=e[c]|0;return o}utils$A.toArray=toArray;function toHex(e){for(var n="",o=0;o<e.length;o++)n+=zero2(e[o].toString(16));return n}utils$A.toHex=toHex;function htonl(e){var n=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return n>>>0}utils$A.htonl=htonl;function toHex32(e,n){for(var o="",a=0;a<e.length;a++){var c=e[a];n==="little"&&(c=htonl(c)),o+=zero8(c.toString(16))}return o}utils$A.toHex32=toHex32;function zero2(e){return e.length===1?"0"+e:e}utils$A.zero2=zero2;function zero8(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}utils$A.zero8=zero8;function join32(e,n,o,a){var c=o-n;assert$d(c%4===0);for(var l=new Array(c/4),u=0,d=n;u<l.length;u++,d+=4){var h;a==="big"?h=e[d]<<24|e[d+1]<<16|e[d+2]<<8|e[d+3]:h=e[d+3]<<24|e[d+2]<<16|e[d+1]<<8|e[d],l[u]=h>>>0}return l}utils$A.join32=join32;function split32(e,n){for(var o=new Array(e.length*4),a=0,c=0;a<e.length;a++,c+=4){var l=e[a];n==="big"?(o[c]=l>>>24,o[c+1]=l>>>16&255,o[c+2]=l>>>8&255,o[c+3]=l&255):(o[c+3]=l>>>24,o[c+2]=l>>>16&255,o[c+1]=l>>>8&255,o[c]=l&255)}return o}utils$A.split32=split32;function rotr32$1(e,n){return e>>>n|e<<32-n}utils$A.rotr32=rotr32$1;function rotl32$2(e,n){return e<<n|e>>>32-n}utils$A.rotl32=rotl32$2;function sum32$3(e,n){return e+n>>>0}utils$A.sum32=sum32$3;function sum32_3$1(e,n,o){return e+n+o>>>0}utils$A.sum32_3=sum32_3$1;function sum32_4$2(e,n,o,a){return e+n+o+a>>>0}utils$A.sum32_4=sum32_4$2;function sum32_5$2(e,n,o,a,c){return e+n+o+a+c>>>0}utils$A.sum32_5=sum32_5$2;function sum64$1(e,n,o,a){var c=e[n],l=e[n+1],u=a+l>>>0,d=(u<a?1:0)+o+c;e[n]=d>>>0,e[n+1]=u}utils$A.sum64=sum64$1;function sum64_hi$1(e,n,o,a){var c=n+a>>>0,l=(c<n?1:0)+e+o;return l>>>0}utils$A.sum64_hi=sum64_hi$1;function sum64_lo$1(e,n,o,a){var c=n+a;return c>>>0}utils$A.sum64_lo=sum64_lo$1;function sum64_4_hi$1(e,n,o,a,c,l,u,d){var h=0,y=n;y=y+a>>>0,h+=y<n?1:0,y=y+l>>>0,h+=y<l?1:0,y=y+d>>>0,h+=y<d?1:0;var p=e+o+c+u+h;return p>>>0}utils$A.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(e,n,o,a,c,l,u,d){var h=n+a+l+d;return h>>>0}utils$A.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(e,n,o,a,c,l,u,d,h,y){var p=0,v=n;v=v+a>>>0,p+=v<n?1:0,v=v+l>>>0,p+=v<l?1:0,v=v+d>>>0,p+=v<d?1:0,v=v+y>>>0,p+=v<y?1:0;var b=e+o+c+u+h+p;return b>>>0}utils$A.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(e,n,o,a,c,l,u,d,h,y){var p=n+a+l+d+y;return p>>>0}utils$A.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(e,n,o){var a=n<<32-o|e>>>o;return a>>>0}utils$A.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(e,n,o){var a=e<<32-o|n>>>o;return a>>>0}utils$A.rotr64_lo=rotr64_lo$1;function shr64_hi$1(e,n,o){return e>>>o}utils$A.shr64_hi=shr64_hi$1;function shr64_lo$1(e,n,o){var a=e<<32-o|n>>>o;return a>>>0}utils$A.shr64_lo=shr64_lo$1;var common$6={},utils$z=utils$A,assert$c=minimalisticAssert;function BlockHash$4(){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}common$6.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(n,o){if(n=utils$z.toArray(n,o),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var a=n.length%this._delta8;this.pending=n.slice(n.length-a,n.length),this.pending.length===0&&(this.pending=null),n=utils$z.join32(n,0,n.length-a,this.endian);for(var c=0;c<n.length;c+=this._delta32)this._update(n,c,c+this._delta32)}return this};BlockHash$4.prototype.digest=function(n){return this.update(this._pad()),assert$c(this.pending===null),this._digest(n)};BlockHash$4.prototype._pad=function(){var n=this.pendingTotal,o=this._delta8,a=o-(n+this.padLength)%o,c=new Array(a+this.padLength);c[0]=128;for(var l=1;l<a;l++)c[l]=0;if(n<<=3,this.endian==="big"){for(var u=8;u<this.padLength;u++)c[l++]=0;c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=n>>>24&255,c[l++]=n>>>16&255,c[l++]=n>>>8&255,c[l++]=n&255}else for(c[l++]=n&255,c[l++]=n>>>8&255,c[l++]=n>>>16&255,c[l++]=n>>>24&255,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,u=8;u<this.padLength;u++)c[l++]=0;return c};var sha={},common$5={},utils$y=utils$A,rotr32=utils$y.rotr32;function ft_1$1(e,n,o,a){if(e===0)return ch32$1(n,o,a);if(e===1||e===3)return p32(n,o,a);if(e===2)return maj32$1(n,o,a)}common$5.ft_1=ft_1$1;function ch32$1(e,n,o){return e&n^~e&o}common$5.ch32=ch32$1;function maj32$1(e,n,o){return e&n^e&o^n&o}common$5.maj32=maj32$1;function p32(e,n,o){return e^n^o}common$5.p32=p32;function s0_256$1(e){return rotr32(e,2)^rotr32(e,13)^rotr32(e,22)}common$5.s0_256=s0_256$1;function s1_256$1(e){return rotr32(e,6)^rotr32(e,11)^rotr32(e,25)}common$5.s1_256=s1_256$1;function g0_256$1(e){return rotr32(e,7)^rotr32(e,18)^e>>>3}common$5.g0_256=g0_256$1;function g1_256$1(e){return rotr32(e,17)^rotr32(e,19)^e>>>10}common$5.g1_256=g1_256$1;var utils$x=utils$A,common$4=common$6,shaCommon$1=common$5,rotl32$1=utils$x.rotl32,sum32$2=utils$x.sum32,sum32_5$1=utils$x.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$4.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$x.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(n,o){for(var a=this.W,c=0;c<16;c++)a[c]=n[o+c];for(;c<a.length;c++)a[c]=rotl32$1(a[c-3]^a[c-8]^a[c-14]^a[c-16],1);var l=this.h[0],u=this.h[1],d=this.h[2],h=this.h[3],y=this.h[4];for(c=0;c<a.length;c++){var p=~~(c/20),v=sum32_5$1(rotl32$1(l,5),ft_1(p,u,d,h),y,a[c],sha1_K[p]);y=h,h=d,d=rotl32$1(u,30),u=l,l=v}this.h[0]=sum32$2(this.h[0],l),this.h[1]=sum32$2(this.h[1],u),this.h[2]=sum32$2(this.h[2],d),this.h[3]=sum32$2(this.h[3],h),this.h[4]=sum32$2(this.h[4],y)};SHA1.prototype._digest=function(n){return n==="hex"?utils$x.toHex32(this.h,"big"):utils$x.split32(this.h,"big")};var utils$w=utils$A,common$3=common$6,shaCommon=common$5,assert$b=minimalisticAssert,sum32$1=utils$w.sum32,sum32_4$1=utils$w.sum32_4,sum32_5=utils$w.sum32_5,ch32=shaCommon.ch32,maj32=shaCommon.maj32,s0_256=shaCommon.s0_256,s1_256=shaCommon.s1_256,g0_256=shaCommon.g0_256,g1_256=shaCommon.g1_256,BlockHash$2=common$3.BlockHash,sha256_K=[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 SHA256$2(){if(!(this instanceof SHA256$2))return new SHA256$2;BlockHash$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sha256_K,this.W=new Array(64)}utils$w.inherits(SHA256$2,BlockHash$2);var _256=SHA256$2;SHA256$2.blockSize=512;SHA256$2.outSize=256;SHA256$2.hmacStrength=192;SHA256$2.padLength=64;SHA256$2.prototype._update=function(n,o){for(var a=this.W,c=0;c<16;c++)a[c]=n[o+c];for(;c<a.length;c++)a[c]=sum32_4$1(g1_256(a[c-2]),a[c-7],g0_256(a[c-15]),a[c-16]);var l=this.h[0],u=this.h[1],d=this.h[2],h=this.h[3],y=this.h[4],p=this.h[5],v=this.h[6],b=this.h[7];for(assert$b(this.k.length===a.length),c=0;c<a.length;c++){var _=sum32_5(b,s1_256(y),ch32(y,p,v),this.k[c],a[c]),T=sum32$1(s0_256(l),maj32(l,u,d));b=v,v=p,p=y,y=sum32$1(h,_),h=d,d=u,u=l,l=sum32$1(_,T)}this.h[0]=sum32$1(this.h[0],l),this.h[1]=sum32$1(this.h[1],u),this.h[2]=sum32$1(this.h[2],d),this.h[3]=sum32$1(this.h[3],h),this.h[4]=sum32$1(this.h[4],y),this.h[5]=sum32$1(this.h[5],p),this.h[6]=sum32$1(this.h[6],v),this.h[7]=sum32$1(this.h[7],b)};SHA256$2.prototype._digest=function(n){return n==="hex"?utils$w.toHex32(this.h,"big"):utils$w.split32(this.h,"big")};var utils$v=utils$A,SHA256$1=_256;function SHA224$1(){if(!(this instanceof SHA224$1))return new SHA224$1;SHA256$1.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}utils$v.inherits(SHA224$1,SHA256$1);var _224=SHA224$1;SHA224$1.blockSize=512;SHA224$1.outSize=224;SHA224$1.hmacStrength=192;SHA224$1.padLength=64;SHA224$1.prototype._digest=function(n){return n==="hex"?utils$v.toHex32(this.h.slice(0,7),"big"):utils$v.split32(this.h.slice(0,7),"big")};var utils$u=utils$A,common$2=common$6,assert$a=minimalisticAssert,rotr64_hi=utils$u.rotr64_hi,rotr64_lo=utils$u.rotr64_lo,shr64_hi=utils$u.shr64_hi,shr64_lo=utils$u.shr64_lo,sum64=utils$u.sum64,sum64_hi=utils$u.sum64_hi,sum64_lo=utils$u.sum64_lo,sum64_4_hi=utils$u.sum64_4_hi,sum64_4_lo=utils$u.sum64_4_lo,sum64_5_hi=utils$u.sum64_5_hi,sum64_5_lo=utils$u.sum64_5_lo,BlockHash$1=common$2.BlockHash,sha512_K=[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 SHA512$2(){if(!(this instanceof SHA512$2))return new SHA512$2;BlockHash$1.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sha512_K,this.W=new Array(160)}utils$u.inherits(SHA512$2,BlockHash$1);var _512=SHA512$2;SHA512$2.blockSize=1024;SHA512$2.outSize=512;SHA512$2.hmacStrength=192;SHA512$2.padLength=128;SHA512$2.prototype._prepareBlock=function(n,o){for(var a=this.W,c=0;c<32;c++)a[c]=n[o+c];for(;c<a.length;c+=2){var l=g1_512_hi(a[c-4],a[c-3]),u=g1_512_lo(a[c-4],a[c-3]),d=a[c-14],h=a[c-13],y=g0_512_hi(a[c-30],a[c-29]),p=g0_512_lo(a[c-30],a[c-29]),v=a[c-32],b=a[c-31];a[c]=sum64_4_hi(l,u,d,h,y,p,v,b),a[c+1]=sum64_4_lo(l,u,d,h,y,p,v,b)}};SHA512$2.prototype._update=function(n,o){this._prepareBlock(n,o);var a=this.W,c=this.h[0],l=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4],y=this.h[5],p=this.h[6],v=this.h[7],b=this.h[8],_=this.h[9],T=this.h[10],I=this.h[11],U=this.h[12],N=this.h[13],D=this.h[14],L=this.h[15];assert$a(this.k.length===a.length);for(var B=0;B<a.length;B+=2){var H=D,W=L,X=s1_512_hi(b,_),Y=s1_512_lo(b,_),Z=ch64_hi(b,_,T,I,U),te=ch64_lo(b,_,T,I,U,N),V=this.k[B],P=this.k[B+1],A=a[B],m=a[B+1],E=sum64_5_hi(H,W,X,Y,Z,te,V,P,A,m),w=sum64_5_lo(H,W,X,Y,Z,te,V,P,A,m);H=s0_512_hi(c,l),W=s0_512_lo(c,l),X=maj64_hi(c,l,u,d,h),Y=maj64_lo(c,l,u,d,h,y);var C=sum64_hi(H,W,X,Y),k=sum64_lo(H,W,X,Y);D=U,L=N,U=T,N=I,T=b,I=_,b=sum64_hi(p,v,E,w),_=sum64_lo(v,v,E,w),p=h,v=y,h=u,y=d,u=c,d=l,c=sum64_hi(E,w,C,k),l=sum64_lo(E,w,C,k)}sum64(this.h,0,c,l),sum64(this.h,2,u,d),sum64(this.h,4,h,y),sum64(this.h,6,p,v),sum64(this.h,8,b,_),sum64(this.h,10,T,I),sum64(this.h,12,U,N),sum64(this.h,14,D,L)};SHA512$2.prototype._digest=function(n){return n==="hex"?utils$u.toHex32(this.h,"big"):utils$u.split32(this.h,"big")};function ch64_hi(e,n,o,a,c){var l=e&o^~e&c;return l<0&&(l+=4294967296),l}function ch64_lo(e,n,o,a,c,l){var u=n&a^~n&l;return u<0&&(u+=4294967296),u}function maj64_hi(e,n,o,a,c){var l=e&o^e&c^o&c;return l<0&&(l+=4294967296),l}function maj64_lo(e,n,o,a,c,l){var u=n&a^n&l^a&l;return u<0&&(u+=4294967296),u}function s0_512_hi(e,n){var o=rotr64_hi(e,n,28),a=rotr64_hi(n,e,2),c=rotr64_hi(n,e,7),l=o^a^c;return l<0&&(l+=4294967296),l}function s0_512_lo(e,n){var o=rotr64_lo(e,n,28),a=rotr64_lo(n,e,2),c=rotr64_lo(n,e,7),l=o^a^c;return l<0&&(l+=4294967296),l}function s1_512_hi(e,n){var o=rotr64_hi(e,n,14),a=rotr64_hi(e,n,18),c=rotr64_hi(n,e,9),l=o^a^c;return l<0&&(l+=4294967296),l}function s1_512_lo(e,n){var o=rotr64_lo(e,n,14),a=rotr64_lo(e,n,18),c=rotr64_lo(n,e,9),l=o^a^c;return l<0&&(l+=4294967296),l}function g0_512_hi(e,n){var o=rotr64_hi(e,n,1),a=rotr64_hi(e,n,8),c=shr64_hi(e,n,7),l=o^a^c;return l<0&&(l+=4294967296),l}function g0_512_lo(e,n){var o=rotr64_lo(e,n,1),a=rotr64_lo(e,n,8),c=shr64_lo(e,n,7),l=o^a^c;return l<0&&(l+=4294967296),l}function g1_512_hi(e,n){var o=rotr64_hi(e,n,19),a=rotr64_hi(n,e,29),c=shr64_hi(e,n,6),l=o^a^c;return l<0&&(l+=4294967296),l}function g1_512_lo(e,n){var o=rotr64_lo(e,n,19),a=rotr64_lo(n,e,29),c=shr64_lo(e,n,6),l=o^a^c;return l<0&&(l+=4294967296),l}var utils$t=utils$A,SHA512$1=_512;function SHA384$1(){if(!(this instanceof SHA384$1))return new SHA384$1;SHA512$1.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}utils$t.inherits(SHA384$1,SHA512$1);var _384=SHA384$1;SHA384$1.blockSize=1024;SHA384$1.outSize=384;SHA384$1.hmacStrength=192;SHA384$1.padLength=128;SHA384$1.prototype._digest=function(n){return n==="hex"?utils$t.toHex32(this.h.slice(0,12),"big"):utils$t.split32(this.h.slice(0,12),"big")};sha.sha1=_1;sha.sha224=_224;sha.sha256=_256;sha.sha384=_384;sha.sha512=_512;var ripemd={},utils$s=utils$A,common$1=common$6,rotl32=utils$s.rotl32,sum32=utils$s.sum32,sum32_3=utils$s.sum32_3,sum32_4=utils$s.sum32_4,BlockHash=common$1.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;BlockHash.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}utils$s.inherits(RIPEMD160,BlockHash);ripemd.ripemd160=RIPEMD160;RIPEMD160.blockSize=512;RIPEMD160.outSize=160;RIPEMD160.hmacStrength=192;RIPEMD160.padLength=64;RIPEMD160.prototype._update=function(n,o){for(var a=this.h[0],c=this.h[1],l=this.h[2],u=this.h[3],d=this.h[4],h=a,y=c,p=l,v=u,b=d,_=0;_<80;_++){var T=sum32(rotl32(sum32_4(a,f(_,c,l,u),n[r[_]+o],K(_)),s[_]),d);a=d,d=u,u=rotl32(l,10),l=c,c=T,T=sum32(rotl32(sum32_4(h,f(79-_,y,p,v),n[rh[_]+o],Kh(_)),sh[_]),b),h=b,b=v,v=rotl32(p,10),p=y,y=T}T=sum32_3(this.h[1],l,v),this.h[1]=sum32_3(this.h[2],u,b),this.h[2]=sum32_3(this.h[3],d,h),this.h[3]=sum32_3(this.h[4],a,y),this.h[4]=sum32_3(this.h[0],c,p),this.h[0]=T};RIPEMD160.prototype._digest=function(n){return n==="hex"?utils$s.toHex32(this.h,"little"):utils$s.split32(this.h,"little")};function f(e,n,o,a){return e<=15?n^o^a:e<=31?n&o|~n&a:e<=47?(n|~o)^a:e<=63?n&a|o&~a:n^(o|~a)}function K(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Kh(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var r=[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],rh=[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],sh=[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],utils$r=utils$A,assert$9=minimalisticAssert;function Hmac(e,n,o){if(!(this instanceof Hmac))return new Hmac(e,n,o);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(utils$r.toArray(n,o))}var hmac=Hmac;Hmac.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),assert$9(n.length<=this.blockSize);for(var o=n.length;o<this.blockSize;o++)n.push(0);for(o=0;o<n.length;o++)n[o]^=54;for(this.inner=new this.Hash().update(n),o=0;o<n.length;o++)n[o]^=106;this.outer=new this.Hash().update(n)};Hmac.prototype.update=function(n,o){return this.inner.update(n,o),this};Hmac.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)};(function(e){var n=e;n.utils=utils$A,n.common=common$6,n.sha=sha,n.ripemd=ripemd,n.hmac=hmac,n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160})(hash$3);var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={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"]]}}),secp256k1}(function(e){var n=e,o=hash$3,a=curve$1,c=utils$G,l=c.assert;function u(y){y.type==="short"?this.curve=new a.short(y):y.type==="edwards"?this.curve=new a.edwards(y):this.curve=new a.mont(y),this.g=this.curve.g,this.n=this.curve.n,this.hash=y.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=u;function d(y,p){Object.defineProperty(n,y,{configurable:!0,enumerable:!0,get:function(){var v=new u(p);return Object.defineProperty(n,y,{configurable:!0,enumerable:!0,value:v}),v}})}d("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:o.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"]}),d("p521",{type:"short",prime:null,p:"000001ff{"ActionError":{"index":0,"kind":{"FunctionCallError":{"MethodResolveError":"MethodNotFound"}}}}
1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"6NMveLJHDMmMmsh2d18gDuCUCgVa4nDNdcGHKDbGRVfY","sender_account_id":"sleetcreate.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.