From eb45ffd9c67afb53a03b0d099d15d8dfaeeda99d Mon Sep 17 00:00:00 2001 From: Xaber20110202 Date: Thu, 22 Feb 2024 14:24:29 +0000 Subject: [PATCH] Deploy website - based on 564d8cbcf18c118f3f0950ff0422035ef42528bc --- en/404.html | 4 ++-- en/assets/js/{73f87dc6.85959a76.js => 73f87dc6.fa22efea.js} | 2 +- .../{runtime~main.20f83bf0.js => runtime~main.a64262be.js} | 2 +- en/docs/guide/SDK/everpay-js.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/balance.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/balances.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/fee.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/fees.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/info.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/intro.html | 4 ++-- .../SDK/everpay-js/basic-api/mintedTxByChainTxHash.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/txByHash.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/txs.html | 4 ++-- en/docs/guide/SDK/everpay-js/basic-api/txsByAccount.html | 4 ++-- en/docs/guide/SDK/everpay-js/build.html | 4 ++-- en/docs/guide/SDK/everpay-js/configuration/account.html | 4 ++-- en/docs/guide/SDK/everpay-js/configuration/arJWK.html | 4 ++-- en/docs/guide/SDK/everpay-js/configuration/chainType.html | 4 ++-- en/docs/guide/SDK/everpay-js/configuration/debug.html | 4 ++-- .../SDK/everpay-js/configuration/ethConnectedSigner.html | 4 ++-- en/docs/guide/SDK/everpay-js/configuration/intro.html | 4 ++-- .../guide/SDK/everpay-js/configuration/isSmartAccount.html | 4 ++-- en/docs/guide/SDK/everpay-js/demo.html | 4 ++-- en/docs/guide/SDK/everpay-js/errors.html | 4 ++-- en/docs/guide/SDK/everpay-js/installation.html | 4 ++-- en/docs/guide/SDK/everpay-js/operation-api/bundle.html | 4 ++-- en/docs/guide/SDK/everpay-js/operation-api/deposit.html | 4 ++-- en/docs/guide/SDK/everpay-js/operation-api/intro.html | 4 ++-- .../guide/SDK/everpay-js/operation-api/sendEverpayTx.html | 4 ++-- .../guide/SDK/everpay-js/operation-api/signBundleData.html | 4 ++-- en/docs/guide/SDK/everpay-js/operation-api/signMessage.html | 6 +++--- en/docs/guide/SDK/everpay-js/operation-api/transfer.html | 4 ++-- en/docs/guide/SDK/everpay-js/operation-api/withdraw.html | 4 ++-- en/docs/guide/SDK/everpay-js/tool-api/genEverId.html | 4 ++-- en/docs/guide/SDK/everpay-js/tool-api/getBundleData.html | 4 ++-- .../guide/SDK/everpay-js/tool-api/getEverpayTxMessage.html | 4 ++-- .../SDK/everpay-js/tool-api/getEverpayTxWithoutSig.html | 4 ++-- en/docs/guide/SDK/everpay-js/tool-api/hashMessage.html | 4 ++-- en/docs/guide/SDK/everpay-js/tool-api/smartAccountAuth.html | 4 ++-- en/docs/guide/SDK/everpay-js/tool-api/verifyMessage.html | 4 ++-- en/docs/guide/SDK/everpay-js/types.html | 4 ++-- en/docs/guide/SDK/intro.html | 4 ++-- en/docs/guide/basic-info.html | 4 ++-- en/docs/guide/dive/account-model.html | 4 ++-- en/docs/guide/dive/bundle.html | 4 ++-- en/docs/guide/dive/deposit.html | 4 ++-- en/docs/guide/dive/overview.html | 4 ++-- en/docs/guide/dive/transaction.html | 4 ++-- en/docs/guide/dive/transfer.html | 4 ++-- en/docs/guide/dive/withdraw.html | 4 ++-- en/docs/guide/docs-catalogue.html | 4 ++-- en/docs/guide/overview.html | 4 ++-- en/docs/guide/refrence/consensus.html | 4 ++-- .../guide/refrence/storage-based-computation-paradigm.html | 4 ++-- en/docs/guide/server-api/basic-api/balance.html | 4 ++-- en/docs/guide/server-api/basic-api/balances.html | 4 ++-- en/docs/guide/server-api/basic-api/fee.html | 4 ++-- en/docs/guide/server-api/basic-api/fees.html | 4 ++-- en/docs/guide/server-api/basic-api/info.html | 4 ++-- en/docs/guide/server-api/basic-api/intro.html | 4 ++-- .../guide/server-api/basic-api/mintedTxByChainTxHash.html | 4 ++-- en/docs/guide/server-api/basic-api/txByHash.html | 4 ++-- en/docs/guide/server-api/basic-api/txs.html | 4 ++-- en/docs/guide/server-api/basic-api/txsByAccount.html | 4 ++-- en/docs/guide/server-api/environment.html | 4 ++-- en/docs/guide/server-api/intro.html | 4 ++-- en/docs/guide/server-api/operation-api/intro.html | 4 ++-- en/docs/guide/server-api/operation-api/tx.html | 4 ++-- en/index.html | 4 ++-- en/search.html | 4 ++-- 70 files changed, 139 insertions(+), 139 deletions(-) rename en/assets/js/{73f87dc6.85959a76.js => 73f87dc6.fa22efea.js} (98%) rename en/assets/js/{runtime~main.20f83bf0.js => runtime~main.a64262be.js} (99%) diff --git a/en/404.html b/en/404.html index 6db3a34f..6b57bd08 100644 --- a/en/404.html +++ b/en/404.html @@ -10,13 +10,13 @@ - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/en/assets/js/73f87dc6.85959a76.js b/en/assets/js/73f87dc6.fa22efea.js similarity index 98% rename from en/assets/js/73f87dc6.85959a76.js rename to en/assets/js/73f87dc6.fa22efea.js index c0972cd6..bd3b1a2e 100644 --- a/en/assets/js/73f87dc6.85959a76.js +++ b/en/assets/js/73f87dc6.fa22efea.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdoc=self.webpackChunkdoc||[]).push([[2546],{3905:(e,n,t)=>{t.d(n,{Zo:()=>p,kt:()=>m});var a=t(7294);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function r(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var o=a.createContext({}),c=function(e){var n=a.useContext(o),t=n;return e&&(t="function"==typeof e?e(n):r(r({},n),e)),t},p=function(e){var n=c(e.components);return a.createElement(o.Provider,{value:n},e.children)},h="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},u=a.forwardRef((function(e,n){var t=e.components,i=e.mdxType,s=e.originalType,o=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),h=c(t),u=i,m=h["".concat(o,".").concat(u)]||h[u]||d[u]||s;return t?a.createElement(m,r(r({ref:n},p),{},{components:t})):a.createElement(m,r({ref:n},p))}));function m(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var s=t.length,r=new Array(s);r[0]=u;var l={};for(var o in n)hasOwnProperty.call(n,o)&&(l[o]=n[o]);l.originalType=e,l[h]="string"==typeof e?e:i,r[1]=l;for(var c=2;c{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>d,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var a=t(7462),i=(t(7294),t(3905));const s={sidebar_position:8},r="signMessage",l={unversionedId:"guide/SDK/everpay-js/operation-api/signMessage",id:"guide/SDK/everpay-js/operation-api/signMessage",title:"signMessage",description:"Function",source:"@site/i18n/en/docusaurus-plugin-content-docs/current/guide/SDK/everpay-js/operation-api/signMessage.md",sourceDirName:"guide/SDK/everpay-js/operation-api",slug:"/guide/SDK/everpay-js/operation-api/signMessage",permalink:"/en/docs/guide/SDK/everpay-js/operation-api/signMessage",draft:!1,editUrl:"https://github.com/everFinance/docs/edit/master/i18n/en/docusaurus-plugin-content-docs/current/guide/SDK/everpay-js/operation-api/signMessage.md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"guide",previous:{title:"sendEverpayTx",permalink:"/en/docs/guide/SDK/everpay-js/operation-api/sendEverpayTx"},next:{title:"Types",permalink:"/en/docs/guide/SDK/everpay-js/types"}},o={},c=[{value:"Function",id:"function",level:2},{value:"Parameter",id:"parameter",level:2},{value:"Return",id:"return",level:2},{value:"Example",id:"example",level:2},{value:"EVM signMessage",id:"evm-signmessage",level:3},{value:"Arweave signMessage",id:"arweave-signmessage",level:3},{value:"email Account signMessage",id:"email-account-signmessage",level:3}],p={toc:c},h="wrapper";function d(e){let{components:n,...t}=e;return(0,i.kt)(h,(0,a.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"signmessage"},"signMessage"),(0,i.kt)("h2",{id:"function"},"Function"),(0,i.kt)("p",null,"Sign the ",(0,i.kt)("inlineCode",{parentName:"p"},"message")," according to the ",(0,i.kt)("inlineCode",{parentName:"p"},"account"),", ",(0,i.kt)("inlineCode",{parentName:"p"},"ethConnectedSigner"),", ",(0,i.kt)("inlineCode",{parentName:"p"},"arJWK"),", ",(0,i.kt)("inlineCode",{parentName:"p"},"isSmartAccount")," parameters passed when the Everpay instance was created."),(0,i.kt)("h2",{id:"parameter"},"Parameter"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"everpay.signMessage(message: string, smartAccountDirectly?: boolean): Promise\n")),(0,i.kt)("admonition",{type:"danger"},(0,i.kt)("ul",{parentName:"admonition"},(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"smartAccountDirectly")," may not be passed, default is false."),(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"smartAccountDirectly")," parameter is only valid for mailbox account signatures."),(0,i.kt)("li",{parentName:"ul"},"When it is an email account, ",(0,i.kt)("inlineCode",{parentName:"li"},"!!smartAccountDirectly")," is ",(0,i.kt)("inlineCode",{parentName:"li"},"true"),".",(0,i.kt)("ul",{parentName:"li"},(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"webauthn")," direct signature ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," is used."),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"message")," ",(0,i.kt)("strong",{parentName:"li"},"Must be >= 96")," in length."),(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," field in the returned result is the same as the original ",(0,i.kt)("inlineCode",{parentName:"li"},"message"),"."))),(0,i.kt)("li",{parentName:"ul"},"When it is an email account, ",(0,i.kt)("inlineCode",{parentName:"li"},"! !smartAccountDirectly")," is ",(0,i.kt)("inlineCode",{parentName:"li"},"false"),".",(0,i.kt)("ul",{parentName:"li"},(0,i.kt)("li",{parentName:"ul"},"everpay-js internally hash the ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," with ",(0,i.kt)("inlineCode",{parentName:"li"},"hashMessage")," before signing it with ",(0,i.kt)("inlineCode",{parentName:"li"},"webauthn")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"message")," has no length limit."),(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," field in the returned result is a hex string after ",(0,i.kt)("inlineCode",{parentName:"li"},"hashMessage(message)"),"."))))),(0,i.kt)("h2",{id:"return"},"Return"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"export interface SignMessageResult {\n message: string\n sig: string\n}\n")),(0,i.kt)("h2",{id:"example"},"Example"),(0,i.kt)("h3",{id:"evm-signmessage"},"EVM signMessage"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"describe('signMessage for EVM', () => {\n test('signMessage EVM should be OK', async () => {\n const message = 'verify'\n const signResult = await everpayEVM.signMessage(message)\n expect(signResult.message).toBe(message)\n return await everpayEVM.verifyMessage({\n type: 'sign',\n message,\n account: ethWalletHasUSDT.address,\n sig: signResult.sig\n }).then(result => {\n expect(result.public).toBeTruthy()\n expect(result.publicId.toLowerCase()).toBe(ethWalletHasUSDT.address.toLowerCase())\n })\n })\n})\n")),(0,i.kt)("h3",{id:"arweave-signmessage"},"Arweave signMessage"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"describe('signMessage for Arweave', () => {\n test('signMessage for Arweave should be OK', async () => {\n const account = arWallet1.address\n const message = 'verify'\n const signResult = await everpayAR.signMessage(message)\n expect(signResult.message).toBe(message)\n return await everpayAR.verifyMessage({\n type: 'sign',\n message,\n account,\n sig: signResult.sig\n }).then(result => {\n expect(result.public).toBeTruthy()\n expect(result.publicId.toLowerCase()).toBe(account.toLowerCase())\n })\n })\n})\n")),(0,i.kt)("h3",{id:"email-account-signmessage"},"email Account signMessage"),(0,i.kt)("admonition",{type:"danger"},(0,i.kt)("p",{parentName:"admonition"},"Due to browser window security popup restrictions, do not call the ",(0,i.kt)("inlineCode",{parentName:"p"},"smartAccountAuth")," interface and the ",(0,i.kt)("inlineCode",{parentName:"p"},"signMessage")," interface in the same function, they must be triggered by different event functions. The following is just an example")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},'const authResult = await new Everpay().smartAccountAuth()\nconst everpaySmartAccount = new Everpay({\n account: authResult.account,\n isSmartAccount: true\n})\nconst signResult = await everpaySmartAccount.signMessage(\'Hello World\')\n/*\n{\n message: "0xa1de988600a42c4b4ab089b619297c17d53cffae5d5120d82d8a92d0bb3b78f2",\n sig: "eyJpZCI6IjMxMXFZREhCZTE4U0hLVS1IUjFYUHJoUGZ2bjE5Q3I1RVYwU1FZbl9scVkiLCJyYXdJZCI6IjMxMXFZREhCZTE4U0hLVS1IUjFYUHJoUGZ2bjE5Q3I1RVYwU1FZbl9scVkiLCJjbGllbnREYXRhSlNPTiI6ImV5SjBlWEJsSWpvaWQyVmlZWFYwYUc0dVoyVjBJaXdpWTJoaGJHeGxibWRsSWpvaVRVaG9hRTFYVW14UFZHYzBUbXBCZDFsVVVYbFplbEpwVGtkR2FVMUVaelZaYWxsNFQxU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HJoUGZ2bjE5Q3I1RVYwU1FZbi9scVk9IiwicHVibGljS2V5IjoicFFFQ0F5WWdBU0ZZSUZldWlsY0ZVdGowZGl5SUFRcnZGdFJRVjRRbndSem1SUldmRGNtY1ZYd0JJbGdnOW5hdjVUeVdiL2Y1RWgxWkQ4c2k3aFRROXlVY2wybVRuQi9iOUF3Z1I4MD0iLCJhdHRlc3RhdGlvblR5cGUiOiJwYWNrZWQiLCJ0cmFuc3BvcnQiOlsiaW50ZXJuYWwiXSwiZmxhZ3MiOnsidXNlclByZXNlbnQiOnRydWUsInVzZXJWZXJpZmllZCI6dHJ1ZSwiYmFja3VwRWxpZ2libGUiOmZhbHNlLCJiYWNrdXBTdGF0ZSI6ZmFsc2V9LCJhdXRoZW50aWNhdG9yIjp7IkFBR1VJRCI6InJjNEFBalc4eGdwa2l3c2w4ZkJWQXc9PSIsInNpZ25Db3VudCI6MCwiY2xvbmVXYXJuaW5nIjpmYWxzZSwiYXR0YWNobWVudCI6InBsYXRmb3JtIn19,FIDO2"\n}\n*/\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdoc=self.webpackChunkdoc||[]).push([[2546],{3905:(e,n,t)=>{t.d(n,{Zo:()=>p,kt:()=>m});var a=t(7294);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function r(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var o=a.createContext({}),c=function(e){var n=a.useContext(o),t=n;return e&&(t="function"==typeof e?e(n):r(r({},n),e)),t},p=function(e){var n=c(e.components);return a.createElement(o.Provider,{value:n},e.children)},h="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},u=a.forwardRef((function(e,n){var t=e.components,i=e.mdxType,s=e.originalType,o=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),h=c(t),u=i,m=h["".concat(o,".").concat(u)]||h[u]||d[u]||s;return t?a.createElement(m,r(r({ref:n},p),{},{components:t})):a.createElement(m,r({ref:n},p))}));function m(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var s=t.length,r=new Array(s);r[0]=u;var l={};for(var o in n)hasOwnProperty.call(n,o)&&(l[o]=n[o]);l.originalType=e,l[h]="string"==typeof e?e:i,r[1]=l;for(var c=2;c{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>d,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var a=t(7462),i=(t(7294),t(3905));const s={sidebar_position:8},r="signMessage",l={unversionedId:"guide/SDK/everpay-js/operation-api/signMessage",id:"guide/SDK/everpay-js/operation-api/signMessage",title:"signMessage",description:"Function",source:"@site/i18n/en/docusaurus-plugin-content-docs/current/guide/SDK/everpay-js/operation-api/signMessage.md",sourceDirName:"guide/SDK/everpay-js/operation-api",slug:"/guide/SDK/everpay-js/operation-api/signMessage",permalink:"/en/docs/guide/SDK/everpay-js/operation-api/signMessage",draft:!1,editUrl:"https://github.com/everFinance/docs/edit/master/i18n/en/docusaurus-plugin-content-docs/current/guide/SDK/everpay-js/operation-api/signMessage.md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"guide",previous:{title:"sendEverpayTx",permalink:"/en/docs/guide/SDK/everpay-js/operation-api/sendEverpayTx"},next:{title:"Types",permalink:"/en/docs/guide/SDK/everpay-js/types"}},o={},c=[{value:"Function",id:"function",level:2},{value:"Parameter",id:"parameter",level:2},{value:"Return",id:"return",level:2},{value:"Example",id:"example",level:2},{value:"EVM signMessage",id:"evm-signmessage",level:3},{value:"Arweave signMessage",id:"arweave-signmessage",level:3},{value:"Smart Account signMessage",id:"smart-account-signmessage",level:3}],p={toc:c},h="wrapper";function d(e){let{components:n,...t}=e;return(0,i.kt)(h,(0,a.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"signmessage"},"signMessage"),(0,i.kt)("h2",{id:"function"},"Function"),(0,i.kt)("p",null,"Sign the ",(0,i.kt)("inlineCode",{parentName:"p"},"message")," according to the ",(0,i.kt)("inlineCode",{parentName:"p"},"account"),", ",(0,i.kt)("inlineCode",{parentName:"p"},"ethConnectedSigner"),", ",(0,i.kt)("inlineCode",{parentName:"p"},"arJWK"),", ",(0,i.kt)("inlineCode",{parentName:"p"},"isSmartAccount")," parameters passed when the Everpay instance was created."),(0,i.kt)("h2",{id:"parameter"},"Parameter"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"everpay.signMessage(message: string, smartAccountDirectly?: boolean): Promise\n")),(0,i.kt)("admonition",{type:"danger"},(0,i.kt)("ul",{parentName:"admonition"},(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"smartAccountDirectly")," may not be passed, default is false."),(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"smartAccountDirectly")," parameter is only valid for mailbox account signatures."),(0,i.kt)("li",{parentName:"ul"},"When it is an email account, ",(0,i.kt)("inlineCode",{parentName:"li"},"!!smartAccountDirectly")," is ",(0,i.kt)("inlineCode",{parentName:"li"},"true"),".",(0,i.kt)("ul",{parentName:"li"},(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"webauthn")," direct signature ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," is used."),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"message")," ",(0,i.kt)("strong",{parentName:"li"},"Must be >= 96")," in length."),(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," field in the returned result is the same as the original ",(0,i.kt)("inlineCode",{parentName:"li"},"message"),"."))),(0,i.kt)("li",{parentName:"ul"},"When it is an email account, ",(0,i.kt)("inlineCode",{parentName:"li"},"! !smartAccountDirectly")," is ",(0,i.kt)("inlineCode",{parentName:"li"},"false"),".",(0,i.kt)("ul",{parentName:"li"},(0,i.kt)("li",{parentName:"ul"},"everpay-js internally hash the ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," with ",(0,i.kt)("inlineCode",{parentName:"li"},"hashMessage")," before signing it with ",(0,i.kt)("inlineCode",{parentName:"li"},"webauthn")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"message")," has no length limit."),(0,i.kt)("li",{parentName:"ul"},"The ",(0,i.kt)("inlineCode",{parentName:"li"},"message")," field in the returned result is a hex string after ",(0,i.kt)("inlineCode",{parentName:"li"},"hashMessage(message)"),"."))))),(0,i.kt)("h2",{id:"return"},"Return"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"export interface SignMessageResult {\n message: string\n sig: string\n}\n")),(0,i.kt)("h2",{id:"example"},"Example"),(0,i.kt)("h3",{id:"evm-signmessage"},"EVM signMessage"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"describe('signMessage for EVM', () => {\n test('signMessage EVM should be OK', async () => {\n const message = 'verify'\n const signResult = await everpayEVM.signMessage(message)\n expect(signResult.message).toBe(message)\n return await everpayEVM.verifyMessage({\n type: 'sign',\n message,\n account: ethWalletHasUSDT.address,\n sig: signResult.sig\n }).then(result => {\n expect(result.public).toBeTruthy()\n expect(result.publicId.toLowerCase()).toBe(ethWalletHasUSDT.address.toLowerCase())\n })\n })\n})\n")),(0,i.kt)("h3",{id:"arweave-signmessage"},"Arweave signMessage"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},"describe('signMessage for Arweave', () => {\n test('signMessage for Arweave should be OK', async () => {\n const account = arWallet1.address\n const message = 'verify'\n const signResult = await everpayAR.signMessage(message)\n expect(signResult.message).toBe(message)\n return await everpayAR.verifyMessage({\n type: 'sign',\n message,\n account,\n sig: signResult.sig\n }).then(result => {\n expect(result.public).toBeTruthy()\n expect(result.publicId.toLowerCase()).toBe(account.toLowerCase())\n })\n })\n})\n")),(0,i.kt)("h3",{id:"smart-account-signmessage"},"Smart Account signMessage"),(0,i.kt)("admonition",{type:"danger"},(0,i.kt)("p",{parentName:"admonition"},"Due to browser window security popup restrictions, do not call the ",(0,i.kt)("inlineCode",{parentName:"p"},"smartAccountAuth")," interface and the ",(0,i.kt)("inlineCode",{parentName:"p"},"signMessage")," interface in the same function, they must be triggered by different event functions. The following is just an example")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-ts"},'const authResult = await new Everpay().smartAccountAuth()\nconst everpaySmartAccount = new Everpay({\n account: authResult.account,\n isSmartAccount: true\n})\nconst signResult = await everpaySmartAccount.signMessage(\'Hello World\')\n/*\n{\n message: "0xa1de988600a42c4b4ab089b619297c17d53cffae5d5120d82d8a92d0bb3b78f2",\n sig: "eyJpZCI6IjMxMXFZREhCZTE4U0hLVS1IUjFYUHJoUGZ2bjE5Q3I1RVYwU1FZbl9scVkiLCJyYXdJZCI6IjMxMXFZREhCZTE4U0hLVS1IUjFYUHJoUGZ2bjE5Q3I1RVYwU1FZbl9scVkiLCJjbGllbnREYXRhSlNPTiI6ImV5SjBlWEJsSWpvaWQyVmlZWFYwYUc0dVoyVjBJaXdpWTJoaGJHeGxibWRsSWpvaVRVaG9hRTFYVW14UFZHYzBUbXBCZDFsVVVYbFplbEpwVGtkR2FVMUVaelZaYWxsNFQxUkpOVTR5VFhoT01sRXhUVEpPYlZwdFJteE9WMUV4VFZSSmQxcEVaM2xhUkdob1QxUkthMDFIU21sTk1ra3pUMGRaZVNJc0ltOXlhV2RwYmlJNkltaDBkSEE2THk5c2IyTmhiR2h2YzNRNk9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eVdiL2Y1RWgxWkQ4c2k3aFRROXlVY2wybVRuQi9iOUF3Z1I4MD0iLCJhdHRlc3RhdGlvblR5cGUiOiJwYWNrZWQiLCJ0cmFuc3BvcnQiOlsiaW50ZXJuYWwiXSwiZmxhZ3MiOnsidXNlclByZXNlbnQiOnRydWUsInVzZXJWZXJpZmllZCI6dHJ1ZSwiYmFja3VwRWxpZ2libGUiOmZhbHNlLCJiYWNrdXBTdGF0ZSI6ZmFsc2V9LCJhdXRoZW50aWNhdG9yIjp7IkFBR1VJRCI6InJjNEFBalc4eGdwa2l3c2w4ZkJWQXc9PSIsInNpZ25Db3VudCI6MCwiY2xvbmVXYXJuaW5nIjpmYWxzZSwiYXR0YWNobWVudCI6InBsYXRmb3JtIn19,FIDO2"\n}\n*/\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/runtime~main.20f83bf0.js b/en/assets/js/runtime~main.a64262be.js similarity index 99% rename from en/assets/js/runtime~main.20f83bf0.js rename to en/assets/js/runtime~main.a64262be.js index 50f3777f..73d4184a 100644 --- a/en/assets/js/runtime~main.20f83bf0.js +++ b/en/assets/js/runtime~main.a64262be.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,f,b,c,d={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var f=t[e]={id:e,loaded:!1,exports:{}};return d[e].call(f.exports,f,f.exports,r),f.loaded=!0,f.exports}r.m=d,r.c=t,e=[],r.O=(a,f,b,c)=>{if(!f){var d=1/0;for(i=0;i=c)&&Object.keys(r.O).every((e=>r.O[e](f[o])))?f.splice(o--,1):(t=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[f,b,c]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,b){if(1&b&&(e=this(e)),8&b)return e;if("object"==typeof e&&e){if(4&b&&e.__esModule)return e;if(16&b&&"function"==typeof e.then)return e}var c=Object.create(null);r.r(c);var d={};a=a||[null,f({}),f([]),f(f)];for(var t=2&b&&e;"object"==typeof t&&!~a.indexOf(t);t=f(t))Object.getOwnPropertyNames(t).forEach((a=>d[a]=()=>e[a]));return d.default=()=>e,r.d(c,d),c},r.d=(e,a)=>{for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,f)=>(r.f[f](e,a),a)),[])),r.u=e=>"assets/js/"+({53:"935f2afb",85:"b88fe9ba",118:"616f3936",203:"5eea1a3a",232:"1cd3fee8",1068:"c93ac4f6",1221:"a401e4e5",1282:"720cd86a",1375:"8faff183",1756:"079a5b02",1959:"ecb7bdd1",2546:"73f87dc6",2594:"a05d835d",2615:"13f93dae",2791:"68bb669b",2923:"52095213",3164:"f0affcdb",3454:"641af611",3566:"60796b7d",3594:"70881e02",3713:"69ffdc8b",3800:"7e1dd3e7",3859:"98b15506",3920:"e175f73b",4017:"0016a3eb",4175:"219c8ebb",4195:"c4f5d8e4",4300:"23bc8e85",4388:"f5f372e1",4460:"7c01048b",4893:"0e775b04",5100:"2ba77c9e",5121:"c6d3f8d2",5294:"e5ee1409",5332:"02fbc986",5400:"8f81ae99",5469:"571a36b8",5550:"b4e9ba62",5727:"e2961e8e",5770:"c81f6abb",5823:"53e4e41a",5879:"ba8d388f",5885:"74bdf7cb",6173:"8bc258c3",6260:"bad123d9",6341:"cc57dc84",6385:"59b068d1",6548:"508e0ba9",6558:"eb2050a6",7019:"ae5d3e63",7212:"77e80a16",7226:"f16f653c",7286:"4edce6c7",7480:"af651b6a",7537:"79015dfe",7599:"6e232f17",7644:"291fbe82",7645:"a7434565",7715:"b6606af4",7747:"351ccd6d",7918:"17896441",7920:"1a4e3797",7968:"e41f1fdb",7997:"2c8edc9d",8154:"bf1a0aa7",8587:"dfbcfcfe",8689:"4c6e1980",8789:"5bee3b6a",9334:"247783bb",9514:"1be78505",9625:"9ec40b42",9627:"2563bcb6",9774:"3158f855"}[e]||e)+"."+{53:"68005d6a",85:"9085d84f",118:"a68fb954",203:"f7555b35",232:"0bebb4fa",1068:"871f079f",1221:"929c43f5",1282:"b4217d59",1375:"2de1dbbf",1756:"9b6f4098",1959:"504a7a9c",2546:"85959a76",2594:"17a1593b",2615:"dc4cdc6f",2791:"61929552",2923:"0f0ff317",3164:"921adb77",3454:"ba5fd0b0",3566:"c53f505e",3594:"a0b47a08",3713:"8e75f9e4",3800:"02113c62",3859:"dc1d3db2",3920:"b9a200f9",4017:"a23846ce",4175:"cdf7b77c",4195:"cfa54ad1",4300:"fdf7da2b",4388:"f698caaa",4460:"fcd68205",4893:"8d4a9550",4972:"930a1c61",5100:"f7e20f74",5121:"2dfbb433",5294:"c2634786",5332:"2a627ead",5400:"c5075a1d",5469:"928c74d7",5550:"26987d99",5727:"560c4610",5770:"a2302eb7",5823:"233d64aa",5879:"25172efe",5885:"213ccfa6",6173:"628dac38",6260:"e6211f8a",6341:"19a76618",6385:"d2c37ee3",6548:"32364dcc",6558:"1c2ece2e",6780:"990a3a29",6945:"a6d05b6b",7019:"61ed0013",7212:"36ea4b76",7226:"099d8062",7286:"2dedb392",7480:"c7428f02",7537:"4490aff1",7599:"67a06e08",7644:"ebb08d2a",7645:"7fb9d08f",7715:"fe13326c",7747:"c036c184",7918:"3523e091",7920:"eea1f419",7968:"6f95aa3c",7997:"8f8081a5",8154:"0d10ca85",8587:"7da15253",8689:"089f872d",8789:"a5786879",8894:"5eaa9f0d",9334:"4cff7ab6",9514:"d5003e8a",9625:"75aff50c",9627:"fb3fbc99",9774:"ce4ab4c9"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),b={},c="doc:",r.l=(e,a,f,d)=>{if(b[e])b[e].push(a);else{var t,o;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var c=b[e];if(delete b[e],t.parentNode&&t.parentNode.removeChild(t),c&&c.forEach((e=>e(f))),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/en/",r.gca=function(e){return e={17896441:"7918",52095213:"2923","935f2afb":"53",b88fe9ba:"85","616f3936":"118","5eea1a3a":"203","1cd3fee8":"232",c93ac4f6:"1068",a401e4e5:"1221","720cd86a":"1282","8faff183":"1375","079a5b02":"1756",ecb7bdd1:"1959","73f87dc6":"2546",a05d835d:"2594","13f93dae":"2615","68bb669b":"2791",f0affcdb:"3164","641af611":"3454","60796b7d":"3566","70881e02":"3594","69ffdc8b":"3713","7e1dd3e7":"3800","98b15506":"3859",e175f73b:"3920","0016a3eb":"4017","219c8ebb":"4175",c4f5d8e4:"4195","23bc8e85":"4300",f5f372e1:"4388","7c01048b":"4460","0e775b04":"4893","2ba77c9e":"5100",c6d3f8d2:"5121",e5ee1409:"5294","02fbc986":"5332","8f81ae99":"5400","571a36b8":"5469",b4e9ba62:"5550",e2961e8e:"5727",c81f6abb:"5770","53e4e41a":"5823",ba8d388f:"5879","74bdf7cb":"5885","8bc258c3":"6173",bad123d9:"6260",cc57dc84:"6341","59b068d1":"6385","508e0ba9":"6548",eb2050a6:"6558",ae5d3e63:"7019","77e80a16":"7212",f16f653c:"7226","4edce6c7":"7286",af651b6a:"7480","79015dfe":"7537","6e232f17":"7599","291fbe82":"7644",a7434565:"7645",b6606af4:"7715","351ccd6d":"7747","1a4e3797":"7920",e41f1fdb:"7968","2c8edc9d":"7997",bf1a0aa7:"8154",dfbcfcfe:"8587","4c6e1980":"8689","5bee3b6a":"8789","247783bb":"9334","1be78505":"9514","9ec40b42":"9625","2563bcb6":"9627","3158f855":"9774"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,f)=>{var b=r.o(e,a)?e[a]:void 0;if(0!==b)if(b)f.push(b[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var c=new Promise(((f,c)=>b=e[a]=[f,c]));f.push(b[2]=c);var d=r.p+r.u(a),t=new Error;r.l(d,(f=>{if(r.o(e,a)&&(0!==(b=e[a])&&(e[a]=void 0),b)){var c=f&&("load"===f.type?"missing":f.type),d=f&&f.target&&f.target.src;t.message="Loading chunk "+a+" failed.\n("+c+": "+d+")",t.name="ChunkLoadError",t.type=c,t.request=d,b[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,f)=>{var b,c,d=f[0],t=f[1],o=f[2],n=0;if(d.some((a=>0!==e[a]))){for(b in t)r.o(t,b)&&(r.m[b]=t[b]);if(o)var i=o(r)}for(a&&a(f);n{"use strict";var e,a,f,b,c,d={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var f=t[e]={id:e,loaded:!1,exports:{}};return d[e].call(f.exports,f,f.exports,r),f.loaded=!0,f.exports}r.m=d,r.c=t,e=[],r.O=(a,f,b,c)=>{if(!f){var d=1/0;for(i=0;i=c)&&Object.keys(r.O).every((e=>r.O[e](f[o])))?f.splice(o--,1):(t=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[f,b,c]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,b){if(1&b&&(e=this(e)),8&b)return e;if("object"==typeof e&&e){if(4&b&&e.__esModule)return e;if(16&b&&"function"==typeof e.then)return e}var c=Object.create(null);r.r(c);var d={};a=a||[null,f({}),f([]),f(f)];for(var t=2&b&&e;"object"==typeof t&&!~a.indexOf(t);t=f(t))Object.getOwnPropertyNames(t).forEach((a=>d[a]=()=>e[a]));return d.default=()=>e,r.d(c,d),c},r.d=(e,a)=>{for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,f)=>(r.f[f](e,a),a)),[])),r.u=e=>"assets/js/"+({53:"935f2afb",85:"b88fe9ba",118:"616f3936",203:"5eea1a3a",232:"1cd3fee8",1068:"c93ac4f6",1221:"a401e4e5",1282:"720cd86a",1375:"8faff183",1756:"079a5b02",1959:"ecb7bdd1",2546:"73f87dc6",2594:"a05d835d",2615:"13f93dae",2791:"68bb669b",2923:"52095213",3164:"f0affcdb",3454:"641af611",3566:"60796b7d",3594:"70881e02",3713:"69ffdc8b",3800:"7e1dd3e7",3859:"98b15506",3920:"e175f73b",4017:"0016a3eb",4175:"219c8ebb",4195:"c4f5d8e4",4300:"23bc8e85",4388:"f5f372e1",4460:"7c01048b",4893:"0e775b04",5100:"2ba77c9e",5121:"c6d3f8d2",5294:"e5ee1409",5332:"02fbc986",5400:"8f81ae99",5469:"571a36b8",5550:"b4e9ba62",5727:"e2961e8e",5770:"c81f6abb",5823:"53e4e41a",5879:"ba8d388f",5885:"74bdf7cb",6173:"8bc258c3",6260:"bad123d9",6341:"cc57dc84",6385:"59b068d1",6548:"508e0ba9",6558:"eb2050a6",7019:"ae5d3e63",7212:"77e80a16",7226:"f16f653c",7286:"4edce6c7",7480:"af651b6a",7537:"79015dfe",7599:"6e232f17",7644:"291fbe82",7645:"a7434565",7715:"b6606af4",7747:"351ccd6d",7918:"17896441",7920:"1a4e3797",7968:"e41f1fdb",7997:"2c8edc9d",8154:"bf1a0aa7",8587:"dfbcfcfe",8689:"4c6e1980",8789:"5bee3b6a",9334:"247783bb",9514:"1be78505",9625:"9ec40b42",9627:"2563bcb6",9774:"3158f855"}[e]||e)+"."+{53:"68005d6a",85:"9085d84f",118:"a68fb954",203:"f7555b35",232:"0bebb4fa",1068:"871f079f",1221:"929c43f5",1282:"b4217d59",1375:"2de1dbbf",1756:"9b6f4098",1959:"504a7a9c",2546:"fa22efea",2594:"17a1593b",2615:"dc4cdc6f",2791:"61929552",2923:"0f0ff317",3164:"921adb77",3454:"ba5fd0b0",3566:"c53f505e",3594:"a0b47a08",3713:"8e75f9e4",3800:"02113c62",3859:"dc1d3db2",3920:"b9a200f9",4017:"a23846ce",4175:"cdf7b77c",4195:"cfa54ad1",4300:"fdf7da2b",4388:"f698caaa",4460:"fcd68205",4893:"8d4a9550",4972:"930a1c61",5100:"f7e20f74",5121:"2dfbb433",5294:"c2634786",5332:"2a627ead",5400:"c5075a1d",5469:"928c74d7",5550:"26987d99",5727:"560c4610",5770:"a2302eb7",5823:"233d64aa",5879:"25172efe",5885:"213ccfa6",6173:"628dac38",6260:"e6211f8a",6341:"19a76618",6385:"d2c37ee3",6548:"32364dcc",6558:"1c2ece2e",6780:"990a3a29",6945:"a6d05b6b",7019:"61ed0013",7212:"36ea4b76",7226:"099d8062",7286:"2dedb392",7480:"c7428f02",7537:"4490aff1",7599:"67a06e08",7644:"ebb08d2a",7645:"7fb9d08f",7715:"fe13326c",7747:"c036c184",7918:"3523e091",7920:"eea1f419",7968:"6f95aa3c",7997:"8f8081a5",8154:"0d10ca85",8587:"7da15253",8689:"089f872d",8789:"a5786879",8894:"5eaa9f0d",9334:"4cff7ab6",9514:"d5003e8a",9625:"75aff50c",9627:"fb3fbc99",9774:"ce4ab4c9"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),b={},c="doc:",r.l=(e,a,f,d)=>{if(b[e])b[e].push(a);else{var t,o;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var c=b[e];if(delete b[e],t.parentNode&&t.parentNode.removeChild(t),c&&c.forEach((e=>e(f))),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/en/",r.gca=function(e){return e={17896441:"7918",52095213:"2923","935f2afb":"53",b88fe9ba:"85","616f3936":"118","5eea1a3a":"203","1cd3fee8":"232",c93ac4f6:"1068",a401e4e5:"1221","720cd86a":"1282","8faff183":"1375","079a5b02":"1756",ecb7bdd1:"1959","73f87dc6":"2546",a05d835d:"2594","13f93dae":"2615","68bb669b":"2791",f0affcdb:"3164","641af611":"3454","60796b7d":"3566","70881e02":"3594","69ffdc8b":"3713","7e1dd3e7":"3800","98b15506":"3859",e175f73b:"3920","0016a3eb":"4017","219c8ebb":"4175",c4f5d8e4:"4195","23bc8e85":"4300",f5f372e1:"4388","7c01048b":"4460","0e775b04":"4893","2ba77c9e":"5100",c6d3f8d2:"5121",e5ee1409:"5294","02fbc986":"5332","8f81ae99":"5400","571a36b8":"5469",b4e9ba62:"5550",e2961e8e:"5727",c81f6abb:"5770","53e4e41a":"5823",ba8d388f:"5879","74bdf7cb":"5885","8bc258c3":"6173",bad123d9:"6260",cc57dc84:"6341","59b068d1":"6385","508e0ba9":"6548",eb2050a6:"6558",ae5d3e63:"7019","77e80a16":"7212",f16f653c:"7226","4edce6c7":"7286",af651b6a:"7480","79015dfe":"7537","6e232f17":"7599","291fbe82":"7644",a7434565:"7645",b6606af4:"7715","351ccd6d":"7747","1a4e3797":"7920",e41f1fdb:"7968","2c8edc9d":"7997",bf1a0aa7:"8154",dfbcfcfe:"8587","4c6e1980":"8689","5bee3b6a":"8789","247783bb":"9334","1be78505":"9514","9ec40b42":"9625","2563bcb6":"9627","3158f855":"9774"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,f)=>{var b=r.o(e,a)?e[a]:void 0;if(0!==b)if(b)f.push(b[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var c=new Promise(((f,c)=>b=e[a]=[f,c]));f.push(b[2]=c);var d=r.p+r.u(a),t=new Error;r.l(d,(f=>{if(r.o(e,a)&&(0!==(b=e[a])&&(e[a]=void 0),b)){var c=f&&("load"===f.type?"missing":f.type),d=f&&f.target&&f.target.src;t.message="Loading chunk "+a+" failed.\n("+c+": "+d+")",t.name="ChunkLoadError",t.type=c,t.request=d,b[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,f)=>{var b,c,d=f[0],t=f[1],o=f[2],n=0;if(d.some((a=>0!==e[a]))){for(b in t)r.o(t,b)&&(r.m[b]=t[b]);if(o)var i=o(r)}for(a&&a(f);n