From e693e8b744914be657896fd6c19fa5845ecac96c Mon Sep 17 00:00:00 2001 From: soaryong-stamper Date: Thu, 16 Nov 2023 17:38:57 +0900 Subject: [PATCH] Updates --- 404.html | 2 +- _next/static/chunks/3248-b7e8af1a14065f4e.js | 1 + _next/static/chunks/3248-e09cad96680fcef2.js | 1 - .../chunks/4ad82c5e-41a8269e9a9413de.js | 1 + .../chunks/4ad82c5e-f0169a323ec17e27.js | 1 - ...73fa10a691.js => 5369-d81cbd2830bbc3d6.js} | 4 ++-- ...814d266a32e.js => 834-cb5fbe4e5053a4fc.js} | 2 +- _next/static/chunks/nextra-data-en-US.json | 2 +- ...f64da6b3bf.js => _app-d4789c20aba1fbbb.js} | 4 ++-- ...06064.js => broadcast-07cddfbc6a05cda9.js} | 2 +- ...76144fe18.js => build-fc05befe9f97c77b.js} | 2 +- ....js => make-signature-35836d371338d25e.js} | 2 +- ...66e5eac.js => account-e6c18223ffedad54.js} | 2 +- ...s => account-balances-21d46cb997316a69.js} | 2 +- ...s => account-richlist-06e0127911b8d599.js} | 2 +- ... account-transactions-ea6047ca78e6a427.js} | 2 +- ...6.js => account-votes-fbc2972bc724ca3b.js} | 2 +- ... validator-block-sign-fc276d014bef47c7.js} | 2 +- ...validator-commissions-348a55851d9c1978.js} | 2 +- ... validator-delegators-0ff4f2f0d83683d3.js} | 2 +- ...alidator-power-events-3bfca321ba3d8080.js} | 2 +- ...dator-proposed-blocks-86b62f5bd99837da.js} | 2 +- ...js => validator-votes-b42bd4c7ffb5b635.js} | 2 +- ...21355474410.js => lcd-e28c74d45ec77774.js} | 2 +- ...ab431d.js => messages-dd684c0f3bd00dd9.js} | 2 +- ...d1.js => transactions-931dbbc3f3436972.js} | 2 +- ...a4453d5d.js => assets-e46eb592ac2b8727.js} | 2 +- ...e1437.js => inflation-21c85c1e36d54829.js} | 2 +- ...33d48.js => node-info-e7589791aa51cf12.js} | 2 +- ...bb4b9d50.js => prices-1aead3ba9d7af381.js} | 2 +- ...fde.js => staking-apr-64762dc4d64ab662.js} | 2 +- .../account/add-account-d79068d0d3149100.js | 1 - .../account/add-account-e97d63ab94a33e30.js | 1 + .../guide/account/intro-3404aabfd132926e.js | 1 - .../guide/account/intro-80ade08395378562.js | 1 + ...164c1cfb.js => chains-fc7b17cae89775ba.js} | 2 +- ...9da90310b.js => dapps-7ce295d726b17279.js} | 2 +- .../guide/settings-9f404814af08ad3e.js | 1 + .../guide/settings-cc827a06d6fa5e8d.js | 1 - ....js => transfer-coins-9cbf644ffd30d5e7.js} | 2 +- ...47c11d.js => accounts-97beab31a0ba7704.js} | 2 +- ...4c4b27d4bc.js => cw20-97e96e6544235088.js} | 2 +- .../registry/ecosystem-24c84c5977164a60.js | 1 + .../registry/ecosystem-51d65237753fdeed.js | 1 - ...13f2bdb2d.js => erc20-be025bec010c93e2.js} | 2 +- .../pages/mintstation-5c009ce936af1e59.js | 1 + .../pages/mintstation-e620e8a0f3354add.js | 1 - ...86918d598a3.js => cli-eca5d973bc213845.js} | 2 +- .../mintstation/cli/setup-6253e94d42d70b8e.js | 1 - .../mintstation/cli/setup-cb6dc6c97dbd7d7b.js | 1 + .../contracts/compile-8179bc7cb5d5c251.js | 1 - .../contracts/compile-f669f7160d7bebd1.js | 1 + .../contracts/create-db64846f1dbf5803.js | 1 - .../contracts/create-ed4552aab8355038.js | 1 + .../contracts/deploy-a1601c9a15a4ecf3.js | 1 + .../contracts/deploy-db968579f6b0dd31.js | 1 - .../contracts/execute-94979a1420c0d6e1.js | 1 + .../contracts/execute-c6a17f12cac295a4.js | 1 - .../contracts/query-c5a9ae0704eff889.js | 1 + .../contracts/query-c6bdf9aeb5a19e5c.js | 1 - .../validator/command-bf77bf78efb863aa.js | 1 + .../validator/command-fa460a7d233cbee0.js | 1 - .../validator/localnet-807f357eb62d5947.js | 1 + .../validator/localnet-e28a22e3ef900df8.js | 1 - .../validator/mainnet-77c8b6a4d8b83a07.js | 1 - .../validator/mainnet-a8558d5a7cb1f976.js | 1 + .../validator/upgrade-75eaa905f500cc15.js | 1 + .../validator/upgrade-915d5b43ba380866.js | 1 - .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 apis.html | 4 ++-- .../builder/tx-builder/broadcast.html | 4 ++-- apis/reference/builder/tx-builder/build.html | 4 ++-- .../builder/tx-builder/make-signature.html | 4 ++-- apis/reference/custom/account.html | 4 ++-- .../historical/account/account-balances.html | 4 ++-- .../historical/account/account-richlist.html | 4 ++-- .../account/account-transactions.html | 4 ++-- .../historical/account/account-votes.html | 4 ++-- .../validator/validator-block-sign.html | 4 ++-- .../validator/validator-commissions.html | 4 ++-- .../validator/validator-delegators.html | 4 ++-- .../validator/validator-power-events.html | 4 ++-- .../validator/validator-proposed-blocks.html | 4 ++-- .../historical/validator/validator-votes.html | 4 ++-- apis/reference/proxy/lcd.html | 4 ++-- apis/reference/statistics/messages.html | 4 ++-- apis/reference/statistics/transactions.html | 4 ++-- apis/reference/utilities/assets.html | 4 ++-- apis/reference/utilities/inflation.html | 4 ++-- apis/reference/utilities/node-info.html | 4 ++-- apis/reference/utilities/prices.html | 4 ++-- apis/reference/utilities/staking-apr.html | 4 ++-- extension.html | 4 ++-- extension/guide/account/add-account.html | 8 +++---- .../guide/account/add-ledger-account.html | 4 ++-- extension/guide/account/intro.html | 8 +++---- extension/guide/chains.html | 4 ++-- extension/guide/dapps.html | 6 ++--- extension/guide/settings.html | 10 ++++---- extension/guide/transfer-coins.html | 6 ++--- .../aptos/connect-and-account.html | 4 ++-- extension/integration/aptos/event.html | 4 ++-- extension/integration/aptos/network.html | 4 ++-- extension/integration/aptos/provider.html | 4 ++-- .../aptos/sign-and-submit-transaction.html | 4 ++-- .../cosmos/Deprecated/accounts.html | 6 ++--- .../integration/cosmos/Deprecated/chains.html | 4 ++-- .../cosmos/Deprecated/cw20-token.html | 4 ++-- .../cosmos/Deprecated/disconnect.html | 4 ++-- .../integration/cosmos/Deprecated/error.html | 4 ++-- .../integration/cosmos/Deprecated/event.html | 4 ++-- .../cosmos/Deprecated/provider.html | 4 ++-- .../cosmos/Deprecated/send-tx.html | 4 ++-- .../cosmos/Deprecated/sign-message.html | 4 ++-- .../cosmos/Deprecated/sign-tx.html | 4 ++-- .../integration/cosmos/integrate-cosmjs.html | 4 ++-- .../integration/cosmos/integrate-keplr.html | 4 ++-- extension/integration/cosmos/proto.html | 4 ++-- extension/integration/cosmos/react-hook.html | 4 ++-- extension/integration/cosmos/typescript.html | 4 ++-- extension/integration/cosmos/vanilla.html | 4 ++-- extension/integration/cosmos/wallet.html | 4 ++-- extension/integration/evm/event.html | 4 ++-- extension/integration/evm/provider.html | 4 ++-- .../evm/supported-rpc-methods.html | 4 ++-- extension/integration/evm/use-ethers.html | 4 ++-- extension/integration/evm/use-web3-js.html | 4 ++-- .../sui/connect-and-get-accounts.html | 4 ++-- .../integration/sui/execute-move-call.html | 4 ++-- extension/integration/sui/provider.html | 4 ++-- .../sui/sign-and-execute-transaction.html | 4 ++-- index.html | 4 ++-- mintscan.html | 4 ++-- mintscan/registry/assets.html | 4 ++-- mintscan/registry/cw20.html | 6 ++--- mintscan/registry/ecosystem.html | 6 ++--- mintscan/registry/erc20.html | 6 ++--- mintscan/registry/moniker.html | 4 ++-- mintstation.html | 6 ++--- mintstation/cli.html | 6 ++--- mintstation/cli/command.html | 4 ++-- mintstation/cli/setup.html | 19 ++++++++------- mintstation/contracts/compile.html | 6 ++--- mintstation/contracts/create.html | 6 ++--- mintstation/contracts/deploy.html | 6 ++--- mintstation/contracts/execute.html | 6 ++--- mintstation/contracts/query.html | 6 ++--- mintstation/module.html | 4 ++-- mintstation/validator/command.html | 14 +++++++---- mintstation/validator/delegations.html | 4 ++-- mintstation/validator/localnet.html | 18 +++++++++++---- mintstation/validator/mainnet.html | 23 ++++++++++--------- mintstation/validator/upgrade.html | 6 ++--- mobile.html | 4 ++-- mobile/article.html | 4 ++-- mobile/integration/cosmjs.html | 4 ++-- mobile/integration/cosmostation.html | 4 ++-- .../integration/walletconnect/accounts.html | 4 ++-- mobile/integration/walletconnect/connect.html | 4 ++-- mobile/integration/walletconnect/sign-tx.html | 4 ++-- mobile/integration/walletconnect2.html | 4 ++-- mobile/listing.html | 4 ++-- 163 files changed, 300 insertions(+), 280 deletions(-) create mode 100644 _next/static/chunks/3248-b7e8af1a14065f4e.js delete mode 100644 _next/static/chunks/3248-e09cad96680fcef2.js create mode 100644 _next/static/chunks/4ad82c5e-41a8269e9a9413de.js delete mode 100644 _next/static/chunks/4ad82c5e-f0169a323ec17e27.js rename _next/static/chunks/{3632-f92d3273fa10a691.js => 5369-d81cbd2830bbc3d6.js} (53%) rename _next/static/chunks/{834-db3d8814d266a32e.js => 834-cb5fbe4e5053a4fc.js} (99%) rename _next/static/chunks/pages/{_app-12f868f64da6b3bf.js => _app-d4789c20aba1fbbb.js} (75%) rename _next/static/chunks/pages/apis/reference/builder/tx-builder/{broadcast-91ee93ddd0106064.js => broadcast-07cddfbc6a05cda9.js} (99%) rename _next/static/chunks/pages/apis/reference/builder/tx-builder/{build-d66b93276144fe18.js => build-fc05befe9f97c77b.js} (99%) rename _next/static/chunks/pages/apis/reference/builder/tx-builder/{make-signature-1149362f6549e12e.js => make-signature-35836d371338d25e.js} (99%) rename _next/static/chunks/pages/apis/reference/custom/{account-c542f338366e5eac.js => account-e6c18223ffedad54.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/account/{account-balances-58c2ec5bb8d453a7.js => account-balances-21d46cb997316a69.js} (99%) rename _next/static/chunks/pages/apis/reference/historical/account/{account-richlist-3e5521bdebd0551e.js => account-richlist-06e0127911b8d599.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/account/{account-transactions-5e30de5ff0d4048f.js => account-transactions-ea6047ca78e6a427.js} (99%) rename _next/static/chunks/pages/apis/reference/historical/account/{account-votes-fbc86882013e9236.js => account-votes-fbc2972bc724ca3b.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/validator/{validator-block-sign-3dc00c473b146d6d.js => validator-block-sign-fc276d014bef47c7.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/validator/{validator-commissions-2e52b858d095c3f1.js => validator-commissions-348a55851d9c1978.js} (99%) rename _next/static/chunks/pages/apis/reference/historical/validator/{validator-delegators-a6e0155c021e0e95.js => validator-delegators-0ff4f2f0d83683d3.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/validator/{validator-power-events-bad3d179114ae614.js => validator-power-events-3bfca321ba3d8080.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/validator/{validator-proposed-blocks-a8993996ba69126f.js => validator-proposed-blocks-86b62f5bd99837da.js} (98%) rename _next/static/chunks/pages/apis/reference/historical/validator/{validator-votes-ad29b502f525047f.js => validator-votes-b42bd4c7ffb5b635.js} (98%) rename _next/static/chunks/pages/apis/reference/proxy/{lcd-55d1221355474410.js => lcd-e28c74d45ec77774.js} (98%) rename _next/static/chunks/pages/apis/reference/statistics/{messages-d02d979895ab431d.js => messages-dd684c0f3bd00dd9.js} (98%) rename _next/static/chunks/pages/apis/reference/statistics/{transactions-12f741319cbb32d1.js => transactions-931dbbc3f3436972.js} (99%) rename _next/static/chunks/pages/apis/reference/utilities/{assets-5221a7cba4453d5d.js => assets-e46eb592ac2b8727.js} (98%) rename _next/static/chunks/pages/apis/reference/utilities/{inflation-6bd066fa5cde1437.js => inflation-21c85c1e36d54829.js} (97%) rename _next/static/chunks/pages/apis/reference/utilities/{node-info-6f5ed00a0cc33d48.js => node-info-e7589791aa51cf12.js} (97%) rename _next/static/chunks/pages/apis/reference/utilities/{prices-d2176171bb4b9d50.js => prices-1aead3ba9d7af381.js} (99%) rename _next/static/chunks/pages/apis/reference/utilities/{staking-apr-e5e489afc06f7fde.js => staking-apr-64762dc4d64ab662.js} (98%) delete mode 100644 _next/static/chunks/pages/extension/guide/account/add-account-d79068d0d3149100.js create mode 100644 _next/static/chunks/pages/extension/guide/account/add-account-e97d63ab94a33e30.js delete mode 100644 _next/static/chunks/pages/extension/guide/account/intro-3404aabfd132926e.js create mode 100644 _next/static/chunks/pages/extension/guide/account/intro-80ade08395378562.js rename _next/static/chunks/pages/extension/guide/{chains-95031716164c1cfb.js => chains-fc7b17cae89775ba.js} (82%) rename _next/static/chunks/pages/extension/guide/{dapps-f8e635e9da90310b.js => dapps-7ce295d726b17279.js} (61%) create mode 100644 _next/static/chunks/pages/extension/guide/settings-9f404814af08ad3e.js delete mode 100644 _next/static/chunks/pages/extension/guide/settings-cc827a06d6fa5e8d.js rename _next/static/chunks/pages/extension/guide/{transfer-coins-393131e01ad52b9f.js => transfer-coins-9cbf644ffd30d5e7.js} (82%) rename _next/static/chunks/pages/extension/integration/cosmos/Deprecated/{accounts-feff5be07a47c11d.js => accounts-97beab31a0ba7704.js} (99%) rename _next/static/chunks/pages/mintscan/registry/{cw20-a759924c4b27d4bc.js => cw20-97e96e6544235088.js} (99%) create mode 100644 _next/static/chunks/pages/mintscan/registry/ecosystem-24c84c5977164a60.js delete mode 100644 _next/static/chunks/pages/mintscan/registry/ecosystem-51d65237753fdeed.js rename _next/static/chunks/pages/mintscan/registry/{erc20-fe479e713f2bdb2d.js => erc20-be025bec010c93e2.js} (99%) create mode 100644 _next/static/chunks/pages/mintstation-5c009ce936af1e59.js delete mode 100644 _next/static/chunks/pages/mintstation-e620e8a0f3354add.js rename _next/static/chunks/pages/mintstation/{cli-180ba86918d598a3.js => cli-eca5d973bc213845.js} (50%) delete mode 100644 _next/static/chunks/pages/mintstation/cli/setup-6253e94d42d70b8e.js create mode 100644 _next/static/chunks/pages/mintstation/cli/setup-cb6dc6c97dbd7d7b.js delete mode 100644 _next/static/chunks/pages/mintstation/contracts/compile-8179bc7cb5d5c251.js create mode 100644 _next/static/chunks/pages/mintstation/contracts/compile-f669f7160d7bebd1.js delete mode 100644 _next/static/chunks/pages/mintstation/contracts/create-db64846f1dbf5803.js create mode 100644 _next/static/chunks/pages/mintstation/contracts/create-ed4552aab8355038.js create mode 100644 _next/static/chunks/pages/mintstation/contracts/deploy-a1601c9a15a4ecf3.js delete mode 100644 _next/static/chunks/pages/mintstation/contracts/deploy-db968579f6b0dd31.js create mode 100644 _next/static/chunks/pages/mintstation/contracts/execute-94979a1420c0d6e1.js delete mode 100644 _next/static/chunks/pages/mintstation/contracts/execute-c6a17f12cac295a4.js create mode 100644 _next/static/chunks/pages/mintstation/contracts/query-c5a9ae0704eff889.js delete mode 100644 _next/static/chunks/pages/mintstation/contracts/query-c6bdf9aeb5a19e5c.js create mode 100644 _next/static/chunks/pages/mintstation/validator/command-bf77bf78efb863aa.js delete mode 100644 _next/static/chunks/pages/mintstation/validator/command-fa460a7d233cbee0.js create mode 100644 _next/static/chunks/pages/mintstation/validator/localnet-807f357eb62d5947.js delete mode 100644 _next/static/chunks/pages/mintstation/validator/localnet-e28a22e3ef900df8.js delete mode 100644 _next/static/chunks/pages/mintstation/validator/mainnet-77c8b6a4d8b83a07.js create mode 100644 _next/static/chunks/pages/mintstation/validator/mainnet-a8558d5a7cb1f976.js create mode 100644 _next/static/chunks/pages/mintstation/validator/upgrade-75eaa905f500cc15.js delete mode 100644 _next/static/chunks/pages/mintstation/validator/upgrade-915d5b43ba380866.js rename _next/static/{s4NzmK6cppjKJW4YpxN0m => ecNbfZJR6fZMgeYV_KEka}/_buildManifest.js (77%) rename _next/static/{s4NzmK6cppjKJW4YpxN0m => ecNbfZJR6fZMgeYV_KEka}/_ssgManifest.js (100%) diff --git a/404.html b/404.html index 0a0ce60e..e7a6600d 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/3248-b7e8af1a14065f4e.js b/_next/static/chunks/3248-b7e8af1a14065f4e.js new file mode 100644 index 00000000..a48c4de6 --- /dev/null +++ b/_next/static/chunks/3248-b7e8af1a14065f4e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3248],{5539:function(e,t,n){n.d(t,{WR:function(){return u},A1:function(){return h}});var i=n(7462),s=n(5524),o=n(7421),a=n(9119),createTheme=e=>{var{theme:t,settings:n={},styles:i=[]}=e,s={".cm-gutters":{}},l={};n.background&&(l.backgroundColor=n.background),n.backgroundImage&&(l.backgroundImage=n.backgroundImage),n.foreground&&(l.color=n.foreground),(n.background||n.foreground)&&(s["&"]=l),n.fontFamily&&(s["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(s[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(s[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(s[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(s[".cm-content"]={caretColor:n.caret},s[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var h={};n.gutterActiveForeground&&(h.color=n.gutterActiveForeground),n.lineHighlight&&(s[".cm-activeLine"]={backgroundColor:n.lineHighlight},h.backgroundColor=n.lineHighlight),s[".cm-activeLineGutter"]=h,n.selection&&(s["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(s["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var c=o.tk.theme(s,{dark:"dark"===t}),u=a.Qf.define(i);return[c,(0,a.nF)(u)]},l={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},h=(e=>{var{theme:t="light",settings:n={},styles:o=[]}={};return createTheme({theme:t,settings:(0,i.Z)({},l,n),styles:[{tag:[s.pJ.standard(s.pJ.tagName),s.pJ.tagName],color:"#116329"},{tag:[s.pJ.comment,s.pJ.bracket],color:"#6a737d"},{tag:[s.pJ.className,s.pJ.propertyName],color:"#6f42c1"},{tag:[s.pJ.variableName,s.pJ.attributeName,s.pJ.number,s.pJ.operator],color:"#005cc5"},{tag:[s.pJ.keyword,s.pJ.typeName,s.pJ.typeOperator,s.pJ.typeName],color:"#d73a49"},{tag:[s.pJ.string,s.pJ.meta,s.pJ.regexp],color:"#032f62"},{tag:[s.pJ.name,s.pJ.quote],color:"#22863a"},{tag:[s.pJ.heading,s.pJ.strong],color:"#24292e",fontWeight:"bold"},{tag:[s.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[s.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.special(s.pJ.variableName)],color:"#e36209"},{tag:[s.pJ.url,s.pJ.escape,s.pJ.regexp,s.pJ.link],color:"#032f62"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.invalid,color:"#cb2431"},...o]})})(),c={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},u=(e=>{var{theme:t="dark",settings:n={},styles:o=[]}={};return createTheme({theme:t,settings:(0,i.Z)({},c,n),styles:[{tag:[s.pJ.standard(s.pJ.tagName),s.pJ.tagName],color:"#7ee787"},{tag:[s.pJ.comment,s.pJ.bracket],color:"#8b949e"},{tag:[s.pJ.className,s.pJ.propertyName],color:"#d2a8ff"},{tag:[s.pJ.variableName,s.pJ.attributeName,s.pJ.number,s.pJ.operator],color:"#79c0ff"},{tag:[s.pJ.keyword,s.pJ.typeName,s.pJ.typeOperator,s.pJ.typeName],color:"#ff7b72"},{tag:[s.pJ.string,s.pJ.meta,s.pJ.regexp],color:"#a5d6ff"},{tag:[s.pJ.name,s.pJ.quote],color:"#7ee787"},{tag:[s.pJ.heading,s.pJ.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[s.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[s.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.special(s.pJ.variableName)],color:"#ffab70"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.invalid,color:"#f97583"},...o]})})()},1077:function(e,t,n){n.d(t,{ZP:function(){return e8}});var i=n(7462),s=n(7294),o=n(8120),a=n(7421),l=n(9119),h=n(1113);function command(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let s=e(t,n);return!!s&&(i(n.update(s)),!0)}}let c=command(function(e,t,n=t.selection.ranges){let i=[],s=-1;for(let{from:e,to:o}of n){let n=i.length,a=1e9,l=getConfig(t,e).line;if(l){for(let n=e;n<=o;){let h=t.doc.lineAt(n);if(h.from>s&&(e==o||o>h.from)){s=h.from;let e=/^\s*/.exec(h.text)[0].length,t=e==h.length,n=h.text.slice(e,e+l.length)==l?e:-1;ee.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:s,empty:o,single:a}of i)(a||!o)&&e.push({from:t.from+s,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:s}of i)if(n>=0){let i=t.from+n,o=i+s.length;" "==t.text[o-t.from]&&o++,e.push({from:i,to:o})}return{changes:e}}return null},0),u=command(changeBlockComment,0),f=command((e,t)=>changeBlockComment(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),s=n.to<=i.to?i:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>i.from?t[o].to=s.to:t.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return t}(t)),0);function getConfig(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function changeBlockComment(e,t,n=t.selection.ranges){let i=n.map(e=>getConfig(t,e.from).block);if(!i.every(e=>e))return null;let s=n.map((e,n)=>(function(e,{open:t,close:n},i,s){let o,a,l=e.sliceDoc(i-50,i),h=e.sliceDoc(s,s+50),c=/\s*$/.exec(l)[0].length,u=/^\s*/.exec(h)[0].length,f=l.length-c;if(l.slice(f-t.length,f)==t&&h.slice(u,u+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:s+u,margin:u&&1}};s-i<=100?o=a=e.sliceDoc(i,s):(o=e.sliceDoc(i,i+50),a=e.sliceDoc(s-50,s));let d=/^\s*/.exec(o)[0].length,p=/\s*$/.exec(a)[0].length,g=a.length-p-n.length;return o.slice(d,d+t.length)==t&&a.slice(g,g+n.length)==n?{open:{pos:i+d+t.length,margin:/\s/.test(o.charAt(d+t.length))?1:0},close:{pos:s-p-n.length,margin:/\s/.test(a.charAt(g-1))?1:0}}:null})(t,i[n],e.from,e.to));if(2!=e&&!s.every(e=>e))return{changes:t.changes(n.map((e,t)=>s[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}]))};if(1!=e&&s.some(e=>e)){let e=[];for(let t=0,n;t(0,o.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}),y=o.QQ.define({create:()=>HistoryState.empty,update(e,t){let n=t.state.facet(m),i=t.annotation(d);if(i){var s;let a;let l=t.docChanged?o.jT.single((s=t.changes,a=0,s.iterChangedRanges((e,t)=>a=t),a)):void 0,h=HistEvent.fromTransaction(t,l),c=i.side,u=0==c?e.undone:e.done;return u=h?updateBranch(u,u.length,n.minDepth,h):addSelection(u,t.startState.selection),new HistoryState(0==c?i.rest:u,0==c?u:i.rest)}let a=t.annotation(p);if(("full"==a||"before"==a)&&(e=e.isolate()),!1===t.annotation(o.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let l=HistEvent.fromTransaction(t),h=t.annotation(o.YW.time),c=t.annotation(o.YW.userEvent);return l?e=e.addChanges(l,h,c,n,t):t.selection&&(e=e.addSelection(t.startState.selection,h,c,n.newGroupDelay)),("full"==a||"after"==a)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new HistoryState(e.done.map(HistEvent.fromJSON),e.undone.map(HistEvent.fromJSON))});function cmd(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let s=n.field(y,!1);if(!s)return!1;let o=s.pop(e,n,t);return!!o&&(i(o),!0)}}let k=cmd(0,!1),x=cmd(1,!1),v=cmd(0,!0),S=cmd(1,!0);let HistEvent=class HistEvent{constructor(e,t,n,i,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new HistEvent(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new HistEvent(e.changes&&o.as.fromJSON(e.changes),[],e.mapped&&o.n0.fromJSON(e.mapped),e.startSelection&&o.jT.fromJSON(e.startSelection),e.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(e,t){let n=b;for(let t of e.startState.facet(g)){let i=t(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new HistEvent(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,b)}static selection(e){return new HistEvent(void 0,b,void 0,void 0,e)}};function updateBranch(e,t,n,i){let s=t+1>n+20?t-n-1:0,o=e.slice(s,t);return o.push(i),o}function conc(e,t){return e.length?t.length?e.concat(t):e:t}let b=[];function addSelection(e,t){if(!e.length)return[HistEvent.selection([t])];{let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),updateBranch(e,e.length-1,1e9,n.setSelAfter(i)))}}function addMappingToBranch(e,t){if(!e.length)return e;let n=e.length,i=b;for(;n;){let s=function(e,t,n){let i=conc(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):b,n);if(!e.changes)return HistEvent.selection(i);let s=e.changes.map(t),a=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(a):a;return new HistEvent(s,o.Py.mapEffects(e.effects,t),l,e.startSelection.map(a),i)}(e[n-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let t=e.slice(0,n);return t[n-1]=s,t}t=s.mapped,n--,i=s.selectionsAfter}return i.length?[HistEvent.selection(i)]:b}let w=/^(input\.type|delete)($|\.)/;let HistoryState=class HistoryState{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new HistoryState(this.done,this.undone):this}addChanges(e,t,n,i,s){var o,a;let l,h,c=this.done,u=c[c.length-1];return c=u&&u.changes&&!u.changes.empty&&e.changes&&(!n||w.test(n))&&(!u.selectionsAfter.length&&t-this.prevTimel.push(e,t)),a.iterChangedRanges((e,t,n,i)=>{for(let e=0;e=t&&n<=s&&(h=!0)}}),h))||"input.type.compose"==n)?updateBranch(c,c.length-1,i.minDepth,new HistEvent(e.changes.compose(u.changes),conc(e.effects,u.effects),u.mapped,u.startSelection,b)):updateBranch(c,c.length,i.minDepth,e),new HistoryState(c,b,t,n)}addSelection(e,t,n,i){var s;let o=this.done.length?this.done[this.done.length-1].selectionsAfter:b;return o.length>0&&t-this.prevTimet.empty!=e.ranges[n].empty).length?this:new HistoryState(addSelection(this.done,e),this.undone,t,n)}addMapping(e){return new HistoryState(addMappingToBranch(this.done,e),addMappingToBranch(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let s=i[i.length-1];if(n&&s.selectionsAfter.length){let n,o;return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:d.of({side:e,rest:(n=i[i.length-1],(o=i.slice())[i.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),o)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}if(!s.changes)return null;{let n=1==i.length?b:i.slice(0,i.length-1);return s.mapped&&(n=addMappingToBranch(n,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:d.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}};HistoryState.empty=new HistoryState(b,b);let C=[{key:"Mod-z",run:k,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:x,preventDefault:!0},{linux:"Ctrl-Shift-z",run:x,preventDefault:!0},{key:"Mod-u",run:v,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:S,preventDefault:!0}];function updateSel(e,t){return o.jT.create(e.ranges.map(t),e.mainIndex)}function setSel(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function moveSel({state:e,dispatch:t},n){let i=updateSel(e.selection,n);return!i.eq(e.selection)&&(t(setSel(e,i)),!0)}function rangeEnd(e,t){return o.jT.cursor(t?e.to:e.from)}function cursorByChar(e,t){return moveSel(e,n=>n.empty?e.moveByChar(n,t):rangeEnd(n,t))}function ltrAtCursor(e){return e.textDirectionAt(e.state.selection.main.head)==a.Nm.LTR}let cursorCharLeft=e=>cursorByChar(e,!ltrAtCursor(e)),cursorCharRight=e=>cursorByChar(e,ltrAtCursor(e));function cursorByGroup(e,t){return moveSel(e,n=>n.empty?e.moveByGroup(n,t):rangeEnd(n,t))}function moveBySyntax(e,t,n){let i,s,a=(0,l.qz)(e).resolveInner(t.head),c=n?h.md.closedBy:h.md.openedBy;for(let i=t.head;;){let t=n?a.childAfter(i):a.childBefore(i);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,c)?i=n?t.to:t.from:a=t}return s=a.type.prop(c)&&(i=n?(0,l.Um)(e,a.from,1):(0,l.Um)(e,a.to,-1))&&i.matched?n?i.end.to:i.end.from:n?a.to:a.from,o.jT.cursor(s,n?-1:1)}function cursorByLine(e,t){return moveSel(e,n=>{if(!n.empty)return rangeEnd(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;let cursorLineUp=e=>cursorByLine(e,!1),cursorLineDown=e=>cursorByLine(e,!0);function pageInfo(e){let t=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,i.height):rangeEnd(n,t));if(o.eq(s.selection))return!1;if(i.selfScroll){let t=e.coordsAtPos(s.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),h=l.top+i.marginTop,c=l.bottom-i.marginBottom;t&&t.top>h&&t.bottomcursorByPage(e,!1),cursorPageDown=e=>cursorByPage(e,!0);function moveByLineBoundary(e,t,n){let i=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,n);if(s.head==t.head&&s.head!=(n?i.to:i.from)&&(s=e.moveToLineBoundary(t,n,!1)),!n&&s.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(s=o.jT.cursor(i.from+n))}return s}function extendSel(e,t){let n=updateSel(e.state.selection,e=>{let n=t(e);return o.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(setSel(e.state,n)),!0)}function selectByChar(e,t){return extendSel(e,n=>e.moveByChar(n,t))}let selectCharLeft=e=>selectByChar(e,!ltrAtCursor(e)),selectCharRight=e=>selectByChar(e,ltrAtCursor(e));function selectByGroup(e,t){return extendSel(e,n=>e.moveByGroup(n,t))}function selectByLine(e,t){return extendSel(e,n=>e.moveVertically(n,t))}let selectLineUp=e=>selectByLine(e,!1),selectLineDown=e=>selectByLine(e,!0);function selectByPage(e,t){return extendSel(e,n=>e.moveVertically(n,t,pageInfo(e).height))}let selectPageUp=e=>selectByPage(e,!1),selectPageDown=e=>selectByPage(e,!0),cursorDocStart=({state:e,dispatch:t})=>(t(setSel(e,{anchor:0})),!0),cursorDocEnd=({state:e,dispatch:t})=>(t(setSel(e,{anchor:e.doc.length})),!0),selectDocStart=({state:e,dispatch:t})=>(t(setSel(e,{anchor:e.selection.main.anchor,head:0})),!0),selectDocEnd=({state:e,dispatch:t})=>(t(setSel(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function deleteBy(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:i}=e,s=i.changeByRange(i=>{let{from:s,to:a}=i;if(s==a){let o=t(i);os&&(n="delete.forward",o=skipAtomic(e,o,!0)),s=Math.min(s,o),a=Math.max(a,o)}else s=skipAtomic(e,s,!1),a=skipAtomic(e,a,!0);return s==a?{range:i}:{changes:{from:s,to:a},range:o.jT.cursor(s,st(e)))i.between(t,t,(e,i)=>{et&&(t=n?i:e)});return t}let deleteByChar=(e,t)=>deleteBy(e,n=>{let i=n.from,{state:s}=e,a=s.doc.lineAt(i),h,c;if(!t&&i>a.from&&ideleteByChar(e,!1),deleteCharForward=e=>deleteByChar(e,!0),deleteByGroup=(e,t)=>deleteBy(e,n=>{let i=n.head,{state:s}=e,a=s.doc.lineAt(i),l=s.charCategorizer(i);for(let e=null;;){if(i==(t?a.to:a.from)){i==n.head&&a.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let h=(0,o.cp)(a.text,i-a.from,t)+a.from,c=a.text.slice(Math.min(i,h)-a.from,Math.max(i,h)-a.from),u=l(c);if(null!=e&&u!=e)break;(" "!=c||i!=n.head)&&(e=u),i=h}return i}),deleteGroupBackward=e=>deleteByGroup(e,!1);function selectedLineBlocks(e){let t=[],n=-1;for(let i of e.selection.ranges){let s=e.doc.lineAt(i.from),o=e.doc.lineAt(i.to);if(i.empty||i.to!=o.from||(o=e.doc.lineAt(i.to-1)),n>=s.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(i)}else t.push({from:s.from,to:o.to,ranges:[i]});n=o.number+1}return t}function moveLine(e,t,n){if(e.readOnly)return!1;let i=[],s=[];for(let t of selectedLineBlocks(e)){if(n?t.to==e.doc.length:0==t.from)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),l=a.length+1;if(n)for(let n of(i.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak}),t.ranges))s.push(o.jT.range(Math.min(e.doc.length,n.anchor+l),Math.min(e.doc.length,n.head+l)));else for(let n of(i.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text}),t.ranges))s.push(o.jT.range(n.anchor-l,n.head-l))}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:o.jT.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}function copyLine(e,t,n){if(e.readOnly)return!1;let i=[];for(let t of selectedLineBlocks(e))n?i.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):i.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let A=newlineAndIndent(!1),T=newlineAndIndent(!0);function newlineAndIndent(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:i,to:s}=n,a=t.doc.lineAt(i),c=!e&&i==s&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,l.qz)(e).resolveInner(t),i=n.childBefore(t),s=n.childAfter(t),o;return i&&s&&i.to<=t&&s.from>=t&&(o=i.type.prop(h.md.closedBy))&&o.indexOf(s.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}(t,i);e&&(i=s=(s<=a.to?a:t.doc.lineAt(s)).to);let u=new l.Gn(t,{simulateBreak:i,simulateDoubleBreak:!!c}),f=(0,l.K0)(u,i);for(null==f&&(f=(0,o.IS)(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));sa.from&&i{let s=[];for(let o=i.from;o<=i.to;){let a=e.doc.lineAt(o);a.number>n&&(i.empty||i.to>a.from)&&(t(a,s,i),n=a.number),o=a.to+1}let a=e.changes(s);return{changes:s,range:o.jT.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}let indentMore=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(changeBySelectedLine(e,(t,n)=>{n.push({from:t.from,insert:e.facet(l.c)})}),{userEvent:"input.indent"})),!0),indentLess=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(changeBySelectedLine(e,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=(0,o.IS)(i,e.tabSize),a=0,h=(0,l.SS)(e,Math.max(0,s-(0,l.y1)(e)));for(;amoveSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>extendSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>moveSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>extendSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:deleteCharForward},{key:"Ctrl-h",run:deleteCharBackward},{key:"Ctrl-k",run:e=>deleteBy(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:o.xv.of(["",""])},range:o.jT.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),s=n==i.from?n-1:(0,o.cp)(i.text,n-i.from,!1)+i.from,a=n==i.to?n+1:(0,o.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:s,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(s,n))},range:o.jT.cursor(a)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:cursorPageDown}],O=[{key:"ArrowLeft",run:cursorCharLeft,shift:selectCharLeft,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>cursorByGroup(e,!ltrAtCursor(e)),shift:e=>selectByGroup(e,!ltrAtCursor(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,!ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,!ltrAtCursor(e))),preventDefault:!0},{key:"ArrowRight",run:cursorCharRight,shift:selectCharRight,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>cursorByGroup(e,ltrAtCursor(e)),shift:e=>selectByGroup(e,ltrAtCursor(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,ltrAtCursor(e))),preventDefault:!0},{key:"ArrowUp",run:cursorLineUp,shift:selectLineUp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:cursorDocStart,shift:selectDocStart},{mac:"Ctrl-ArrowUp",run:cursorPageUp,shift:selectPageUp},{key:"ArrowDown",run:cursorLineDown,shift:selectLineDown,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cursorDocEnd,shift:selectDocEnd},{mac:"Ctrl-ArrowDown",run:cursorPageDown,shift:selectPageDown},{key:"PageUp",run:cursorPageUp,shift:selectPageUp},{key:"PageDown",run:cursorPageDown,shift:selectPageDown},{key:"Home",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,!1)),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:cursorDocStart,shift:selectDocStart},{key:"End",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,!0)),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:cursorDocEnd,shift:selectDocEnd},{key:"Enter",run:A},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:deleteCharBackward,shift:deleteCharBackward},{key:"Delete",run:deleteCharForward},{key:"Mod-Backspace",mac:"Alt-Backspace",run:deleteGroupBackward},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>deleteByGroup(e,!0)},{mac:"Mod-Backspace",run:e=>deleteBy(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:e=>deleteBy(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift}))),I=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>moveSel(e,t=>moveBySyntax(e.state,t,!ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveBySyntax(e.state,t,!ltrAtCursor(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>moveSel(e,t=>moveBySyntax(e.state,t,ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveBySyntax(e.state,t,ltrAtCursor(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>moveLine(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>copyLine(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>moveLine(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>copyLine(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=o.jT.create([n.main]):n.main.empty||(i=o.jT.create([o.jT.cursor(n.main.head)])),!!i&&(t(setSel(e,i)),!0)}},{key:"Mod-Enter",run:T},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=selectedLineBlocks(e).map(({from:t,to:n})=>o.jT.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:o.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=updateSel(e.selection,t=>{var n;let i=(0,l.qz)(e).resolveStack(t.from,1);for(let e=i;e;e=e.next){let{node:i}=e;if((i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent))return o.jT.range(i.to,i.from)}return t});return t(setSel(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:indentLess},{key:"Mod-]",run:indentMore},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new l.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),s=changeBySelectedLine(e,(t,s,o)=>{let a=(0,l.K0)(i,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let h=/^\s*/.exec(t.text)[0],c=(0,l.SS)(e,a);(h!=c||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(selectedLineBlocks(t).map(({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0)).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{let n,i;return n=!1,i=updateSel(e.selection,t=>{let i=(0,l.Um)(e,t.head,-1)||(0,l.Um)(e,t.head,1)||t.head>0&&(0,l.Um)(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),i=getConfig(e.state,n.from);return i.line?c(e):!!i.block&&f(e)}},{key:"Alt-A",run:u}].concat(O),B={key:"Tab",run:indentMore,shift:indentLess};function crelt(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=n[i];"string"==typeof s?e.setAttribute(i,s):null!=s&&(e[i]=s)}t++}for(;te.normalize("NFKD"):e=>e;let SearchCursor=class SearchCursor{constructor(e,t,n=0,i=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=s?e=>s(R(e)):R,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,o.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,o.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,o.nZ)(e);let i=this.normalize(t);for(let e=0,s=n;;e++){let o=i.charCodeAt(e),a=this.match(o,s);if(e==i.length-1){if(a)return this.value=a,this;break}s==n&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=toCharEnd(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||i.to<=t){let i=new FlattenedDoc(t,e.sliceString(t,n));return E.set(e,i),i}if(i.from==t&&i.to==n)return i;let{text:s,from:o}=i;return o>t&&(s=e.sliceString(t,o)+s,o=t),i.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=toCharEnd(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=FlattenedDoc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}};function toCharEnd(e,t){if(t>=e.length)return t;let n=e.lineAt(t),i;for(;t=56320&&i<57344;)t++;return t}function createLineDialog(e){let t=crelt("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function go(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:i}=e,s=i.doc.lineAt(i.selection.main.head),[,l,h,c,u]=n,f=c?+c.slice(1):0,d=h?+h:s.number;if(h&&u){let e=d/100;l&&(e=e*("-"==l?-1:1)+s.number/i.doc.lines),d=Math.round(i.doc.lines*e)}else h&&l&&(d=d*("-"==l?-1:1)+s.number);let p=i.doc.line(Math.max(1,Math.min(i.doc.lines,d))),g=o.jT.cursor(p.from+Math.max(0,Math.min(f,p.length)));e.dispatch({effects:[M.of(!1),a.tk.scrollIntoView(g.from,{y:"center"})],selection:g}),e.focus()}return{dom:crelt("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:M.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),go())},onsubmit:e=>{e.preventDefault(),go()}},crelt("label",e.state.phrase("Go to line"),": ",t)," ",crelt("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(RegExpCursor.prototype[Symbol.iterator]=MultilineRegExpCursor.prototype[Symbol.iterator]=function(){return this});let M=o.Py.define(),L=o.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(M)&&(e=n.value);return e},provide:e=>a.mH.from(e,e=>e?createLineDialog:null)}),J=a.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),F={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},j=o.r$.define({combine:e=>(0,o.BO)(e,F,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),z=a.p.mark({class:"cm-selectionMatch"}),$=a.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function insideWordBoundaries(e,t,n,i){return(0==n||e(t.sliceDoc(n-1,n))!=o.D0.Word)&&(i==t.doc.length||e(t.sliceDoc(i,i+1))!=o.D0.Word)}let W=a.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(j),{state:n}=e,i=n.selection;if(i.ranges.length>1)return a.p.none;let s=i.main,l,h=null;if(s.empty){if(!t.highlightWordAroundCursor)return a.p.none;let e=n.wordAt(s.head);if(!e)return a.p.none;h=n.charCategorizer(s.head),l=n.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return a.p.none;if(t.wholeWords){var c,u,f;if(l=n.sliceDoc(s.from,s.to),!(insideWordBoundaries(h=n.charCategorizer(s.head),n,s.from,s.to)&&(c=h,u=s.from,f=s.to,c(n.sliceDoc(u,u+1))==o.D0.Word&&c(n.sliceDoc(f-1,f))==o.D0.Word)))return a.p.none}else if(!(l=n.sliceDoc(s.from,s.to).trim()))return a.p.none}let d=[];for(let i of e.visibleRanges){let e=new SearchCursor(n.doc,l,i.from,i.to);for(;!e.next().done;){let{from:i,to:o}=e.value;if((!h||insideWordBoundaries(h,n,i,o))&&(s.empty&&i<=s.from&&o>=s.to?d.push($.range(i,o)):(i>=s.to||o<=s.from)&&d.push(z.range(i,o)),d.length>t.maxMatches))return a.p.none}}return a.p.set(d)}},{decorations:e=>e.decorations}),Q=a.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),selectWord=({state:e,dispatch:t})=>{let{selection:n}=e,i=o.jT.create(n.ranges.map(t=>e.wordAt(t.head)||o.jT.cursor(t.head)),n.mainIndex);return!i.eq(n)&&(t(e.update({selection:i})),!0)},q=o.r$.define({combine:e=>(0,o.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new SearchPanel(e),scrollToMatch:e=>a.tk.scrollIntoView(e)})});let SearchQuery=class SearchQuery{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,D),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new RegExpQuery(this):new StringQuery(this)}getCursor(e,t=0,n){let i=e.doc?e:o.yy.create({doc:e});return null==n&&(n=i.doc.length),this.regexp?regexpCursor(this,i,t,n):stringCursor(this,i,t,n)}};let QueryType=class QueryType{constructor(e){this.spec=e}};function stringCursor(e,t,n,i){var s,a;return new SearchCursor(t.doc,e.unquoted,n,i,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(s=t.doc,a=t.charCategorizer(t.selection.main.head),(e,t,n,i)=>((i>e||i+n.length=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=stringCursor(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}};function regexpCursor(e,t,n,i){var s;return new RegExpCursor(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(s=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(s(charBefore(n.input,n.index))!=o.D0.Word||s(charAfter(n.input,n.index))!=o.D0.Word)&&(s(charAfter(n.input,n.index+n[0].length))!=o.D0.Word||s(charBefore(n.input,n.index+n[0].length))!=o.D0.Word)):void 0},n,i)}function charBefore(e,t){return e.slice((0,o.cp)(e,t,!1),t)}function charAfter(e,t){return e.slice(t,(0,o.cp)(e,t))}let RegExpQuery=class RegExpQuery extends QueryType{nextMatch(e,t,n){let i=regexpCursor(this.spec,e,n,e.doc.length).next();return i.done&&(i=regexpCursor(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let s=Math.max(t,n-1e4*i),o=regexpCursor(this.spec,e,s,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=regexpCursor(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}};let _=o.Py.define(),H=o.Py.define(),U=o.QQ.define({create:e=>new SearchState(defaultQuery(e).create(),null),update(e,t){for(let n of t.effects)n.is(_)?e=new SearchState(n.value.create(),e.panel):n.is(H)&&(e=new SearchState(e.query,n.value?createSearchPanel:null));return e},provide:e=>a.mH.from(e,e=>e.panel)});let SearchState=class SearchState{constructor(e,t){this.query=e,this.panel=t}};let V=a.p.mark({class:"cm-searchMatch"}),G=a.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Z=a.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(U))}update(e){let t=e.state.field(U);(t!=e.startState.field(U)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return a.p.none;let{view:n}=this,i=new o.f_;for(let t=0,s=n.visibleRanges,o=s.length;ts[t+1].from-500;)l=s[++t].to;e.highlight(n.state,a,l,(e,t)=>{let s=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,s?G:V)})}return i.finish()}},{decorations:e=>e.decorations});function searchCommand(e){return t=>{let n=t.state.field(U,!1);return n&&n.query.spec.valid?e(t,n):openSearchPanel(t)}}let K=searchCommand((e,{query:t})=>{let{to:n}=e.state.selection.main,i=t.nextMatch(e.state,n,n);if(!i)return!1;let s=o.jT.single(i.from,i.to),a=e.state.facet(q);return e.dispatch({selection:s,effects:[announceMatch(e,i),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),selectSearchInput(e),!0}),Y=searchCommand((e,{query:t})=>{let{state:n}=e,{from:i}=n.selection.main,s=t.prevMatch(n,i,i);if(!s)return!1;let a=o.jT.single(s.from,s.to),l=e.state.facet(q);return e.dispatch({selection:a,effects:[announceMatch(e,s),l.scrollToMatch(a.main,e)],userEvent:"select.search"}),selectSearchInput(e),!0}),X=searchCommand((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:o.jT.create(n.map(e=>o.jT.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),ee=searchCommand((e,{query:t})=>{let{state:n}=e,{from:i,to:s}=n.selection.main;if(n.readOnly)return!1;let l=t.nextMatch(n,i,i);if(!l)return!1;let h=[],c,u,f=[];if(l.from==i&&l.to==s&&(u=n.toText(t.getReplacement(l)),h.push({from:l.from,to:l.to,insert:u}),l=t.nextMatch(n,l.from,l.to),f.push(a.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),l){let t=0==h.length||h[0].from>=l.to?0:l.to-l.from-u.length;c=o.jT.single(l.from-t,l.to-t),f.push(announceMatch(e,l)),f.push(n.facet(q).scrollToMatch(c.main,e))}return e.dispatch({changes:h,selection:c,effects:f,userEvent:"input.replace"}),!0}),et=searchCommand((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(e=>{let{from:n,to:i}=e;return{from:n,to:i,insert:t.getReplacement(e)}});if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:a.tk.announce.of(i),userEvent:"input.replace.all"}),!0});function createSearchPanel(e){return e.state.facet(q).createPanel(e)}function defaultQuery(e,t){var n,i,s,o,a;let l=e.selection.main,h=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!h)return t;let c=e.facet(q);return new SearchQuery({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?h:h.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null==t?void 0:t.caseSensitive)&&void 0!==i?i:c.caseSensitive,literal:null!==(s=null==t?void 0:t.literal)&&void 0!==s?s:c.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:c.wholeWord})}function getSearchInput(e){let t=(0,a.Sd)(e,createSearchPanel);return t&&t.dom.querySelector("[main-field]")}function selectSearchInput(e){let t=getSearchInput(e);t&&t==e.root.activeElement&&t.select()}let openSearchPanel=e=>{let t=e.state.field(U,!1);if(t&&t.panel){let n=getSearchInput(e);if(n&&n!=e.root.activeElement){let i=defaultQuery(e.state,t.query.spec);i.valid&&e.dispatch({effects:_.of(i)}),n.focus(),n.select()}}else e.dispatch({effects:[H.of(!0),t?_.of(defaultQuery(e.state,t.query.spec)):o.Py.appendConfig.of(es)]});return!0},closeSearchPanel=e=>{let t=e.state.field(U,!1);if(!t||!t.panel)return!1;let n=(0,a.Sd)(e,createSearchPanel);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:H.of(!1)}),!0},en=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:K,shift:Y,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:K,shift:Y,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:s}=n.main,a=[],l=0;for(let t=new SearchCursor(e.doc,e.sliceDoc(i,s));!t.next().done;){if(a.length>1e3)return!1;t.value.from==i&&(l=a.length),a.push(o.jT.range(t.value.from,t.value.to))}return t(e.update({selection:o.jT.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,a.Sd)(e,createLineDialog);if(!t){let n=[M.of(!0)];null==e.state.field(L,!1)&&n.push(o.Py.appendConfig.of([L,J])),e.dispatch({effects:n}),t=(0,a.Sd)(e,createLineDialog)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return selectWord({state:e,dispatch:t});let i=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=i))return!1;let s=function(e,t){let{main:n,ranges:i}=e.selection,s=e.wordAt(n.head),o=s&&s.from==n.from&&s.to==n.to;for(let n=!1,s=new SearchCursor(e.doc,t,i[i.length-1].to);;)if(s.next(),s.done){if(n)return null;s=new SearchCursor(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),n=!0}else{if(n&&i.some(e=>e.from==s.value.from))continue;if(o){let t=e.wordAt(s.value.from);if(!t||t.from!=s.value.from||t.to!=s.value.to)continue}return s.value}}(e,i);return!!s&&(t(e.update({selection:e.selection.addRange(o.jT.range(s.from,s.to),!1),effects:a.tk.scrollIntoView(s.to)})),!0)},preventDefault:!0}];let SearchPanel=class SearchPanel{constructor(e){this.view=e;let t=this.query=e.state.field(U).query.spec;function button(e,t,n){return crelt("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:t.search,placeholder:phrase(e,"Find"),"aria-label":phrase(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:t.replace,placeholder:phrase(e,"Replace"),"aria-label":phrase(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=crelt("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,button("next",()=>K(e),[phrase(e,"next")]),button("prev",()=>Y(e),[phrase(e,"previous")]),button("select",()=>X(e),[phrase(e,"all")]),crelt("label",null,[this.caseField,phrase(e,"match case")]),crelt("label",null,[this.reField,phrase(e,"regexp")]),crelt("label",null,[this.wordField,phrase(e,"by word")]),...e.state.readOnly?[]:[crelt("br"),this.replaceField,button("replace",()=>ee(e),[phrase(e,"replace")]),button("replaceAll",()=>et(e),[phrase(e,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(e),"aria-label":phrase(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new SearchQuery({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:_.of(e)}))}keydown(e){(0,a.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Y:K)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),ee(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(_)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(q).top}};function phrase(e,t){return e.state.phrase(t)}let er=/[\s\.,:;?!]/;function announceMatch(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),s=e.state.doc.lineAt(n).to,o=Math.max(i.from,t-30),l=Math.min(s,n+30),h=e.state.sliceDoc(o,l);if(o!=i.from){for(let e=0;e<30;e++)if(!er.test(h[e+1])&&er.test(h[e])){h=h.slice(e);break}}if(l!=s){for(let e=h.length-1;e>h.length-30;e--)if(!er.test(h[e-1])&&er.test(h[e])){h=h.slice(0,e);break}}return a.tk.announce.of(`${e.state.phrase("current match")}. ${h} ${e.state.phrase("on line")} ${i.number}.`)}let ei=a.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),es=[U,o.Wl.low(Z),ei];let CompletionContext=class CompletionContext{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,l.qz)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),s=i.search(ensureAnchor(e,!1));return s<0?null:{from:n+s,to:this.pos,text:i.slice(s)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}};function toSet(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}let Option=class Option{constructor(e,t,n,i){this.completion=e,this.source=t,this.match=n,this.score=i}};function cur(e){return e.selection.main.from}function ensureAnchor(e,t){var n;let{source:i}=e,s=t&&"^"!=i[0],o="$"!=i[i.length-1];return s||o?RegExp(`${s?"^":""}(?:${i})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}let eo=o.q6.define(),ea=new WeakMap;function asSource(e){if(!Array.isArray(e))return e;let t=ea.get(e);return t||ea.set(e,t=function(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,i]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e{let s=e.matchBefore(i);return s||e.explicit?{from:s?s.from:e.pos,options:t,validFor:n}:null}}(e)),t}let el=o.Py.define(),eh=o.Py.define();let FuzzyMatcher=class FuzzyMatcher{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(v=(0,o.bg)(c))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!i||1==S&&y||0==x&&0!=S)&&(t[f]==c||n[f]==c&&(d=!0)?a[f++]=i:a.length&&(k=!1)),x=S,i+=(0,o.nZ)(c)}return f==h&&0==a[0]&&k?this.result(-100+(d?-200:0),a,e):p==h&&0==g?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==h?this.ret(-900-e.length,[g,m]):f==h?this.result(-100+(d?-200:0)+-700+(k?0:-1100),a,e):2!=t.length&&this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],s=0;for(let e of t){let t=e+(this.astral?(0,o.nZ)((0,o.gm)(n,e)):1);s&&i[s-1]==e?i[s-1]=t:(i[s++]=e,i[s++]=t)}return this.ret(e-n.length,i)}};let ec=o.r$.define({combine:e=>(0,o.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>joinClass(e(n),t(n)),optionClass:(e,t)=>n=>joinClass(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function joinClass(e,t){return e?t?e+" "+t:e:t}function defaultPositionInfo(e,t,n,i,s,o){let l=e.textDirection==a.Nm.RTL,h=l,c=!1,u="top",f,d,p=t.left-s.left,g=s.right-t.right,m=i.right-i.left,y=i.bottom-i.top;if(h&&p=y||e>t.top?f=n.bottom-t.top:(u="bottom",f=t.bottom-n.top)}let k=(t.bottom-t.top)/o.offsetHeight,x=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${f/k}px; max-width: ${d/x}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":h?"left":"right")}}function rangeAroundSelected(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}let CompletionTooltip=class CompletionTooltip{constructor(e,t,n){let i;this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:a}=s.open,l=e.state.facet(ec);this.optionContent=(i=l.addToOptions.slice(),l.icons&&i.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),i.push({render(e,t,n){let i=document.createElement("span");i.className="cm-completionLabel";let s=e.displayLabel||e.label,o=0;for(let e=0;eo&&i.appendChild(document.createTextNode(s.slice(o,t)));let l=i.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(s.slice(t,a))),l.className="cm-completionMatchedText",o=a}return oe.position-t.position).map(e=>e.render)),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=rangeAroundSelected(o.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:i}=e.state.field(t).open;for(let t=n.target,s;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(s=/-(\d+)$/.exec(t.id))&&+s[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(ec).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:eh.of(null)})}),this.showOptions(o,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=i){let{options:s,selected:o,disabled:a}=n.open;i.open&&i.open.options==s||(this.range=rangeAroundSelected(s.length,o,e.state.facet(ec).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),a!=(null===(t=i.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=rangeAroundSelected(t.options.length,t.selected,this.view.state.facet(ec).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let s="string"==typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)}).catch(e=>(0,a.OO)(this.view.state,e,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:i}=e;n.appendChild(t),this.infoDestroy=i||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,n;let i,s,o,a=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)"LI"==t.nodeName&&t.id?n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),a=t):t.hasAttribute("aria-selected")&&t.removeAttribute("aria-selected"):n--;return a&&(t=this.list,n=a,i=t.getBoundingClientRect(),s=n.getBoundingClientRect(),o=i.height/t.offsetHeight,s.topi.bottom&&(t.scrollTop+=(s.bottom-i.bottom)/o)),a}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.space;if(!s){let e=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return i.top>Math.min(s.bottom,t.bottom)-10||i.bottomn.from||0==n.from)&&(s=e,"string"!=typeof h&&h.header?i.appendChild(h.header(h)):i.appendChild(document.createElement("completion-section")).textContent=e)}let c=i.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);for(let e of(u&&(c.className=u),this.optionContent)){let t=e(a,this.view.state,l);t&&c.appendChild(t)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to=this.options.length?this:new CompletionDialog(this.options,makeAttrs(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,i,s){let o=function(e,t){let n=[],i=null,addOption=e=>{n.push(e);let{section:t}=e.completion;if(t){i||(i=[]);let e="string"==typeof t?t:t.name;i.some(t=>t.name==e)||i.push("string"==typeof t?{name:e}:t)}};for(let i of e)if(i.hasResult()){let e=i.result.getMatch;if(!1===i.result.filter)for(let t of i.result.options)addOption(new Option(t,i.source,e?e(t):[],1e9-n.length));else{let n=new FuzzyMatcher(t.sliceDoc(i.from,i.to));for(let t of i.result.options)if(n.match(t.label)){let s=t.displayLabel?e?e(t,n.matched):[]:n.matched;addOption(new Option(t,i.source,s,n.score+(t.boost||0)))}}}if(i){let e=Object.create(null),t=0;for(let n of i.sort((e,t)=>{var n,i;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(i=t.rank)&&void 0!==i?i:1e9)||(e.namet.score-e.score||a(e.completion,t.completion))){let t=e.completion;o&&o.label==t.label&&o.detail==t.detail&&(null==o.type||null==t.type||o.type==t.type)&&o.apply==t.apply&&o.boost==t.boost?score(e.completion)>score(o)&&(s[s.length-1]=e):s.push(e),o=e.completion}return s}(e,t);if(!o.length)return i&&e.some(e=>1==e.state)?new CompletionDialog(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let a=t.facet(ec).selectOnOpen?0:-1;if(i&&i.selected!=a&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:createTooltip,above:s.aboveCursor},i?i.timestamp:Date.now(),a,!1)}map(e){return new CompletionDialog(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}};let CompletionState=class CompletionState{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new CompletionState(ef,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(ec),i=(n.override||t.languageDataAt("autocomplete",cur(t)).map(asSource)).map(t=>(this.active.find(e=>e.source==t)||new ActiveSource(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let s=this.open;for(let o of(s&&e.docChanged&&(s=s.map(e.changes)),e.selection||i.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n1==e.state)&&(s=null),!s&&i.every(e=>1!=e.state)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new ActiveSource(e.source,0):e)),e.effects))o.is(ep)&&(s=s&&s.setSelected(o.value,this.id));return i==this.active&&s==this.open?this:new CompletionState(i,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:eu}};let eu={"aria-autocomplete":"list"};function makeAttrs(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}let ef=[];function getUserEvent(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}let ActiveSource=class ActiveSource{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=getUserEvent(e),i=this;for(let s of(n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new ActiveSource(i.source,0)),e.effects))if(s.is(el))i=new ActiveSource(i.source,1,s.value?cur(e.state):-1);else if(s.is(eh))i=new ActiveSource(i.source,0);else if(s.is(ed))for(let e of s.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new ActiveSource(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(cur(e.startState))?new ActiveSource(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new ActiveSource(this.source,this.state,e.mapPos(this.explicitPos))}};let ActiveResult=class ActiveResult extends ActiveSource{constructor(e,t,n,i,s){super(e,2,t),this.result=n,this.from=i,this.to=s}hasResult(){return!0}handleUserEvent(e,t,n){var i;let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=cur(e.state);if((this.explicitPos<0?a<=s:ao||"delete"==t&&cur(e.startState)==this.from)return new ActiveSource(this.source,"input"==t&&n.activateOnTyping?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),h;return!function(e,t,n,i){if(!e)return!1;let s=t.sliceDoc(n,i);return"function"==typeof e?e(s,n,i,t):ensureAnchor(e,!0).test(s)}(this.result.validFor,e.state,s,o)?this.result.update&&(h=this.result.update(this.result,s,o,new CompletionContext(e.state,a,l>=0)))?new ActiveResult(this.source,l,h,h.from,null!==(i=h.to)&&void 0!==i?i:cur(e.state)):new ActiveSource(this.source,1,l):new ActiveResult(this.source,l,this.result,s,o)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new ActiveSource(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new ActiveResult(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}};let ed=o.Py.define({map:(e,t)=>e.map(e=>e.map(t))}),ep=o.Py.define(),eg=o.QQ.define({create:()=>CompletionState.start(),update:(e,t)=>e.update(t),provide:e=>[a.hJ.from(e,e=>e.tooltip),a.tk.contentAttributes.from(e,e=>e.attrs)]});function applyCompletion(e,t){let n=t.completion.apply||t.completion.label,i=e.state.field(eg).active.find(e=>e.source==t.source);return i instanceof ActiveResult&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:s}=e.selection,a=n-s.from,l=i-s.from;return Object.assign(Object.assign({},e.changeByRange(h=>h!=s&&n!=i&&e.sliceDoc(h.from+a,h.from+l)!=e.sliceDoc(n,i)?{range:h}:{changes:{from:h.from+a,to:i==s.from?h.to:h.from+l,insert:t},range:o.jT.cursor(h.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:eo.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}let createTooltip=e=>new CompletionTooltip(e,eg,applyCompletion);function moveCompletionSelection(e,t="option"){return n=>{let i=n.state.field(eg,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(e?1:-1):e?0:l-1;return h<0?h="page"==t?0:l-1:h>=l&&(h="page"==t?l-1:0),n.dispatch({effects:ep.of(h)}),!0}}let RunningQuery=class RunningQuery{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}};let em=a.lg.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0,e.state.field(eg).active))1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(eg);if(!e.selectionSet&&!e.docChanged&&e.startState.field(eg)==t)return;let n=e.transactions.some(e=>(e.selection||e.docChanged)&&!getUserEvent(e));for(let t=0;t50&&Date.now()-i.time>1e3){for(let e of i.context.abortListeners)try{e()}catch(e){(0,a.OO)(this.view.state,e)}i.context.abortListeners=null,this.running.splice(t--,1)}else i.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(e=>1==e.state&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),50):-1,0!=this.composing)for(let t of e.transactions)"input"==getUserEvent(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view;for(let t of e.field(eg).active)1!=t.state||this.running.some(e=>e.active.source==t.source)||this.startQuery(t)}startQuery(e){let{state:t}=this.view,n=cur(t),i=new CompletionContext(t,n,e.explicitPos==n),s=new RunningQuery(e,i);this.running.push(s),Promise.resolve(e.source(i)).then(e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:eh.of(null)}),(0,a.OO)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ec).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(ec);for(let i=0;ie.source==s.active.source);if(o&&1==o.state){if(null==s.done){let e=new ActiveSource(s.active.source,0);for(let t of s.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}}t.length&&this.view.dispatch({effects:ed.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(eg,!1);if(t&&t.tooltip&&this.view.state.facet(ec).closeOnBlur){let n=t.open&&(0,a.gB)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:eh.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:el.of(!1)}),20),this.composing=0}}}),ey=a.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),ek=a.p.widget({widget:new class extends a.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),ex=a.p.mark({class:"cm-snippetField"});let ActiveSnippet=class ActiveSnippet{constructor(e,t){this.ranges=e,this.active=t,this.deco=a.p.set(e.map(e=>(e.from==e.to?ek:ex).range(e.from,e.to)))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new ActiveSnippet(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}};let ev=o.Py.define({map:(e,t)=>e&&e.map(t)}),eS=o.Py.define(),eb=o.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(ev))return n.value;if(n.is(eS)&&e)return new ActiveSnippet(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>a.tk.decorations.from(e,e=>e?e.deco:a.p.none)});function moveField(e){return({state:t,dispatch:n})=>{var i;let s=t.field(eb,!1);if(!s||e<0&&0==s.active)return!1;let a=s.active+e,l=e>0&&!s.ranges.some(t=>t.field==a+e);return n(t.update({selection:(i=s.ranges,o.jT.create(i.filter(e=>e.field==a).map(e=>o.jT.range(e.from,e.to)))),effects:ev.of(l?null:new ActiveSnippet(s.ranges,a)),scrollIntoView:!0})),!0}}let ew=moveField(1),eC=moveField(-1),eA={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},eT=o.Py.define({map(e,t){let n=t.mapPos(e,-1,o.gc.TrackAfter);return null==n?void 0:n}}),eP=new class extends o.uU{};eP.startSide=1,eP.endSide=-1;let eO=o.QQ.define({create:()=>o.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=o.Xs.empty)}for(let n of(e=e.map(t.changes),t.effects))n.is(eT)&&(e=e.update({add:[eP.range(n.value,n.value+1)]}));return e}}),eI="()[]{}<>";function closing(e){for(let t=0;t{if((eB?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,o.nZ)((0,o.gm)(i,0))||t!=s.from||n!=s.to)return!1;let a=function(e,t){let n=config(e,e.selection.main.head),i=n.brackets||eA.brackets;for(let s of i){let a=closing((0,o.gm)(s,0));if(t==s)return a==s?function(e,t,n,i){let s=i.stringPrefixes||eA.stringPrefixes,a=null,h=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:eT.of(i.to+t.length),range:o.jT.range(i.anchor+t.length,i.head+t.length)};let h=i.head,c=nextChar(e.doc,h),u;if(c==t){if(nodeStart(e,h))return{changes:{insert:t+t,from:h},effects:eT.of(h+t.length),range:o.jT.cursor(h+t.length)};if(closedBracketAt(e,h)){let i=n&&e.sliceDoc(h,h+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:h,to:h+i.length,insert:i},range:o.jT.cursor(h+i.length)}}}else if(n&&e.sliceDoc(h-2*t.length,h)==t+t&&(u=canStartStringAt(e,h-2*t.length,s))>-1&&nodeStart(e,u))return{changes:{insert:t+t+t+t,from:h},effects:eT.of(h+t.length),range:o.jT.cursor(h+t.length)};else if(e.charCategorizer(h)(c)!=o.D0.Word&&canStartStringAt(e,h,s)>-1&&!function(e,t,n,i){let s=(0,l.qz)(e).resolveInner(t,-1),o=i.reduce((e,t)=>Math.max(e,t.length),0);for(let a=0;a<5;a++){let a=e.sliceDoc(s.from,Math.min(s.to,s.from+n.length+o)),l=a.indexOf(n);if(!l||l>-1&&i.indexOf(a.slice(0,l))>-1){let t=s.firstChild;for(;t&&t.from==s.from&&t.to-t.from>n.length+l;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let h=s.to==t&&s.parent;if(!h)break;s=h}return!1}(e,h,t,s))return{changes:{insert:t+t,from:h},effects:eT.of(h+t.length),range:o.jT.cursor(h+t.length)};return{range:a=i}});return a?null:e.update(h,{scrollIntoView:!0,userEvent:"input.type"})}(e,s,i.indexOf(s+s+s)>-1,n):function(e,t,n,i){let s=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:eT.of(a.to+t.length),range:o.jT.range(a.anchor+t.length,a.head+t.length)};let l=nextChar(e.doc,a.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:t+n,from:a.head},effects:eT.of(a.head+t.length),range:o.jT.cursor(a.head+t.length)}:{range:s=a}});return s?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,s,a,n.before||eA.before);if(t==a&&closedBracketAt(e,e.selection.main.from))return function(e,t,n){let i=null,s=e.changeByRange(t=>t.empty&&nextChar(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:o.jT.cursor(t.head+n.length)}:i={range:t});return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,0,a)}return null}(e.state,i);return!!a&&(e.dispatch(a),!0)}),eN=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=config(e,e.selection.main.head).brackets||eA.brackets,i=null,s=e.changeByRange(t=>{if(t.empty){var s,a;let i;let l=(s=e.doc,a=t.head,i=s.sliceString(a-2,a),(0,o.nZ)((0,o.gm)(i,0))==i.length?i:i.slice(1));for(let i of n)if(i==l&&nextChar(e.doc,t.head)==closing((0,o.gm)(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:o.jT.cursor(t.head-i.length)}}return{range:i=t}});return i||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function closedBracketAt(e,t){let n=!1;return e.field(eO).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function nextChar(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,o.nZ)((0,o.gm)(n,0)))}function nodeStart(e,t){let n=(0,l.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function canStartStringAt(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=o.D0.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&i(e.sliceDoc(n-1,n))!=o.D0.Word)return n}return -1}let eD=[{key:"Ctrl-Space",run:e=>!!e.state.field(eg,!1)&&(e.dispatch({effects:el.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(eg,!1);return!!(t&&t.active.some(e=>0!=e.state))&&(e.dispatch({effects:eh.of(null)}),!0)}},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(eg,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(ec).defaultKeymap?[eD]:[]));let SelectedDiagnostic=class SelectedDiagnostic{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}};let LintState=class LintState{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,s=n.facet(e$).markerFilter;s&&(i=s(i));let o=a.p.set(i.map(e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?a.p.widget({widget:new DiagnosticWidget(e),diagnostic:e}).range(e.from):a.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to)),!0);return new LintState(o,t,findDiagnostic(o))}};function findDiagnostic(e,t=null,n=0){let i=null;return e.between(n,1e9,(e,n,{spec:s})=>{if(!t||s.diagnostic==t)return i=new SelectedDiagnostic(e,n,s.diagnostic),!1}),i}function hideTooltip(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(eM))||e.changes.touchesRange(n.from,n.to))}let eM=o.Py.define(),eL=o.Py.define(),eJ=o.Py.define(),eF=o.QQ.define({create:()=>new LintState(a.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),i=null;if(e.selected){let s=t.changes.mapPos(e.selected.from,1);i=findDiagnostic(n,e.selected.diagnostic,s)||findDiagnostic(n,null,s)}e=new LintState(n,e.panel,i)}for(let n of t.effects)n.is(eM)?e=LintState.init(n.value,e.panel,t.state):n.is(eL)?e=new LintState(e.diagnostics,n.value?LintPanel.open:null,e.selected):n.is(eJ)&&(e=new LintState(e.diagnostics,e.panel,n.value));return e},provide:e=>[a.mH.from(e,e=>e.panel),a.tk.decorations.from(e,e=>e.diagnostics)]}),ej=a.p.mark({class:"cm-lintRange cm-lintRange-active"}),closeLintPanel=e=>{let t=e.state.field(eF,!1);return!!t&&!!t.panel&&(e.dispatch({effects:eL.of(!1)}),!0)},ez=[{key:"Mod-Shift-m",run:e=>{var t,n;let i=e.state.field(eF,!1);i&&i.panel||e.dispatch({effects:(t=e.state,n=[eL.of(!0)],t.field(eF,!1)?n:n.concat(o.Py.appendConfig.of(eq)))});let s=(0,a.Sd)(e,LintPanel.open);return s&&s.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(eF,!1);if(!t)return!1;let n=e.state.selection.main,i=t.diagnostics.iter(n.to+1);return(!!i.value||!!(i=t.diagnostics.iter(0)).value&&(i.from!=n.from||i.to!=n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],e$=o.r$.define({combine:e=>Object.assign({sources:e.map(e=>e.source)},(0,o.BO)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function assignKeys(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function renderDiagnostic(e,t,n){var i;let s=n?assignKeys(t.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},crelt("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map((n,i)=>{let o=!1,click=i=>{if(i.preventDefault(),o)return;o=!0;let s=findDiagnostic(e.state.field(eF).diagnostics,t);s&&n.apply(e,s.from,s.to)},{name:a}=n,l=s[i]?a.indexOf(s[i]):-1,h=l<0?a:[a.slice(0,l),crelt("u",a.slice(l,l+1)),a.slice(l+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:click,onmousedown:click,"aria-label":` Action: ${a}${l<0?"":` (access key "${s[i]})"`}.`},h)}),t.source&&crelt("div",{class:"cm-diagnosticSource"},t.source))}let DiagnosticWidget=class DiagnosticWidget extends a.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}};let PanelItem=class PanelItem{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=renderDiagnostic(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}};let LintPanel=class LintPanel{constructor(e){this.view=e,this.items=[],this.list=crelt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)closeLintPanel(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],i=assignKeys(n.actions);for(let s=0;s{for(let t=0;tcloseLintPanel(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(eF).selected;if(!e)return -1;for(let t=0;t{let l=-1,h;for(let e=n;en&&(this.items.splice(n,l-n),i=!0)),t&&h.diagnostic==t.diagnostic?h.dom.hasAttribute("aria-selected")||(h.dom.setAttribute("aria-selected","true"),s=h):h.dom.hasAttribute("aria-selected")&&h.dom.removeAttribute("aria-selected"),n++});n({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function rm(){let t=e;e=t.nextSibling,t.remove()}for(let t of this.items)if(t.dom.parentNode==this.list){for(;e!=t.dom;)rm();e=t.dom.nextSibling}else this.list.insertBefore(t.dom,e);for(;e;)rm()}moveSelection(e){if(this.selectedIndex<0)return;let t=findDiagnostic(this.view.state.field(eF).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:eJ.of(t)})}static open(e){return new LintPanel(e)}};function underline(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}let eW=a.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});a.SJ;let eQ=o.Py.define(),eq=[eF,a.tk.decorations.compute([eF],e=>{let{selected:t,panel:n}=e.field(eF);return t&&n&&t.from!=t.to?a.p.set([ej.range(t.from,t.to)]):a.p.none}),(0,a.bF)(function(e,t,n){let{diagnostics:i}=e.state.field(eF),s=[],o=2e8,a=0;i.between(t-(n<0?1:0),t+(n>0?1:0),(e,i,{spec:l})=>{t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t{var t;return{dom:(t=e,crelt("ul",{class:"cm-tooltip-lint"},s.map(e=>renderDiagnostic(t,e,!1))))}}}:null},{hideOn:hideTooltip}),eW];var basicSetup=function(e){void 0===e&&(e={});var t,{crosshairCursor:n=!1}=e,i=[];!1!==e.closeBracketsKeymap&&(i=i.concat(eN)),!1!==e.defaultKeymap&&(i=i.concat(I)),!1!==e.searchKeymap&&(i=i.concat(en)),!1!==e.historyKeymap&&(i=i.concat(C)),!1!==e.foldKeymap&&(i=i.concat(l.e7)),!1!==e.completionKeymap&&(i=i.concat(eD)),!1!==e.lintKeymap&&(i=i.concat(ez));var s=[];if(!1!==e.lineNumbers&&s.push((0,a.Eu)()),!1!==e.highlightActiveLineGutter&&s.push((0,a.HQ)()),!1!==e.highlightSpecialChars&&s.push((0,a.AE)()),!1!==e.history&&s.push(function(e={}){return[y,m.of(e),a.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?k:"historyRedo"==e.inputType?x:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&s.push((0,l.mi)()),!1!==e.drawSelection&&s.push((0,a.Uw)()),!1!==e.dropCursor&&s.push((0,a.qr)()),!1!==e.allowMultipleSelections&&s.push(o.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&s.push((0,l.nY)()),!1!==e.syntaxHighlighting&&s.push((0,l.nF)(l.R_,{fallback:!0})),!1!==e.bracketMatching&&s.push((0,l.n$)()),!1!==e.closeBrackets&&s.push([eR,eO]),!1!==e.autocompletion&&s.push(function(e={}){return[eg,ec.of(e),em,eE,ey]}()),!1!==e.rectangularSelection&&s.push((0,a.Zs)()),!1!==n&&s.push((0,a.S2)()),!1!==e.highlightActiveLine&&s.push((0,a.ZO)()),!1!==e.highlightSelectionMatches){let e;s.push((e=[Q,W],t&&e.push(j.of(t)),e))}return e.tabSize&&"number"==typeof e.tabSize&&s.push(l.c.of(" ".repeat(e.tabSize))),s.concat([a.$f.of(i.flat())]).filter(Boolean)},e_=n(5524);let eH="#e06c75",eU="#abb2bf",eV="#7d8799",eG="#d19a66",eZ="#2c313a",eK="#282c34",eY="#353a42",eX="#528bff",e0=a.tk.theme({"&":{color:eU,backgroundColor:eK},".cm-content":{caretColor:eX},".cm-cursor, .cm-dropCursor":{borderLeftColor:eX},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:eU},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:eK,color:eV,border:"none"},".cm-activeLineGutter":{backgroundColor:eZ},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:eY},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:eY,borderBottomColor:eY},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:eZ,color:eU}}},{dark:!0}),e1=l.Qf.define([{tag:e_.pJ.keyword,color:"#c678dd"},{tag:[e_.pJ.name,e_.pJ.deleted,e_.pJ.character,e_.pJ.propertyName,e_.pJ.macroName],color:eH},{tag:[e_.pJ.function(e_.pJ.variableName),e_.pJ.labelName],color:"#61afef"},{tag:[e_.pJ.color,e_.pJ.constant(e_.pJ.name),e_.pJ.standard(e_.pJ.name)],color:eG},{tag:[e_.pJ.definition(e_.pJ.name),e_.pJ.separator],color:eU},{tag:[e_.pJ.typeName,e_.pJ.className,e_.pJ.number,e_.pJ.changed,e_.pJ.annotation,e_.pJ.modifier,e_.pJ.self,e_.pJ.namespace],color:"#e5c07b"},{tag:[e_.pJ.operator,e_.pJ.operatorKeyword,e_.pJ.url,e_.pJ.escape,e_.pJ.regexp,e_.pJ.link,e_.pJ.special(e_.pJ.string)],color:"#56b6c2"},{tag:[e_.pJ.meta,e_.pJ.comment],color:eV},{tag:e_.pJ.strong,fontWeight:"bold"},{tag:e_.pJ.emphasis,fontStyle:"italic"},{tag:e_.pJ.strikethrough,textDecoration:"line-through"},{tag:e_.pJ.link,color:eV,textDecoration:"underline"},{tag:e_.pJ.heading,fontWeight:"bold",color:eH},{tag:[e_.pJ.atom,e_.pJ.bool,e_.pJ.special(e_.pJ.variableName)],color:eG},{tag:[e_.pJ.processingInstruction,e_.pJ.string,e_.pJ.inserted],color:"#98c379"},{tag:e_.pJ.invalid,color:"#ffffff"}]),e2=[e0,(0,l.nF)(e1)];var e3=a.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),getDefaultExtensions=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:i=!1,theme:s="light",placeholder:l="",basicSetup:h=!0}=e,c=[];switch(t&&c.unshift(a.$f.of([B])),h&&("boolean"==typeof h?c.unshift(basicSetup()):c.unshift(basicSetup(h))),l&&c.unshift((0,a.W$)(l)),s){case"light":c.push(e3);break;case"dark":c.push(e2);break;case"none":break;default:c.push(s)}return!1===n&&c.push(a.tk.editable.of(!1)),i&&c.push(o.yy.readOnly.of(!0)),[...c]},getStatistics=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}),e5=o.q6.define(),e4=[],e6=n(5893),e9=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],e7=(0,s.forwardRef)((e,t)=>{var{className:n,value:l="",selection:h,extensions:c=[],onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,autoFocus:g,theme:m="light",height:y,minHeight:k,maxHeight:x,width:v,minWidth:S,maxWidth:b,basicSetup:w,placeholder:C,indentWithTab:A,editable:T,readOnly:P,root:O,initialState:I}=e,B=function(e,t){if(null==e)return{};var n,i,s={},o=Object.keys(e);for(i=0;i=0||(s[n]=e[n]);return s}(e,e9),R=(0,s.useRef)(null),{state:N,view:D,container:E}=function(e){var{value:t,selection:n,onChange:i,onStatistics:l,onCreateEditor:h,onUpdate:c,extensions:u=e4,autoFocus:f,theme:d="light",height:p=null,minHeight:g=null,maxHeight:m=null,width:y=null,minWidth:k=null,maxWidth:x=null,placeholder:v="",editable:S=!0,readOnly:b=!1,indentWithTab:w=!0,basicSetup:C=!0,root:A,initialState:T}=e,[P,O]=(0,s.useState)(),[I,B]=(0,s.useState)(),[R,N]=(0,s.useState)(),D=a.tk.theme({"&":{height:p,minHeight:g,maxHeight:m,width:y,minWidth:k,maxWidth:x},"& .cm-scroller":{height:"100% !important"}}),E=[a.tk.updateListener.of(e=>{e.docChanged&&"function"==typeof i&&!e.transactions.some(e=>e.annotation(e5))&&i(e.state.doc.toString(),e),l&&l(getStatistics(e))}),D,...getDefaultExtensions({theme:d,editable:S,readOnly:b,placeholder:v,indentWithTab:w,basicSetup:C})];return c&&"function"==typeof c&&E.push(a.tk.updateListener.of(c)),E=E.concat(u),(0,s.useEffect)(()=>{if(P&&!R){var e={doc:t,selection:n,extensions:E},i=T?o.yy.fromJSON(T.json,e,T.fields):o.yy.create(e);if(N(i),!I){var s=new a.tk({state:i,parent:P,root:A});B(s),h&&h(s,i)}}return()=>{I&&(N(void 0),B(void 0))}},[P,R]),(0,s.useEffect)(()=>O(e.container),[e.container]),(0,s.useEffect)(()=>()=>{I&&(I.destroy(),B(void 0))},[I]),(0,s.useEffect)(()=>{f&&I&&I.focus()},[f,I]),(0,s.useEffect)(()=>{I&&I.dispatch({effects:o.Py.reconfigure.of(E)})},[d,u,p,g,m,y,k,x,v,S,b,w,C,i,c]),(0,s.useEffect)(()=>{if(void 0!==t){var e=I?I.state.doc.toString():"";I&&t!==e&&I.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[e5.of(!0)]})}},[t,I]),{state:R,setState:N,view:I,setView:B,container:P,setContainer:O}}({container:R.current,root:O,value:l,autoFocus:g,theme:m,height:y,minHeight:k,maxHeight:x,width:v,minWidth:S,maxWidth:b,basicSetup:w,placeholder:C,indentWithTab:A,editable:T,readOnly:P,selection:h,onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,extensions:c,initialState:I});if((0,s.useImperativeHandle)(t,()=>({editor:R.current,state:N,view:D}),[R,E,N,D]),"string"!=typeof l)throw Error("value must be typeof string but got "+typeof l);var M="string"==typeof m?"cm-theme-"+m:"cm-theme";return(0,e6.jsx)("div",(0,i.Z)({ref:R,className:""+M+(n?" "+n:"")},B))});e7.displayName="CodeMirror";var e8=e7},6010:function(e,t,n){t.Z=function(){for(var e,t,n=0,i="";nt%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new Stack(e,[],t,n,n,0,[],0,i?new StackContext(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=65535&e,{parser:s}=this.p,o=s.dynamicPrecedence(i);if(o&&(this.score+=o),0==n){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(null===(t=this.p.parser.nodeSet.types[i])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(i,l)}storeNode(e,t,n,i=4,s=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t){e.buffer[i-2]=n;return}}}if(s&&this.pos!=n){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n,i){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:s}=this.p;(i>this.pos||t<=s.maxNode)&&(this.pos=i,s.stateFlag(e,1)||(this.reducePos=i)),this.pushState(e,n),this.shiftContext(t,n),t<=s.maxNode&&this.buffer.push(t,n,i,4)}else this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4)}apply(e,t,n,i){65536&e?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new Stack(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new SimulatedStack(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if((65536&n)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,s;i1&t&&e==i)||n.push(t[e],i)}t=n}let n=[];for(let e=0;e>19,i=65535&t,s=this.stack.length-3*n;if(s<0||0>e.getGoto(this.stack[s],i,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],explore=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let i=65535&t,s=this.stack.length-3*n;if(s>=0&&e.getGoto(this.stack[s],i,!1)>=0)return n<<19|65536|i}}else{let e=explore(t,i+1);if(null!=e)return e}})};return explore(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};let StackContext=class StackContext{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}};let SimulatedStack=class SimulatedStack{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}};let StackBufferCursor=class StackBufferCursor{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new StackBufferCursor(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new StackBufferCursor(this.stack,this.pos,this.index)}};function decodeArray(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,s=0;i=92&&t--,t>=34&&t--;let s=t-32;if(s>=46&&(s-=46,n=!0),o+=s,n)break;o*=46}n?n[s++]=o:n=new t(o)}return n}let CachedToken=class CachedToken{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}};let o=new CachedToken;let InputStream=class InputStream{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=o,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,s=this.pos+e;for(;sn.to:s>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];s+=e.from-n.to,n=e}return s}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t=this.chunk2Pos&&nt.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=o,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}};let TokenGroup=class TokenGroup{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;readToken(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};function readToken(e,t,n,i,s,o){let a=0,l=1<0){let n=e[i];if(h.allows(n)&&(-1==t.token.value||t.token.value==n||function(e,t,n,i){let s=findOffset(n,i,t);return s<0||findOffset(n,i,e)c&&65535==e[n+3*u-3]&&65535==e[n+3*u-3]){a=e[n+3*u-1];continue}for(;c>1,o=n+s+(s<<1),l=e[o],h=e[o+1]||65536;if(i=h)c=s+1;else{a=e[o+2],t.advance();continue t}}break}}function findOffset(e,t,n){for(let i=t,s;65535!=(s=e[i]);i++)if(s==n)return i-t;return -1}TokenGroup.prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1,(class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?decodeArray(e):e}token(e,t){let n=e.pos,i=0;for(;;){let n=e.next<0,s=e.resolveOffset(1,1);if(readToken(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!n&&i++,null==s)break;e.reset(s,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}).prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;let a=void 0!==s&&s.env&&/\bparse\b/.test(s.env.LOG),l=null;function cutAt(e,t,n){let s=e.cursor(i.vj.IncludeAnonymous);for(s.moveTo(t);;)if(!(n<0?s.childBefore(t):s.childAfter(t)))for(;;){if((n<0?s.tot)&&!s.type.isError)return n<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(e.length,Math.max(s.from+1,t+25));if(n<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return n<0?0:e.length}}let FragmentCursor=class FragmentCursor{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?cutAt(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?cutAt(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(o instanceof i.mp){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+o.length}}};let TokenCache=class TokenCache{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new CachedToken)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:s}=i,o=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let i=0;ic.end+25&&(l=Math.max(c.lookAhead,l)),0!=c.value)){let i=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!h.extend&&(n=c,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),n||e.pos!=this.stream.end||((n=new CachedToken).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new CachedToken,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i=0&&n.p.parser.dialect.allows(s>>1)){(1&s)==0?e.value=s>>1:e.extended=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let t=0;t4*e.bufferLength?new FragmentCursor(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,s=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oi)s.push(a);else{if(this.advanceStack(a,s,n))continue;e||(e=[],t=[]),e.push(a);let i=this.tokens.getMainToken(a);t.push(i.value,i.end)}break}}if(!s.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,s);if(n)return a&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(s.length>e)for(s.sort((e,t)=>t.score-e.score);s.length>e;)s.pop();s.some(e=>e.reducePos>i)&&this.recovering--}else if(s.length>1){n:for(let e=0;e500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)s.splice(n--,1);else{s.splice(e--,1);continue n}}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let h=this.fragments.nodeAt(s);h;){let s=this.parser.nodeSet.types[h.type.id]==h.type?o.getGoto(e.state,h.type.id):-1;if(s>-1&&h.length&&(!t||(h.prop(i.md.contextHash)||0)==n))return e.useNode(h,s),a&&console.log(l+this.stackID(e)+` (via reuse of ${o.getName(h.type.id)})`),!0;if(!(h instanceof i.mp)||0==h.children.length||h.positions[0]>0)break;let c=h.children[0];if(c instanceof i.mp&&0==h.positions[0])h=c;else break}}let h=o.stateSlot(e.state,4);if(h>0)return e.reduce(h),a&&console.log(l+this.stackID(e)+` (via always-reduce ${o.getName(65535&h)})`),!0;if(e.stack.length>=9e3)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let i=0;is?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return pushStackDedup(e,t),!0}}runRecovery(e,t,n){let i=null,s=!1;for(let o=0;o ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),a&&console.log(u+this.stackID(l)+" (restarted)"),this.advanceFully(l,n))))continue;let f=l.split(),d=u;for(let e=0;f.forceReduce()&&e<10&&(a&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));e++)a&&(d=this.stackID(f)+" -> ");for(let e of l.recoverByInsert(h))a&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>l.pos?(c==l.pos&&(c++,h=0),l.recoverByDelete(h,c),a&&console.log(u+this.stackID(l)+` (via recover-delete ${this.parser.getName(h)})`),pushStackDedup(l,n)):(!i||i.scoree.topRules[t][1]),s=[];for(let e=0;e=0)setProp(i,e,t[n++]);else{let s=t[n+-i];for(let o=-i;o>0;o--)setProp(t[n++],e,s);n++}}}this.nodeSet=new i.Lj(t.map((t,o)=>i.Jq.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:s[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=i.L3;let o=decodeArray(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new TokenGroup(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new Parse(this,e,t,n);for(let s of this.wrappers)i=s(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return -1;for(let s=i[t+1];;){let t=i[s++],o=1&t,a=i[s++];if(o&&n)return a;for(let n=s+(t>>1);s0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==i;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=pair(this.data,n+2);else break}i=t(pair(this.data,n+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=pair(this.data,n+2);else break}if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(LRParser.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let s=e.specializers.find(e=>e.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[i]=getSpecializer(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let i=null;for(let e=0;ee.external(n,i)<<1|t}return e.get}var h=n(5524);let c=(0,h.Gv)({String:h.pJ.string,Number:h.pJ.number,"True False":h.pJ.bool,PropertyName:h.pJ.propertyName,Null:h.pJ.null,",":h.pJ.separator,"[ ]":h.pJ.squareBracket,"{ }":h.pJ.brace}),u=LRParser.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[c],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var f=n(9119);let d=f.qp.define({name:"json",parser:u.configure({props:[f.uj.add({Object:(0,f.tC)({except:/^\s*\}/}),Array:(0,f.tC)({except:/^\s*\]/})}),f.x0.add({"Object Array":f.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function json(){return new f.ri(d)}},9119:function(e,t,n){n.d(t,{Dv:function(){return foldInside},Gn:function(){return IndentContext},K0:function(){return getIndentation},Qf:function(){return HighlightStyle},R_:function(){return D},SS:function(){return indentString},Um:function(){return matchBrackets},c:function(){return y},e7:function(){return C},mi:function(){return foldGutter},n$:function(){return bracketMatching},nF:function(){return syntaxHighlighting},nY:function(){return indentOnInput},qp:function(){return LRLanguage},qz:function(){return syntaxTree},ri:function(){return LanguageSupport},tC:function(){return continuedIndent},uj:function(){return k},x0:function(){return v},y1:function(){return getIndentUnit}});var i,s=n(1113),o=n(8120),a=n(7421),l=n(5524),h=n(8699);let c=new s.md,u=new s.md;let Language=class Language{constructor(e,t,n=[],i=""){this.data=e,this.name=i,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=t,this.extension=[g.of(this),o.yy.languageData.of((e,t,n)=>{let i=topNodeAt(e,t,n),s=i.type.prop(c);if(!s)return[];let o=e.facet(s),a=i.type.prop(u);if(a){let s=i.resolve(t-i.from,n);for(let t of a)if(t.test(s,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t,n=-1){return topNodeAt(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(g);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],explore=(e,t)=>{if(e.prop(c)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(s.md.mounted);if(i){if(i.tree.prop(c)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(explore(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.concat(t):void 0}));return new LRLanguage(n,e.parser.configure({props:[c.add(e=>e.isTop?n:void 0)]}),e.name)}configure(e,t){return new LRLanguage(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function syntaxTree(e){let t=e.field(Language.state,!1);return t?t.tree:s.mp.empty}let DocInput=class DocInput{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}};let f=null;let ParseContext=class ParseContext{constructor(e,t,n=[],i,s,o,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new ParseContext(e,t,[],s.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=s.mp.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(s.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=f;f=this;try{return e()}finally{f=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=cutFragments(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:o,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,i,s)=>t.push({fromA:e,toA:n,fromB:i,toB:s})),n=s.i9.applyChanges(n,t),i=s.mp.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length)for(let t of(l=[],this.skipped)){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);ne.from&&(this.fragments=cutFragments(this.fragments,n,i),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends s._b{createParse(t,n,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let t=f;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new s.mp(s.Jq.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return f}};function cutFragments(e,t,n){return s.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}let LanguageState=class LanguageState{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new LanguageState(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=ParseContext.create(e.facet(g).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new LanguageState(n)}};Language.state=o.QQ.define({create:LanguageState.init,update(e,t){for(let e of t.effects)if(e.is(Language.setState))return e.value;return t.startState.facet(g)!=t.state.facet(g)?LanguageState.init(t.state):e.apply(t)}});let requestIdle=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(requestIdle=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let d="undefined"!=typeof navigator&&(null===(i=navigator.scheduling)||void 0===i?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,p=a.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Language.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Language.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=requestIdle(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,l=s.context.work(()=>d&&d()||Date.now()>o,i+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,a.OO)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),g=o.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[Language.state,p,a.tk.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});let LanguageSupport=class LanguageSupport{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};let m=o.r$.define(),y=o.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function getIndentUnit(e){let t=e.facet(y);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function indentString(e,t){let n="",i=e.tabSize,s=e.facet(y)[0];if(" "==s){for(;t>=i;)n+=" ",t-=i;s=" "}for(let e=0;e=t?function(e,t,n){let i=t.resolveStack(n),s=i.node.enterUnfinishedNodesBefore(n);if(s!=i.node){let e=[];for(let t=s;t!=i.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)i={node:e[t],next:i}}return indentFor(i,e,n)}(e,n,t):null}let IndentContext=class IndentContext{constructor(e,t={}){this.state=e,this.options=t,this.unit=getIndentUnit(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return null!=i&&i>=n.from&&i<=n.to?s&&i==e?{text:"",from:e}:(t<0?i-1&&(s+=o-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return(0,o.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let e=s(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}};let k=new s.md;function indentFor(e,t,n){for(let i=e;i;i=i.next){let e=function(e){let t=e.type.prop(k);if(t)return t;let n=e.firstChild,i;if(n&&(i=n.type.prop(s.md.closedBy))){let t=e.lastChild,n=t&&i.indexOf(t.name)>-1;return e=>(function(e,t,n,i,s){let o=e.textAfter,a=o.match(/^\s*/)[0].length,l=i&&o.slice(a,a+i.length)==i||s==e.pos+a,h=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let s=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==s||s<=o.from?o.to:Math.min(o.to,s);for(let e=n.to;;){let s=t.childAfter(e);if(!s||s==i)return null;if(!s.type.isSkipped)return s.from{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}function indentOnInput(){return o.yy.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:i}=e.newSelection.main,s=n.lineAt(i);if(i>s.from+200)return e;let o=n.sliceString(s.from,i);if(!t.some(e=>e.test(o)))return e;let{state:a}=e,l=-1,h=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==l)continue;l=t.from;let n=getIndentation(a,t.from);if(null==n)continue;let i=/^\s*/.exec(t.text)[0],s=indentString(a,n);i!=s&&h.push({from:t.from,to:t.from+i.length,insert:s})}return h.length?[e,{changes:h,sequential:!0}]:e})}let x=o.r$.define(),v=new s.md;function foldInside(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&s.from=t&&i.to>n&&(o=i)}}return o}(e,t,n)}function mapRange(e,t){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return n>=i?void 0:{from:n,to:i}}let S=o.Py.define({map:mapRange}),b=o.Py.define({map:mapRange});function selectedLines(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}let w=o.QQ.define({create:()=>a.p.none,update(e,t){for(let n of(e=e.map(t.changes),t.effects))if(n.is(S)&&!function(e,t,n){let i=!1;return e.between(t,t,(e,s)=>{e==t&&s==n&&(i=!0)}),i}(e,n.value.from,n.value.to)){let{preparePlaceholder:i}=t.state.facet(T),s=i?a.p.replace({widget:new PreparedFoldWidget(i(t.state,n.value))}):P;e=e.update({add:[s.range(n.value.from,n.value.to)]})}else n.is(b)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:i}=t.selection.main;e.between(i,i,(e,t)=>{ei&&(n=!0)}),n&&(e=e.update({filterFrom:i,filterTo:i,filter:(e,t)=>t<=i||e>=i}))}return e},provide:e=>a.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!s||s.from>e)&&(s={from:e,to:t})}),s}function maybeEnable(e,t){return e.field(w,!1)?t:t.concat(o.Py.appendConfig.of(codeFolding()))}function announceFold(e,t,n=!0){let i=e.state.doc.lineAt(t.from).number,s=e.state.doc.lineAt(t.to).number;return a.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${s}.`)}let C=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of selectedLines(e)){let n=foldable(e.state,t.from,t.to);if(n)return e.dispatch({effects:maybeEnable(e.state,[S.of(n),announceFold(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(w,!1))return!1;let t=[];for(let n of selectedLines(e)){let i=findFold(e.state,n.from,n.to);i&&t.push(b.of(i),announceFold(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let i=0;i{let t=e.state.field(w,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(b.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],A={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},T=o.r$.define({combine:e=>(0,o.BO)(e,A)});function codeFolding(e){let t=[w,I];return e&&t.push(T.of(e)),t}function widgetToDOM(e,t){let{state:n}=e,i=n.facet(T),onclick=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),i=findFold(e.state,n.from,n.to);i&&e.dispatch({effects:b.of(i)}),t.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(e,onclick,t);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=onclick,s}let P=a.p.replace({widget:new class extends a.l9{toDOM(e){return widgetToDOM(e,null)}}});let PreparedFoldWidget=class PreparedFoldWidget extends a.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return widgetToDOM(e,this.value)}};let O={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};let FoldMarker=class FoldMarker extends a.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}};function foldGutter(e={}){let t=Object.assign(Object.assign({},O),e),n=new FoldMarker(t,!0),i=new FoldMarker(t,!1),s=a.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(g)!=e.state.facet(g)||e.startState.field(w,!1)!=e.state.field(w,!1)||syntaxTree(e.startState)!=syntaxTree(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.f_;for(let s of e.viewportLineBlocks){let o=findFold(e.state,s.from,s.to)?i:foldable(e.state,s.from,s.to)?n:null;o&&t.add(s.from,s.from,o)}return t.finish()}}),{domEventHandlers:l}=t;return[s,(0,a.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(s))||void 0===t?void 0:t.markers)||o.Xs.empty},initialSpacer:()=>new FoldMarker(t,!1),domEventHandlers:Object.assign(Object.assign({},l),{click:(e,t,n)=>{if(l.click&&l.click(e,t,n))return!0;let i=findFold(e.state,t.from,t.to);if(i)return e.dispatch({effects:b.of(i)}),!0;let s=foldable(e.state,t.from,t.to);return!!s&&(e.dispatch({effects:S.of(s)}),!0)}})}),codeFolding()]}let I=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});let HighlightStyle=class HighlightStyle{constructor(e,t){let n;function def(e){let t=h.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let i="string"==typeof t.all?t.all:t.all?def(t.all):void 0,s=t.scope;this.scope=s instanceof Language?e=>e.prop(c)==s.data:s?e=>e==s:void 0,this.style=(0,l.QR)(e.map(e=>({tag:e.tag,class:e.class||def(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new h.V(n):null,this.themeType=t.themeType}static define(e,t){return new HighlightStyle(e,t||{})}};let B=o.r$.define(),R=o.r$.define({combine:e=>e.length?[e[0]]:null});function getHighlighters(e){let t=e.facet(B);return t.length?t:e.facet(R)}function syntaxHighlighting(e,t){let n=[N],i;return e instanceof HighlightStyle&&(e.module&&n.push(a.tk.styleModule.of(e.module)),i=e.themeType),(null==t?void 0:t.fallback)?n.push(R.of(e)):i?n.push(B.computeN([a.tk.darkTheme],t=>t.facet(a.tk.darkTheme)==("dark"==i)?[e]:[])):n.push(B.of(e)),n}let N=o.Wl.high(a.lg.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=syntaxTree(e.state),this.decorations=this.buildDeco(e,getHighlighters(e.state))}update(e){let t=syntaxTree(e.state),n=getHighlighters(e.state),i=n!=getHighlighters(e.startState);t.length{n.add(e,t,this.markCache[i]||(this.markCache[i]=a.p.mark({class:i})))},i,s);return n.finish()}},{decorations:e=>e.decorations})),D=HighlightStyle.define([{tag:l.pJ.meta,color:"#404740"},{tag:l.pJ.link,textDecoration:"underline"},{tag:l.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.pJ.emphasis,fontStyle:"italic"},{tag:l.pJ.strong,fontWeight:"bold"},{tag:l.pJ.strikethrough,textDecoration:"line-through"},{tag:l.pJ.keyword,color:"#708"},{tag:[l.pJ.atom,l.pJ.bool,l.pJ.url,l.pJ.contentSeparator,l.pJ.labelName],color:"#219"},{tag:[l.pJ.literal,l.pJ.inserted],color:"#164"},{tag:[l.pJ.string,l.pJ.deleted],color:"#a11"},{tag:[l.pJ.regexp,l.pJ.escape,l.pJ.special(l.pJ.string)],color:"#e40"},{tag:l.pJ.definition(l.pJ.variableName),color:"#00f"},{tag:l.pJ.local(l.pJ.variableName),color:"#30a"},{tag:[l.pJ.typeName,l.pJ.namespace],color:"#085"},{tag:l.pJ.className,color:"#167"},{tag:[l.pJ.special(l.pJ.variableName),l.pJ.macroName],color:"#256"},{tag:l.pJ.definition(l.pJ.propertyName),color:"#00c"},{tag:l.pJ.comment,color:"#940"},{tag:l.pJ.invalid,color:"#f00"}]),E=a.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),M="()[]{}",L=o.r$.define({combine:e=>(0,o.BO)(e,{afterCursor:!0,brackets:M,maxScanDistance:1e4,renderMatch:defaultRenderMatch})}),J=a.p.mark({class:"cm-matchingBracket"}),F=a.p.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(e){let t=[],n=e.matched?J:F;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}let j=o.QQ.define({create:()=>a.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(L);for(let e of t.state.selection.ranges){if(!e.empty)continue;let s=matchBrackets(t.state,e.head,-1,i)||e.head>0&&matchBrackets(t.state,e.head-1,1,i)||i.afterCursor&&(matchBrackets(t.state,e.head,1,i)||e.heada.tk.decorations.from(e)}),z=[j,E];function bracketMatching(e={}){return[L.of(e),z]}let $=new s.md;function matchingNodes(e,t,n){let i=e.prop(t<0?s.md.openedBy:s.md.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function findHandle(e){let t=e.type.prop($);return t?t(e.node):e}function matchBrackets(e,t,n,i={}){let s=i.maxScanDistance||1e4,o=i.brackets||M,a=syntaxTree(e),l=a.resolveInner(t,n);for(let e=l;e;e=e.parent){let i=matchingNodes(e.type,n,o);if(i&&e.from0?t>=s.from&&ts.from&&t<=s.to))return function(e,t,n,i,s,o,a){let l=i.parent,h={from:s.from,to:s.to},c=0,u=null==l?void 0:l.cursor();if(u&&(n<0?u.childBefore(i.from):u.childAfter(i.to)))do if(n<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;n<0&&(e+=o.length);let l=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0)&&i.resolveInner(l+e,1).type==s){if(t%2==0==n>0)f++;else{if(1==f)return{start:c,end:{from:l+e,to:l+e+1},matched:t>>1==h>>1};f--}}}n>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,l.type,s,o)}let W=Object.create(null),Q=[s.Jq.none],q=[],_=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])_[e]=function(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let i=e[n]||l.pJ[n];i?"function"==typeof i?t.length?t=t.map(i):warnForPart(n,`Modifier ${n} used at start of tag`):t.length?warnForPart(n,`Tag ${n} used as modifier`):t=Array.isArray(i)?i:[i]:warnForPart(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let i=t.replace(/ /g,"_"),o=s.Jq.define({id:Q.length,name:i,props:[(0,l.Gv)({[i]:n})]});return Q.push(o),o.id}(W,t);function warnForPart(e,t){q.indexOf(e)>-1||(q.push(e),console.warn(t))}},8120:function(e,t,n){let i;n.d(t,{BO:function(){return combineConfig},D0:function(){return b},Gz:function(){return findColumn},IS:function(){return countColumn},Py:function(){return StateEffect},QQ:function(){return StateField},Wl:function(){return d},Xs:function(){return RangeSet},YW:function(){return Transaction},as:function(){return ChangeSet},bg:function(){return fromCodePoint},cp:function(){return findClusterBreak},f_:function(){return RangeSetBuilder},gc:function(){return h},gm:function(){return codePointAt},jT:function(){return EditorSelection},n0:function(){return ChangeDesc},nZ:function(){return codePointSize},q6:function(){return Annotation},r$:function(){return Facet},uU:function(){return RangeValue},xv:function(){return Text},yy:function(){return EditorState}});let Text=class Text{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),TextNode.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),TextNode.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new RawTextCursor(this),s=new RawTextCursor(e);for(let e=t,o=t;;){if(i.next(e),s.next(e),e=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new RawTextCursor(this,e)}iterRange(e,t=this.length){return new PartialTextCursor(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new LineCursor(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new TextLeaf(e):TextNode.from(TextLeaf.split(e,[])):Text.empty}};let TextLeaf=class TextLeaf extends Text{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((t?n:a)>=e)return new Line(i,a,n,o);i=a+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new TextLeaf(appendText(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=appendText(s.text,e.text.slice(),0,s.length);if(t.length<=32)n.push(new TextLeaf(t,e.length+s.length));else{let e=t.length>>1;n.push(new TextLeaf(t.slice(0,e)),new TextLeaf(t.slice(e)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof TextLeaf))return super.replace(e,t,n);let i=appendText(this.text,appendText(n.text,appendText(this.text,[""],0,e)),t),s=this.length+n.length-(t-e);return i.length<=32?new TextLeaf(i,s):TextNode.from(TextLeaf.split(i,[]),s)}sliceString(e,t=this.length,n="\n"){let i="";for(let s=0,o=0;s<=t&&oe&&o&&(i+=n),es&&(i+=a.slice(Math.max(0,e-s),t-s)),s=l+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let s of e)n.push(s),i+=s.length+1,32==n.length&&(t.push(new TextLeaf(n,i)),n=[],i=-1);return i>-1&&t.push(new TextLeaf(n,i)),t}};let TextNode=class TextNode extends Text{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,i);i=a+1,n=l+1}}decompose(e,t,n,i){for(let s=0,o=0;o<=t&&s=o){let s=i&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!s?n.push(a):a.decompose(e-o,t-o,n,s)}o=l+1}}replace(e,t,n){if(n.lines=s&&t<=a){let l=o.replace(e-s,t-s,n),h=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>h>>6){let s=this.children.slice();return s[i]=l,new TextNode(s,this.length-(t-e)+n.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let s=0,o=0;se&&s&&(i+=n),eo&&(i+=a.sliceString(e-o,t-o,n)),o=l+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof TextNode))return 0;let n=0,[i,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,s+=t){if(i==o||s==a)return n;let l=this.children[i],h=e.children[s];if(l!=h)return n+l.scanIdentical(h,t);n+=l.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new TextLeaf(n,t)}let i=Math.max(32,n>>5),s=i<<1,o=i>>1,a=[],l=0,h=-1,c=[];function flush(){0!=l&&(a.push(1==c.length?c[0]:TextNode.from(c,h)),h=-1,l=c.length=0)}for(let t of e)!function add(e){let t;if(e.lines>s&&e instanceof TextNode)for(let t of e.children)add(t);else e.lines>o&&(l>o||!l)?(flush(),a.push(e)):e instanceof TextLeaf&&l&&(t=c[c.length-1])instanceof TextLeaf&&e.lines+t.lines<=32?(l+=e.lines,h+=e.length+1,c[c.length-1]=new TextLeaf(t.text.concat(e.text),t.length+1+e.length)):(l+e.lines>i&&flush(),l+=e.lines,h+=e.length+1,c.push(e))}(t);return flush(),1==a.length?a[0]:new TextNode(a,t)}};function appendText(e,t,n=0,i=1e9){for(let s=0,o=0,a=!0;o=n&&(h>i&&(l=l.slice(0,i-s)),s0?1:(e instanceof TextLeaf?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],o=s>>1,a=i instanceof TextLeaf?i.text.length:i.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof TextLeaf){let s=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,s.length>Math.max(0,e))return this.value=0==e?s:t>0?s.slice(e):s.slice(0,s.length-e),this;e-=s.length}else{let s=i.children[o+(t<0?-1:0)];e>s.length?(e-=s.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(s),this.offsets.push(t>0?1:(s instanceof TextLeaf?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}};let PartialTextCursor=class PartialTextCursor{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new RawTextCursor(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}};let LineCursor=class LineCursor{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}};"undefined"!=typeof Symbol&&(Text.prototype[Symbol.iterator]=function(){return this.iter()},RawTextCursor.prototype[Symbol.iterator]=PartialTextCursor.prototype[Symbol.iterator]=LineCursor.prototype[Symbol.iterator]=function(){return this});let Line=class Line{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}};let s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e=127462&&e<=127487}function findClusterBreak(e,t,n=!0,i=!0){return(n?nextClusterBreak:function(e,t,n){for(;t>0;){let i=nextClusterBreak(e,t-2,n);if(ie)return s[t-1]<=e;return!1}(o))t+=codePointSize(o),i=o;else if(isRegionalIndicator(o)){let n=0,i=t-2;for(;i>=0&&isRegionalIndicator(codePointAt(e,i));)n++,i-=2;if(n%2==0)break;t+=2}else break}return t}function surrogateLow(e){return e>=56320&&e<57344}function surrogateHigh(e){return e>=55296&&e<56320}function codePointAt(e,t){let n=e.charCodeAt(t);if(!surrogateHigh(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return surrogateLow(i)?(n-55296<<10)+(i-56320)+65536:n}function fromCodePoint(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function codePointSize(e){return e<65536?1:2}let o=/\r\n?|\n/;var a,l,h=((a=h||(h={}))[a.Simple=0]="Simple",a[a.TrackDel=1]="TrackDel",a[a.TrackBefore=2]="TrackBefore",a[a.TrackAfter=3]="TrackAfter",a);let ChangeDesc=class ChangeDesc{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return s+(e-i);s+=a}else{if(n!=h.Simple&&c>=e&&(n==h.TrackDel&&ie||n==h.TrackBefore&&ie))return null;if(c>e||c==e&&t<0&&!a)return e==i||t<0?s:s+l;s+=l}i=c}if(e>i)throw RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&a>=e)return!(it)||"cover";i=a}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new ChangeDesc(e)}static create(e){return new ChangeDesc(e)}};let ChangeSet=class ChangeSet extends ChangeDesc{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return iterChanges(this,(t,n,i,s,o)=>e=e.replace(i,i+(n-t),o),!1),e}mapDesc(e,t=!1){return mapSet(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,s=0;i=0){t[i]=a,t[i+1]=o;let l=i>>1;for(;n.length0&&addInsert(n,t,s.text),s.forward(e),a+=e}let h=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let i=[],s=[],a=0,l=null;function flush(e=!1){if(!e&&!i.length)return;ah||l<0||h>t)throw RangeError(`Invalid change range ${l} to ${h} (in doc of length ${t})`);let u=c?"string"==typeof c?Text.of(c.split(n||o)):c:Text.empty,f=u.length;if(l==h&&0==f)return;la&&addSection(i,l-a,-1),addSection(i,h-l,f),addInsert(s,i,u),a=h}}(e),flush(!l),l}static empty(e){return new ChangeSet(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==s.length)t.push(s[0],0);else{for(;n.length=0&&n<=0&&n==e[s+1]?e[s]+=t:0==t&&0==e[s]?e[s+1]+=n:i?(e[s]+=t,e[s+1]+=n):e.push(t,n)}function addInsert(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!n&&a!=e.sections.length&&!(e.sections[a+1]<0);)l=e.sections[a++],h=e.sections[a++];t(s,c,o,u,f),s=c,o=u}}}function mapSet(e,t,n,i=!1){let s=[],o=i?[]:null,a=new SectionIter(e),l=new SectionIter(t);for(let e=-1;;)if(-1==a.ins&&-1==l.ins){let e=Math.min(a.len,l.len);addSection(s,e,-1),a.forward(e),l.forward(e)}else if(l.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(l.len=0&&e=0){let t=0,n=a.len;for(;n;)if(-1==l.ins){let e=Math.min(n,l.len);t+=e,n-=e,l.forward(e)}else if(0==l.ins&&l.lent||a.ins>=0&&a.len>t)&&(e||i.length>n),o.forward2(t),a.forward(t)}}else addSection(i,0,a.ins,e),s&&addInsert(s,i,a.text),a.next()}}let SectionIter=class SectionIter{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Text.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Text.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}};let SelectionRange=class SelectionRange{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new SelectionRange(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return EditorSelection.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return EditorSelection.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return EditorSelection.range(e.anchor,e.head)}static create(e,t,n){return new SelectionRange(e,t,n)}};let EditorSelection=class EditorSelection{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:EditorSelection.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new EditorSelection(e.ranges.map(e=>SelectionRange.fromJSON(e)),e.main)}static single(e,t=e){return new EditorSelection([EditorSelection.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,i=0;ie?8:0)|s)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;ni.head?EditorSelection.range(a,o):EditorSelection.range(o,a))}}return new EditorSelection(e,t)}};function checkSelection(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let c=0;let Facet=class Facet{constructor(e,t,n,i,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=c++,this.default=e([]),this.extensions="function"==typeof s?s(this):s}get reader(){return this}static define(e={}){return new Facet(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:sameArray),!!e.static,e.enables)}of(e){return new FacetProvider([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new FacetProvider(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new FacetProvider(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}};function sameArray(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}let FacetProvider=class FacetProvider{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=c++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,s=this.id,o=e[s]>>1,a=2==this.type,l=!1,h=!1,c=[];for(let n of this.dependencies)"doc"==n?l=!0:"selection"==n?h=!0:((null!==(t=e[n.id])&&void 0!==t?t:1)&1)==0&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(l&&t.docChanged||h&&(t.docChanged||t.selection)||ensureAll(e,c)){let t=n(e);if(a?!compareArray(t,e.values[o],i):!i(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let l,h=t.config.address[s];if(null!=h){let s=getAddr(t,h);if(this.dependencies.every(n=>n instanceof Facet?t.facet(n)===e.facet(n):!(n instanceof StateField)||t.field(n,!1)==e.field(n,!1))||(a?compareArray(l=n(e),s,i):i(l=n(e),s)))return e.values[o]=s,0}else l=n(e);return e.values[o]=l,1}}}};function compareArray(e,t,n){if(e.length!=t.length)return!1;for(let i=0;ie===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(u).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],s=this.updateF(i,n);return this.compareF(i,s)?0:(e.values[t]=s,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,u.of({field:this,create:e})]}get extension(){return this}};let f={lowest:4,low:3,default:2,high:1,highest:0};function prec(e){return t=>new PrecExtension(t,e)}let d={highest:prec(f.highest),high:prec(f.high),default:prec(f.default),low:prec(f.low),lowest:prec(f.lowest)};let PrecExtension=class PrecExtension{constructor(e,t){this.inner=e,this.prec=t}};let Compartment=class Compartment{of(e){return new CompartmentInstance(this,e)}reconfigure(e){return Compartment.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}};let CompartmentInstance=class CompartmentInstance{constructor(e,t){this.compartment=e,this.inner=t}};let Configuration=class Configuration{constructor(e,t,n,i,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i,s,o=[],a=Object.create(null),l=new Map;for(let n of(i=[[],[],[],[],[]],s=new Map,!function inner(e,n){let o=s.get(e);if(null!=o){if(o<=n)return;let t=i[o].indexOf(e);t>-1&&i[o].splice(t,1),e instanceof CompartmentInstance&&l.delete(e.compartment)}if(s.set(e,n),Array.isArray(e))for(let t of e)inner(t,n);else if(e instanceof CompartmentInstance){if(l.has(e.compartment))throw RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;l.set(e.compartment,i),inner(i,n)}else if(e instanceof PrecExtension)inner(e.inner,e.prec);else if(e instanceof StateField)i[n].push(e),e.provides&&inner(e.provides,n);else if(e instanceof FacetProvider)i[n].push(e),e.facet.extensions&&inner(e.facet.extensions,f.default);else{let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);inner(t,n)}}(e,f.default),i.reduce((e,t)=>e.concat(t))))n instanceof StateField?o.push(n):(a[n.facet.id]||(a[n.facet.id]=[])).push(n);let h=Object.create(null),c=[],u=[];for(let e of o)h[e.id]=u.length<<1,u.push(t=>e.slot(t));let d=null==n?void 0:n.config.facets;for(let e in a){let t=a[e],i=t[0].facet,s=d&&d[e]||[];if(t.every(e=>0==e.type)){if(h[i.id]=c.length<<1|1,sameArray(s,t))c.push(n.facet(i));else{let e=i.combine(t.map(e=>e.value));c.push(n&&i.compare(e,n.facet(i))?n.facet(i):e)}}else{for(let e of t)0==e.type?(h[e.id]=c.length<<1|1,c.push(e.value)):(h[e.id]=u.length<<1,u.push(t=>e.dynamicSlot(t)));h[i.id]=u.length<<1,u.push(e=>(function(e,t,n){let i=n.map(t=>e[t.id]),s=n.map(e=>e.type),o=i.filter(e=>!(1&e)),a=e[t.id]>>1;function get(e){let n=[];for(let t=0;te(h));return new Configuration(e,l,p,h,c,a)}};function ensureAddr(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let s=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|s}function getAddr(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let p=Facet.define(),g=Facet.define({combine:e=>e.some(e=>e),static:!0}),m=Facet.define({combine:e=>e.length?e[0]:void 0,static:!0}),y=Facet.define(),k=Facet.define(),x=Facet.define(),v=Facet.define({combine:e=>!!e.length&&e[0]});let Annotation=class Annotation{constructor(e,t){this.type=e,this.value=t}static define(){return new AnnotationType}};let AnnotationType=class AnnotationType{of(e){return new Annotation(this,e)}};let StateEffectType=class StateEffectType{constructor(e){this.map=e}of(e){return new StateEffect(this,e)}};let StateEffect=class StateEffect{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new StateEffect(this.type,t)}is(e){return this.type==e}static define(e={}){return new StateEffectType(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}};StateEffect.reconfigure=StateEffect.define(),StateEffect.appendConfig=StateEffect.define();let Transaction=class Transaction{constructor(e,t,n,i,s,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,n&&checkSelection(n,t.newLength),s.some(e=>e.type==Transaction.time)||(this.annotations=s.concat(Transaction.time.of(Date.now())))}static create(e,t,n,i,s,o){return new Transaction(e,t,n,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Transaction.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}};function mergeTransaction(e,t,n){var i;let s,o,a;return n?(s=t.changes,o=ChangeSet.empty(t.changes.length),a=e.changes.compose(t.changes)):(s=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(s)),{changes:a,selection:t.selection?t.selection.map(o):null===(i=e.selection)||void 0===i?void 0:i.map(s),effects:StateEffect.mapEffects(e.effects,s).concat(StateEffect.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function resolveTransactionInner(e,t,n){let i=t.selection,s=asArray(t.annotations);return t.userEvent&&(s=s.concat(Transaction.userEvent.of(t.userEvent))),{changes:t.changes instanceof ChangeSet?t.changes:ChangeSet.of(t.changes||[],n,e.facet(m)),selection:i&&(i instanceof EditorSelection?i:EditorSelection.single(i.anchor,i.head)),effects:asArray(t.effects),annotations:s,scrollIntoView:!!t.scrollIntoView}}Transaction.time=Annotation.define(),Transaction.userEvent=Annotation.define(),Transaction.addToHistory=Annotation.define(),Transaction.remote=Annotation.define();let S=[];function asArray(e){return null==e?S:Array.isArray(e)?e:[e]}var b=((l=b||(b={}))[l.Word=0]="Word",l[l.Space=1]="Space",l[l.Other=2]="Other",l);let w=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{i=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}let EditorState=class EditorState{constructor(e,t,n,i,s,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let e=0;e=0;s--){let o=n[s](e);o&&Object.keys(o).length&&(i=mergeTransaction(i,resolveTransactionInner(t,o,e.changes.newLength),!0))}return i==e?e:Transaction.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(y)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:function(e,t){let n=[];for(let i=0,s=0;;){let o,a;if(i=e[i]))o=e[i++],a=e[i++];else{if(!(s=0;n--){let s=i[n](e);e=s instanceof Transaction?s:Array.isArray(s)&&1==s.length&&s[0]instanceof Transaction?s[0]:resolveTransaction(t,asArray(s),!1)}return e}(s):s)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:i,compartments:s}=n;for(let t of e.effects)t.is(Compartment.reconfigure)?(n&&(s=new Map,n.compartments.forEach((e,t)=>s.set(t,e)),n=null),s.set(t.value.compartment,t.value.extension)):t.is(StateEffect.reconfigure)?(n=null,i=t.value):t.is(StateEffect.appendConfig)&&(n=null,i=asArray(i).concat(t.value));n?t=e.startState.values.slice():(n=Configuration.resolve(i,s,this),t=new EditorState(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values),new EditorState(n,e.newDoc,e.newSelection,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:EditorSelection.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),s=[n.range],o=asArray(n.effects);for(let n=1;ns.spec.fromJSON(o,e)))}}return EditorState.create({doc:e.doc,selection:EditorSelection.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Configuration.resolve(e.extensions||[],new Map),n=e.doc instanceof Text?e.doc:Text.of((e.doc||"").split(t.staticFacet(EditorState.lineSeparator)||o)),i=e.selection?e.selection instanceof EditorSelection?e.selection:EditorSelection.single(e.selection.anchor,e.selection.head):EditorSelection.single(0);return checkSelection(i,n.length),t.staticFacet(g)||(i=i.asSingle()),new EditorState(t,n,i,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(EditorState.tabSize)}get lineBreak(){return this.facet(EditorState.lineSeparator)||"\n"}get readOnly(){return this.facet(v)}phrase(e,...t){for(let t of this.facet(EditorState.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let s of this.facet(p))for(let o of s(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return b.Space;if(function(e){if(i)return i.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||w.test(n)))return!0}return!1}(e))return b.Word;for(let n=0;n-1)return b.Word;return b.Other}}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=findClusterBreak(t,o,!1);if(s(t.slice(e,o))!=b.Word)break;o=e}for(;ae.length?e[0]:4}),EditorState.lineSeparator=m,EditorState.readOnly=v,EditorState.phrases=Facet.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every(n=>e[n]==t[n])}}),EditorState.languageData=p,EditorState.changeFilter=y,EditorState.transactionFilter=k,EditorState.transactionExtender=x,Compartment.reconfigure=StateEffect.define();let RangeValue=class RangeValue{eq(e){return this==e}range(e,t=e){return Range.create(e,t,this)}};RangeValue.prototype.startSide=RangeValue.prototype.endSide=0,RangeValue.prototype.point=!1,RangeValue.prototype.mapMode=h.TrackDel;let Range=class Range{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Range(e,t,n)}};function cmpRange(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}let Chunk=class Chunk{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let s=n?this.to:this.from;for(let o=i,a=s.length;;){if(o==a)return o;let i=o+a>>1,l=s[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==o)return l>=0?o:a;l>=0?a=i:o=i+1}}between(e,t,n,i){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,s);s(d=t.mapPos(u,h.endSide))||f==d&&h.startSide>0&&h.endSide<=0)continue;0>(d-f||h.endSide-h.startSide)||(o<0&&(o=f),h.point&&(a=Math.max(a,d-f)),n.push(h),i.push(f-o),s.push(d-o))}return{mapped:n.length?new Chunk(i,s,n,a):null,pos:o}}};let RangeSet=class RangeSet{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new RangeSet(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:s=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(cmpRange)),this.isEmpty)return t.length?RangeSet.of(t):this;let a=new LayerCursor(this,null,-1).goto(0),l=0,h=[],c=new RangeSetBuilder;for(;a.value||l=0){let e=t[l++];c.addInner(e.from,e.to,e.value)||h.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||sa.to||s=s&&e<=s+o.length&&!1===o.between(s,e-s,t-s,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return HeapCursor.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return HeapCursor.from(e).goto(t)}static compare(e,t,n,i,s=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=s),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=s),l=findSharedChunks(o,a,n),h=new SpanCursor(o,l,s),c=new SpanCursor(a,l,s);n.iterGaps((e,t,n)=>compare(h,e,c,t,n,i)),n.empty&&0==n.length&&compare(h,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=999999999);let s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),o=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(s.length!=o.length)return!1;if(!s.length)return!0;let a=findSharedChunks(s,o),l=new SpanCursor(s,a,0).goto(n),h=new SpanCursor(o,a,0).goto(n);for(;;){if(l.to!=h.to||!sameValues(l.active,h.active)||l.point&&(!h.point||!l.point.eq(h.point)))return!1;if(l.to>i)return!0;l.next(),h.next()}}static spans(e,t,n,i,s=-1){let o=new SpanCursor(e,null,s).goto(t),a=t,l=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),s=o.pointFroma&&(i.span(a,e,o.active,l),l=o.openEnd(e));if(o.to>n)return l+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new RangeSetBuilder;for(let i of e instanceof Range?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(cmpRange);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}};RangeSet.empty=new RangeSet([],[],null,-1),RangeSet.empty.nextLayer=RangeSet.empty;let RangeSetBuilder=class RangeSetBuilder{finishChunk(e){this.chunks.push(new Chunk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new RangeSetBuilder)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(RangeSet.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=RangeSet.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function findSharedChunks(e,t,n){let i=new Map;for(let t of e)for(let e=0;e(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new LayerCursor(o,t,n,s));return 1==i.length?i[0]:new HeapCursor(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)heapBubble(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)heapBubble(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),heapBubble(this.heap,0)}}};function heapBubble(e,t){for(let n=e[t];;){let i=(t<<1)+1;if(i>=e.length)break;let s=e[i];if(i+1=0&&(s=e[i+1],i++),0>n.compare(s))break;e[i]=n,e[t]=s,t=i}}let SpanCursor=class SpanCursor{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=HeapCursor.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){remove(this.active,e),remove(this.activeTo,e),remove(this.activeRank,e),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:s}=this.cursor;for(;t-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&remove(n,i)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}};function compare(e,t,n,i,s,o){e.goto(t),n.goto(i);let a=i+s,l=i,h=i-t;for(;;){let t=e.to+h-n.to||e.endSide-n.endSide,i=t<0?e.to+h:n.to,s=Math.min(i,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&sameValues(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(l,s,e.point,n.point):s>l&&!sameValues(e.active,n.active)&&o.compareRange(l,s,e.active,n.active),i>a)break;l=i,t<=0&&e.next(),t>=0&&n.next()}}function sameValues(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function findMinIndex(e,t){let n=-1,i=1e9;for(let s=0;s(t[s]-i||e[s].endSide-e[n].endSide)&&(n=s,i=t[s]);return n}function countColumn(e,t,n=e.length){let i=0;for(let s=0;s=t)return i;if(i==e.length)break;s+=9==e.charCodeAt(i)?n-s%n:1,i=findClusterBreak(e,i)}return!0===i?-1:e.length}},1113:function(e,t,n){var i,s;n.d(t,{Jq:function(){return NodeType},L3:function(){return o},Lj:function(){return NodeSet},_b:function(){return Parser},i9:function(){return TreeFragment},md:function(){return NodeProp},mp:function(){return Tree},vj:function(){return i}});let o=1024,a=0;let Range=class Range{constructor(e,t){this.from=e,this.to=t}};let NodeProp=class NodeProp{constructor(e={}){this.id=a++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=NodeType.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}};NodeProp.closedBy=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.openedBy=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.group=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.contextHash=new NodeProp({perNode:!0}),NodeProp.lookAhead=new NodeProp({perNode:!0}),NodeProp.mounted=new NodeProp({perNode:!0});let MountedTree=class MountedTree{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[NodeProp.mounted.id]}};let l=Object.create(null);let NodeType=class NodeType{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new NodeType(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(NodeProp.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(NodeProp.group),i=-1;i<(n?n.length:0);i++){let s=t[i<0?e.name:n[i]];if(s)return s}}}};NodeType.none=new NodeType("",Object.create(null),0,8);let NodeSet=class NodeSet{constructor(e){this.types=e;for(let t=0;t=t){let a=new TreeNode(o.tree,o.overlay[0].from+e.from,0,null);(s||(s=[i])).push(resolveNode(a,t,n,!1))}}return s?iterStack(s):i}(this,e,t)}iterate(e){let{enter:t,leave:n,from:s=0,to:o=this.length}=e,a=e.mode||0,l=(a&i.IncludeAnonymous)>0;for(let e=this.cursor(a|i.IncludeAnonymous);;){let i=!1;if(e.from<=o&&e.to>=s&&(!l&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;i=!0}for(;i&&n&&(l||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;i=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new Tree(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new Tree(NodeType.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:s=o,reused:a=[],minRepeatType:l=i.types.length}=e,h=Array.isArray(n)?new FlatBufferCursor(n,n.length):n,c=i.types,u=0,f=0;function makeRepeatLeaf(e,t,n,s,o,a,l,h){let c=[],u=[];for(;e.length>s;)c.push(e.pop()),u.push(t.pop()+n-o);e.push(makeTree(i.types[l],c,u,a-o,h-a)),t.push(o-n)}function makeTree(e,t,n,i,s=0,o){if(u){let e=[NodeProp.contextHash,u];o=o?[e].concat(o):[e]}if(s>25){let e=[NodeProp.lookAhead,s];o=o?[e].concat(o):[e]}return new Tree(e,t,n,i,o)}let d=[],p=[];for(;h.pos>0;)!function takeNode(e,t,n,o,d){let{id:p,start:g,end:m,size:y}=h,k=f;for(;y<0;){if(h.next(),-1==y){let t=a[p];n.push(t),o.push(g-e);return}if(-3==y){u=p;return}if(-4==y){f=p;return}throw RangeError(`Unrecognized record size: ${y}`)}let x=c[p],v,S,b=g-e;if(m-g<=s&&(S=function(e,t){let n=h.fork(),i=0,o=0,a=0,c=n.end-s,u={size:0,start:0,skip:0};t:for(let s=n.pos-e;n.pos>s;){let e=n.size;if(n.id==t&&e>=0){u.size=i,u.start=o,u.skip=a,a+=4,i+=4,n.next();continue}let h=n.pos-e;if(e<0||h=l?4:0,d=n.start;for(n.next();n.pos>h;){if(n.size<0){if(-3==n.size)f+=4;else break t}else n.id>=l&&(f+=4);n.next()}o=d,i+=e,a+=f}return(t<0||i==e)&&(u.size=i,u.start=o,u.skip=a),u.size>4?u:void 0}(h.pos-t,d))){let t=new Uint16Array(S.size-S.skip),n=h.pos-S.size,s=t.length;for(;h.pos>n;)s=function copyToBuffer(e,t,n){let{id:i,start:s,end:o,size:a}=h;if(h.next(),a>=0&&i4){let i=h.pos-(a-4);for(;h.pos>i;)n=copyToBuffer(e,t,n)}t[--n]=l,t[--n]=o-e,t[--n]=s-e,t[--n]=i}else -3==a?u=i:-4==a&&(f=i);return n}(S.start,t,s);v=new TreeBuffer(t,m-S.start,i),b=S.start-e}else{let e=h.pos-y;h.next();let t=[],n=[],i=p>=l?p:-1,o=0,a=m;for(;h.pos>e;)i>=0&&h.id==i&&h.size>=0?(h.end<=a-s&&(makeRepeatLeaf(t,n,g,o,h.end,a,i,k),o=t.length,a=h.end),h.next()):takeNode(g,e,t,n,i);if(i>=0&&o>0&&o-1&&o>0){let e=function(e){return(t,n,i)=>{let s=0,o=t.length-1,a,l;if(o>=0&&(a=t[o])instanceof Tree){if(!o&&a.type==e&&a.length==i)return a;(l=a.prop(NodeProp.lookAhead))&&(s=n[o]+a.length+l)}return makeTree(e,t,n,i,s)}}(x);v=balanceRange(x,t,n,0,t.length,0,m-g,e,e)}else v=makeTree(x,t,n,m-g,k-m)}n.push(v),o.push(b)}(e.start||0,e.bufferStart||0,d,p,-1);let g=null!==(t=e.length)&&void 0!==t?t:d.length?p[0]+d[0].length:0;return new Tree(c[e.topID],d.reverse(),p.reverse(),g)}(e)}};Tree.empty=new Tree(NodeType.none,[],[],0);let FlatBufferCursor=class FlatBufferCursor{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}};let TreeBuffer=class TreeBuffer{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return NodeType.none}toString(){let e=[];for(let t=0;t0)));l=o[l+3]);return a}slice(e,t,n){let i=this.buffer,s=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=t&&nt;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function resolveNode(e,t,n,s){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?l.length:-1;e!=c;e+=t){let c=l[e],u=h[e]+a.from;if(checkSide(s,n,u,u+c.length)){if(c instanceof TreeBuffer){if(o&i.ExcludeBuffers)continue;let l=c.findChild(0,c.buffer.length,t,n-u,s);if(l>-1)return new BufferNode(new BufferContext(a,c,e,u),null,l)}else if(o&i.IncludeAnonymous||!c.type.isAnonymous||hasChild(c)){let l;if(!(o&i.IgnoreMounts)&&(l=MountedTree.get(c))&&!l.overlay)return new TreeNode(l.tree,u,e,a);let h=new TreeNode(c,u,e,a);return o&i.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(t<0?c.children.length-1:0,t,n,s)}}}if(o&i.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,!(a=a._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let s;if(!(n&i.IgnoreOverlays)&&(s=MountedTree.get(this._tree))&&s.overlay){let n=e-this.from;for(let{from:e,to:i}of s.overlay)if((t>0?e<=n:e=n:i>n))return new TreeNode(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function getChildren(e,t,n,i){let s=e.cursor(),o=[];if(!s.firstChild())return o;if(null!=n){for(;!s.type.is(n);)if(!s.nextSibling())return o}for(;;){if(null!=i&&s.type.is(i))return o;if(s.type.is(t)&&o.push(s.node),!s.nextSibling())return null==i?o:[]}}function matchNodeContext(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}let BufferContext=class BufferContext{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}};let BufferNode=class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new BufferNode(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&i.ExcludeBuffers)return null;let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new BufferNode(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new BufferNode(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new BufferNode(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let o=n.buffer[this.index+1];e.push(n.slice(i,s,o)),t.push(0)}return new Tree(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function iterStack(e){if(!e.length)return null;if(1==e.length)return e[0];let t=0,n=e[0];for(let i=1;in.from||s.to0){if(this.index-1)for(let s=t+e,o=e<0?-1:n._tree.children.length;s!=o;s+=e){let e=n._tree.children[s];if(this.mode&i.IncludeAnonymous||e instanceof TreeBuffer||!e.type.isAnonymous||hasChild(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=s+1;break t}i=this.stack[--s]}for(let e=n;e=0;s--){if(s<0)return matchNodeContext(this.node,e,i);let o=n[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}};function hasChild(e){return e.children.some(e=>e instanceof TreeBuffer||!e.type.isAnonymous||hasChild(e))}let u=new WeakMap;function nodeSize(e,t){if(!e.isAnonymous||t instanceof TreeBuffer||t.type!=e)return 1;let n=u.get(t);if(null==n){for(let i of(n=1,t.children)){if(i.type!=e||!(i instanceof Tree)){n=1;break}n+=nodeSize(e,i)}u.set(t,n)}return n}function balanceRange(e,t,n,i,s,o,a,l,h){let c=0;for(let n=i;n=u)break;p+=n}if(l==i+1){if(p>u){let e=t[i];divide(e.children,e.positions,0,e.children.length,n[i]+a);continue}f.push(t[i])}else{let s=n[l-1]+t[l-1].length-c;f.push(balanceRange(e,t,n,i,l,c,s,null,h))}d.push(c+a-o)}}(t,n,i,s,0),(l||h)(f,d,a)}let TreeFragment=class TreeFragment{constructor(e,t,n,i,s=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new TreeFragment(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,h=0;;a++){let c=a=n)for(;o&&o.from=t.from||u<=t.to||h){let e=Math.max(t.from,l)-h,n=Math.min(t.to,u)-h;t=e>=n?null:new TreeFragment(e,n,t.tree,t.offset+h,a>0,!!c)}if(t&&i.push(t),o.to>u)break;o=snew Range(e.from,e.to)):[new Range(0,0)]:[new Range(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}};let StringInput=class StringInput{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};new NodeProp({perNode:!0})},5524:function(e,t,n){n.d(t,{Gv:function(){return styleTags},QR:function(){return tagHighlighter},bW:function(){return highlightTree},pJ:function(){return w}});var i=n(1113);let s=0;let Tag=class Tag{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=s++}static define(e){if(null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let t=new Tag([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Modifier;return t=>t.modified.indexOf(e)>-1?t:Modifier.get(t.base||t,t.modified.concat(e).sort((e,t)=>e.id-t.id))}};let o=0;let Modifier=class Modifier{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var i;return n.base==e&&(i=n.modified,t.length==i.length&&t.every((e,t)=>e==i[t]))});if(n)return n;let i=[],s=new Tag(i,e,t);for(let e of t)e.instances.push(s);let o=function(e){let t=[[]];for(let n=0;nt.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)i.push(Modifier.get(t,e));return s}};function styleTags(e){let t=Object.create(null);for(let n in e){let i=e[n];for(let e of(Array.isArray(i)||(i=[i]),n.split(" ")))if(e){let n=[],s=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){s=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!i)throw RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),(t+=i[0].length)==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){s=0;break}if("/"!=a)throw RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,l=n[a];if(!l)throw RangeError("Invalid path: "+e);let h=new Rule(i,s,a>0?n.slice(0,a):null);t[l]=h.sort(t[l])}}return a.add(t)}let a=new i.md;let Rule=class Rule{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=s;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function highlightTree(e,t,n,i=0,s=e.length){let o=new HighlightBuilder(i,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),i,s,"",o.highlighters),o.flush(s)}Rule.empty=new Rule([],2,null);let HighlightBuilder=class HighlightBuilder{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,s,o){let{type:l,from:h,to:c}=e;if(h>=n||c<=t)return;l.isTop&&(o=this.highlighters.filter(e=>!e.scope||e.scope(l)));let u=s,f=function(e){let t=e.type.prop(a);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||Rule.empty,d=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(o,f.tags);if(d&&(u&&(u+=" "),u+=d,1==f.mode&&(s+=(s?" ":"")+d)),this.startSpan(Math.max(t,h),u),f.opaque)return;let p=e.tree&&e.tree.prop(i.md.mounted);if(p&&p.overlay){let i=e.node.enter(p.overlay[0].from+h,1),a=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type)),l=e.firstChild();for(let f=0,d=h;;f++){let g=f=m)&&e.nextSibling()););if(!g||m>n)break;(d=g.to+h)>t&&(this.highlightRange(i.cursor(),Math.max(t,g.from+h),Math.min(n,d),"",a),this.startSpan(Math.min(n,d),u))}l&&e.parent()}else if(e.firstChild()){p&&(s="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,s,o),this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}};let l=Tag.define,h=l(),c=l(),u=l(c),f=l(c),d=l(),p=l(d),g=l(d),m=l(),y=l(m),k=l(),x=l(),v=l(),S=l(v),b=l(),w={comment:h,lineComment:l(h),blockComment:l(h),docComment:l(h),name:c,variableName:l(c),typeName:u,tagName:l(u),propertyName:f,attributeName:l(f),className:l(c),labelName:l(c),namespace:l(c),macroName:l(c),literal:d,string:p,docString:l(p),character:l(p),attributeValue:l(p),number:g,integer:l(g),float:l(g),bool:l(d),regexp:l(d),escape:l(d),color:l(d),url:l(d),keyword:k,self:l(k),null:l(k),atom:l(k),unit:l(k),modifier:l(k),operatorKeyword:l(k),controlKeyword:l(k),definitionKeyword:l(k),moduleKeyword:l(k),operator:x,derefOperator:l(x),arithmeticOperator:l(x),logicOperator:l(x),bitwiseOperator:l(x),compareOperator:l(x),updateOperator:l(x),definitionOperator:l(x),typeOperator:l(x),controlOperator:l(x),punctuation:v,separator:l(v),bracket:S,angleBracket:l(S),squareBracket:l(S),paren:l(S),brace:l(S),content:m,heading:y,heading1:l(y),heading2:l(y),heading3:l(y),heading4:l(y),heading5:l(y),heading6:l(y),contentSeparator:l(m),list:l(m),quote:l(m),emphasis:l(m),strong:l(m),link:l(m),monospace:l(m),strikethrough:l(m),inserted:l(),deleted:l(),changed:l(),invalid:l(),meta:b,documentMeta:l(b),annotation:l(b),processingInstruction:l(b),definition:Tag.defineModifier(),constant:Tag.defineModifier(),function:Tag.defineModifier(),standard:Tag.defineModifier(),local:Tag.defineModifier(),special:Tag.defineModifier()};tagHighlighter([{tag:w.link,class:"tok-link"},{tag:w.heading,class:"tok-heading"},{tag:w.emphasis,class:"tok-emphasis"},{tag:w.strong,class:"tok-strong"},{tag:w.keyword,class:"tok-keyword"},{tag:w.atom,class:"tok-atom"},{tag:w.bool,class:"tok-bool"},{tag:w.url,class:"tok-url"},{tag:w.labelName,class:"tok-labelName"},{tag:w.inserted,class:"tok-inserted"},{tag:w.deleted,class:"tok-deleted"},{tag:w.literal,class:"tok-literal"},{tag:w.string,class:"tok-string"},{tag:w.number,class:"tok-number"},{tag:[w.regexp,w.escape,w.special(w.string)],class:"tok-string2"},{tag:w.variableName,class:"tok-variableName"},{tag:w.local(w.variableName),class:"tok-variableName tok-local"},{tag:w.definition(w.variableName),class:"tok-variableName tok-definition"},{tag:w.special(w.variableName),class:"tok-variableName2"},{tag:w.definition(w.propertyName),class:"tok-propertyName tok-definition"},{tag:w.typeName,class:"tok-typeName"},{tag:w.namespace,class:"tok-namespace"},{tag:w.className,class:"tok-className"},{tag:w.macroName,class:"tok-macroName"},{tag:w.propertyName,class:"tok-propertyName"},{tag:w.operator,class:"tok-operator"},{tag:w.comment,class:"tok-comment"},{tag:w.meta,class:"tok-meta"},{tag:w.invalid,class:"tok-invalid"},{tag:w.punctuation,class:"tok-punctuation"}])},4443:function(e,t,n){n.d(t,{Z:function(){return _curry1}});var i=n(2588);function _curry1(e){return function f1(t){return 0==arguments.length||(0,i.Z)(t)?f1:e.apply(this,arguments)}}},3707:function(e,t,n){n.d(t,{Z:function(){return _curry2}});var i=n(4443),s=n(2588);function _curry2(e){return function f2(t,n){switch(arguments.length){case 0:return f2;case 1:return(0,s.Z)(t)?f2:(0,i.Z)(function(n){return e(t,n)});default:return(0,s.Z)(t)&&(0,s.Z)(n)?f2:(0,s.Z)(t)?(0,i.Z)(function(t){return e(t,n)}):(0,s.Z)(n)?(0,i.Z)(function(n){return e(t,n)}):e(t,n)}}}},2588:function(e,t,n){n.d(t,{Z:function(){return _isPlaceholder}});function _isPlaceholder(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},4021:function(e,t,n){var i=(0,n(3707).Z)(function(e,t){for(var n={},i={},s=0,o=e.length;se.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),s,i);else if(s&&"object"==typeof s){if(!a)throw RangeError("The value of a property ("+n+") should be a primitive value.");render(splitSelector(n),s,o,l)}else null!=s&&o.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(o.length||l)&&i.push((!n||a||s?e:e.map(n)).join(", ")+" {"+o.join(" ")+"}")}(splitSelector(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[i]||1;return o[i]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let i=e[s],o=n&&n.nonce;i?o&&i.setNonce(o):i=new StyleSet(e,o),i.mount(Array.isArray(t)?t:[t])}};let a=new Map;let StyleSet=class StyleSet{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let t=a.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[s]=t;this.sheet=new i.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],a.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let i=e.head||e;i.insertBefore(this.styleTag,i.firstChild)}this.modules=[],e[s]=this}mount(e){let t=this.sheet,n=0,i=0;for(let s=0;s-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)i[48+l]=i[96+l]=String(l);for(var l=1;l<=24;l++)i[l+111]="F"+l;for(var l=65;l<=90;l++)i[l]=String.fromCharCode(l+32),s[l]=String.fromCharCode(l);for(var h in i)s.hasOwnProperty(h)||(s[h]=i[h]);function keyName(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:i)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]); \ No newline at end of file diff --git a/_next/static/chunks/3248-e09cad96680fcef2.js b/_next/static/chunks/3248-e09cad96680fcef2.js deleted file mode 100644 index 9ffc7dd6..00000000 --- a/_next/static/chunks/3248-e09cad96680fcef2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3248],{5539:function(e,t,n){n.d(t,{WR:function(){return u},A1:function(){return h}});var i=n(7462),s=n(5524),o=n(7421),a=n(9119),createTheme=e=>{var{theme:t,settings:n={},styles:i=[]}=e,s={".cm-gutters":{}},l={};n.background&&(l.backgroundColor=n.background),n.backgroundImage&&(l.backgroundImage=n.backgroundImage),n.foreground&&(l.color=n.foreground),(n.background||n.foreground)&&(s["&"]=l),n.fontFamily&&(s["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(s[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(s[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(s[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(s[".cm-content"]={caretColor:n.caret},s[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var h={};n.gutterActiveForeground&&(h.color=n.gutterActiveForeground),n.lineHighlight&&(s[".cm-activeLine"]={backgroundColor:n.lineHighlight},h.backgroundColor=n.lineHighlight),s[".cm-activeLineGutter"]=h,n.selection&&(s["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(s["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var c=o.tk.theme(s,{dark:"dark"===t}),u=a.Qf.define(i);return[c,(0,a.nF)(u)]},l={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},h=(e=>{var{theme:t="light",settings:n={},styles:o=[]}={};return createTheme({theme:t,settings:(0,i.Z)({},l,n),styles:[{tag:[s.pJ.standard(s.pJ.tagName),s.pJ.tagName],color:"#116329"},{tag:[s.pJ.comment,s.pJ.bracket],color:"#6a737d"},{tag:[s.pJ.className,s.pJ.propertyName],color:"#6f42c1"},{tag:[s.pJ.variableName,s.pJ.attributeName,s.pJ.number,s.pJ.operator],color:"#005cc5"},{tag:[s.pJ.keyword,s.pJ.typeName,s.pJ.typeOperator,s.pJ.typeName],color:"#d73a49"},{tag:[s.pJ.string,s.pJ.meta,s.pJ.regexp],color:"#032f62"},{tag:[s.pJ.name,s.pJ.quote],color:"#22863a"},{tag:[s.pJ.heading,s.pJ.strong],color:"#24292e",fontWeight:"bold"},{tag:[s.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[s.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.special(s.pJ.variableName)],color:"#e36209"},{tag:[s.pJ.url,s.pJ.escape,s.pJ.regexp,s.pJ.link],color:"#032f62"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.invalid,color:"#cb2431"},...o]})})(),c={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},u=(e=>{var{theme:t="dark",settings:n={},styles:o=[]}={};return createTheme({theme:t,settings:(0,i.Z)({},c,n),styles:[{tag:[s.pJ.standard(s.pJ.tagName),s.pJ.tagName],color:"#7ee787"},{tag:[s.pJ.comment,s.pJ.bracket],color:"#8b949e"},{tag:[s.pJ.className,s.pJ.propertyName],color:"#d2a8ff"},{tag:[s.pJ.variableName,s.pJ.attributeName,s.pJ.number,s.pJ.operator],color:"#79c0ff"},{tag:[s.pJ.keyword,s.pJ.typeName,s.pJ.typeOperator,s.pJ.typeName],color:"#ff7b72"},{tag:[s.pJ.string,s.pJ.meta,s.pJ.regexp],color:"#a5d6ff"},{tag:[s.pJ.name,s.pJ.quote],color:"#7ee787"},{tag:[s.pJ.heading,s.pJ.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[s.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[s.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.special(s.pJ.variableName)],color:"#ffab70"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.invalid,color:"#f97583"},...o]})})()},1077:function(e,t,n){n.d(t,{ZP:function(){return e8}});var i=n(7462),s=n(7294),o=n(8120),a=n(7421),l=n(9119),h=n(1113);function command(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let s=e(t,n);return!!s&&(i(n.update(s)),!0)}}let c=command(function(e,t,n=t.selection.ranges){let i=[],s=-1;for(let{from:e,to:o}of n){let n=i.length,a=1e9,l=getConfig(t,e).line;if(l){for(let n=e;n<=o;){let h=t.doc.lineAt(n);if(h.from>s&&(e==o||o>h.from)){s=h.from;let e=/^\s*/.exec(h.text)[0].length,t=e==h.length,n=h.text.slice(e,e+l.length)==l?e:-1;ee.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:s,empty:o,single:a}of i)(a||!o)&&e.push({from:t.from+s,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:s}of i)if(n>=0){let i=t.from+n,o=i+s.length;" "==t.text[o-t.from]&&o++,e.push({from:i,to:o})}return{changes:e}}return null},0),u=command(changeBlockComment,0),f=command((e,t)=>changeBlockComment(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),s=n.to<=i.to?i:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>i.from?t[o].to=s.to:t.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return t}(t)),0);function getConfig(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function changeBlockComment(e,t,n=t.selection.ranges){let i=n.map(e=>getConfig(t,e.from).block);if(!i.every(e=>e))return null;let s=n.map((e,n)=>(function(e,{open:t,close:n},i,s){let o,a,l=e.sliceDoc(i-50,i),h=e.sliceDoc(s,s+50),c=/\s*$/.exec(l)[0].length,u=/^\s*/.exec(h)[0].length,f=l.length-c;if(l.slice(f-t.length,f)==t&&h.slice(u,u+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:s+u,margin:u&&1}};s-i<=100?o=a=e.sliceDoc(i,s):(o=e.sliceDoc(i,i+50),a=e.sliceDoc(s-50,s));let d=/^\s*/.exec(o)[0].length,p=/\s*$/.exec(a)[0].length,g=a.length-p-n.length;return o.slice(d,d+t.length)==t&&a.slice(g,g+n.length)==n?{open:{pos:i+d+t.length,margin:/\s/.test(o.charAt(d+t.length))?1:0},close:{pos:s-p-n.length,margin:/\s/.test(a.charAt(g-1))?1:0}}:null})(t,i[n],e.from,e.to));if(2!=e&&!s.every(e=>e))return{changes:t.changes(n.map((e,t)=>s[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}]))};if(1!=e&&s.some(e=>e)){let e=[];for(let t=0,n;t(0,o.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}),y=o.QQ.define({create:()=>HistoryState.empty,update(e,t){let n=t.state.facet(m),i=t.annotation(d);if(i){var s;let a;let l=t.docChanged?o.jT.single((s=t.changes,a=0,s.iterChangedRanges((e,t)=>a=t),a)):void 0,h=HistEvent.fromTransaction(t,l),c=i.side,u=0==c?e.undone:e.done;return u=h?updateBranch(u,u.length,n.minDepth,h):addSelection(u,t.startState.selection),new HistoryState(0==c?i.rest:u,0==c?u:i.rest)}let a=t.annotation(p);if(("full"==a||"before"==a)&&(e=e.isolate()),!1===t.annotation(o.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let l=HistEvent.fromTransaction(t),h=t.annotation(o.YW.time),c=t.annotation(o.YW.userEvent);return l?e=e.addChanges(l,h,c,n,t):t.selection&&(e=e.addSelection(t.startState.selection,h,c,n.newGroupDelay)),("full"==a||"after"==a)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new HistoryState(e.done.map(HistEvent.fromJSON),e.undone.map(HistEvent.fromJSON))});function cmd(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let s=n.field(y,!1);if(!s)return!1;let o=s.pop(e,n,t);return!!o&&(i(o),!0)}}let k=cmd(0,!1),x=cmd(1,!1),v=cmd(0,!0),S=cmd(1,!0);let HistEvent=class HistEvent{constructor(e,t,n,i,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new HistEvent(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new HistEvent(e.changes&&o.as.fromJSON(e.changes),[],e.mapped&&o.n0.fromJSON(e.mapped),e.startSelection&&o.jT.fromJSON(e.startSelection),e.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(e,t){let n=b;for(let t of e.startState.facet(g)){let i=t(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new HistEvent(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,b)}static selection(e){return new HistEvent(void 0,b,void 0,void 0,e)}};function updateBranch(e,t,n,i){let s=t+1>n+20?t-n-1:0,o=e.slice(s,t);return o.push(i),o}function conc(e,t){return e.length?t.length?e.concat(t):e:t}let b=[];function addSelection(e,t){if(!e.length)return[HistEvent.selection([t])];{let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),updateBranch(e,e.length-1,1e9,n.setSelAfter(i)))}}function addMappingToBranch(e,t){if(!e.length)return e;let n=e.length,i=b;for(;n;){let s=function(e,t,n){let i=conc(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):b,n);if(!e.changes)return HistEvent.selection(i);let s=e.changes.map(t),a=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(a):a;return new HistEvent(s,o.Py.mapEffects(e.effects,t),l,e.startSelection.map(a),i)}(e[n-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let t=e.slice(0,n);return t[n-1]=s,t}t=s.mapped,n--,i=s.selectionsAfter}return i.length?[HistEvent.selection(i)]:b}let w=/^(input\.type|delete)($|\.)/;let HistoryState=class HistoryState{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new HistoryState(this.done,this.undone):this}addChanges(e,t,n,i,s){var o,a;let l,h,c=this.done,u=c[c.length-1];return c=u&&u.changes&&!u.changes.empty&&e.changes&&(!n||w.test(n))&&(!u.selectionsAfter.length&&t-this.prevTimel.push(e,t)),a.iterChangedRanges((e,t,n,i)=>{for(let e=0;e=t&&n<=s&&(h=!0)}}),h))||"input.type.compose"==n)?updateBranch(c,c.length-1,i.minDepth,new HistEvent(e.changes.compose(u.changes),conc(e.effects,u.effects),u.mapped,u.startSelection,b)):updateBranch(c,c.length,i.minDepth,e),new HistoryState(c,b,t,n)}addSelection(e,t,n,i){var s;let o=this.done.length?this.done[this.done.length-1].selectionsAfter:b;return o.length>0&&t-this.prevTimet.empty!=e.ranges[n].empty).length?this:new HistoryState(addSelection(this.done,e),this.undone,t,n)}addMapping(e){return new HistoryState(addMappingToBranch(this.done,e),addMappingToBranch(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let s=i[i.length-1];if(n&&s.selectionsAfter.length){let n,o;return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:d.of({side:e,rest:(n=i[i.length-1],(o=i.slice())[i.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),o)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}if(!s.changes)return null;{let n=1==i.length?b:i.slice(0,i.length-1);return s.mapped&&(n=addMappingToBranch(n,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:d.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}};HistoryState.empty=new HistoryState(b,b);let C=[{key:"Mod-z",run:k,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:x,preventDefault:!0},{linux:"Ctrl-Shift-z",run:x,preventDefault:!0},{key:"Mod-u",run:v,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:S,preventDefault:!0}];function updateSel(e,t){return o.jT.create(e.ranges.map(t),e.mainIndex)}function setSel(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function moveSel({state:e,dispatch:t},n){let i=updateSel(e.selection,n);return!i.eq(e.selection)&&(t(setSel(e,i)),!0)}function rangeEnd(e,t){return o.jT.cursor(t?e.to:e.from)}function cursorByChar(e,t){return moveSel(e,n=>n.empty?e.moveByChar(n,t):rangeEnd(n,t))}function ltrAtCursor(e){return e.textDirectionAt(e.state.selection.main.head)==a.Nm.LTR}let cursorCharLeft=e=>cursorByChar(e,!ltrAtCursor(e)),cursorCharRight=e=>cursorByChar(e,ltrAtCursor(e));function cursorByGroup(e,t){return moveSel(e,n=>n.empty?e.moveByGroup(n,t):rangeEnd(n,t))}function moveBySyntax(e,t,n){let i,s,a=(0,l.qz)(e).resolveInner(t.head),c=n?h.md.closedBy:h.md.openedBy;for(let i=t.head;;){let t=n?a.childAfter(i):a.childBefore(i);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,c)?i=n?t.to:t.from:a=t}return s=a.type.prop(c)&&(i=n?(0,l.Um)(e,a.from,1):(0,l.Um)(e,a.to,-1))&&i.matched?n?i.end.to:i.end.from:n?a.to:a.from,o.jT.cursor(s,n?-1:1)}function cursorByLine(e,t){return moveSel(e,n=>{if(!n.empty)return rangeEnd(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;let cursorLineUp=e=>cursorByLine(e,!1),cursorLineDown=e=>cursorByLine(e,!0);function pageInfo(e){let t=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,i.height):rangeEnd(n,t));if(o.eq(s.selection))return!1;if(i.selfScroll){let t=e.coordsAtPos(s.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),h=l.top+i.marginTop,c=l.bottom-i.marginBottom;t&&t.top>h&&t.bottomcursorByPage(e,!1),cursorPageDown=e=>cursorByPage(e,!0);function moveByLineBoundary(e,t,n){let i=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,n);if(s.head==t.head&&s.head!=(n?i.to:i.from)&&(s=e.moveToLineBoundary(t,n,!1)),!n&&s.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(s=o.jT.cursor(i.from+n))}return s}function extendSel(e,t){let n=updateSel(e.state.selection,e=>{let n=t(e);return o.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(setSel(e.state,n)),!0)}function selectByChar(e,t){return extendSel(e,n=>e.moveByChar(n,t))}let selectCharLeft=e=>selectByChar(e,!ltrAtCursor(e)),selectCharRight=e=>selectByChar(e,ltrAtCursor(e));function selectByGroup(e,t){return extendSel(e,n=>e.moveByGroup(n,t))}function selectByLine(e,t){return extendSel(e,n=>e.moveVertically(n,t))}let selectLineUp=e=>selectByLine(e,!1),selectLineDown=e=>selectByLine(e,!0);function selectByPage(e,t){return extendSel(e,n=>e.moveVertically(n,t,pageInfo(e).height))}let selectPageUp=e=>selectByPage(e,!1),selectPageDown=e=>selectByPage(e,!0),cursorDocStart=({state:e,dispatch:t})=>(t(setSel(e,{anchor:0})),!0),cursorDocEnd=({state:e,dispatch:t})=>(t(setSel(e,{anchor:e.doc.length})),!0),selectDocStart=({state:e,dispatch:t})=>(t(setSel(e,{anchor:e.selection.main.anchor,head:0})),!0),selectDocEnd=({state:e,dispatch:t})=>(t(setSel(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function deleteBy(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:i}=e,s=i.changeByRange(i=>{let{from:s,to:a}=i;if(s==a){let o=t(i);os&&(n="delete.forward",o=skipAtomic(e,o,!0)),s=Math.min(s,o),a=Math.max(a,o)}else s=skipAtomic(e,s,!1),a=skipAtomic(e,a,!0);return s==a?{range:i}:{changes:{from:s,to:a},range:o.jT.cursor(s,st(e)))i.between(t,t,(e,i)=>{et&&(t=n?i:e)});return t}let deleteByChar=(e,t)=>deleteBy(e,n=>{let i=n.from,{state:s}=e,a=s.doc.lineAt(i),h,c;if(!t&&i>a.from&&ideleteByChar(e,!1),deleteCharForward=e=>deleteByChar(e,!0),deleteByGroup=(e,t)=>deleteBy(e,n=>{let i=n.head,{state:s}=e,a=s.doc.lineAt(i),l=s.charCategorizer(i);for(let e=null;;){if(i==(t?a.to:a.from)){i==n.head&&a.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let h=(0,o.cp)(a.text,i-a.from,t)+a.from,c=a.text.slice(Math.min(i,h)-a.from,Math.max(i,h)-a.from),u=l(c);if(null!=e&&u!=e)break;(" "!=c||i!=n.head)&&(e=u),i=h}return i}),deleteGroupBackward=e=>deleteByGroup(e,!1);function selectedLineBlocks(e){let t=[],n=-1;for(let i of e.selection.ranges){let s=e.doc.lineAt(i.from),o=e.doc.lineAt(i.to);if(i.empty||i.to!=o.from||(o=e.doc.lineAt(i.to-1)),n>=s.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(i)}else t.push({from:s.from,to:o.to,ranges:[i]});n=o.number+1}return t}function moveLine(e,t,n){if(e.readOnly)return!1;let i=[],s=[];for(let t of selectedLineBlocks(e)){if(n?t.to==e.doc.length:0==t.from)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),l=a.length+1;if(n)for(let n of(i.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak}),t.ranges))s.push(o.jT.range(Math.min(e.doc.length,n.anchor+l),Math.min(e.doc.length,n.head+l)));else for(let n of(i.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text}),t.ranges))s.push(o.jT.range(n.anchor-l,n.head-l))}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:o.jT.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}function copyLine(e,t,n){if(e.readOnly)return!1;let i=[];for(let t of selectedLineBlocks(e))n?i.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):i.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let A=newlineAndIndent(!1),T=newlineAndIndent(!0);function newlineAndIndent(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:i,to:s}=n,a=t.doc.lineAt(i),c=!e&&i==s&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,l.qz)(e).resolveInner(t),i=n.childBefore(t),s=n.childAfter(t),o;return i&&s&&i.to<=t&&s.from>=t&&(o=i.type.prop(h.md.closedBy))&&o.indexOf(s.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}(t,i);e&&(i=s=(s<=a.to?a:t.doc.lineAt(s)).to);let u=new l.Gn(t,{simulateBreak:i,simulateDoubleBreak:!!c}),f=(0,l.K0)(u,i);for(null==f&&(f=(0,o.IS)(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));sa.from&&i{let s=[];for(let o=i.from;o<=i.to;){let a=e.doc.lineAt(o);a.number>n&&(i.empty||i.to>a.from)&&(t(a,s,i),n=a.number),o=a.to+1}let a=e.changes(s);return{changes:s,range:o.jT.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}let indentMore=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(changeBySelectedLine(e,(t,n)=>{n.push({from:t.from,insert:e.facet(l.c)})}),{userEvent:"input.indent"})),!0),indentLess=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(changeBySelectedLine(e,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=(0,o.IS)(i,e.tabSize),a=0,h=(0,l.SS)(e,Math.max(0,s-(0,l.y1)(e)));for(;amoveSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>extendSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>moveSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>extendSel(e,t=>o.jT.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:deleteCharForward},{key:"Ctrl-h",run:deleteCharBackward},{key:"Ctrl-k",run:e=>deleteBy(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:o.xv.of(["",""])},range:o.jT.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),s=n==i.from?n-1:(0,o.cp)(i.text,n-i.from,!1)+i.from,a=n==i.to?n+1:(0,o.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:s,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(s,n))},range:o.jT.cursor(a)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:cursorPageDown}],O=[{key:"ArrowLeft",run:cursorCharLeft,shift:selectCharLeft,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>cursorByGroup(e,!ltrAtCursor(e)),shift:e=>selectByGroup(e,!ltrAtCursor(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,!ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,!ltrAtCursor(e))),preventDefault:!0},{key:"ArrowRight",run:cursorCharRight,shift:selectCharRight,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>cursorByGroup(e,ltrAtCursor(e)),shift:e=>selectByGroup(e,ltrAtCursor(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,ltrAtCursor(e))),preventDefault:!0},{key:"ArrowUp",run:cursorLineUp,shift:selectLineUp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:cursorDocStart,shift:selectDocStart},{mac:"Ctrl-ArrowUp",run:cursorPageUp,shift:selectPageUp},{key:"ArrowDown",run:cursorLineDown,shift:selectLineDown,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cursorDocEnd,shift:selectDocEnd},{mac:"Ctrl-ArrowDown",run:cursorPageDown,shift:selectPageDown},{key:"PageUp",run:cursorPageUp,shift:selectPageUp},{key:"PageDown",run:cursorPageDown,shift:selectPageDown},{key:"Home",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,!1)),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:cursorDocStart,shift:selectDocStart},{key:"End",run:e=>moveSel(e,t=>moveByLineBoundary(e,t,!0)),shift:e=>extendSel(e,t=>moveByLineBoundary(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:cursorDocEnd,shift:selectDocEnd},{key:"Enter",run:A},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:deleteCharBackward,shift:deleteCharBackward},{key:"Delete",run:deleteCharForward},{key:"Mod-Backspace",mac:"Alt-Backspace",run:deleteGroupBackward},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>deleteByGroup(e,!0)},{mac:"Mod-Backspace",run:e=>deleteBy(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:e=>deleteBy(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift}))),I=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>moveSel(e,t=>moveBySyntax(e.state,t,!ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveBySyntax(e.state,t,!ltrAtCursor(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>moveSel(e,t=>moveBySyntax(e.state,t,ltrAtCursor(e))),shift:e=>extendSel(e,t=>moveBySyntax(e.state,t,ltrAtCursor(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>moveLine(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>copyLine(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>moveLine(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>copyLine(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=o.jT.create([n.main]):n.main.empty||(i=o.jT.create([o.jT.cursor(n.main.head)])),!!i&&(t(setSel(e,i)),!0)}},{key:"Mod-Enter",run:T},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=selectedLineBlocks(e).map(({from:t,to:n})=>o.jT.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:o.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=updateSel(e.selection,t=>{var n;let i=(0,l.qz)(e).resolveStack(t.from,1);for(let e=i;e;e=e.next){let{node:i}=e;if((i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent))return o.jT.range(i.to,i.from)}return t});return t(setSel(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:indentLess},{key:"Mod-]",run:indentMore},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new l.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),s=changeBySelectedLine(e,(t,s,o)=>{let a=(0,l.K0)(i,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let h=/^\s*/.exec(t.text)[0],c=(0,l.SS)(e,a);(h!=c||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(selectedLineBlocks(t).map(({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0)).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{let n,i;return n=!1,i=updateSel(e.selection,t=>{let i=(0,l.Um)(e,t.head,-1)||(0,l.Um)(e,t.head,1)||t.head>0&&(0,l.Um)(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),i=getConfig(e.state,n.from);return i.line?c(e):!!i.block&&f(e)}},{key:"Alt-A",run:u}].concat(O),B={key:"Tab",run:indentMore,shift:indentLess};function crelt(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=n[i];"string"==typeof s?e.setAttribute(i,s):null!=s&&(e[i]=s)}t++}for(;te.normalize("NFKD"):e=>e;let SearchCursor=class SearchCursor{constructor(e,t,n=0,i=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=s?e=>s(R(e)):R,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,o.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,o.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,o.nZ)(e);let i=this.normalize(t);for(let e=0,s=n;;e++){let o=i.charCodeAt(e),a=this.match(o,s);if(e==i.length-1){if(a)return this.value=a,this;break}s==n&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=toCharEnd(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||i.to<=t){let i=new FlattenedDoc(t,e.sliceString(t,n));return E.set(e,i),i}if(i.from==t&&i.to==n)return i;let{text:s,from:o}=i;return o>t&&(s=e.sliceString(t,o)+s,o=t),i.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=toCharEnd(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=FlattenedDoc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}};function toCharEnd(e,t){if(t>=e.length)return t;let n=e.lineAt(t),i;for(;t=56320&&i<57344;)t++;return t}function createLineDialog(e){let t=crelt("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function go(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:i}=e,s=i.doc.lineAt(i.selection.main.head),[,l,h,c,u]=n,f=c?+c.slice(1):0,d=h?+h:s.number;if(h&&u){let e=d/100;l&&(e=e*("-"==l?-1:1)+s.number/i.doc.lines),d=Math.round(i.doc.lines*e)}else h&&l&&(d=d*("-"==l?-1:1)+s.number);let p=i.doc.line(Math.max(1,Math.min(i.doc.lines,d))),g=o.jT.cursor(p.from+Math.max(0,Math.min(f,p.length)));e.dispatch({effects:[M.of(!1),a.tk.scrollIntoView(g.from,{y:"center"})],selection:g}),e.focus()}return{dom:crelt("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:M.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),go())},onsubmit:e=>{e.preventDefault(),go()}},crelt("label",e.state.phrase("Go to line"),": ",t)," ",crelt("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(RegExpCursor.prototype[Symbol.iterator]=MultilineRegExpCursor.prototype[Symbol.iterator]=function(){return this});let M=o.Py.define(),L=o.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(M)&&(e=n.value);return e},provide:e=>a.mH.from(e,e=>e?createLineDialog:null)}),J=a.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),F={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},j=o.r$.define({combine:e=>(0,o.BO)(e,F,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),z=a.p.mark({class:"cm-selectionMatch"}),$=a.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function insideWordBoundaries(e,t,n,i){return(0==n||e(t.sliceDoc(n-1,n))!=o.D0.Word)&&(i==t.doc.length||e(t.sliceDoc(i,i+1))!=o.D0.Word)}let W=a.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(j),{state:n}=e,i=n.selection;if(i.ranges.length>1)return a.p.none;let s=i.main,l,h=null;if(s.empty){if(!t.highlightWordAroundCursor)return a.p.none;let e=n.wordAt(s.head);if(!e)return a.p.none;h=n.charCategorizer(s.head),l=n.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return a.p.none;if(t.wholeWords){var c,u,f;if(l=n.sliceDoc(s.from,s.to),!(insideWordBoundaries(h=n.charCategorizer(s.head),n,s.from,s.to)&&(c=h,u=s.from,f=s.to,c(n.sliceDoc(u,u+1))==o.D0.Word&&c(n.sliceDoc(f-1,f))==o.D0.Word)))return a.p.none}else if(!(l=n.sliceDoc(s.from,s.to).trim()))return a.p.none}let d=[];for(let i of e.visibleRanges){let e=new SearchCursor(n.doc,l,i.from,i.to);for(;!e.next().done;){let{from:i,to:o}=e.value;if((!h||insideWordBoundaries(h,n,i,o))&&(s.empty&&i<=s.from&&o>=s.to?d.push($.range(i,o)):(i>=s.to||o<=s.from)&&d.push(z.range(i,o)),d.length>t.maxMatches))return a.p.none}}return a.p.set(d)}},{decorations:e=>e.decorations}),Q=a.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),selectWord=({state:e,dispatch:t})=>{let{selection:n}=e,i=o.jT.create(n.ranges.map(t=>e.wordAt(t.head)||o.jT.cursor(t.head)),n.mainIndex);return!i.eq(n)&&(t(e.update({selection:i})),!0)},q=o.r$.define({combine:e=>(0,o.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new SearchPanel(e),scrollToMatch:e=>a.tk.scrollIntoView(e)})});let SearchQuery=class SearchQuery{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,D),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new RegExpQuery(this):new StringQuery(this)}getCursor(e,t=0,n){let i=e.doc?e:o.yy.create({doc:e});return null==n&&(n=i.doc.length),this.regexp?regexpCursor(this,i,t,n):stringCursor(this,i,t,n)}};let QueryType=class QueryType{constructor(e){this.spec=e}};function stringCursor(e,t,n,i){var s,a;return new SearchCursor(t.doc,e.unquoted,n,i,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(s=t.doc,a=t.charCategorizer(t.selection.main.head),(e,t,n,i)=>((i>e||i+n.length=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=stringCursor(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}};function regexpCursor(e,t,n,i){var s;return new RegExpCursor(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(s=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(s(charBefore(n.input,n.index))!=o.D0.Word||s(charAfter(n.input,n.index))!=o.D0.Word)&&(s(charAfter(n.input,n.index+n[0].length))!=o.D0.Word||s(charBefore(n.input,n.index+n[0].length))!=o.D0.Word)):void 0},n,i)}function charBefore(e,t){return e.slice((0,o.cp)(e,t,!1),t)}function charAfter(e,t){return e.slice(t,(0,o.cp)(e,t))}let RegExpQuery=class RegExpQuery extends QueryType{nextMatch(e,t,n){let i=regexpCursor(this.spec,e,n,e.doc.length).next();return i.done&&(i=regexpCursor(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let s=Math.max(t,n-1e4*i),o=regexpCursor(this.spec,e,s,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=regexpCursor(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}};let _=o.Py.define(),H=o.Py.define(),U=o.QQ.define({create:e=>new SearchState(defaultQuery(e).create(),null),update(e,t){for(let n of t.effects)n.is(_)?e=new SearchState(n.value.create(),e.panel):n.is(H)&&(e=new SearchState(e.query,n.value?createSearchPanel:null));return e},provide:e=>a.mH.from(e,e=>e.panel)});let SearchState=class SearchState{constructor(e,t){this.query=e,this.panel=t}};let V=a.p.mark({class:"cm-searchMatch"}),G=a.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Z=a.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(U))}update(e){let t=e.state.field(U);(t!=e.startState.field(U)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return a.p.none;let{view:n}=this,i=new o.f_;for(let t=0,s=n.visibleRanges,o=s.length;ts[t+1].from-500;)l=s[++t].to;e.highlight(n.state,a,l,(e,t)=>{let s=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,s?G:V)})}return i.finish()}},{decorations:e=>e.decorations});function searchCommand(e){return t=>{let n=t.state.field(U,!1);return n&&n.query.spec.valid?e(t,n):openSearchPanel(t)}}let K=searchCommand((e,{query:t})=>{let{to:n}=e.state.selection.main,i=t.nextMatch(e.state,n,n);if(!i)return!1;let s=o.jT.single(i.from,i.to),a=e.state.facet(q);return e.dispatch({selection:s,effects:[announceMatch(e,i),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),selectSearchInput(e),!0}),Y=searchCommand((e,{query:t})=>{let{state:n}=e,{from:i}=n.selection.main,s=t.prevMatch(n,i,i);if(!s)return!1;let a=o.jT.single(s.from,s.to),l=e.state.facet(q);return e.dispatch({selection:a,effects:[announceMatch(e,s),l.scrollToMatch(a.main,e)],userEvent:"select.search"}),selectSearchInput(e),!0}),X=searchCommand((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:o.jT.create(n.map(e=>o.jT.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),ee=searchCommand((e,{query:t})=>{let{state:n}=e,{from:i,to:s}=n.selection.main;if(n.readOnly)return!1;let l=t.nextMatch(n,i,i);if(!l)return!1;let h=[],c,u,f=[];if(l.from==i&&l.to==s&&(u=n.toText(t.getReplacement(l)),h.push({from:l.from,to:l.to,insert:u}),l=t.nextMatch(n,l.from,l.to),f.push(a.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),l){let t=0==h.length||h[0].from>=l.to?0:l.to-l.from-u.length;c=o.jT.single(l.from-t,l.to-t),f.push(announceMatch(e,l)),f.push(n.facet(q).scrollToMatch(c.main,e))}return e.dispatch({changes:h,selection:c,effects:f,userEvent:"input.replace"}),!0}),et=searchCommand((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(e=>{let{from:n,to:i}=e;return{from:n,to:i,insert:t.getReplacement(e)}});if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:a.tk.announce.of(i),userEvent:"input.replace.all"}),!0});function createSearchPanel(e){return e.state.facet(q).createPanel(e)}function defaultQuery(e,t){var n,i,s,o,a;let l=e.selection.main,h=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!h)return t;let c=e.facet(q);return new SearchQuery({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?h:h.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null==t?void 0:t.caseSensitive)&&void 0!==i?i:c.caseSensitive,literal:null!==(s=null==t?void 0:t.literal)&&void 0!==s?s:c.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:c.wholeWord})}function getSearchInput(e){let t=(0,a.Sd)(e,createSearchPanel);return t&&t.dom.querySelector("[main-field]")}function selectSearchInput(e){let t=getSearchInput(e);t&&t==e.root.activeElement&&t.select()}let openSearchPanel=e=>{let t=e.state.field(U,!1);if(t&&t.panel){let n=getSearchInput(e);if(n&&n!=e.root.activeElement){let i=defaultQuery(e.state,t.query.spec);i.valid&&e.dispatch({effects:_.of(i)}),n.focus(),n.select()}}else e.dispatch({effects:[H.of(!0),t?_.of(defaultQuery(e.state,t.query.spec)):o.Py.appendConfig.of(es)]});return!0},closeSearchPanel=e=>{let t=e.state.field(U,!1);if(!t||!t.panel)return!1;let n=(0,a.Sd)(e,createSearchPanel);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:H.of(!1)}),!0},en=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:K,shift:Y,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:K,shift:Y,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:s}=n.main,a=[],l=0;for(let t=new SearchCursor(e.doc,e.sliceDoc(i,s));!t.next().done;){if(a.length>1e3)return!1;t.value.from==i&&(l=a.length),a.push(o.jT.range(t.value.from,t.value.to))}return t(e.update({selection:o.jT.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,a.Sd)(e,createLineDialog);if(!t){let n=[M.of(!0)];null==e.state.field(L,!1)&&n.push(o.Py.appendConfig.of([L,J])),e.dispatch({effects:n}),t=(0,a.Sd)(e,createLineDialog)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return selectWord({state:e,dispatch:t});let i=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=i))return!1;let s=function(e,t){let{main:n,ranges:i}=e.selection,s=e.wordAt(n.head),o=s&&s.from==n.from&&s.to==n.to;for(let n=!1,s=new SearchCursor(e.doc,t,i[i.length-1].to);;)if(s.next(),s.done){if(n)return null;s=new SearchCursor(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),n=!0}else{if(n&&i.some(e=>e.from==s.value.from))continue;if(o){let t=e.wordAt(s.value.from);if(!t||t.from!=s.value.from||t.to!=s.value.to)continue}return s.value}}(e,i);return!!s&&(t(e.update({selection:e.selection.addRange(o.jT.range(s.from,s.to),!1),effects:a.tk.scrollIntoView(s.to)})),!0)},preventDefault:!0}];let SearchPanel=class SearchPanel{constructor(e){this.view=e;let t=this.query=e.state.field(U).query.spec;function button(e,t,n){return crelt("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:t.search,placeholder:phrase(e,"Find"),"aria-label":phrase(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:t.replace,placeholder:phrase(e,"Replace"),"aria-label":phrase(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=crelt("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,button("next",()=>K(e),[phrase(e,"next")]),button("prev",()=>Y(e),[phrase(e,"previous")]),button("select",()=>X(e),[phrase(e,"all")]),crelt("label",null,[this.caseField,phrase(e,"match case")]),crelt("label",null,[this.reField,phrase(e,"regexp")]),crelt("label",null,[this.wordField,phrase(e,"by word")]),...e.state.readOnly?[]:[crelt("br"),this.replaceField,button("replace",()=>ee(e),[phrase(e,"replace")]),button("replaceAll",()=>et(e),[phrase(e,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(e),"aria-label":phrase(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new SearchQuery({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:_.of(e)}))}keydown(e){(0,a.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Y:K)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),ee(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(_)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(q).top}};function phrase(e,t){return e.state.phrase(t)}let er=/[\s\.,:;?!]/;function announceMatch(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),s=e.state.doc.lineAt(n).to,o=Math.max(i.from,t-30),l=Math.min(s,n+30),h=e.state.sliceDoc(o,l);if(o!=i.from){for(let e=0;e<30;e++)if(!er.test(h[e+1])&&er.test(h[e])){h=h.slice(e);break}}if(l!=s){for(let e=h.length-1;e>h.length-30;e--)if(!er.test(h[e-1])&&er.test(h[e])){h=h.slice(0,e);break}}return a.tk.announce.of(`${e.state.phrase("current match")}. ${h} ${e.state.phrase("on line")} ${i.number}.`)}let ei=a.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),es=[U,o.Wl.low(Z),ei];let CompletionContext=class CompletionContext{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,l.qz)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),s=i.search(ensureAnchor(e,!1));return s<0?null:{from:n+s,to:this.pos,text:i.slice(s)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}};function toSet(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}let Option=class Option{constructor(e,t,n,i){this.completion=e,this.source=t,this.match=n,this.score=i}};function cur(e){return e.selection.main.from}function ensureAnchor(e,t){var n;let{source:i}=e,s=t&&"^"!=i[0],o="$"!=i[i.length-1];return s||o?RegExp(`${s?"^":""}(?:${i})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}let eo=o.q6.define(),ea=new WeakMap;function asSource(e){if(!Array.isArray(e))return e;let t=ea.get(e);return t||ea.set(e,t=function(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,i]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e{let s=e.matchBefore(i);return s||e.explicit?{from:s?s.from:e.pos,options:t,validFor:n}:null}}(e)),t}let el=o.Py.define(),eh=o.Py.define();let FuzzyMatcher=class FuzzyMatcher{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(v=(0,o.bg)(c))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!i||1==S&&y||0==x&&0!=S)&&(t[f]==c||n[f]==c&&(d=!0)?a[f++]=i:a.length&&(k=!1)),x=S,i+=(0,o.nZ)(c)}return f==h&&0==a[0]&&k?this.result(-100+(d?-200:0),a,e):p==h&&0==g?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==h?this.ret(-900-e.length,[g,m]):f==h?this.result(-100+(d?-200:0)+-700+(k?0:-1100),a,e):2!=t.length&&this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],s=0;for(let e of t){let t=e+(this.astral?(0,o.nZ)((0,o.gm)(n,e)):1);s&&i[s-1]==e?i[s-1]=t:(i[s++]=e,i[s++]=t)}return this.ret(e-n.length,i)}};let ec=o.r$.define({combine:e=>(0,o.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>joinClass(e(n),t(n)),optionClass:(e,t)=>n=>joinClass(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function joinClass(e,t){return e?t?e+" "+t:e:t}function defaultPositionInfo(e,t,n,i,s,o){let l=e.textDirection==a.Nm.RTL,h=l,c=!1,u="top",f,d,p=t.left-s.left,g=s.right-t.right,m=i.right-i.left,y=i.bottom-i.top;if(h&&p=y||e>t.top?f=n.bottom-t.top:(u="bottom",f=t.bottom-n.top)}let k=(t.bottom-t.top)/o.offsetHeight,x=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${f/k}px; max-width: ${d/x}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":h?"left":"right")}}function rangeAroundSelected(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}let CompletionTooltip=class CompletionTooltip{constructor(e,t,n){let i;this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:a}=s.open,l=e.state.facet(ec);this.optionContent=(i=l.addToOptions.slice(),l.icons&&i.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),i.push({render(e,t,n,i){let s=document.createElement("span");s.className="cm-completionLabel";let o=e.displayLabel||e.label,a=0;for(let e=0;ea&&s.appendChild(document.createTextNode(o.slice(a,t)));let l=s.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(o.slice(t,n))),l.className="cm-completionMatchedText",a=n}return ae.position-t.position).map(e=>e.render)),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=rangeAroundSelected(o.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:i}=e.state.field(t).open;for(let t=n.target,s;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(s=/-(\d+)$/.exec(t.id))&&+s[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(ec).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:eh.of(null)})}),this.showOptions(o,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=i){let{options:s,selected:o,disabled:a}=n.open;i.open&&i.open.options==s||(this.range=rangeAroundSelected(s.length,o,e.state.facet(ec).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),a!=(null===(t=i.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=rangeAroundSelected(t.options.length,t.selected,this.view.state.facet(ec).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let s="string"==typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)}).catch(e=>(0,a.OO)(this.view.state,e,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:i}=e;n.appendChild(t),this.infoDestroy=i||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,n;let i,s,o,a=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)"LI"==t.nodeName&&t.id?n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),a=t):t.hasAttribute("aria-selected")&&t.removeAttribute("aria-selected"):n--;return a&&(t=this.list,n=a,i=t.getBoundingClientRect(),s=n.getBoundingClientRect(),o=i.height/t.offsetHeight,s.topi.bottom&&(t.scrollTop+=(s.bottom-i.bottom)/o)),a}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.space;if(!s){let e=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return i.top>Math.min(s.bottom,t.bottom)-10||i.bottomn.from||0==n.from)&&(s=e,"string"!=typeof h&&h.header?i.appendChild(h.header(h)):i.appendChild(document.createElement("completion-section")).textContent=e)}let c=i.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);for(let e of(u&&(c.className=u),this.optionContent)){let t=e(a,this.view.state,this.view,l);t&&c.appendChild(t)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to=this.options.length?this:new CompletionDialog(this.options,makeAttrs(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,i,s){let o=function(e,t){let n=[],i=null,addOption=e=>{n.push(e);let{section:t}=e.completion;if(t){i||(i=[]);let e="string"==typeof t?t:t.name;i.some(t=>t.name==e)||i.push("string"==typeof t?{name:e}:t)}};for(let i of e)if(i.hasResult()){let e=i.result.getMatch;if(!1===i.result.filter)for(let t of i.result.options)addOption(new Option(t,i.source,e?e(t):[],1e9-n.length));else{let n=new FuzzyMatcher(t.sliceDoc(i.from,i.to));for(let t of i.result.options)if(n.match(t.label)){let s=t.displayLabel?e?e(t,n.matched):[]:n.matched;addOption(new Option(t,i.source,s,n.score+(t.boost||0)))}}}if(i){let e=Object.create(null),t=0;for(let n of i.sort((e,t)=>{var n,i;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(i=t.rank)&&void 0!==i?i:1e9)||(e.namet.score-e.score||a(e.completion,t.completion))){let t=e.completion;o&&o.label==t.label&&o.detail==t.detail&&(null==o.type||null==t.type||o.type==t.type)&&o.apply==t.apply&&o.boost==t.boost?score(e.completion)>score(o)&&(s[s.length-1]=e):s.push(e),o=e.completion}return s}(e,t);if(!o.length)return i&&e.some(e=>1==e.state)?new CompletionDialog(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let a=t.facet(ec).selectOnOpen?0:-1;if(i&&i.selected!=a&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:createTooltip,above:s.aboveCursor},i?i.timestamp:Date.now(),a,!1)}map(e){return new CompletionDialog(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}};let CompletionState=class CompletionState{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new CompletionState(ef,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(ec),i=(n.override||t.languageDataAt("autocomplete",cur(t)).map(asSource)).map(t=>(this.active.find(e=>e.source==t)||new ActiveSource(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let s=this.open;for(let o of(s&&e.docChanged&&(s=s.map(e.changes)),e.selection||i.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n1==e.state)&&(s=null),!s&&i.every(e=>1!=e.state)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new ActiveSource(e.source,0):e)),e.effects))o.is(ep)&&(s=s&&s.setSelected(o.value,this.id));return i==this.active&&s==this.open?this:new CompletionState(i,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:eu}};let eu={"aria-autocomplete":"list"};function makeAttrs(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}let ef=[];function getUserEvent(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}let ActiveSource=class ActiveSource{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=getUserEvent(e),i=this;for(let s of(n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new ActiveSource(i.source,0)),e.effects))if(s.is(el))i=new ActiveSource(i.source,1,s.value?cur(e.state):-1);else if(s.is(eh))i=new ActiveSource(i.source,0);else if(s.is(ed))for(let e of s.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new ActiveSource(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(cur(e.startState))?new ActiveSource(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new ActiveSource(this.source,this.state,e.mapPos(this.explicitPos))}};let ActiveResult=class ActiveResult extends ActiveSource{constructor(e,t,n,i,s){super(e,2,t),this.result=n,this.from=i,this.to=s}hasResult(){return!0}handleUserEvent(e,t,n){var i;let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=cur(e.state);if((this.explicitPos<0?a<=s:ao||"delete"==t&&cur(e.startState)==this.from)return new ActiveSource(this.source,"input"==t&&n.activateOnTyping?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),h;return!function(e,t,n,i){if(!e)return!1;let s=t.sliceDoc(n,i);return"function"==typeof e?e(s,n,i,t):ensureAnchor(e,!0).test(s)}(this.result.validFor,e.state,s,o)?this.result.update&&(h=this.result.update(this.result,s,o,new CompletionContext(e.state,a,l>=0)))?new ActiveResult(this.source,l,h,h.from,null!==(i=h.to)&&void 0!==i?i:cur(e.state)):new ActiveSource(this.source,1,l):new ActiveResult(this.source,l,this.result,s,o)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new ActiveSource(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new ActiveResult(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}};let ed=o.Py.define({map:(e,t)=>e.map(e=>e.map(t))}),ep=o.Py.define(),eg=o.QQ.define({create:()=>CompletionState.start(),update:(e,t)=>e.update(t),provide:e=>[a.hJ.from(e,e=>e.tooltip),a.tk.contentAttributes.from(e,e=>e.attrs)]});function applyCompletion(e,t){let n=t.completion.apply||t.completion.label,i=e.state.field(eg).active.find(e=>e.source==t.source);return i instanceof ActiveResult&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:s}=e.selection,a=n-s.from,l=i-s.from;return Object.assign(Object.assign({},e.changeByRange(h=>h!=s&&n!=i&&e.sliceDoc(h.from+a,h.from+l)!=e.sliceDoc(n,i)?{range:h}:{changes:{from:h.from+a,to:i==s.from?h.to:h.from+l,insert:t},range:o.jT.cursor(h.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:eo.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}let createTooltip=e=>new CompletionTooltip(e,eg,applyCompletion);function moveCompletionSelection(e,t="option"){return n=>{let i=n.state.field(eg,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(e?1:-1):e?0:l-1;return h<0?h="page"==t?0:l-1:h>=l&&(h="page"==t?l-1:0),n.dispatch({effects:ep.of(h)}),!0}}let RunningQuery=class RunningQuery{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}};let em=a.lg.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0,e.state.field(eg).active))1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(eg);if(!e.selectionSet&&!e.docChanged&&e.startState.field(eg)==t)return;let n=e.transactions.some(e=>(e.selection||e.docChanged)&&!getUserEvent(e));for(let t=0;t50&&Date.now()-i.time>1e3){for(let e of i.context.abortListeners)try{e()}catch(e){(0,a.OO)(this.view.state,e)}i.context.abortListeners=null,this.running.splice(t--,1)}else i.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(e=>1==e.state&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),50):-1,0!=this.composing)for(let t of e.transactions)"input"==getUserEvent(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view;for(let t of e.field(eg).active)1!=t.state||this.running.some(e=>e.active.source==t.source)||this.startQuery(t)}startQuery(e){let{state:t}=this.view,n=cur(t),i=new CompletionContext(t,n,e.explicitPos==n),s=new RunningQuery(e,i);this.running.push(s),Promise.resolve(e.source(i)).then(e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:eh.of(null)}),(0,a.OO)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ec).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(ec);for(let i=0;ie.source==s.active.source);if(o&&1==o.state){if(null==s.done){let e=new ActiveSource(s.active.source,0);for(let t of s.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}}t.length&&this.view.dispatch({effects:ed.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(eg,!1);if(t&&t.tooltip&&this.view.state.facet(ec).closeOnBlur){let n=t.open&&(0,a.gB)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:eh.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:el.of(!1)}),20),this.composing=0}}}),ey=a.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),ek=a.p.widget({widget:new class extends a.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),ex=a.p.mark({class:"cm-snippetField"});let ActiveSnippet=class ActiveSnippet{constructor(e,t){this.ranges=e,this.active=t,this.deco=a.p.set(e.map(e=>(e.from==e.to?ek:ex).range(e.from,e.to)))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new ActiveSnippet(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}};let ev=o.Py.define({map:(e,t)=>e&&e.map(t)}),eS=o.Py.define(),eb=o.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(ev))return n.value;if(n.is(eS)&&e)return new ActiveSnippet(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>a.tk.decorations.from(e,e=>e?e.deco:a.p.none)});function moveField(e){return({state:t,dispatch:n})=>{var i;let s=t.field(eb,!1);if(!s||e<0&&0==s.active)return!1;let a=s.active+e,l=e>0&&!s.ranges.some(t=>t.field==a+e);return n(t.update({selection:(i=s.ranges,o.jT.create(i.filter(e=>e.field==a).map(e=>o.jT.range(e.from,e.to)))),effects:ev.of(l?null:new ActiveSnippet(s.ranges,a)),scrollIntoView:!0})),!0}}let ew=moveField(1),eC=moveField(-1),eA={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},eT=o.Py.define({map(e,t){let n=t.mapPos(e,-1,o.gc.TrackAfter);return null==n?void 0:n}}),eP=new class extends o.uU{};eP.startSide=1,eP.endSide=-1;let eO=o.QQ.define({create:()=>o.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of(e=e.map(t.changes),t.effects))n.is(eT)&&(e=e.update({add:[eP.range(n.value,n.value+1)]}));return e}}),eI="()[]{}<>";function closing(e){for(let t=0;t{if((eB?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,o.nZ)((0,o.gm)(i,0))||t!=s.from||n!=s.to)return!1;let a=function(e,t){let n=config(e,e.selection.main.head),i=n.brackets||eA.brackets;for(let s of i){let a=closing((0,o.gm)(s,0));if(t==s)return a==s?function(e,t,n,i){let s=i.stringPrefixes||eA.stringPrefixes,a=null,h=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:eT.of(i.to+t.length),range:o.jT.range(i.anchor+t.length,i.head+t.length)};let h=i.head,c=nextChar(e.doc,h),u;if(c==t){if(nodeStart(e,h))return{changes:{insert:t+t,from:h},effects:eT.of(h+t.length),range:o.jT.cursor(h+t.length)};if(closedBracketAt(e,h)){let i=n&&e.sliceDoc(h,h+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:h,to:h+i.length,insert:i},range:o.jT.cursor(h+i.length)}}}else if(n&&e.sliceDoc(h-2*t.length,h)==t+t&&(u=canStartStringAt(e,h-2*t.length,s))>-1&&nodeStart(e,u))return{changes:{insert:t+t+t+t,from:h},effects:eT.of(h+t.length),range:o.jT.cursor(h+t.length)};else if(e.charCategorizer(h)(c)!=o.D0.Word&&canStartStringAt(e,h,s)>-1&&!function(e,t,n,i){let s=(0,l.qz)(e).resolveInner(t,-1),o=i.reduce((e,t)=>Math.max(e,t.length),0);for(let a=0;a<5;a++){let a=e.sliceDoc(s.from,Math.min(s.to,s.from+n.length+o)),l=a.indexOf(n);if(!l||l>-1&&i.indexOf(a.slice(0,l))>-1){let t=s.firstChild;for(;t&&t.from==s.from&&t.to-t.from>n.length+l;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let h=s.to==t&&s.parent;if(!h)break;s=h}return!1}(e,h,t,s))return{changes:{insert:t+t,from:h},effects:eT.of(h+t.length),range:o.jT.cursor(h+t.length)};return{range:a=i}});return a?null:e.update(h,{scrollIntoView:!0,userEvent:"input.type"})}(e,s,i.indexOf(s+s+s)>-1,n):function(e,t,n,i){let s=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:eT.of(a.to+t.length),range:o.jT.range(a.anchor+t.length,a.head+t.length)};let l=nextChar(e.doc,a.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:t+n,from:a.head},effects:eT.of(a.head+t.length),range:o.jT.cursor(a.head+t.length)}:{range:s=a}});return s?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,s,a,n.before||eA.before);if(t==a&&closedBracketAt(e,e.selection.main.from))return function(e,t,n){let i=null,s=e.changeByRange(t=>t.empty&&nextChar(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:o.jT.cursor(t.head+n.length)}:i={range:t});return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,0,a)}return null}(e.state,i);return!!a&&(e.dispatch(a),!0)}),eN=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=config(e,e.selection.main.head).brackets||eA.brackets,i=null,s=e.changeByRange(t=>{if(t.empty){var s,a;let i;let l=(s=e.doc,a=t.head,i=s.sliceString(a-2,a),(0,o.nZ)((0,o.gm)(i,0))==i.length?i:i.slice(1));for(let i of n)if(i==l&&nextChar(e.doc,t.head)==closing((0,o.gm)(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:o.jT.cursor(t.head-i.length)}}return{range:i=t}});return i||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function closedBracketAt(e,t){let n=!1;return e.field(eO).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function nextChar(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,o.nZ)((0,o.gm)(n,0)))}function nodeStart(e,t){let n=(0,l.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function canStartStringAt(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=o.D0.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&i(e.sliceDoc(n-1,n))!=o.D0.Word)return n}return -1}let eD=[{key:"Ctrl-Space",run:e=>!!e.state.field(eg,!1)&&(e.dispatch({effects:el.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(eg,!1);return!!(t&&t.active.some(e=>0!=e.state))&&(e.dispatch({effects:eh.of(null)}),!0)}},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(eg,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(ec).defaultKeymap?[eD]:[]));let SelectedDiagnostic=class SelectedDiagnostic{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}};let LintState=class LintState{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,s=n.facet(e$).markerFilter;s&&(i=s(i));let o=a.p.set(i.map(e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?a.p.widget({widget:new DiagnosticWidget(e),diagnostic:e}).range(e.from):a.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to)),!0);return new LintState(o,t,findDiagnostic(o))}};function findDiagnostic(e,t=null,n=0){let i=null;return e.between(n,1e9,(e,n,{spec:s})=>{if(!t||s.diagnostic==t)return i=new SelectedDiagnostic(e,n,s.diagnostic),!1}),i}function hideTooltip(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(eM))||e.changes.touchesRange(n.from,n.to))}let eM=o.Py.define(),eL=o.Py.define(),eJ=o.Py.define(),eF=o.QQ.define({create:()=>new LintState(a.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),i=null;if(e.selected){let s=t.changes.mapPos(e.selected.from,1);i=findDiagnostic(n,e.selected.diagnostic,s)||findDiagnostic(n,null,s)}e=new LintState(n,e.panel,i)}for(let n of t.effects)n.is(eM)?e=LintState.init(n.value,e.panel,t.state):n.is(eL)?e=new LintState(e.diagnostics,n.value?LintPanel.open:null,e.selected):n.is(eJ)&&(e=new LintState(e.diagnostics,e.panel,n.value));return e},provide:e=>[a.mH.from(e,e=>e.panel),a.tk.decorations.from(e,e=>e.diagnostics)]}),ej=a.p.mark({class:"cm-lintRange cm-lintRange-active"}),closeLintPanel=e=>{let t=e.state.field(eF,!1);return!!t&&!!t.panel&&(e.dispatch({effects:eL.of(!1)}),!0)},ez=[{key:"Mod-Shift-m",run:e=>{var t,n;let i=e.state.field(eF,!1);i&&i.panel||e.dispatch({effects:(t=e.state,n=[eL.of(!0)],t.field(eF,!1)?n:n.concat(o.Py.appendConfig.of(eq)))});let s=(0,a.Sd)(e,LintPanel.open);return s&&s.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(eF,!1);if(!t)return!1;let n=e.state.selection.main,i=t.diagnostics.iter(n.to+1);return(!!i.value||!!(i=t.diagnostics.iter(0)).value&&(i.from!=n.from||i.to!=n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],e$=o.r$.define({combine:e=>Object.assign({sources:e.map(e=>e.source)},(0,o.BO)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function assignKeys(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function renderDiagnostic(e,t,n){var i;let s=n?assignKeys(t.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},crelt("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map((n,i)=>{let o=!1,click=i=>{if(i.preventDefault(),o)return;o=!0;let s=findDiagnostic(e.state.field(eF).diagnostics,t);s&&n.apply(e,s.from,s.to)},{name:a}=n,l=s[i]?a.indexOf(s[i]):-1,h=l<0?a:[a.slice(0,l),crelt("u",a.slice(l,l+1)),a.slice(l+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:click,onmousedown:click,"aria-label":` Action: ${a}${l<0?"":` (access key "${s[i]})"`}.`},h)}),t.source&&crelt("div",{class:"cm-diagnosticSource"},t.source))}let DiagnosticWidget=class DiagnosticWidget extends a.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}};let PanelItem=class PanelItem{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=renderDiagnostic(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}};let LintPanel=class LintPanel{constructor(e){this.view=e,this.items=[],this.list=crelt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)closeLintPanel(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],i=assignKeys(n.actions);for(let s=0;s{for(let t=0;tcloseLintPanel(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(eF).selected;if(!e)return -1;for(let t=0;t{let l=-1,h;for(let e=n;en&&(this.items.splice(n,l-n),i=!0)),t&&h.diagnostic==t.diagnostic?h.dom.hasAttribute("aria-selected")||(h.dom.setAttribute("aria-selected","true"),s=h):h.dom.hasAttribute("aria-selected")&&h.dom.removeAttribute("aria-selected"),n++});n({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function rm(){let t=e;e=t.nextSibling,t.remove()}for(let t of this.items)if(t.dom.parentNode==this.list){for(;e!=t.dom;)rm();e=t.dom.nextSibling}else this.list.insertBefore(t.dom,e);for(;e;)rm()}moveSelection(e){if(this.selectedIndex<0)return;let t=findDiagnostic(this.view.state.field(eF).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:eJ.of(t)})}static open(e){return new LintPanel(e)}};function underline(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}let eW=a.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});a.SJ;let eQ=o.Py.define(),eq=[eF,a.tk.decorations.compute([eF],e=>{let{selected:t,panel:n}=e.field(eF);return t&&n&&t.from!=t.to?a.p.set([ej.range(t.from,t.to)]):a.p.none}),(0,a.bF)(function(e,t,n){let{diagnostics:i}=e.state.field(eF),s=[],o=2e8,a=0;i.between(t-(n<0?1:0),t+(n>0?1:0),(e,i,{spec:l})=>{t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t{var t;return{dom:(t=e,crelt("ul",{class:"cm-tooltip-lint"},s.map(e=>renderDiagnostic(t,e,!1))))}}}:null},{hideOn:hideTooltip}),eW];var basicSetup=function(e){void 0===e&&(e={});var t,{crosshairCursor:n=!1}=e,i=[];!1!==e.closeBracketsKeymap&&(i=i.concat(eN)),!1!==e.defaultKeymap&&(i=i.concat(I)),!1!==e.searchKeymap&&(i=i.concat(en)),!1!==e.historyKeymap&&(i=i.concat(C)),!1!==e.foldKeymap&&(i=i.concat(l.e7)),!1!==e.completionKeymap&&(i=i.concat(eD)),!1!==e.lintKeymap&&(i=i.concat(ez));var s=[];if(!1!==e.lineNumbers&&s.push((0,a.Eu)()),!1!==e.highlightActiveLineGutter&&s.push((0,a.HQ)()),!1!==e.highlightSpecialChars&&s.push((0,a.AE)()),!1!==e.history&&s.push(function(e={}){return[y,m.of(e),a.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?k:"historyRedo"==e.inputType?x:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&s.push((0,l.mi)()),!1!==e.drawSelection&&s.push((0,a.Uw)()),!1!==e.dropCursor&&s.push((0,a.qr)()),!1!==e.allowMultipleSelections&&s.push(o.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&s.push((0,l.nY)()),!1!==e.syntaxHighlighting&&s.push((0,l.nF)(l.R_,{fallback:!0})),!1!==e.bracketMatching&&s.push((0,l.n$)()),!1!==e.closeBrackets&&s.push([eR,eO]),!1!==e.autocompletion&&s.push(function(e={}){return[eg,ec.of(e),em,eE,ey]}()),!1!==e.rectangularSelection&&s.push((0,a.Zs)()),!1!==n&&s.push((0,a.S2)()),!1!==e.highlightActiveLine&&s.push((0,a.ZO)()),!1!==e.highlightSelectionMatches){let e;s.push((e=[Q,W],t&&e.push(j.of(t)),e))}return e.tabSize&&"number"==typeof e.tabSize&&s.push(l.c.of(" ".repeat(e.tabSize))),s.concat([a.$f.of(i.flat())]).filter(Boolean)},e_=n(5524);let eH="#e06c75",eU="#abb2bf",eV="#7d8799",eG="#d19a66",eZ="#2c313a",eK="#282c34",eY="#353a42",eX="#528bff",e0=a.tk.theme({"&":{color:eU,backgroundColor:eK},".cm-content":{caretColor:eX},".cm-cursor, .cm-dropCursor":{borderLeftColor:eX},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:eU},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:eK,color:eV,border:"none"},".cm-activeLineGutter":{backgroundColor:eZ},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:eY},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:eY,borderBottomColor:eY},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:eZ,color:eU}}},{dark:!0}),e1=l.Qf.define([{tag:e_.pJ.keyword,color:"#c678dd"},{tag:[e_.pJ.name,e_.pJ.deleted,e_.pJ.character,e_.pJ.propertyName,e_.pJ.macroName],color:eH},{tag:[e_.pJ.function(e_.pJ.variableName),e_.pJ.labelName],color:"#61afef"},{tag:[e_.pJ.color,e_.pJ.constant(e_.pJ.name),e_.pJ.standard(e_.pJ.name)],color:eG},{tag:[e_.pJ.definition(e_.pJ.name),e_.pJ.separator],color:eU},{tag:[e_.pJ.typeName,e_.pJ.className,e_.pJ.number,e_.pJ.changed,e_.pJ.annotation,e_.pJ.modifier,e_.pJ.self,e_.pJ.namespace],color:"#e5c07b"},{tag:[e_.pJ.operator,e_.pJ.operatorKeyword,e_.pJ.url,e_.pJ.escape,e_.pJ.regexp,e_.pJ.link,e_.pJ.special(e_.pJ.string)],color:"#56b6c2"},{tag:[e_.pJ.meta,e_.pJ.comment],color:eV},{tag:e_.pJ.strong,fontWeight:"bold"},{tag:e_.pJ.emphasis,fontStyle:"italic"},{tag:e_.pJ.strikethrough,textDecoration:"line-through"},{tag:e_.pJ.link,color:eV,textDecoration:"underline"},{tag:e_.pJ.heading,fontWeight:"bold",color:eH},{tag:[e_.pJ.atom,e_.pJ.bool,e_.pJ.special(e_.pJ.variableName)],color:eG},{tag:[e_.pJ.processingInstruction,e_.pJ.string,e_.pJ.inserted],color:"#98c379"},{tag:e_.pJ.invalid,color:"#ffffff"}]),e2=[e0,(0,l.nF)(e1)];var e3=a.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),getDefaultExtensions=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:i=!1,theme:s="light",placeholder:l="",basicSetup:h=!0}=e,c=[];switch(t&&c.unshift(a.$f.of([B])),h&&("boolean"==typeof h?c.unshift(basicSetup()):c.unshift(basicSetup(h))),l&&c.unshift((0,a.W$)(l)),s){case"light":c.push(e3);break;case"dark":c.push(e2);break;case"none":break;default:c.push(s)}return!1===n&&c.push(a.tk.editable.of(!1)),i&&c.push(o.yy.readOnly.of(!0)),[...c]},getStatistics=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}),e4=o.q6.define(),e5=[],e6=n(5893),e9=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],e7=(0,s.forwardRef)((e,t)=>{var{className:n,value:l="",selection:h,extensions:c=[],onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,autoFocus:g,theme:m="light",height:y,minHeight:k,maxHeight:x,width:v,minWidth:S,maxWidth:b,basicSetup:w,placeholder:C,indentWithTab:A,editable:T,readOnly:P,root:O,initialState:I}=e,B=function(e,t){if(null==e)return{};var n,i,s={},o=Object.keys(e);for(i=0;i=0||(s[n]=e[n]);return s}(e,e9),R=(0,s.useRef)(null),{state:N,view:D,container:E}=function(e){var{value:t,selection:n,onChange:i,onStatistics:l,onCreateEditor:h,onUpdate:c,extensions:u=e5,autoFocus:f,theme:d="light",height:p=null,minHeight:g=null,maxHeight:m=null,width:y=null,minWidth:k=null,maxWidth:x=null,placeholder:v="",editable:S=!0,readOnly:b=!1,indentWithTab:w=!0,basicSetup:C=!0,root:A,initialState:T}=e,[P,O]=(0,s.useState)(),[I,B]=(0,s.useState)(),[R,N]=(0,s.useState)(),D=a.tk.theme({"&":{height:p,minHeight:g,maxHeight:m,width:y,minWidth:k,maxWidth:x},"& .cm-scroller":{height:"100% !important"}}),E=[a.tk.updateListener.of(e=>{e.docChanged&&"function"==typeof i&&!e.transactions.some(e=>e.annotation(e4))&&i(e.state.doc.toString(),e),l&&l(getStatistics(e))}),D,...getDefaultExtensions({theme:d,editable:S,readOnly:b,placeholder:v,indentWithTab:w,basicSetup:C})];return c&&"function"==typeof c&&E.push(a.tk.updateListener.of(c)),E=E.concat(u),(0,s.useEffect)(()=>{if(P&&!R){var e={doc:t,selection:n,extensions:E},i=T?o.yy.fromJSON(T.json,e,T.fields):o.yy.create(e);if(N(i),!I){var s=new a.tk({state:i,parent:P,root:A});B(s),h&&h(s,i)}}return()=>{I&&(N(void 0),B(void 0))}},[P,R]),(0,s.useEffect)(()=>O(e.container),[e.container]),(0,s.useEffect)(()=>()=>{I&&(I.destroy(),B(void 0))},[I]),(0,s.useEffect)(()=>{f&&I&&I.focus()},[f,I]),(0,s.useEffect)(()=>{I&&I.dispatch({effects:o.Py.reconfigure.of(E)})},[d,u,p,g,m,y,k,x,v,S,b,w,C,i,c]),(0,s.useEffect)(()=>{if(void 0!==t){var e=I?I.state.doc.toString():"";I&&t!==e&&I.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[e4.of(!0)]})}},[t,I]),{state:R,setState:N,view:I,setView:B,container:P,setContainer:O}}({container:R.current,root:O,value:l,autoFocus:g,theme:m,height:y,minHeight:k,maxHeight:x,width:v,minWidth:S,maxWidth:b,basicSetup:w,placeholder:C,indentWithTab:A,editable:T,readOnly:P,selection:h,onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,extensions:c,initialState:I});if((0,s.useImperativeHandle)(t,()=>({editor:R.current,state:N,view:D}),[R,E,N,D]),"string"!=typeof l)throw Error("value must be typeof string but got "+typeof l);var M="string"==typeof m?"cm-theme-"+m:"cm-theme";return(0,e6.jsx)("div",(0,i.Z)({ref:R,className:""+M+(n?" "+n:"")},B))});e7.displayName="CodeMirror";var e8=e7},6010:function(e,t,n){t.Z=function(){for(var e,t,n=0,i="";nt%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new Stack(e,[],t,n,n,0,[],0,i?new StackContext(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=65535&e,{parser:s}=this.p,o=s.dynamicPrecedence(i);if(o&&(this.score+=o),0==n){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(null===(t=this.p.parser.nodeSet.types[i])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(i,l)}storeNode(e,t,n,i=4,s=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t){e.buffer[i-2]=n;return}}}if(s&&this.pos!=n){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n,i){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:s}=this.p;(i>this.pos||t<=s.maxNode)&&(this.pos=i,s.stateFlag(e,1)||(this.reducePos=i)),this.pushState(e,n),this.shiftContext(t,n),t<=s.maxNode&&this.buffer.push(t,n,i,4)}else this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4)}apply(e,t,n,i){65536&e?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new Stack(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new SimulatedStack(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if((65536&n)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,s;i1&t&&e==i)||n.push(t[e],i)}t=n}let n=[];for(let e=0;e>19,i=65535&t,s=this.stack.length-3*n;if(s<0||0>e.getGoto(this.stack[s],i,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],explore=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let i=65535&t,s=this.stack.length-3*n;if(s>=0&&e.getGoto(this.stack[s],i,!1)>=0)return n<<19|65536|i}}else{let e=explore(t,i+1);if(null!=e)return e}})};return explore(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};let StackContext=class StackContext{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}};let SimulatedStack=class SimulatedStack{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}};let StackBufferCursor=class StackBufferCursor{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new StackBufferCursor(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new StackBufferCursor(this.stack,this.pos,this.index)}};function decodeArray(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,s=0;i=92&&t--,t>=34&&t--;let s=t-32;if(s>=46&&(s-=46,n=!0),o+=s,n)break;o*=46}n?n[s++]=o:n=new t(o)}return n}let CachedToken=class CachedToken{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}};let o=new CachedToken;let InputStream=class InputStream{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=o,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,s=this.pos+e;for(;sn.to:s>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];s+=e.from-n.to,n=e}return s}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t=this.chunk2Pos&&nt.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=o,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}};let TokenGroup=class TokenGroup{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;readToken(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};function readToken(e,t,n,i,s,o){let a=0,l=1<0){let n=e[i];if(h.allows(n)&&(-1==t.token.value||t.token.value==n||function(e,t,n,i){let s=findOffset(n,i,t);return s<0||findOffset(n,i,e)c&&65535==e[n+3*u-3]){a=e[n+3*u-1];continue}for(;c>1,o=n+s+(s<<1),l=e[o],h=e[o+1]||65536;if(i=h)c=s+1;else{a=e[o+2],t.advance();continue t}}break}}function findOffset(e,t,n){for(let i=t,s;65535!=(s=e[i]);i++)if(s==n)return i-t;return -1}TokenGroup.prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1,(class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?decodeArray(e):e}token(e,t){let n=e.pos,i=0;for(;;){let n=e.next<0,s=e.resolveOffset(1,1);if(readToken(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!n&&i++,null==s)break;e.reset(s,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}).prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;let a=void 0!==s&&s.env&&/\bparse\b/.test(s.env.LOG),l=null;function cutAt(e,t,n){let s=e.cursor(i.vj.IncludeAnonymous);for(s.moveTo(t);;)if(!(n<0?s.childBefore(t):s.childAfter(t)))for(;;){if((n<0?s.tot)&&!s.type.isError)return n<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(e.length,Math.max(s.from+1,t+25));if(n<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return n<0?0:e.length}}let FragmentCursor=class FragmentCursor{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?cutAt(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?cutAt(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(o instanceof i.mp){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+o.length}}};let TokenCache=class TokenCache{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new CachedToken)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:s}=i,o=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let i=0;ic.end+25&&(l=Math.max(c.lookAhead,l)),0!=c.value)){let i=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!h.extend&&(n=c,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),n||e.pos!=this.stream.end||((n=new CachedToken).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new CachedToken,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i=0&&n.p.parser.dialect.allows(s>>1)){(1&s)==0?e.value=s>>1:e.extended=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let t=0;t4*e.bufferLength?new FragmentCursor(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,s=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oi)s.push(a);else{if(this.advanceStack(a,s,n))continue;e||(e=[],t=[]),e.push(a);let i=this.tokens.getMainToken(a);t.push(i.value,i.end)}break}}if(!s.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,s);if(n)return a&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(s.length>e)for(s.sort((e,t)=>t.score-e.score);s.length>e;)s.pop();s.some(e=>e.reducePos>i)&&this.recovering--}else if(s.length>1){n:for(let e=0;e500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)s.splice(n--,1);else{s.splice(e--,1);continue n}}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let h=this.fragments.nodeAt(s);h;){let s=this.parser.nodeSet.types[h.type.id]==h.type?o.getGoto(e.state,h.type.id):-1;if(s>-1&&h.length&&(!t||(h.prop(i.md.contextHash)||0)==n))return e.useNode(h,s),a&&console.log(l+this.stackID(e)+` (via reuse of ${o.getName(h.type.id)})`),!0;if(!(h instanceof i.mp)||0==h.children.length||h.positions[0]>0)break;let c=h.children[0];if(c instanceof i.mp&&0==h.positions[0])h=c;else break}}let h=o.stateSlot(e.state,4);if(h>0)return e.reduce(h),a&&console.log(l+this.stackID(e)+` (via always-reduce ${o.getName(65535&h)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let i=0;is?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return pushStackDedup(e,t),!0}}runRecovery(e,t,n){let i=null,s=!1;for(let o=0;o ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),a&&console.log(u+this.stackID(l)+" (restarted)"),this.advanceFully(l,n))))continue;let f=l.split(),d=u;for(let e=0;f.forceReduce()&&e<10&&(a&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));e++)a&&(d=this.stackID(f)+" -> ");for(let e of l.recoverByInsert(h))a&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>l.pos?(c==l.pos&&(c++,h=0),l.recoverByDelete(h,c),a&&console.log(u+this.stackID(l)+` (via recover-delete ${this.parser.getName(h)})`),pushStackDedup(l,n)):(!i||i.scoree.topRules[t][1]),s=[];for(let e=0;e=0)setProp(i,e,t[n++]);else{let s=t[n+-i];for(let o=-i;o>0;o--)setProp(t[n++],e,s);n++}}}this.nodeSet=new i.Lj(t.map((t,o)=>i.Jq.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:s[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=i.L3;let o=decodeArray(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new TokenGroup(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new Parse(this,e,t,n);for(let s of this.wrappers)i=s(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return -1;for(let s=i[t+1];;){let t=i[s++],o=1&t,a=i[s++];if(o&&n)return a;for(let n=s+(t>>1);s0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==i;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=pair(this.data,n+2);else break}i=t(pair(this.data,n+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=pair(this.data,n+2);else break}if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(LRParser.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let s=e.specializers.find(e=>e.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[i]=getSpecializer(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let i=null;for(let e=0;ee.external(n,i)<<1|t}return e.get}var h=n(5524);let c=(0,h.Gv)({String:h.pJ.string,Number:h.pJ.number,"True False":h.pJ.bool,PropertyName:h.pJ.propertyName,Null:h.pJ.null,",":h.pJ.separator,"[ ]":h.pJ.squareBracket,"{ }":h.pJ.brace}),u=LRParser.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[c],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var f=n(9119);let d=f.qp.define({name:"json",parser:u.configure({props:[f.uj.add({Object:(0,f.tC)({except:/^\s*\}/}),Array:(0,f.tC)({except:/^\s*\]/})}),f.x0.add({"Object Array":f.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function json(){return new f.ri(d)}},9119:function(e,t,n){n.d(t,{Dv:function(){return foldInside},Gn:function(){return IndentContext},K0:function(){return getIndentation},Qf:function(){return HighlightStyle},R_:function(){return D},SS:function(){return indentString},Um:function(){return matchBrackets},c:function(){return y},e7:function(){return C},mi:function(){return foldGutter},n$:function(){return bracketMatching},nF:function(){return syntaxHighlighting},nY:function(){return indentOnInput},qp:function(){return LRLanguage},qz:function(){return syntaxTree},ri:function(){return LanguageSupport},tC:function(){return continuedIndent},uj:function(){return k},x0:function(){return v},y1:function(){return getIndentUnit}});var i,s=n(1113),o=n(8120),a=n(7421),l=n(5524),h=n(8699);let c=new s.md,u=new s.md;let Language=class Language{constructor(e,t,n=[],i=""){this.data=e,this.name=i,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=t,this.extension=[g.of(this),o.yy.languageData.of((e,t,n)=>{let i=topNodeAt(e,t,n),s=i.type.prop(c);if(!s)return[];let o=e.facet(s),a=i.type.prop(u);if(a){let s=i.resolve(t-i.from,n);for(let t of a)if(t.test(s,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t,n=-1){return topNodeAt(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(g);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],explore=(e,t)=>{if(e.prop(c)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(s.md.mounted);if(i){if(i.tree.prop(c)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(explore(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.concat(t):void 0}));return new LRLanguage(n,e.parser.configure({props:[c.add(e=>e.isTop?n:void 0)]}),e.name)}configure(e,t){return new LRLanguage(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function syntaxTree(e){let t=e.field(Language.state,!1);return t?t.tree:s.mp.empty}let DocInput=class DocInput{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}};let f=null;let ParseContext=class ParseContext{constructor(e,t,n=[],i,s,o,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new ParseContext(e,t,[],s.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=s.mp.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(s.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=f;f=this;try{return e()}finally{f=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=cutFragments(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:o,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,i,s)=>t.push({fromA:e,toA:n,fromB:i,toB:s})),n=s.i9.applyChanges(n,t),i=s.mp.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length)for(let t of(l=[],this.skipped)){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);ne.from&&(this.fragments=cutFragments(this.fragments,n,i),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends s._b{createParse(t,n,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let t=f;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new s.mp(s.Jq.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return f}};function cutFragments(e,t,n){return s.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}let LanguageState=class LanguageState{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new LanguageState(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=ParseContext.create(e.facet(g).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new LanguageState(n)}};Language.state=o.QQ.define({create:LanguageState.init,update(e,t){for(let e of t.effects)if(e.is(Language.setState))return e.value;return t.startState.facet(g)!=t.state.facet(g)?LanguageState.init(t.state):e.apply(t)}});let requestIdle=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(requestIdle=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let d="undefined"!=typeof navigator&&(null===(i=navigator.scheduling)||void 0===i?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,p=a.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Language.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Language.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=requestIdle(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,l=s.context.work(()=>d&&d()||Date.now()>o,i+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,a.OO)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),g=o.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[Language.state,p,a.tk.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});let LanguageSupport=class LanguageSupport{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};let m=o.r$.define(),y=o.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function getIndentUnit(e){let t=e.facet(y);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function indentString(e,t){let n="",i=e.tabSize,s=e.facet(y)[0];if(" "==s){for(;t>=i;)n+=" ",t-=i;s=" "}for(let e=0;e=t?function(e,t,n){let i=t.resolveStack(n),s=i.node.enterUnfinishedNodesBefore(n);if(s!=i.node){let e=[];for(let t=s;t!=i.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)i={node:e[t],next:i}}return indentFor(i,e,n)}(e,n,t):null}let IndentContext=class IndentContext{constructor(e,t={}){this.state=e,this.options=t,this.unit=getIndentUnit(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return null!=i&&i>=n.from&&i<=n.to?s&&i==e?{text:"",from:e}:(t<0?i-1&&(s+=o-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return(0,o.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let e=s(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}};let k=new s.md;function indentFor(e,t,n){for(let i=e;i;i=i.next){let e=function(e){let t=e.type.prop(k);if(t)return t;let n=e.firstChild,i;if(n&&(i=n.type.prop(s.md.closedBy))){let t=e.lastChild,n=t&&i.indexOf(t.name)>-1;return e=>(function(e,t,n,i,s){let o=e.textAfter,a=o.match(/^\s*/)[0].length,l=i&&o.slice(a,a+i.length)==i||s==e.pos+a,h=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let s=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==s||s<=o.from?o.to:Math.min(o.to,s);for(let e=n.to;;){let s=t.childAfter(e);if(!s||s==i)return null;if(!s.type.isSkipped)return s.from{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}function indentOnInput(){return o.yy.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:i}=e.newSelection.main,s=n.lineAt(i);if(i>s.from+200)return e;let o=n.sliceString(s.from,i);if(!t.some(e=>e.test(o)))return e;let{state:a}=e,l=-1,h=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==l)continue;l=t.from;let n=getIndentation(a,t.from);if(null==n)continue;let i=/^\s*/.exec(t.text)[0],s=indentString(a,n);i!=s&&h.push({from:t.from,to:t.from+i.length,insert:s})}return h.length?[e,{changes:h,sequential:!0}]:e})}let x=o.r$.define(),v=new s.md;function foldInside(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&s.from=t&&i.to>n&&(o=i)}}return o}(e,t,n)}function mapRange(e,t){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return n>=i?void 0:{from:n,to:i}}let S=o.Py.define({map:mapRange}),b=o.Py.define({map:mapRange});function selectedLines(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}let w=o.QQ.define({create:()=>a.p.none,update(e,t){for(let n of(e=e.map(t.changes),t.effects))if(n.is(S)&&!function(e,t,n){let i=!1;return e.between(t,t,(e,s)=>{e==t&&s==n&&(i=!0)}),i}(e,n.value.from,n.value.to)){let{preparePlaceholder:i}=t.state.facet(T),s=i?a.p.replace({widget:new PreparedFoldWidget(i(t.state,n.value))}):P;e=e.update({add:[s.range(n.value.from,n.value.to)]})}else n.is(b)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:i}=t.selection.main;e.between(i,i,(e,t)=>{ei&&(n=!0)}),n&&(e=e.update({filterFrom:i,filterTo:i,filter:(e,t)=>t<=i||e>=i}))}return e},provide:e=>a.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!s||s.from>e)&&(s={from:e,to:t})}),s}function maybeEnable(e,t){return e.field(w,!1)?t:t.concat(o.Py.appendConfig.of(codeFolding()))}function announceFold(e,t,n=!0){let i=e.state.doc.lineAt(t.from).number,s=e.state.doc.lineAt(t.to).number;return a.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${s}.`)}let C=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of selectedLines(e)){let n=foldable(e.state,t.from,t.to);if(n)return e.dispatch({effects:maybeEnable(e.state,[S.of(n),announceFold(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(w,!1))return!1;let t=[];for(let n of selectedLines(e)){let i=findFold(e.state,n.from,n.to);i&&t.push(b.of(i),announceFold(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let i=0;i{let t=e.state.field(w,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(b.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],A={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},T=o.r$.define({combine:e=>(0,o.BO)(e,A)});function codeFolding(e){let t=[w,I];return e&&t.push(T.of(e)),t}function widgetToDOM(e,t){let{state:n}=e,i=n.facet(T),onclick=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),i=findFold(e.state,n.from,n.to);i&&e.dispatch({effects:b.of(i)}),t.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(e,onclick,t);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=onclick,s}let P=a.p.replace({widget:new class extends a.l9{toDOM(e){return widgetToDOM(e,null)}}});let PreparedFoldWidget=class PreparedFoldWidget extends a.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return widgetToDOM(e,this.value)}};let O={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};let FoldMarker=class FoldMarker extends a.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}};function foldGutter(e={}){let t=Object.assign(Object.assign({},O),e),n=new FoldMarker(t,!0),i=new FoldMarker(t,!1),s=a.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(g)!=e.state.facet(g)||e.startState.field(w,!1)!=e.state.field(w,!1)||syntaxTree(e.startState)!=syntaxTree(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.f_;for(let s of e.viewportLineBlocks){let o=findFold(e.state,s.from,s.to)?i:foldable(e.state,s.from,s.to)?n:null;o&&t.add(s.from,s.from,o)}return t.finish()}}),{domEventHandlers:l}=t;return[s,(0,a.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(s))||void 0===t?void 0:t.markers)||o.Xs.empty},initialSpacer:()=>new FoldMarker(t,!1),domEventHandlers:Object.assign(Object.assign({},l),{click:(e,t,n)=>{if(l.click&&l.click(e,t,n))return!0;let i=findFold(e.state,t.from,t.to);if(i)return e.dispatch({effects:b.of(i)}),!0;let s=foldable(e.state,t.from,t.to);return!!s&&(e.dispatch({effects:S.of(s)}),!0)}})}),codeFolding()]}let I=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});let HighlightStyle=class HighlightStyle{constructor(e,t){let n;function def(e){let t=h.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let i="string"==typeof t.all?t.all:t.all?def(t.all):void 0,s=t.scope;this.scope=s instanceof Language?e=>e.prop(c)==s.data:s?e=>e==s:void 0,this.style=(0,l.QR)(e.map(e=>({tag:e.tag,class:e.class||def(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new h.V(n):null,this.themeType=t.themeType}static define(e,t){return new HighlightStyle(e,t||{})}};let B=o.r$.define(),R=o.r$.define({combine:e=>e.length?[e[0]]:null});function getHighlighters(e){let t=e.facet(B);return t.length?t:e.facet(R)}function syntaxHighlighting(e,t){let n=[N],i;return e instanceof HighlightStyle&&(e.module&&n.push(a.tk.styleModule.of(e.module)),i=e.themeType),(null==t?void 0:t.fallback)?n.push(R.of(e)):i?n.push(B.computeN([a.tk.darkTheme],t=>t.facet(a.tk.darkTheme)==("dark"==i)?[e]:[])):n.push(B.of(e)),n}let N=o.Wl.high(a.lg.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=syntaxTree(e.state),this.decorations=this.buildDeco(e,getHighlighters(e.state))}update(e){let t=syntaxTree(e.state),n=getHighlighters(e.state),i=n!=getHighlighters(e.startState);t.length{n.add(e,t,this.markCache[i]||(this.markCache[i]=a.p.mark({class:i})))},i,s);return n.finish()}},{decorations:e=>e.decorations})),D=HighlightStyle.define([{tag:l.pJ.meta,color:"#404740"},{tag:l.pJ.link,textDecoration:"underline"},{tag:l.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.pJ.emphasis,fontStyle:"italic"},{tag:l.pJ.strong,fontWeight:"bold"},{tag:l.pJ.strikethrough,textDecoration:"line-through"},{tag:l.pJ.keyword,color:"#708"},{tag:[l.pJ.atom,l.pJ.bool,l.pJ.url,l.pJ.contentSeparator,l.pJ.labelName],color:"#219"},{tag:[l.pJ.literal,l.pJ.inserted],color:"#164"},{tag:[l.pJ.string,l.pJ.deleted],color:"#a11"},{tag:[l.pJ.regexp,l.pJ.escape,l.pJ.special(l.pJ.string)],color:"#e40"},{tag:l.pJ.definition(l.pJ.variableName),color:"#00f"},{tag:l.pJ.local(l.pJ.variableName),color:"#30a"},{tag:[l.pJ.typeName,l.pJ.namespace],color:"#085"},{tag:l.pJ.className,color:"#167"},{tag:[l.pJ.special(l.pJ.variableName),l.pJ.macroName],color:"#256"},{tag:l.pJ.definition(l.pJ.propertyName),color:"#00c"},{tag:l.pJ.comment,color:"#940"},{tag:l.pJ.invalid,color:"#f00"}]),E=a.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),M="()[]{}",L=o.r$.define({combine:e=>(0,o.BO)(e,{afterCursor:!0,brackets:M,maxScanDistance:1e4,renderMatch:defaultRenderMatch})}),J=a.p.mark({class:"cm-matchingBracket"}),F=a.p.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(e){let t=[],n=e.matched?J:F;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}let j=o.QQ.define({create:()=>a.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(L);for(let e of t.state.selection.ranges){if(!e.empty)continue;let s=matchBrackets(t.state,e.head,-1,i)||e.head>0&&matchBrackets(t.state,e.head-1,1,i)||i.afterCursor&&(matchBrackets(t.state,e.head,1,i)||e.heada.tk.decorations.from(e)}),z=[j,E];function bracketMatching(e={}){return[L.of(e),z]}let $=new s.md;function matchingNodes(e,t,n){let i=e.prop(t<0?s.md.openedBy:s.md.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function findHandle(e){let t=e.type.prop($);return t?t(e.node):e}function matchBrackets(e,t,n,i={}){let s=i.maxScanDistance||1e4,o=i.brackets||M,a=syntaxTree(e),l=a.resolveInner(t,n);for(let e=l;e;e=e.parent){let i=matchingNodes(e.type,n,o);if(i&&e.from0?t>=s.from&&ts.from&&t<=s.to))return function(e,t,n,i,s,o,a){let l=i.parent,h={from:s.from,to:s.to},c=0,u=null==l?void 0:l.cursor();if(u&&(n<0?u.childBefore(i.from):u.childAfter(i.to)))do if(n<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;n<0&&(e+=o.length);let l=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0)&&i.resolveInner(l+e,1).type==s){if(t%2==0==n>0)f++;else{if(1==f)return{start:c,end:{from:l+e,to:l+e+1},matched:t>>1==h>>1};f--}}}n>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,l.type,s,o)}let W=Object.create(null),Q=[s.Jq.none],q=[],_=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])_[e]=function(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let i=e[n]||l.pJ[n];i?"function"==typeof i?t.length?t=t.map(i):warnForPart(n,`Modifier ${n} used at start of tag`):t.length?warnForPart(n,`Tag ${n} used as modifier`):t=Array.isArray(i)?i:[i]:warnForPart(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let i=t.replace(/ /g,"_"),o=s.Jq.define({id:Q.length,name:i,props:[(0,l.Gv)({[i]:n})]});return Q.push(o),o.id}(W,t);function warnForPart(e,t){q.indexOf(e)>-1||(q.push(e),console.warn(t))}},8120:function(e,t,n){let i;n.d(t,{BO:function(){return combineConfig},D0:function(){return b},Gz:function(){return findColumn},IS:function(){return countColumn},Py:function(){return StateEffect},QQ:function(){return StateField},Wl:function(){return d},Xs:function(){return RangeSet},YW:function(){return Transaction},as:function(){return ChangeSet},bg:function(){return fromCodePoint},cp:function(){return findClusterBreak},f_:function(){return RangeSetBuilder},gc:function(){return h},gm:function(){return codePointAt},jT:function(){return EditorSelection},n0:function(){return ChangeDesc},nZ:function(){return codePointSize},q6:function(){return Annotation},r$:function(){return Facet},uU:function(){return RangeValue},xv:function(){return Text},yy:function(){return EditorState}});let Text=class Text{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),TextNode.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),TextNode.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new RawTextCursor(this),s=new RawTextCursor(e);for(let e=t,o=t;;){if(i.next(e),s.next(e),e=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new RawTextCursor(this,e)}iterRange(e,t=this.length){return new PartialTextCursor(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new LineCursor(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new TextLeaf(e):TextNode.from(TextLeaf.split(e,[])):Text.empty}};let TextLeaf=class TextLeaf extends Text{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((t?n:a)>=e)return new Line(i,a,n,o);i=a+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new TextLeaf(appendText(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=appendText(s.text,e.text.slice(),0,s.length);if(t.length<=32)n.push(new TextLeaf(t,e.length+s.length));else{let e=t.length>>1;n.push(new TextLeaf(t.slice(0,e)),new TextLeaf(t.slice(e)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof TextLeaf))return super.replace(e,t,n);let i=appendText(this.text,appendText(n.text,appendText(this.text,[""],0,e)),t),s=this.length+n.length-(t-e);return i.length<=32?new TextLeaf(i,s):TextNode.from(TextLeaf.split(i,[]),s)}sliceString(e,t=this.length,n="\n"){let i="";for(let s=0,o=0;s<=t&&oe&&o&&(i+=n),es&&(i+=a.slice(Math.max(0,e-s),t-s)),s=l+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let s of e)n.push(s),i+=s.length+1,32==n.length&&(t.push(new TextLeaf(n,i)),n=[],i=-1);return i>-1&&t.push(new TextLeaf(n,i)),t}};let TextNode=class TextNode extends Text{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,i);i=a+1,n=l+1}}decompose(e,t,n,i){for(let s=0,o=0;o<=t&&s=o){let s=i&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!s?n.push(a):a.decompose(e-o,t-o,n,s)}o=l+1}}replace(e,t,n){if(n.lines=s&&t<=a){let l=o.replace(e-s,t-s,n),h=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>h>>6){let s=this.children.slice();return s[i]=l,new TextNode(s,this.length-(t-e)+n.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let s=0,o=0;se&&s&&(i+=n),eo&&(i+=a.sliceString(e-o,t-o,n)),o=l+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof TextNode))return 0;let n=0,[i,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,s+=t){if(i==o||s==a)return n;let l=this.children[i],h=e.children[s];if(l!=h)return n+l.scanIdentical(h,t);n+=l.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new TextLeaf(n,t)}let i=Math.max(32,n>>5),s=i<<1,o=i>>1,a=[],l=0,h=-1,c=[];function flush(){0!=l&&(a.push(1==c.length?c[0]:TextNode.from(c,h)),h=-1,l=c.length=0)}for(let t of e)!function add(e){let t;if(e.lines>s&&e instanceof TextNode)for(let t of e.children)add(t);else e.lines>o&&(l>o||!l)?(flush(),a.push(e)):e instanceof TextLeaf&&l&&(t=c[c.length-1])instanceof TextLeaf&&e.lines+t.lines<=32?(l+=e.lines,h+=e.length+1,c[c.length-1]=new TextLeaf(t.text.concat(e.text),t.length+1+e.length)):(l+e.lines>i&&flush(),l+=e.lines,h+=e.length+1,c.push(e))}(t);return flush(),1==a.length?a[0]:new TextNode(a,t)}};function appendText(e,t,n=0,i=1e9){for(let s=0,o=0,a=!0;o=n&&(h>i&&(l=l.slice(0,i-s)),s0?1:(e instanceof TextLeaf?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],o=s>>1,a=i instanceof TextLeaf?i.text.length:i.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof TextLeaf){let s=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,s.length>Math.max(0,e))return this.value=0==e?s:t>0?s.slice(e):s.slice(0,s.length-e),this;e-=s.length}else{let s=i.children[o+(t<0?-1:0)];e>s.length?(e-=s.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(s),this.offsets.push(t>0?1:(s instanceof TextLeaf?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}};let PartialTextCursor=class PartialTextCursor{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new RawTextCursor(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}};let LineCursor=class LineCursor{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}};"undefined"!=typeof Symbol&&(Text.prototype[Symbol.iterator]=function(){return this.iter()},RawTextCursor.prototype[Symbol.iterator]=PartialTextCursor.prototype[Symbol.iterator]=LineCursor.prototype[Symbol.iterator]=function(){return this});let Line=class Line{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}};let s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e=127462&&e<=127487}function findClusterBreak(e,t,n=!0,i=!0){return(n?nextClusterBreak:function(e,t,n){for(;t>0;){let i=nextClusterBreak(e,t-2,n);if(ie)return s[t-1]<=e;return!1}(o))t+=codePointSize(o),i=o;else if(isRegionalIndicator(o)){let n=0,i=t-2;for(;i>=0&&isRegionalIndicator(codePointAt(e,i));)n++,i-=2;if(n%2==0)break;t+=2}else break}return t}function surrogateLow(e){return e>=56320&&e<57344}function surrogateHigh(e){return e>=55296&&e<56320}function codePointAt(e,t){let n=e.charCodeAt(t);if(!surrogateHigh(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return surrogateLow(i)?(n-55296<<10)+(i-56320)+65536:n}function fromCodePoint(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function codePointSize(e){return e<65536?1:2}let o=/\r\n?|\n/;var a,l,h=((a=h||(h={}))[a.Simple=0]="Simple",a[a.TrackDel=1]="TrackDel",a[a.TrackBefore=2]="TrackBefore",a[a.TrackAfter=3]="TrackAfter",a);let ChangeDesc=class ChangeDesc{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return s+(e-i);s+=a}else{if(n!=h.Simple&&c>=e&&(n==h.TrackDel&&ie||n==h.TrackBefore&&ie))return null;if(c>e||c==e&&t<0&&!a)return e==i||t<0?s:s+l;s+=l}i=c}if(e>i)throw RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&a>=e)return!(it)||"cover";i=a}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new ChangeDesc(e)}static create(e){return new ChangeDesc(e)}};let ChangeSet=class ChangeSet extends ChangeDesc{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return iterChanges(this,(t,n,i,s,o)=>e=e.replace(i,i+(n-t),o),!1),e}mapDesc(e,t=!1){return mapSet(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,s=0;i=0){t[i]=a,t[i+1]=o;let l=i>>1;for(;n.length0&&addInsert(n,t,s.text),s.forward(e),a+=e}let h=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let i=[],s=[],a=0,l=null;function flush(e=!1){if(!e&&!i.length)return;ah||l<0||h>t)throw RangeError(`Invalid change range ${l} to ${h} (in doc of length ${t})`);let u=c?"string"==typeof c?Text.of(c.split(n||o)):c:Text.empty,f=u.length;if(l==h&&0==f)return;la&&addSection(i,l-a,-1),addSection(i,h-l,f),addInsert(s,i,u),a=h}}(e),flush(!l),l}static empty(e){return new ChangeSet(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==s.length)t.push(s[0],0);else{for(;n.length=0&&n<=0&&n==e[s+1]?e[s]+=t:0==t&&0==e[s]?e[s+1]+=n:i?(e[s]+=t,e[s+1]+=n):e.push(t,n)}function addInsert(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!n&&a!=e.sections.length&&!(e.sections[a+1]<0);)l=e.sections[a++],h=e.sections[a++];t(s,c,o,u,f),s=c,o=u}}}function mapSet(e,t,n,i=!1){let s=[],o=i?[]:null,a=new SectionIter(e),l=new SectionIter(t);for(let e=-1;;)if(-1==a.ins&&-1==l.ins){let e=Math.min(a.len,l.len);addSection(s,e,-1),a.forward(e),l.forward(e)}else if(l.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(l.len=0&&e=0){let t=0,n=a.len;for(;n;)if(-1==l.ins){let e=Math.min(n,l.len);t+=e,n-=e,l.forward(e)}else if(0==l.ins&&l.lent||a.ins>=0&&a.len>t)&&(e||i.length>n),o.forward2(t),a.forward(t)}}else addSection(i,0,a.ins,e),s&&addInsert(s,i,a.text),a.next()}}let SectionIter=class SectionIter{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Text.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Text.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}};let SelectionRange=class SelectionRange{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new SelectionRange(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return EditorSelection.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return EditorSelection.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return EditorSelection.range(e.anchor,e.head)}static create(e,t,n){return new SelectionRange(e,t,n)}};let EditorSelection=class EditorSelection{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:EditorSelection.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new EditorSelection(e.ranges.map(e=>SelectionRange.fromJSON(e)),e.main)}static single(e,t=e){return new EditorSelection([EditorSelection.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,i=0;ie?8:0)|s)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;ni.head?EditorSelection.range(a,o):EditorSelection.range(o,a))}}return new EditorSelection(e,t)}};function checkSelection(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let c=0;let Facet=class Facet{constructor(e,t,n,i,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=c++,this.default=e([]),this.extensions="function"==typeof s?s(this):s}get reader(){return this}static define(e={}){return new Facet(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:sameArray),!!e.static,e.enables)}of(e){return new FacetProvider([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new FacetProvider(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new FacetProvider(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}};function sameArray(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}let FacetProvider=class FacetProvider{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=c++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,s=this.id,o=e[s]>>1,a=2==this.type,l=!1,h=!1,c=[];for(let n of this.dependencies)"doc"==n?l=!0:"selection"==n?h=!0:((null!==(t=e[n.id])&&void 0!==t?t:1)&1)==0&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(l&&t.docChanged||h&&(t.docChanged||t.selection)||ensureAll(e,c)){let t=n(e);if(a?!compareArray(t,e.values[o],i):!i(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let l,h=t.config.address[s];if(null!=h){let s=getAddr(t,h);if(this.dependencies.every(n=>n instanceof Facet?t.facet(n)===e.facet(n):!(n instanceof StateField)||t.field(n,!1)==e.field(n,!1))||(a?compareArray(l=n(e),s,i):i(l=n(e),s)))return e.values[o]=s,0}else l=n(e);return e.values[o]=l,1}}}};function compareArray(e,t,n){if(e.length!=t.length)return!1;for(let i=0;ie===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(u).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],s=this.updateF(i,n);return this.compareF(i,s)?0:(e.values[t]=s,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,u.of({field:this,create:e})]}get extension(){return this}};let f={lowest:4,low:3,default:2,high:1,highest:0};function prec(e){return t=>new PrecExtension(t,e)}let d={highest:prec(f.highest),high:prec(f.high),default:prec(f.default),low:prec(f.low),lowest:prec(f.lowest)};let PrecExtension=class PrecExtension{constructor(e,t){this.inner=e,this.prec=t}};let Compartment=class Compartment{of(e){return new CompartmentInstance(this,e)}reconfigure(e){return Compartment.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}};let CompartmentInstance=class CompartmentInstance{constructor(e,t){this.compartment=e,this.inner=t}};let Configuration=class Configuration{constructor(e,t,n,i,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i,s,o=[],a=Object.create(null),l=new Map;for(let n of(i=[[],[],[],[],[]],s=new Map,!function inner(e,n){let o=s.get(e);if(null!=o){if(o<=n)return;let t=i[o].indexOf(e);t>-1&&i[o].splice(t,1),e instanceof CompartmentInstance&&l.delete(e.compartment)}if(s.set(e,n),Array.isArray(e))for(let t of e)inner(t,n);else if(e instanceof CompartmentInstance){if(l.has(e.compartment))throw RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;l.set(e.compartment,i),inner(i,n)}else if(e instanceof PrecExtension)inner(e.inner,e.prec);else if(e instanceof StateField)i[n].push(e),e.provides&&inner(e.provides,n);else if(e instanceof FacetProvider)i[n].push(e),e.facet.extensions&&inner(e.facet.extensions,f.default);else{let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);inner(t,n)}}(e,f.default),i.reduce((e,t)=>e.concat(t))))n instanceof StateField?o.push(n):(a[n.facet.id]||(a[n.facet.id]=[])).push(n);let h=Object.create(null),c=[],u=[];for(let e of o)h[e.id]=u.length<<1,u.push(t=>e.slot(t));let d=null==n?void 0:n.config.facets;for(let e in a){let t=a[e],i=t[0].facet,s=d&&d[e]||[];if(t.every(e=>0==e.type)){if(h[i.id]=c.length<<1|1,sameArray(s,t))c.push(n.facet(i));else{let e=i.combine(t.map(e=>e.value));c.push(n&&i.compare(e,n.facet(i))?n.facet(i):e)}}else{for(let e of t)0==e.type?(h[e.id]=c.length<<1|1,c.push(e.value)):(h[e.id]=u.length<<1,u.push(t=>e.dynamicSlot(t)));h[i.id]=u.length<<1,u.push(e=>(function(e,t,n){let i=n.map(t=>e[t.id]),s=n.map(e=>e.type),o=i.filter(e=>!(1&e)),a=e[t.id]>>1;function get(e){let n=[];for(let t=0;te(h));return new Configuration(e,l,p,h,c,a)}};function ensureAddr(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let s=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|s}function getAddr(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let p=Facet.define(),g=Facet.define({combine:e=>e.some(e=>e),static:!0}),m=Facet.define({combine:e=>e.length?e[0]:void 0,static:!0}),y=Facet.define(),k=Facet.define(),x=Facet.define(),v=Facet.define({combine:e=>!!e.length&&e[0]});let Annotation=class Annotation{constructor(e,t){this.type=e,this.value=t}static define(){return new AnnotationType}};let AnnotationType=class AnnotationType{of(e){return new Annotation(this,e)}};let StateEffectType=class StateEffectType{constructor(e){this.map=e}of(e){return new StateEffect(this,e)}};let StateEffect=class StateEffect{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new StateEffect(this.type,t)}is(e){return this.type==e}static define(e={}){return new StateEffectType(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}};StateEffect.reconfigure=StateEffect.define(),StateEffect.appendConfig=StateEffect.define();let Transaction=class Transaction{constructor(e,t,n,i,s,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,n&&checkSelection(n,t.newLength),s.some(e=>e.type==Transaction.time)||(this.annotations=s.concat(Transaction.time.of(Date.now())))}static create(e,t,n,i,s,o){return new Transaction(e,t,n,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Transaction.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}};function mergeTransaction(e,t,n){var i;let s,o,a;return n?(s=t.changes,o=ChangeSet.empty(t.changes.length),a=e.changes.compose(t.changes)):(s=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(s)),{changes:a,selection:t.selection?t.selection.map(o):null===(i=e.selection)||void 0===i?void 0:i.map(s),effects:StateEffect.mapEffects(e.effects,s).concat(StateEffect.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function resolveTransactionInner(e,t,n){let i=t.selection,s=asArray(t.annotations);return t.userEvent&&(s=s.concat(Transaction.userEvent.of(t.userEvent))),{changes:t.changes instanceof ChangeSet?t.changes:ChangeSet.of(t.changes||[],n,e.facet(m)),selection:i&&(i instanceof EditorSelection?i:EditorSelection.single(i.anchor,i.head)),effects:asArray(t.effects),annotations:s,scrollIntoView:!!t.scrollIntoView}}Transaction.time=Annotation.define(),Transaction.userEvent=Annotation.define(),Transaction.addToHistory=Annotation.define(),Transaction.remote=Annotation.define();let S=[];function asArray(e){return null==e?S:Array.isArray(e)?e:[e]}var b=((l=b||(b={}))[l.Word=0]="Word",l[l.Space=1]="Space",l[l.Other=2]="Other",l);let w=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{i=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}let EditorState=class EditorState{constructor(e,t,n,i,s,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let e=0;e=0;s--){let o=n[s](e);o&&Object.keys(o).length&&(i=mergeTransaction(i,resolveTransactionInner(t,o,e.changes.newLength),!0))}return i==e?e:Transaction.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(y)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:function(e,t){let n=[];for(let i=0,s=0;;){let o,a;if(i=e[i]))o=e[i++],a=e[i++];else{if(!(s=0;n--){let s=i[n](e);e=s instanceof Transaction?s:Array.isArray(s)&&1==s.length&&s[0]instanceof Transaction?s[0]:resolveTransaction(t,asArray(s),!1)}return e}(s):s)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:i,compartments:s}=n;for(let t of e.effects)t.is(Compartment.reconfigure)?(n&&(s=new Map,n.compartments.forEach((e,t)=>s.set(t,e)),n=null),s.set(t.value.compartment,t.value.extension)):t.is(StateEffect.reconfigure)?(n=null,i=t.value):t.is(StateEffect.appendConfig)&&(n=null,i=asArray(i).concat(t.value));n?t=e.startState.values.slice():(n=Configuration.resolve(i,s,this),t=new EditorState(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values),new EditorState(n,e.newDoc,e.newSelection,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:EditorSelection.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),s=[n.range],o=asArray(n.effects);for(let n=1;ns.spec.fromJSON(o,e)))}}return EditorState.create({doc:e.doc,selection:EditorSelection.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Configuration.resolve(e.extensions||[],new Map),n=e.doc instanceof Text?e.doc:Text.of((e.doc||"").split(t.staticFacet(EditorState.lineSeparator)||o)),i=e.selection?e.selection instanceof EditorSelection?e.selection:EditorSelection.single(e.selection.anchor,e.selection.head):EditorSelection.single(0);return checkSelection(i,n.length),t.staticFacet(g)||(i=i.asSingle()),new EditorState(t,n,i,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(EditorState.tabSize)}get lineBreak(){return this.facet(EditorState.lineSeparator)||"\n"}get readOnly(){return this.facet(v)}phrase(e,...t){for(let t of this.facet(EditorState.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let s of this.facet(p))for(let o of s(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return b.Space;if(function(e){if(i)return i.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||w.test(n)))return!0}return!1}(e))return b.Word;for(let n=0;n-1)return b.Word;return b.Other}}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=findClusterBreak(t,o,!1);if(s(t.slice(e,o))!=b.Word)break;o=e}for(;ae.length?e[0]:4}),EditorState.lineSeparator=m,EditorState.readOnly=v,EditorState.phrases=Facet.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every(n=>e[n]==t[n])}}),EditorState.languageData=p,EditorState.changeFilter=y,EditorState.transactionFilter=k,EditorState.transactionExtender=x,Compartment.reconfigure=StateEffect.define();let RangeValue=class RangeValue{eq(e){return this==e}range(e,t=e){return Range.create(e,t,this)}};RangeValue.prototype.startSide=RangeValue.prototype.endSide=0,RangeValue.prototype.point=!1,RangeValue.prototype.mapMode=h.TrackDel;let Range=class Range{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Range(e,t,n)}};function cmpRange(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}let Chunk=class Chunk{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let s=n?this.to:this.from;for(let o=i,a=s.length;;){if(o==a)return o;let i=o+a>>1,l=s[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==o)return l>=0?o:a;l>=0?a=i:o=i+1}}between(e,t,n,i){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,s);s(d=t.mapPos(u,h.endSide))||f==d&&h.startSide>0&&h.endSide<=0)continue;0>(d-f||h.endSide-h.startSide)||(o<0&&(o=f),h.point&&(a=Math.max(a,d-f)),n.push(h),i.push(f-o),s.push(d-o))}return{mapped:n.length?new Chunk(i,s,n,a):null,pos:o}}};let RangeSet=class RangeSet{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new RangeSet(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:s=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(cmpRange)),this.isEmpty)return t.length?RangeSet.of(t):this;let a=new LayerCursor(this,null,-1).goto(0),l=0,h=[],c=new RangeSetBuilder;for(;a.value||l=0){let e=t[l++];c.addInner(e.from,e.to,e.value)||h.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||sa.to||s=s&&e<=s+o.length&&!1===o.between(s,e-s,t-s,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return HeapCursor.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return HeapCursor.from(e).goto(t)}static compare(e,t,n,i,s=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=s),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=s),l=findSharedChunks(o,a,n),h=new SpanCursor(o,l,s),c=new SpanCursor(a,l,s);n.iterGaps((e,t,n)=>compare(h,e,c,t,n,i)),n.empty&&0==n.length&&compare(h,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=999999999);let s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),o=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(s.length!=o.length)return!1;if(!s.length)return!0;let a=findSharedChunks(s,o),l=new SpanCursor(s,a,0).goto(n),h=new SpanCursor(o,a,0).goto(n);for(;;){if(l.to!=h.to||!sameValues(l.active,h.active)||l.point&&(!h.point||!l.point.eq(h.point)))return!1;if(l.to>i)return!0;l.next(),h.next()}}static spans(e,t,n,i,s=-1){let o=new SpanCursor(e,null,s).goto(t),a=t,l=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),s=o.pointFroma&&(i.span(a,e,o.active,l),l=o.openEnd(e));if(o.to>n)return l+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new RangeSetBuilder;for(let i of e instanceof Range?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(cmpRange);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}};RangeSet.empty=new RangeSet([],[],null,-1),RangeSet.empty.nextLayer=RangeSet.empty;let RangeSetBuilder=class RangeSetBuilder{finishChunk(e){this.chunks.push(new Chunk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new RangeSetBuilder)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(RangeSet.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=RangeSet.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function findSharedChunks(e,t,n){let i=new Map;for(let t of e)for(let e=0;e(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new LayerCursor(o,t,n,s));return 1==i.length?i[0]:new HeapCursor(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)heapBubble(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)heapBubble(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),heapBubble(this.heap,0)}}};function heapBubble(e,t){for(let n=e[t];;){let i=(t<<1)+1;if(i>=e.length)break;let s=e[i];if(i+1=0&&(s=e[i+1],i++),0>n.compare(s))break;e[i]=n,e[t]=s,t=i}}let SpanCursor=class SpanCursor{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=HeapCursor.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){remove(this.active,e),remove(this.activeTo,e),remove(this.activeRank,e),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:s}=this.cursor;for(;t-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&remove(n,i)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}};function compare(e,t,n,i,s,o){e.goto(t),n.goto(i);let a=i+s,l=i,h=i-t;for(;;){let t=e.to+h-n.to||e.endSide-n.endSide,i=t<0?e.to+h:n.to,s=Math.min(i,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&sameValues(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(l,s,e.point,n.point):s>l&&!sameValues(e.active,n.active)&&o.compareRange(l,s,e.active,n.active),i>a)break;l=i,t<=0&&e.next(),t>=0&&n.next()}}function sameValues(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function findMinIndex(e,t){let n=-1,i=1e9;for(let s=0;s(t[s]-i||e[s].endSide-e[n].endSide)&&(n=s,i=t[s]);return n}function countColumn(e,t,n=e.length){let i=0;for(let s=0;s=t)return i;if(i==e.length)break;s+=9==e.charCodeAt(i)?n-s%n:1,i=findClusterBreak(e,i)}return!0===i?-1:e.length}},1113:function(e,t,n){var i,s;n.d(t,{Jq:function(){return NodeType},L3:function(){return o},Lj:function(){return NodeSet},_b:function(){return Parser},i9:function(){return TreeFragment},md:function(){return NodeProp},mp:function(){return Tree},vj:function(){return i}});let o=1024,a=0;let Range=class Range{constructor(e,t){this.from=e,this.to=t}};let NodeProp=class NodeProp{constructor(e={}){this.id=a++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=NodeType.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}};NodeProp.closedBy=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.openedBy=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.group=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.contextHash=new NodeProp({perNode:!0}),NodeProp.lookAhead=new NodeProp({perNode:!0}),NodeProp.mounted=new NodeProp({perNode:!0});let MountedTree=class MountedTree{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[NodeProp.mounted.id]}};let l=Object.create(null);let NodeType=class NodeType{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new NodeType(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(NodeProp.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(NodeProp.group),i=-1;i<(n?n.length:0);i++){let s=t[i<0?e.name:n[i]];if(s)return s}}}};NodeType.none=new NodeType("",Object.create(null),0,8);let NodeSet=class NodeSet{constructor(e){this.types=e;for(let t=0;t=t){let a=new TreeNode(o.tree,o.overlay[0].from+e.from,-1,e);(s||(s=[i])).push(resolveNode(a,t,n,!1))}}return s?iterStack(s):i}(this,e,t)}iterate(e){let{enter:t,leave:n,from:s=0,to:o=this.length}=e,a=e.mode||0,l=(a&i.IncludeAnonymous)>0;for(let e=this.cursor(a|i.IncludeAnonymous);;){let i=!1;if(e.from<=o&&e.to>=s&&(!l&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;i=!0}for(;i&&n&&(l||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;i=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new Tree(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new Tree(NodeType.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:s=o,reused:a=[],minRepeatType:l=i.types.length}=e,h=Array.isArray(n)?new FlatBufferCursor(n,n.length):n,c=i.types,u=0,f=0;function makeRepeatLeaf(e,t,n,s,o,a,l,h){let c=[],u=[];for(;e.length>s;)c.push(e.pop()),u.push(t.pop()+n-o);e.push(makeTree(i.types[l],c,u,a-o,h-a)),t.push(o-n)}function makeTree(e,t,n,i,s=0,o){if(u){let e=[NodeProp.contextHash,u];o=o?[e].concat(o):[e]}if(s>25){let e=[NodeProp.lookAhead,s];o=o?[e].concat(o):[e]}return new Tree(e,t,n,i,o)}let d=[],p=[];for(;h.pos>0;)!function takeNode(e,t,n,o,d,p){let{id:g,start:m,end:y,size:k}=h,x=f;for(;k<0;){if(h.next(),-1==k){let t=a[g];n.push(t),o.push(m-e);return}if(-3==k){u=g;return}if(-4==k){f=g;return}throw RangeError(`Unrecognized record size: ${k}`)}let v=c[g],S,b,w=m-e;if(y-m<=s&&(b=function(e,t){let n=h.fork(),i=0,o=0,a=0,c=n.end-s,u={size:0,start:0,skip:0};t:for(let s=n.pos-e;n.pos>s;){let e=n.size;if(n.id==t&&e>=0){u.size=i,u.start=o,u.skip=a,a+=4,i+=4,n.next();continue}let h=n.pos-e;if(e<0||h=l?4:0,d=n.start;for(n.next();n.pos>h;){if(n.size<0){if(-3==n.size)f+=4;else break t}else n.id>=l&&(f+=4);n.next()}o=d,i+=e,a+=f}return(t<0||i==e)&&(u.size=i,u.start=o,u.skip=a),u.size>4?u:void 0}(h.pos-t,d))){let t=new Uint16Array(b.size-b.skip),n=h.pos-b.size,s=t.length;for(;h.pos>n;)s=function copyToBuffer(e,t,n){let{id:i,start:s,end:o,size:a}=h;if(h.next(),a>=0&&i4){let i=h.pos-(a-4);for(;h.pos>i;)n=copyToBuffer(e,t,n)}t[--n]=l,t[--n]=o-e,t[--n]=s-e,t[--n]=i}else -3==a?u=i:-4==a&&(f=i);return n}(b.start,t,s);S=new TreeBuffer(t,y-b.start,i),w=b.start-e}else{let e=h.pos-k;h.next();let t=[],n=[],o=g>=l?g:-1,a=0,c=y;for(;h.pos>e;)o>=0&&h.id==o&&h.size>=0?(h.end<=c-s&&(makeRepeatLeaf(t,n,m,a,h.end,c,o,x),a=t.length,c=h.end),h.next()):p>2500?function(e,t,n,o){let a=[],l=0,c=-1;for(;h.pos>t;){let{id:e,start:t,end:n,size:i}=h;if(i>4)h.next();else if(c>-1&&t=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-s,t[n++]=a[e+2]-s,t[n++]=n;n.push(new TreeBuffer(t,a[2]-s,i)),o.push(s-e)}}(m,e,t,n):takeNode(m,e,t,n,o,p+1);if(o>=0&&a>0&&a-1&&a>0){let e=function(e){return(t,n,i)=>{let s=0,o=t.length-1,a,l;if(o>=0&&(a=t[o])instanceof Tree){if(!o&&a.type==e&&a.length==i)return a;(l=a.prop(NodeProp.lookAhead))&&(s=n[o]+a.length+l)}return makeTree(e,t,n,i,s)}}(v);S=balanceRange(v,t,n,0,t.length,0,y-m,e,e)}else S=makeTree(v,t,n,y-m,x-y)}n.push(S),o.push(w)}(e.start||0,e.bufferStart||0,d,p,-1,0);let g=null!==(t=e.length)&&void 0!==t?t:d.length?p[0]+d[0].length:0;return new Tree(c[e.topID],d.reverse(),p.reverse(),g)}(e)}};Tree.empty=new Tree(NodeType.none,[],[],0);let FlatBufferCursor=class FlatBufferCursor{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}};let TreeBuffer=class TreeBuffer{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return NodeType.none}toString(){let e=[];for(let t=0;t0)));l=o[l+3]);return a}slice(e,t,n){let i=this.buffer,s=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=t&&nt;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function resolveNode(e,t,n,s){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?l.length:-1;e!=c;e+=t){let c=l[e],u=h[e]+a.from;if(checkSide(s,n,u,u+c.length)){if(c instanceof TreeBuffer){if(o&i.ExcludeBuffers)continue;let l=c.findChild(0,c.buffer.length,t,n-u,s);if(l>-1)return new BufferNode(new BufferContext(a,c,e,u),null,l)}else if(o&i.IncludeAnonymous||!c.type.isAnonymous||hasChild(c)){let l;if(!(o&i.IgnoreMounts)&&(l=MountedTree.get(c))&&!l.overlay)return new TreeNode(l.tree,u,e,a);let h=new TreeNode(c,u,e,a);return o&i.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(t<0?c.children.length-1:0,t,n,s)}}}if(o&i.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,!(a=a._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let s;if(!(n&i.IgnoreOverlays)&&(s=MountedTree.get(this._tree))&&s.overlay){let n=e-this.from;for(let{from:e,to:i}of s.overlay)if((t>0?e<=n:e=n:i>n))return new TreeNode(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function getChildren(e,t,n,i){let s=e.cursor(),o=[];if(!s.firstChild())return o;if(null!=n){for(;!s.type.is(n);)if(!s.nextSibling())return o}for(;;){if(null!=i&&s.type.is(i))return o;if(s.type.is(t)&&o.push(s.node),!s.nextSibling())return null==i?o:[]}}function matchNodeContext(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}let BufferContext=class BufferContext{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}};let BufferNode=class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new BufferNode(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&i.ExcludeBuffers)return null;let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new BufferNode(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new BufferNode(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new BufferNode(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let o=n.buffer[this.index+1];e.push(n.slice(i,s,o)),t.push(0)}return new Tree(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function iterStack(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;in.from||s.to0){if(this.index-1)for(let s=t+e,o=e<0?-1:n._tree.children.length;s!=o;s+=e){let e=n._tree.children[s];if(this.mode&i.IncludeAnonymous||e instanceof TreeBuffer||!e.type.isAnonymous||hasChild(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=s+1;break t}i=this.stack[--s]}for(let e=n;e=0;s--){if(s<0)return matchNodeContext(this.node,e,i);let o=n[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}};function hasChild(e){return e.children.some(e=>e instanceof TreeBuffer||!e.type.isAnonymous||hasChild(e))}let u=new WeakMap;function nodeSize(e,t){if(!e.isAnonymous||t instanceof TreeBuffer||t.type!=e)return 1;let n=u.get(t);if(null==n){for(let i of(n=1,t.children)){if(i.type!=e||!(i instanceof Tree)){n=1;break}n+=nodeSize(e,i)}u.set(t,n)}return n}function balanceRange(e,t,n,i,s,o,a,l,h){let c=0;for(let n=i;n=u)break;p+=n}if(l==i+1){if(p>u){let e=t[i];divide(e.children,e.positions,0,e.children.length,n[i]+a);continue}f.push(t[i])}else{let s=n[l-1]+t[l-1].length-c;f.push(balanceRange(e,t,n,i,l,c,s,null,h))}d.push(c+a-o)}}(t,n,i,s,0),(l||h)(f,d,a)}let TreeFragment=class TreeFragment{constructor(e,t,n,i,s=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new TreeFragment(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,h=0;;a++){let c=a=n)for(;o&&o.from=t.from||u<=t.to||h){let e=Math.max(t.from,l)-h,n=Math.min(t.to,u)-h;t=e>=n?null:new TreeFragment(e,n,t.tree,t.offset+h,a>0,!!c)}if(t&&i.push(t),o.to>u)break;o=snew Range(e.from,e.to)):[new Range(0,0)]:[new Range(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}};let StringInput=class StringInput{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};new NodeProp({perNode:!0})},5524:function(e,t,n){n.d(t,{Gv:function(){return styleTags},QR:function(){return tagHighlighter},bW:function(){return highlightTree},pJ:function(){return w}});var i=n(1113);let s=0;let Tag=class Tag{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=s++}static define(e){if(null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let t=new Tag([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Modifier;return t=>t.modified.indexOf(e)>-1?t:Modifier.get(t.base||t,t.modified.concat(e).sort((e,t)=>e.id-t.id))}};let o=0;let Modifier=class Modifier{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var i;return n.base==e&&(i=n.modified,t.length==i.length&&t.every((e,t)=>e==i[t]))});if(n)return n;let i=[],s=new Tag(i,e,t);for(let e of t)e.instances.push(s);let o=function(e){let t=[[]];for(let n=0;nt.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)i.push(Modifier.get(t,e));return s}};function styleTags(e){let t=Object.create(null);for(let n in e){let i=e[n];for(let e of(Array.isArray(i)||(i=[i]),n.split(" ")))if(e){let n=[],s=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){s=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!i)throw RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),(t+=i[0].length)==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){s=0;break}if("/"!=a)throw RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,l=n[a];if(!l)throw RangeError("Invalid path: "+e);let h=new Rule(i,s,a>0?n.slice(0,a):null);t[l]=h.sort(t[l])}}return a.add(t)}let a=new i.md;let Rule=class Rule{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=s;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function highlightTree(e,t,n,i=0,s=e.length){let o=new HighlightBuilder(i,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),i,s,"",o.highlighters),o.flush(s)}Rule.empty=new Rule([],2,null);let HighlightBuilder=class HighlightBuilder{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,s,o){let{type:l,from:h,to:c}=e;if(h>=n||c<=t)return;l.isTop&&(o=this.highlighters.filter(e=>!e.scope||e.scope(l)));let u=s,f=function(e){let t=e.type.prop(a);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||Rule.empty,d=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(o,f.tags);if(d&&(u&&(u+=" "),u+=d,1==f.mode&&(s+=(s?" ":"")+d)),this.startSpan(Math.max(t,h),u),f.opaque)return;let p=e.tree&&e.tree.prop(i.md.mounted);if(p&&p.overlay){let i=e.node.enter(p.overlay[0].from+h,1),a=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type)),l=e.firstChild();for(let f=0,d=h;;f++){let g=f=m)&&e.nextSibling()););if(!g||m>n)break;(d=g.to+h)>t&&(this.highlightRange(i.cursor(),Math.max(t,g.from+h),Math.min(n,d),"",a),this.startSpan(Math.min(n,d),u))}l&&e.parent()}else if(e.firstChild()){p&&(s="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,s,o),this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}};let l=Tag.define,h=l(),c=l(),u=l(c),f=l(c),d=l(),p=l(d),g=l(d),m=l(),y=l(m),k=l(),x=l(),v=l(),S=l(v),b=l(),w={comment:h,lineComment:l(h),blockComment:l(h),docComment:l(h),name:c,variableName:l(c),typeName:u,tagName:l(u),propertyName:f,attributeName:l(f),className:l(c),labelName:l(c),namespace:l(c),macroName:l(c),literal:d,string:p,docString:l(p),character:l(p),attributeValue:l(p),number:g,integer:l(g),float:l(g),bool:l(d),regexp:l(d),escape:l(d),color:l(d),url:l(d),keyword:k,self:l(k),null:l(k),atom:l(k),unit:l(k),modifier:l(k),operatorKeyword:l(k),controlKeyword:l(k),definitionKeyword:l(k),moduleKeyword:l(k),operator:x,derefOperator:l(x),arithmeticOperator:l(x),logicOperator:l(x),bitwiseOperator:l(x),compareOperator:l(x),updateOperator:l(x),definitionOperator:l(x),typeOperator:l(x),controlOperator:l(x),punctuation:v,separator:l(v),bracket:S,angleBracket:l(S),squareBracket:l(S),paren:l(S),brace:l(S),content:m,heading:y,heading1:l(y),heading2:l(y),heading3:l(y),heading4:l(y),heading5:l(y),heading6:l(y),contentSeparator:l(m),list:l(m),quote:l(m),emphasis:l(m),strong:l(m),link:l(m),monospace:l(m),strikethrough:l(m),inserted:l(),deleted:l(),changed:l(),invalid:l(),meta:b,documentMeta:l(b),annotation:l(b),processingInstruction:l(b),definition:Tag.defineModifier(),constant:Tag.defineModifier(),function:Tag.defineModifier(),standard:Tag.defineModifier(),local:Tag.defineModifier(),special:Tag.defineModifier()};tagHighlighter([{tag:w.link,class:"tok-link"},{tag:w.heading,class:"tok-heading"},{tag:w.emphasis,class:"tok-emphasis"},{tag:w.strong,class:"tok-strong"},{tag:w.keyword,class:"tok-keyword"},{tag:w.atom,class:"tok-atom"},{tag:w.bool,class:"tok-bool"},{tag:w.url,class:"tok-url"},{tag:w.labelName,class:"tok-labelName"},{tag:w.inserted,class:"tok-inserted"},{tag:w.deleted,class:"tok-deleted"},{tag:w.literal,class:"tok-literal"},{tag:w.string,class:"tok-string"},{tag:w.number,class:"tok-number"},{tag:[w.regexp,w.escape,w.special(w.string)],class:"tok-string2"},{tag:w.variableName,class:"tok-variableName"},{tag:w.local(w.variableName),class:"tok-variableName tok-local"},{tag:w.definition(w.variableName),class:"tok-variableName tok-definition"},{tag:w.special(w.variableName),class:"tok-variableName2"},{tag:w.definition(w.propertyName),class:"tok-propertyName tok-definition"},{tag:w.typeName,class:"tok-typeName"},{tag:w.namespace,class:"tok-namespace"},{tag:w.className,class:"tok-className"},{tag:w.macroName,class:"tok-macroName"},{tag:w.propertyName,class:"tok-propertyName"},{tag:w.operator,class:"tok-operator"},{tag:w.comment,class:"tok-comment"},{tag:w.meta,class:"tok-meta"},{tag:w.invalid,class:"tok-invalid"},{tag:w.punctuation,class:"tok-punctuation"}])},4443:function(e,t,n){n.d(t,{Z:function(){return _curry1}});var i=n(2588);function _curry1(e){return function f1(t){return 0==arguments.length||(0,i.Z)(t)?f1:e.apply(this,arguments)}}},3707:function(e,t,n){n.d(t,{Z:function(){return _curry2}});var i=n(4443),s=n(2588);function _curry2(e){return function f2(t,n){switch(arguments.length){case 0:return f2;case 1:return(0,s.Z)(t)?f2:(0,i.Z)(function(n){return e(t,n)});default:return(0,s.Z)(t)&&(0,s.Z)(n)?f2:(0,s.Z)(t)?(0,i.Z)(function(t){return e(t,n)}):(0,s.Z)(n)?(0,i.Z)(function(n){return e(t,n)}):e(t,n)}}}},2588:function(e,t,n){n.d(t,{Z:function(){return _isPlaceholder}});function _isPlaceholder(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},4021:function(e,t,n){var i=(0,n(3707).Z)(function(e,t){for(var n={},i={},s=0,o=e.length;se.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),s,i);else if(s&&"object"==typeof s){if(!a)throw RangeError("The value of a property ("+n+") should be a primitive value.");render(splitSelector(n),s,o,l)}else null!=s&&o.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(o.length||l)&&i.push((!n||a||s?e:e.map(n)).join(", ")+" {"+o.join(" ")+"}")}(splitSelector(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[i]||1;return o[i]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let i=e[s],o=n&&n.nonce;i?o&&i.setNonce(o):i=new StyleSet(e,o),i.mount(Array.isArray(t)?t:[t])}};let a=new Map;let StyleSet=class StyleSet{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let t=a.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[s]=t;this.sheet=new i.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],a.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let i=e.head||e;i.insertBefore(this.styleTag,i.firstChild)}this.modules=[],e[s]=this}mount(e){let t=this.sheet,n=0,i=0;for(let s=0;s-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)i[48+l]=i[96+l]=String(l);for(var l=1;l<=24;l++)i[l+111]="F"+l;for(var l=65;l<=90;l++)i[l]=String.fromCharCode(l+32),s[l]=String.fromCharCode(l);for(var h in i)s.hasOwnProperty(h)||(s[h]=i[h]);function keyName(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:i)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]); \ No newline at end of file diff --git a/_next/static/chunks/4ad82c5e-41a8269e9a9413de.js b/_next/static/chunks/4ad82c5e-41a8269e9a9413de.js new file mode 100644 index 00000000..c774f579 --- /dev/null +++ b/_next/static/chunks/4ad82c5e-41a8269e9a9413de.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5762],{7421:function(t,e,i){let s;i.d(e,{$1:function(){return runScopeHandlers},$f:function(){return tE},AE:function(){return highlightSpecialChars},Eu:function(){return lineNumbers},HQ:function(){return highlightActiveLineGutter},Nm:function(){return $},OO:function(){return logException},S2:function(){return crosshairCursor},SJ:function(){return GutterMarker},Sd:function(){return getPanel},Uw:function(){return drawSelection},W$:function(){return placeholder},ZO:function(){return highlightActiveLine},Zs:function(){return rectangularSelection},bF:function(){return hoverTooltip},gB:function(){return getTooltip},hJ:function(){return t4},l9:function(){return WidgetType},lg:function(){return ViewPlugin},mH:function(){return es},p:function(){return Decoration},qr:function(){return dropCursor},tk:function(){return EditorView},v5:function(){return gutter}});var o,n,r,l=i(8120),h=i(8699),a=i(1754);function getSelection(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function contains(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function hasSelection(t,e){if(!e.anchorNode)return!1;try{return contains(t,e.anchorNode)}catch(t){return!1}}function clientRectsFor(t){return 3==t.nodeType?textRange(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function isEquivalentPosition(t,e,i,s){return!!i&&(scanFor(t,e,i,s,-1)||scanFor(t,e,i,s,1))}function domIndex(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function scanFor(t,e,i,s,o){for(;;){if(t==i&&e==s)return!0;if(e==(o<0?0:maxOffset(t))){if("DIV"==t.nodeName)return!1;let i=t.parentNode;if(!i||1!=i.nodeType)return!1;e=domIndex(t)+(o<0?0:1),t=i}else{if(1!=t.nodeType||1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?maxOffset(t):0}}}function maxOffset(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function flattenRect(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}let DOMSelectionState=class DOMSelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?maxOffset(e):0),i,Math.min(t.focusOffset,i?maxOffset(i):0))}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}};let c=null;function focusPreventScroll(t){if(t.setActive)return t.setActive();if(c)return t.focus(c);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==c?{get preventScroll(){return c={preventScroll:!0},!0}}:void 0),!c){c=!1;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}let DOMPos=class DOMPos{constructor(t,e,i=!0){this.node=t,this.offset=e,this.precise=i}static before(t,e){return new DOMPos(t.parentNode,domIndex(t),e)}static after(t,e){return new DOMPos(t.parentNode,domIndex(t)+1,e)}};let d=[];let ContentView=class ContentView{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let i of this.children){if(i==t)return e;e+=i.length+i.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let i=this.dom,s=null,o;for(let n of this.children){if(7&n.flags){if(!n.dom&&(o=s?s.nextSibling:i.firstChild)){let t=ContentView.get(o);(!t||!t.parent&&t.canReuseDOM(n))&&n.reuseDOM(o)}n.sync(t,e),n.flags&=-8}if(o=s?s.nextSibling:i.firstChild,e&&!e.written&&e.node==i&&o!=n.dom&&(e.written=!0),n.dom.parentNode==i)for(;o&&o!=n.dom;)o=rm$1(o);else i.insertBefore(n.dom,o);s=n.dom}for((o=s?s.nextSibling:i.firstChild)&&e&&e.node==i&&(e.written=!0);o;)o=rm$1(o)}else if(1&this.flags)for(let i of this.children)7&i.flags&&(i.sync(t,e),i.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let i;if(t==this.dom)i=this.dom.childNodes[e];else{let s=0==maxOffset(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;0==s&&e.firstChild!=e.lastChild&&(s=t==e.firstChild?-1:1),t=e}i=s<0?t:t.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!ContentView.get(i);)i=i.nextSibling;if(!i)return this.length;for(let t=0,e=0;;t++){let s=this.children[t];if(s.dom==i)return e;e+=s.length+s.breakAfter}}domBoundsAround(t,e,i=0){let s=-1,o=-1,n=-1,r=-1;for(let l=0,h=i,a=i;le)return i.domBoundsAround(t,e,h);if(c>=t&&-1==s&&(s=l,o=h),h>e&&i.dom.parentNode==this.dom){n=l,r=a;break}a=c,h=c+i.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=d){this.markDirty();for(let i=t;ithis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}};function replaceRange(t,e,i,s,o,n,r,l,h){let{children:a}=t,c=a.length?a[e]:null,d=n.length?n[n.length-1]:null,u=d?d.breakAfter:r;if(!(e==s&&c&&!r&&!u&&n.length<2&&c.merge(i,o,n.length?d:null,0==i,l,h))){if(s0&&(!r&&n.length&&c.merge(i,c.length,n[0],!1,l,0)?c.breakAfter=n.shift().breakAfter:(i2);var S={mac:x||/Mac/.test(u.platform),windows:/Win/.test(u.platform),linux:/Linux|X11/.test(u.platform),ie:w,ie_version:g?f.documentMode||6:m?+m[1]:p?+p[1]:0,gecko:v,gecko_version:v?+(/Firefox\/(\d+)/.exec(u.userAgent)||[0,0])[1]:0,chrome:!!b,chrome_version:b?+b[1]:0,ios:x,android:/Android\b/.test(u.userAgent),webkit:y,safari:M,webkit_version:y?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=f.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};let TextView=class TextView extends ContentView{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return!(8&this.flags)&&(!i||i instanceof TextView&&!(this.length-(e-t)+i.length>256)&&!(8&i.flags))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new TextView(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new DOMPos(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function(t,e,i){let s=t.nodeValue.length;e>s&&(e=s);let o=e,n=e,r=0;0==e&&i<0||e==s&&i>=0?!(S.chrome||S.gecko)&&(e?(o--,r=1):n=0)?0:l.length-1];return S.safari&&!r&&0==h.width&&(h=Array.prototype.find.call(l,t=>t.width)||h),r?flattenRect(h,r<0):h||null}(this.dom,t,e)}};let MarkView=class MarkView extends ContentView{constructor(t,e=[],i=0){for(let s of(super(),this.mark=t,this.children=e,this.length=i,e))s.setParent(this)}setAttrs(t){if(clearAttributes(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,s,o,n){return(!i||!!(i instanceof MarkView&&i.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(et&&e.push(i=t&&(s=o),i=r,o++}let n=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new MarkView(this.mark,e,n)}domAtPos(t){return inlineDOMAtPos(this,t)}coordsAt(t,e){return coordsInChildren(this,t,e)}};let WidgetView=class WidgetView extends ContentView{static create(t,e,i){return new WidgetView(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=WidgetView.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,s,o,n){return(!i||i instanceof WidgetView&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0)?DOMPos.before(this.dom):DOMPos.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let n=this.side?this.side<0:t>0;for(let e=n?s.length-1:0;o=s[e],t>0?0!=e:e!=s.length-1&&!(o.top0?DOMPos.before(this.dom):DOMPos.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return l.xv.empty}get isHidden(){return!0}};function inlineDOMAtPos(t,e){let i=t.dom,{children:s}=t,o=0;for(let t=0;o=n.getSide())){if(e>t&&e0;t--){let e=s[t-1];if(e.dom.parentNode==i)return e.domAtPos(e.length)}for(let t=o;t=e&&(a.children.length?scan(a,e-h):(!n||n.isHidden&&i>0)&&(c>e||h==c&&a.getSide()>0)?(n=a,r=e-h):(ha.getSide()&&!a.isHidden)&&(s=a,o=e-h)),h=c}}(t,e);let l=(i<0?s:n)||s||n;return l?l.coordsAt(Math.max(0,l==s?o:r),i):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=clientRectsFor(e);return i[i.length-1]||null}(t)}function combineAttrs(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}TextView.prototype.children=WidgetView.prototype.children=WidgetBufferView.prototype.children=d;let k=Object.create(null);function attrsEq(t,e,i){if(t==e)return!0;t||(t=k),e||(e=k);let s=Object.keys(t),o=Object.keys(e);if(s.length-(i&&s.indexOf(i)>-1?1:0)!=o.length-(i&&o.indexOf(i)>-1?1:0))return!1;for(let n of s)if(n!=i&&(-1==o.indexOf(n)||t[n]!==e[n]))return!1;return!0}function updateAttrs(t,e,i){let s=!1;if(e)for(let o in e)i&&o in i||(s=!0,"style"==o?t.style.cssText="":t.removeAttribute(o));if(i)for(let o in i)e&&e[o]==i[o]||(s=!0,"style"==o?t.style.cssText=i[o]:t.setAttribute(o,i[o]));return s}let LineView=class LineView extends ContentView{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof LineView))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),mergeChildrenInto(this,t,e,i?i.children:[],o,n),!0}split(t){let e=new LineView;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i,off:s}=this.childPos(t);s&&(e.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let t=i;t0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){attrsEq(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function joinInlineInto(t,e,i){let s,{children:o}=t;i>0&&e instanceof MarkView&&o.length&&(s=o[o.length-1])instanceof MarkView&&s.mark.eq(e.mark)?joinInlineInto(s,e.children[0],i-1):(o.push(e),e.setParent(t)),t.length+=e.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=combineAttrs(e,this.attrs||{})),i&&(this.attrs=combineAttrs({class:i},this.attrs||{}))}domAtPos(t){return inlineDOMAtPos(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?4&this.flags&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let s=this.dom.lastChild;for(;s&&ContentView.get(s) instanceof MarkView;)s=s.lastChild;if(!s||!this.length||"BR"!=s.nodeName&&(null===(i=ContentView.get(s))||void 0===i?void 0:i.isEditable)==!1&&(!S.ios||!this.children.some(t=>t instanceof TextView))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof TextView)||/[^ -~]/.test(i.text))return null;let s=clientRectsFor(i.dom);if(1!=s.length)return null;t+=s[0].width,e=s[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let i=coordsInChildren(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(2>Math.abs(e-t.lineHeight)&&t.textHeight=e){if(o instanceof LineView)return o;if(n>e)break}s=n+o.breakAfter}return null}};let BlockWidgetView=class BlockWidgetView extends ContentView{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,o,n){return(!i||i instanceof BlockWidgetView&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0)}};let WidgetType=class WidgetType{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,i){return null}get isHidden(){return!1}destroy(t){}};var C=((o=C||(C={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);let Decoration=class Decoration extends l.uU{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new MarkDecoration(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),i=!!t.block;return e+=i&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new PointDecoration(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:n}=getInclusive(t,e);i=(o?e?-3e8:-1:5e8)-1,s=(n?e?2e8:1:-6e8)+1}return new PointDecoration(t,i,s,e,t.widget||null,!0)}static line(t){return new LineDecoration(t)}static set(t,e=!1){return l.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}};Decoration.none=l.Xs.empty;let MarkDecoration=class MarkDecoration extends Decoration{constructor(t){let{start:e,end:i}=getInclusive(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof MarkDecoration&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(i=t.attrs)||void 0===i?void 0:i.class))&&attrsEq(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}};MarkDecoration.prototype.point=!1;let LineDecoration=class LineDecoration extends Decoration{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof LineDecoration&&this.spec.class==t.spec.class&&attrsEq(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}};LineDecoration.prototype.mapMode=l.gc.TrackBefore,LineDecoration.prototype.point=!0;let PointDecoration=class PointDecoration extends Decoration{constructor(t,e,i,s,o,n){super(e,i,o,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?l.gc.TrackBefore:l.gc.TrackAfter:l.gc.TrackDel}get type(){return this.startSide!=this.endSide?C.WidgetRange:this.startSide<=0?C.WidgetBefore:C.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){var e,i;return t instanceof PointDecoration&&((e=this.widget)==(i=t.widget)||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}};function getInclusive(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function addRange(t,e,i,s=0){let o=i.length-1;o>=0&&i[o]+s>=t?i[o]=Math.max(i[o],e):i.push(t,e)}PointDecoration.prototype.point=!0;let ContentBuilder=class ContentBuilder{constructor(t,e,i,s){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof BlockWidgetView&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new LineView),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wrapMarks(new WidgetBufferView(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||t&&this.content.length&&this.content[this.content.length-1]instanceof BlockWidgetView||this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=e,this.textOff=0}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff,this.textOff+s)),e),i),this.atCursorPos=!0,this.textOff+=s,t-=s,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof PointDecoration){if(i.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof PointDecoration){if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new BlockWidgetView(i.widget||new NullWidget("div"),r,i));else{let n=WidgetView.create(i.widget||new NullWidget("span"),r,r?0:i.startSide),l=this.atCursorPos&&!n.isEditable&&o<=s.length&&(t0),h=!n.isEditable&&(ts.length||i.startSide<=0),a=this.getLine();2!=this.pendingBuffer||l||n.isEditable||(this.pendingBuffer=0),this.flushBuffer(s),l&&(a.append(wrapMarks(new WidgetBufferView(1),s),o),o=s.length+Math.max(0,o-s.length)),a.append(wrapMarks(n,s),o),this.atCursorPos=h,this.pendingBuffer=h?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);r&&(this.textOff+r<=this.text.length?this.textOff+=r:(this.skip+=r-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,i,s,o){let n=new ContentBuilder(t,e,i,o);return n.openEnd=l.Xs.spans(s,e,i,n),n.openStart<0&&(n.openStart=n.openEnd),n.finish(n.openEnd),n}};function wrapMarks(t,e){for(let i of e)t=new MarkView(i,[t],t.length);return t}let NullWidget=class NullWidget extends WidgetType{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};let A=l.r$.define(),D=l.r$.define(),T=l.r$.define(),O=l.r$.define(),V=l.r$.define(),B=l.r$.define(),E=l.r$.define(),R=l.r$.define({combine:t=>t.some(t=>t)}),P=l.r$.define({combine:t=>t.some(t=>t)});let ScrollTarget=class ScrollTarget{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=o}map(t){return t.empty?this:new ScrollTarget(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}};let L=l.Py.define({map:(t,e)=>t.map(e)});function logException(t,e,i){let s=t.facet(O);s.length?s[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}let H=l.r$.define({combine:t=>!t.length||t[0]}),N=0,W=l.r$.define();let ViewPlugin=class ViewPlugin{constructor(t,e,i,s,o){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=s,this.extension=o(this)}static define(t,e){let{eventHandlers:i,eventObservers:s,provide:o,decorations:n}=e||{};return new ViewPlugin(N++,t,i,s,t=>{let e=[W.of(t)];return n&&e.push(z.of(e=>{let i=e.plugin(t);return i?n(i):Decoration.none})),o&&e.push(o(t)),e})}static fromClass(t,e){return ViewPlugin.define(e=>new t(e),e)}};let PluginInstance=class PluginInstance{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(logException(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(t){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){logException(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(e){logException(t.state,e,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}};let F=l.r$.define(),I=l.r$.define(),z=l.r$.define(),G=l.r$.define(),q=l.r$.define();function getIsolatedRanges(t,e,i){let s=t.state.facet(q);if(!s.length)return s;let o=s.map(e=>e instanceof Function?e(t):e),n=[];return l.Xs.spans(o,e,i,{point(){},span(t,e,i,s){let o=n;for(let n=i.length-1;n>=0;n--,s--){let r=i[n].spec.bidiIsolate,l;if(null!=r){if(s>0&&o.length&&(l=o[o.length-1]).to==t&&l.direction==r)l.to=e,o=l.inner;else{let i={from:t,to:e,direction:r,inner:[]};o.push(i),o=i.inner}}}}}),n}let K=l.r$.define();function getScrollMargins(t){let e=0,i=0,s=0,o=0;for(let n of t.state.facet(K)){let r=n(t);r&&(null!=r.left&&(e=Math.max(e,r.left)),null!=r.right&&(i=Math.max(i,r.right)),null!=r.top&&(s=Math.max(s,r.top)),null!=r.bottom&&(o=Math.max(o,r.bottom)))}return{left:e,right:i,top:s,bottom:o}}let j=l.r$.define();let ChangedRange=class ChangedRange{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new ChangedRange(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAa)break;o+=2}if(!l)return i;new ChangedRange(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),n=l.toA,r=l.toB}}};let ViewUpdate=class ViewUpdate{constructor(t,e,i){for(let s of(this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=l.as.empty(this.startState.doc.length),i))this.changes=this.changes.compose(s.changes);let s=[];this.changes.iterChangedRanges((t,e,i,o)=>s.push(new ChangedRange(t,e,i,o))),this.changedRanges=s}static create(t,e,i){return new ViewUpdate(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}};var $=((n=$||($={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n);let X=$.LTR,Y=$.RTL;function dec(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;(o<0||(0!=s?s<0?r.frome:t[o].level>r.level))&&(o=n)}}if(o<0)throw RangeError("Index out of range");return o}};let tt=[];function trivialOrder(t){return[new BidiSpan(0,t,0)]}let te="";let DocView=class DocView extends ContentView{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new LineView],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ChangedRange(0,0,0,t.state.doc.length)],0,null)}update(t){var e,i,s,o,n,r;let h,a;let c=t.changedRanges;this.minWidth>0&&c.length&&(c.every(({fromA:t,toA:e})=>ethis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let d=-1;!(this.view.inputState.composing>=0)||((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?d=this.domChanged.newSel.head:(i=t.changes,s=this.hasComposition,h=!1,s&&i.iterChangedRanges((t,e)=>{ts.from&&(h=!0)}),h||t.selectionSet||(d=t.state.selection.main.head)));let u=d>-1?function(t,e,i){let s=findCompositionNode(t,i);if(!s)return null;let{node:o,from:n,to:r}=s,l=o.nodeValue;if(/[\n\r]/.test(l)||t.state.doc.sliceString(s.from,s.to)!=l)return null;let h=e.invertedDesc,a=new ChangedRange(h.mapPos(n),h.mapPos(r),n,r),c=[];for(let e=o.parentNode;;e=e.parentNode){let i=ContentView.get(e);if(i instanceof MarkView)c.push({node:e,deco:i.mark});else{if(i instanceof LineView||"DIV"==e.nodeName&&e.parentNode==t.contentDOM)return{range:a,text:o,marks:c,line:e};if(e==t.contentDOM)return null;c.push({node:e,deco:new MarkDecoration({inclusive:!0,attributes:function(t){let e=Object.create(null);for(let i=0;i{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=S.chrome||S.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=-8,t&&(t.written||s.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(t=>t.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?s[t]:null;if(!e)break;let{fromA:n,toA:r,fromB:l,toB:h}=e,a,c,d,u;if(i&&i.range.fromBl){let t=ContentBuilder.build(this.view.state.doc,l,i.range.fromB,this.decorations,this.dynamicDecorationMap),e=ContentBuilder.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);c=t.breakAtStart,d=t.openStart,u=e.openEnd;let s=this.compositionView(i);e.breakAtStart?s.breakAfter=1:e.content.length&&s.merge(s.length,s.length,e.content[0],!1,e.openStart,0)&&(s.breakAfter=e.content[0].breakAfter,e.content.shift()),t.content.length&&s.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),a=t.content.concat(s).concat(e.content)}else({content:a,breakAtStart:c,openStart:d,openEnd:u}=ContentBuilder.build(this.view.state.doc,l,h,this.decorations,this.dynamicDecorationMap));let{i:f,off:p}=o.findPos(r,1),{i:g,off:m}=o.findPos(n,-1);replaceRange(this,g,m,f,p,a,c,d,u)}i&&this.fixCompositionDOM(i)}compositionView(t){let e=new TextView(t.text.nodeValue);for(let{deco:i}of(e.flags|=8,t.marks))e=new MarkView(i,[e],e.length);let i=new LineView;return i.append(e,0),i}fixCompositionDOM(t){let fix=(t,e)=>{e.flags|=8|(e.children.some(t=>7&t.flags)?1:0),this.markedForComposition.add(e);let i=ContentView.get(t);i&&i!=e&&(i.dom=null),e.setDOM(t)},e=this.childPos(t.range.fromB,1),i=this.children[e.i];fix(t.line,i);for(let s=t.marks.length-1;s>=-1;s--)e=i.childPos(e.off,1),i=i.children[e.i],fix(s>=0?t.marks[s].node:t.text,i)}updateSelection(t=!1,e=!1){var i;(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let s=this.view.root.activeElement,o=s==this.dom,n=!o&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(s&&this.dom.contains(s));if(!(o||e||n))return;let r=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,h=this.moveToLine(this.domAtPos(l.anchor)),a=l.empty?h:this.moveToLine(this.domAtPos(l.head));if(S.gecko&&l.empty&&!this.hasComposition&&1==(i=h).node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)){let t=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(t,h.node.childNodes[h.offset]||null)),h=a=new DOMPos(t,0),r=!0}let c=this.view.observer.selectionRange;!r&&c.focusNode&&isEquivalentPosition(h.node,h.offset,c.anchorNode,c.anchorOffset)&&isEquivalentPosition(a.node,a.offset,c.focusNode,c.focusOffset)||(this.view.observer.ignore(()=>{S.android&&S.chrome&&this.dom.contains(c.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=getSelection(this.view.root);if(t){if(l.empty){if(S.gecko){var e,i;let t=(e=h.node,i=h.offset,1!=e.nodeType?0:(i&&"false"==e.childNodes[i-1].contentEditable?1:0)|(il.head&&([h,a]=[a,h]),e.setEnd(a.node,a.offset),e.setStart(h.node,h.offset),t.removeAllRanges(),t.addRange(e)}}n&&this.view.root.activeElement==this.dom&&(this.dom.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(h,a)),this.impreciseAnchor=h.precise?null:new DOMPos(c.anchorNode,c.anchorOffset),this.impreciseHead=a.precise?null:new DOMPos(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=getSelection(t.root),{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=LineView.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(s,o)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let s=t.offset;!i&&s=0;s--){let t=ContentView.get(e.childNodes[s]);t instanceof LineView&&(i=t.domAtPos(t.length))}return i?new DOMPos(i.node,i.offset,!0):t}nearest(t){for(let e=t;e;){let t=ContentView.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;n--){let r=this.children[n],l=o-r.breakAfter,h=l-r.length;if(lt||r.covers(1))&&(!i||r instanceof LineView&&!(i instanceof LineView&&e>=0))&&(i=r,s=h),o=h}return i?i.coordsAt(t-s,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),s=this.children[e];if(!(s instanceof LineView))return null;for(;s.children.length;){let{i:t,off:e}=s.childPos(i,1);for(;;t++){if(t==s.children.length)return null;if((s=s.children[t]).length)break}i=e}if(!(s instanceof TextView))return null;let o=(0,l.cp)(s.text,i);if(o==i)return null;let n=textRange(s.dom,i,o).getClientRects();for(let t=0;tMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,l=this.view.textDirection==$.LTR;for(let t=0,h=0;hs)break;if(t>=i){let i=a.dom.getBoundingClientRect();if(e.push(i.height),n){let e=a.dom.lastChild,s=e?clientRectsFor(e):[];if(s.length){let e=s[s.length-1],n=l?e.right-i.left:i.right-e.left;n>r&&(r=n,this.minWidth=o,this.minWidthFrom=t,this.minWidthTo=c)}}}t=c+a.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?$.RTL:$.LTR}measureTextSize(){for(let t of this.children)if(t instanceof LineView){let e=t.measureTextSize();if(e)return e}let t=document.createElement("div"),e,i,s;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=clientRectsFor(t.firstChild)[0];e=t.getBoundingClientRect().height,i=o?o.width/27:7,s=o?o.height:e,t.remove()}),{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new ChildCursor(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s],n=o?o.from-1:this.length;if(n>i){let s=(e.lineBlockAt(n).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(Decoration.replace({widget:new BlockGapWidget(s),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!o)break;i=o.to+1}return Decoration.set(t)}updateDeco(){let t=this.view.state.facet(z).map((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t);for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=getScrollMargins(this.view),n={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom};!function(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t,d=!1;c&&!d;)if(1==c.nodeType){let t,u=c==h.body,f=1,p=1;if(u)t={left:0,right:a.innerWidth,top:0,bottom:a.innerHeight};else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();f=e.width/c.offsetWidth,p=e.height/c.offsetHeight,t={left:e.left,right:e.left+c.clientWidth*f,top:e.top,bottom:e.top+c.clientHeight*p}}let g=0,m=0;if("nearest"==o)e.top0&&e.bottom>t.bottom+m&&(m=e.bottom-t.bottom+m+r)):e.bottom>t.bottom&&(m=e.bottom-t.bottom+r,i<0&&e.top-m0&&e.right>t.right+g&&(g=e.right-t.right+g+n)):e.right>t.right&&(g=e.right-t.right+n,i<0&&e.leftMath.abs(t-g)&&(s="nearest"),i&&1>Math.abs(i-m)&&(o="nearest")}}if(u)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,n,e.head0)s=maxOffset(i=i.childNodes[s-1]);else break}if(i>=0)for(let s=t,o=e;;){if(3==s.nodeType)return{node:s,offset:o};if(1==s.nodeType&&o=0)s=s.childNodes[o],o=0;else break}return null}let ti=class{constructor(){this.changes=[]}compareRange(t,e){addRange(t,e,this.changes)}comparePoint(t,e){addRange(t,e,this.changes)}};function yOverlap(t,e){return t.tope.top+1}function upTop(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function domPosInText(t,e,i){let s=t.nodeValue.length,o=-1,n=1e9,r=0;for(let l=0;li?a.top-i:i-a.bottom)-1;if(a.left-1<=e&&a.right+1>=e&&c=(a.left+a.right)/2,s=i;if((S.chrome||S.gecko)&&textRange(t,l).getBoundingClientRect().left==a.right&&(s=!i),c<=0)return{node:t,offset:l+(s?1:0)};o=l+(s?1:0),n=c}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function posAtCoords(t,e,i,s=-1){var o,n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop,h,{docHeight:a}=t.viewState,{x:c,y:d}=e,u=d-l;if(u<0)return 0;if(u>a)return t.state.doc.length;for(let e=t.viewState.heightOracle.textHeight/2,o=!1;(h=t.elementAtHeight(u)).type!=C.Text;)for(;!((u=s>0?h.bottom+e:h.top-e)>=0)||!(u<=a);){if(o)return i?null:0;o=!0,s=-s}d=l+u;let f=h.from;if(ft.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:posAtCoordsImprecise(t,r,h,c,d);let p=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:p,m=g.elementFromPoint(c,d);m&&!t.contentDOM.contains(m)&&(m=null),!m&&(c=Math.max(r.left+1,Math.min(r.right-1,c)),(m=g.elementFromPoint(c,d))&&!t.contentDOM.contains(m)&&(m=null));let w,v=-1;if(m&&(null===(o=t.docView.nearest(m))||void 0===o?void 0:o.isEditable)!=!1){if(p.caretPositionFromPoint){let t=p.caretPositionFromPoint(c,d);t&&({offsetNode:w,offset:v}=t)}else if(p.caretRangeFromPoint){let e=p.caretRangeFromPoint(c,d);e&&({startContainer:w,startOffset:v}=e,(!t.contentDOM.contains(w)||S.safari&&function(t,e,i){let s;if(3!=t.nodeType||e!=(s=t.nodeValue.length))return!1;for(let e=t.nextSibling;e;e=e.nextSibling)if(1!=e.nodeType||"BR"!=e.nodeName)return!1;return textRange(t,s-1,s).getBoundingClientRect().left>i}(w,v,c)||S.chrome&&function(t,e,i){if(0!=e)return!1;for(let e=t;;){let t=e.parentNode;if(!t||1!=t.nodeType||t.firstChild!=e)return!1;if(t.classList.contains("cm-line"))break;e=t}return i-(1==t.nodeType?t.getBoundingClientRect():textRange(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,v,c))&&(w=void 0))}}if(!w||!t.docView.dom.contains(w)){let e=LineView.find(t.docView,f);if(!e)return u>h.top+h.height/2?h.to:h.from;({node:w,offset:v}=function domPosAtCoords(t,e,i){let s,o,n,r,l,h,a,c,d=!1;for(let p=t.firstChild;p;p=p.nextSibling){let t=clientRectsFor(p);for(let g=0;ge?u.left-e:Math.max(0,e-u.right),v=(f=m).top>i?f.top-i:Math.max(0,i-f.bottom);if(0==w&&0==v)return 3==p.nodeType?domPosInText(p,e,i):domPosAtCoords(p,e,i);if(!l||c>v||c==v&&a>w){l=p,h=m,a=w,c=v;let s=v?i0?g0)}0==w?i>m.bottom&&(!n||n.bottomm.top)&&(o=p,r=m):n&&yOverlap(n,m)?n=upBot(n,m.bottom):r&&yOverlap(r,m)&&(r=upTop(r,m.top))}}if(n&&n.bottom>=i?(l=s,h=n):r&&r.top<=i&&(l=o,h=r),!l)return{node:t,offset:0};let p=Math.max(h.left,Math.min(h.right,e));if(3==l.nodeType)return domPosInText(l,p,i);if(d&&"false"!=l.contentEditable)return domPosAtCoords(l,p,i);let g=Array.prototype.indexOf.call(t.childNodes,l)+(e>=(h.left+h.right)/2?1:0);return{node:t,offset:g}}(e.dom,c,d))}let b=t.docView.nearest(w);if(!b)return null;if(!b.isWidget||(null===(n=b.dom)||void 0===n?void 0:n.nodeType)!=1)return b.localPosFromDOM(w,v)+b.posAtStart;{let t=b.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;n+=Math.floor((o-i.top-(t.defaultLineHeight-e)*.5)/e)*t.viewState.heightOracle.lineLength}let r=t.state.sliceDoc(i.from,i.to);return i.from+(0,l.Gz)(r,n,t.state.tabSize)}function blockAt(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let t of i.type)if(t.to>e||t.to==e&&(t.to==i.to||t.type==C.Text))return t}return i}function moveByChar(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o),r=t.textDirectionAt(o.from);for(let h=e,a=null;;){let e=function(t,e,i,s,o){var n;let r=s.head-t.from,h=-1;if(0==r){if(!o||!t.length)return null;e[0].level!=i&&(r=e[0].side(!1,i),h=0)}else if(r==t.length){if(o)return null;let t=e[e.length-1];t.level!=i&&(r=t.side(!0,i),h=e.length-1)}h<0&&(h=BidiSpan.find(e,r,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc));let a=e[h];r==a.side(o,i)&&(r=(a=e[h+=o?1:-1]).side(!o,i));let c=o==(a.dir==i),d=(0,l.cp)(t.text,r,c);if(te=t.text.slice(Math.min(r,d),Math.max(r,d)),d!=a.side(o,i))return l.jT.cursor(d+t.from,c?-1:1,a.level);let u=h==(o?e.length-1:0)?null:e[h+(o?1:-1)];return u||a.level==i?u&&u.level{if(e>t&&ee(t)),i.from,e.head>i.from?-1:1);return s==i.from?i:l.jT.cursor(s,snull),S.gecko&&(e=t.contentDOM.ownerDocument,tg.has(e)||(tg.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{})))}handleEvent(t){!(!function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(s=ContentView.get(i))&&s.ignoreEvent(e))return!1;return!0}(this.view,t)||this.ignoreDuringComposition(t))&&("keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t))}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=function(t){let e=Object.create(null);function record(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let e of t){let t=e.spec;if(t&&t.domEventHandlers)for(let i in t.domEventHandlers){let s=t.domEventHandlers[i];s&&record(i).handlers.push(bindHandler(e.value,s))}if(t&&t.domEventObservers)for(let i in t.domEventObservers){let s=t.domEventObservers[i];s&&record(i).observers.push(bindHandler(e.value,s))}}for(let t in tr)record(t).handlers.push(tr[t]);for(let t in tl)record(t).observers.push(tl[t]);return e}(t),i=this.handlers,s=this.view.contentDOM;for(let t in e)if("scroll"!=t){let o=!e[t].handlers.length,n=i[t];n&&!n.handlers.length!=o&&(s.removeEventListener(t,this.handleEvent),n=null),n||s.addEventListener(t,this.handleEvent,{passive:o})}for(let t in i)"scroll"==t||e[t]||s.removeEventListener(t,this.handleEvent);this.handlers=e}keydown(t){let e;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),!!(9==t.keyCode&&Date.now()tn.indexOf(t.keyCode)&&(this.view.inputState.lastEscPress=0),S.android&&S.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))?(this.view.observer.delayAndroidKey(t.key,t.keyCode),!0):S.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=ts.find(e=>e.keyCode==t.keyCode))&&!t.ctrlKey||to.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0):(229!=t.keyCode&&this.view.observer.forceFlush(),!1))}flushIOSKey(){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,dispatchKey(this.view.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(S.safari&&!S.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function bindHandler(t,e){return(i,s)=>{try{return e.call(t,s,i)}catch(t){logException(i.state,t)}}}let ts=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],to="dthko",tn=[16,17,18,20,91,92,224,225];function dragScrollSpeed(t){return .7*Math.max(0,t)+8}let MouseSelection=class MouseSelection{constructor(t,e,i,s){let o;this.view=t,this.startEvent=e,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(t){let e=t.ownerDocument;for(let i=t.parentNode;i&&i!=e.body;)if(1==i.nodeType){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(11==i.nodeType)i=i.host;else break;return null}(t.contentDOM),this.atoms=t.state.facet(G).map(e=>e(t));let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this)),n.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(l.yy.allowMultipleSelections)&&((o=t.state.facet(A)).length?o[0](e):S.mac?e.metaKey:e.ctrlKey),this.dragging=!!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=getSelection(t.root);if(!s||0==s.rangeCount)return!0;let o=s.getRangeAt(0).getClientRects();for(let t=0;t=e.clientX&&i.top<=e.clientY&&i.bottom>=e.clientY)return!0}return!1}(t,e)&&1==getClickType(e)&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e,i;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>Math.max(Math.abs((i=this.startEvent).clientX-t.clientX),Math.abs(i.clientY-t.clientY)))return;this.select(this.lastEvent=t);let s=0,o=0,n=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},r=getScrollMargins(this.view);t.clientX-r.left<=n.left+6?s=-dragScrollSpeed(n.left-t.clientX):t.clientX+r.right>=n.right-6&&(s=dragScrollSpeed(t.clientX-n.right)),t.clientY-r.top<=n.top+6?o=-dragScrollSpeed(n.top-t.clientY):t.clientY+r.bottom>=n.bottom-6&&(o=dragScrollSpeed(t.clientY-n.bottom)),this.setScrollSpeed(s,o)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;ithis.select(this.lastEvent),20)}};let tr=Object.create(null),tl=Object.create(null),th=S.ie&&S.ie_version<15||S.ios&&S.webkit_version<604;function doPaste(t,e){let{state:i}=t,s,o=1,n=i.toText(e),r=n.lines==i.selection.ranges.length;if(null!=tf&&i.selection.ranges.every(t=>t.empty)&&tf==n.toString()){let t=-1;s=i.changeByRange(s=>{let h=i.doc.lineAt(s.from);if(h.from==t)return{range:s};t=h.from;let a=i.toText((r?n.line(o++).text:e)+i.lineBreak);return{changes:{from:h.from,insert:a},range:l.jT.cursor(s.from+a.length)}})}else s=r?i.changeByRange(t=>{let e=n.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:l.jT.cursor(t.from+e.length)}}):i.replaceSelection(n);t.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function rangeForClick(t,e,i,s){if(1==s)return l.jT.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),o=t.doc.lineAt(e),n=e-o.from;if(0==o.length)return l.jT.cursor(e);0==n?i=1:n==o.length&&(i=-1);let r=n,h=n;i<0?r=(0,l.cp)(o.text,n,!1):h=(0,l.cp)(o.text,n);let a=s(o.text.slice(r,h));for(;r>0;){let t=(0,l.cp)(o.text,r,!1);if(s(o.text.slice(t,r))!=a)break;r=t}for(;h{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},tr.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&(t.inputState.lastEscPress=Date.now()),!1),tl.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},tl.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},tr.mousedown=(t,e)=>{let i,s,o;if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(T))if(n=i(t,e))break;if(n||0!=e.button||(i=queryPos(t,e),s=getClickType(e),o=t.state.selection,n={update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),o=o.map(t.changes))},get(e,n,r){let h=queryPos(t,e),a,c=rangeForClick(t,h.pos,h.bias,s);if(i.pos!=h.pos&&!n){let e=rangeForClick(t,i.pos,i.bias,s),o=Math.min(e.from,c.from),n=Math.max(e.to,c.to);c=o1&&(a=function(t,e){for(let i=0;i=e)return l.jT.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}(o,h.pos))?a:r?o.addRange(c):l.jT.create([c])}}),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new MouseSelection(t,e,n,i)),i&&t.observer.ignore(()=>focusPreventScroll(t.contentDOM));let s=t.inputState.mouseSelection;if(s)return s.start(e),!1===s.dragging}return!1};let insideY=(t,e)=>t>=e.top&&t<=e.bottom,inside=(t,e,i)=>insideY(e,i)&&t>=i.left&&t<=i.right;function queryPos(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:function(t,e,i,s){let o=LineView.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(0==n)return 1;if(n==o.length)return -1;let r=o.coordsAt(n,-1);if(r&&inside(i,s,r))return -1;let l=o.coordsAt(n,1);return l&&inside(i,s,l)?1:r&&insideY(s,r)?-1:1}(t,i,e.clientX,e.clientY)}}let ta=S.ie&&S.ie_version<=11,tc=null,td=0,tu=0;function getClickType(t){if(!ta)return t.detail;let e=tc,i=tu;return tc=t,tu=Date.now(),td=!e||i>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(td+1)%3:1}function dropText(t,e,i,s){let o;if(!i)return;let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{mouseSelection:r}=t.inputState,l=s&&r&&r.dragging&&((o=t.state.facet(D)).length?o[0](e):S.mac?!e.altKey:!e.ctrlKey)?{from:r.dragging.from,to:r.dragging.to}:null,h={from:n,insert:i},a=t.state.changes(l?[l,h]:h);t.focus(),t.dispatch({changes:a,selection:{anchor:a.mapPos(n,-1),head:a.mapPos(n,1)},userEvent:l?"move.drop":"input.drop"})}tr.dragstart=(t,e)=>{let{selection:{main:i}}=t.state,{mouseSelection:s}=t.inputState;return s&&(s.dragging=i),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove"),!1},tr.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let s=Array(i.length),o=0,finishFile=()=>{++o==i.length&&dropText(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let t=0;t{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(s[t]=e.result),finishFile()},e.readAsText(i[t])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return dropText(t,e,i,!0),!0}return!1},tr.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=th?null:e.clipboardData;return i?(doPaste(t,i.getData("text/plain")||i.getData("text/uri-text")),!0):(function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),doPaste(t,i.value)},50)}(t),!1)};let tf=null;tr.copy=tr.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=function(t){let e=[],i=[],s=!1;for(let s of t.selection.ranges)s.empty||(e.push(t.sliceDoc(s.from,s.to)),i.push(s));if(!e.length){let o=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);n.number>o&&(e.push(n.text),i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})),o=n.number}s=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}(t.state);if(!i&&!o)return!1;tf=o?i:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let n=th?null:e.clipboardData;return n?(n.clearData(),n.setData("text/plain",i),!0):(!function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),!1)};let tp=l.q6.define();function focusChangeTransaction(t,e){let i=[];for(let s of t.facet(E)){let o=s(t,e);o&&i.push(o)}return i?t.update({effects:i,annotations:tp.of(!0)}):null}function updateForFocusChange(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=focusChangeTransaction(t.state,e);i?t.dispatch(i):t.update([])}},10)}tl.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),updateForFocusChange(t)},tl.blur=t=>{t.observer.clearSelectionRange(),updateForFocusChange(t)},tl.compositionstart=tl.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},tl.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,S.chrome&&S.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},tl.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},tr.beforeinput=(t,e)=>{var i;let s;if(S.chrome&&S.android&&(s=ts.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(s.key,s.keyCode),"Backspace"==s.key||"Delete"==s.key)){let e=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout(()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};let tg=new Set,tm=["pre-wrap","normal","pre-line","break-spaces"];let HeightOracle=class HeightOracle{constructor(t){this.lineWrapping=t,this.doc=l.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return tm.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=r;if(this.lineWrapping=r,this.lineHeight=e,this.charWidth=i,this.textHeight=s,this.lineLength=o,l){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return HeightMap.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this,n=i.doc;for(let r=s.length-1;r>=0;r--){let{fromA:l,toA:h,fromB:a,toB:c}=s[r],d=o.lineAt(l,tw.ByPosNoHeight,i.setDoc(e),0,0),u=d.to>=h?d:o.lineAt(h,tw.ByPosNoHeight,i,0,0);for(c+=u.to-h,h=u.to;r>0&&d.from<=s[r-1].toA;)l=s[r-1].fromA,a=s[r-1].fromB,r--,l2*o){let o=t[e-1];o.break?t.splice(--e,1,o.left,null,o.right):t.splice(--e,1,o.left,o.right),i+=1+o.break,s-=o.size}else if(o>2*s){let e=t[i];e.break?t.splice(i,1,e.left,null,e.right):t.splice(i,1,e.left,e.right),i+=2+e.break,o-=e.size}else break}else if(s=o&&n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}};let HeightMapText=class HeightMapText extends HeightMapBlock{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,s){return new BlockInfo(s,this.length,i,this.height,this.breaks)}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof HeightMapText||s instanceof HeightMapGap&&4&s.flags)&&10>Math.abs(this.length-s.length)?(s instanceof HeightMapGap?s=new HeightMapText(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):HeightMap.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}};let HeightMapGap=class HeightMapGap extends HeightMap{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number,o=s-i+1,n,r=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);n=e/o,this.length>o+1&&(r=(this.height-e)/(this.length-o-1))}else n=this.height/o;return{firstLine:i,lastLine:s,perLine:n,perChar:r}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,perLine:r,perChar:l}=this.heightMetrics(e,s);if(e.lineWrapping){let o=s+Math.round(Math.max(0,Math.min(1,(t-i)/this.height))*this.length),n=e.doc.lineAt(o),h=r+n.length*l,a=Math.max(i,t-h/2);return new BlockInfo(n.from,n.length,a,h,0)}{let s=Math.max(0,Math.min(n-o,Math.floor((t-i)/r))),{from:l,length:h}=e.doc.line(o+s);return new BlockInfo(l,h,i+r*s,r,0)}}lineAt(t,e,i,s,o){if(e==tw.ByHeight)return this.blockAt(t,i,s,o);if(e==tw.ByPosNoHeight){let{from:e,to:s}=i.doc.lineAt(t);return new BlockInfo(e,s-e,0,0,0)}let{firstLine:n,perLine:r,perChar:l}=this.heightMetrics(i,o),h=i.doc.lineAt(t),a=r+h.length*l,c=h.number-n,d=s+r*c+l*(h.from-o-c);return new BlockInfo(h.from,h.length,Math.max(s,Math.min(d,s+this.height-a)),a,0)}forEachLine(t,e,i,s,o,n){t=Math.max(t,o),e=Math.min(e,o+this.length);let{firstLine:r,perLine:l,perChar:h}=this.heightMetrics(i,o);for(let a=t,c=s;a<=e;){let e=i.doc.lineAt(a);if(a==t){let i=e.number-r;c+=l*i+h*(t-o-i)}let s=l+h*e.length;n(new BlockInfo(e.from,e.length,c,s,0)),c+=s,a=e.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let t=i[i.length-1];t instanceof HeightMapGap?i[i.length-1]=new HeightMapGap(t.length+s):i.push(null,new HeightMapGap(s-1))}if(t>0){let e=i[0];e instanceof HeightMapGap?i[0]=new HeightMapGap(t+e.length):i.unshift(new HeightMapGap(t-1),null)}return HeightMap.of(i)}decomposeLeft(t,e){e.push(new HeightMapGap(t-1),null)}decomposeRight(t,e){e.push(null,new HeightMapGap(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),r=-1;for(s.from>e&&i.push(new HeightMapGap(s.from-e-1).updateHeight(t,e));n<=o&&s.more;){let e=t.doc.lineAt(n).length;i.length&&i.push(null);let o=s.heights[s.index++];-1==r?r=o:Math.abs(o-r)>=.001&&(r=-2);let l=new HeightMapText(e,o);l.outdated=!1,i.push(l),n+=e+1}n<=o&&i.push(null,new HeightMapGap(o-n).updateHeight(t,n));let l=HeightMap.of(i);return(r<0||Math.abs(l.height-this.height)>=.001||Math.abs(r-this.heightMetrics(t,e).perLine)>=.001)&&(t.heightChanged=!0),l}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}};let HeightMapBranch=class HeightMapBranch extends HeightMap{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==tw.ByPosNoHeight?tw.ByPosNoHeight:tw.ByPos;return l?h.join(this.right.lineAt(r,a,i,n,r)):this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,r,l,n);else{let h=this.lineAt(l,tw.ByPos,i,s,o);t=t&&h.from<=e&&n(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];t>0&&this.decomposeLeft(t,o);let n=o.length;for(let t of i)o.push(t);if(t>0&&mergeGaps(o,n-1),e=++i&&e.push(null),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?HeightMap.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;return(s&&s.from<=e+o.length&&s.more?l=o=o.updateHeight(t,e,i,s):o.updateHeight(t,e,i),s&&s.from<=r+n.length&&s.more?l=n=n.updateHeight(t,r,i,s):n.updateHeight(t,r,i),l)?this.balanced(o,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function mergeGaps(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof HeightMapGap&&(s=t[e+1])instanceof HeightMapGap&&t.splice(e-1,3,new HeightMapGap(i.length+1+s.length))}let NodeBuilder=class NodeBuilder{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof HeightMapText?i.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new HeightMapText(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(s,o,n)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new HeightMapText(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new HeightMapGap(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof HeightMapText)return t;let e=new HeightMapText(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,t),s.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof HeightMapText||this.isCovered?(this.writtenTo"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new HeightOracle(e),this.stateDeco=t.facet(z).filter(t=>"function"!=typeof t),this.heightMap=HeightMap.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle.setDoc(t.doc),[new ChangedRange(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Decoration.set(this.lineGaps.map(t=>t.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:e,to:i}=this.lineBlockAt(s);t.push(new Viewport(e,i))}}this.viewports=t.sort((t,e)=>t.from-e.from),this.scaler=this.heightMap.height<=7e6?tv:new BigScaler(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:scaleBlock(t,this.scaler))})}update(t,e=null){var i,s;let o;this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(z).filter(t=>"function"!=typeof t);let r=t.changedRanges,h=ChangedRange.extendWithRanges(r,(i=this.stateDeco,s=t?t.changes:l.as.empty(this.state.doc.length),o=new DecorationComparator,l.Xs.compare(n,i,s,o,0),o.changes)),a=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),h),this.heightMap.height!=a&&(t.flags|=2),c?(this.scrollAnchorPos=t.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let d=h.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headd.to)||!this.viewportIsAppropriate(d))&&(d=this.getViewport(0,e));let u=!t.changes.empty||2&t.flags||d.from!=this.viewport.from||d.to!=this.viewport.to;this.viewport=d,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(P)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?$.RTL:$.LTR;let n=this.heightOracle.mustRefreshForWrapping(o),r=e.getBoundingClientRect(),h=n||this.mustMeasureContent||this.contentDOMHeight!=r.height;this.contentDOMHeight=r.height,this.mustMeasureContent=!1;let a=0,c=0;if(r.width&&r.height){let t=r.width/e.offsetWidth,i=r.height/e.offsetHeight;(t>.995&&t<1.005||!isFinite(t)||1>Math.abs(r.width-e.offsetWidth))&&(t=1),(i>.995&&i<1.005||!isFinite(i)||1>Math.abs(r.height-e.offsetHeight))&&(i=1),(this.scaleX!=t||this.scaleY!=i)&&(this.scaleX=t,this.scaleY=i,a|=8,n=h=!0)}let d=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=u)&&(this.paddingTop=d,this.paddingBottom=u,a|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(h=!0),this.editorWidth=t.scrollDOM.clientWidth,a|=8);let f=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=isScrolledToBottom(t.scrollDOM);let p=(this.printing?function(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}:function(t,e){let i=t.getBoundingClientRect(),s=t.ownerDocument,o=s.defaultView||window,n=Math.max(0,i.left),r=Math.min(o.innerWidth,i.right),l=Math.max(0,i.top),h=Math.min(o.innerHeight,i.bottom);for(let e=t.parentNode;e&&e!=s.body;)if(1==e.nodeType){let i=e,s=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=s.overflow){let s=i.getBoundingClientRect();n=Math.max(n,s.left),r=Math.min(r,s.right),l=Math.max(l,s.top),h=e==t.parentNode?s.bottom:Math.min(h,s.bottom)}e="absolute"==s.position||"fixed"==s.position?i.offsetParent:i.parentNode}else if(11==e.nodeType)e=e.host;else break;return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}})(e,this.paddingTop),g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(h=!0)),!this.inView&&!this.scrollTarget)return 0;let v=r.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=r.width,this.editorHeight=t.scrollDOM.clientHeight,a|=8),h){let e=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(e)&&(n=!0),n||s.lineWrapping&&Math.abs(v-this.contentDOMWidth)>s.charWidth){let{lineHeight:i,charWidth:r,textHeight:l}=t.docView.measureTextSize();(n=i>0&&s.refresh(o,i,r,l,v/r,e))&&(t.docView.minWidth=0,a|=8)}for(let i of(g>0&&m>0?c=Math.max(g,m):g<0&&m<0&&(c=Math.min(g,m)),s.heightChanged=!1,this.viewports)){let o=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(n?HeightMap.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle,[new ChangedRange(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new MeasuredHeights(i.from,o))}s.heightChanged&&(a|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&a||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,t)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,o=this.heightOracle,{visibleTop:n,visibleBottom:r}=this,l=new Viewport(s.lineAt(n-1e3*i,tw.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,tw.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(tl.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),n=s.lineAt(t,tw.ByPos,o,0,0),r;r="center"==e.y?(n.top+n.bottom)/2-i/2:"start"==e.y||"nearest"==e.y&&t=r+Math.max(10,Math.min(i,250)))&&s>n-2e3&&o>1,n=s<<1;if(this.defaultTextDirection!=$.LTR&&!i)return[];let r=[],addGap=(s,n,h,a)=>{if(n-ss&&tt.from>=h.from&&t.to<=h.to&&Math.abs(t.from-s)t.frome));if(!u){if(nt.from<=n&&t.to>=n)){let t=e.moveToLineBoundary(l.jT.cursor(n),!1,!0).head;t>s&&(n=t)}u=new LineGap(s,n,this.gapSize(h,s,n,a))}r.push(u)};for(let t of this.viewportLines){let e,o;if(t.lengtho&&(s.push({from:o,to:t}),n+=t-o),o=e}},20),ot.from&&addGap(t.from,e,t,r),ot.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];l.Xs.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((t,i)=>t.from!=e[i].from||t.to!=e[i].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||scaleBlock(this.heightMap.lineAt(t,tw.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(t),tw.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}};let Viewport=class Viewport{constructor(t,e){this.from=t,this.to=e}};function findPosition({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let t=0;;t++){let{from:i,to:o}=e[t],n=o-i;if(s<=n)return i+s;s-=n}}function findFraction(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}let tv={toDOM:t=>t,fromDOM:t=>t,scale:1};let BigScaler=class BigScaler{constructor(t,e,i){let s=0,o=0,n=0;for(let r of(this.viewports=i.map(({from:i,to:o})=>{let n=e.lineAt(i,tw.ByPos,t,0,0).top,r=e.lineAt(o,tw.ByPos,t,0,0).bottom;return s+=r-n,{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s),this.viewports))r.domTop=n+(r.top-o)*this.scale,n=r.domBottom=r.domTop+(r.bottom-r.top),o=r.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=escaleBlock(t,e)):t._content)}let tb=l.r$.define({combine:t=>t.join(" ")}),ty=l.r$.define({combine:t=>t.indexOf(!0)>-1}),tM=h.V.newName(),tx=h.V.newName(),tS=h.V.newName(),tk={"&light":"."+tx,"&dark":"."+tS};function buildTheme(t,e,i){return new h.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}let tC=buildTheme("."+tM,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},tk);let DOMReader=class DOMReader{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(l.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);let t=this.text.length;this.readNode(s);let o=s.nextSibling;if(o==e)break;let n=ContentView.get(s),r=ContentView.get(o);(n&&r?n.breakAfter:(n?n.breakAfter:isBlockElement(s))||isBlockElement(o)&&("BR"!=s.nodeName||s.cmIgnore)&&this.text.length>t)&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,n=1,r;if(this.lineSeparator?(o=e.indexOf(this.lineSeparator,i),n=this.lineSeparator.length):(r=s.exec(e))&&(o=r.index,n=r[0].length),this.append(e.slice(i,o<0?e.length:o)),o<0)break;if(this.lineBreak(),n>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=n-1);i=o+n}}readNode(t){if(t.cmIgnore)return;let e=ContentView.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(!function(t,e,i){for(;;){if(!e||i-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=o||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;return i&&(e.push(new DOMPoint(i,s)),(o!=i||n!=s)&&e.push(new DOMPoint(o,n))),e}(t),i=new DOMReader(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?l.jT.single(i+e,s+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,i=o&&o.node==e.focusNode&&o.offset==e.focusOffset||!contains(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),s=n&&n.node==e.anchorNode&&n.offset==e.anchorOffset||!contains(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);this.newSel=l.jT.single(s,i)}}};function applyDOMChange(t,e){let i;let{newSel:s}=e,o=t.state.selection.main,n=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:r}=e.bounds,h=o.from,a=null;(8===n||S.android&&e.text.length0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if("end"==s){let t=Math.max(0,n-Math.min(r,l));i-=r+t-n}if(r=r?n-i:0;n-=t,l=n+(l-r),r=n}else if(l=l?n-i:0;n-=t,r=n+(r-l),l=n}return{from:n,toA:r,toB:l}}(t.state.doc.sliceString(s,r,"￿"),e.text,h-s,a);c&&(S.chrome&&13==n&&c.toB==c.from+2&&"￿￿"==e.text.slice(c.from,c.toB)&&c.toB--,i={from:s+c.from,to:s+c.toA,insert:l.xv.of(e.text.slice(c.from,c.toB).split("￿"))})}else s&&(!t.hasFocus&&t.state.facet(H)||s.main.eq(o))&&(s=null);if(!i&&!s)return!1;if(!i&&e.typeOver&&!o.empty&&s&&s.main.empty?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,o.to))}:(S.mac||S.android)&&i&&i.from==i.to&&i.from==o.head-1&&/^\. ?$/.test(i.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(s&&2==i.insert.length&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}):S.chrome&&i&&i.from==i.to&&i.from==o.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}),i){let e;if(S.ios&&t.inputState.flushIOSKey()||S.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&dispatchKey(t.contentDOM,"Enter",13)||(i.from==o.from-1&&i.to==o.to&&0==i.insert.length||8==n&&i.insert.lengtho.head)&&dispatchKey(t.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&dispatchKey(t.contentDOM,"Delete",46)))return!0;let r=i.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let defaultInsert=()=>e||(e=function(t,e,i){let s,o=t.state,n=o.selection.main;if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=n.frome.to?o.sliceDoc(e.to,n.to):"";s=o.replaceSelection(t.state.toText(i+e.insert.sliceString(0,void 0,t.state.lineBreak)+r))}else{let r=o.changes(e),h=i&&i.main.to<=r.newLength?i.main:void 0;if(o.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=n.to&&e.to>=n.to-10){let a=t.state.sliceDoc(e.from,e.to),c,d=i&&findCompositionNode(t,i.main.head);if(d){let t=e.insert.length-(e.to-e.from);c={from:d.from,to:d.to-t}}else c=t.state.doc.lineAt(n.head);let u=n.to-e.to,f=n.to-n.from;s=o.changeByRange(i=>{if(i.from==n.from&&i.to==n.to)return{changes:r,range:h||i.map(r)};let s=i.to-u,d=s-a.length;if(i.to-i.from!=f||t.state.sliceDoc(d,s)!=a||i.to>=c.from&&i.from<=c.to)return{range:i};let p=o.changes({from:d,to:s,insert:e.insert}),g=i.to-n.to;return{changes:p,range:h?l.jT.range(Math.max(0,h.anchor+g),Math.max(0,h.head+g)):i.map(p)}})}else s={changes:r,selection:h&&o.selection.replaceRange(h)}}let r="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,r+=".compose",t.inputState.compositionFirstChange&&(r+=".start",t.inputState.compositionFirstChange=!1)),o.update(s,{userEvent:r,scrollIntoView:!0})}(t,i,s));return t.state.facet(B).some(e=>e(t,i.from,i.to,r,defaultInsert))||t.dispatch(defaultInsert()),!0}if(!s||s.main.eq(o))return!1;{let e=!1,i="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),i=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:e,userEvent:i}),!0}}let tA={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},tD=S.ie&&S.ie_version<=11;let DOMObserver=class DOMObserver{constructor(t){this.view=t,this.active=!1,this.selectionRange=new DOMSelectionState,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let t of e)this.queue.push(t);(S.ie&&S.ie_version<=11||S.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),tD&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(H)?i.root.activeElement!=this.dom:!hasSelection(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(S.ie&&S.ie_version<=11||S.android&&S.chrome)&&!i.state.selection.main.empty&&s.focusNode&&isEquivalentPosition(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=S.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function read(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",read,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",read,!0),!e)return null;let i=e.startContainer,s=e.startOffset,o=e.endContainer,n=e.endOffset,r=t.docView.domAtPos(t.state.selection.main.anchor);return isEquivalentPosition(r.node,r.offset,o,n)&&([i,s,o,n]=[o,n,i,s]),{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}}(this.view)||getSelection(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=hasSelection(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&dispatchKey(this.dom,t.key,t.keyCode))})),this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,s=!1;for(let o of t){let t=this.readMutation(o);t&&(t.typeOver&&(s=!0),-1==e?{from:e,to:i}=t:(e=Math.min(t.from,e),i=Math.max(t.to,i)))}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(t<0&&!s)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new DOMChange(this.view,t,e,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,s=applyDOMChange(this.view,e);return this.view.state==i&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let i=findChild(e,t.previousSibling||t.target.previousSibling,-1),s=findChild(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i;for(let s of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),this.scrollTargets))s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};function findChild(t,e,i){for(;e;){let s=ContentView.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}let EditorView=class EditorView{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:e}=t;for(let i of(this.dispatchTransactions=t.dispatchTransactions||e&&(t=>t.forEach(t=>e(t,this)))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new ViewState(t.state||l.yy.create(t)),this.plugins=this.state.facet(W).map(t=>new PluginInstance(t)),this.plugins))i.update(this);this.observer=new DOMObserver(this),this.inputState=new InputState(this),this.inputState.ensureHandlers(this.plugins),this.docView=new DocView(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}dispatch(...t){let e=1==t.length&&t[0]instanceof l.YW?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,o=this.state;for(let e of t){if(e.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=e.state}if(this.destroyed){this.viewState.state=o;return}let n=this.hasFocus,r=0,h=null;t.some(t=>t.annotation(tp))?(this.inputState.notifiedFocused=n,r=1):n==this.inputState.notifiedFocused||(this.inputState.notifiedFocused=n,(h=focusChangeTransaction(o,n))||(r=1));let a=this.observer.delayedAndroidKey,c=null;if(a?(this.observer.clearDelayedAndroidKey(),((c=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(l.yy.phrases)!=this.state.facet(l.yy.phrases))return this.setState(o);s=ViewUpdate.create(this,o,t),s.flags|=r;let d=this.viewState.scrollTarget;try{for(let e of(this.updateState=2,t)){if(d&&(d=d.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;d=new ScrollTarget(t.empty?t:l.jT.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(L)&&(d=t.value)}this.viewState.update(s,d),this.bidiCache=CachedOrder.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(j)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(tb)!=s.state.facet(tb)&&(this.viewState.mustMeasureContent=!0),(e||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!s.empty)for(let t of this.state.facet(V))t(s);(h||c)&&Promise.resolve().then(()=>{h&&this.state==h.startState&&this.dispatch(h),c&&!applyDOMChange(this,c)&&a.force&&dispatchKey(this.contentDOM,a.key,a.keyCode)})}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);for(let e of(this.viewState=new ViewState(t),this.plugins=t.facet(W).map(t=>new PluginInstance(t)),this.pluginMap.clear(),this.plugins))e.update(this);this.docView=new DocView(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(W),i=t.state.facet(W);if(e!=i){let s=[];for(let o of i){let i=e.indexOf(o);if(i<0)s.push(new PluginInstance(o));else{let e=this.plugins[i];e.mustUpdate=t,s.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let e of this.plugins)e.mustUpdate=t;for(let t=0;t-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:n}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(n=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(n<0){if(isScrolledToBottom(i))o=-1,n=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(s);o=t.from,n=t.top}}this.updateState=1;let r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&r||([this.measureRequests,l]=[l,this.measureRequests]);let h=l.map(t=>{try{return t.read(this)}catch(t){return logException(this.state,t),tO}}),a=ViewUpdate.create(this,this.state,[]),c=!1;a.flags|=r,e?e.flags|=r:e=a,this.updateState=2,a.empty||(this.updatePlugins(a),this.inputState.update(a),this.updateAttrs(),c=this.docView.update(a));for(let t=0;t1||t<-1){s+=t,i.scrollTop=s/this.scaleY,n=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let t of this.state.facet(V))t(e)}get themeClasses(){return tM+" "+(this.state.facet(ty)?tS:tx)+" "+this.state.facet(tb)}updateAttrs(){let t=attrsFromFacet(this,F,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(H)?"true":"false",class:"cm-content",style:`${S.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),attrsFromFacet(this,I,e);let i=this.observer.ignore(()=>{let i=updateAttrs(this.contentDOM,this.contentAttrs,e),s=updateAttrs(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let t of i.effects)t.is(EditorView.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value)}mountStyles(){this.styleModules=this.state.facet(j);let t=this.state.facet(EditorView.cspNonce);h.V.mount(this.root,this.styleModules.concat(tC).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t&&!(this.measureRequests.indexOf(t)>-1)){if(null!=t.key){for(let e=0;ee.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return skipAtoms(this,t,moveByChar(this,t,e,i))}moveByGroup(t,e){return skipAtoms(this,t,moveByChar(this,t,e,e=>{var i;let s,o;return i=t.head,o=(s=this.state.charCategorizer(i))(e),t=>{let e=s(t);return o==l.D0.Space&&(o=e),o==e}}))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let o=blockAt(t,e.head),n=s&&o.type==C.Text&&(t.lineWrapping||o.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(n){let e=t.dom.getBoundingClientRect(),s=t.textDirectionAt(o.from),r=t.posAtCoords({x:i==(s==$.LTR)?e.right-1:e.left+1,y:(n.top+n.bottom)/2});if(null!=r)return l.jT.cursor(r,i?-1:1)}return l.jT.cursor(i?o.to:o.from,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return skipAtoms(this,t,function(t,e,i,s){let o=e.head,n=i?1:-1;if(o==(i?t.state.doc.length:0))return l.jT.cursor(o,e.assoc);let r=e.goalColumn,h,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(o,e.assoc||-1),d=t.documentTop;if(c)null==r&&(r=c.left-a.left),h=n<0?c.top:c.bottom;else{let e=t.viewState.lineBlockAt(o);null==r&&(r=Math.min(a.right-a.left,t.defaultCharacterWidth*(o-e.from))),h=(n<0?e.top:e.bottom)+d}let u=a.left+r,f=null!=s?s:t.viewState.heightOracle.textHeight>>1;for(let e=0;;e+=10){let i=h+(f+e)*n,s=posAtCoords(t,{x:u,y:i},!1,n);if(ia.bottom||(n<0?so)){let e=t.docView.coordsForChar(s),o=!e||i0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(R)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>tT)return trivialOrder(t.length);let e=this.textDirectionAt(t.from),i;for(let s of this.bidiCache)if(s.from==t.from&&s.dir==e&&(s.fresh||function isolatesEq(t,e){if(t.length!=e.length)return!1;for(let i=0;itt.length;)tt[tt.length]=256;let s=[],o=e==X?0:1;return function computeSectionOrder(t,e,i,s,o,n,r){let l=e%2?2:1;(function(t,e,i,s,o){for(let r=0;r<=s.length;r++){let l=r?s[r-1].to:e,h=r=0;t-=3)if(Z[t+1]==-s){let i=Z[t+2],s=2&i?o:4&i?1&i?n:o:0;s&&(tt[e]=tt[Z[t]]=s),l=t;break}}else if(189==Z.length)break;else Z[l++]=e,Z[l++]=i,Z[l++]=h}else if(2==(r=tt[e])||1==r){let t=r==o;h=t?0:1;for(let e=l-3;e>=0;e-=3){let i=Z[e+2];if(2&i)break;if(t)Z[e+2]|=2;else{if(4&i)break;Z[e+2]|=4}}}}}(t,o,n,s,l),function(t,e,i,s){for(let o=0,n=s;o<=i.length;o++){let r=o?i[o-1].to:t,l=oh;)e==n&&(e=i[--s].from,n=s?i[s-1].to:t),tt[--e]=c;h=r}else n=r,h++}}}(o,n,s,l),function emitSpans(t,e,i,s,o,n,r){let l=s%2?2:1;if(s%2==o%2)for(let h=e,a=0;hh&&r.push(new BidiSpan(h,p.from,u)),computeSectionOrder(t,p.direction==X!=!(u%2)?s+1:s,o,p.inner,p.from,p.to,r),h=p.to),f=p.to}else if(f==i||(e?tt[f]!=l:tt[f]==l))break;else f++;d?emitSpans(t,h,f,s+1,o,d,r):he;){let i=!0,c=!1;if(!a||h>n[a-1].to){let t=tt[h-1];t!=l&&(i=!1,c=16==t)}let d=i||1!=l?null:[],u=i?s:s+1,f=h;t:for(;;)if(a&&f==n[a-1].to){if(c)break;let p=n[--a];if(!i)for(let t=p.from,i=a;;){if(t==e)break t;if(i&&n[i-1].to==t)t=n[--i].from;else if(tt[t-1]==l)break t;else break}d?d.push(p):(p.toDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return L.of(new ScrollTarget("number"==typeof t?l.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return ViewPlugin.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ViewPlugin.define(()=>({}),{eventObservers:t})}static theme(t,e){let i=h.V.newName(),s=[tb.of(i),j.of(buildTheme(`.${i}`,t))];return e&&e.dark&&s.push(ty.of(!0)),s}static baseTheme(t){return l.Wl.lowest(j.of(buildTheme("."+tM,t,tk)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&ContentView.get(i)||ContentView.get(t);return(null===(e=null==s?void 0:s.rootView)||void 0===e?void 0:e.view)||null}};EditorView.styleModule=j,EditorView.inputHandler=B,EditorView.focusChangeEffect=E,EditorView.perLineTextDirection=R,EditorView.exceptionSink=O,EditorView.updateListener=V,EditorView.editable=H,EditorView.mouseSelectionStyle=T,EditorView.dragMovesSelection=D,EditorView.clickAddsSelectionRange=A,EditorView.decorations=z,EditorView.atomicRanges=G,EditorView.bidiIsolatedRanges=q,EditorView.scrollMargins=K,EditorView.darkTheme=ty,EditorView.cspNonce=l.r$.define({combine:t=>t.length?t[0]:""}),EditorView.contentAttributes=I,EditorView.editorAttributes=F,EditorView.lineWrapping=EditorView.contentAttributes.of({class:"cm-lineWrapping"}),EditorView.announce=l.Py.define();let tT=4096,tO={};let CachedOrder=class CachedOrder{constructor(t,e,i,s,o,n){this.from=t,this.to=e,this.dir=i,this.isolates=s,this.fresh=o,this.order=n}static update(t,e){if(e.empty&&!t.some(t=>t.fresh))return t;let i=[],s=t.length?t[t.length-1].dir:$.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let e=s[o],n="function"==typeof e?e(t):e;n&&combineAttrs(n,i)}return i}let tV=S.mac?"mac":S.windows?"win":S.linux?"linux":"key";function modifiers(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}let tB=l.Wl.default(EditorView.domEventHandlers({keydown:(t,e)=>runHandlers(getKeymap(e.state),t,e,"editor")})),tE=l.r$.define({enables:tB}),tR=new WeakMap;function getKeymap(t){let e=t.facet(tE),i=tR.get(e);return i||tR.set(e,i=function(t,e=tV){let i=Object.create(null),s=Object.create(null),checkPrefix=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},add=(t,s,o,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null)),c=s.split(/ (?!$)/).map(t=>(function(t,e){let i,s,o,n;let r=t.split(/-(?!$)/),l=r[r.length-1];"Space"==l&&(l=" ");for(let t=0;t{let s=tP={view:e,prefix:i,scope:t};return setTimeout(()=>{tP==s&&(tP=null)},4e3),!0}]})}let d=c.join(" ");checkPrefix(d,!1);let u=a[d]||(a[d]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(l=a._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});o&&u.run.push(o),n&&(u.preventDefault=!0),r&&(u.stopPropagation=!0)};for(let s of t){let t=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));for(let e in t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]}),t)t[e].run.push(s.any)}let o=s[e]||s.key;if(o)for(let e of t)add(e,o,s.run,s.preventDefault,s.stopPropagation),s.shift&&add(e,"Shift-"+o,s.shift,s.preventDefault,s.stopPropagation)}return i}(e.reduce((t,e)=>t.concat(e),[]))),i}function runScopeHandlers(t,e,i){return runHandlers(getKeymap(t.state),e,t,i)}let tP=null;function runHandlers(t,e,i,s){let o=(0,a.YG)(e),n=(0,l.gm)(o,0),r=(0,l.nZ)(n)==o.length&&" "!=o,h="",c=!1,d=!1,u=!1;tP&&tP.view==i&&tP.scope==s&&(h=tP.prefix+" ",0>tn.indexOf(e.keyCode)&&(d=!0,tP=null));let f=new Set,runFor=t=>{if(t){for(let s of t.run)if(!f.has(s)&&(f.add(s),s(i,e)))return t.stopPropagation&&(u=!0),!0;t.preventDefault&&(t.stopPropagation&&(u=!0),d=!0)}return!1},p=t[s],g,m;return p&&(runFor(p[h+modifiers(o,e,!r)])?c=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(S.windows&&e.ctrlKey&&e.altKey)&&(g=a.ue[e.keyCode])&&g!=o?runFor(p[h+modifiers(g,e,!0)])?c=!0:e.shiftKey&&(m=a.uY[e.keyCode])!=o&&m!=g&&runFor(p[h+modifiers(m,e,!1)])&&(c=!0):r&&e.shiftKey&&runFor(p[h+modifiers(o,e,!0)])&&(c=!0),!c&&runFor(p._any)&&(c=!0)),d&&(c=!0),c&&u&&e.stopPropagation(),c}let RectangleMarker=class RectangleMarker{constructor(t,e,i,s,o){this.className=t,this.left=e,this.top=i,this.width=s,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(!i.empty)return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to),n=t.textDirection==$.LTR,r=t.contentDOM,l=r.getBoundingClientRect(),h=getBase(t),a=r.querySelector(".cm-line"),c=a&&window.getComputedStyle(a),d=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),u=l.right-(c?parseInt(c.paddingRight):0),f=blockAt(t,s),p=blockAt(t,o),g=f.type==C.Text?f:null,m=p.type==C.Text?p:null;if(g&&(t.lineWrapping||f.widgetLineBreaks)&&(g=wrappedLine(t,s,g)),m&&(t.lineWrapping||p.widgetLineBreaks)&&(m=wrappedLine(t,o,m)),g&&m&&g.from==m.from)return pieces(drawForLine(i.from,i.to,g));{let e=g?drawForLine(i.from,null,g):drawForWidget(f,!1),s=m?drawForLine(null,i.to,m):drawForWidget(p,!0),o=[];return(g||f).to<(m||p).from-(g&&m?1:0)||f.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2h&&s.from=n)break;l>o&&addSpan(Math.max(t,o),null==e&&t<=h,Math.min(l,n),null==i&&l>=a,r.dir)}if((o=s.to+1)>=n)break}return 0==l.length&&addSpan(h,null==e,a,null==i,t.textDirection),{top:o,bottom:r,horizontal:l}}function drawForWidget(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i);{let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=getBase(t);return[new RectangleMarker(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}}};function getBase(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==$.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function wrappedLine(t,e,i){let s=l.jT.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(s,!0,!0).from),type:C.Text}}let LayerView=class LayerView{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(tL)!=t.state.facet(tL)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let e=0,i=t.facet(tL);for(;e{var i;return i=this.drawn[e],!(t.constructor==i.constructor&&t.eq(i))})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}};let tL=l.r$.define();function layer(t){return[ViewPlugin.define(e=>new LayerView(e,t)),tL.of(t)]}let tH=!S.ios,tN=l.r$.define({combine:t=>(0,l.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function drawSelection(t={}){return[tN.of(t),tW,tF,tz,P.of(!0)]}function configChanged(t){return t.startState.facet(tN)!=t.state.facet(tN)}let tW=layer({above:!0,markers(t){let{state:e}=t,i=e.facet(tN),s=[];for(let o of e.selection.ranges){let n=o==e.selection.main;if(o.empty?!n||tH:i.drawRangeCursor){let e=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",i=o.empty?o:l.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let o of RectangleMarker.forRange(t,e,i))s.push(o)}}return s},update(t,e){t.transactions.some(t=>t.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=configChanged(t);return i&&setBlinkRate(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){setBlinkRate(e.state,t)},class:"cm-cursorLayer"});function setBlinkRate(t,e){e.style.animationDuration=t.facet(tN).cursorBlinkRate+"ms"}let tF=layer({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:RectangleMarker.forRange(t,"cm-selectionBackground",e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||configChanged(t),class:"cm-selectionLayer"}),tI={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};tH&&(tI[".cm-line"].caretColor="transparent !important");let tz=l.Wl.highest(EditorView.theme(tI)),tG=l.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),tq=l.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(tG)?e.value:t,t))}),tK=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(tq);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(tq)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(tq),i=null!=e&&t.coordsAtPos(e);if(!i)return null;let s=t.scrollDOM.getBoundingClientRect();return{left:i.left-s.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-s.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/i+"px",this.cursor.style.height=t.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(tq)!=t&&this.view.dispatch({effects:tG.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[tq,tK]}function iterMatches(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length)if(!n.lineBreak)for(;l=e.exec(n.value);)o(r+l.index,l)}let MatchDecorator=class MatchDecorator{constructor(t){let{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);n&&o(s,s+t[0].length,n)};else if(i)this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=n}createDeco(t){let e=new l.f_,i=e.add.bind(e);for(let{from:e,to:s}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i)o=Math.max(t.state.doc.lineAt(o).from,o-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=o?s[s.length-1].to=n:s.push({from:o,to:n});return s}(t,this.maxLength))iterMatches(t.state.doc,this.regexp,e,s,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return(t.docChanged&&t.changes.iterChanges((e,o,n,r)=>{r>t.view.viewport.from&&n1e3)?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let i=t.state.doc.lineAt(n),s=i.toi.from;n--)if(this.boundary.test(i.text[n-1-i.from])){l=n;break}for(;ra.push(i.range(t,e));if(i==s)for(this.regexp.lastIndex=l-i.from;(c=this.regexp.exec(i.text))&&c.indexthis.addMatch(i,t,e,add));e=e.update({filterFrom:l,filterTo:h,filter:(t,e)=>th,add:a})}}return e}};let tj=null!=/x/.unicode?"gu":"g",t$=RegExp("[\x00-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",tj),tX={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},tY=null,t_=l.r$.define({combine(t){let e=(0,l.BO)(t,{render:null,specialChars:t$,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==tY&&"undefined"!=typeof document&&document.body){let e=document.body.style;tY=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return tY||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,tj)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,tj)),e}});function highlightSpecialChars(t={}){return[t_.of(t),tU||(tU=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.decorations=Decoration.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(t_)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new MatchDecorator({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:o}=i.state,n=(0,l.gm)(e[0],0);if(9==n){let t=o.lineAt(s),e=i.state.tabSize,n=(0,l.IS)(t.text,e,s-t.from);return Decoration.replace({widget:new TabWidget((e-n%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=Decoration.replace({widget:new SpecialCharWidget(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(t_);t.startState.facet(t_)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let tU=null;let SpecialCharWidget=class SpecialCharWidget extends WidgetType{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let i=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),s=t.state.phrase("Control character")+" "+(tX[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,s,i);if(o)return o;let n=document.createElement("span");return n.textContent=i,n.title=s,n.setAttribute("aria-label",s),n.className="cm-specialChar",n}ignoreEvent(){return!1}};let TabWidget=class TabWidget extends WidgetType{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}};function highlightActiveLine(){return tZ}let tQ=Decoration.line({class:"cm-activeLine"}),tZ=ViewPlugin.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);o.from>e&&(i.push(tQ.range(o.from)),e=o.from)}return Decoration.set(i)}},{decorations:t=>t.decorations});let Placeholder=class Placeholder extends WidgetType{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let e=t.firstChild?clientRectsFor(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode),s=flattenRect(e[0],"rtl"!=i.direction),o=parseInt(i.lineHeight);return s.bottom-s.top>1.5*o?{left:s.left,right:s.right,top:s.top,bottom:s.top+o}:s}ignoreEvent(){return!1}};function placeholder(t){return ViewPlugin.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Decoration.set([Decoration.widget({widget:new Placeholder(t),side:1}).range(0)]):Decoration.none}get decorations(){return this.view.state.doc.length?Decoration.none:this.placeholder}},{decorations:t=>t.decorations})}function getPos(t,e){var i;let s,o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(o),r=o-n.from,h=r>2e3?-1:r==n.length?(i=e.clientX,(s=t.coordsAtPos(t.viewport.from))?Math.round(Math.abs((s.left-i)/t.defaultCharacterWidth)):-1):(0,l.IS)(n.text,t.state.tabSize,o-n.from);return{line:n.number,col:h,off:r}}function rectangularSelection(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return EditorView.mouseSelectionStyle.of((t,i)=>{let s,o;return e(i)?(s=getPos(t,i),o=t.state.selection,s?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(s.line).from),i=t.state.doc.lineAt(e);s={line:i.number,col:s.col,off:Math.min(s.off,i.length)},o=o.map(t.changes)}},get(e,i,n){let r=getPos(t,e);if(!r)return o;let h=function(t,e,i){let s=Math.min(e.line,i.line),o=Math.max(e.line,i.line),n=[];if(e.off>2e3||i.off>2e3||e.col<0||i.col<0){let r=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let e=s;e<=o;e++){let i=t.doc.line(e);i.length<=h&&n.push(l.jT.range(i.from+r,i.to+h))}}else{let r=Math.min(e.col,i.col),h=Math.max(e.col,i.col);for(let e=s;e<=o;e++){let i=t.doc.line(e),s=(0,l.Gz)(i.text,r,t.tabSize,!0);if(s<0)n.push(l.jT.cursor(i.to));else{let e=(0,l.Gz)(i.text,h,t.tabSize);n.push(l.jT.range(i.from+s,i.from+e))}}}return n}(t.state,s,r);return h.length?n?l.jT.create(h.concat(o.ranges)):l.jT.create(h):o}}:null):null})}let tJ={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},t0={style:"cursor: crosshair"};function crosshairCursor(t={}){let[e,i]=tJ[t.key||"Alt"],s=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[s,EditorView.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.isDown)?t0:null})]}let t1="-10000px";let TooltipViewManager=class TooltipViewManager{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t),this.tooltipViews=this.tooltips.map(i)}update(t,e){var i;let s=t.state.facet(this.facet),o=s.filter(t=>t);if(s===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let n=[],r=e?[]:null;for(let i=0;in.indexOf(t)&&(t.dom.remove(),null===(i=t.destroy)||void 0===i||i.call(t));return e&&(r.forEach((t,i)=>e[i]=t),e.length=r.length),this.input=s,this.tooltips=o,this.tooltipViews=n,!0}};function windowSpace(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}let t2=l.r$.define({combine:t=>{var e,i,s;return{position:S.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find(t=>t.parent))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(s=t.find(t=>t.tooltipSpace))||void 0===s?void 0:s.tooltipSpace)||windowSpace}}}),t8=new WeakMap,t3=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(t2);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new TooltipViewManager(t,t4,t=>this.createTooltip(t)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let i=e||t.geometryChanged,s=t.state.facet(t2);if(s.position!=this.position&&!this.madeAbsolute){for(let t of(this.position=s.position,this.manager.tooltipViews))t.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){for(let t of(this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(t.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=t1,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;for(let e of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e);this.parent&&this.container.remove(),null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,i=1,s=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(S.gecko)s=t.offsetParent!=this.container.ownerDocument.body;else if(1!=this.view.scaleX||1!=this.view.scaleY)s=!0;else if(t.style.top==t1&&"0px"==t.style.left){let e=t.getBoundingClientRect();s=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(s||"absolute"==this.position){if(this.parent){let t=this.parent.getBoundingClientRect();t.width&&t.height&&(e=t.width/this.parent.offsetWidth,i=t.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:i}=this.view.viewState)}return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(t2).tooltipSpace(this.view),scaleX:e,scaleY:i,makeAbsolute:s}}writeMeasure(t){var e;if(t.makeAbsolute)for(let t of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))t.dom.style.position="absolute";let{editor:i,space:s,scaleX:o,scaleY:n}=t,r=[];for(let l=0;l=Math.min(i.bottom,s.bottom)||d.rightMath.min(i.right,s.right)+.1){c.style.top=t1;continue}let f=h.arrow?a.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,g=u.right-u.left,m=null!==(e=t8.get(a))&&void 0!==e?e:u.bottom-u.top,w=a.offset||t5,v=this.view.textDirection==$.LTR,b=u.width>s.right-s.left?v?s.left:s.right-u.width:v?Math.min(d.left-(f?14:0)+w.x,s.right-g):Math.max(s.left,d.left-g+(f?14:0)-w.x),y=this.above[l];!h.strictSide&&(y?d.top-(u.bottom-u.top)-w.ys.bottom)&&y==s.bottom-d.bottom>d.top-s.top&&(y=this.above[l]=!y);let M=(y?d.top-s.top:s.bottom-d.bottom)-p;if(Mb&&t.topx&&(x=y?t.top-m-2-p:t.bottom+p+2);if("absolute"==this.position?(c.style.top=(x-t.parent.top)/n+"px",c.style.left=(b-t.parent.left)/o+"px"):(c.style.top=x/n+"px",c.style.left=b/o+"px"),f){let t=d.left+(v?w.x:-w.x)-(b+14-7);f.style.left=t/o+"px"}!0!==a.overlap&&r.push({left:b,top:x,right:S,bottom:x+m}),c.classList.toggle("cm-tooltip-above",y),c.classList.toggle("cm-tooltip-below",!y),a.positioned&&a.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=t1}},{eventObservers:{scroll(){this.maybeMeasure()}}}),t9=EditorView.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),t5={x:0,y:0},t4=l.r$.define({enables:[t3,t9]}),t6=l.r$.define();let HoverTooltipHost=class HoverTooltipHost{static create(t){return new HoverTooltipHost(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new TooltipViewManager(t,t6,t=>this.createHostedView(t))}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let i of this.manager.tooltipViews){let s=i[t];if(void 0!==s){if(void 0===e)e=s;else if(e!==s)return}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}};let t7=t4.compute([t6],t=>{let e=t.facet(t6).filter(t=>t);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>null!=t.end).map(t=>t.end)),create:HoverTooltipHost.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});let HoverPlugin=class HoverPlugin{constructor(t,e,i,s,o){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||e.xi.right+t.defaultCharacterWidth)return;let n=t.bidiSpans(t.state.doc.lineAt(s)).find(t=>t.from<=s&&t.to>=s),r=n&&n.dir==$.RTL?-1:1;o=e.x{this.pending==e&&(this.pending=null,i&&t.dispatch({effects:this.setHover.of(i)}))},e=>logException(t.state,e,"hover tooltip"))}else n&&t.dispatch({effects:this.setHover.of(n)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let i=this.active;if(i&&!isInTooltip(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!function(t,e,i,s,o,n){let r=t.scrollDOM.getBoundingClientRect(),l=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>s||r.righto||Math.min(r.bottom,l)=e&&h<=i}(this.view,s,o,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!isInTooltip(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}};function isInTooltip(t){for(let e=t;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip"))return!0;return!1}function hoverTooltip(t,e={}){let i=l.Py.define(),s=l.QQ.define({create:()=>null,update(t,s){if(t&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,t)))return null;if(t&&s.docChanged){let e=s.changes.mapPos(t.pos,-1,l.gc.TrackDel);if(null==e)return null;let i=Object.assign(Object.create(null),t);i.pos=e,null!=t.end&&(i.end=s.changes.mapPos(t.end)),t=i}for(let e of s.effects)e.is(i)&&(t=e.value),e.is(et)&&(t=null);return t},provide:t=>t6.from(t)});return[s,ViewPlugin.define(o=>new HoverPlugin(o,t,s,i,e.hoverTime||300)),t7]}function getTooltip(t,e){let i=t.plugin(t3);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}let et=l.Py.define(),ee=l.r$.define({combine(t){let e,i;for(let s of t)e=e||s.topContainer,i=i||s.bottomContainer;return{topContainer:e,bottomContainer:i}}});function getPanel(t,e){let i=t.plugin(ei),s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}let ei=ViewPlugin.fromClass(class{constructor(t){this.input=t.state.facet(es),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(ee);for(let i of(this.top=new PanelGroup(t,!0,e.topContainer),this.bottom=new PanelGroup(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(ee);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new PanelGroup(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new PanelGroup(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(es);if(i!=this.input){let e=i.filter(t=>t),s=[],o=[],n=[],r=[];for(let i of e){let e=this.specs.indexOf(i),l;e<0?(l=i(t.view),r.push(l)):(l=this.panels[e]).update&&l.update(t),s.push(l),(l.top?o:n).push(l)}for(let t of(this.specs=e,this.panels=s,this.top.sync(o),this.bottom.sync(n),r))t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let e of this.panels)e.update&&e.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>EditorView.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});let PanelGroup=class PanelGroup{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=rm(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=rm(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}};function rm(t){let e=t.nextSibling;return t.remove(),e}let es=l.r$.define({enables:ei});let GutterMarker=class GutterMarker extends l.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}};GutterMarker.prototype.elementClass="",GutterMarker.prototype.toDOM=void 0,GutterMarker.prototype.mapMode=l.gc.TrackBefore,GutterMarker.prototype.startSide=GutterMarker.prototype.endSide=-1,GutterMarker.prototype.point=!0;let eo=l.r$.define(),en={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>l.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},er=l.r$.define();function gutter(t){return[gutters(),er.of(Object.assign(Object.assign({},en),t))]}let el=l.r$.define({combine:t=>t.some(t=>t)});function gutters(t){let e=[eh];return t&&!1===t.fixed&&e.push(el.of(!0)),e}let eh=ViewPlugin.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(er).map(e=>new SingleGutterView(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(el),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(el)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=l.Xs.iter(this.view.state.facet(eo),this.view.viewport.from),s=[],o=this.gutters.map(t=>new UpdateContext(t,this.view.viewport,-this.view.documentPadding.top));for(let t of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(t.type)){let e=!0;for(let n of t.type)if(n.type==C.Text&&e){for(let t of(advanceCursor(i,s,n.from),o))t.line(this.view,n,s);e=!1}else if(n.widget)for(let t of o)t.widget(this.view,n)}else if(t.type==C.Text)for(let e of(advanceCursor(i,s,t.from),o))e.line(this.view,t,s);else if(t.widget)for(let e of o)e.widget(this.view,t);for(let t of o)t.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(er),i=t.state.facet(er),s=t.docChanged||t.heightChanged||t.viewportChanged||!l.Xs.eq(t.startState.facet(eo),t.state.facet(eo),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let e of this.gutters)e.update(t)&&(s=!0);else{s=!0;let o=[];for(let s of i){let i=e.indexOf(s);i<0?o.push(new SingleGutterView(this.view,s)):(this.gutters[i].update(t),o.push(this.gutters[i]))}for(let t of this.gutters)t.dom.remove(),0>o.indexOf(t)&&t.destroy();for(let t of o)this.dom.appendChild(t.dom);this.gutters=o}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>EditorView.scrollMargins.of(e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==$.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}:null})});function asArray(t){return Array.isArray(t)?t:[t]}function advanceCursor(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}let UpdateContext=class UpdateContext{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=l.Xs.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,o=(e.top-this.height)/t.scaleY,n=e.height/t.scaleY;if(this.i==s.elements.length){let e=new GutterElement(t,n,o,i);s.elements.push(e),s.dom.appendChild(e.dom)}else s.elements[this.i].update(t,n,o,i);this.height=e.bottom,this.i++}line(t,e,i){let s=[];advanceCursor(this.cursor,s,e.from),i.length&&(s=s.concat(i));let o=this.gutter.config.lineMarker(t,e,s);o&&s.unshift(o);let n=this.gutter;(0!=s.length||n.config.renderEmptyElements)&&this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e);i&&this.addElement(t,e,[i])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}};let SingleGutterView=class SingleGutterView{constructor(t,e){for(let i in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(i,s=>{let o=s.target,n;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let t=o.getBoundingClientRect();n=(t.top+t.bottom)/2}else n=s.clientY;let r=t.lineBlockAtHeight(n-t.documentTop);e.domEventHandlers[i](t,r,s)&&s.preventDefault()});this.markers=asArray(e.markers(t)),e.initialSpacer&&(this.spacer=new GutterElement(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=asArray(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!l.Xs.eq(this.markers,e,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}};let GutterElement=class GutterElement{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let i=0;i(0,l.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let t in e){let s=i[t],o=e[t];i[t]=s?(t,e,i)=>s(t,e,i)||o(t,e,i):o}return i}})});let NumberMarker=class NumberMarker extends GutterMarker{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}};function formatNumber(t,e){return t.state.facet(ec).formatNumber(e,t.state)}let ed=er.compute([ec],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(ea),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new NumberMarker(formatNumber(t,t.state.doc.lineAt(e.from).number)),widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(ec)!=t.state.facet(ec),initialSpacer:t=>new NumberMarker(formatNumber(t,maxLineNumber(t.state.doc.lines))),updateSpacer(t,e){let i=formatNumber(e.view,maxLineNumber(e.view.state.doc.lines));return i==t.number?t:new NumberMarker(i)},domEventHandlers:t.facet(ec).domEventHandlers}));function lineNumbers(t={}){return[ec.of(t),gutters(),ed]}function maxLineNumber(t){let e=9;for(;e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;o>i&&(i=o,e.push(eu.range(o)))}return l.Xs.of(e)});function highlightActiveLineGutter(){return ef}}}]); \ No newline at end of file diff --git a/_next/static/chunks/4ad82c5e-f0169a323ec17e27.js b/_next/static/chunks/4ad82c5e-f0169a323ec17e27.js deleted file mode 100644 index 9790ca90..00000000 --- a/_next/static/chunks/4ad82c5e-f0169a323ec17e27.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5762],{7421:function(t,e,i){let s;i.d(e,{$1:function(){return runScopeHandlers},$f:function(){return tE},AE:function(){return highlightSpecialChars},Eu:function(){return lineNumbers},HQ:function(){return highlightActiveLineGutter},Nm:function(){return $},OO:function(){return logException},S2:function(){return crosshairCursor},SJ:function(){return GutterMarker},Sd:function(){return getPanel},Uw:function(){return drawSelection},W$:function(){return placeholder},ZO:function(){return highlightActiveLine},Zs:function(){return rectangularSelection},bF:function(){return hoverTooltip},gB:function(){return getTooltip},hJ:function(){return t4},l9:function(){return WidgetType},lg:function(){return ViewPlugin},mH:function(){return es},p:function(){return Decoration},qr:function(){return dropCursor},tk:function(){return EditorView},v5:function(){return gutter}});var o,n,r,l=i(8120),h=i(8699),a=i(1754);function getSelection(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function contains(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function hasSelection(t,e){if(!e.anchorNode)return!1;try{return contains(t,e.anchorNode)}catch(t){return!1}}function clientRectsFor(t){return 3==t.nodeType?textRange(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function isEquivalentPosition(t,e,i,s){return!!i&&(scanFor(t,e,i,s,-1)||scanFor(t,e,i,s,1))}function domIndex(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function scanFor(t,e,i,s,o){for(;;){if(t==i&&e==s)return!0;if(e==(o<0?0:maxOffset(t))){if("DIV"==t.nodeName)return!1;let i=t.parentNode;if(!i||1!=i.nodeType)return!1;e=domIndex(t)+(o<0?0:1),t=i}else{if(1!=t.nodeType||1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?maxOffset(t):0}}}function maxOffset(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function flattenRect(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}let DOMSelectionState=class DOMSelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?maxOffset(e):0),i,Math.min(t.focusOffset,i?maxOffset(i):0))}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}};let c=null;function focusPreventScroll(t){if(t.setActive)return t.setActive();if(c)return t.focus(c);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==c?{get preventScroll(){return c={preventScroll:!0},!0}}:void 0),!c){c=!1;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}let DOMPos=class DOMPos{constructor(t,e,i=!0){this.node=t,this.offset=e,this.precise=i}static before(t,e){return new DOMPos(t.parentNode,domIndex(t),e)}static after(t,e){return new DOMPos(t.parentNode,domIndex(t)+1,e)}};let d=[];let ContentView=class ContentView{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let i of this.children){if(i==t)return e;e+=i.length+i.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let i=this.dom,s=null,o;for(let n of this.children){if(7&n.flags){if(!n.dom&&(o=s?s.nextSibling:i.firstChild)){let t=ContentView.get(o);(!t||!t.parent&&t.canReuseDOM(n))&&n.reuseDOM(o)}n.sync(t,e),n.flags&=-8}if(o=s?s.nextSibling:i.firstChild,e&&!e.written&&e.node==i&&o!=n.dom&&(e.written=!0),n.dom.parentNode==i)for(;o&&o!=n.dom;)o=rm$1(o);else i.insertBefore(n.dom,o);s=n.dom}for((o=s?s.nextSibling:i.firstChild)&&e&&e.node==i&&(e.written=!0);o;)o=rm$1(o)}else if(1&this.flags)for(let i of this.children)7&i.flags&&(i.sync(t,e),i.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let i;if(t==this.dom)i=this.dom.childNodes[e];else{let s=0==maxOffset(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;0==s&&e.firstChild!=e.lastChild&&(s=t==e.firstChild?-1:1),t=e}i=s<0?t:t.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!ContentView.get(i);)i=i.nextSibling;if(!i)return this.length;for(let t=0,e=0;;t++){let s=this.children[t];if(s.dom==i)return e;e+=s.length+s.breakAfter}}domBoundsAround(t,e,i=0){let s=-1,o=-1,n=-1,r=-1;for(let l=0,h=i,a=i;le)return i.domBoundsAround(t,e,h);if(c>=t&&-1==s&&(s=l,o=h),h>e&&i.dom.parentNode==this.dom){n=l,r=a;break}a=c,h=c+i.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=d){this.markDirty();for(let i=t;ithis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}};function replaceRange(t,e,i,s,o,n,r,l,h){let{children:a}=t,c=a.length?a[e]:null,d=n.length?n[n.length-1]:null,u=d?d.breakAfter:r;if(!(e==s&&c&&!r&&!u&&n.length<2&&c.merge(i,o,n.length?d:null,0==i,l,h))){if(s0&&(!r&&n.length&&c.merge(i,c.length,n[0],!1,l,0)?c.breakAfter=n.shift().breakAfter:(i2);var S={mac:x||/Mac/.test(u.platform),windows:/Win/.test(u.platform),linux:/Linux|X11/.test(u.platform),ie:w,ie_version:g?f.documentMode||6:m?+m[1]:p?+p[1]:0,gecko:v,gecko_version:v?+(/Firefox\/(\d+)/.exec(u.userAgent)||[0,0])[1]:0,chrome:!!b,chrome_version:b?+b[1]:0,ios:x,android:/Android\b/.test(u.userAgent),webkit:y,safari:M,webkit_version:y?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=f.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};let TextView=class TextView extends ContentView{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return!(8&this.flags)&&(!i||i instanceof TextView&&!(this.length-(e-t)+i.length>256)&&!(8&i.flags))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new TextView(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new DOMPos(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function(t,e,i){let s=t.nodeValue.length;e>s&&(e=s);let o=e,n=e,r=0;0==e&&i<0||e==s&&i>=0?!(S.chrome||S.gecko)&&(e?(o--,r=1):n=0)?0:l.length-1];return S.safari&&!r&&0==h.width&&(h=Array.prototype.find.call(l,t=>t.width)||h),r?flattenRect(h,r<0):h||null}(this.dom,t,e)}};let MarkView=class MarkView extends ContentView{constructor(t,e=[],i=0){for(let s of(super(),this.mark=t,this.children=e,this.length=i,e))s.setParent(this)}setAttrs(t){if(clearAttributes(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,s,o,n){return(!i||!!(i instanceof MarkView&&i.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(et&&e.push(i=t&&(s=o),i=r,o++}let n=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new MarkView(this.mark,e,n)}domAtPos(t){return inlineDOMAtPos(this,t)}coordsAt(t,e){return coordsInChildren(this,t,e)}};let WidgetView=class WidgetView extends ContentView{static create(t,e,i){return new WidgetView(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=WidgetView.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,s,o,n){return(!i||i instanceof WidgetView&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0)?DOMPos.before(this.dom):DOMPos.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let n=this.side?this.side<0:t>0;for(let e=n?s.length-1:0;o=s[e],t>0?0!=e:e!=s.length-1&&!(o.top0?DOMPos.before(this.dom):DOMPos.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return l.xv.empty}get isHidden(){return!0}};function inlineDOMAtPos(t,e){let i=t.dom,{children:s}=t,o=0;for(let t=0;o=n.getSide())){if(e>t&&e0;t--){let e=s[t-1];if(e.dom.parentNode==i)return e.domAtPos(e.length)}for(let t=o;t=e&&(a.children.length?scan(a,e-h):(!n||n.isHidden&&i>0)&&(c>e||h==c&&a.getSide()>0)?(n=a,r=e-h):(ha.getSide()&&!a.isHidden)&&(s=a,o=e-h)),h=c}}(t,e);let l=(i<0?s:n)||s||n;return l?l.coordsAt(Math.max(0,l==s?o:r),i):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=clientRectsFor(e);return i[i.length-1]||null}(t)}function combineAttrs(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}TextView.prototype.children=WidgetView.prototype.children=WidgetBufferView.prototype.children=d;let k=Object.create(null);function attrsEq(t,e,i){if(t==e)return!0;t||(t=k),e||(e=k);let s=Object.keys(t),o=Object.keys(e);if(s.length-(i&&s.indexOf(i)>-1?1:0)!=o.length-(i&&o.indexOf(i)>-1?1:0))return!1;for(let n of s)if(n!=i&&(-1==o.indexOf(n)||t[n]!==e[n]))return!1;return!0}function updateAttrs(t,e,i){let s=!1;if(e)for(let o in e)i&&o in i||(s=!0,"style"==o?t.style.cssText="":t.removeAttribute(o));if(i)for(let o in i)e&&e[o]==i[o]||(s=!0,"style"==o?t.style.cssText=i[o]:t.setAttribute(o,i[o]));return s}let LineView=class LineView extends ContentView{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof LineView))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),mergeChildrenInto(this,t,e,i?i.children:[],o,n),!0}split(t){let e=new LineView;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i,off:s}=this.childPos(t);s&&(e.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let t=i;t0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){attrsEq(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function joinInlineInto(t,e,i){let s,{children:o}=t;i>0&&e instanceof MarkView&&o.length&&(s=o[o.length-1])instanceof MarkView&&s.mark.eq(e.mark)?joinInlineInto(s,e.children[0],i-1):(o.push(e),e.setParent(t)),t.length+=e.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=combineAttrs(e,this.attrs||{})),i&&(this.attrs=combineAttrs({class:i},this.attrs||{}))}domAtPos(t){return inlineDOMAtPos(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?4&this.flags&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let s=this.dom.lastChild;for(;s&&ContentView.get(s) instanceof MarkView;)s=s.lastChild;if(!s||!this.length||"BR"!=s.nodeName&&(null===(i=ContentView.get(s))||void 0===i?void 0:i.isEditable)==!1&&(!S.ios||!this.children.some(t=>t instanceof TextView))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof TextView)||/[^ -~]/.test(i.text))return null;let s=clientRectsFor(i.dom);if(1!=s.length)return null;t+=s[0].width,e=s[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let i=coordsInChildren(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(2>Math.abs(e-t.lineHeight)&&t.textHeight=e){if(o instanceof LineView)return o;if(n>e)break}s=n+o.breakAfter}return null}};let BlockWidgetView=class BlockWidgetView extends ContentView{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,o,n){return(!i||i instanceof BlockWidgetView&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0)}};let WidgetType=class WidgetType{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,i){return null}get isHidden(){return!1}destroy(t){}};var C=((o=C||(C={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);let Decoration=class Decoration extends l.uU{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new MarkDecoration(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),i=!!t.block;return e+=i&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new PointDecoration(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:n}=getInclusive(t,e);i=(o?e?-3e8:-1:5e8)-1,s=(n?e?2e8:1:-6e8)+1}return new PointDecoration(t,i,s,e,t.widget||null,!0)}static line(t){return new LineDecoration(t)}static set(t,e=!1){return l.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}};Decoration.none=l.Xs.empty;let MarkDecoration=class MarkDecoration extends Decoration{constructor(t){let{start:e,end:i}=getInclusive(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof MarkDecoration&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(i=t.attrs)||void 0===i?void 0:i.class))&&attrsEq(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}};MarkDecoration.prototype.point=!1;let LineDecoration=class LineDecoration extends Decoration{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof LineDecoration&&this.spec.class==t.spec.class&&attrsEq(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}};LineDecoration.prototype.mapMode=l.gc.TrackBefore,LineDecoration.prototype.point=!0;let PointDecoration=class PointDecoration extends Decoration{constructor(t,e,i,s,o,n){super(e,i,o,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?l.gc.TrackBefore:l.gc.TrackAfter:l.gc.TrackDel}get type(){return this.startSide!=this.endSide?C.WidgetRange:this.startSide<=0?C.WidgetBefore:C.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){var e,i;return t instanceof PointDecoration&&((e=this.widget)==(i=t.widget)||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}};function getInclusive(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function addRange(t,e,i,s=0){let o=i.length-1;o>=0&&i[o]+s>=t?i[o]=Math.max(i[o],e):i.push(t,e)}PointDecoration.prototype.point=!0;let ContentBuilder=class ContentBuilder{constructor(t,e,i,s){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof BlockWidgetView&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new LineView),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wrapMarks(new WidgetBufferView(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||t&&this.content.length&&this.content[this.content.length-1]instanceof BlockWidgetView||this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=e,this.textOff=0}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff,this.textOff+s)),e),i),this.atCursorPos=!0,this.textOff+=s,t-=s,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof PointDecoration){if(i.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof PointDecoration){if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new BlockWidgetView(i.widget||new NullWidget("div"),r,i));else{let n=WidgetView.create(i.widget||new NullWidget("span"),r,r?0:i.startSide),l=this.atCursorPos&&!n.isEditable&&o<=s.length&&(t0),h=!n.isEditable&&(ts.length||i.startSide<=0),a=this.getLine();2!=this.pendingBuffer||l||n.isEditable||(this.pendingBuffer=0),this.flushBuffer(s),l&&(a.append(wrapMarks(new WidgetBufferView(1),s),o),o=s.length+Math.max(0,o-s.length)),a.append(wrapMarks(n,s),o),this.atCursorPos=h,this.pendingBuffer=h?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);r&&(this.textOff+r<=this.text.length?this.textOff+=r:(this.skip+=r-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,i,s,o){let n=new ContentBuilder(t,e,i,o);return n.openEnd=l.Xs.spans(s,e,i,n),n.openStart<0&&(n.openStart=n.openEnd),n.finish(n.openEnd),n}};function wrapMarks(t,e){for(let i of e)t=new MarkView(i,[t],t.length);return t}let NullWidget=class NullWidget extends WidgetType{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};let T=l.r$.define(),A=l.r$.define(),D=l.r$.define(),O=l.r$.define(),V=l.r$.define(),B=l.r$.define(),E=l.r$.define(),R=l.r$.define({combine:t=>t.some(t=>t)}),P=l.r$.define({combine:t=>t.some(t=>t)});let ScrollTarget=class ScrollTarget{constructor(t,e="nearest",i="nearest",s=5,o=5,n=!1){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=o,this.isSnapshot=n}map(t){return t.empty?this:new ScrollTarget(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new ScrollTarget(l.jT.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}};let L=l.Py.define({map:(t,e)=>t.map(e)});function logException(t,e,i){let s=t.facet(O);s.length?s[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}let H=l.r$.define({combine:t=>!t.length||t[0]}),N=0,W=l.r$.define();let ViewPlugin=class ViewPlugin{constructor(t,e,i,s,o){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=s,this.extension=o(this)}static define(t,e){let{eventHandlers:i,eventObservers:s,provide:o,decorations:n}=e||{};return new ViewPlugin(N++,t,i,s,t=>{let e=[W.of(t)];return n&&e.push(z.of(e=>{let i=e.plugin(t);return i?n(i):Decoration.none})),o&&e.push(o(t)),e})}static fromClass(t,e){return ViewPlugin.define(e=>new t(e),e)}};let PluginInstance=class PluginInstance{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(logException(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(t){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){logException(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(e){logException(t.state,e,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}};let F=l.r$.define(),I=l.r$.define(),z=l.r$.define(),G=l.r$.define(),q=l.r$.define();function getIsolatedRanges(t,e,i){let s=t.state.facet(q);if(!s.length)return s;let o=s.map(e=>e instanceof Function?e(t):e),n=[];return l.Xs.spans(o,e,i,{point(){},span(t,e,i,s){let o=n;for(let n=i.length-1;n>=0;n--,s--){let r=i[n].spec.bidiIsolate,l;if(null!=r){if(s>0&&o.length&&(l=o[o.length-1]).to==t&&l.direction==r)l.to=e,o=l.inner;else{let i={from:t,to:e,direction:r,inner:[]};o.push(i),o=i.inner}}}}}),n}let K=l.r$.define();function getScrollMargins(t){let e=0,i=0,s=0,o=0;for(let n of t.state.facet(K)){let r=n(t);r&&(null!=r.left&&(e=Math.max(e,r.left)),null!=r.right&&(i=Math.max(i,r.right)),null!=r.top&&(s=Math.max(s,r.top)),null!=r.bottom&&(o=Math.max(o,r.bottom)))}return{left:e,right:i,top:s,bottom:o}}let j=l.r$.define();let ChangedRange=class ChangedRange{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new ChangedRange(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAa)break;o+=2}if(!l)return i;new ChangedRange(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),n=l.toA,r=l.toB}}};let ViewUpdate=class ViewUpdate{constructor(t,e,i){for(let s of(this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=l.as.empty(this.startState.doc.length),i))this.changes=this.changes.compose(s.changes);let s=[];this.changes.iterChangedRanges((t,e,i,o)=>s.push(new ChangedRange(t,e,i,o))),this.changedRanges=s}static create(t,e,i){return new ViewUpdate(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}};var $=((n=$||($={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n);let X=$.LTR,Y=$.RTL;function dec(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;(o<0||(0!=s?s<0?r.frome:t[o].level>r.level))&&(o=n)}}if(o<0)throw RangeError("Index out of range");return o}};let tt=[];function trivialOrder(t){return[new BidiSpan(0,t,0)]}let te="";let DocView=class DocView extends ContentView{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new LineView],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ChangedRange(0,0,0,t.state.doc.length)],0,null)}update(t){var e,i,s,o,n,r;let h,a;let c=t.changedRanges;this.minWidth>0&&c.length&&(c.every(({fromA:t,toA:e})=>ethis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let d=-1;!(this.view.inputState.composing>=0)||((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?d=this.domChanged.newSel.head:(i=t.changes,s=this.hasComposition,h=!1,s&&i.iterChangedRanges((t,e)=>{ts.from&&(h=!0)}),h||t.selectionSet||(d=t.state.selection.main.head)));let u=d>-1?function(t,e,i){let s=findCompositionNode(t,i);if(!s)return null;let{node:o,from:n,to:r}=s,l=o.nodeValue;if(/[\n\r]/.test(l)||t.state.doc.sliceString(s.from,s.to)!=l)return null;let h=e.invertedDesc,a=new ChangedRange(h.mapPos(n),h.mapPos(r),n,r),c=[];for(let e=o.parentNode;;e=e.parentNode){let i=ContentView.get(e);if(i instanceof MarkView)c.push({node:e,deco:i.mark});else{if(i instanceof LineView||"DIV"==e.nodeName&&e.parentNode==t.contentDOM)return{range:a,text:o,marks:c,line:e};if(e==t.contentDOM)return null;c.push({node:e,deco:new MarkDecoration({inclusive:!0,attributes:function(t){let e=Object.create(null);for(let i=0;i{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=S.chrome||S.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=-8,t&&(t.written||s.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(t=>t.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?s[t]:null;if(!e)break;let{fromA:n,toA:r,fromB:l,toB:h}=e,a,c,d,u;if(i&&i.range.fromBl){let t=ContentBuilder.build(this.view.state.doc,l,i.range.fromB,this.decorations,this.dynamicDecorationMap),e=ContentBuilder.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);c=t.breakAtStart,d=t.openStart,u=e.openEnd;let s=this.compositionView(i);e.breakAtStart?s.breakAfter=1:e.content.length&&s.merge(s.length,s.length,e.content[0],!1,e.openStart,0)&&(s.breakAfter=e.content[0].breakAfter,e.content.shift()),t.content.length&&s.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),a=t.content.concat(s).concat(e.content)}else({content:a,breakAtStart:c,openStart:d,openEnd:u}=ContentBuilder.build(this.view.state.doc,l,h,this.decorations,this.dynamicDecorationMap));let{i:f,off:p}=o.findPos(r,1),{i:g,off:m}=o.findPos(n,-1);replaceRange(this,g,m,f,p,a,c,d,u)}i&&this.fixCompositionDOM(i)}compositionView(t){let e=new TextView(t.text.nodeValue);for(let{deco:i}of(e.flags|=8,t.marks))e=new MarkView(i,[e],e.length);let i=new LineView;return i.append(e,0),i}fixCompositionDOM(t){let fix=(t,e)=>{e.flags|=8|(e.children.some(t=>7&t.flags)?1:0),this.markedForComposition.add(e);let i=ContentView.get(t);i&&i!=e&&(i.dom=null),e.setDOM(t)},e=this.childPos(t.range.fromB,1),i=this.children[e.i];fix(t.line,i);for(let s=t.marks.length-1;s>=-1;s--)e=i.childPos(e.off,1),i=i.children[e.i],fix(s>=0?t.marks[s].node:t.text,i)}updateSelection(t=!1,e=!1){var i;(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let s=this.view.root.activeElement,o=s==this.dom,n=!o&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(s&&this.dom.contains(s));if(!(o||e||n))return;let r=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,h=this.moveToLine(this.domAtPos(l.anchor)),a=l.empty?h:this.moveToLine(this.domAtPos(l.head));if(S.gecko&&l.empty&&!this.hasComposition&&1==(i=h).node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)){let t=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(t,h.node.childNodes[h.offset]||null)),h=a=new DOMPos(t,0),r=!0}let c=this.view.observer.selectionRange;!r&&c.focusNode&&isEquivalentPosition(h.node,h.offset,c.anchorNode,c.anchorOffset)&&isEquivalentPosition(a.node,a.offset,c.focusNode,c.focusOffset)||(this.view.observer.ignore(()=>{S.android&&S.chrome&&this.dom.contains(c.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=getSelection(this.view.root);if(t){if(l.empty){if(S.gecko){var e,i;let t=(e=h.node,i=h.offset,1!=e.nodeType?0:(i&&"false"==e.childNodes[i-1].contentEditable?1:0)|(il.head&&([h,a]=[a,h]),e.setEnd(a.node,a.offset),e.setStart(h.node,h.offset),t.removeAllRanges(),t.addRange(e)}}n&&this.view.root.activeElement==this.dom&&(this.dom.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(h,a)),this.impreciseAnchor=h.precise?null:new DOMPos(c.anchorNode,c.anchorOffset),this.impreciseHead=a.precise?null:new DOMPos(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=getSelection(t.root),{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=LineView.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(s,o)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let s=t.offset;!i&&s=0;s--){let t=ContentView.get(e.childNodes[s]);t instanceof LineView&&(i=t.domAtPos(t.length))}return i?new DOMPos(i.node,i.offset,!0):t}nearest(t){for(let e=t;e;){let t=ContentView.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;n--){let r=this.children[n],l=o-r.breakAfter,h=l-r.length;if(lt||r.covers(1))&&(!i||r instanceof LineView&&!(i instanceof LineView&&e>=0))&&(i=r,s=h),o=h}return i?i.coordsAt(t-s,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),s=this.children[e];if(!(s instanceof LineView))return null;for(;s.children.length;){let{i:t,off:e}=s.childPos(i,1);for(;;t++){if(t==s.children.length)return null;if((s=s.children[t]).length)break}i=e}if(!(s instanceof TextView))return null;let o=(0,l.cp)(s.text,i);if(o==i)return null;let n=textRange(s.dom,i,o).getClientRects();for(let t=0;tMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,l=this.view.textDirection==$.LTR;for(let t=0,h=0;hs)break;if(t>=i){let i=a.dom.getBoundingClientRect();if(e.push(i.height),n){let e=a.dom.lastChild,s=e?clientRectsFor(e):[];if(s.length){let e=s[s.length-1],n=l?e.right-i.left:i.right-e.left;n>r&&(r=n,this.minWidth=o,this.minWidthFrom=t,this.minWidthTo=c)}}}t=c+a.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?$.RTL:$.LTR}measureTextSize(){for(let t of this.children)if(t instanceof LineView){let e=t.measureTextSize();if(e)return e}let t=document.createElement("div"),e,i,s;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=clientRectsFor(t.firstChild)[0];e=t.getBoundingClientRect().height,i=o?o.width/27:7,s=o?o.height:e,t.remove()}),{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new ChildCursor(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s],n=o?o.from-1:this.length;if(n>i){let s=(e.lineBlockAt(n).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(Decoration.replace({widget:new BlockGapWidget(s),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!o)break;i=o.to+1}return Decoration.set(t)}updateDeco(){let t=this.view.state.facet(z).map((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t);for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=getScrollMargins(this.view),n={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:r,offsetHeight:l}=this.view.scrollDOM;!function(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t,d=!1;c&&!d;)if(1==c.nodeType){let t,u=c==h.body,f=1,p=1;if(u)t={left:0,right:a.innerWidth,top:0,bottom:a.innerHeight};else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();f=e.width/c.offsetWidth,p=e.height/c.offsetHeight,t={left:e.left,right:e.left+c.clientWidth*f,top:e.top,bottom:e.top+c.clientHeight*p}}let g=0,m=0;if("nearest"==o)e.top0&&e.bottom>t.bottom+m&&(m=e.bottom-t.bottom+m+r)):e.bottom>t.bottom&&(m=e.bottom-t.bottom+r,i<0&&e.top-m0&&e.right>t.right+g&&(g=e.right-t.right+g+n)):e.right>t.right&&(g=e.right-t.right+n,i<0&&e.leftMath.abs(t-g)&&(s="nearest"),i&&1>Math.abs(i-m)&&(o="nearest")}}if(u)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,n,e.head0)s=maxOffset(i=i.childNodes[s-1]);else break}if(i>=0)for(let s=t,o=e;;){if(3==s.nodeType)return{node:s,offset:o};if(1==s.nodeType&&o=0)s=s.childNodes[o],o=0;else break}return null}let ti=class{constructor(){this.changes=[]}compareRange(t,e){addRange(t,e,this.changes)}comparePoint(t,e){addRange(t,e,this.changes)}};function yOverlap(t,e){return t.tope.top+1}function upTop(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function domPosInText(t,e,i){let s=t.nodeValue.length,o=-1,n=1e9,r=0;for(let l=0;li?a.top-i:i-a.bottom)-1;if(a.left-1<=e&&a.right+1>=e&&c=(a.left+a.right)/2,s=i;if((S.chrome||S.gecko)&&textRange(t,l).getBoundingClientRect().left==a.right&&(s=!i),c<=0)return{node:t,offset:l+(s?1:0)};o=l+(s?1:0),n=c}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function posAtCoords(t,e,i,s=-1){var o,n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop,h,{docHeight:a}=t.viewState,{x:c,y:d}=e,u=d-l;if(u<0)return 0;if(u>a)return t.state.doc.length;for(let e=t.viewState.heightOracle.textHeight/2,o=!1;(h=t.elementAtHeight(u)).type!=C.Text;)for(;!((u=s>0?h.bottom+e:h.top-e)>=0)||!(u<=a);){if(o)return i?null:0;o=!0,s=-s}d=l+u;let f=h.from;if(ft.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:posAtCoordsImprecise(t,r,h,c,d);let p=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:p,m=g.elementFromPoint(c,d);m&&!t.contentDOM.contains(m)&&(m=null),!m&&(c=Math.max(r.left+1,Math.min(r.right-1,c)),(m=g.elementFromPoint(c,d))&&!t.contentDOM.contains(m)&&(m=null));let w,v=-1;if(m&&(null===(o=t.docView.nearest(m))||void 0===o?void 0:o.isEditable)!=!1){if(p.caretPositionFromPoint){let t=p.caretPositionFromPoint(c,d);t&&({offsetNode:w,offset:v}=t)}else if(p.caretRangeFromPoint){let e=p.caretRangeFromPoint(c,d);e&&({startContainer:w,startOffset:v}=e,(!t.contentDOM.contains(w)||S.safari&&function(t,e,i){let s;if(3!=t.nodeType||e!=(s=t.nodeValue.length))return!1;for(let e=t.nextSibling;e;e=e.nextSibling)if(1!=e.nodeType||"BR"!=e.nodeName)return!1;return textRange(t,s-1,s).getBoundingClientRect().left>i}(w,v,c)||S.chrome&&function(t,e,i){if(0!=e)return!1;for(let e=t;;){let t=e.parentNode;if(!t||1!=t.nodeType||t.firstChild!=e)return!1;if(t.classList.contains("cm-line"))break;e=t}return i-(1==t.nodeType?t.getBoundingClientRect():textRange(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,v,c))&&(w=void 0))}}if(!w||!t.docView.dom.contains(w)){let e=LineView.find(t.docView,f);if(!e)return u>h.top+h.height/2?h.to:h.from;({node:w,offset:v}=function domPosAtCoords(t,e,i){let s,o,n,r,l,h,a,c,d=!1;for(let p=t.firstChild;p;p=p.nextSibling){let t=clientRectsFor(p);for(let g=0;ge?u.left-e:Math.max(0,e-u.right),v=(f=m).top>i?f.top-i:Math.max(0,i-f.bottom);if(0==w&&0==v)return 3==p.nodeType?domPosInText(p,e,i):domPosAtCoords(p,e,i);if(!l||c>v||c==v&&a>w){l=p,h=m,a=w,c=v;let s=v?i0?g0)}0==w?i>m.bottom&&(!n||n.bottomm.top)&&(o=p,r=m):n&&yOverlap(n,m)?n=upBot(n,m.bottom):r&&yOverlap(r,m)&&(r=upTop(r,m.top))}}if(n&&n.bottom>=i?(l=s,h=n):r&&r.top<=i&&(l=o,h=r),!l)return{node:t,offset:0};let p=Math.max(h.left,Math.min(h.right,e));if(3==l.nodeType)return domPosInText(l,p,i);if(d&&"false"!=l.contentEditable)return domPosAtCoords(l,p,i);let g=Array.prototype.indexOf.call(t.childNodes,l)+(e>=(h.left+h.right)/2?1:0);return{node:t,offset:g}}(e.dom,c,d))}let b=t.docView.nearest(w);if(!b)return null;if(!b.isWidget||(null===(n=b.dom)||void 0===n?void 0:n.nodeType)!=1)return b.localPosFromDOM(w,v)+b.posAtStart;{let t=b.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;n+=Math.floor((o-i.top-(t.defaultLineHeight-e)*.5)/e)*t.viewState.heightOracle.lineLength}let r=t.state.sliceDoc(i.from,i.to);return i.from+(0,l.Gz)(r,n,t.state.tabSize)}function blockAt(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let t of i.type)if(t.to>e||t.to==e&&(t.to==i.to||t.type==C.Text))return t}return i}function moveByChar(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o),r=t.textDirectionAt(o.from);for(let h=e,a=null;;){let e=function(t,e,i,s,o){var n;let r=s.head-t.from,h=-1;if(0==r){if(!o||!t.length)return null;e[0].level!=i&&(r=e[0].side(!1,i),h=0)}else if(r==t.length){if(o)return null;let t=e[e.length-1];t.level!=i&&(r=t.side(!0,i),h=e.length-1)}h<0&&(h=BidiSpan.find(e,r,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc));let a=e[h];r==a.side(o,i)&&(r=(a=e[h+=o?1:-1]).side(!o,i));let c=o==(a.dir==i),d=(0,l.cp)(t.text,r,c);if(te=t.text.slice(Math.min(r,d),Math.max(r,d)),d!=a.side(o,i))return l.jT.cursor(d+t.from,c?-1:1,a.level);let u=h==(o?e.length-1:0)?null:e[h+(o?1:-1)];return u||a.level==i?u&&u.level{if(e>t&&ee(t)),i.from,e.head>i.from?-1:1);return s==i.from?i:l.jT.cursor(s,snull),S.gecko&&(e=t.contentDOM.ownerDocument,tg.has(e)||(tg.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{})))}handleEvent(t){!(!function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(s=ContentView.get(i))&&s.ignoreEvent(e))return!1;return!0}(this.view,t)||this.ignoreDuringComposition(t))&&("keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t))}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=function(t){let e=Object.create(null);function record(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let e of t){let t=e.spec;if(t&&t.domEventHandlers)for(let i in t.domEventHandlers){let s=t.domEventHandlers[i];s&&record(i).handlers.push(bindHandler(e.value,s))}if(t&&t.domEventObservers)for(let i in t.domEventObservers){let s=t.domEventObservers[i];s&&record(i).observers.push(bindHandler(e.value,s))}}for(let t in tr)record(t).handlers.push(tr[t]);for(let t in tl)record(t).observers.push(tl[t]);return e}(t),i=this.handlers,s=this.view.contentDOM;for(let t in e)if("scroll"!=t){let o=!e[t].handlers.length,n=i[t];n&&!n.handlers.length!=o&&(s.removeEventListener(t,this.handleEvent),n=null),n||s.addEventListener(t,this.handleEvent,{passive:o})}for(let t in i)"scroll"==t||e[t]||s.removeEventListener(t,this.handleEvent);this.handlers=e}keydown(t){let e;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),!!(9==t.keyCode&&Date.now()tn.indexOf(t.keyCode)&&(this.view.inputState.lastEscPress=0),S.android&&S.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))?(this.view.observer.delayAndroidKey(t.key,t.keyCode),!0):S.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=ts.find(e=>e.keyCode==t.keyCode))&&!t.ctrlKey||to.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0):(229!=t.keyCode&&this.view.observer.forceFlush(),!1))}flushIOSKey(){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,dispatchKey(this.view.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(S.safari&&!S.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function bindHandler(t,e){return(i,s)=>{try{return e.call(t,s,i)}catch(t){logException(i.state,t)}}}let ts=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],to="dthko",tn=[16,17,18,20,91,92,224,225];function dragScrollSpeed(t){return .7*Math.max(0,t)+8}let MouseSelection=class MouseSelection{constructor(t,e,i,s){let o;this.view=t,this.startEvent=e,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(t){let e=t.ownerDocument;for(let i=t.parentNode;i&&i!=e.body;)if(1==i.nodeType){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(11==i.nodeType)i=i.host;else break;return null}(t.contentDOM),this.atoms=t.state.facet(G).map(e=>e(t));let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this)),n.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(l.yy.allowMultipleSelections)&&((o=t.state.facet(T)).length?o[0](e):S.mac?e.metaKey:e.ctrlKey),this.dragging=!!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=getSelection(t.root);if(!s||0==s.rangeCount)return!0;let o=s.getRangeAt(0).getClientRects();for(let t=0;t=e.clientX&&i.top<=e.clientY&&i.bottom>=e.clientY)return!0}return!1}(t,e)&&1==getClickType(e)&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e,i;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>Math.max(Math.abs((i=this.startEvent).clientX-t.clientX),Math.abs(i.clientY-t.clientY)))return;this.select(this.lastEvent=t);let s=0,o=0,n=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},r=getScrollMargins(this.view);t.clientX-r.left<=n.left+6?s=-dragScrollSpeed(n.left-t.clientX):t.clientX+r.right>=n.right-6&&(s=dragScrollSpeed(t.clientX-n.right)),t.clientY-r.top<=n.top+6?o=-dragScrollSpeed(n.top-t.clientY):t.clientY+r.bottom>=n.bottom-6&&(o=dragScrollSpeed(t.clientY-n.bottom)),this.setScrollSpeed(s,o)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;ithis.select(this.lastEvent),20)}};let tr=Object.create(null),tl=Object.create(null),th=S.ie&&S.ie_version<15||S.ios&&S.webkit_version<604;function doPaste(t,e){let{state:i}=t,s,o=1,n=i.toText(e),r=n.lines==i.selection.ranges.length;if(null!=tf&&i.selection.ranges.every(t=>t.empty)&&tf==n.toString()){let t=-1;s=i.changeByRange(s=>{let h=i.doc.lineAt(s.from);if(h.from==t)return{range:s};t=h.from;let a=i.toText((r?n.line(o++).text:e)+i.lineBreak);return{changes:{from:h.from,insert:a},range:l.jT.cursor(s.from+a.length)}})}else s=r?i.changeByRange(t=>{let e=n.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:l.jT.cursor(t.from+e.length)}}):i.replaceSelection(n);t.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function rangeForClick(t,e,i,s){if(1==s)return l.jT.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),o=t.doc.lineAt(e),n=e-o.from;if(0==o.length)return l.jT.cursor(e);0==n?i=1:n==o.length&&(i=-1);let r=n,h=n;i<0?r=(0,l.cp)(o.text,n,!1):h=(0,l.cp)(o.text,n);let a=s(o.text.slice(r,h));for(;r>0;){let t=(0,l.cp)(o.text,r,!1);if(s(o.text.slice(t,r))!=a)break;r=t}for(;h{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},tr.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&(t.inputState.lastEscPress=Date.now()),!1),tl.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},tl.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},tr.mousedown=(t,e)=>{let i,s,o;if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(D))if(n=i(t,e))break;if(n||0!=e.button||(i=queryPos(t,e),s=getClickType(e),o=t.state.selection,n={update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),o=o.map(t.changes))},get(e,n,r){let h=queryPos(t,e),a,c=rangeForClick(t,h.pos,h.bias,s);if(i.pos!=h.pos&&!n){let e=rangeForClick(t,i.pos,i.bias,s),o=Math.min(e.from,c.from),n=Math.max(e.to,c.to);c=o1&&(a=function(t,e){for(let i=0;i=e)return l.jT.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}(o,h.pos))?a:r?o.addRange(c):l.jT.create([c])}}),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new MouseSelection(t,e,n,i)),i&&t.observer.ignore(()=>focusPreventScroll(t.contentDOM));let s=t.inputState.mouseSelection;if(s)return s.start(e),!1===s.dragging}return!1};let insideY=(t,e)=>t>=e.top&&t<=e.bottom,inside=(t,e,i)=>insideY(e,i)&&t>=i.left&&t<=i.right;function queryPos(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:function(t,e,i,s){let o=LineView.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(0==n)return 1;if(n==o.length)return -1;let r=o.coordsAt(n,-1);if(r&&inside(i,s,r))return -1;let l=o.coordsAt(n,1);return l&&inside(i,s,l)?1:r&&insideY(s,r)?-1:1}(t,i,e.clientX,e.clientY)}}let ta=S.ie&&S.ie_version<=11,tc=null,td=0,tu=0;function getClickType(t){if(!ta)return t.detail;let e=tc,i=tu;return tc=t,tu=Date.now(),td=!e||i>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(td+1)%3:1}function dropText(t,e,i,s){let o;if(!i)return;let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=t.inputState,l=s&&r&&((o=t.state.facet(A)).length?o[0](e):S.mac?!e.altKey:!e.ctrlKey)?{from:r.from,to:r.to}:null,h={from:n,insert:i},a=t.state.changes(l?[l,h]:h);t.focus(),t.dispatch({changes:a,selection:{anchor:a.mapPos(n,-1),head:a.mapPos(n,1)},userEvent:l?"move.drop":"input.drop"}),t.inputState.draggedContent=null}tr.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let s=t.docView.nearest(e.target);if(s&&s.isWidget){let t=s.posAtStart,e=t+s.length;(t>=i.to||e<=i.from)&&(i=l.jT.range(t,e))}}let{inputState:s}=t;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=i,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove"),!1},tr.dragend=t=>(t.inputState.draggedContent=null,!1),tr.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let s=Array(i.length),o=0,finishFile=()=>{++o==i.length&&dropText(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let t=0;t{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(s[t]=e.result),finishFile()},e.readAsText(i[t])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return dropText(t,e,i,!0),!0}return!1},tr.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=th?null:e.clipboardData;return i?(doPaste(t,i.getData("text/plain")||i.getData("text/uri-text")),!0):(function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),doPaste(t,i.value)},50)}(t),!1)};let tf=null;tr.copy=tr.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=function(t){let e=[],i=[],s=!1;for(let s of t.selection.ranges)s.empty||(e.push(t.sliceDoc(s.from,s.to)),i.push(s));if(!e.length){let o=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);n.number>o&&(e.push(n.text),i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})),o=n.number}s=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}(t.state);if(!i&&!o)return!1;tf=o?i:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let n=th?null:e.clipboardData;return n?(n.clearData(),n.setData("text/plain",i),!0):(!function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),!1)};let tp=l.q6.define();function focusChangeTransaction(t,e){let i=[];for(let s of t.facet(E)){let o=s(t,e);o&&i.push(o)}return i?t.update({effects:i,annotations:tp.of(!0)}):null}function updateForFocusChange(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=focusChangeTransaction(t.state,e);i?t.dispatch(i):t.update([])}},10)}tl.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),updateForFocusChange(t)},tl.blur=t=>{t.observer.clearSelectionRange(),updateForFocusChange(t)},tl.compositionstart=tl.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},tl.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,S.chrome&&S.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},tl.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},tr.beforeinput=(t,e)=>{var i;let s;if(S.chrome&&S.android&&(s=ts.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(s.key,s.keyCode),"Backspace"==s.key||"Delete"==s.key)){let e=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout(()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};let tg=new Set,tm=["pre-wrap","normal","pre-line","break-spaces"];let HeightOracle=class HeightOracle{constructor(t){this.lineWrapping=t,this.doc=l.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return tm.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=r;if(this.lineWrapping=r,this.lineHeight=e,this.charWidth=i,this.textHeight=s,this.lineLength=o,l){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return HeightMap.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this,n=i.doc;for(let r=s.length-1;r>=0;r--){let{fromA:l,toA:h,fromB:a,toB:c}=s[r],d=o.lineAt(l,tw.ByPosNoHeight,i.setDoc(e),0,0),u=d.to>=h?d:o.lineAt(h,tw.ByPosNoHeight,i,0,0);for(c+=u.to-h,h=u.to;r>0&&d.from<=s[r-1].toA;)l=s[r-1].fromA,a=s[r-1].fromB,r--,l2*o){let o=t[e-1];o.break?t.splice(--e,1,o.left,null,o.right):t.splice(--e,1,o.left,o.right),i+=1+o.break,s-=o.size}else if(o>2*s){let e=t[i];e.break?t.splice(i,1,e.left,null,e.right):t.splice(i,1,e.left,e.right),i+=2+e.break,o-=e.size}else break}else if(s=o&&n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}};let HeightMapText=class HeightMapText extends HeightMapBlock{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,s){return new BlockInfo(s,this.length,i,this.height,this.breaks)}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof HeightMapText||s instanceof HeightMapGap&&4&s.flags)&&10>Math.abs(this.length-s.length)?(s instanceof HeightMapGap?s=new HeightMapText(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):HeightMap.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}};let HeightMapGap=class HeightMapGap extends HeightMap{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number,o=s-i+1,n,r=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);n=e/o,this.length>o+1&&(r=(this.height-e)/(this.length-o-1))}else n=this.height/o;return{firstLine:i,lastLine:s,perLine:n,perChar:r}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,perLine:r,perChar:l}=this.heightMetrics(e,s);if(e.lineWrapping){let o=s+Math.round(Math.max(0,Math.min(1,(t-i)/this.height))*this.length),n=e.doc.lineAt(o),h=r+n.length*l,a=Math.max(i,t-h/2);return new BlockInfo(n.from,n.length,a,h,0)}{let s=Math.max(0,Math.min(n-o,Math.floor((t-i)/r))),{from:l,length:h}=e.doc.line(o+s);return new BlockInfo(l,h,i+r*s,r,0)}}lineAt(t,e,i,s,o){if(e==tw.ByHeight)return this.blockAt(t,i,s,o);if(e==tw.ByPosNoHeight){let{from:e,to:s}=i.doc.lineAt(t);return new BlockInfo(e,s-e,0,0,0)}let{firstLine:n,perLine:r,perChar:l}=this.heightMetrics(i,o),h=i.doc.lineAt(t),a=r+h.length*l,c=h.number-n,d=s+r*c+l*(h.from-o-c);return new BlockInfo(h.from,h.length,Math.max(s,Math.min(d,s+this.height-a)),a,0)}forEachLine(t,e,i,s,o,n){t=Math.max(t,o),e=Math.min(e,o+this.length);let{firstLine:r,perLine:l,perChar:h}=this.heightMetrics(i,o);for(let a=t,c=s;a<=e;){let e=i.doc.lineAt(a);if(a==t){let i=e.number-r;c+=l*i+h*(t-o-i)}let s=l+h*e.length;n(new BlockInfo(e.from,e.length,c,s,0)),c+=s,a=e.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let t=i[i.length-1];t instanceof HeightMapGap?i[i.length-1]=new HeightMapGap(t.length+s):i.push(null,new HeightMapGap(s-1))}if(t>0){let e=i[0];e instanceof HeightMapGap?i[0]=new HeightMapGap(t+e.length):i.unshift(new HeightMapGap(t-1),null)}return HeightMap.of(i)}decomposeLeft(t,e){e.push(new HeightMapGap(t-1),null)}decomposeRight(t,e){e.push(null,new HeightMapGap(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),r=-1;for(s.from>e&&i.push(new HeightMapGap(s.from-e-1).updateHeight(t,e));n<=o&&s.more;){let e=t.doc.lineAt(n).length;i.length&&i.push(null);let o=s.heights[s.index++];-1==r?r=o:Math.abs(o-r)>=.001&&(r=-2);let l=new HeightMapText(e,o);l.outdated=!1,i.push(l),n+=e+1}n<=o&&i.push(null,new HeightMapGap(o-n).updateHeight(t,n));let l=HeightMap.of(i);return(r<0||Math.abs(l.height-this.height)>=.001||Math.abs(r-this.heightMetrics(t,e).perLine)>=.001)&&(t.heightChanged=!0),l}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}};let HeightMapBranch=class HeightMapBranch extends HeightMap{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==tw.ByPosNoHeight?tw.ByPosNoHeight:tw.ByPos;return l?h.join(this.right.lineAt(r,a,i,n,r)):this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,r,l,n);else{let h=this.lineAt(l,tw.ByPos,i,s,o);t=t&&h.from<=e&&n(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];t>0&&this.decomposeLeft(t,o);let n=o.length;for(let t of i)o.push(t);if(t>0&&mergeGaps(o,n-1),e=++i&&e.push(null),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?HeightMap.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;return(s&&s.from<=e+o.length&&s.more?l=o=o.updateHeight(t,e,i,s):o.updateHeight(t,e,i),s&&s.from<=r+n.length&&s.more?l=n=n.updateHeight(t,r,i,s):n.updateHeight(t,r,i),l)?this.balanced(o,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function mergeGaps(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof HeightMapGap&&(s=t[e+1])instanceof HeightMapGap&&t.splice(e-1,3,new HeightMapGap(i.length+1+s.length))}let NodeBuilder=class NodeBuilder{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof HeightMapText?i.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new HeightMapText(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(s,o,n)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new HeightMapText(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new HeightMapGap(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof HeightMapText)return t;let e=new HeightMapText(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,t),s.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof HeightMapText||this.isCovered?(this.writtenTo"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new HeightOracle(e),this.stateDeco=t.facet(z).filter(t=>"function"!=typeof t),this.heightMap=HeightMap.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle.setDoc(t.doc),[new ChangedRange(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Decoration.set(this.lineGaps.map(t=>t.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:e,to:i}=this.lineBlockAt(s);t.push(new Viewport(e,i))}}this.viewports=t.sort((t,e)=>t.from-e.from),this.scaler=this.heightMap.height<=7e6?tv:new BigScaler(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:scaleBlock(t,this.scaler))})}update(t,e=null){var i,s;let o;this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(z).filter(t=>"function"!=typeof t);let r=t.changedRanges,h=ChangedRange.extendWithRanges(r,(i=this.stateDeco,s=t?t.changes:l.as.empty(this.state.doc.length),o=new DecorationComparator,l.Xs.compare(n,i,s,o,0),o.changes)),a=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),h),this.heightMap.height!=a&&(t.flags|=2),c?(this.scrollAnchorPos=t.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let d=h.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headd.to)||!this.viewportIsAppropriate(d))&&(d=this.getViewport(0,e));let u=!t.changes.empty||2&t.flags||d.from!=this.viewport.from||d.to!=this.viewport.to;this.viewport=d,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(P)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?$.RTL:$.LTR;let n=this.heightOracle.mustRefreshForWrapping(o),r=e.getBoundingClientRect(),h=n||this.mustMeasureContent||this.contentDOMHeight!=r.height;this.contentDOMHeight=r.height,this.mustMeasureContent=!1;let a=0,c=0;if(r.width&&r.height){let t=r.width/e.offsetWidth,i=r.height/e.offsetHeight;(t>.995&&t<1.005||!isFinite(t)||1>Math.abs(r.width-e.offsetWidth))&&(t=1),(i>.995&&i<1.005||!isFinite(i)||1>Math.abs(r.height-e.offsetHeight))&&(i=1),(this.scaleX!=t||this.scaleY!=i)&&(this.scaleX=t,this.scaleY=i,a|=8,n=h=!0)}let d=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=u)&&(this.paddingTop=d,this.paddingBottom=u,a|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(h=!0),this.editorWidth=t.scrollDOM.clientWidth,a|=8);let f=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=isScrolledToBottom(t.scrollDOM);let p=(this.printing?function(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}:function(t,e){let i=t.getBoundingClientRect(),s=t.ownerDocument,o=s.defaultView||window,n=Math.max(0,i.left),r=Math.min(o.innerWidth,i.right),l=Math.max(0,i.top),h=Math.min(o.innerHeight,i.bottom);for(let e=t.parentNode;e&&e!=s.body;)if(1==e.nodeType){let i=e,s=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=s.overflow){let s=i.getBoundingClientRect();n=Math.max(n,s.left),r=Math.min(r,s.right),l=Math.max(l,s.top),h=e==t.parentNode?s.bottom:Math.min(h,s.bottom)}e="absolute"==s.position||"fixed"==s.position?i.offsetParent:i.parentNode}else if(11==e.nodeType)e=e.host;else break;return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}})(e,this.paddingTop),g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(h=!0)),!this.inView&&!this.scrollTarget)return 0;let v=r.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=r.width,this.editorHeight=t.scrollDOM.clientHeight,a|=8),h){let e=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(e)&&(n=!0),n||s.lineWrapping&&Math.abs(v-this.contentDOMWidth)>s.charWidth){let{lineHeight:i,charWidth:r,textHeight:l}=t.docView.measureTextSize();(n=i>0&&s.refresh(o,i,r,l,v/r,e))&&(t.docView.minWidth=0,a|=8)}for(let i of(g>0&&m>0?c=Math.max(g,m):g<0&&m<0&&(c=Math.min(g,m)),s.heightChanged=!1,this.viewports)){let o=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(n?HeightMap.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle,[new ChangedRange(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new MeasuredHeights(i.from,o))}s.heightChanged&&(a|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&a||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,t)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,o=this.heightOracle,{visibleTop:n,visibleBottom:r}=this,l=new Viewport(s.lineAt(n-1e3*i,tw.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,tw.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(tl.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),n=s.lineAt(t,tw.ByPos,o,0,0),r;r="center"==e.y?(n.top+n.bottom)/2-i/2:"start"==e.y||"nearest"==e.y&&t=r+Math.max(10,Math.min(i,250)))&&s>n-2e3&&o>1,n=s<<1;if(this.defaultTextDirection!=$.LTR&&!i)return[];let r=[],addGap=(s,n,h,a)=>{if(n-ss&&tt.from>=h.from&&t.to<=h.to&&Math.abs(t.from-s)t.frome));if(!u){if(nt.from<=n&&t.to>=n)){let t=e.moveToLineBoundary(l.jT.cursor(n),!1,!0).head;t>s&&(n=t)}u=new LineGap(s,n,this.gapSize(h,s,n,a))}r.push(u)};for(let t of this.viewportLines){let e,o;if(t.lengtho&&(s.push({from:o,to:t}),n+=t-o),o=e}},20),ot.from&&addGap(t.from,e,t,r),ot.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];l.Xs.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((t,i)=>t.from!=e[i].from||t.to!=e[i].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||scaleBlock(this.heightMap.lineAt(t,tw.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(t),tw.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}};let Viewport=class Viewport{constructor(t,e){this.from=t,this.to=e}};function findPosition({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let t=0;;t++){let{from:i,to:o}=e[t],n=o-i;if(s<=n)return i+s;s-=n}}function findFraction(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}let tv={toDOM:t=>t,fromDOM:t=>t,scale:1};let BigScaler=class BigScaler{constructor(t,e,i){let s=0,o=0,n=0;for(let r of(this.viewports=i.map(({from:i,to:o})=>{let n=e.lineAt(i,tw.ByPos,t,0,0).top,r=e.lineAt(o,tw.ByPos,t,0,0).bottom;return s+=r-n,{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s),this.viewports))r.domTop=n+(r.top-o)*this.scale,n=r.domBottom=r.domTop+(r.bottom-r.top),o=r.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=escaleBlock(t,e)):t._content)}let tb=l.r$.define({combine:t=>t.join(" ")}),ty=l.r$.define({combine:t=>t.indexOf(!0)>-1}),tM=h.V.newName(),tx=h.V.newName(),tS=h.V.newName(),tk={"&light":"."+tx,"&dark":"."+tS};function buildTheme(t,e,i){return new h.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}let tC=buildTheme("."+tM,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},tk);let DOMReader=class DOMReader{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(l.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);let t=this.text.length;this.readNode(s);let o=s.nextSibling;if(o==e)break;let n=ContentView.get(s),r=ContentView.get(o);(n&&r?n.breakAfter:(n?n.breakAfter:isBlockElement(s))||isBlockElement(o)&&("BR"!=s.nodeName||s.cmIgnore)&&this.text.length>t)&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,n=1,r;if(this.lineSeparator?(o=e.indexOf(this.lineSeparator,i),n=this.lineSeparator.length):(r=s.exec(e))&&(o=r.index,n=r[0].length),this.append(e.slice(i,o<0?e.length:o)),o<0)break;if(this.lineBreak(),n>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=n-1);i=o+n}}readNode(t){if(t.cmIgnore)return;let e=ContentView.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(!function(t,e,i){for(;;){if(!e||i-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=o||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;return i&&(e.push(new DOMPoint(i,s)),(o!=i||n!=s)&&e.push(new DOMPoint(o,n))),e}(t),i=new DOMReader(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?l.jT.single(i+e,s+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,i=o&&o.node==e.focusNode&&o.offset==e.focusOffset||!contains(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),s=n&&n.node==e.anchorNode&&n.offset==e.anchorOffset||!contains(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);this.newSel=l.jT.single(s,i)}}};function applyDOMChange(t,e){let i;let{newSel:s}=e,o=t.state.selection.main,n=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:r}=e.bounds,h=o.from,a=null;(8===n||S.android&&e.text.length0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if("end"==s){let t=Math.max(0,n-Math.min(r,l));i-=r+t-n}if(r=r?n-i:0;n-=t,l=n+(l-r),r=n}else if(l=l?n-i:0;n-=t,r=n+(r-l),l=n}return{from:n,toA:r,toB:l}}(t.state.doc.sliceString(s,r,"￿"),e.text,h-s,a);c&&(S.chrome&&13==n&&c.toB==c.from+2&&"￿￿"==e.text.slice(c.from,c.toB)&&c.toB--,i={from:s+c.from,to:s+c.toA,insert:l.xv.of(e.text.slice(c.from,c.toB).split("￿"))})}else s&&(!t.hasFocus&&t.state.facet(H)||s.main.eq(o))&&(s=null);if(!i&&!s)return!1;if(!i&&e.typeOver&&!o.empty&&s&&s.main.empty?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,o.to))}:(S.mac||S.android)&&i&&i.from==i.to&&i.from==o.head-1&&/^\. ?$/.test(i.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(s&&2==i.insert.length&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}):S.chrome&&i&&i.from==i.to&&i.from==o.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}),i){let e;if(S.ios&&t.inputState.flushIOSKey()||S.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&dispatchKey(t.contentDOM,"Enter",13)||(i.from==o.from-1&&i.to==o.to&&0==i.insert.length||8==n&&i.insert.lengtho.head)&&dispatchKey(t.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&dispatchKey(t.contentDOM,"Delete",46)))return!0;let r=i.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let defaultInsert=()=>e||(e=function(t,e,i){let s,o=t.state,n=o.selection.main;if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=n.frome.to?o.sliceDoc(e.to,n.to):"";s=o.replaceSelection(t.state.toText(i+e.insert.sliceString(0,void 0,t.state.lineBreak)+r))}else{let r=o.changes(e),h=i&&i.main.to<=r.newLength?i.main:void 0;if(o.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=n.to&&e.to>=n.to-10){let a=t.state.sliceDoc(e.from,e.to),c,d=i&&findCompositionNode(t,i.main.head);if(d){let t=e.insert.length-(e.to-e.from);c={from:d.from,to:d.to-t}}else c=t.state.doc.lineAt(n.head);let u=n.to-e.to,f=n.to-n.from;s=o.changeByRange(i=>{if(i.from==n.from&&i.to==n.to)return{changes:r,range:h||i.map(r)};let s=i.to-u,d=s-a.length;if(i.to-i.from!=f||t.state.sliceDoc(d,s)!=a||i.to>=c.from&&i.from<=c.to)return{range:i};let p=o.changes({from:d,to:s,insert:e.insert}),g=i.to-n.to;return{changes:p,range:h?l.jT.range(Math.max(0,h.anchor+g),Math.max(0,h.head+g)):i.map(p)}})}else s={changes:r,selection:h&&o.selection.replaceRange(h)}}let r="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,r+=".compose",t.inputState.compositionFirstChange&&(r+=".start",t.inputState.compositionFirstChange=!1)),o.update(s,{userEvent:r,scrollIntoView:!0})}(t,i,s));return t.state.facet(B).some(e=>e(t,i.from,i.to,r,defaultInsert))||t.dispatch(defaultInsert()),!0}if(!s||s.main.eq(o))return!1;{let e=!1,i="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),i=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:e,userEvent:i}),!0}}let tT={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},tA=S.ie&&S.ie_version<=11;let DOMObserver=class DOMObserver{constructor(t){this.view=t,this.active=!1,this.selectionRange=new DOMSelectionState,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let t of e)this.queue.push(t);(S.ie&&S.ie_version<=11||S.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),tA&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(H)?i.root.activeElement!=this.dom:!hasSelection(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(S.ie&&S.ie_version<=11||S.android&&S.chrome)&&!i.state.selection.main.empty&&s.focusNode&&isEquivalentPosition(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=S.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function read(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",read,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",read,!0),!e)return null;let i=e.startContainer,s=e.startOffset,o=e.endContainer,n=e.endOffset,r=t.docView.domAtPos(t.state.selection.main.anchor);return isEquivalentPosition(r.node,r.offset,o,n)&&([i,s,o,n]=[o,n,i,s]),{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}}(this.view)||getSelection(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=hasSelection(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&dispatchKey(this.dom,t.key,t.keyCode))})),this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,s=!1;for(let o of t){let t=this.readMutation(o);t&&(t.typeOver&&(s=!0),-1==e?{from:e,to:i}=t:(e=Math.min(t.from,e),i=Math.max(t.to,i)))}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(t<0&&!s)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new DOMChange(this.view,t,e,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,s=applyDOMChange(this.view,e);return this.view.state==i&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let i=findChild(e,t.previousSibling||t.target.previousSibling,-1),s=findChild(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i;for(let s of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),this.scrollTargets))s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};function findChild(t,e,i){for(;e;){let s=ContentView.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}let EditorView=class EditorView{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:e}=t;for(let i of(this.dispatchTransactions=t.dispatchTransactions||e&&(t=>t.forEach(t=>e(t,this)))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new ViewState(t.state||l.yy.create(t)),t.scrollTo&&t.scrollTo.is(L)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(W).map(t=>new PluginInstance(t)),this.plugins))i.update(this);this.observer=new DOMObserver(this),this.inputState=new InputState(this),this.inputState.ensureHandlers(this.plugins),this.docView=new DocView(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}dispatch(...t){let e=1==t.length&&t[0]instanceof l.YW?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,o=this.state;for(let e of t){if(e.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=e.state}if(this.destroyed){this.viewState.state=o;return}let n=this.hasFocus,r=0,h=null;t.some(t=>t.annotation(tp))?(this.inputState.notifiedFocused=n,r=1):n==this.inputState.notifiedFocused||(this.inputState.notifiedFocused=n,(h=focusChangeTransaction(o,n))||(r=1));let a=this.observer.delayedAndroidKey,c=null;if(a?(this.observer.clearDelayedAndroidKey(),((c=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(l.yy.phrases)!=this.state.facet(l.yy.phrases))return this.setState(o);s=ViewUpdate.create(this,o,t),s.flags|=r;let d=this.viewState.scrollTarget;try{for(let e of(this.updateState=2,t)){if(d&&(d=d.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;d=new ScrollTarget(t.empty?t:l.jT.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(L)&&(d=t.value.clip(this.state))}this.viewState.update(s,d),this.bidiCache=CachedOrder.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(j)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(tb)!=s.state.facet(tb)&&(this.viewState.mustMeasureContent=!0),(e||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!s.empty)for(let t of this.state.facet(V))try{t(s)}catch(t){logException(this.state,t,"update listener")}(h||c)&&Promise.resolve().then(()=>{h&&this.state==h.startState&&this.dispatch(h),c&&!applyDOMChange(this,c)&&a.force&&dispatchKey(this.contentDOM,a.key,a.keyCode)})}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);for(let e of(this.viewState=new ViewState(t),this.plugins=t.facet(W).map(t=>new PluginInstance(t)),this.pluginMap.clear(),this.plugins))e.update(this);this.docView=new DocView(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(W),i=t.state.facet(W);if(e!=i){let s=[];for(let o of i){let i=e.indexOf(o);if(i<0)s.push(new PluginInstance(o));else{let e=this.plugins[i];e.mustUpdate=t,s.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let e of this.plugins)e.mustUpdate=t;for(let t=0;t-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:n}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(n=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(n<0){if(isScrolledToBottom(i))o=-1,n=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(s);o=t.from,n=t.top}}this.updateState=1;let r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&r||([this.measureRequests,l]=[l,this.measureRequests]);let h=l.map(t=>{try{return t.read(this)}catch(t){return logException(this.state,t),tO}}),a=ViewUpdate.create(this,this.state,[]),c=!1;a.flags|=r,e?e.flags|=r:e=a,this.updateState=2,a.empty||(this.updatePlugins(a),this.inputState.update(a),this.updateAttrs(),c=this.docView.update(a));for(let t=0;t1||t<-1){s+=t,i.scrollTop=s/this.scaleY,n=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let t of this.state.facet(V))t(e)}get themeClasses(){return tM+" "+(this.state.facet(ty)?tS:tx)+" "+this.state.facet(tb)}updateAttrs(){let t=attrsFromFacet(this,F,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(H)?"true":"false",class:"cm-content",style:`${S.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),attrsFromFacet(this,I,e);let i=this.observer.ignore(()=>{let i=updateAttrs(this.contentDOM,this.contentAttrs,e),s=updateAttrs(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let t of i.effects)t.is(EditorView.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value)}mountStyles(){this.styleModules=this.state.facet(j);let t=this.state.facet(EditorView.cspNonce);h.V.mount(this.root,this.styleModules.concat(tC).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t&&!(this.measureRequests.indexOf(t)>-1)){if(null!=t.key){for(let e=0;ee.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return skipAtoms(this,t,moveByChar(this,t,e,i))}moveByGroup(t,e){return skipAtoms(this,t,moveByChar(this,t,e,e=>{var i;let s,o;return i=t.head,o=(s=this.state.charCategorizer(i))(e),t=>{let e=s(t);return o==l.D0.Space&&(o=e),o==e}}))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let o=blockAt(t,e.head),n=s&&o.type==C.Text&&(t.lineWrapping||o.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(n){let e=t.dom.getBoundingClientRect(),s=t.textDirectionAt(o.from),r=t.posAtCoords({x:i==(s==$.LTR)?e.right-1:e.left+1,y:(n.top+n.bottom)/2});if(null!=r)return l.jT.cursor(r,i?-1:1)}return l.jT.cursor(i?o.to:o.from,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return skipAtoms(this,t,function(t,e,i,s){let o=e.head,n=i?1:-1;if(o==(i?t.state.doc.length:0))return l.jT.cursor(o,e.assoc);let r=e.goalColumn,h,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(o,e.assoc||-1),d=t.documentTop;if(c)null==r&&(r=c.left-a.left),h=n<0?c.top:c.bottom;else{let e=t.viewState.lineBlockAt(o);null==r&&(r=Math.min(a.right-a.left,t.defaultCharacterWidth*(o-e.from))),h=(n<0?e.top:e.bottom)+d}let u=a.left+r,f=null!=s?s:t.viewState.heightOracle.textHeight>>1;for(let e=0;;e+=10){let i=h+(f+e)*n,s=posAtCoords(t,{x:u,y:i},!1,n);if(ia.bottom||(n<0?so)){let e=t.docView.coordsForChar(s),o=!e||i0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(R)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>tD)return trivialOrder(t.length);let e=this.textDirectionAt(t.from),i;for(let s of this.bidiCache)if(s.from==t.from&&s.dir==e&&(s.fresh||function isolatesEq(t,e){if(t.length!=e.length)return!1;for(let i=0;itt.length;)tt[tt.length]=256;let s=[],o=e==X?0:1;return function computeSectionOrder(t,e,i,s,o,n,r){let l=e%2?2:1;(function(t,e,i,s,o){for(let r=0;r<=s.length;r++){let l=r?s[r-1].to:e,h=r=0;t-=3)if(Z[t+1]==-s){let i=Z[t+2],s=2&i?o:4&i?1&i?n:o:0;s&&(tt[e]=tt[Z[t]]=s),l=t;break}}else if(189==Z.length)break;else Z[l++]=e,Z[l++]=i,Z[l++]=h}else if(2==(r=tt[e])||1==r){let t=r==o;h=t?0:1;for(let e=l-3;e>=0;e-=3){let i=Z[e+2];if(2&i)break;if(t)Z[e+2]|=2;else{if(4&i)break;Z[e+2]|=4}}}}}(t,o,n,s,l),function(t,e,i,s){for(let o=0,n=s;o<=i.length;o++){let r=o?i[o-1].to:t,l=oh;)e==n&&(e=i[--s].from,n=s?i[s-1].to:t),tt[--e]=c;h=r}else n=r,h++}}}(o,n,s,l),function emitSpans(t,e,i,s,o,n,r){let l=s%2?2:1;if(s%2==o%2)for(let h=e,a=0;hh&&r.push(new BidiSpan(h,p.from,u)),computeSectionOrder(t,p.direction==X!=!(u%2)?s+1:s,o,p.inner,p.from,p.to,r),h=p.to),f=p.to}else if(f==i||(e?tt[f]!=l:tt[f]==l))break;else f++;d?emitSpans(t,h,f,s+1,o,d,r):he;){let i=!0,c=!1;if(!a||h>n[a-1].to){let t=tt[h-1];t!=l&&(i=!1,c=16==t)}let d=i||1!=l?null:[],u=i?s:s+1,f=h;t:for(;;)if(a&&f==n[a-1].to){if(c)break;let p=n[--a];if(!i)for(let t=p.from,i=a;;){if(t==e)break t;if(i&&n[i-1].to==t)t=n[--i].from;else if(tt[t-1]==l)break t;else break}d?d.push(p):(p.toDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return L.of(new ScrollTarget("number"==typeof t?l.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return L.of(new ScrollTarget(l.jT.cursor(i.from),"start","start",i.top-t,e,!0))}static domEventHandlers(t){return ViewPlugin.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ViewPlugin.define(()=>({}),{eventObservers:t})}static theme(t,e){let i=h.V.newName(),s=[tb.of(i),j.of(buildTheme(`.${i}`,t))];return e&&e.dark&&s.push(ty.of(!0)),s}static baseTheme(t){return l.Wl.lowest(j.of(buildTheme("."+tM,t,tk)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&ContentView.get(i)||ContentView.get(t);return(null===(e=null==s?void 0:s.rootView)||void 0===e?void 0:e.view)||null}};EditorView.styleModule=j,EditorView.inputHandler=B,EditorView.focusChangeEffect=E,EditorView.perLineTextDirection=R,EditorView.exceptionSink=O,EditorView.updateListener=V,EditorView.editable=H,EditorView.mouseSelectionStyle=D,EditorView.dragMovesSelection=A,EditorView.clickAddsSelectionRange=T,EditorView.decorations=z,EditorView.atomicRanges=G,EditorView.bidiIsolatedRanges=q,EditorView.scrollMargins=K,EditorView.darkTheme=ty,EditorView.cspNonce=l.r$.define({combine:t=>t.length?t[0]:""}),EditorView.contentAttributes=I,EditorView.editorAttributes=F,EditorView.lineWrapping=EditorView.contentAttributes.of({class:"cm-lineWrapping"}),EditorView.announce=l.Py.define();let tD=4096,tO={};let CachedOrder=class CachedOrder{constructor(t,e,i,s,o,n){this.from=t,this.to=e,this.dir=i,this.isolates=s,this.fresh=o,this.order=n}static update(t,e){if(e.empty&&!t.some(t=>t.fresh))return t;let i=[],s=t.length?t[t.length-1].dir:$.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let e=s[o],n="function"==typeof e?e(t):e;n&&combineAttrs(n,i)}return i}let tV=S.mac?"mac":S.windows?"win":S.linux?"linux":"key";function modifiers(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}let tB=l.Wl.default(EditorView.domEventHandlers({keydown:(t,e)=>runHandlers(getKeymap(e.state),t,e,"editor")})),tE=l.r$.define({enables:tB}),tR=new WeakMap;function getKeymap(t){let e=t.facet(tE),i=tR.get(e);return i||tR.set(e,i=function(t,e=tV){let i=Object.create(null),s=Object.create(null),checkPrefix=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},add=(t,s,o,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null)),c=s.split(/ (?!$)/).map(t=>(function(t,e){let i,s,o,n;let r=t.split(/-(?!$)/),l=r[r.length-1];"Space"==l&&(l=" ");for(let t=0;t{let s=tP={view:e,prefix:i,scope:t};return setTimeout(()=>{tP==s&&(tP=null)},4e3),!0}]})}let d=c.join(" ");checkPrefix(d,!1);let u=a[d]||(a[d]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(l=a._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});o&&u.run.push(o),n&&(u.preventDefault=!0),r&&(u.stopPropagation=!0)};for(let s of t){let t=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));for(let e in t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]}),t)t[e].run.push(s.any)}let o=s[e]||s.key;if(o)for(let e of t)add(e,o,s.run,s.preventDefault,s.stopPropagation),s.shift&&add(e,"Shift-"+o,s.shift,s.preventDefault,s.stopPropagation)}return i}(e.reduce((t,e)=>t.concat(e),[]))),i}function runScopeHandlers(t,e,i){return runHandlers(getKeymap(t.state),e,t,i)}let tP=null;function runHandlers(t,e,i,s){let o=(0,a.YG)(e),n=(0,l.gm)(o,0),r=(0,l.nZ)(n)==o.length&&" "!=o,h="",c=!1,d=!1,u=!1;tP&&tP.view==i&&tP.scope==s&&(h=tP.prefix+" ",0>tn.indexOf(e.keyCode)&&(d=!0,tP=null));let f=new Set,runFor=t=>{if(t){for(let s of t.run)if(!f.has(s)&&(f.add(s),s(i,e)))return t.stopPropagation&&(u=!0),!0;t.preventDefault&&(t.stopPropagation&&(u=!0),d=!0)}return!1},p=t[s],g,m;return p&&(runFor(p[h+modifiers(o,e,!r)])?c=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(S.windows&&e.ctrlKey&&e.altKey)&&(g=a.ue[e.keyCode])&&g!=o?runFor(p[h+modifiers(g,e,!0)])?c=!0:e.shiftKey&&(m=a.uY[e.keyCode])!=o&&m!=g&&runFor(p[h+modifiers(m,e,!1)])&&(c=!0):r&&e.shiftKey&&runFor(p[h+modifiers(o,e,!0)])&&(c=!0),!c&&runFor(p._any)&&(c=!0)),d&&(c=!0),c&&u&&e.stopPropagation(),c}let RectangleMarker=class RectangleMarker{constructor(t,e,i,s,o){this.className=t,this.left=e,this.top=i,this.width=s,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(!i.empty)return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to),n=t.textDirection==$.LTR,r=t.contentDOM,l=r.getBoundingClientRect(),h=getBase(t),a=r.querySelector(".cm-line"),c=a&&window.getComputedStyle(a),d=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),u=l.right-(c?parseInt(c.paddingRight):0),f=blockAt(t,s),p=blockAt(t,o),g=f.type==C.Text?f:null,m=p.type==C.Text?p:null;if(g&&(t.lineWrapping||f.widgetLineBreaks)&&(g=wrappedLine(t,s,g)),m&&(t.lineWrapping||p.widgetLineBreaks)&&(m=wrappedLine(t,o,m)),g&&m&&g.from==m.from)return pieces(drawForLine(i.from,i.to,g));{let e=g?drawForLine(i.from,null,g):drawForWidget(f,!1),s=m?drawForLine(null,i.to,m):drawForWidget(p,!0),o=[];return(g||f).to<(m||p).from-(g&&m?1:0)||f.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2h&&s.from=n)break;l>o&&addSpan(Math.max(t,o),null==e&&t<=h,Math.min(l,n),null==i&&l>=a,r.dir)}if((o=s.to+1)>=n)break}return 0==l.length&&addSpan(h,null==e,a,null==i,t.textDirection),{top:o,bottom:r,horizontal:l}}function drawForWidget(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i);{let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=getBase(t);return[new RectangleMarker(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}}};function getBase(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==$.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function wrappedLine(t,e,i){let s=l.jT.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(s,!0,!0).from),type:C.Text}}let LayerView=class LayerView{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(tL)!=t.state.facet(tL)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let e=0,i=t.facet(tL);for(;e{var i;return i=this.drawn[e],!(t.constructor==i.constructor&&t.eq(i))})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}};let tL=l.r$.define();function layer(t){return[ViewPlugin.define(e=>new LayerView(e,t)),tL.of(t)]}let tH=!S.ios,tN=l.r$.define({combine:t=>(0,l.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function drawSelection(t={}){return[tN.of(t),tW,tF,tz,P.of(!0)]}function configChanged(t){return t.startState.facet(tN)!=t.state.facet(tN)}let tW=layer({above:!0,markers(t){let{state:e}=t,i=e.facet(tN),s=[];for(let o of e.selection.ranges){let n=o==e.selection.main;if(o.empty?!n||tH:i.drawRangeCursor){let e=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",i=o.empty?o:l.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let o of RectangleMarker.forRange(t,e,i))s.push(o)}}return s},update(t,e){t.transactions.some(t=>t.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=configChanged(t);return i&&setBlinkRate(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){setBlinkRate(e.state,t)},class:"cm-cursorLayer"});function setBlinkRate(t,e){e.style.animationDuration=t.facet(tN).cursorBlinkRate+"ms"}let tF=layer({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:RectangleMarker.forRange(t,"cm-selectionBackground",e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||configChanged(t),class:"cm-selectionLayer"}),tI={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};tH&&(tI[".cm-line"].caretColor="transparent !important");let tz=l.Wl.highest(EditorView.theme(tI)),tG=l.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),tq=l.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(tG)?e.value:t,t))}),tK=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(tq);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(tq)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(tq),i=null!=e&&t.coordsAtPos(e);if(!i)return null;let s=t.scrollDOM.getBoundingClientRect();return{left:i.left-s.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-s.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/i+"px",this.cursor.style.height=t.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(tq)!=t&&this.view.dispatch({effects:tG.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[tq,tK]}function iterMatches(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length)if(!n.lineBreak)for(;l=e.exec(n.value);)o(r+l.index,l)}let MatchDecorator=class MatchDecorator{constructor(t){let{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);n&&o(s,s+t[0].length,n)};else if(i)this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=n}createDeco(t){let e=new l.f_,i=e.add.bind(e);for(let{from:e,to:s}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i)o=Math.max(t.state.doc.lineAt(o).from,o-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=o?s[s.length-1].to=n:s.push({from:o,to:n});return s}(t,this.maxLength))iterMatches(t.state.doc,this.regexp,e,s,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return(t.docChanged&&t.changes.iterChanges((e,o,n,r)=>{r>t.view.viewport.from&&n1e3)?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let i=t.state.doc.lineAt(n),s=i.toi.from;n--)if(this.boundary.test(i.text[n-1-i.from])){l=n;break}for(;ra.push(i.range(t,e));if(i==s)for(this.regexp.lastIndex=l-i.from;(c=this.regexp.exec(i.text))&&c.indexthis.addMatch(i,t,e,add));e=e.update({filterFrom:l,filterTo:h,filter:(t,e)=>th,add:a})}}return e}};let tj=null!=/x/.unicode?"gu":"g",t$=RegExp("[\x00-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",tj),tX={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},tY=null,t_=l.r$.define({combine(t){let e=(0,l.BO)(t,{render:null,specialChars:t$,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==tY&&"undefined"!=typeof document&&document.body){let e=document.body.style;tY=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return tY||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,tj)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,tj)),e}});function highlightSpecialChars(t={}){return[t_.of(t),tU||(tU=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.decorations=Decoration.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(t_)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new MatchDecorator({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:o}=i.state,n=(0,l.gm)(e[0],0);if(9==n){let t=o.lineAt(s),e=i.state.tabSize,n=(0,l.IS)(t.text,e,s-t.from);return Decoration.replace({widget:new TabWidget((e-n%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=Decoration.replace({widget:new SpecialCharWidget(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(t_);t.startState.facet(t_)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let tU=null;let SpecialCharWidget=class SpecialCharWidget extends WidgetType{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let i=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),s=t.state.phrase("Control character")+" "+(tX[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,s,i);if(o)return o;let n=document.createElement("span");return n.textContent=i,n.title=s,n.setAttribute("aria-label",s),n.className="cm-specialChar",n}ignoreEvent(){return!1}};let TabWidget=class TabWidget extends WidgetType{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}};function highlightActiveLine(){return tZ}let tQ=Decoration.line({class:"cm-activeLine"}),tZ=ViewPlugin.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);o.from>e&&(i.push(tQ.range(o.from)),e=o.from)}return Decoration.set(i)}},{decorations:t=>t.decorations});let Placeholder=class Placeholder extends WidgetType{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let e=t.firstChild?clientRectsFor(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode),s=flattenRect(e[0],"rtl"!=i.direction),o=parseInt(i.lineHeight);return s.bottom-s.top>1.5*o?{left:s.left,right:s.right,top:s.top,bottom:s.top+o}:s}ignoreEvent(){return!1}};function placeholder(t){return ViewPlugin.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Decoration.set([Decoration.widget({widget:new Placeholder(t),side:1}).range(0)]):Decoration.none}get decorations(){return this.view.state.doc.length?Decoration.none:this.placeholder}},{decorations:t=>t.decorations})}function getPos(t,e){var i;let s,o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(o),r=o-n.from,h=r>2e3?-1:r==n.length?(i=e.clientX,(s=t.coordsAtPos(t.viewport.from))?Math.round(Math.abs((s.left-i)/t.defaultCharacterWidth)):-1):(0,l.IS)(n.text,t.state.tabSize,o-n.from);return{line:n.number,col:h,off:r}}function rectangularSelection(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return EditorView.mouseSelectionStyle.of((t,i)=>{let s,o;return e(i)?(s=getPos(t,i),o=t.state.selection,s?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(s.line).from),i=t.state.doc.lineAt(e);s={line:i.number,col:s.col,off:Math.min(s.off,i.length)},o=o.map(t.changes)}},get(e,i,n){let r=getPos(t,e);if(!r)return o;let h=function(t,e,i){let s=Math.min(e.line,i.line),o=Math.max(e.line,i.line),n=[];if(e.off>2e3||i.off>2e3||e.col<0||i.col<0){let r=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let e=s;e<=o;e++){let i=t.doc.line(e);i.length<=h&&n.push(l.jT.range(i.from+r,i.to+h))}}else{let r=Math.min(e.col,i.col),h=Math.max(e.col,i.col);for(let e=s;e<=o;e++){let i=t.doc.line(e),s=(0,l.Gz)(i.text,r,t.tabSize,!0);if(s<0)n.push(l.jT.cursor(i.to));else{let e=(0,l.Gz)(i.text,h,t.tabSize);n.push(l.jT.range(i.from+s,i.from+e))}}}return n}(t.state,s,r);return h.length?n?l.jT.create(h.concat(o.ranges)):l.jT.create(h):o}}:null):null})}let tJ={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},t0={style:"cursor: crosshair"};function crosshairCursor(t={}){let[e,i]=tJ[t.key||"Alt"],s=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[s,EditorView.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.isDown)?t0:null})]}let t1="-10000px";let TooltipViewManager=class TooltipViewManager{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t),this.tooltipViews=this.tooltips.map(i)}update(t,e){var i;let s=t.state.facet(this.facet),o=s.filter(t=>t);if(s===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let n=[],r=e?[]:null;for(let i=0;in.indexOf(t)&&(t.dom.remove(),null===(i=t.destroy)||void 0===i||i.call(t));return e&&(r.forEach((t,i)=>e[i]=t),e.length=r.length),this.input=s,this.tooltips=o,this.tooltipViews=n,!0}};function windowSpace(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}let t2=l.r$.define({combine:t=>{var e,i,s;return{position:S.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find(t=>t.parent))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(s=t.find(t=>t.tooltipSpace))||void 0===s?void 0:s.tooltipSpace)||windowSpace}}}),t8=new WeakMap,t3=ViewPlugin.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(t2);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new TooltipViewManager(t,t4,t=>this.createTooltip(t)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let i=e||t.geometryChanged,s=t.state.facet(t2);if(s.position!=this.position&&!this.madeAbsolute){for(let t of(this.position=s.position,this.manager.tooltipViews))t.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){for(let t of(this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(t.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=t1,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;for(let e of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e);this.parent&&this.container.remove(),null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,i=1,s=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(S.gecko)s=t.offsetParent!=this.container.ownerDocument.body;else if(1!=this.view.scaleX||1!=this.view.scaleY)s=!0;else if(t.style.top==t1&&"0px"==t.style.left){let e=t.getBoundingClientRect();s=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(s||"absolute"==this.position){if(this.parent){let t=this.parent.getBoundingClientRect();t.width&&t.height&&(e=t.width/this.parent.offsetWidth,i=t.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:i}=this.view.viewState)}return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(t2).tooltipSpace(this.view),scaleX:e,scaleY:i,makeAbsolute:s}}writeMeasure(t){var e;if(t.makeAbsolute)for(let t of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))t.dom.style.position="absolute";let{editor:i,space:s,scaleX:o,scaleY:n}=t,r=[];for(let l=0;l=Math.min(i.bottom,s.bottom)||d.rightMath.min(i.right,s.right)+.1){c.style.top=t1;continue}let f=h.arrow?a.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,g=u.right-u.left,m=null!==(e=t8.get(a))&&void 0!==e?e:u.bottom-u.top,w=a.offset||t5,v=this.view.textDirection==$.LTR,b=u.width>s.right-s.left?v?s.left:s.right-u.width:v?Math.min(d.left-(f?14:0)+w.x,s.right-g):Math.max(s.left,d.left-g+(f?14:0)-w.x),y=this.above[l];!h.strictSide&&(y?d.top-(u.bottom-u.top)-w.ys.bottom)&&y==s.bottom-d.bottom>d.top-s.top&&(y=this.above[l]=!y);let M=(y?d.top-s.top:s.bottom-d.bottom)-p;if(Mb&&t.topx&&(x=y?t.top-m-2-p:t.bottom+p+2);if("absolute"==this.position?(c.style.top=(x-t.parent.top)/n+"px",c.style.left=(b-t.parent.left)/o+"px"):(c.style.top=x/n+"px",c.style.left=b/o+"px"),f){let t=d.left+(v?w.x:-w.x)-(b+14-7);f.style.left=t/o+"px"}!0!==a.overlap&&r.push({left:b,top:x,right:S,bottom:x+m}),c.classList.toggle("cm-tooltip-above",y),c.classList.toggle("cm-tooltip-below",!y),a.positioned&&a.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=t1}},{eventObservers:{scroll(){this.maybeMeasure()}}}),t9=EditorView.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),t5={x:0,y:0},t4=l.r$.define({enables:[t3,t9]}),t6=l.r$.define();let HoverTooltipHost=class HoverTooltipHost{static create(t){return new HoverTooltipHost(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new TooltipViewManager(t,t6,t=>this.createHostedView(t))}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let i of this.manager.tooltipViews){let s=i[t];if(void 0!==s){if(void 0===e)e=s;else if(e!==s)return}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}};let t7=t4.compute([t6],t=>{let e=t.facet(t6).filter(t=>t);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>null!=t.end).map(t=>t.end)),create:HoverTooltipHost.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});let HoverPlugin=class HoverPlugin{constructor(t,e,i,s,o){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||e.xi.right+t.defaultCharacterWidth)return;let n=t.bidiSpans(t.state.doc.lineAt(s)).find(t=>t.from<=s&&t.to>=s),r=n&&n.dir==$.RTL?-1:1;o=e.x{this.pending==e&&(this.pending=null,i&&t.dispatch({effects:this.setHover.of(i)}))},e=>logException(t.state,e,"hover tooltip"))}else n&&t.dispatch({effects:this.setHover.of(n)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let i=this.active;if(i&&!isInTooltip(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!function(t,e,i,s,o,n){let r=t.scrollDOM.getBoundingClientRect(),l=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>s||r.righto||Math.min(r.bottom,l)=e&&h<=i}(this.view,s,o,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!isInTooltip(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}};function isInTooltip(t){for(let e=t;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip"))return!0;return!1}function hoverTooltip(t,e={}){let i=l.Py.define(),s=l.QQ.define({create:()=>null,update(t,s){if(t&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,t)))return null;if(t&&s.docChanged){let e=s.changes.mapPos(t.pos,-1,l.gc.TrackDel);if(null==e)return null;let i=Object.assign(Object.create(null),t);i.pos=e,null!=t.end&&(i.end=s.changes.mapPos(t.end)),t=i}for(let e of s.effects)e.is(i)&&(t=e.value),e.is(et)&&(t=null);return t},provide:t=>t6.from(t)});return[s,ViewPlugin.define(o=>new HoverPlugin(o,t,s,i,e.hoverTime||300)),t7]}function getTooltip(t,e){let i=t.plugin(t3);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}let et=l.Py.define(),ee=l.r$.define({combine(t){let e,i;for(let s of t)e=e||s.topContainer,i=i||s.bottomContainer;return{topContainer:e,bottomContainer:i}}});function getPanel(t,e){let i=t.plugin(ei),s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}let ei=ViewPlugin.fromClass(class{constructor(t){this.input=t.state.facet(es),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(ee);for(let i of(this.top=new PanelGroup(t,!0,e.topContainer),this.bottom=new PanelGroup(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(ee);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new PanelGroup(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new PanelGroup(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(es);if(i!=this.input){let e=i.filter(t=>t),s=[],o=[],n=[],r=[];for(let i of e){let e=this.specs.indexOf(i),l;e<0?(l=i(t.view),r.push(l)):(l=this.panels[e]).update&&l.update(t),s.push(l),(l.top?o:n).push(l)}for(let t of(this.specs=e,this.panels=s,this.top.sync(o),this.bottom.sync(n),r))t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let e of this.panels)e.update&&e.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>EditorView.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});let PanelGroup=class PanelGroup{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=rm(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=rm(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}};function rm(t){let e=t.nextSibling;return t.remove(),e}let es=l.r$.define({enables:ei});let GutterMarker=class GutterMarker extends l.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}};GutterMarker.prototype.elementClass="",GutterMarker.prototype.toDOM=void 0,GutterMarker.prototype.mapMode=l.gc.TrackBefore,GutterMarker.prototype.startSide=GutterMarker.prototype.endSide=-1,GutterMarker.prototype.point=!0;let eo=l.r$.define(),en={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>l.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},er=l.r$.define();function gutter(t){return[gutters(),er.of(Object.assign(Object.assign({},en),t))]}let el=l.r$.define({combine:t=>t.some(t=>t)});function gutters(t){let e=[eh];return t&&!1===t.fixed&&e.push(el.of(!0)),e}let eh=ViewPlugin.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(er).map(e=>new SingleGutterView(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(el),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(el)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=l.Xs.iter(this.view.state.facet(eo),this.view.viewport.from),s=[],o=this.gutters.map(t=>new UpdateContext(t,this.view.viewport,-this.view.documentPadding.top));for(let t of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(t.type)){let e=!0;for(let n of t.type)if(n.type==C.Text&&e){for(let t of(advanceCursor(i,s,n.from),o))t.line(this.view,n,s);e=!1}else if(n.widget)for(let t of o)t.widget(this.view,n)}else if(t.type==C.Text)for(let e of(advanceCursor(i,s,t.from),o))e.line(this.view,t,s);else if(t.widget)for(let e of o)e.widget(this.view,t);for(let t of o)t.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(er),i=t.state.facet(er),s=t.docChanged||t.heightChanged||t.viewportChanged||!l.Xs.eq(t.startState.facet(eo),t.state.facet(eo),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let e of this.gutters)e.update(t)&&(s=!0);else{s=!0;let o=[];for(let s of i){let i=e.indexOf(s);i<0?o.push(new SingleGutterView(this.view,s)):(this.gutters[i].update(t),o.push(this.gutters[i]))}for(let t of this.gutters)t.dom.remove(),0>o.indexOf(t)&&t.destroy();for(let t of o)this.dom.appendChild(t.dom);this.gutters=o}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>EditorView.scrollMargins.of(e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==$.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}:null})});function asArray(t){return Array.isArray(t)?t:[t]}function advanceCursor(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}let UpdateContext=class UpdateContext{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=l.Xs.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,o=(e.top-this.height)/t.scaleY,n=e.height/t.scaleY;if(this.i==s.elements.length){let e=new GutterElement(t,n,o,i);s.elements.push(e),s.dom.appendChild(e.dom)}else s.elements[this.i].update(t,n,o,i);this.height=e.bottom,this.i++}line(t,e,i){let s=[];advanceCursor(this.cursor,s,e.from),i.length&&(s=s.concat(i));let o=this.gutter.config.lineMarker(t,e,s);o&&s.unshift(o);let n=this.gutter;(0!=s.length||n.config.renderEmptyElements)&&this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e);i&&this.addElement(t,e,[i])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}};let SingleGutterView=class SingleGutterView{constructor(t,e){for(let i in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(i,s=>{let o=s.target,n;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let t=o.getBoundingClientRect();n=(t.top+t.bottom)/2}else n=s.clientY;let r=t.lineBlockAtHeight(n-t.documentTop);e.domEventHandlers[i](t,r,s)&&s.preventDefault()});this.markers=asArray(e.markers(t)),e.initialSpacer&&(this.spacer=new GutterElement(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=asArray(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!l.Xs.eq(this.markers,e,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}};let GutterElement=class GutterElement{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let i=0;i(0,l.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let t in e){let s=i[t],o=e[t];i[t]=s?(t,e,i)=>s(t,e,i)||o(t,e,i):o}return i}})});let NumberMarker=class NumberMarker extends GutterMarker{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}};function formatNumber(t,e){return t.state.facet(ec).formatNumber(e,t.state)}let ed=er.compute([ec],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(ea),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new NumberMarker(formatNumber(t,t.state.doc.lineAt(e.from).number)),widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(ec)!=t.state.facet(ec),initialSpacer:t=>new NumberMarker(formatNumber(t,maxLineNumber(t.state.doc.lines))),updateSpacer(t,e){let i=formatNumber(e.view,maxLineNumber(e.view.state.doc.lines));return i==t.number?t:new NumberMarker(i)},domEventHandlers:t.facet(ec).domEventHandlers}));function lineNumbers(t={}){return[ec.of(t),gutters(),ed]}function maxLineNumber(t){let e=9;for(;e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;o>i&&(i=o,e.push(eu.range(o)))}return l.Xs.of(e)});function highlightActiveLineGutter(){return ef}}}]); \ No newline at end of file diff --git a/_next/static/chunks/3632-f92d3273fa10a691.js b/_next/static/chunks/5369-d81cbd2830bbc3d6.js similarity index 53% rename from _next/static/chunks/3632-f92d3273fa10a691.js rename to _next/static/chunks/5369-d81cbd2830bbc3d6.js index 3dc7a905..4303c0a4 100644 --- a/_next/static/chunks/3632-f92d3273fa10a691.js +++ b/_next/static/chunks/5369-d81cbd2830bbc3d6.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3632],{1924:function(e,r,n){"use strict";var o=n(210),i=n(5559),a=i(o("String.prototype.indexOf"));e.exports=function(e,r){var n=o(e,!!r);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},5559:function(e,r,n){"use strict";var o=n(8612),i=n(210),a=n(2490),s=i("%TypeError%"),u=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),f=i("%Reflect.apply%",!0)||o.call(c,u),p=i("%Object.defineProperty%",!0),m=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var r=f(o,c,arguments);return a(r,1+m(0,e.length-(arguments.length-1)),!0)};var applyBind=function(){return f(o,u,arguments)};p?p(e.exports,"apply",{value:applyBind}):e.exports.apply=applyBind},7484:function(e){var r,n,o,i,a,s,u,c,f,p,m,g,b,v,O,S,E,A,w,j,x,_;e.exports=(r="millisecond",n="second",o="minute",i="hour",a="week",s="month",u="quarter",c="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b=function(e,r,n){var o=String(e);return!o||o.length>=r?e:""+Array(r+1-o.length).join(n)+e},(O={})[v="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var r=["th","st","nd","rd"],n=e%100;return"["+e+(r[(n-20)%10]||r[n]||"th")+"]"}},S="$isDayjsObject",E=function(e){return e instanceof x||!(!e||!e[S])},A=function t(e,r,n){var o;if(!e)return v;if("string"==typeof e){var i=e.toLowerCase();O[i]&&(o=i),r&&(O[i]=r,o=i);var a=e.split("-");if(!o&&a.length>1)return t(a[0])}else{var s=e.name;O[s]=e,o=s}return!n&&o&&(v=o),o||!n&&v},w=function(e,r){if(E(e))return e.clone();var n="object"==typeof r?r:{};return n.date=e,n.args=arguments,new x(n)},(j={s:b,z:function(e){var r=-e.utcOffset(),n=Math.abs(r);return(r<=0?"+":"-")+b(Math.floor(n/60),2,"0")+":"+b(n%60,2,"0")},m:function t(e,r){if(e.date()3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new u("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new u("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new u("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new u("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],m=!!c&&c(e,r);if(a)a(e,r,{configurable:null===f&&m?m.configurable:!f,enumerable:null===o&&m?m.enumerable:!o,value:n,writable:null===i&&m?m.writable:!i});else if(!p&&(o||i||f))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[r]=n}},7648:function(e){"use strict";var r=Object.prototype.toString,n=Math.max,concatty=function(e,r){for(var n=[],o=0;o1&&"boolean"!=typeof r)throw new s('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=stringToPath(e),o=n.length>0?n[0]:"",a=getBaseIntrinsic("%"+o+"%",r),c=a.name,f=a.value,p=!1,m=a.alias;m&&(o=m[0],j(n,w([0,1],m)));for(var g=1,b=!0;g=n.length){var x=u(f,O);f=(b=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:f[O]}else b=A(f,O),f=f[O];b&&!p&&(v[c]=f)}}return f}},7296:function(e,r,n){"use strict";var o=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},1044:function(e,r,n){"use strict";var o=n(210)("%Object.defineProperty%",!0),hasPropertyDescriptors=function(){if(o)try{return o({},"a",{value:1}),!0}catch(e){}return!1};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors())return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=hasPropertyDescriptors},8185:function(e){"use strict";var r={foo:{}},n=Object;e.exports=function(){return({__proto__:r}).foo===r.foo&&!(({__proto__:null})instanceof n)}},1405:function(e,r,n){"use strict";var o="undefined"!=typeof Symbol&&Symbol,i=n(5419);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},r=Symbol("test"),n=Object(r);if("string"==typeof r||"[object Symbol]"!==Object.prototype.toString.call(r)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(r in e[r]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,r);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8824:function(e,r,n){"use strict";var o=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(8612);e.exports=a.call(o,i)},2705:function(e,r,n){var o=n(5639).Symbol;e.exports=o},4239:function(e,r,n){var o=n(2705),i=n(9607),a=n(2333),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},7561:function(e,r,n){var o=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},1957:function(e,r,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},9607:function(e,r,n){var o=n(2705),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o?o.toStringTag:void 0;e.exports=function(e){var r=a.call(e,u),n=e[u];try{e[u]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(r?e[u]=n:delete e[u]),i}},2333:function(e){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},5639:function(e,r,n){var o=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},7990:function(e){var r=/\s/;e.exports=function(e){for(var n=e.length;n--&&r.test(e.charAt(n)););return n}},3279:function(e,r,n){var o=n(3218),i=n(7771),a=n(4841),s=Math.max,u=Math.min;e.exports=function(e,r,n){var c,f,p,m,g,b,v=0,O=!1,S=!1,E=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(r){var n=c,o=f;return c=f=void 0,v=r,m=e.apply(o,n)}function shouldInvoke(e){var n=e-b,o=e-v;return void 0===b||n>=r||n<0||S&&o>=p}function timerExpired(){var e,n,o,a=i();if(shouldInvoke(a))return trailingEdge(a);g=setTimeout(timerExpired,(e=a-b,n=a-v,o=r-e,S?u(o,p-n):o))}function trailingEdge(e){return(g=void 0,E&&c)?invokeFunc(e):(c=f=void 0,m)}function debounced(){var e,n=i(),o=shouldInvoke(n);if(c=arguments,f=this,b=n,o){if(void 0===g)return v=e=b,g=setTimeout(timerExpired,r),O?invokeFunc(e):m;if(S)return clearTimeout(g),g=setTimeout(timerExpired,r),invokeFunc(b)}return void 0===g&&(g=setTimeout(timerExpired,r)),m}return r=a(r)||0,o(n)&&(O=!!n.leading,p=(S="maxWait"in n)?s(a(n.maxWait)||0,r):p,E="trailing"in n?!!n.trailing:E),debounced.cancel=function(){void 0!==g&&clearTimeout(g),v=0,c=b=f=g=void 0},debounced.flush=function(){return void 0===g?m:trailingEdge(i())},debounced}},3218:function(e){e.exports=function(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,r,n){var o=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},7771:function(e,r,n){var o=n(5639);e.exports=function(){return o.Date.now()}},3493:function(e,r,n){var o=n(3279),i=n(3218);e.exports=function(e,r,n){var a=!0,s=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),o(e,r,{leading:a,maxWait:r,trailing:s})}},4841:function(e,r,n){var o=n(7561),i=n(3218),a=n(3448),s=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=i(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=c.test(e);return n||f.test(e)?p(e.slice(2),n?2:8):u.test(e)?s:+e}},1342:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{noSSR:function(){return noSSR},default:function(){return dynamic}});let o=n(8754),i=(n(7294),o._(n(4304)));function convertModule(e){return{default:(null==e?void 0:e.default)||e}}function noSSR(e,r){return delete r.webpack,delete r.modules,e(r)}function dynamic(e,r){let n=i.default,o={loading:e=>{let{error:r,isLoading:n,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e}),o={...o,...r};let a=o.loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?n({...o,loader:()=>null!=a?a().then(convertModule):Promise.resolve(convertModule(()=>null))}):(delete o.webpack,delete o.modules,noSSR(n,o))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},43:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"LoadableContext",{enumerable:!0,get:function(){return a}});let o=n(8754),i=o._(n(7294)),a=i.default.createContext(null)},4304:function(e,r,n){"use strict";/** +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5369],{1924:function(e,r,n){"use strict";var o=n(210),i=n(5559),a=i(o("String.prototype.indexOf"));e.exports=function(e,r){var n=o(e,!!r);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},5559:function(e,r,n){"use strict";var o=n(8612),i=n(210),a=n(2490),s=i("%TypeError%"),u=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),f=i("%Reflect.apply%",!0)||o.call(c,u),p=i("%Object.defineProperty%",!0),m=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var r=f(o,c,arguments);return a(r,1+m(0,e.length-(arguments.length-1)),!0)};var applyBind=function(){return f(o,u,arguments)};p?p(e.exports,"apply",{value:applyBind}):e.exports.apply=applyBind},7484:function(e){var r,n,o,i,a,s,u,c,f,p,m,g,b,v,O,S,E,A,w,j,x,_;e.exports=(r="millisecond",n="second",o="minute",i="hour",a="week",s="month",u="quarter",c="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b=function(e,r,n){var o=String(e);return!o||o.length>=r?e:""+Array(r+1-o.length).join(n)+e},(O={})[v="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var r=["th","st","nd","rd"],n=e%100;return"["+e+(r[(n-20)%10]||r[n]||"th")+"]"}},S="$isDayjsObject",E=function(e){return e instanceof x||!(!e||!e[S])},A=function t(e,r,n){var o;if(!e)return v;if("string"==typeof e){var i=e.toLowerCase();O[i]&&(o=i),r&&(O[i]=r,o=i);var a=e.split("-");if(!o&&a.length>1)return t(a[0])}else{var s=e.name;O[s]=e,o=s}return!n&&o&&(v=o),o||!n&&v},w=function(e,r){if(E(e))return e.clone();var n="object"==typeof r?r:{};return n.date=e,n.args=arguments,new x(n)},(j={s:b,z:function(e){var r=-e.utcOffset(),n=Math.abs(r);return(r<=0?"+":"-")+b(Math.floor(n/60),2,"0")+":"+b(n%60,2,"0")},m:function t(e,r){if(e.date()3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new u("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new u("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new u("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new u("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],m=!!c&&c(e,r);if(a)a(e,r,{configurable:null===f&&m?m.configurable:!f,enumerable:null===o&&m?m.enumerable:!o,value:n,writable:null===i&&m?m.writable:!i});else if(!p&&(o||i||f))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[r]=n}},7648:function(e){"use strict";var r=Object.prototype.toString,n=Math.max,concatty=function(e,r){for(var n=[],o=0;o1&&"boolean"!=typeof r)throw new s('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=stringToPath(e),o=n.length>0?n[0]:"",a=getBaseIntrinsic("%"+o+"%",r),c=a.name,f=a.value,p=!1,m=a.alias;m&&(o=m[0],j(n,w([0,1],m)));for(var g=1,b=!0;g=n.length){var x=u(f,O);f=(b=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:f[O]}else b=A(f,O),f=f[O];b&&!p&&(v[c]=f)}}return f}},7296:function(e,r,n){"use strict";var o=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},1044:function(e,r,n){"use strict";var o=n(210)("%Object.defineProperty%",!0),hasPropertyDescriptors=function(){if(o)try{return o({},"a",{value:1}),!0}catch(e){}return!1};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors())return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=hasPropertyDescriptors},8185:function(e){"use strict";var r={foo:{}},n=Object;e.exports=function(){return({__proto__:r}).foo===r.foo&&!(({__proto__:null})instanceof n)}},1405:function(e,r,n){"use strict";var o="undefined"!=typeof Symbol&&Symbol,i=n(5419);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},r=Symbol("test"),n=Object(r);if("string"==typeof r||"[object Symbol]"!==Object.prototype.toString.call(r)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(r in e[r]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,r);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8824:function(e,r,n){"use strict";var o=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(8612);e.exports=a.call(o,i)},2705:function(e,r,n){var o=n(5639).Symbol;e.exports=o},4239:function(e,r,n){var o=n(2705),i=n(9607),a=n(2333),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},7561:function(e,r,n){var o=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},1957:function(e,r,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},9607:function(e,r,n){var o=n(2705),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o?o.toStringTag:void 0;e.exports=function(e){var r=a.call(e,u),n=e[u];try{e[u]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(r?e[u]=n:delete e[u]),i}},2333:function(e){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},5639:function(e,r,n){var o=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},7990:function(e){var r=/\s/;e.exports=function(e){for(var n=e.length;n--&&r.test(e.charAt(n)););return n}},3279:function(e,r,n){var o=n(3218),i=n(7771),a=n(4841),s=Math.max,u=Math.min;e.exports=function(e,r,n){var c,f,p,m,g,b,v=0,O=!1,S=!1,E=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(r){var n=c,o=f;return c=f=void 0,v=r,m=e.apply(o,n)}function shouldInvoke(e){var n=e-b,o=e-v;return void 0===b||n>=r||n<0||S&&o>=p}function timerExpired(){var e,n,o,a=i();if(shouldInvoke(a))return trailingEdge(a);g=setTimeout(timerExpired,(e=a-b,n=a-v,o=r-e,S?u(o,p-n):o))}function trailingEdge(e){return(g=void 0,E&&c)?invokeFunc(e):(c=f=void 0,m)}function debounced(){var e,n=i(),o=shouldInvoke(n);if(c=arguments,f=this,b=n,o){if(void 0===g)return v=e=b,g=setTimeout(timerExpired,r),O?invokeFunc(e):m;if(S)return clearTimeout(g),g=setTimeout(timerExpired,r),invokeFunc(b)}return void 0===g&&(g=setTimeout(timerExpired,r)),m}return r=a(r)||0,o(n)&&(O=!!n.leading,p=(S="maxWait"in n)?s(a(n.maxWait)||0,r):p,E="trailing"in n?!!n.trailing:E),debounced.cancel=function(){void 0!==g&&clearTimeout(g),v=0,c=b=f=g=void 0},debounced.flush=function(){return void 0===g?m:trailingEdge(i())},debounced}},3218:function(e){e.exports=function(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,r,n){var o=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},7771:function(e,r,n){var o=n(5639);e.exports=function(){return o.Date.now()}},3493:function(e,r,n){var o=n(3279),i=n(3218);e.exports=function(e,r,n){var a=!0,s=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),o(e,r,{leading:a,maxWait:r,trailing:s})}},4841:function(e,r,n){var o=n(7561),i=n(3218),a=n(3448),s=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=i(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=c.test(e);return n||f.test(e)?p(e.slice(2),n?2:8):u.test(e)?s:+e}},1342:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{noSSR:function(){return noSSR},default:function(){return dynamic}});let o=n(8754),i=(n(7294),o._(n(4304)));function convertModule(e){return{default:(null==e?void 0:e.default)||e}}function noSSR(e,r){return delete r.webpack,delete r.modules,e(r)}function dynamic(e,r){let n=i.default,o={loading:e=>{let{error:r,isLoading:n,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e}),o={...o,...r};let a=o.loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?n({...o,loader:()=>null!=a?a().then(convertModule):Promise.resolve(convertModule(()=>null))}):(delete o.webpack,delete o.modules,noSSR(n,o))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},43:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"LoadableContext",{enumerable:!0,get:function(){return a}});let o=n(8754),i=o._(n(7294)),a=i.default.createContext(null)},4304:function(e,r,n){"use strict";/** @copyright (c) 2017-present James Kyle MIT License Permission is hereby granted, free of charge, to any person obtaining @@ -17,4 +17,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE -*/Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return f}});let o=n(8754),i=o._(n(7294)),a=n(43),s=[],u=[],c=!1;function load(e){let r=e(),n={loading:!0,loaded:null,error:null};return n.promise=r.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}let LoadableSubscription=class LoadableSubscription{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:r}=this;e.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},r.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,r){this._loadFn=e,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}};function Loadable(e){return function(e,r){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},r),o=null;function init(){if(!o){let r=new LoadableSubscription(e,n);o={getCurrentValue:r.getCurrentValue.bind(r),subscribe:r.subscribe.bind(r),retry:r.retry.bind(r),promise:r.promise.bind(r)}}return o.promise()}if(!c){let e=n.webpack?n.webpack():n.modules;e&&u.push(r=>{for(let n of e)if(r.includes(n))return init()})}function LoadableComponent(e,r){!function(){init();let e=i.default.useContext(a.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(r=>{e(r)})}();let s=i.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return i.default.useImperativeHandle(r,()=>({retry:o.retry}),[]),i.default.useMemo(()=>{var r;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?i.default.createElement((r=s.loaded)&&r.default?r.default:r,e):null},[e,s])}return LoadableComponent.preload=()=>init(),LoadableComponent.displayName="LoadableComponent",i.default.forwardRef(LoadableComponent)}(load,e)}function flushInitializers(e,r){let n=[];for(;e.length;){let o=e.pop();n.push(o(r))}return Promise.all(n).then(()=>{if(e.length)return flushInitializers(e,r)})}Loadable.preloadAll=()=>new Promise((e,r)=>{flushInitializers(s).then(e,r)}),Loadable.preloadReady=e=>(void 0===e&&(e=[]),new Promise(r=>{let res=()=>(c=!0,r());flushInitializers(u,e).then(res,res)})),window.__NEXT_PRELOADREADY=Loadable.preloadReady;let f=Loadable},6134:function(){},5152:function(e,r,n){e.exports=n(1342)},631:function(e,r,n){var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=u&&c&&"function"==typeof c.get?c.get:null,p=u&&Set.prototype.forEach,m="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,g="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,b="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,O=Object.prototype.toString,S=Function.prototype.toString,E=String.prototype.match,A=String.prototype.slice,w=String.prototype.replace,j=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,R=Array.prototype.concat,P=Array.prototype.join,T=Array.prototype.slice,C=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,U="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,r){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-C(-e):C(e);if(o!==e){var i=String(o),a=A.call(r,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(r,n,"$&_")}var Z=n(4654),H=Z.custom,V=isSymbol(H)?H:null;function wrapQuotes(e,r,n){var o="double"===(n.quoteStyle||r)?'"':"'";return o+e+o}function isArray(e){return"[object Array]"===toStr(e)&&(!U||!("object"==typeof e&&U in e))}function isRegExp(e){return"[object RegExp]"===toStr(e)&&(!U||!("object"==typeof e&&U in e))}function isSymbol(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!F)return!1;try{return F.call(e),!0}catch(e){}return!1}e.exports=function inspect_(e,r,o,i){var u=r||{};if(has(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(has(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!has(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(u,"indent")&&null!==u.indent&&" "!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var O=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function inspectString(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength;return inspectString(A.call(e,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}return wrapQuotes(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",r)}(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var j=String(e);return O?addNumericSeparator(e,j):j}if("bigint"==typeof e){var _=String(e)+"n";return O?addNumericSeparator(e,_):_}var C=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=C&&C>0&&"object"==typeof e)return isArray(e)?"[Array]":"[Object]";var N=function(e,r){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=P.call(Array(e.indent+1)," ")}return{base:n,prev:P.call(Array(r+1),n)}}(u,o);if(void 0===i)i=[];else if(indexOf(i,e)>=0)return"[Circular]";function inspect(e,r,n){if(r&&(i=T.call(i)).push(r),n){var a={depth:u.depth};return has(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),inspect_(e,a,o+1,i)}return inspect_(e,u,o+1,i)}if("function"==typeof e&&!isRegExp(e)){var H=function(e){if(e.name)return e.name;var r=E.call(S.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}(e),q=arrObjKeys(e,inspect);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(q.length>0?" { "+P.call(q,", ")+" }":"")}if(isSymbol(e)){var W=I?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):F.call(e);return"object"!=typeof e||I?W:markBoxed(W)}if(e&&"object"==typeof e&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)){for(var z,J="<"+x.call(String(e.nodeName)),G=e.attributes||[],K=0;K"}if(isArray(e)){if(0===e.length)return"[]";var X=arrObjKeys(e,inspect);return N&&!function(e){for(var r=0;r=0)return!1;return!0}(X)?"["+indentedJoin(X,N)+"]":"[ "+P.call(X,", ")+" ]"}if("[object Error]"===toStr(e)&&(!U||!("object"==typeof e&&U in e))){var Q=arrObjKeys(e,inspect);return"cause"in Error.prototype||!("cause"in e)||B.call(e,"cause")?0===Q.length?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(Q,", ")+" }":"{ ["+String(e)+"] "+P.call(R.call("[cause]: "+inspect(e.cause),Q),", ")+" }"}if("object"==typeof e&&c){if(V&&"function"==typeof e[V]&&Z)return Z(e,{depth:C-o});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{f.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(e)){var Y=[];return s&&s.call(e,function(r,n){Y.push(inspect(n,e,!0)+" => "+inspect(r,e))}),collectionOf("Map",a.call(e),Y,N)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(e)){var ee=[];return p&&p.call(e,function(r){ee.push(inspect(r,e))}),collectionOf("Set",f.call(e),ee,N)}if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{m.call(e,m);try{g.call(e,g)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(e))return weakCollectionOf("WeakMap");if(function(e){if(!g||!e||"object"!=typeof e)return!1;try{g.call(e,g);try{m.call(e,m)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(e))return weakCollectionOf("WeakSet");if(function(e){if(!b||!e||"object"!=typeof e)return!1;try{return b.call(e),!0}catch(e){}return!1}(e))return weakCollectionOf("WeakRef");if("[object Number]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))return markBoxed(inspect(Number(e)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(e))return markBoxed(inspect(k.call(e)));if("[object Boolean]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))return markBoxed(v.call(e));if("[object String]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))return markBoxed(inspect(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===n.g)return"{ [object globalThis] }";if(!("[object Date]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))&&!isRegExp(e)){var et=arrObjKeys(e,inspect),er=L?L(e)===Object.prototype:e instanceof Object||e.constructor===Object,en=e instanceof Object?"":"null prototype",eo=!er&&U&&Object(e)===e&&U in e?A.call(toStr(e),8,-1):en?"Object":"",ei=(er||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(eo||en?"["+P.call(R.call([],eo||[],en||[]),": ")+"] ":"");return 0===et.length?ei+"{}":N?ei+"{"+indentedJoin(et,N)+"}":ei+"{ "+P.call(et,", ")+" }"}return String(e)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,r){return q.call(e,r)}function toStr(e){return O.call(e)}function indexOf(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,o=e.length;n-1?e.split(","):e},parseValues=function(e,r){var n={__proto__:null},u=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=r.parameterLimit===1/0?void 0:r.parameterLimit,f=u.split(r.delimiter,c),p=-1,m=r.charset;if(r.charsetSentinel)for(g=0;g=0&&n.parseArrays&&f<=n.arrayLimit?(s=[])[f]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i},parseKeys=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=u?a.slice(0,u.index):a,f=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;f.push(c)}for(var p=0;n.depth>0&&null!==(u=s.exec(a))&&p0?R.join(",")||null:void 0}];else if(c(p))_=p;else{var F=Object.keys(R);_=m?F.sort(m):F}for(var I=a&&c(R)&&1===R.length?r+"[]":r,U=0;U<_.length;++U){var B=_[U],L="object"==typeof B&&void 0!==B.value?B.value:R[B];if(!u||null!==L){var Z=c(R)?"function"==typeof n?n(I,B):I:I+(v?"."+B:"["+B+"]");j.set(e,T);var H=o();H.set(b,j),pushToArray(N,stringify(L,Z,n,a,s,u,"comma"===n&&A&&c(R)?null:f,p,m,v,O,S,E,A,w,H))}}return N},normalizeStringifyOptions=function(e){if(!e)return g;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var r=e.charset||g.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var o=a.formatters[n],i=g.filter;return("function"==typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===e.allowDots?g.allowDots:!!e.allowDots,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:g.charsetSentinel,delimiter:void 0===e.delimiter?g.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:g.encode,encoder:"function"==typeof e.encoder?e.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:g.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:g.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:g.strictNullHandling}};e.exports=function(e,r){var n,i,a=e,s=normalizeStringifyOptions(r);"function"==typeof s.filter?a=(0,s.filter)("",a):c(s.filter)&&(n=s.filter);var f=[];if("object"!=typeof a||null===a)return"";i=r&&r.arrayFormat in u?r.arrayFormat:r&&"indices"in r?r.indices?"indices":"repeat":"indices";var p=u[i];if(r&&"commaRoundTrip"in r&&"boolean"!=typeof r.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&r&&r.commaRoundTrip;n||(n=Object.keys(a)),s.sort&&n.sort(s.sort);for(var g=o(),b=0;b0?S+O:""}},2769:function(e,r,n){"use strict";var o=n(5798),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),compactQueue=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(a(n)){for(var o=[],i=0;i=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===o.RFC1738&&(40===p||41===p)){c+=u.charAt(f);continue}if(p<128){c+=s[p];continue}if(p<2048){c+=s[192|p>>6]+s[128|63&p];continue}if(p<55296||p>=57344){c+=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p];continue}f+=1,c+=s[240|(p=65536+((1023&p)<<10|1023&u.charCodeAt(f)))>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,r){if(a(e)){for(var n=[],o=0;o4294967295||c(r)!==r)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,f=!0;if("length"in e&&s){var p=s(e,"length");p&&!p.configurable&&(o=!1),p&&!p.writable&&(f=!1)}return(o||f||!n)&&(a?i(e,"length",r,!0,!0):i(e,"length",r)),e}},7478:function(e,r,n){"use strict";var o=n(210),i=n(1924),a=n(631),s=o("%TypeError%"),u=o("%WeakMap%",!0),c=o("%Map%",!0),f=i("WeakMap.prototype.get",!0),p=i("WeakMap.prototype.set",!0),m=i("WeakMap.prototype.has",!0),g=i("Map.prototype.get",!0),b=i("Map.prototype.set",!0),v=i("Map.prototype.has",!0),listGetNode=function(e,r){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===r)return o.next=n.next,n.next=e.next,e.next=n,n},listGet=function(e,r){var n=listGetNode(e,r);return n&&n.value},listSet=function(e,r,n){var o=listGetNode(e,r);o?o.value=n:e.next={key:r,next:e.next,value:n}};e.exports=function(){var e,r,n,o={assert:function(e){if(!o.has(e))throw new s("Side channel does not contain "+a(e))},get:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(e)return f(e,o)}else if(c){if(r)return g(r,o)}else if(n)return listGet(n,o)},has:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(e)return m(e,o)}else if(c){if(r)return v(r,o)}else if(n)return!!listGetNode(n,o);return!1},set:function(o,i){u&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new u),p(e,o,i)):c?(r||(r=new c),b(r,o,i)):(n||(n={key:{},next:null}),listSet(n,o,i))}};return o}},5121:function(e,r,n){"use strict";n.d(r,{Z:function(){return eh}});var o,i,a,s={};function bind(e,r){return function(){return e.apply(r,arguments)}}n.r(s),n.d(s,{hasBrowserEnv:function(){return G},hasStandardBrowserEnv:function(){return K},hasStandardBrowserWebWorkerEnv:function(){return X}});let{toString:u}=Object.prototype,{getPrototypeOf:c}=Object,f=(o=Object.create(null),e=>{let r=u.call(e);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())}),kindOfTest=e=>(e=e.toLowerCase(),r=>f(r)===e),typeOfTest=e=>r=>typeof r===e,{isArray:p}=Array,m=typeOfTest("undefined"),g=kindOfTest("ArrayBuffer"),b=typeOfTest("string"),v=typeOfTest("function"),O=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==f(e))return!1;let r=c(e);return(null===r||r===Object.prototype||null===Object.getPrototypeOf(r))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},S=kindOfTest("Date"),E=kindOfTest("File"),A=kindOfTest("Blob"),w=kindOfTest("FileList"),j=kindOfTest("URLSearchParams");function forEach(e,r,{allOwnKeys:n=!1}={}){let o,i;if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(o=0,i=e.length;o0;)if(r===(n=o[i]).toLowerCase())return n;return null}let x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!m(e)&&e!==x,_=(i="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>i&&e instanceof i),R=kindOfTest("HTMLFormElement"),P=(({hasOwnProperty:e})=>(r,n)=>e.call(r,n))(Object.prototype),T=kindOfTest("RegExp"),reduceDescriptors=(e,r)=>{let n=Object.getOwnPropertyDescriptors(e),o={};forEach(n,(n,i)=>{let a;!1!==(a=r(n,i,e))&&(o[i]=a||n)}),Object.defineProperties(e,o)},C="abcdefghijklmnopqrstuvwxyz",k="0123456789",N={DIGIT:k,ALPHA:C,ALPHA_DIGIT:C+C.toUpperCase()+k},F=kindOfTest("AsyncFunction");var I={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let r;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(r=f(e))||"object"===r&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer)},isString:b,isNumber:O,isBoolean:e=>!0===e||!1===e,isObject,isPlainObject,isUndefined:m,isDate:S,isFile:E,isBlob:A,isRegExp:T,isFunction:v,isStream:e=>isObject(e)&&v(e.pipe),isURLSearchParams:j,isTypedArray:_,isFileList:w,forEach,merge:function merge(){let{caseless:e}=isContextDefined(this)&&this||{},r={},assignValue=(n,o)=>{let i=e&&findKey(r,o)||o;isPlainObject(r[i])&&isPlainObject(n)?r[i]=merge(r[i],n):isPlainObject(n)?r[i]=merge({},n):p(n)?r[i]=n.slice():r[i]=n};for(let e=0,r=arguments.length;e(forEach(r,(r,o)=>{n&&v(r)?e[o]=bind(r,n):e[o]=r},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,r,n,o)=>{e.prototype=Object.create(r.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,r,n,o)=>{let i,a,s;let u={};if(r=r||{},null==e)return r;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)s=i[a],(!o||o(s,e,r))&&!u[s]&&(r[s]=e[s],u[s]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},kindOf:f,kindOfTest,endsWith:(e,r,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=r.length;let o=e.indexOf(r,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(p(e))return e;let r=e.length;if(!O(r))return null;let n=Array(r);for(;r-- >0;)n[r]=e[r];return n},forEachEntry:(e,r)=>{let n;let o=e&&e[Symbol.iterator],i=o.call(e);for(;(n=i.next())&&!n.done;){let o=n.value;r.call(e,o[0],o[1])}},matchAll:(e,r)=>{let n;let o=[];for(;null!==(n=e.exec(r));)o.push(n);return o},isHTMLForm:R,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(r,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;let o=e[n];if(v(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,r)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(p(e)?e:String(e).split(r)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,r)=>Number.isFinite(e=+e)?e:r,findKey,global:x,isContextDefined,ALPHABET:N,generateString:(e=16,r=N.ALPHA_DIGIT)=>{let n="",{length:o}=r;for(;e--;)n+=r[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let r=Array(10),visit=(e,n)=>{if(isObject(e)){if(r.indexOf(e)>=0)return;if(!("toJSON"in e)){r[n]=e;let o=p(e)?[]:{};return forEach(e,(e,r)=>{let i=visit(e,n+1);m(i)||(o[r]=i)}),r[n]=void 0,o}}return e};return visit(e,0)},isAsyncFn:F,isThenable:e=>e&&(isObject(e)||v(e))&&v(e.then)&&v(e.catch)};function AxiosError(e,r,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i)}I.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let U=AxiosError.prototype,B={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B[e]={value:e}}),Object.defineProperties(AxiosError,B),Object.defineProperty(U,"isAxiosError",{value:!0}),AxiosError.from=(e,r,n,o,i,a)=>{let s=Object.create(U);return I.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(s,e.message,r,n,o,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};var L=n(8764).lW;function isVisitable(e){return I.isPlainObject(e)||I.isArray(e)}function removeBrackets(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,r,n){return e?e.concat(r).map(function(e,r){return e=removeBrackets(e),!n&&r?"["+e+"]":e}).join(n?".":""):r}let Z=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});var helpers_toFormData=function(e,r,n){if(!I.isObject(e))throw TypeError("target must be an object");r=r||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,r){return!I.isUndefined(r[e])});let o=n.metaTokens,i=n.visitor||defaultVisitor,a=n.dots,s=n.indexes,u=n.Blob||"undefined"!=typeof Blob&&Blob,c=u&&I.isSpecCompliantForm(r);if(!I.isFunction(i))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(I.isDate(e))return e.toISOString();if(!c&&I.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(e)||I.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):L.from(e):e}function defaultVisitor(e,n,i){let u=e;if(e&&!i&&"object"==typeof e){if(I.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else{var c;if(I.isArray(e)&&(c=e,I.isArray(c)&&!c.some(isVisitable))||(I.isFileList(e)||I.endsWith(n,"[]"))&&(u=I.toArray(e)))return n=removeBrackets(n),u.forEach(function(e,o){I.isUndefined(e)||null===e||r.append(!0===s?renderKey([n],o,a):null===s?n:n+"[]",convertValue(e))}),!1}}return!!isVisitable(e)||(r.append(renderKey(i,n,a),convertValue(e)),!1)}let f=[],p=Object.assign(Z,{defaultVisitor,convertValue,isVisitable});if(!I.isObject(e))throw TypeError("data must be an object");return!function build(e,n){if(!I.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),I.forEach(e,function(e,o){let a=!(I.isUndefined(e)||null===e)&&i.call(r,e,I.isString(o)?o.trim():o,n,p);!0===a&&build(e,n?n.concat(o):[o])}),f.pop()}}(e),r};function encode(e){let r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return r[e]})}function AxiosURLSearchParams(e,r){this._pairs=[],e&&helpers_toFormData(e,this,r)}let H=AxiosURLSearchParams.prototype;function buildURL_encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,r,n){let o;if(!r)return e;let i=n&&n.encode||buildURL_encode,a=n&&n.serialize;if(o=a?a(r,n):I.isURLSearchParams(r)?r.toString():new AxiosURLSearchParams(r,n).toString(i)){let r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}H.append=function(e,r){this._pairs.push([e,r])},H.toString=function(e){let r=e?function(r){return e.call(this,r,encode)}:encode;return this._pairs.map(function(e){return r(e[0])+"="+r(e[1])},"").join("&")};var V=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(r){null!==r&&e(r)})}},q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,z="undefined"!=typeof FormData?FormData:null,J="undefined"!=typeof Blob?Blob:null;let G="undefined"!=typeof window&&"undefined"!=typeof document,K=(a="undefined"!=typeof navigator&&navigator.product,G&&0>["ReactNative","NativeScript","NS"].indexOf(a)),X="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var Q={...s,isBrowser:!0,classes:{URLSearchParams:W,FormData:z,Blob:J},protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(e){if(I.isFormData(e)&&I.isFunction(e.entries)){let r={};return I.forEachEntry(e,(e,n)=>{!function buildPath(e,r,n,o){let i=e[o++],a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&I.isArray(n)?n.length:i,s)return I.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&I.isObject(n[i])||(n[i]=[]);let u=buildPath(e,r,n[i],o);return u&&I.isArray(n[i])&&(n[i]=function(e){let r,n;let o={},i=Object.keys(e),a=i.length;for(r=0;r"[]"===e[0]?"":e[1]||e[0]),n,r,0)}),r}return null};let Y={transitional:q,adapter:["xhr","http"],transformRequest:[function(e,r){let n;let o=r.getContentType()||"",i=o.indexOf("application/json")>-1,a=I.isObject(e);a&&I.isHTMLForm(e)&&(e=new FormData(e));let s=I.isFormData(e);if(s)return i&&i?JSON.stringify(helpers_formDataToJSON(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1){var u,c;return(u=e,c=this.formSerializer,helpers_toFormData(u,new Q.classes.URLSearchParams,Object.assign({visitor:function(e,r,n,o){return Q.isNode&&I.isBuffer(e)?(this.append(r,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},c))).toString()}if((n=I.isFileList(e))||o.indexOf("multipart/form-data")>-1){let r=this.env&&this.env.FormData;return helpers_toFormData(n?{"files[]":e}:e,r&&new r,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),function(e,r,n){if(I.isString(e))try{return(0,JSON.parse)(e),I.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let r=this.transitional||Y.transitional,n=r&&r.forcedJSONParsing,o="json"===this.responseType;if(e&&I.isString(e)&&(n&&!this.responseType||o)){let n=r&&r.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Y.headers[e]={}});let ee=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{let r,n,o;let i={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||i[r]&&ee[r]||("set-cookie"===r?i[r]?i[r].push(n):i[r]=[n]:i[r]=i[r]?i[r]+", "+n:n)}),i};let et=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:I.isArray(e)?e.map(normalizeValue):String(e)}let isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,r,n,o,i){if(I.isFunction(o))return o.call(this,r,n);if(i&&(r=n),I.isString(r)){if(I.isString(o))return -1!==r.indexOf(o);if(I.isRegExp(o))return o.test(r)}}let AxiosHeaders=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function setHeader(e,r,n){let i=normalizeHeader(r);if(!i)throw Error("header name must be a non-empty string");let a=I.findKey(o,i);a&&void 0!==o[a]&&!0!==n&&(void 0!==n||!1===o[a])||(o[a||r]=normalizeValue(e))}let setHeaders=(e,r)=>I.forEach(e,(e,n)=>setHeader(e,n,r));return I.isPlainObject(e)||e instanceof this.constructor?setHeaders(e,r):I.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?setHeaders(parseHeaders(e),r):null!=e&&setHeader(r,e,n),this}get(e,r){if(e=normalizeHeader(e)){let n=I.findKey(this,e);if(n){let e=this[n];if(!r)return e;if(!0===r)return function(e){let r;let n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;r=o.exec(e);)n[r[1]]=r[2];return n}(e);if(I.isFunction(r))return r.call(this,e,n);if(I.isRegExp(r))return r.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=normalizeHeader(e)){let n=I.findKey(this,e);return!!(n&&void 0!==this[n]&&(!r||matchHeaderValue(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function deleteHeader(e){if(e=normalizeHeader(e)){let i=I.findKey(n,e);i&&(!r||matchHeaderValue(n,n[i],i,r))&&(delete n[i],o=!0)}}return I.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||matchHeaderValue(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let r=this,n={};return I.forEach(this,(o,i)=>{let a=I.findKey(n,i);if(a){r[a]=normalizeValue(o),delete r[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n):String(i).trim();s!==i&&delete r[i],r[s]=normalizeValue(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return I.forEach(this,(n,o)=>{null!=n&&!1!==n&&(r[o]=e&&I.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(e=>n.set(e)),n}static accessor(e){let r=this[et]=this[et]={accessors:{}},n=r.accessors,o=this.prototype;function defineAccessor(e){let r=normalizeHeader(e);n[r]||(!function(e,r){let n=I.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,r,e,n,i)},configurable:!0})})}(o,e),n[r]=!0)}return I.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}};function transformData(e,r){let n=this||Y,o=r||n,i=AxiosHeaders.from(o.headers),a=o.data;return I.forEach(e,function(e){a=e.call(n,a,i.normalize(),r?r.status:void 0)}),i.normalize(),a}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,r,n){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,r,n),this.name="CanceledError"}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(AxiosHeaders.prototype,({value:e},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(e){this[n]=e}}}),I.freezeMethods(AxiosHeaders),I.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var er=Q.hasStandardBrowserEnv?{write:function(e,r,n,o,i,a){let s=[];s.push(e+"="+encodeURIComponent(r)),I.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),I.isString(o)&&s.push("path="+o),I.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){let r=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function buildFullPath(e,r){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e:r}var en=Q.hasStandardBrowserEnv?function(){let e;let r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function resolveURL(e){let o=e;return r&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=resolveURL(window.location.href),function(r){let n=I.isString(r)?resolveURL(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},helpers_speedometer=function(e,r){let n;e=e||10;let o=Array(e),i=Array(e),a=0,s=0;return r=void 0!==r?r:1e3,function(u){let c=Date.now(),f=i[s];n||(n=c),o[a]=u,i[a]=c;let p=s,m=0;for(;p!==a;)m+=o[p++],p%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),c-n{let a=i.loaded,s=i.lengthComputable?i.total:void 0,u=a-n,c=o(u),f=a<=s;n=a;let p={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&f?(s-a)/c:void 0,event:i};p[r?"download":"upload"]=!0,e(p)}}let eo="undefined"!=typeof XMLHttpRequest;var ei=eo&&function(e){return new Promise(function(r,n){let o,i,a=e.data,s=AxiosHeaders.from(e.headers).normalize(),u=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(I.isFormData(a)){if(Q.hasStandardBrowserEnv||Q.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if(!1!==(i=s.getContentType())){let[e,...r]=i?i.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...r].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let r=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(r+":"+n))}let f=buildFullPath(e.baseURL,e.url);function onloadend(){if(!c)return;let o=AxiosHeaders.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),i=u&&"text"!==u&&"json"!==u?c.response:c.responseText,a={data:i,status:c.status,statusText:c.statusText,headers:o,config:e,request:c};!function(e,r,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):r(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}(function(e){r(e),done()},function(e){n(e),done()},a),c=null}if(c.open(e.method.toUpperCase(),buildURL(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=onloadend:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(onloadend)},c.onabort=function(){c&&(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let r=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||q;e.timeoutErrorMessage&&(r=e.timeoutErrorMessage),n(new AxiosError(r,o.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,c)),c=null},Q.hasStandardBrowserEnv){let r=en(f)&&e.xsrfCookieName&&er.read(e.xsrfCookieName);r&&s.set(e.xsrfHeaderName,r)}void 0===a&&s.setContentType(null),"setRequestHeader"in c&&I.forEach(s.toJSON(),function(e,r){c.setRequestHeader(r,e)}),I.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),u&&"json"!==u&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=r=>{c&&(n(!r||r.type?new CanceledError(null,e,c):r),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));let p=function(e){let r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}(f);if(p&&-1===Q.protocols.indexOf(p)){n(new AxiosError("Unsupported protocol "+p+":",AxiosError.ERR_BAD_REQUEST,e));return}c.send(a||null)})};let ea={http:null,xhr:ei};I.forEach(ea,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch(e){}Object.defineProperty(e,"adapterName",{value:r})}});let renderReason=e=>`- ${e}`,isResolvedHandle=e=>I.isFunction(e)||null===e||!1===e;var es={getAdapter:e=>{let r,n;e=I.isArray(e)?e:[e];let{length:o}=e,i={};for(let a=0;a`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")),r=o?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:ea};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let r=es.getAdapter(e.adapter||Y.adapter);return r(e).then(function(r){return throwIfCancellationRequested(e),r.data=transformData.call(e,e.transformResponse,r),r.headers=AxiosHeaders.from(r.headers),r},function(r){return!isCancel(r)&&(throwIfCancellationRequested(e),r&&r.response&&(r.response.data=transformData.call(e,e.transformResponse,r.response),r.response.headers=AxiosHeaders.from(r.response.headers))),Promise.reject(r)})}let headersToObject=e=>e instanceof AxiosHeaders?e.toJSON():e;function mergeConfig(e,r){r=r||{};let n={};function getMergedValue(e,r,n){return I.isPlainObject(e)&&I.isPlainObject(r)?I.merge.call({caseless:n},e,r):I.isPlainObject(r)?I.merge({},r):I.isArray(r)?r.slice():r}function mergeDeepProperties(e,r,n){return I.isUndefined(r)?I.isUndefined(e)?void 0:getMergedValue(void 0,e,n):getMergedValue(e,r,n)}function valueFromConfig2(e,r){if(!I.isUndefined(r))return getMergedValue(void 0,r)}function defaultToConfig2(e,r){return I.isUndefined(r)?I.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,r)}function mergeDirectKeys(n,o,i){return i in r?getMergedValue(n,o):i in e?getMergedValue(void 0,n):void 0}let o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,r)=>mergeDeepProperties(headersToObject(e),headersToObject(r),!0)};return I.forEach(Object.keys(Object.assign({},e,r)),function(i){let a=o[i]||mergeDeepProperties,s=a(e[i],r[i],i);I.isUndefined(s)&&a!==mergeDirectKeys||(n[i]=s)}),n}let eu="1.6.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{el[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});let ec={};el.transitional=function(e,r,n){function formatMessage(e,r){return"[Axios v"+eu+"] Transitional option '"+e+"'"+r+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new AxiosError(formatMessage(o," has been removed"+(r?" in "+r:"")),AxiosError.ERR_DEPRECATED);return r&&!ec[o]&&(ec[o]=!0,console.warn(formatMessage(o," has been deprecated since v"+r+" and will be removed in the near future"))),!e||e(n,o,i)}};var ef={assertOptions:function(e,r,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),i=o.length;for(;i-- >0;){let a=o[i],s=r[a];if(s){let r=e[a],n=void 0===r||s(r,a,e);if(!0!==n)throw new AxiosError("option "+a+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}},validators:el};let ep=ef.validators;let Axios=class Axios{constructor(e){this.defaults=e,this.interceptors={request:new V,response:new V}}request(e,r){let n,o;"string"==typeof e?(r=r||{}).url=e:r=e||{},r=mergeConfig(this.defaults,r);let{transitional:i,paramsSerializer:a,headers:s}=r;void 0!==i&&ef.assertOptions(i,{silentJSONParsing:ep.transitional(ep.boolean),forcedJSONParsing:ep.transitional(ep.boolean),clarifyTimeoutError:ep.transitional(ep.boolean)},!1),null!=a&&(I.isFunction(a)?r.paramsSerializer={serialize:a}:ef.assertOptions(a,{encode:ep.function,serialize:ep.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=s&&I.merge(s.common,s[r.method]);s&&I.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),r.headers=AxiosHeaders.concat(u,s);let c=[],f=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(r))&&(f=f&&e.synchronous,c.unshift(e.fulfilled,e.rejected))});let p=[];this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});let m=0;if(!f){let e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,c),e.push.apply(e,p),o=e.length,n=Promise.resolve(r);m{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](e);n._listeners=null}),this.promise.then=e=>{let r;let o=new Promise(e=>{n.subscribe(e),r=e}).then(e);return o.cancel=function(){n.unsubscribe(r)},o},e(function(e,o,i){n.reason||(n.reason=new CanceledError(e,o,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);-1!==r&&this._listeners.splice(r,1)}static source(){let e;let r=new CancelToken(function(r){e=r});return{token:r,cancel:e}}};let ed={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ed).forEach(([e,r])=>{ed[r]=e});let ey=function createInstance(e){let r=new Axios(e),n=bind(Axios.prototype.request,r);return I.extend(n,Axios.prototype,r,{allOwnKeys:!0}),I.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return createInstance(mergeConfig(e,r))},n}(Y);ey.Axios=Axios,ey.CanceledError=CanceledError,ey.CancelToken=CancelToken,ey.isCancel=isCancel,ey.VERSION=eu,ey.toFormData=helpers_toFormData,ey.AxiosError=AxiosError,ey.Cancel=ey.CanceledError,ey.all=function(e){return Promise.all(e)},ey.spread=function(e){return function(r){return e.apply(null,r)}},ey.isAxiosError=function(e){return I.isObject(e)&&!0===e.isAxiosError},ey.mergeConfig=mergeConfig,ey.AxiosHeaders=AxiosHeaders,ey.formToJSON=e=>helpers_formDataToJSON(I.isHTMLForm(e)?new FormData(e):e),ey.getAdapter=es.getAdapter,ey.HttpStatusCode=ed,ey.default=ey;var eh=ey},3960:function(e,r,n){"use strict";n.d(r,{Z:function(){return i}});var o=n(3844),i=(0,n(4443).Z)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function _clone(e,r,n,i){var copy=function(o){for(var a=r.length,s=0;s=arguments.length)?o=r[u]:(o=arguments[a],a+=1),i[u]=o,(0,m.Z)(o)||(s-=1),u+=1;return s<=0?n.apply(this,i):(0,p.Z)(s,_curryN(e,i,n))}}(e,[],r))}),b=n(3183),v=(0,i.Z)((0,s.Z)(["fantasy-land/map","map"],f,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return g(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return(0,a.Z)(function(n,o){return n[o]=e(r[o]),n},{},(0,b.Z)(r));default:return function(e,r){for(var n=0,o=r.length,i=Array(o);n=0&&"[object Array]"===Object.prototype.toString.call(e)}},2491:function(e,r,n){"use strict";function _isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(r,{Z:function(){return _isObject}})},795:function(e,r,n){"use strict";function _isString(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(r,{Z:function(){return _isString}})},5069:function(e,r,n){"use strict";n.d(r,{Z:function(){return _reduce}});var o=n(4443),i=n(1152),a=n(795),s=(0,o.Z)(function(e){return!!(0,i.Z)(e)||!(!e||"object"!=typeof e||(0,a.Z)(e))&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),u=function(){function XWrap(e){this.f=e}return XWrap.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},XWrap.prototype["@@transducer/result"]=function(e){return e},XWrap.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},XWrap}(),c=n(6001),f=(0,n(3707).Z)(function(e,r){return(0,c.Z)(e.length,function(){return e.apply(r,arguments)})});function _iterableReduce(e,r,n){for(var o=n.next();!o.done;){if((r=e["@@transducer/step"](r,o.value))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o=n.next()}return e["@@transducer/result"](r)}function _methodReduce(e,r,n,o){return e["@@transducer/result"](n[o](f(e["@@transducer/step"],e),r))}var p="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function _reduce(e,r,n){if("function"==typeof e){var o;o=e,e=new u(o)}if(s(n))return function(e,r,n){for(var o=0,i=n.length;o=0;){if(n[s]===e)return o[s]===r;s-=1}switch(a){case"Map":if(e.size!==r.size)return!1;return _uniqContentEquals(e.entries(),r.entries(),n.concat([e]),o.concat([r]));case"Set":if(e.size!==r.size)return!1;return _uniqContentEquals(e.values(),r.values(),n.concat([e]),o.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=(0,g.Z)(e);if(u.length!==(0,g.Z)(r).length)return!1;var c=n.concat([e]),f=o.concat([r]);for(s=u.length-1;s>=0;){var v=u[s];if(!((0,p.Z)(v,r)&&_equals(r[v],e[v],c,f)))return!1;s-=1}return!0}var v=(0,f.Z)(function(e,r){return _equals(e,r,[],[])}),O=(0,o.Z)(function(e){return null!=e&&v(e,c(e))})},8658:function(e,r,n){"use strict";var o=(0,n(4443).Z)(function(e){return null==e});r.Z=o},3183:function(e,r,n){"use strict";var o=n(4443),i=n(9797),a=n(6546),s=!({toString:null}).propertyIsEnumerable("toString"),u=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(e,r){for(var n=0;n=0;)r=u[n],(0,i.Z)(r,e)&&!contains(o,r)&&(o[o.length]=r),n-=1;return o}):(0,o.Z)(function(e){return Object(e)!==e?[]:Object.keys(e)});r.Z=f},5642:function(e,r,n){"use strict";n.d(r,{Z:function(){return pipe}});var o=n(6001);function _pipe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}var i=n(4443),a=n(3707),s=n(2588);function _curry3(e){return function f3(r,n,o){switch(arguments.length){case 0:return f3;case 1:return(0,s.Z)(r)?f3:(0,a.Z)(function(n,o){return e(r,n,o)});case 2:return(0,s.Z)(r)&&(0,s.Z)(n)?f3:(0,s.Z)(r)?(0,a.Z)(function(r,o){return e(r,n,o)}):(0,s.Z)(n)?(0,a.Z)(function(n,o){return e(r,n,o)}):(0,i.Z)(function(o){return e(r,n,o)});default:return(0,s.Z)(r)&&(0,s.Z)(n)&&(0,s.Z)(o)?f3:(0,s.Z)(r)&&(0,s.Z)(n)?(0,a.Z)(function(r,n){return e(r,n,o)}):(0,s.Z)(r)&&(0,s.Z)(o)?(0,a.Z)(function(r,o){return e(r,n,o)}):(0,s.Z)(n)&&(0,s.Z)(o)?(0,a.Z)(function(n,o){return e(r,n,o)}):(0,s.Z)(r)?(0,i.Z)(function(r){return e(r,n,o)}):(0,s.Z)(n)?(0,i.Z)(function(n){return e(r,n,o)}):(0,s.Z)(o)?(0,i.Z)(function(o){return e(r,n,o)}):e(r,n,o)}}}var u=_curry3(n(5069).Z),c=n(1152);function _checkForMethod(e,r){return function(){var n=arguments.length;if(0===n)return r();var o=arguments[n-1];return(0,c.Z)(o)||"function"!=typeof o[e]?r.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var f=_curry3(_checkForMethod("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),p=(0,i.Z)(_checkForMethod("tail",f(1,1/0)));function pipe(){if(0==arguments.length)throw Error("pipe requires at least one argument");return(0,o.Z)(arguments[0].length,u(_pipe,arguments[0],p(arguments)))}},3844:function(e,r,n){"use strict";var o=(0,n(4443).Z)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});r.Z=o}}]); \ No newline at end of file +*/Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return f}});let o=n(8754),i=o._(n(7294)),a=n(43),s=[],u=[],c=!1;function load(e){let r=e(),n={loading:!0,loaded:null,error:null};return n.promise=r.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}let LoadableSubscription=class LoadableSubscription{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:r}=this;e.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},r.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,r){this._loadFn=e,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}};function Loadable(e){return function(e,r){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},r),o=null;function init(){if(!o){let r=new LoadableSubscription(e,n);o={getCurrentValue:r.getCurrentValue.bind(r),subscribe:r.subscribe.bind(r),retry:r.retry.bind(r),promise:r.promise.bind(r)}}return o.promise()}if(!c){let e=n.webpack?n.webpack():n.modules;e&&u.push(r=>{for(let n of e)if(r.includes(n))return init()})}function LoadableComponent(e,r){!function(){init();let e=i.default.useContext(a.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(r=>{e(r)})}();let s=i.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return i.default.useImperativeHandle(r,()=>({retry:o.retry}),[]),i.default.useMemo(()=>{var r;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?i.default.createElement((r=s.loaded)&&r.default?r.default:r,e):null},[e,s])}return LoadableComponent.preload=()=>init(),LoadableComponent.displayName="LoadableComponent",i.default.forwardRef(LoadableComponent)}(load,e)}function flushInitializers(e,r){let n=[];for(;e.length;){let o=e.pop();n.push(o(r))}return Promise.all(n).then(()=>{if(e.length)return flushInitializers(e,r)})}Loadable.preloadAll=()=>new Promise((e,r)=>{flushInitializers(s).then(e,r)}),Loadable.preloadReady=e=>(void 0===e&&(e=[]),new Promise(r=>{let res=()=>(c=!0,r());flushInitializers(u,e).then(res,res)})),window.__NEXT_PRELOADREADY=Loadable.preloadReady;let f=Loadable},6134:function(){},5152:function(e,r,n){e.exports=n(1342)},631:function(e,r,n){var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=u&&c&&"function"==typeof c.get?c.get:null,p=u&&Set.prototype.forEach,m="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,g="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,b="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,O=Object.prototype.toString,S=Function.prototype.toString,E=String.prototype.match,A=String.prototype.slice,w=String.prototype.replace,j=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,R=Array.prototype.concat,T=Array.prototype.join,P=Array.prototype.slice,C=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,U="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,r){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-C(-e):C(e);if(o!==e){var i=String(o),a=A.call(r,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(r,n,"$&_")}var Z=n(4654),H=Z.custom,V=isSymbol(H)?H:null;function wrapQuotes(e,r,n){var o="double"===(n.quoteStyle||r)?'"':"'";return o+e+o}function isArray(e){return"[object Array]"===toStr(e)&&(!U||!("object"==typeof e&&U in e))}function isRegExp(e){return"[object RegExp]"===toStr(e)&&(!U||!("object"==typeof e&&U in e))}function isSymbol(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!F)return!1;try{return F.call(e),!0}catch(e){}return!1}e.exports=function inspect_(e,r,o,i){var u=r||{};if(has(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(has(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!has(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(u,"indent")&&null!==u.indent&&" "!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var O=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function inspectString(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength;return inspectString(A.call(e,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}return wrapQuotes(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",r)}(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var j=String(e);return O?addNumericSeparator(e,j):j}if("bigint"==typeof e){var _=String(e)+"n";return O?addNumericSeparator(e,_):_}var C=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=C&&C>0&&"object"==typeof e)return isArray(e)?"[Array]":"[Object]";var N=function(e,r){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(r+1),n)}}(u,o);if(void 0===i)i=[];else if(indexOf(i,e)>=0)return"[Circular]";function inspect(e,r,n){if(r&&(i=P.call(i)).push(r),n){var a={depth:u.depth};return has(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),inspect_(e,a,o+1,i)}return inspect_(e,u,o+1,i)}if("function"==typeof e&&!isRegExp(e)){var H=function(e){if(e.name)return e.name;var r=E.call(S.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}(e),q=arrObjKeys(e,inspect);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(q.length>0?" { "+T.call(q,", ")+" }":"")}if(isSymbol(e)){var W=I?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):F.call(e);return"object"!=typeof e||I?W:markBoxed(W)}if(e&&"object"==typeof e&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)){for(var z,J="<"+x.call(String(e.nodeName)),G=e.attributes||[],K=0;K"}if(isArray(e)){if(0===e.length)return"[]";var X=arrObjKeys(e,inspect);return N&&!function(e){for(var r=0;r=0)return!1;return!0}(X)?"["+indentedJoin(X,N)+"]":"[ "+T.call(X,", ")+" ]"}if("[object Error]"===toStr(e)&&(!U||!("object"==typeof e&&U in e))){var Q=arrObjKeys(e,inspect);return"cause"in Error.prototype||!("cause"in e)||L.call(e,"cause")?0===Q.length?"["+String(e)+"]":"{ ["+String(e)+"] "+T.call(Q,", ")+" }":"{ ["+String(e)+"] "+T.call(R.call("[cause]: "+inspect(e.cause),Q),", ")+" }"}if("object"==typeof e&&c){if(V&&"function"==typeof e[V]&&Z)return Z(e,{depth:C-o});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{f.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(e)){var Y=[];return s&&s.call(e,function(r,n){Y.push(inspect(n,e,!0)+" => "+inspect(r,e))}),collectionOf("Map",a.call(e),Y,N)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(e)){var ee=[];return p&&p.call(e,function(r){ee.push(inspect(r,e))}),collectionOf("Set",f.call(e),ee,N)}if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{m.call(e,m);try{g.call(e,g)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(e))return weakCollectionOf("WeakMap");if(function(e){if(!g||!e||"object"!=typeof e)return!1;try{g.call(e,g);try{m.call(e,m)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(e))return weakCollectionOf("WeakSet");if(function(e){if(!b||!e||"object"!=typeof e)return!1;try{return b.call(e),!0}catch(e){}return!1}(e))return weakCollectionOf("WeakRef");if("[object Number]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))return markBoxed(inspect(Number(e)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(e))return markBoxed(inspect(k.call(e)));if("[object Boolean]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))return markBoxed(v.call(e));if("[object String]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))return markBoxed(inspect(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===n.g)return"{ [object globalThis] }";if(!("[object Date]"===toStr(e)&&(!U||!("object"==typeof e&&U in e)))&&!isRegExp(e)){var et=arrObjKeys(e,inspect),er=B?B(e)===Object.prototype:e instanceof Object||e.constructor===Object,en=e instanceof Object?"":"null prototype",eo=!er&&U&&Object(e)===e&&U in e?A.call(toStr(e),8,-1):en?"Object":"",ei=(er||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(eo||en?"["+T.call(R.call([],eo||[],en||[]),": ")+"] ":"");return 0===et.length?ei+"{}":N?ei+"{"+indentedJoin(et,N)+"}":ei+"{ "+T.call(et,", ")+" }"}return String(e)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,r){return q.call(e,r)}function toStr(e){return O.call(e)}function indexOf(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,o=e.length;n-1?e.split(","):e},parseValues=function(e,r){var n={__proto__:null},u=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=r.parameterLimit===1/0?void 0:r.parameterLimit,f=u.split(r.delimiter,c),p=-1,m=r.charset;if(r.charsetSentinel)for(g=0;g=0&&n.parseArrays&&f<=n.arrayLimit?(s=[])[f]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i},parseKeys=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=u?a.slice(0,u.index):a,f=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;f.push(c)}for(var p=0;n.depth>0&&null!==(u=s.exec(a))&&p0?R.join(",")||null:void 0}];else if(c(p))_=p;else{var F=Object.keys(R);_=m?F.sort(m):F}for(var I=a&&c(R)&&1===R.length?r+"[]":r,U=0;U<_.length;++U){var L=_[U],B="object"==typeof L&&void 0!==L.value?L.value:R[L];if(!u||null!==B){var Z=c(R)?"function"==typeof n?n(I,L):I:I+(v?"."+L:"["+L+"]");j.set(e,P);var H=o();H.set(b,j),pushToArray(N,stringify(B,Z,n,a,s,u,"comma"===n&&A&&c(R)?null:f,p,m,v,O,S,E,A,w,H))}}return N},normalizeStringifyOptions=function(e){if(!e)return g;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var r=e.charset||g.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var o=a.formatters[n],i=g.filter;return("function"==typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===e.allowDots?g.allowDots:!!e.allowDots,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:g.charsetSentinel,delimiter:void 0===e.delimiter?g.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:g.encode,encoder:"function"==typeof e.encoder?e.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:g.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:g.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:g.strictNullHandling}};e.exports=function(e,r){var n,i,a=e,s=normalizeStringifyOptions(r);"function"==typeof s.filter?a=(0,s.filter)("",a):c(s.filter)&&(n=s.filter);var f=[];if("object"!=typeof a||null===a)return"";i=r&&r.arrayFormat in u?r.arrayFormat:r&&"indices"in r?r.indices?"indices":"repeat":"indices";var p=u[i];if(r&&"commaRoundTrip"in r&&"boolean"!=typeof r.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&r&&r.commaRoundTrip;n||(n=Object.keys(a)),s.sort&&n.sort(s.sort);for(var g=o(),b=0;b0?S+O:""}},2769:function(e,r,n){"use strict";var o=n(5798),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),compactQueue=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(a(n)){for(var o=[],i=0;i=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===o.RFC1738&&(40===p||41===p)){c+=u.charAt(f);continue}if(p<128){c+=s[p];continue}if(p<2048){c+=s[192|p>>6]+s[128|63&p];continue}if(p<55296||p>=57344){c+=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p];continue}f+=1,c+=s[240|(p=65536+((1023&p)<<10|1023&u.charCodeAt(f)))>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,r){if(a(e)){for(var n=[],o=0;o4294967295||c(r)!==r)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,f=!0;if("length"in e&&s){var p=s(e,"length");p&&!p.configurable&&(o=!1),p&&!p.writable&&(f=!1)}return(o||f||!n)&&(a?i(e,"length",r,!0,!0):i(e,"length",r)),e}},7478:function(e,r,n){"use strict";var o=n(210),i=n(1924),a=n(631),s=o("%TypeError%"),u=o("%WeakMap%",!0),c=o("%Map%",!0),f=i("WeakMap.prototype.get",!0),p=i("WeakMap.prototype.set",!0),m=i("WeakMap.prototype.has",!0),g=i("Map.prototype.get",!0),b=i("Map.prototype.set",!0),v=i("Map.prototype.has",!0),listGetNode=function(e,r){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===r)return o.next=n.next,n.next=e.next,e.next=n,n},listGet=function(e,r){var n=listGetNode(e,r);return n&&n.value},listSet=function(e,r,n){var o=listGetNode(e,r);o?o.value=n:e.next={key:r,next:e.next,value:n}};e.exports=function(){var e,r,n,o={assert:function(e){if(!o.has(e))throw new s("Side channel does not contain "+a(e))},get:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(e)return f(e,o)}else if(c){if(r)return g(r,o)}else if(n)return listGet(n,o)},has:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(e)return m(e,o)}else if(c){if(r)return v(r,o)}else if(n)return!!listGetNode(n,o);return!1},set:function(o,i){u&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new u),p(e,o,i)):c?(r||(r=new c),b(r,o,i)):(n||(n={key:{},next:null}),listSet(n,o,i))}};return o}},6154:function(e,r,n){"use strict";let o;function bind(e,r){return function(){return e.apply(r,arguments)}}n.d(r,{Z:function(){return ed}});let{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,s=(k=Object.create(null),e=>{let r=i.call(e);return k[r]||(k[r]=r.slice(8,-1).toLowerCase())}),kindOfTest=e=>(e=e.toLowerCase(),r=>s(r)===e),typeOfTest=e=>r=>typeof r===e,{isArray:u}=Array,c=typeOfTest("undefined"),f=kindOfTest("ArrayBuffer"),p=typeOfTest("string"),m=typeOfTest("function"),g=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==s(e))return!1;let r=a(e);return(null===r||r===Object.prototype||null===Object.getPrototypeOf(r))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},b=kindOfTest("Date"),v=kindOfTest("File"),O=kindOfTest("Blob"),S=kindOfTest("FileList"),E=kindOfTest("URLSearchParams");function forEach(e,r,{allOwnKeys:n=!1}={}){let o,i;if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(o=0,i=e.length;o0;)if(r===(n=o[i]).toLowerCase())return n;return null}let A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!c(e)&&e!==A,w=(N="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>N&&e instanceof N),j=kindOfTest("HTMLFormElement"),x=(({hasOwnProperty:e})=>(r,n)=>e.call(r,n))(Object.prototype),_=kindOfTest("RegExp"),reduceDescriptors=(e,r)=>{let n=Object.getOwnPropertyDescriptors(e),o={};forEach(n,(n,i)=>{let a;!1!==(a=r(n,i,e))&&(o[i]=a||n)}),Object.defineProperties(e,o)},R="abcdefghijklmnopqrstuvwxyz",T="0123456789",P={DIGIT:T,ALPHA:R,ALPHA_DIGIT:R+R.toUpperCase()+T},C=kindOfTest("AsyncFunction");var k,N,F={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let r;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(r=s(e))||"object"===r&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:p,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject,isPlainObject,isUndefined:c,isDate:b,isFile:v,isBlob:O,isRegExp:_,isFunction:m,isStream:e=>isObject(e)&&m(e.pipe),isURLSearchParams:E,isTypedArray:w,isFileList:S,forEach,merge:function merge(){let{caseless:e}=isContextDefined(this)&&this||{},r={},assignValue=(n,o)=>{let i=e&&findKey(r,o)||o;isPlainObject(r[i])&&isPlainObject(n)?r[i]=merge(r[i],n):isPlainObject(n)?r[i]=merge({},n):u(n)?r[i]=n.slice():r[i]=n};for(let e=0,r=arguments.length;e(forEach(r,(r,o)=>{n&&m(r)?e[o]=bind(r,n):e[o]=r},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,r,n,o)=>{e.prototype=Object.create(r.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,r,n,o)=>{let i,s,u;let c={};if(r=r||{},null==e)return r;do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)u=i[s],(!o||o(u,e,r))&&!c[u]&&(r[u]=e[u],c[u]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},kindOf:s,kindOfTest,endsWith:(e,r,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=r.length;let o=e.indexOf(r,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(u(e))return e;let r=e.length;if(!g(r))return null;let n=Array(r);for(;r-- >0;)n[r]=e[r];return n},forEachEntry:(e,r)=>{let n;let o=e&&e[Symbol.iterator],i=o.call(e);for(;(n=i.next())&&!n.done;){let o=n.value;r.call(e,o[0],o[1])}},matchAll:(e,r)=>{let n;let o=[];for(;null!==(n=e.exec(r));)o.push(n);return o},isHTMLForm:j,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(r,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;let o=e[n];if(m(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,r)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(u(e)?e:String(e).split(r)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,r)=>Number.isFinite(e=+e)?e:r,findKey,global:A,isContextDefined,ALPHABET:P,generateString:(e=16,r=P.ALPHA_DIGIT)=>{let n="",{length:o}=r;for(;e--;)n+=r[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let r=Array(10),visit=(e,n)=>{if(isObject(e)){if(r.indexOf(e)>=0)return;if(!("toJSON"in e)){r[n]=e;let o=u(e)?[]:{};return forEach(e,(e,r)=>{let i=visit(e,n+1);c(i)||(o[r]=i)}),r[n]=void 0,o}}return e};return visit(e,0)},isAsyncFn:C,isThenable:e=>e&&(isObject(e)||m(e))&&m(e.then)&&m(e.catch)};function AxiosError(e,r,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i)}F.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let I=AxiosError.prototype,U={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{U[e]={value:e}}),Object.defineProperties(AxiosError,U),Object.defineProperty(I,"isAxiosError",{value:!0}),AxiosError.from=(e,r,n,o,i,a)=>{let s=Object.create(I);return F.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(s,e.message,r,n,o,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};var L=n(8764).lW;function isVisitable(e){return F.isPlainObject(e)||F.isArray(e)}function removeBrackets(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,r,n){return e?e.concat(r).map(function(e,r){return e=removeBrackets(e),!n&&r?"["+e+"]":e}).join(n?".":""):r}let B=F.toFlatObject(F,{},null,function(e){return/^is[A-Z]/.test(e)});var helpers_toFormData=function(e,r,n){if(!F.isObject(e))throw TypeError("target must be an object");r=r||new FormData,n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,r){return!F.isUndefined(r[e])});let o=n.metaTokens,i=n.visitor||defaultVisitor,a=n.dots,s=n.indexes,u=n.Blob||"undefined"!=typeof Blob&&Blob,c=u&&F.isSpecCompliantForm(r);if(!F.isFunction(i))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(F.isDate(e))return e.toISOString();if(!c&&F.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(e)||F.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):L.from(e):e}function defaultVisitor(e,n,i){let u=e;if(e&&!i&&"object"==typeof e){if(F.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else{var c;if(F.isArray(e)&&(c=e,F.isArray(c)&&!c.some(isVisitable))||(F.isFileList(e)||F.endsWith(n,"[]"))&&(u=F.toArray(e)))return n=removeBrackets(n),u.forEach(function(e,o){F.isUndefined(e)||null===e||r.append(!0===s?renderKey([n],o,a):null===s?n:n+"[]",convertValue(e))}),!1}}return!!isVisitable(e)||(r.append(renderKey(i,n,a),convertValue(e)),!1)}let f=[],p=Object.assign(B,{defaultVisitor,convertValue,isVisitable});if(!F.isObject(e))throw TypeError("data must be an object");return!function build(e,n){if(!F.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),F.forEach(e,function(e,o){let a=!(F.isUndefined(e)||null===e)&&i.call(r,e,F.isString(o)?o.trim():o,n,p);!0===a&&build(e,n?n.concat(o):[o])}),f.pop()}}(e),r};function encode(e){let r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return r[e]})}function AxiosURLSearchParams(e,r){this._pairs=[],e&&helpers_toFormData(e,this,r)}let Z=AxiosURLSearchParams.prototype;function buildURL_encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,r,n){let o;if(!r)return e;let i=n&&n.encode||buildURL_encode,a=n&&n.serialize;if(o=a?a(r,n):F.isURLSearchParams(r)?r.toString():new AxiosURLSearchParams(r,n).toString(i)){let r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Z.append=function(e,r){this._pairs.push([e,r])},Z.toString=function(e){let r=e?function(r){return e.call(this,r,encode)}:encode;return this._pairs.map(function(e){return r(e[0])+"="+r(e[1])},"").join("&")};var H=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,function(r){null!==r&&e(r)})}},V={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},q="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,W="undefined"!=typeof FormData?FormData:null,z="undefined"!=typeof Blob?Blob:null;let J=("undefined"==typeof navigator||"ReactNative"!==(o=navigator.product)&&"NativeScript"!==o&&"NS"!==o)&&"undefined"!=typeof window&&"undefined"!=typeof document,G="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var K={classes:{URLSearchParams:q,FormData:W,Blob:z},isStandardBrowserEnv:J,isStandardBrowserWebWorkerEnv:G,protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(e){if(F.isFormData(e)&&F.isFunction(e.entries)){let r={};return F.forEachEntry(e,(e,n)=>{!function buildPath(e,r,n,o){let i=e[o++],a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&F.isArray(n)?n.length:i,s)return F.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&F.isObject(n[i])||(n[i]=[]);let u=buildPath(e,r,n[i],o);return u&&F.isArray(n[i])&&(n[i]=function(e){let r,n;let o={},i=Object.keys(e),a=i.length;for(r=0;r"[]"===e[0]?"":e[1]||e[0]),n,r,0)}),r}return null};let X={transitional:V,adapter:["xhr","http"],transformRequest:[function(e,r){let n;let o=r.getContentType()||"",i=o.indexOf("application/json")>-1,a=F.isObject(e);a&&F.isHTMLForm(e)&&(e=new FormData(e));let s=F.isFormData(e);if(s)return i&&i?JSON.stringify(helpers_formDataToJSON(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1){var u,c;return(u=e,c=this.formSerializer,helpers_toFormData(u,new K.classes.URLSearchParams,Object.assign({visitor:function(e,r,n,o){return K.isNode&&F.isBuffer(e)?(this.append(r,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},c))).toString()}if((n=F.isFileList(e))||o.indexOf("multipart/form-data")>-1){let r=this.env&&this.env.FormData;return helpers_toFormData(n?{"files[]":e}:e,r&&new r,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),function(e,r,n){if(F.isString(e))try{return(0,JSON.parse)(e),F.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let r=this.transitional||X.transitional,n=r&&r.forcedJSONParsing,o="json"===this.responseType;if(e&&F.isString(e)&&(n&&!this.responseType||o)){let n=r&&r.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:K.classes.FormData,Blob:K.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],e=>{X.headers[e]={}});let Q=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{let r,n,o;let i={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||i[r]&&Q[r]||("set-cookie"===r?i[r]?i[r].push(n):i[r]=[n]:i[r]=i[r]?i[r]+", "+n:n)}),i};let Y=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:F.isArray(e)?e.map(normalizeValue):String(e)}let isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,r,n,o,i){if(F.isFunction(o))return o.call(this,r,n);if(i&&(r=n),F.isString(r)){if(F.isString(o))return -1!==r.indexOf(o);if(F.isRegExp(o))return o.test(r)}}let AxiosHeaders=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function setHeader(e,r,n){let i=normalizeHeader(r);if(!i)throw Error("header name must be a non-empty string");let a=F.findKey(o,i);a&&void 0!==o[a]&&!0!==n&&(void 0!==n||!1===o[a])||(o[a||r]=normalizeValue(e))}let setHeaders=(e,r)=>F.forEach(e,(e,n)=>setHeader(e,n,r));return F.isPlainObject(e)||e instanceof this.constructor?setHeaders(e,r):F.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?setHeaders(parseHeaders(e),r):null!=e&&setHeader(r,e,n),this}get(e,r){if(e=normalizeHeader(e)){let n=F.findKey(this,e);if(n){let e=this[n];if(!r)return e;if(!0===r)return function(e){let r;let n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;r=o.exec(e);)n[r[1]]=r[2];return n}(e);if(F.isFunction(r))return r.call(this,e,n);if(F.isRegExp(r))return r.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=normalizeHeader(e)){let n=F.findKey(this,e);return!!(n&&void 0!==this[n]&&(!r||matchHeaderValue(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function deleteHeader(e){if(e=normalizeHeader(e)){let i=F.findKey(n,e);i&&(!r||matchHeaderValue(n,n[i],i,r))&&(delete n[i],o=!0)}}return F.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||matchHeaderValue(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let r=this,n={};return F.forEach(this,(o,i)=>{let a=F.findKey(n,i);if(a){r[a]=normalizeValue(o),delete r[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n):String(i).trim();s!==i&&delete r[i],r[s]=normalizeValue(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return F.forEach(this,(n,o)=>{null!=n&&!1!==n&&(r[o]=e&&F.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(e=>n.set(e)),n}static accessor(e){let r=this[Y]=this[Y]={accessors:{}},n=r.accessors,o=this.prototype;function defineAccessor(e){let r=normalizeHeader(e);n[r]||(!function(e,r){let n=F.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,r,e,n,i)},configurable:!0})})}(o,e),n[r]=!0)}return F.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}};function transformData(e,r){let n=this||X,o=r||n,i=AxiosHeaders.from(o.headers),a=o.data;return F.forEach(e,function(e){a=e.call(n,a,i.normalize(),r?r.status:void 0)}),i.normalize(),a}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,r,n){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,r,n),this.name="CanceledError"}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(AxiosHeaders.prototype,({value:e},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(e){this[n]=e}}}),F.freezeMethods(AxiosHeaders),F.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var ee=K.isStandardBrowserEnv?{write:function(e,r,n,o,i,a){let s=[];s.push(e+"="+encodeURIComponent(r)),F.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),F.isString(o)&&s.push("path="+o),F.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){let r=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function buildFullPath(e,r){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e:r}var et=K.isStandardBrowserEnv?function(){let e;let r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function resolveURL(e){let o=e;return r&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=resolveURL(window.location.href),function(r){let n=F.isString(r)?resolveURL(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},helpers_speedometer=function(e,r){let n;e=e||10;let o=Array(e),i=Array(e),a=0,s=0;return r=void 0!==r?r:1e3,function(u){let c=Date.now(),f=i[s];n||(n=c),o[a]=u,i[a]=c;let p=s,m=0;for(;p!==a;)m+=o[p++],p%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),c-n{let a=i.loaded,s=i.lengthComputable?i.total:void 0,u=a-n,c=o(u),f=a<=s;n=a;let p={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&f?(s-a)/c:void 0,event:i};p[r?"download":"upload"]=!0,e(p)}}let er="undefined"!=typeof XMLHttpRequest;var en=er&&function(e){return new Promise(function(r,n){let o,i,a=e.data,s=AxiosHeaders.from(e.headers).normalize(),u=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}F.isFormData(a)&&(K.isStandardBrowserEnv||K.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?F.isString(i=s.getContentType())&&s.setContentType(i.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){let r=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(r+":"+n))}let f=buildFullPath(e.baseURL,e.url);function onloadend(){if(!c)return;let o=AxiosHeaders.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),i=u&&"text"!==u&&"json"!==u?c.response:c.responseText,a={data:i,status:c.status,statusText:c.statusText,headers:o,config:e,request:c};!function(e,r,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):r(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}(function(e){r(e),done()},function(e){n(e),done()},a),c=null}if(c.open(e.method.toUpperCase(),buildURL(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=onloadend:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(onloadend)},c.onabort=function(){c&&(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let r=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||V;e.timeoutErrorMessage&&(r=e.timeoutErrorMessage),n(new AxiosError(r,o.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,c)),c=null},K.isStandardBrowserEnv){let r=(e.withCredentials||et(f))&&e.xsrfCookieName&&ee.read(e.xsrfCookieName);r&&s.set(e.xsrfHeaderName,r)}void 0===a&&s.setContentType(null),"setRequestHeader"in c&&F.forEach(s.toJSON(),function(e,r){c.setRequestHeader(r,e)}),F.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),u&&"json"!==u&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=r=>{c&&(n(!r||r.type?new CanceledError(null,e,c):r),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));let p=function(e){let r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}(f);if(p&&-1===K.protocols.indexOf(p)){n(new AxiosError("Unsupported protocol "+p+":",AxiosError.ERR_BAD_REQUEST,e));return}c.send(a||null)})};let eo={http:null,xhr:en};F.forEach(eo,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch(e){}Object.defineProperty(e,"adapterName",{value:r})}});let renderReason=e=>`- ${e}`,isResolvedHandle=e=>F.isFunction(e)||null===e||!1===e;var ei={getAdapter:e=>{let r,n;e=F.isArray(e)?e:[e];let{length:o}=e,i={};for(let a=0;a`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")),r=o?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:eo};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let r=ei.getAdapter(e.adapter||X.adapter);return r(e).then(function(r){return throwIfCancellationRequested(e),r.data=transformData.call(e,e.transformResponse,r),r.headers=AxiosHeaders.from(r.headers),r},function(r){return!isCancel(r)&&(throwIfCancellationRequested(e),r&&r.response&&(r.response.data=transformData.call(e,e.transformResponse,r.response),r.response.headers=AxiosHeaders.from(r.response.headers))),Promise.reject(r)})}let headersToObject=e=>e instanceof AxiosHeaders?e.toJSON():e;function mergeConfig(e,r){r=r||{};let n={};function getMergedValue(e,r,n){return F.isPlainObject(e)&&F.isPlainObject(r)?F.merge.call({caseless:n},e,r):F.isPlainObject(r)?F.merge({},r):F.isArray(r)?r.slice():r}function mergeDeepProperties(e,r,n){return F.isUndefined(r)?F.isUndefined(e)?void 0:getMergedValue(void 0,e,n):getMergedValue(e,r,n)}function valueFromConfig2(e,r){if(!F.isUndefined(r))return getMergedValue(void 0,r)}function defaultToConfig2(e,r){return F.isUndefined(r)?F.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,r)}function mergeDirectKeys(n,o,i){return i in r?getMergedValue(n,o):i in e?getMergedValue(void 0,n):void 0}let o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,r)=>mergeDeepProperties(headersToObject(e),headersToObject(r),!0)};return F.forEach(Object.keys(Object.assign({},e,r)),function(i){let a=o[i]||mergeDeepProperties,s=a(e[i],r[i],i);F.isUndefined(s)&&a!==mergeDirectKeys||(n[i]=s)}),n}let ea="1.5.1",es={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{es[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});let eu={};es.transitional=function(e,r,n){function formatMessage(e,r){return"[Axios v"+ea+"] Transitional option '"+e+"'"+r+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new AxiosError(formatMessage(o," has been removed"+(r?" in "+r:"")),AxiosError.ERR_DEPRECATED);return r&&!eu[o]&&(eu[o]=!0,console.warn(formatMessage(o," has been deprecated since v"+r+" and will be removed in the near future"))),!e||e(n,o,i)}};var el={assertOptions:function(e,r,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),i=o.length;for(;i-- >0;){let a=o[i],s=r[a];if(s){let r=e[a],n=void 0===r||s(r,a,e);if(!0!==n)throw new AxiosError("option "+a+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}},validators:es};let ec=el.validators;let Axios=class Axios{constructor(e){this.defaults=e,this.interceptors={request:new H,response:new H}}request(e,r){let n,o;"string"==typeof e?(r=r||{}).url=e:r=e||{},r=mergeConfig(this.defaults,r);let{transitional:i,paramsSerializer:a,headers:s}=r;void 0!==i&&el.assertOptions(i,{silentJSONParsing:ec.transitional(ec.boolean),forcedJSONParsing:ec.transitional(ec.boolean),clarifyTimeoutError:ec.transitional(ec.boolean)},!1),null!=a&&(F.isFunction(a)?r.paramsSerializer={serialize:a}:el.assertOptions(a,{encode:ec.function,serialize:ec.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=s&&F.merge(s.common,s[r.method]);s&&F.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),r.headers=AxiosHeaders.concat(u,s);let c=[],f=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(r))&&(f=f&&e.synchronous,c.unshift(e.fulfilled,e.rejected))});let p=[];this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});let m=0;if(!f){let e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,c),e.push.apply(e,p),o=e.length,n=Promise.resolve(r);m{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](e);n._listeners=null}),this.promise.then=e=>{let r;let o=new Promise(e=>{n.subscribe(e),r=e}).then(e);return o.cancel=function(){n.unsubscribe(r)},o},e(function(e,o,i){n.reason||(n.reason=new CanceledError(e,o,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);-1!==r&&this._listeners.splice(r,1)}static source(){let e;let r=new CancelToken(function(r){e=r});return{token:r,cancel:e}}};let ef={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ef).forEach(([e,r])=>{ef[r]=e});let ep=function createInstance(e){let r=new Axios(e),n=bind(Axios.prototype.request,r);return F.extend(n,Axios.prototype,r,{allOwnKeys:!0}),F.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return createInstance(mergeConfig(e,r))},n}(X);ep.Axios=Axios,ep.CanceledError=CanceledError,ep.CancelToken=CancelToken,ep.isCancel=isCancel,ep.VERSION=ea,ep.toFormData=helpers_toFormData,ep.AxiosError=AxiosError,ep.Cancel=ep.CanceledError,ep.all=function(e){return Promise.all(e)},ep.spread=function(e){return function(r){return e.apply(null,r)}},ep.isAxiosError=function(e){return F.isObject(e)&&!0===e.isAxiosError},ep.mergeConfig=mergeConfig,ep.AxiosHeaders=AxiosHeaders,ep.formToJSON=e=>helpers_formDataToJSON(F.isHTMLForm(e)?new FormData(e):e),ep.getAdapter=ei.getAdapter,ep.HttpStatusCode=ef,ep.default=ep;var ed=ep},3960:function(e,r,n){"use strict";n.d(r,{Z:function(){return i}});var o=n(3844),i=(0,n(4443).Z)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function _clone(e,r,n,i){var copy=function(o){for(var a=r.length,s=0;s=arguments.length)?o=r[u]:(o=arguments[a],a+=1),i[u]=o,(0,m.Z)(o)||(s-=1),u+=1;return s<=0?n.apply(this,i):(0,p.Z)(s,_curryN(e,i,n))}}(e,[],r))}),b=n(3183),v=(0,i.Z)((0,s.Z)(["fantasy-land/map","map"],f,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return g(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return(0,a.Z)(function(n,o){return n[o]=e(r[o]),n},{},(0,b.Z)(r));default:return function(e,r){for(var n=0,o=r.length,i=Array(o);n=0&&"[object Array]"===Object.prototype.toString.call(e)}},2491:function(e,r,n){"use strict";function _isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(r,{Z:function(){return _isObject}})},795:function(e,r,n){"use strict";function _isString(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(r,{Z:function(){return _isString}})},5069:function(e,r,n){"use strict";n.d(r,{Z:function(){return _reduce}});var o=n(4443),i=n(1152),a=n(795),s=(0,o.Z)(function(e){return!!(0,i.Z)(e)||!(!e||"object"!=typeof e||(0,a.Z)(e))&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),u=function(){function XWrap(e){this.f=e}return XWrap.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},XWrap.prototype["@@transducer/result"]=function(e){return e},XWrap.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},XWrap}(),c=n(6001),f=(0,n(3707).Z)(function(e,r){return(0,c.Z)(e.length,function(){return e.apply(r,arguments)})});function _iterableReduce(e,r,n){for(var o=n.next();!o.done;){if((r=e["@@transducer/step"](r,o.value))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o=n.next()}return e["@@transducer/result"](r)}function _methodReduce(e,r,n,o){return e["@@transducer/result"](n[o](f(e["@@transducer/step"],e),r))}var p="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function _reduce(e,r,n){if("function"==typeof e){var o;o=e,e=new u(o)}if(s(n))return function(e,r,n){for(var o=0,i=n.length;o=0;){if(n[s]===e)return o[s]===r;s-=1}switch(a){case"Map":if(e.size!==r.size)return!1;return _uniqContentEquals(e.entries(),r.entries(),n.concat([e]),o.concat([r]));case"Set":if(e.size!==r.size)return!1;return _uniqContentEquals(e.values(),r.values(),n.concat([e]),o.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=(0,g.Z)(e);if(u.length!==(0,g.Z)(r).length)return!1;var c=n.concat([e]),f=o.concat([r]);for(s=u.length-1;s>=0;){var v=u[s];if(!((0,p.Z)(v,r)&&_equals(r[v],e[v],c,f)))return!1;s-=1}return!0}var v=(0,f.Z)(function(e,r){return _equals(e,r,[],[])}),O=(0,o.Z)(function(e){return null!=e&&v(e,c(e))})},8658:function(e,r,n){"use strict";var o=(0,n(4443).Z)(function(e){return null==e});r.Z=o},3183:function(e,r,n){"use strict";var o=n(4443),i=n(9797),a=n(6546),s=!({toString:null}).propertyIsEnumerable("toString"),u=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(e,r){for(var n=0;n=0;)r=u[n],(0,i.Z)(r,e)&&!contains(o,r)&&(o[o.length]=r),n-=1;return o}):(0,o.Z)(function(e){return Object(e)!==e?[]:Object.keys(e)});r.Z=f},5642:function(e,r,n){"use strict";n.d(r,{Z:function(){return pipe}});var o=n(6001);function _pipe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}var i=n(4443),a=n(3707),s=n(2588);function _curry3(e){return function f3(r,n,o){switch(arguments.length){case 0:return f3;case 1:return(0,s.Z)(r)?f3:(0,a.Z)(function(n,o){return e(r,n,o)});case 2:return(0,s.Z)(r)&&(0,s.Z)(n)?f3:(0,s.Z)(r)?(0,a.Z)(function(r,o){return e(r,n,o)}):(0,s.Z)(n)?(0,a.Z)(function(n,o){return e(r,n,o)}):(0,i.Z)(function(o){return e(r,n,o)});default:return(0,s.Z)(r)&&(0,s.Z)(n)&&(0,s.Z)(o)?f3:(0,s.Z)(r)&&(0,s.Z)(n)?(0,a.Z)(function(r,n){return e(r,n,o)}):(0,s.Z)(r)&&(0,s.Z)(o)?(0,a.Z)(function(r,o){return e(r,n,o)}):(0,s.Z)(n)&&(0,s.Z)(o)?(0,a.Z)(function(n,o){return e(r,n,o)}):(0,s.Z)(r)?(0,i.Z)(function(r){return e(r,n,o)}):(0,s.Z)(n)?(0,i.Z)(function(n){return e(r,n,o)}):(0,s.Z)(o)?(0,i.Z)(function(o){return e(r,n,o)}):e(r,n,o)}}}var u=_curry3(n(5069).Z),c=n(1152);function _checkForMethod(e,r){return function(){var n=arguments.length;if(0===n)return r();var o=arguments[n-1];return(0,c.Z)(o)||"function"!=typeof o[e]?r.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var f=_curry3(_checkForMethod("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),p=(0,i.Z)(_checkForMethod("tail",f(1,1/0)));function pipe(){if(0==arguments.length)throw Error("pipe requires at least one argument");return(0,o.Z)(arguments[0].length,u(_pipe,arguments[0],p(arguments)))}},3844:function(e,r,n){"use strict";var o=(0,n(4443).Z)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});r.Z=o}}]); \ No newline at end of file diff --git a/_next/static/chunks/834-db3d8814d266a32e.js b/_next/static/chunks/834-cb5fbe4e5053a4fc.js similarity index 99% rename from _next/static/chunks/834-db3d8814d266a32e.js rename to _next/static/chunks/834-cb5fbe4e5053a4fc.js index 39f8dc1b..7f4724ee 100644 --- a/_next/static/chunks/834-db3d8814d266a32e.js +++ b/_next/static/chunks/834-cb5fbe4e5053a4fc.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{560:function(e,t,n){"use strict";var a=n(5893);n(7294);var l=n(6010),i=n(4021),r=n(6184),s=n.n(r);t.Z=e=>{let t=(0,i.Z)(["emptyColor"],e);return(0,a.jsx)("div",{children:(0,a.jsx)("button",{...t,className:(0,l.Z)(s().button,e.emptyColor&&s().emptyColor),children:e.children})})}},4482:function(e,t,n){"use strict";n.d(t,{j:function(){return TryAPI}});var a=n(5893),l=n(7294),i=n(5121),r=n(2894),s=n(9715),o=n(9532),c=n(8658),u=n(5642),d=n(3493),_=n.n(d),p=n(5152),h=n.n(p),j=n(7232),x=n.n(j);let v=h()(()=>n.e(5171).then(n.t.bind(n,5171,23)),{loadableGenerated:{webpack:()=>[5171]},ssr:!1});var json_editor=e=>{let{value:t,onChange:n}=e,i=(0,l.useCallback)(e=>{n(e.updated_src)},[]),r=(0,l.useMemo)(()=>(0,a.jsx)(v,{src:t,name:!1,indentWidth:2,displayObjectSize:!1,style:{backgroundColor:"transparent"},onEdit:i}),[t]);return(0,a.jsx)("div",{className:x().container,children:r})},body_section=e=>{let{payload:t,onChangePayload:n}=e;return(0,a.jsx)(json_editor,{value:t,onChange:n})},m=n(560),b=n(6010),y=n(6803),C=n.n(y),cardListTitle=e=>{let{children:t,border:n}=e;return(0,a.jsx)("div",{className:(0,b.Z)(C().title,n&&C().border),children:t})},f=n(2275),V=n.n(f),cardListValue=e=>{let{title:t,children:n,optional:l}=e;return(0,a.jsxs)("div",{className:V().contentValue,children:[(0,a.jsxs)("div",{className:V().title,children:[t,l&&(0,a.jsx)("span",{className:V().essential,children:"*"})]}),(0,a.jsx)("div",{className:V().value,children:n})]})},k={src:"/_next/static/media/CautionInfoIcon.df7841bf.svg"},L=n(4021),g=n(8351),N=n.n(g),input=e=>{let t=(0,L.Z)(["label","optional","type"],e);return(0,a.jsx)("input",{...t,className:N().input})},T=n(8483),Z=n.n(T),header_section=e=>{let{bearerToken:t,useBearerAuthorization:n,bearerTokenInputChangeHandler:l}=e;return(0,a.jsx)("section",{className:Z().container,children:n&&(0,a.jsx)(input,{placeholder:"Bear Token",onChange:l,value:t})})},w=n(3960),S=n(3665),I=n.n(S),parameter_section=e=>{let{parameters:t,inputParams:n,setInputParams:i,displayKey:r}=e,s=(0,l.useCallback)(e=>t=>{let a=t.target.value,l=(0,w.Z)(n),r=l[e];l[e]={key:r.key,value:a,optional:r.optional},i(l)},[n]);return(0,a.jsx)("section",{className:I().container,children:t.map((e,t)=>{if(e!==r)return;let l=n[t];return(0,a.jsx)("div",{children:(0,a.jsx)(input,{label:e,value:(null==l?void 0:l.value)||"",onChange:s(t),optional:!1,placeholder:r})},e)})})},query_section=e=>{let{query:t,inputQuery:n,setInputQuery:i}=e;(0,l.useEffect)(()=>{let e=null==t?void 0:t.map(e=>({key:e.key,value:"",optional:e.optional||!0}));i(e)},[t]);let r=(0,l.useCallback)(e=>t=>{let a=t.target.value,l=(0,w.Z)(n),r=l[e];l[e]={key:r.key,value:a,optional:r.optional},i(l)},[n]);return t?(0,a.jsx)("div",{children:null==t?void 0:t.map((e,t)=>{let l=n[t];return(0,a.jsx)(cardListValue,{title:e.key,optional:!e.optional,children:(0,a.jsx)(input,{label:e.key,value:(null==l?void 0:l.value)||"",onChange:r(t),optional:e.optional||!1,type:e.type,placeholder:e.placeholder})},"".concat(e.key,"-").concat(t))})}):null};n(6134);var A=n(3852),P=n(9582),U=n.n(P);let E={container:U().container,basicChildStyle:U().basicChildStyle,expander:U().expander,label:U().label,nullValue:U().nullValue,undefinedValue:U().undefinedValue,numberValue:U().numberValue,stringValue:U().stringValue,booleanValue:U().booleanValue,otherValue:U().otherValue,punctuation:U().punctuation,pointer:U().pointer};var json_viewer=e=>{let t=(0,L.Z)(["style"],e),n=(0,l.useMemo)(()=>(0,a.jsx)(A.gc,{...t,style:E}),[e.data]);return n},R=n(6390),z=n.n(R),result_section=e=>{let{result:t,responseTime:n}=e;if(!t)return null;let l=t.status,i=t.headers,r=t.config.headers,s=t.config.url,o=t.data,c=r.Authorization,u=r.Accept,d=i["content-type"],_=i["content-length"],p=l>=400;return(0,a.jsxs)("section",{className:z().container,children:[(0,a.jsx)(cardListTitle,{children:"Request"}),(0,a.jsxs)("div",{className:z().sectionContent,children:[(0,a.jsx)(cardListValue,{title:"Request URL",children:decodeURIComponent(s)}),!!c&&(0,a.jsx)(cardListValue,{title:"Authorization",children:c}),(0,a.jsx)(cardListValue,{title:"Accept",children:u})]}),(0,a.jsx)(cardListTitle,{border:!0,children:"Response"}),(0,a.jsxs)("div",{className:z().sectionContent,children:[(0,a.jsxs)(cardListValue,{title:"Status Code",children:[l,p&&(0,a.jsx)("span",{className:z().error,children:"(Error Occurred)"})]}),(0,a.jsx)(cardListValue,{title:"Content Type",children:d}),(0,a.jsx)(cardListValue,{title:"Content Length",children:_}),!p&&n&&(0,a.jsxs)(cardListValue,{title:"Response Time",children:[n,"ms"]})]}),(0,a.jsx)(cardListTitle,{border:!0,children:"Body Response"}),(0,a.jsx)(json_viewer,{data:o})]})},Q=n(7484),M=n.n(Q),q=n(129),B=n.n(q),D=n(6476),J=n.n(D);let TryAPI=e=>{let{method:t,host:n,url:d,query:p,body:h,useBearerAuthorization:j,disabled:x}=e,[v,b]=(0,l.useState)(""),[y,C]=(0,l.useState)([]),[f,V]=(0,l.useState)([]),[L,g]=(0,l.useState)(h),[N,T]=(0,l.useState)(),[Z,w]=(0,l.useState)(!1),[S,I]=(0,l.useState)(0),A=(0,l.useMemo)(()=>{let e=RegExp("(?<=:)(\\w+)","g"),t=d.match(e);return t},[d]),P=(0,l.useCallback)(()=>{let e=null==A?void 0:A.map(e=>({key:e,value:"",optional:!1}));C(e)},[A]),U=(0,l.useCallback)(()=>{let e=(null==p?void 0:p.map(e=>({key:e.key,value:"",optional:e.optional||!0})))||[];V(e)},[p]),E=(0,l.useCallback)(()=>{g(h)},[h]);(0,l.useEffect)(P,[A]),(0,l.useEffect)(U,[p]);let R=(0,l.useMemo)(()=>{let e={};f.forEach(t=>{e[t.key]=t.value});let t=(0,s.Z)((0,r.Z)(o.Z))(e),n=B().stringify(t,{addQueryPrefix:!0});return n},[f]),z=(0,l.useMemo)(()=>{let e=d.replace(/:(\w+)/g,(e,t)=>{let n=null==y?void 0:y.find(e=>e.key===t);return(0,c.Z)(n)?e:n.value?n.value:":".concat(n.key)});return"".concat(n).concat(e).concat(R)},[d,y,R]),Q=(0,l.useCallback)(e=>{let t=e.target.value;b(t)},[]),q=(0,l.useMemo)(()=>{if(x)return!1;let e=null==y?void 0:y.filter(e=>!e.optional&&(!e.value||(0,o.Z)(e.value))),t=f.filter(e=>!e.optional&&(!e.value||(0,o.Z)(e.value)));return!(j&&(0,o.Z)(v)||!(0,o.Z)(e)||!(0,o.Z)(t)||!(0,o.Z)(h)&&(0,o.Z)(L))},[x,j,v,y,f]),D=(0,l.useCallback)(_()(async()=>{try{if(!q)return!1;let e={method:t,url:z,headers:{}};"POST"===t&&(e.data=L),j&&(e.headers={...e.headers,Authorization:"Bearer ".concat(v)}),w(!0),I(0);let n=M()(),a=await (0,i.Z)(e),l=M()(),r=l.diff(n,"milliseconds");I(r),T(a)}catch(e){T(e.response)}finally{w(!1)}},1e3),[t,z,L,j,v,q]),O=(0,l.useCallback)((0,u.Z)(P,U,E),[P,U,E]);return(0,a.jsxs)("div",{className:J().container,children:[(0,a.jsx)("h3",{children:"Try API"}),x&&(0,a.jsxs)("h5",{className:J().disabledDescription,children:[(0,a.jsx)("img",{className:J().cautionIcon,src:k.src}),"You are unable to try executing API from this page."]}),(0,a.jsxs)("div",{className:J().contentContainer,children:[(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsxs)(cardListTitle,{children:["Method : ",(0,a.jsx)("span",{className:J().method,children:t.toUpperCase()})]}),(0,a.jsx)(cardListValue,{title:"URL",children:d}),(0,a.jsx)(cardListValue,{title:"CallURL",children:decodeURIComponent(z)})]}),(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{border:!0,children:"Header"}),(0,a.jsx)(cardListValue,{title:"Bear Token",optional:!0,children:(0,a.jsx)(header_section,{bearerToken:v,useBearerAuthorization:j,bearerTokenInputChangeHandler:Q})})]}),!!A&&!(0,o.Z)(A)&&(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{children:"Parameters"}),A.map(e=>(0,a.jsx)(cardListValue,{title:e,optional:!0,children:(0,a.jsx)(parameter_section,{displayKey:e,parameters:A,inputParams:y,setInputParams:C})},e))]}),!!p&&!(0,o.Z)(p)&&(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{children:"Queries"}),(0,a.jsx)(query_section,{query:p,inputQuery:f,setInputQuery:V})]}),!!h&&(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{children:"Body"}),(0,a.jsx)(body_section,{payload:L,onChangePayload:g})]}),(0,a.jsxs)("div",{className:J().buttonContainer,children:[(0,a.jsx)(m.Z,{onClick:D,disabled:!q,children:"Execute"}),(0,a.jsx)(m.Z,{onClick:O,emptyColor:!0,children:"Clear"})]}),Z&&(0,a.jsx)("div",{className:J().loading,children:"Loading..."}),!Z&&(0,a.jsx)(result_section,{result:N,responseTime:S})]})]})}},6184:function(e){e.exports={button:"button_button__TNzCV",emptyColor:"button_emptyColor__OwiGb"}},6803:function(e){e.exports={title:"cardListTitle_title__jb7XQ",border:"cardListTitle_border__dN_aW"}},2275:function(e){e.exports={contentValue:"cardListValue_contentValue__S_bzg",title:"cardListValue_title__wT3sJ",essential:"cardListValue_essential___8Z23",value:"cardListValue_value__DbJSi"}},8351:function(e){e.exports={input:"input_input__U5Bq_"}},7232:function(e){e.exports={container:"json-editor_container__tSFUl"}},9582:function(e){e.exports={container:"json-viewer_container__QwONa",basicChildStyle:"json-viewer_basicChildStyle__I3vJP",expander:"json-viewer_expander__HUpK_",label:"json-viewer_label__en5Af",nullValue:"json-viewer_nullValue__mcAqL",undefinedValue:"json-viewer_undefinedValue__Tn4YA",numberValue:"json-viewer_numberValue__LdHiD",stringValue:"json-viewer_stringValue__mwJm3",booleanValue:"json-viewer_booleanValue__i9Jku",otherValue:"json-viewer_otherValue__gCYh1",punctuation:"json-viewer_punctuation__bd6C4",pointer:"json-viewer_pointer__2sfEa"}},8483:function(e){e.exports={container:"header-section_container__FUjhQ"}},6476:function(e){e.exports={container:"try-api_container__2BXMT",disabledDescription:"try-api_disabledDescription__h9goW",cautionIcon:"try-api_cautionIcon__kzJ__",contentContainer:"try-api_contentContainer__DNt6m",sectionContent:"try-api_sectionContent__3zDs4",method:"try-api_method__0drQz",buttonContainer:"try-api_buttonContainer__MUG8P",loading:"try-api_loading__08p7I"}},3665:function(){},6390:function(e){e.exports={container:"result-section_container__SqUAQ",sectionContent:"result-section_sectionContent__jsT9f",error:"result-section_error__Q5t0Z"}},4654:function(){}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{560:function(e,t,n){"use strict";var a=n(5893);n(7294);var l=n(6010),i=n(4021),r=n(6184),s=n.n(r);t.Z=e=>{let t=(0,i.Z)(["emptyColor"],e);return(0,a.jsx)("div",{children:(0,a.jsx)("button",{...t,className:(0,l.Z)(s().button,e.emptyColor&&s().emptyColor),children:e.children})})}},4482:function(e,t,n){"use strict";n.d(t,{j:function(){return TryAPI}});var a=n(5893),l=n(7294),i=n(6154),r=n(2894),s=n(9715),o=n(9532),c=n(8658),u=n(5642),d=n(3493),_=n.n(d),p=n(5152),h=n.n(p),j=n(7232),x=n.n(j);let v=h()(()=>n.e(5171).then(n.t.bind(n,5171,23)),{loadableGenerated:{webpack:()=>[5171]},ssr:!1});var json_editor=e=>{let{value:t,onChange:n}=e,i=(0,l.useCallback)(e=>{n(e.updated_src)},[]),r=(0,l.useMemo)(()=>(0,a.jsx)(v,{src:t,name:!1,indentWidth:2,displayObjectSize:!1,style:{backgroundColor:"transparent"},onEdit:i}),[t]);return(0,a.jsx)("div",{className:x().container,children:r})},body_section=e=>{let{payload:t,onChangePayload:n}=e;return(0,a.jsx)(json_editor,{value:t,onChange:n})},m=n(560),b=n(6010),y=n(6803),C=n.n(y),cardListTitle=e=>{let{children:t,border:n}=e;return(0,a.jsx)("div",{className:(0,b.Z)(C().title,n&&C().border),children:t})},f=n(2275),V=n.n(f),cardListValue=e=>{let{title:t,children:n,optional:l}=e;return(0,a.jsxs)("div",{className:V().contentValue,children:[(0,a.jsxs)("div",{className:V().title,children:[t,l&&(0,a.jsx)("span",{className:V().essential,children:"*"})]}),(0,a.jsx)("div",{className:V().value,children:n})]})},k={src:"/_next/static/media/CautionInfoIcon.df7841bf.svg"},L=n(4021),g=n(8351),N=n.n(g),input=e=>{let t=(0,L.Z)(["label","optional","type"],e);return(0,a.jsx)("input",{...t,className:N().input})},T=n(8483),Z=n.n(T),header_section=e=>{let{bearerToken:t,useBearerAuthorization:n,bearerTokenInputChangeHandler:l}=e;return(0,a.jsx)("section",{className:Z().container,children:n&&(0,a.jsx)(input,{placeholder:"Bear Token",onChange:l,value:t})})},w=n(3960),S=n(3665),I=n.n(S),parameter_section=e=>{let{parameters:t,inputParams:n,setInputParams:i,displayKey:r}=e,s=(0,l.useCallback)(e=>t=>{let a=t.target.value,l=(0,w.Z)(n),r=l[e];l[e]={key:r.key,value:a,optional:r.optional},i(l)},[n]);return(0,a.jsx)("section",{className:I().container,children:t.map((e,t)=>{if(e!==r)return;let l=n[t];return(0,a.jsx)("div",{children:(0,a.jsx)(input,{label:e,value:(null==l?void 0:l.value)||"",onChange:s(t),optional:!1,placeholder:r})},e)})})},query_section=e=>{let{query:t,inputQuery:n,setInputQuery:i}=e;(0,l.useEffect)(()=>{let e=null==t?void 0:t.map(e=>({key:e.key,value:"",optional:e.optional||!0}));i(e)},[t]);let r=(0,l.useCallback)(e=>t=>{let a=t.target.value,l=(0,w.Z)(n),r=l[e];l[e]={key:r.key,value:a,optional:r.optional},i(l)},[n]);return t?(0,a.jsx)("div",{children:null==t?void 0:t.map((e,t)=>{let l=n[t];return(0,a.jsx)(cardListValue,{title:e.key,optional:!e.optional,children:(0,a.jsx)(input,{label:e.key,value:(null==l?void 0:l.value)||"",onChange:r(t),optional:e.optional||!1,type:e.type,placeholder:e.placeholder})},"".concat(e.key,"-").concat(t))})}):null};n(6134);var A=n(3852),P=n(9582),U=n.n(P);let E={container:U().container,basicChildStyle:U().basicChildStyle,expander:U().expander,label:U().label,nullValue:U().nullValue,undefinedValue:U().undefinedValue,numberValue:U().numberValue,stringValue:U().stringValue,booleanValue:U().booleanValue,otherValue:U().otherValue,punctuation:U().punctuation,pointer:U().pointer};var json_viewer=e=>{let t=(0,L.Z)(["style"],e),n=(0,l.useMemo)(()=>(0,a.jsx)(A.gc,{...t,style:E}),[e.data]);return n},R=n(6390),z=n.n(R),result_section=e=>{let{result:t,responseTime:n}=e;if(!t)return null;let l=t.status,i=t.headers,r=t.config.headers,s=t.config.url,o=t.data,c=r.Authorization,u=r.Accept,d=i["content-type"],_=i["content-length"],p=l>=400;return(0,a.jsxs)("section",{className:z().container,children:[(0,a.jsx)(cardListTitle,{children:"Request"}),(0,a.jsxs)("div",{className:z().sectionContent,children:[(0,a.jsx)(cardListValue,{title:"Request URL",children:decodeURIComponent(s)}),!!c&&(0,a.jsx)(cardListValue,{title:"Authorization",children:c}),(0,a.jsx)(cardListValue,{title:"Accept",children:u})]}),(0,a.jsx)(cardListTitle,{border:!0,children:"Response"}),(0,a.jsxs)("div",{className:z().sectionContent,children:[(0,a.jsxs)(cardListValue,{title:"Status Code",children:[l,p&&(0,a.jsx)("span",{className:z().error,children:"(Error Occurred)"})]}),(0,a.jsx)(cardListValue,{title:"Content Type",children:d}),(0,a.jsx)(cardListValue,{title:"Content Length",children:_}),!p&&n&&(0,a.jsxs)(cardListValue,{title:"Response Time",children:[n,"ms"]})]}),(0,a.jsx)(cardListTitle,{border:!0,children:"Body Response"}),(0,a.jsx)(json_viewer,{data:o})]})},Q=n(7484),M=n.n(Q),q=n(129),B=n.n(q),D=n(6476),J=n.n(D);let TryAPI=e=>{let{method:t,host:n,url:d,query:p,body:h,useBearerAuthorization:j,disabled:x}=e,[v,b]=(0,l.useState)(""),[y,C]=(0,l.useState)([]),[f,V]=(0,l.useState)([]),[L,g]=(0,l.useState)(h),[N,T]=(0,l.useState)(),[Z,w]=(0,l.useState)(!1),[S,I]=(0,l.useState)(0),A=(0,l.useMemo)(()=>{let e=RegExp("(?<=:)(\\w+)","g"),t=d.match(e);return t},[d]),P=(0,l.useCallback)(()=>{let e=null==A?void 0:A.map(e=>({key:e,value:"",optional:!1}));C(e)},[A]),U=(0,l.useCallback)(()=>{let e=(null==p?void 0:p.map(e=>({key:e.key,value:"",optional:e.optional||!0})))||[];V(e)},[p]),E=(0,l.useCallback)(()=>{g(h)},[h]);(0,l.useEffect)(P,[A]),(0,l.useEffect)(U,[p]);let R=(0,l.useMemo)(()=>{let e={};f.forEach(t=>{e[t.key]=t.value});let t=(0,s.Z)((0,r.Z)(o.Z))(e),n=B().stringify(t,{addQueryPrefix:!0});return n},[f]),z=(0,l.useMemo)(()=>{let e=d.replace(/:(\w+)/g,(e,t)=>{let n=null==y?void 0:y.find(e=>e.key===t);return(0,c.Z)(n)?e:n.value?n.value:":".concat(n.key)});return"".concat(n).concat(e).concat(R)},[d,y,R]),Q=(0,l.useCallback)(e=>{let t=e.target.value;b(t)},[]),q=(0,l.useMemo)(()=>{if(x)return!1;let e=null==y?void 0:y.filter(e=>!e.optional&&(!e.value||(0,o.Z)(e.value))),t=f.filter(e=>!e.optional&&(!e.value||(0,o.Z)(e.value)));return!(j&&(0,o.Z)(v)||!(0,o.Z)(e)||!(0,o.Z)(t)||!(0,o.Z)(h)&&(0,o.Z)(L))},[x,j,v,y,f]),D=(0,l.useCallback)(_()(async()=>{try{if(!q)return!1;let e={method:t,url:z,headers:{}};"POST"===t&&(e.data=L),j&&(e.headers={...e.headers,Authorization:"Bearer ".concat(v)}),w(!0),I(0);let n=M()(),a=await (0,i.Z)(e),l=M()(),r=l.diff(n,"milliseconds");I(r),T(a)}catch(e){T(e.response)}finally{w(!1)}},1e3),[t,z,L,j,v,q]),O=(0,l.useCallback)((0,u.Z)(P,U,E),[P,U,E]);return(0,a.jsxs)("div",{className:J().container,children:[(0,a.jsx)("h3",{children:"Try API"}),x&&(0,a.jsxs)("h5",{className:J().disabledDescription,children:[(0,a.jsx)("img",{className:J().cautionIcon,src:k.src}),"You are unable to try executing API from this page."]}),(0,a.jsxs)("div",{className:J().contentContainer,children:[(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsxs)(cardListTitle,{children:["Method : ",(0,a.jsx)("span",{className:J().method,children:t.toUpperCase()})]}),(0,a.jsx)(cardListValue,{title:"URL",children:d}),(0,a.jsx)(cardListValue,{title:"CallURL",children:decodeURIComponent(z)})]}),(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{border:!0,children:"Header"}),(0,a.jsx)(cardListValue,{title:"Bear Token",optional:!0,children:(0,a.jsx)(header_section,{bearerToken:v,useBearerAuthorization:j,bearerTokenInputChangeHandler:Q})})]}),!!A&&!(0,o.Z)(A)&&(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{children:"Parameters"}),A.map(e=>(0,a.jsx)(cardListValue,{title:e,optional:!0,children:(0,a.jsx)(parameter_section,{displayKey:e,parameters:A,inputParams:y,setInputParams:C})},e))]}),!!p&&!(0,o.Z)(p)&&(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{children:"Queries"}),(0,a.jsx)(query_section,{query:p,inputQuery:f,setInputQuery:V})]}),!!h&&(0,a.jsxs)("div",{className:J().sectionContent,children:[(0,a.jsx)(cardListTitle,{children:"Body"}),(0,a.jsx)(body_section,{payload:L,onChangePayload:g})]}),(0,a.jsxs)("div",{className:J().buttonContainer,children:[(0,a.jsx)(m.Z,{onClick:D,disabled:!q,children:"Execute"}),(0,a.jsx)(m.Z,{onClick:O,emptyColor:!0,children:"Clear"})]}),Z&&(0,a.jsx)("div",{className:J().loading,children:"Loading..."}),!Z&&(0,a.jsx)(result_section,{result:N,responseTime:S})]})]})}},6184:function(e){e.exports={button:"button_button__TNzCV",emptyColor:"button_emptyColor__OwiGb"}},6803:function(e){e.exports={title:"cardListTitle_title__jb7XQ",border:"cardListTitle_border__dN_aW"}},2275:function(e){e.exports={contentValue:"cardListValue_contentValue__S_bzg",title:"cardListValue_title__wT3sJ",essential:"cardListValue_essential___8Z23",value:"cardListValue_value__DbJSi"}},8351:function(e){e.exports={input:"input_input__U5Bq_"}},7232:function(e){e.exports={container:"json-editor_container__tSFUl"}},9582:function(e){e.exports={container:"json-viewer_container__QwONa",basicChildStyle:"json-viewer_basicChildStyle__I3vJP",expander:"json-viewer_expander__HUpK_",label:"json-viewer_label__en5Af",nullValue:"json-viewer_nullValue__mcAqL",undefinedValue:"json-viewer_undefinedValue__Tn4YA",numberValue:"json-viewer_numberValue__LdHiD",stringValue:"json-viewer_stringValue__mwJm3",booleanValue:"json-viewer_booleanValue__i9Jku",otherValue:"json-viewer_otherValue__gCYh1",punctuation:"json-viewer_punctuation__bd6C4",pointer:"json-viewer_pointer__2sfEa"}},8483:function(e){e.exports={container:"header-section_container__FUjhQ"}},6476:function(e){e.exports={container:"try-api_container__2BXMT",disabledDescription:"try-api_disabledDescription__h9goW",cautionIcon:"try-api_cautionIcon__kzJ__",contentContainer:"try-api_contentContainer__DNt6m",sectionContent:"try-api_sectionContent__3zDs4",method:"try-api_method__0drQz",buttonContainer:"try-api_buttonContainer__MUG8P",loading:"try-api_loading__08p7I"}},3665:function(){},6390:function(e){e.exports={container:"result-section_container__SqUAQ",sectionContent:"result-section_sectionContent__jsT9f",error:"result-section_error__Q5t0Z"}},4654:function(){}}]); \ No newline at end of file diff --git a/_next/static/chunks/nextra-data-en-US.json b/_next/static/chunks/nextra-data-en-US.json index 3a190924..526a408b 100644 --- a/_next/static/chunks/nextra-data-en-US.json +++ b/_next/static/chunks/nextra-data-en-US.json @@ -1 +1 @@ -{"/apis":{"title":"Introduction","data":{"":"Mintscan API, integral to Mintscan 2.0, stems from enterprise-grade onchain data indexing. Through features like tx builder and historical statistics APIs, it offers easy access to dynamic onchain data, including account balances and staking APR. Streamlining raw data processing, Mintscan API simplifies Interchain dapp development, positioning itself as a key piece in the Interchain infrastructure puzzle.For inquery, please contact us api@cosmostation.io","how-to-get-api-key#How to get API Key?":"Get start sign upCurrently in beta, approval is being processed via email(api@cosmostation.io).","features#Features":"RPC Endpoint\nHistorical API\nProto Builder API\nStatistics API\nUtility API\nCustom API","supported-chain-list#Supported chain list":"Akash\nArchway\nCosmos\nEvmos\nInjective\nJuno\nKava\nNeutron\nOsmosis\nStride","api-reference#API Reference":"Type\tAPI\tCredit\tProxy API\tLCD Proxy\t1\tCustom API\tAccount\t5\tStatistics API\tTransaction Statistics\t3\t\tMessage Statistics\t3\tBuilder API\tTransaction Builder\t5 ~ 10\tHistorical API\tAccount Transactions\t5\t\tAccount Votes\t5\t\tAccount Balance History\t7\t\tRichlist\t10\t\tValidator Votes\t5\t\tValidator Commission History\t5\t\tValidator Delegators\t10\t\tValidator Block Sign\t1\t\tValidator Voting Power\t1\t\tValidator Proposed Blocks\t1\tUtility API\tNode Info\t5\t\tInflation\t3\t\tStaking APR\t5\t\tAssets\t3\t\tPrices\t3 ~ 5"}},"/apis/reference/builder/tx-builder/broadcast":{"title":"Broadcast Transaction","data":{"post-v1networktx-builderbroadcast#[POST] /v1/:network/tx-builder/broadcast":"","request#Request":"Authorization: Bearer {access_token}\nContent-Type: application/json\n{\n // Original message of the tx from the result of the Build Transaction API Call\n \"tx\": string,\n // Generated using the user’s private key and the tx from the result of the Build Transaction API Call.\n \"signature\": string\n}","response#Response":"{\n \"tx_response\": {\n \"height\": \"0\",\n \"txhash\": \"\",\n \"codespace\": \"\",\n \"code\": 0,\n \"data\": \"\",\n \"raw_log\": \"[]\",\n \"logs\": [],\n \"info\": \"\",\n \"gas_wanted\": \"0\",\n \"gas_used\": \"0\",\n \"tx\": null,\n \"timestamp\": \"\",\n \"events\": []\n }\n}"}},"/apis/reference/builder/tx-builder/build":{"title":"Build Transactions","data":{"post-v1networktx-builder#[POST] /v1/:network/tx-builder":"This API returns the SignDoc data for broadcasting transactions.\nThe response includes tx for generating the signature, original messages used to create the SignDoc, fee value, and basic information of the account.\nUsers can either generate the signature directly without 0x from the value and broadcast it, or use the provided broadcast API to send the tx.\nMulti sign account is not supported yet.","request#Request":"Authorization: Bearer {access_token}\nContent-Type: application/json","response#Response":"{\n // SignDoc for generating the signature. Use the data without '0x'\n \"tx\": \"\",\n // Original data that user transfer\n \"messages\": [\n {\n \"type\": \"cosmos.staking.v1beta1.MsgDelegate\",\n \"delegatorAddress\": \"osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p\",\n \"validatorAddress\": \"\",\n \"amount\": { \"denom\": \"uosmo\", \"amount\": \"1\" }\n }\n ],\n // Transaction fee\n \"fee\": { \"amount\": [{ \"denom\": \"uosmo\", \"amount\": \"760\" }], \"gas\": \"303815\" },\n // Account public key of signer\n \"publicKey\": {\n \"@type\": \"/cosmos.crypto.secp256k1.PubKey\",\n \"key\": \"A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n // Account number of signer\n \"accountNumber\": \"63277\",\n // Account sequence of signer\n \"sequence\": \"12\"\n}","how-to-make-a-public-key-from-private-key#How to make a public key from private key":"const privateKey = Buffer.from(\n '',\n 'hex',\n);\nconst pubKeyUint8Array = TinySecp256k1.pointFromScalar(privateKey, true);\nif (!pubKeyUint8Array) {\n throw new Error('Invalid private key');\n}\n// Use this publicKey when sending a transaction (tx) for the first time.\nconst publicKey = Buffer.from(pubKeyUint8Array).toString('base64');","send-transaction#Send Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.bank.v1beta1.MsgSend\",\n // Sender Address\n \"fromAddress\": \"string\",\n // Receiver Address\n \"toAddress\": \"string\",\n // Amount Array\n \"amount\": [\n {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n ]\n }\n ]\n}","delegate-transaction#Delegate Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.staking.v1beta1.MsgDelegate\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // Validator Address to delegate\n \"validatorAddress\": \"string\",\n // Amount\n \"amount\": {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n }\n ]\n}","undelegate-transaction#Undelegate Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.staking.v1beta1.MsgUndelegate\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // Validator Address to undelegate\n \"validatorAddress\": \"string\",\n // Amount\n \"amount\": {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n }\n ]\n}","begin-redelegate-transaction#Begin Redelegate Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.staking.v1beta1.MsgBeginRedelegate\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // From Validator Address to redelegate\n \"validatorSrcAddress\": \"string\",\n // To Validator Address to redelegate\n \"validatorDstAddress\": \"string\",\n // Amount\n \"amount\": {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n }\n ]\n}","claim-delegate-rewards-transaction#Claim Delegate Rewards Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // Validator Address to claim rewards\n \"validatorAddress\"\": string\"\n }\n ]\n}","claim-validator-commissions-transaction#Claim Validator Commissions Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\",\n // Validator Address to withdraw validator commission\n \"validatorAddress\"\": string\"\n }\n ]\n}","governance-vote-transaction#Governance Vote Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.gov.v1beta1.MsgVote\",\n // Proposal ID\n \"proposalId\": \"string\",\n // Voter\n \"voter\": \"string\",\n // Vote Option(\"VOTE_OPTION_UNSPECIFIED\" | \"VOTE_OPTION_YES\" | \"VOTE_OPTION_ABSTAIN\" | \"VOTE_OPTION_NO\" | \"VOTE_OPTION_NO_WITH_VETO\")\n \"option\"\": string\"\n }\n ]\n}","wasm-contract-execute-transaction#Wasm Contract Execute Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmwasm.wasm.v1.MsgExecuteContract\",\n // Sender\n \"sender\": \"string\",\n // Contract Address\n \"contract\": \"string\",\n // Execute Messages\n \"msg\": {},\n // Funds\n \"funds\": []\n }\n ]\n}","authz-grant-transaction#Authz Grant Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n // GeneraicAuthorization\n \"type\": \"cosmos.authz.v1beta1.MsgGrant\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n \"grant\": {\n \"authorization\": {\n // Auth Type(\"GenericAuthorization\" | \"StakeAuthorization\" | \"SendAuthorization\")\n \"type\": \"GenericAuthorization\",\n \"msg\": \"string\"\n },\n \"expiration\": \"datetime\"\n }\n },\n {\n // StakeAuthorization\n \"type\": \"cosmos.authz.v1beta1.MsgGrant\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n \"grant\": {\n \"authorization\": {\n // Auth Type(\"GenericAuthorization\" | \"StakeAuthorization\" | \"SendAuthorization\")\n \"type\": \"StakeAuthorization\",\n \"maxTokens\": { \"denom\": \"string\", \"amount\": \"string\" },\n // When used in conjunction with a denyList, the allowList is not applied\n \"allowList\": { \"address\": [\"string\"] },\n \"denyList\": { \"address\": [\"string\"] },\n // Authorization Type(\"AUTHORIZATION_TYPE_DELEGATE\" | \"AUTHORIZATION_TYPE_UNDELEGATE\" | \"AUTHORIZATION_TYPE_REDELEGATE\")\n \"authorizationType\": \"string\"\n },\n \"expiration\": \"datetime\"\n }\n },\n {\n // SendAuthorization\n \"type\": \"cosmos.authz.v1beta1.MsgGrant\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n \"grant\": {\n \"authorization\": {\n // Auth Type(\"GenericAuthorization\" | \"StakeAuthorization\" | \"SendAuthorization\")\n \"type\": \"SendAuthorization\",\n \"spendLimit\": [{ \"denom\": \"string\", \"amount\": \"string\" }]\n },\n \"expiration\": \"datetime\"\n }\n }\n ]\n}","authz-execute-transaction#Authz Execute Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n \"type\": \"cosmos.authz.v1beta1.MsgExec\",\n \"grantee\": \"string\",\n \"msgs\": [\n {\n // type_url excluding '/' (ex: cosmos.bank.v1beta1.MsgSend)\n \"type\": \"string\"\n // the values included in the corresponding type message\n }\n ]\n }\n ]\n}","authz-revoke-transaction#Authz Revoke Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n \"type\": \"cosmos.authz.v1beta1.MsgRevoke\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n // msgTypeUrl\n // GenericAuthorization, you can simply use the msg value of that authorization as it is\n // SendAuthorization, you should use /cosmos.bank.v1beta1.MsgSend\n // StakeAuthorization, you should provide values based on the Authorization Type granted.\n // - AUTHORIZATION_TYPE_DELEGATE, use /cosmos.staking.v1beta1.MsgDelegate.\n // - AUTHORIZATION_TYPE_UNDELEGATE, use /cosmos.staking.v1beta1.MsgUndelegate\n // - AUTHORIZATION_TYPE_REDELEGATE, use /cosmos.staking.v1beta1.MsgBeginRedelegate\n \"msgTypeUrl\": \"string\"\n }\n ]\n}","multiple-message-type-of-transaction#Multiple Message Type of Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n // The message types within the messages defined above\n ]\n}"}},"/apis/reference/builder/tx-builder/make-signature":{"title":"How Make Signature","data":{"":"This documentation page provides an example of generating a signature using the tx (SignDoc) produced in the Build Transaction process.\nThe example code in this document is written in Node.js. Users can implement the sign logic based on their respective programming language.\n// Import packages for sign\nimport * as TinySecp256k1 from 'tiny-secp256k1';\nimport * as encHex from 'crypto-js/enc-hex';\nimport * as sha256 from 'crypto-js/sha256';\n// Define a custom function to execute the logic described on the Build Transaction page.\n// Each user can implement their own version of this function and use it accordingly\nconst buildResult = await buildTx();\n/* Example of result\n {\n \"tx\": \"\",\n \"messages\": [\n {\n \"type\": \"cosmos.staking.v1beta1.MsgDelegate\",\n \"delegatorAddress\": \"osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p\",\n \"validatorAddress\": \"\",\n \"amount\": { \"denom\": \"uosmo\", \"amount\": \"1\" }\n }\n ],\n \"fee\": { \"amount\": [{ \"denom\": \"uosmo\", \"amount\": \"760\" }], \"gas\": \"303815\" },\n \"publicKey\": {\n \"@type\": \"/cosmos.crypto.secp256k1.PubKey\",\n \"key\": \"A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"accountNumber\": \"63277\",\n \"sequence\": \"12\"\n}\n*/\n// Removes the '0x' string from the beginning of the tx.\nconst signDoc = buildResult.tx.replace(/^0x(.*)/, '$1');\n// SignDoc Example: \n// The part that creates a Buffer using the user's Private Key.\n// If the Private Key starts with '0x', the '0x' prefix is removed and the value is used.\nconst privateKey = Buffer.from(\n '',\n 'hex',\n);\nconst hashedSignDoc = sha256(encHex.parse(signDoc)).toString(encHex);\nconst signResult = TinySecp256k1.sign(Buffer.from(hashedSignDoc, 'hex'), privateKey);\nconst signatureHex = Buffer.from(signResult).toString('hex');\n// Use this to broadcast the transaction\nconst signature = `0x${signatureHex}`;\n// Example: "}},"/apis/reference/custom/account":{"title":"Account","data":{"get-v1networkaccountsaddress#[GET] /v1/:network/accounts/:address":"Get account information with current balances","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"}},"/apis/reference/historical/account/account-richlist":{"title":"Account Balance History","data":{"get-v1networkaccountsrichlistsymbol#[GET] /v1/:network/accounts/richlist/:symbol":"Get richlist for the given symbol","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom\n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA==\n# To display detailed information of the balance\n# (boolean, optional, default: false)\ndetail: true"}},"/apis/reference/historical/account/account-balances":{"title":"Account Balance History","data":{"get-v1networkaccountsaddressbalances#[GET] /v1/:network/accounts/:address/balances":"Get balance history of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q\n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA==\n# Search start datetime\n# (datetime, optional, default: 30 days ago)\nfromDateTime: 2023-07-20\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/historical/account/account-transactions":{"title":"Account Transactions","data":{"get-v1networkaccountsaddresstransactions#[GET] /v1/:network/accounts/:address/transactions":"Get transactions of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q\n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Array of strings for filtering by message type\n# (array of string, optional)\nmessageTypes[]: /cosmos.staking.v1beta1.MsgDelegate\n# Search start datetime\n# (datetime, optional)\nfromDateTime: 2023-04-20\n# Search end datetime\n# (datetime, optional)\ntoDateTime: 2023-04-21 23:59:59\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4MDUxNjI5NjAwMHwxNDczMjU5OQ=="}},"/apis/reference/historical/validator/validator-block-sign":{"title":"Validator Latest Block Sign","data":{"get-v1networkvalidatorsvalidatoraddresslatestuptime#[GET] /v1/:network/validators/:validatorAddress/latestUptime":"Get latest blocks signature of validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: "}},"/apis/reference/historical/validator/validator-commissions":{"title":"Validator Commission Balance History","data":{"get-v1networkvalidatorsvalidatoraddresscommissions#[GET] /v1/:network/validators/:validatorAddress/commissions":"Get commission balance history of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA==\n# Search start datetime\n# (datetime, optional, default: 30 days ago)\nfromDateTime: 2023-07-20\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/historical/validator/validator-delegators":{"title":"Validator Delegators","data":{"get-v1networkvalidatorsvalidatoraddressdelegators#[GET] /v1/:network/validators/:validatorAddress/delegators":"Get a list of richlist of a symbol","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 10\n# Value of skip amount for pagination\n# (number, optional, default: 0)\nfrom: 20"}},"/apis/reference/historical/validator/validator-power-events":{"title":"Validator Voting Power Events","data":{"get-v1networkvalidatorsvalidatoraddresspowerevents#[GET] /v1/:network/validators/:validatorAddress/powerEvents":"Get voting power events of validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA=="}},"/apis/reference/historical/validator/validator-proposed-blocks":{"title":"Validator Voting Power Events","data":{"get-v1networkvalidatorsvalidatoraddressproposed#[GET] /v1/:network/validators/:validatorAddress/proposed":"Get blocks proposed by the validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA=="}},"/apis/reference/historical/validator/validator-votes":{"title":"Validator Votes","data":{"get-v1networkvalidatorsvalidatoraddresstransactions#[GET] /v1/:network/validators/:validatorAddress/transactions":"Get a list of votes of a validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of validator\n# (string, required)\nvalidatorAddress: \n# Whether to remove duplicates for the same proposal\n# (boolean, optional, default: false)\ndistinct: true"}},"/apis/reference/proxy/lcd":{"title":"LCD Proxy","data":{"":"Proxy API for making LCD requests to BlockChain Node","getpost-v1networklcd#[GET][POST] /v1/:network/lcd/*":"You can directly access the Node LCD API by referring to the Swagger or document of the Network you want to make requests to.\nHowever, please note that certain requests are blocked as they may have a negative impact on the server.","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The url of lcd API. See details in Swagger or document of the network\n# (string, required)\n*: /cosmos/bank/v1beta1/balances/cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"}},"/apis/reference/historical/account/account-votes":{"title":"Account Votes","data":{"get-v1networkaccountsaddressvotes#[GET] /v1/:network/accounts/:address/votes":"Get a list of votes of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q\n# Whether to remove duplicates for the same proposal\n# (boolean, optional, default: false)\ndistinct: true"}},"/apis/reference/statistics/transactions":{"title":"Transactions Counts","data":{"get-v1networkstatisticstxshourly#[GET] /v1/:network/statistics/txs/hourly":"Get The Number of Transactions Per Hour","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59","get-v1networkstatisticstxsdaily#[GET] /v1/:network/statistics/txs/daily":"Get The Number of Transactions Per Day","request-1#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59","get-v1networkstatisticstxsweekly#[GET] /v1/:network/statistics/txs/weekly":"Get The Number of Transactions Per Week","request-2#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/utilities/inflation":{"title":"Chain Inflation","data":{"get-v1networkinflation#[GET] /v1/:network/inflation":"Get inflation data from the chain","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos"}},"/apis/reference/utilities/assets":{"title":"Assets","data":{"get-v1networkassets#[GET] /v1/:network/assets":"Get all assets of the current chain","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos","get-v1networkassetssymbol#[GET] /v1/:network/assets/:symbol":"Get asset of specific symbol","request-1#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom"}},"/apis/reference/statistics/messages":{"title":"Message Counts","data":{"get-v1networkstatisticsmessages#[GET] /v1/:network/statistics/messages":"Get The Number of Transactions per each message type over the last 30 days","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/utilities/prices":{"title":"Prices","data":{"get-v1pricessymbolcoingeckoid#[GET] /v1/prices/:symbol/coingeckoId":"Get coingecko ID via symbol","request#Request":"Authorization: Bearer {access_token}\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom","get-v1pricessymbolsymbol#[GET] /v1/prices/symbol/:symbol":"Get hourly prices via symbol","request-1#Request":"Authorization: Bearer {access_token}\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom\n# End datetime for obtaining prices\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-04-21 23:59:59\n# Request per page\n# (number, optional, default: 24)\nticks: 24","get-v1pricescoingeckoidgeckoid#[GET] /v1/prices/coingeckoId/:geckoId":"Get hourly prices via coingeckoId","request-2#Request":"Authorization: Bearer {access_token}\n# CoingeckoId of the asset to be queried\n# (string, required)\ngeckoId: cosmos\n# End datetime for obtaining prices\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-04-21 23:59:59\n# Request per page\n# (number, optional, default: 24)\nticks: 24"}},"/apis/reference/utilities/node-info":{"title":"Node Info","data":{"get-v1networknode_info#[GET] /v1/:network/node_info":"Get node informations with chain parameters","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos"}},"/extension/guide/account/add-account":{"title":"Add Account","data":{"":"Create a new wallet, restore with an existing mnemonic phrase, or restore with a private key.","create-wallet#Create wallet":"The following process is for users who do not have a wallet and wish to create a new wallet.'Create wallet' will import a new wallet with a mnemonic phrase.\nStep 1 Click 'Create wallet'Step 2 Enter 'Account name'. Account name will be used for users to easily distinguish wallets imported on the extension.Step 3 Your mnemonic phrase will be displayed. Cosmostation Wallet Extension supports both 12 words and 24 words mnemonic phrases.\nPlease make sure to back up your mnemonic phrase and save it in a safe location only accessible by you. If the mnemonic phrase is lost, you will not be able to regain access to your account.DO NOT share your Secret Recovery Phrase with anyone! If someone has access to your secret phrase, they will have access to your wallet. Cosmostation support will NEVER ask you for your secret phrase or your private key.\nStep 4 (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default.Step 5 Enter your seed phrase in correct order. This process is to confirm that you have saved the correct mnemonic phrase.Step 6 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.Step 7 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.","restore-wallet-with-a-mnemonic-phrase#Restore wallet with a mnemonic phrase":"The following process is for users who already have a mnemonic phrase.\nStep 1 Click 'Restore with mnemonics'Step 2 Enter 'Account name' and 'Mnemonic phrases'. Account name will be used for you to easily distinguish wallets.Step 3 (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default.Step 4 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.Step 5 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.","restore-wallet-with-a-private-key#Restore wallet with a private key":"The following process is for users that already have a private key.\nStep 1 Click 'Import wallet'.Step 2 Click 'Restore with private key'.Step 3 Enter your 'Account name' and 'Private key'. (Private keys start with 0x and consists of a 66 digit string)Step 4 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.Step 5 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."}},"/extension/guide/account/add-ledger-account":{"title":"Add Ledger Account","data":{"":"Create a new ledger wallet","supported-devices--connection-method#Supported Devices & Connection Method":"Ledger S, X\nUSB, HID","adding-ledger-account#Adding Ledger Account":"Account icon → setting icon → Add account → Create a new ledger account → Account name → HD path setting → Done","hd-path-setting#HD path setting":"Up to 101 Ledger accounts and wallets can be derived from a single set of mnemonics in a Ledger by assigning any number smaller than 101 to HD paths when creating a Ledger account.","connecting-ledger#Connecting Ledger":"Select the new Ledger account to connect on home screen.","cosmos-networks#Cosmos Networks":"Cosmostation extension wallet supports Cosmos SDK chain wallets derived from HD paths 44'/118'/0'/0/n. Connecting to any Cosmos SDK chain with a Ledger automatically derives all the Cosmos SDK chain wallets supported by a Ledger account.","evm-networks#EVM Networks":"Cosmostation extension wallet supports EVM wallets derived from HD paths 44'/60'/0'/0/n. Connecting to any EVM network with a Ledger automatically derives all the EVM network wallets supported by a Ledger account.","not-supported-networks#Not Supported Networks":"44'/118'/0'/0/n is a generic HD path for Cosmos SDK chains, but some networks use custom HD paths assigned by their network foundations. For example, a Cosmos SDK chain Crypto.org’s official HD path used by the foundation and Ledger is 44'/394'/0'/0/n.\nIn an effort to sync with the network foundations and Ledger, Cosmostation extension wallet derives wallets solely from HD paths used by the foundations and Ledger. Instead of deriving all the Cosmos SDK chain wallets from 44'/118'/0'/0/n path, Cosmostation only supports the wallets of Cosmos SDK chains whose official HD path is 44'/118'/0'/0/n for now.\nCustom HD path wallets will be supported in future updates.","signing-transactions#Signing Transactions":"","cosmos-sdk-chains#Cosmos SDK Chains":"Open the Cosmos app on Ledger\nCheck the review message on Ledger\nApprove or reject a transaction\nAll the Cosmos SDK chains' transactions can be signed from the Cosmos app.","ethereum--evm#Ethereum & EVM":"Open the Ethereum app on Ledger\nCheck the review message on Ledger\nApprove or reject a transaction\nAll the EVM chains' transactions can be signed from the Ethereum app."}},"/extension/guide/account/intro":{"title":"Introduction","data":{"":"Cosmostation Wallet Extension allows you to add and manage multiple accounts.\nSecurely manage your accounts in a convenient user interface.","add-account#Add Account":"'Add Account' has three options. [Creat a new account], [Import mnemonics], and [Import private key]. Please refer to each page for detailed instructions.\nStep 1 Click 'Add account' under 'Account Management'.Step 2 You will see three options to choose from. Please refer to the following link for detailed instructions.","manage-keys#Manage keys":"Under 'Account Management', you are able to see all the accounts that are registered on Cosmostation Extension.If you created a new account or restored a wallet with a mnemonic phrase, you will be able to see the option to [View mnemonics], [View private key], and [Delete account].If you restored a wallet with a private key, then you will only be able to choose [View private key].","delete-account#Delete Account":"You can delete accounts from Cosmostation Extension.Once deleted, you can restore your account again by importing the same mnemonic phrase or private key.\nYou are required to enter your password before deleting your account.Once deleted, if you lose your mnemonic phrase or private key you will not be able to gain access to the account again."}},"/apis/reference/utilities/staking-apr":{"title":"Chain Staking APR","data":{"get-v1networkapr#[GET] /v1/:network/apr":"Get default staking APR of the chain","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos","get-v1networkaprvalidatoraddress#[GET] /v1/:network/apr/:validatorAddress":"Get staking APR when delegating to a specific validator","request-1#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Validator address to delegate\n# (string, required)\nvalidatorAddress: "}},"/extension/guide/chains":{"title":"Chains","data":{"":"Cosmostation Wallet Extension supports various PoS networks.","addremove-chains#Add/Remove Chains":"Add/remove chains to efficiently manage your wallet.Select chains you want to display on the list. Only selected chains will be displayed on both the dashboard and wallet detail page.\nStep 1 View chains that are added to your list. Click 'Add chain' to add/remove chains from the list.Step 2 By toggling on/off, you can choose chains that you want to display on Cosmostation Wallet Extension.Step 3 Selected chains are also visible on the top right side of wallet details."}},"/extension/guide/dapps":{"title":"dApp","data":{"":"Cosmostation Wallet Exntension supports various dApps deployed on PoS networks.","connection-status#Connection status":"Easily check if the wallet extension is connect to the dApp.If you wish to disconnect, click the connection status under your account name.","disconnect-with-just-a-click#Disconnect with just a click.":"Easily disconnect from dApps by clicking the connecting status under your account name."}},"/extension/guide/transfer-coins":{"title":"Transfer coins","data":{"":"Transfer coins with just one click via Cosmostation Wallet Extension.\nCosmostation Wallet Extension currently DOES NOT SUPPORT IBC TRANSFERS.If you are trying to send assets to a different chain, the send button will be deactivated.","receive#Receive":"Click 'Deposit' to copy the address to the clipboard or scan the QR code.","send#Send":"The following process is for users sending assets to a different address.\nStep 1 Enter 'Recipient address', 'Amount,' and 'Memo.' The memo field is optional but required for sending to specific centralized cryptocurrency exchanges. Centralized exchanges will ask you to enter a memo for identification when you make a deposit.\nMake sure that you enter the correct recipient address.Entering an incorrect address may result in loss of funds and responsibility of entering the correct address is on the user.\nStep 2, 3 Check the transaction information and confirm."}},"/extension":{"title":"Introduction","data":{"":"Cosmostation Wallet Extension is a non-custodial chrome extension wallet that supports multiple sovereign networks and inter-blockchain bridges. The wallet extension allows users to easily interact with networks and decentralized applications with just a few clicks.To download Cosmostation Wallet Extension, click this link to download from the chrome webstore.","wallet#Wallet":"","dashboard#Dashboard":""}},"/extension/integration/aptos/connect-and-account":{"title":"Connect, Account","data":{"":"connect and get Account via Cosmostation Extension","connect#Connect":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const account = await provider.connect();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code#Vanilla Code":"const provider = aptos();\ntry {\n const account = await provider.connect();\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","response#Response":"export type AptosConnectResponse = {\n address: string;\n publicKey: string;\n};\n{\n \"address\": \"\",\n \"publicKey\": \"\"\n}","account#Account":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const account = await provider.account();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code-1#Vanilla Code":"try {\n const provider = aptos();\n const account = await provider.account(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","response-1#Response":"export type AptosAccountResponse = {\n address: string;\n publicKey: string;\n};\n{\n \"address\": \"\",\n \"publicKey\": \"\"\n}"}},"/extension/guide/settings":{"title":"Settings","data":{"":"Customize the wallet extension in wallet settings.","dark-mode#Dark mode":"Toggle back and forth to choose between Dark or Light mode.","address-book#Address Book":"Create different address books for each chain. You can use the address book when using the 'Send' function.\nStep 1 View / Add addresses to the chain you selected.Step 2 Enter address information and click 'Save'.\nLabel your address to distinguish them from one another.\nMemo is optional but required to transfer assets to centralized cryptocurrency\nexchanges. Centralized exchanges will ask you to enter a memo for\nidentification when you make a deposit.\nIf you add addresses in the address book, you can use the address book feature when sending assets.","change-password#Change password":"Enter your current password and to change it to a new password. Enter the new password once more to confirm.\nMake sure that you enter more than 8 characters for the password.","currency--language#Currency & Language":"Cosmostation Wallet Extension supports 2 languages and 5 currencies.\nWe plan to support more currencies and languages in the near future.","lock-screen#Lock screen":"Lock your screen to secure your wallet.\n!"}},"/extension/integration/aptos/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"const isCosmostation = \"cosmostation\" in window;\nconst aptos = () => {\n if (\"cosmostation\" in window) {\n return window.cosmostation.aptos;\n } else {\n window.open(\"https://cosmostation.io/wallet/#extension\");\n /**\n * or window.open(\"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf\");\n * */\n }\n};\nconst provider = aptos();"}},"/extension/integration/aptos/event":{"title":"Event","data":{"accountchange#AccountChange":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\nconst handler = (account) => console.log(account);\ntry {\n const provider = await aptos();\n provider.onAccountChange(handler);\n // if you want to remove the listener\n provider.offAccountChange(handler);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"const handler = (account) => console.log(account);\ntry {\n const provider = aptos();\n provider.onAccountChange(handler);\n // if you want to remove the listener\n provider.offAccountChange(handler);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","networkchange#NetworkChange":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\nconst handler = (network) => console.log(network);\ntry {\n const provider = await aptos();\n provider.onNetworkChange(handler);\n // if you want to remove the listener\n provider.offNetworkChange(handler);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code-1#Vanilla Code":"const handler = (network) => console.log(network);\ntry {\n const provider = aptos();\n provider.onNetworkChange(handler);\n // if you want to remove the listener\n provider.offNetworkChange(handler);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}"}},"/extension/integration/aptos/sign-and-submit-transaction":{"title":"Sign And Submit Transaction","data":{"":"Sign And Submit transcation via Cosmostation Extension","signandsubmittransaction#SignAndSubmitTransaction":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n // e.g. send payload\n const payload = {\n arguments: [\n \"\",\n \"100000000\",\n ],\n function: \"0x1::aptos_account::transfer\",\n type: \"entry_function_payload\",\n type_arguments: [],\n };\n const pendingTransaction = await provider.signAndSubmitTransaction(payload);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code#Vanilla Code":"// e.g. send payload\nconst payload = {\n arguments: [\n \"\",\n \"100000000\",\n ],\n function: \"0x1::aptos_account::transfer\",\n type: \"entry_function_payload\",\n type_arguments: [],\n};\ntry {\n const provider = aptos();\n const pendingTransaction = await provider.signAndSubmitTransaction(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","request#request":"export type AptosSignPayload = {\n function: string;\n type: string;\n type_arguments: string[];\n arguments: T[];\n};","response#Response":"export type AptosSignAndSubmitTransactionResponse = {\n hash: string;\n sender: string;\n sequence_number: string;\n max_gas_amount: string;\n gas_unit_price: string;\n expiration_timestamp_secs: string;\n payload: AptosSignPayload;\n signature?: {\n type: string;\n public_key: string;\n signature: string;\n };\n};\n{\n \"hash\": \"\",\n \"sender\": \"\",\n \"sequence_number\": \"15\",\n \"max_gas_amount\": \"1016\",\n \"gas_unit_price\": \"100\",\n \"expiration_timestamp_secs\": \"1668137878\",\n \"payload\": {\n \"function\": \"0x1::coin::transfer\",\n \"type_arguments\": [\"0x1::aptos_coin::AptosCoin\"],\n \"arguments\": [\n \"\",\n \"1000000\"\n ],\n \"type\": \"entry_function_payload\"\n },\n \"signature\": {\n \"public_key\": \"\",\n \"signature\": \"\",\n \"type\": \"ed25519_signature\"\n }\n}","signtransaction#SignTransaction":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const signature = await provider.signTransaction(payload);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code-1#Vanilla Code":"const cosmostation = provider();\n// e.g. send payload\nconst payload = {\n arguments: [\n \"\",\n \"100000000\",\n ],\n function: \"0x1::aptos_account::transfer\",\n type: \"entry_function_payload\",\n type_arguments: [],\n};\ntry {\n const provider = aptos();\n const signature = await provider.signTransaction(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","request-1#request":"export type AptosSignPayload = {\n function: string;\n type: string;\n type_arguments: string[];\n arguments: T[];\n};","response-1#Response":"export type AptosSignTransactionResponse = string;\n\"\""}},"/extension/integration/cosmos/Deprecated/accounts":{"title":"Accounts","data":{"":"Using Cosmostation Extension accounts.","get-accounts#Get Accounts":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"const account = await provider.getAccount(\"cosmoshub-4\");","vanilla-code#Vanilla Code":"const account = await window.cosmostation.cosmos.request({\n method: \"cos_account\",\n params: { chainName: \"cosmoshub-4\" },\n});","if-connected-successfully-it-will-look-like-below#If connected successfully, it will look like below.":"","response#Response":"type AccountResponse = {\n name: string;\n address: string;\n publicKey: Uint8Array;\n isLedger: boolean;\n};\n{\n \"name\": \"account name\",\n \"address\": \"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow\",\n \"publicKey\": [\n 3, 77, 9, 189, 251, 249, 150, 235, 192, 56, 51, 98, 56, 242, 12, 102, 144,\n 211, 89, 42, 187, 170\n ],\n \"isLedger\": false\n}","request-account-popup#Request Account (Popup)":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"try {\n // ...\n const account = await provider.requestAccount(\"cosmoshub-4\");\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code-1#Vanilla Code":"const account = await window.cosmostation.cosmos.request({\n method: \"cos_requestAccount\",\n params: { chainName: \"cosmoshub-4\" },\n});","response-1#Response":"type RequestAccountResponse = {\n name: string;\n address: string;\n publicKey: Uint8Array;\n isLedger: boolean;\n};\n{\n \"name\": \"account name\",\n \"address\": \"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow\",\n \"publicKey\": [\n 3, 77, 9, 189, 251, 249, 150, 235, 192, 56, 51, 98, 56, 242, 12, 102, 144,\n 211, 89, 42, 187, 170\n ],\n \"isLedger\": false\n}"}},"/extension/integration/cosmos/Deprecated/cw20-token":{"title":"CW20 token","data":{"":"@cosmostation/extension-client >= 0.1.7CW20 token via Cosmostation Extension","add-cw20-tokens#Add CW20 Tokens":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"// ...\nconst response = await provider.addCW20Tokens('mint', [\n {\n contractAddress: '',\n imageURL: 'https://pbs.twimg.com/profile_images/1465777324859826197/RUXx0equ_400x400.jpg', // optional\n coinGeckoId: 'neta', // optional\n },\n {\n contractAddress: '',\n },\n]);","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: 'cos_addTokensCW20',\n params: {\n chainName: 'mint',\n tokens: [\n {\n contractAddress: '',\n imageURL: 'https://pbs.twimg.com/profile_images/1465777324859826197/RUXx0equ_400x400.jpg', // optional\n coinGeckoId: 'neta', // optional\n },\n {\n contractAddress: '',\n },\n ],\n },\n});","response#Response":"export type AddCW20TokenResponse = null;\nnull","get-cw20-token-balance#Get CW20 Token Balance":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"// ...\nconst response = await provider.getCW20TokenBalance(\n 'mint',\n '', // contract address\n 'mint14xgdfdnpjtulj6p7rkc75ekxqjq8hc5cg5evx3', // address\n);","vanilla-code-1#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: 'cos_getBalanceCW20',\n params: {\n chainName: 'mint',\n contractAddress: '',\n address: 'mint14xgdfdnpjtulj6p7rkc75ekxqjq8hc5cg5evx3',\n },\n});","response-1#Response":"export type getCW20TokenBalanceResponse = string;\n\"1331775394\"","get-cw20-token-info#Get CW20 Token Info":"","code-using-cosmostationextension-client-2#Code using @cosmostation/extension-client":"// ...\nconst response = await provider.getCW20TokenInfo(\n 'mint',\n '', // contract address\n);","vanilla-code-2#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: 'cos_getTokenInfoCW20',\n params: {\n chainName: 'mint',\n contractAddress: '',\n },\n});","response-2#Response":"export type getCW20TokenInfoResponse = {\n decimals: number;\n name: string;\n symbol: string;\n total_supply: string;\n};\n{\n \"name\": \"NETA\",\n \"symbol\": \"NETA\",\n \"decimals\": 6,\n \"total_supply\": \"31886600000\"\n}"}},"/extension/integration/cosmos/Deprecated/chains":{"title":"Chains","data":{"":"Get supported chains and add specific chains for using Cosmostation Extension.","add-chains#Add chains":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"try {\n // ...\n await provider.addChain({\n chainId: \"cerberus-chain-1\",\n chainName: \"cerberus\",\n addressPrefix: \"cre\",\n baseDenom: \"ucrbrus\",\n displayDenom: \"CRBRUS\",\n restURL: \"https://lcd-office.cosmostation.io/mooncat-1-1\",\n coinType: \"118\", // optional (default: '118')\n decimals: 6, // optional (default: 6)\n gasRate: {\n // optional (default: { average: '0.025', low: '0.0025', tiny: '0.00025' })\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n sendGas: \"80000\", // optional (default: '100000')\n type: \"ETHERMINT\", // optional (default: '')\n });\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code#Vanilla Code":"await window.cosmostation.cosmos.request({\n method: \"cos_addChain\",\n params: {\n chainId: \"cerberus-chain-1\",\n chainName: \"cerberus\",\n addressPrefix: \"cre\",\n baseDenom: \"ucrbrus\",\n displayDenom: \"CRBRUS\",\n restURL: \"https://lcd-office.cosmostation.io/mooncat-1-1\",\n coinType: \"118\", // optional (default: '118')\n decimals: 6, // optional (default: 6)\n gasRate: {\n // optional (default: { average: '0.025', low: '0.0025', tiny: '0.00025' })\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n sendGas: \"80000\", // optional (default: '100000')\n type: \"ETHERMINT\", // optional (default: '')\n },\n});","response#Response":"type addChainResponse = boolean;\ntrue","keplr-to-cosmostation#keplr to cosmostation":"{\n chainId: chainInfo.chainId,\n addressPrefix: chainInfo.bech32Config.bech32PrefixAccAddr,\n baseDenom: chainInfo.currencies[0].coinMinimalDenom,\n chainName: chainInfo.chainName || chainInfo.chainId,\n displayDenom: chainInfo.currencies[0].coinDenom,\n decimals: chainInfo.currencies[0].coinDecimals,\n restURL: chainInfo.rest,\n coinType: String(chainInfo.bip44.coinType),\n gasRate: chainInfo.gasPriceStep\n ? {\n tiny: String(chainInfo.gasPriceStep.low),\n low: String(chainInfo.gasPriceStep.average),\n average: String(chainInfo.gasPriceStep.high),\n }\n : undefined,\n}\nexport interface KeplrChainInfo {\n readonly rpc: string;\n readonly rpcConfig?: AxiosRequestConfig;\n readonly rest: string;\n readonly restConfig?: AxiosRequestConfig;\n readonly chainId: string;\n readonly chainName: string;\n readonly stakeCurrency: Currency;\n readonly walletUrl?: string;\n readonly walletUrlForStaking?: string;\n readonly bip44: BIP44;\n readonly alternativeBIP44s?: BIP44[];\n readonly bech32Config: Bech32Config;\n readonly currencies: AppCurrency[];\n readonly feeCurrencies: FeeCurrency[];\n readonly features?: string[];\n readonly beta?: boolean;\n}","supported-chains#Supported chains":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"const supportedChains = await provider.getSupportedChains();","vanilla-code-1#Vanilla Code":"const supportedChains = await window.cosmostation.cosmos.request({\n method: \"cos_supportedChainNames\",\n});","response-1#Response":"type SupportedChainNamesResponse = {\n official: string[]; // lowercase\n unofficial: string[]; // lowercase\n};\n{\n \"official\": [\"cosmos\", \"osmosis\"],\n \"unofficial\": [\"test\"]\n}","supported-chainids#Supported chainIds":"","code-using-cosmostationextension-client-2#Code using @cosmostation/extension-client":"const supportedChains = await provider.getSupportedChainIds();","vanilla-code-2#Vanilla Code":"const supportedChainIds = await window.cosmostation.cosmos.request({\n method: \"cos_supportedChainIds\",\n});","response-2#Response":"type SupportedChainIdsResponse = {\n official: string[];\n unofficial: string[];\n};\n{\n \"official\": [\"cosmoshub-4\", \"gravity-bridge-3\"],\n \"unofficial\": [\"columbus-5\", \"agoric-3\"]\n}","activated-chains#Activated chains":"","code-using-cosmostationextension-client-3#Code using @cosmostation/extension-client":"const activatedChains = await provider.getActivatedChains();","vanilla-code-3#Vanilla Code":"const activatedChains = await window.cosmostation.cosmos.request({\n method: \"cos_activatedChainNames\",\n});","response-3#Response":"type ActivatedChainNamesResponse = string[]; // lowercase\n[\"cosmos\", \"osmosis\"]","activated-chainids#Activated chainIds":"","code-using-cosmostationextension-client-4#Code using @cosmostation/extension-client":"const activatedChainIds = await provider.getActivatedChainIds();","vanilla-code-4#Vanilla Code":"const activatedChainIds = await window.cosmostation.cosmos.request({\n method: \"cos_activatedChainIds\",\n});","response-4#Response":"type ActivatedChainIdsResponse = string[];\n[\"cosmoshub-4\", \"gravity-bridge-3\"]"}},"/extension/integration/cosmos/Deprecated/disconnect":{"title":"Disconnect","data":{"":"Disconnect from Dapp","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"const response = await provider.disconnect();","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_disconnect\",\n});","response#Response":"type DisconnectResponse = null;\nnull"}},"/extension/integration/cosmos/Deprecated/error":{"title":"Error","data":{"":"Error description\nCode\tModel\tDescription\t4001\t-\tUser rejected request\t4100\t-\tThe requested account and/or method has not been authorized by the user.\t4200\t-\tThe requested method is not supported\t-32000\t-\tInvalid input.\t-32600\t-\tThe JSON sent is not a valid Request object.\t-32602\t-\tInvalid method parameter(s).\t-32603\t-\tInternal JSON-RPC error."}},"/extension/integration/cosmos/Deprecated/event":{"title":"Event","data":{"":"Account change event","onaccountchanged#onAccountChanged":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"provider.onAccountChanged(() => console.log(\"changed\"));","vanilla-code#Vanilla Code":"window.addEventListener(\"cosmostation_keystorechange\", () => {\n console.log(\"Key store in Cosmostation is changed. You may need to refetch the account info.\")\n})","offaccountchanged#offAccountChanged":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"const event = provider.onAccountChanged(() => console.log(\"changed\"));\nprovider.offAccountChanged(event);","vanilla-code-1#Vanilla Code":"window.removeEventListener(\"cosmostation_keystorechange\", handler)"}},"/extension/integration/cosmos/Deprecated/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { cosmos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await cosmos();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"window.onload = async () => {\n if (!window.cosmostation) {\n alert(\"Please install cosmostation extension\");\n } else {\n // logic\n }\n};"}},"/extension/integration/cosmos/Deprecated/sign-message":{"title":"Sign Message","data":{"":"Sign Message via Cosmostation Extension","sign-message#Sign Message":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"try {\n // ...\n const response = await provider.signMessage(\n \"cosmoshub-4\",\n \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\", // signer\n \"message!!!!\" // message\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signMessage\",\n params: {\n chainName: \"cosmoshub-4\",\n signer: \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n message: \"message!!!!\",\n },\n});","response#Response":"export type SignMessageResponse = {\n signature: string;\n pub_key: { type: string; value: string };\n};\n{\n \"pub_key\": {\n \"type\": \"tendermint/PubKeySecp256k1\",\n \"value\": \"A00Jvfv5luvAODNiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"signature\": \"signature==\"\n}","verifymessage#VerifyMessage":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"try {\n const response = await provider.signMessage(\n \"cosmoshub-4\",\n \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n \"message!!!!\"\n );\n const result = await provider.verifyMessage(\n \"cosmoshub-4\",\n \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n \"message!!!!\",\n response\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code-1#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signMessage\",\n params: {\n chainName: \"cosmoshub-4\",\n signer: \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n message: \"message!!!!\",\n },\n});\nconst result = await window.cosmostation.cosmos.request({\n method: \"cos_verifyMessage\",\n params: {\n chainName: \"cosmoshub-4\",\n signer: \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n message: \"message!!!!\",\n publicKey: response.pub_key.value,\n signature: response.signature,\n },\n});","response-1#Response":"export type VerifyMessageResponse = boolean;\ntrue"}},"/extension/integration/cosmos/Deprecated/sign-tx":{"title":"Sign Transactions","data":{"":"Sign transcation via Cosmostation Extension","sign-amino#Sign Amino":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"try {\n // ...\n const response = await provider.signAmino(\n \"cosmoshub-4\",\n {\n chain_id: \"cosmoshub-4\",\n fee: { amount: [{ denom: \"uatom\", amount: \"5000\" }], gas: \"200000\" },\n memo: \"\",\n msgs: [\n {\n type: \"cosmos-sdk/MsgSend\",\n value: {\n from_address: \"cosmos1wepghweioghweiog\",\n to_address: \"cosmos1weogihweoighweoigheoiw\",\n amount: [{ denom: \"uatom\", amount: \"5000\" }],\n },\n },\n ],\n sequence: \"20\",\n account_number: \"632177\",\n },\n {\n memo: true, // optional\n fee: true, // optional\n gasRate: {\n // optional\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n }\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signAmino\",\n params: {\n chainName: \"cosmoshub-4\",\n doc: {\n chain_id: \"cosmoshub-4\",\n fee: { amount: [{ denom: \"uatom\", amount: \"5000\" }], gas: \"200000\" },\n memo: \"\",\n msgs: [\n {\n type: \"cosmos-sdk/MsgSend\",\n value: {\n from_address: \"cosmos1wepghweioghweiog\",\n to_address: \"cosmos1weogihweoighweoigheoiw\",\n amount: [{ denom: \"uatom\", amount: \"5000\" }],\n },\n },\n ],\n sequence: \"20\",\n account_number: \"632177\",\n },\n isEditMemo: true, // optional\n isEditFee: true, // optional\n gasRate: {\n // optional\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n },\n});","response#Response":"export type SignAminoResponse = {\n signature: string;\n pub_key: { type: string; value: string };\n signed_doc: SignAminoDoc;\n};\nexport type SignAminoDoc = {\n chain_id: string;\n sequence: string;\n account_number: string;\n fee: Fee;\n memo: string;\n msgs: Msg[];\n};\nexport type Amount = {\n denom: string;\n amount: string;\n};\nexport type Msg = {\n type: string;\n value: T;\n};\nexport type Fee = { amount: Amount[]; gas: string };\n{\n \"pub_key\": {\n \"type\": \"tendermint/PubKeySecp256k1\",\n \"value\": \"A00Jvfv5luvAODNiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"signature\": \"signature==\",\n \"signed_doc\": {\n \"chain_id\": \"cosmoshub-4\",\n \"fee\": {\n \"amount\": [{ \"denom\": \"uatom\", \"amount\": \"5000\" }],\n \"gas\": \"200000\"\n },\n \"memo\": \"\",\n \"msgs\": [\n {\n \"type\": \"cosmos-sdk/MsgSend\",\n \"value\": {\n \"from_address\": \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n \"to_address\": \"cosmos1ursv4z57pw8ly2jsgn09dyjha4qrk7aen987ld\",\n \"amount\": [{ \"denom\": \"uatom\", \"amount\": \"5000\" }]\n }\n }\n ],\n \"sequence\": \"20\",\n \"account_number\": \"632177\"\n }\n}","sign-direct#Sign Direct":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"try {\n // ...\n const response = await provider.signDirect(\n \"cosmos\",\n {\n chain_id: \"cosmoshub-4\",\n account_number: \"1\",\n auth_info_bytes: [\n 10, 80, 10, 70, 10, 31, 47, 99, 111, 115, 109, 111, 115, 46, 99, 114,\n 121, 112, 116, 111, 46, 115, 101, 99, 112, 50, 53, 54, 107, 49, 46, 80,\n 117, 98, 75, 101, 121, 18, 35, 10, 33, 3, 77, 9, 189, 251, 249, 150,\n 235, 192, 56, 51, 98, 56, 242, 12, 102, 144, 211, 89, 42, 187, 170, 250,\n 5, 87, 201, 59, 166, 215, 108, 14, 162, 212, 18, 4, 10, 2, 8, 127, 24,\n 14, 18, 19, 10, 13, 10, 5, 117, 97, 116, 111, 109, 18, 4, 50, 48, 48,\n 48, 16, 128, 241, 4,\n ],\n body_bytes: [\n 10, 133, 1, 10, 28, 47, 99, 111, 115, 109, 111, 115, 46, 98, 97, 110,\n 107, 46, 118, 49, 98, 101, 116, 97, 49, 46, 77, 115, 103, 83, 101, 110,\n 100, 18, 101, 10, 42, 99, 114, 101, 49, 103, 114, 48, 101, 51, 112, 106,\n 51, 121, 54, 102, 113, 118, 122, 121, 102, 109, 48, 113, 120, 121, 119,\n 57, 104, 53, 100, 119, 102, 114, 118, 104, 56, 120, 121, 122, 114, 115,\n 118, 18, 42, 99, 114, 101, 49, 120, 53, 119, 103, 104, 54, 118, 119,\n 121, 101, 54, 48, 119, 118, 51, 100, 116, 115, 104, 115, 57, 100, 109,\n 113, 103, 103, 119, 102, 120, 50, 108, 100, 104, 103, 108, 117, 101,\n 122, 26, 11, 10, 4, 117, 99, 114, 101, 18, 3, 49, 48, 48, 18, 0,\n ],\n },\n { memo: true, fee: true } // edit | optional (default: { memo: false, fee: false }),\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code-1#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signDirect\",\n params: {\n chainName: \"cosmos\",\n doc: {\n chain_id: \"cosmoshub-4\",\n account_number: \"1\",\n auth_info_bytes: [\n 10, 80, 10, 70, 10, 31, 47, 99, 111, 115, 109, 111, 115, 46, 99, 114,\n 121, 112, 116, 111, 46, 115, 101, 99, 112, 50, 53, 54, 107, 49, 46, 80,\n 117, 98, 75, 101, 121, 18, 35, 10, 33, 3, 77, 9, 189, 251, 249, 150,\n 235, 192, 56, 51, 98, 56, 242, 12, 102, 144, 211, 89, 42, 187, 170, 250,\n 5, 87, 201, 59, 166, 215, 108, 14, 162, 212, 18, 4, 10, 2, 8, 127, 24,\n 14, 18, 19, 10, 13, 10, 5, 117, 97, 116, 111, 109, 18, 4, 50, 48, 48,\n 48, 16, 128, 241, 4,\n ],\n body_bytes: [\n 10, 133, 1, 10, 28, 47, 99, 111, 115, 109, 111, 115, 46, 98, 97, 110,\n 107, 46, 118, 49, 98, 101, 116, 97, 49, 46, 77, 115, 103, 83, 101, 110,\n 100, 18, 101, 10, 42, 99, 114, 101, 49, 103, 114, 48, 101, 51, 112, 106,\n 51, 121, 54, 102, 113, 118, 122, 121, 102, 109, 48, 113, 120, 121, 119,\n 57, 104, 53, 100, 119, 102, 114, 118, 104, 56, 120, 121, 122, 114, 115,\n 118, 18, 42, 99, 114, 101, 49, 120, 53, 119, 103, 104, 54, 118, 119,\n 121, 101, 54, 48, 119, 118, 51, 100, 116, 115, 104, 115, 57, 100, 109,\n 113, 103, 103, 119, 102, 120, 50, 108, 100, 104, 103, 108, 117, 101,\n 122, 26, 11, 10, 4, 117, 99, 114, 101, 18, 3, 49, 48, 48, 18, 0,\n ],\n },\n isEditFee: true,\n isEditMemo: true,\n },\n});","response-1#Response":"export type SignDirectDoc = {\n chain_id: string;\n body_bytes: Uint8Array;\n auth_info_bytes: Uint8Array;\n account_number: string;\n};\nexport type SignDirectResponse = {\n signature: string;\n pub_key: { type: string; value: string };\n signed_doc: SignDirectDoc;\n};\n{\n \"pub_key\": {\n \"type\": \"tendermint/PubKeySecp256k1\",\n \"value\": \"A00Jvfv5luvAODNiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"signature\": \"signature==\",\n \"signed_doc\": {\n \"chain_id\": \"cosmoshub-4\",\n \"account_number\": \"1\",\n \"auth_info_bytes\": [\n 10, 80, 10, 70, 10, 31, 47, 99, 111, 115, 109, 111, 115, 46, 99, 114, 121,\n 112, 116, 111, 46, 115, 101, 99, 112, 50, 53, 54, 107, 49, 46, 80, 117,\n 98, 75, 101, 121, 18, 35, 10, 33, 3, 77, 9, 189, 251, 249, 150, 235, 192,\n 56, 51, 98, 56, 242, 12, 102, 144, 211, 89, 42, 187, 170, 250, 5, 87, 201,\n 59, 166, 215, 108, 14, 162, 212, 18, 4, 10, 2, 8, 127, 24, 14, 18, 19, 10,\n 13, 10, 5, 117, 97, 116, 111, 109, 18, 4, 50, 48, 48, 48, 16, 128, 241, 4\n ],\n \"body_bytes\": [\n 10, 133, 1, 10, 28, 47, 99, 111, 115, 109, 111, 115, 46, 98, 97, 110, 107,\n 46, 118, 49, 98, 101, 116, 97, 49, 46, 77, 115, 103, 83, 101, 110, 100,\n 18, 101, 10, 42, 99, 114, 101, 49, 103, 114, 48, 101, 51, 112, 106, 51,\n 121, 54, 102, 113, 118, 122, 121, 102, 109, 48, 113, 120, 121, 119, 57,\n 104, 53, 100, 119, 102, 114, 118, 104, 56, 120, 121, 122, 114, 115, 118,\n 18, 42, 99, 114, 101, 49, 120, 53, 119, 103, 104, 54, 118, 119, 121, 101,\n 54, 48, 119, 118, 51, 100, 116, 115, 104, 115, 57, 100, 109, 113, 103,\n 103, 119, 102, 120, 50, 108, 100, 104, 103, 108, 117, 101, 122, 26, 11,\n 10, 4, 117, 99, 114, 101, 18, 3, 49, 48, 48, 18, 0\n ]\n }\n}"}},"/extension/integration/cosmos/integrate-cosmjs":{"title":"Integrate cosmjs","data":{"":"Integrate cosmjs.","add-package#Add package":"yarn add @cosmostation/cosmos-client\nnpm install @cosmostation/cosmos-client","offline-signer#Offline Signer":"import { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nimport { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nimport { GasPrice, calculateFee } from \"@cosmjs/stargate\";\nimport { SigningCosmWasmClient } from \"@cosmjs/cosmwasm-stargate\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nconst rpcEndpoint = RPC_END_POINT;\nconst client = await SigningCosmWasmClient.connectWithSigner(\n rpcEndpoint,\n offlineSigner\n);\n//getAccounts\nconst accounts = await offlineSigner.getAccounts();\n//execute\nconst gasPrice = GasPrice.fromString(\"0.01denom\");\nconst fees = {\n upload: calculateFee(1500000, gasPrice),\n init: calculateFee(500000, gasPrice),\n exec: calculateFee(500000, gasPrice),\n};\nconst result = await client.execute(\n accounts[0].address,\n RECEIPT_ADDRESS,\n MESSAGE,\n fees.exec\n);"}},"/extension/integration/cosmos/integrate-keplr":{"title":"Use Cosmostation with Keplr Interface","data":{"":"Cosmostation is providing Keplr's interface. The purpose is to make it easier for the developers to integrate Cosmostation to dApps that have Keplr integrated already.Supported functions/variables are as belows:\ndefaultOptions\nenable\ngetKey\nexperimentalSuggestChain\ngetOfflineSigner\ngetOfflineSignerAuto\ngetOfflineSignerOnlyAmino\nsendTx\nsignAmino\nsignDirect\nsignArbitrary\nverifyArbitrary\nIn case of an error, use the Cosmostation interface.You need to use methods provided by Cosmostation for the event handling and defaultOptions change.\nHere's the guide:","guide#Guide":"Use window.cosmostation.providers.keplr instead of window.keplr.\nwindow.onload = async () => {\n if (!window.cosmostation) {\n alert(\"Please install cosmostation extension\");\n } else {\n const chainId = \"cosmoshub-4\";\n await window.cosmostation.providers.keplr.enable(chainId);\n const offlineSigner =\n window.cosmostation.providers.keplr.getOfflineSigner(chainId);\n const accounts = await offlineSigner.getAccounts();\n }\n};\nasync getKeplr(): Promise {\n if (window.cosmostation) {\n return window.cosmostation.providers.keplr;\n }\n if (document.readyState === \"complete\") {\n return window.cosmostation.providers.keplr;\n }\n return new Promise((resolve) => {\n const documentStateChange = (event: Event) => {\n if (\n event.target &&\n (event.target as Document).readyState === \"complete\"\n ) {\n resolve(window.cosmostation.providers.keplr);\n document.removeEventListener(\"readystatechange\", documentStateChange);\n }\n };\n document.addEventListener(\"readystatechange\", documentStateChange);\n });\n}","defaultoptions#defaultOptions":"window.cosmostation.providers.keplr.defaultOptions = {\n sign: {\n preferNoSetFee: true,\n preferNoSetMemo: true,\n },\n};","event#Event":"window.addEventListener(\"cosmostation_keystorechange\", () => {\n console.log(\"Key store in Cosmostation is changed. You may need to refetch the account info.\")\n})"}},"/extension/integration/cosmos/react-hook":{"title":"React hook","data":{"installation#Installation":"The Cosmostation wallet hook package lives in npm. To install the latest stable version, run the following command:\nnpm install @cosmostation/use-wallets\nOr if you're using yarn:\nyarn add @cosmostation/use-wallets","cosmosprovider#CosmosProvider":"Components that use cosmos wallet state need CosmosProvider to appear somewhere in the parent tree. A good place to put this is in your root component:\nimport { CosmosProvider } from '@cosmostation/use-wallets';\nfunction App() {\n return (\n \n \n \n );\n}","usecosmoswallets#useCosmosWallets":"With useCosmosWallets, you can select a list of wallets, the wallet you are currently using, and the wallet you want to use.\nThe wallet list is automatically inserted in extensions.If you would like to add a wallet, click here","selectwallet#selectWallet":"import { useCosmosWallets } from '@cosmostation/use-wallets';\nfunction Connect() {\n const { cosmosWallets, selectWallet } = useCosmosWallets();\n return (\n
\n {cosmosWallets.map((wallet) => (\n {\n selectWallet(wallet.id);\n }}\n key={wallet.id}\n >\n {wallet.name} {wallet.name}\n \n ))}\n
\n );\n}","addchain#addChain":"import { useCosmosWallets } from '@cosmostation/use-wallets';\nfunction AddCustomChain() {\n const { currentWallet } = useCosmosWallets();\n return (\n
\n {\n try {\n if (!currentWallet) {\n throw new Error('No Selected Wallet');\n }\n await currentWallet.methods.addChain({\n chain_id: 'custom-chain-1',\n chain_name: 'custom-chain',\n address_prefix: 'custom',\n base_denom: 'ucustom',\n display_denom: 'CUSTOM',\n lcd_url: 'https://rpc.custom-chain.com',\n decimals: 6, // optional\n coin_type: \"118'\", // optional\n });\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Add Custom Chain\n \n
\n );\n}","usecosmosaccount#useCosmosAccount":"With useCosmosAccount, you can get the account information of the wallet you are currently using.","account#Account":"Account automatically requests account information the moment a wallet is selected. If you want to request more manually, you can use 'mutate'.\nType\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function Account() {\n const { data, error, mutate } = useCosmosAccount('cosmoshub-4');\n useEffect(() => {\n console.log('address', data?.account);\n console.log('error', error);\n }, [data, error]);\n return ;\n}","methods#Methods":"the available methods in the selected account. (e.g. sign)\nType","disconnect#disconnect":"import { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function Account() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return ;\n}","signamino#signAmino":"Amino Doc Type\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAmino() {\n const { data } = useCosmosAccount('cosmoshub-4');\n const sendExampleDoc = {\n // ...\n };\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n console.dir(await data?.methods.signAmino(sendExampleDoc), { depth: 100 });\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign Amino\n \n );\n}","signdirect#signDirect":"Direct Doc Type\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignDirect() {\n const { data } = useCosmosAccount('cosmoshub-4');\n const sendExampleDoc = {\n // ...\n };\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n const result = await data.methods.signDirect(sendExampleDoc);\n console.dir(result, { depth: 100 });\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign Direct\n \n );\n}","signandsendtransaction#signAndSendTransaction":"A method that combines sign and send using signDirect\nReceives message as json and automates creation of protobufJSON e.g.\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAndSendTransaction() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n console.dir(\n await data?.methods.signAndSendTransaction({\n messages: [\n {\n type_url: '/cosmos.bank.v1beta1.MsgSend',\n value: {\n from_address: data?.account.address,\n to_address: data?.account.address,\n amount: [\n {\n denom: 'uatom',\n amount: '1',\n },\n ],\n },\n },\n ],\n memo: 'Test (Sign And Send Transaction)',\n }),\n { depth: 100 },\n );\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign And Send Transaction\n \n );\n}","signmessage#signMessage":"sign arbitrary bytes\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAndSendTransaction() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n if (!data.methods.signMessage) {\n throw new Error('No signMessage method');\n }\n const message = '(test) sign message';\n console.dir(await data.methods.signMessage(message));\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign Message\n \n );\n}","verifymessage#verifyMessage":"verify arbitrary bytes\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAndSendTransaction() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n if (!data.methods.signMessage) {\n throw new Error('No signMessage method');\n }\n if (!data.methods.verifyMessage) {\n throw new Error('No verifyMessage method');\n }\n const message = '(test) sign message';\n const response = await data.methods.signMessage(message);\n const verify = await data.methods.verifyMessage(message, response.signature);\n console.log(verify ? 'verified' : 'not verified');\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Verify Message\n \n );\n}","type#Type":"","account-1#Account":"interface Account {\n data?: {\n account: CosmosAccount;\n methods: CosmosMethods;\n };\n error?: string;\n mutate: () => void;\n}","cosmosaccount#CosmosAccount":"interface CosmosAccount {\n address: string;\n public_key: {\n type: CosmosPublicKeyType;\n value: string;\n };\n name?: string;\n is_ledger?: boolean;\n}","cosmospublickeytype#CosmosPublicKeyType":"type CosmosPublicKeyType = 'secp256k1' | 'ethsecp256k1';","cosmosmethods#CosmosMethods":"interface CosmosMethods {\n signAndSendTransaction: (\n props: SignAndSendTransactionProps,\n options?: SignOptions,\n ) => Promise;\n signAmino: (\n document: CosmosSignAminoDoc,\n options?: SignOptions,\n ) => Promise;\n signDirect: (\n document: CosmosSignDirectDoc,\n options?: SignOptions,\n ) => Promise;\n sendTransaction: (\n tx_bytes: Uint8Array | string,\n mode?: number,\n ) => Promise;\n getSupportedChainIds: () => Promise;\n signMessage?: (message: string, signer: string) => Promise;\n verifyMessage?: (message: string, signature: string) => Promise;\n}","cosmossignaminodoc#CosmosSignAminoDoc":"interface CosmosSignAminoDoc {\n sequence: string;\n account_number: string;\n fee: {\n amount?: {\n denom: string;\n amount: string;\n }[];\n gas: string;\n };\n memo: string;\n msgs: {\n type: string;\n value: any;\n }[];\n}","cosmossignaminoresponse#CosmosSignAminoResponse":"interface CosmosSignAminoResponse {\n signature: string;\n signed_doc: any;\n}","cosmossigndirectdoc#CosmosSignDirectDoc":"interface CosmosSignDirectDoc {\n account_number: string;\n body_bytes: string | Uint8Array;\n auth_info_bytes: string | Uint8Array;\n}","cosmossigndirectresponse#CosmosSignDirectResponse":"interface CosmosSignDirectResponse {\n signature: string;\n signed_doc: CosmosSignedDoc;\n}","signandsendtransactionprops#SignAndSendTransactionProps":"interface CosmosSignAndSendTransactionProps {\n messages: Message[];\n memo?: string;\n fee?: Fee;\n sequence?: number;\n lcd_url?: string;\n fee_denom?: string;\n gas_rate?: number;\n payer?: string;\n granter?: string;\n}\ninterface CosmosMessage {\n type_url: string;\n value?: unknown;\n}","cosmosfee#CosmosFee":"interface CosmosFee {\n amount: Amount[];\n gas_limit: number;\n payer?: string;\n granter?: string;\n}\ninterface CosmosAmount {\n denom: string;\n amount: number;\n}"}},"/extension/integration/cosmos/proto":{"title":"Protobuf JSON","data":{"":"Automatically creates json as a transaction in protobuf format.\nWhen using signAndTransaction, send a message as shown below.This is an example. You can request it by filling in the value in [input].","test#Test":"You can test it by connecting directly to your wallet. Please refer to the example below and send a transaction.\nIt will be sent directly to the cosmoshub-4 mainnet, so don't sign if you don't want to.","1-connect#1. Connect":"","2-get-account#2. Get Account":"","3-sign-and-send-transaction#3. Sign And Send Transaction":"It is editable.\nYou can send multiple messages.","example#Example":"","send#Send":"{\n \"type_url\": \"/cosmos.bank.v1beta1.MsgSend\",\n \"value\": {\n \"from_address\": \"from_address\", // [input]: string\n \"to_address\": \"to_address\", // [input]: string\n \"amount\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n}","multisend#MultiSend":"{\n \"type_url\": \"/cosmos.bank.v1beta1.MsgMultiSend\",\n \"value\": {\n \"inputs\": [\n {\n \"address\": \"address\", // [input]: string\n \"coins\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n ],\n \"outputs\": [\n {\n \"address\": \"address\", // [input]: string\n \"coins\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n ]\n }\n}","delegate#Delegate":"{\n \"type_url\": \"/cosmos.staking.v1beta1.MsgDelegate\",\n \"value\": {\n \"delegator_address\": \"delegator_address\", // [input]: string\n \"validator_address\": \"validator_address\", // [input]: string\n \"amount\": {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n }\n}","redelegate#Redelegate":"{\n \"type_url\": \"/cosmos.staking.v1beta1.MsgBeginRedelegate\",\n \"value\": {\n \"delegator_address\": \"[input]\", // [input]: string\n \"validator_src_address\": \"[input]\", // [input]: string\n \"validator_dst_address\": \"[input]\", // [input]: string\n \"amount\": {\n \"denom\": \"[input]\", // [input]: string\n \"amount\": \"[input]\" // [input]: string\n }\n }\n}","undelegate#Undelegate":"{\n \"type_url\": \"/cosmos.staking.v1beta1.MsgUndelegate\",\n \"value\": {\n \"delegator_address\": \"delegator_address\", // [input]: string\n \"validator_address\": \"validator_address\", // [input]: string\n \"amount\": {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n }\n}","reward#Reward":"{\n \"type_url\": \"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\",\n \"value\": {\n \"delegator_address\": \"delegator_address\", // [input]: string\n \"validator_address\": \"validator_address\" // [input]: string\n }\n}","vote#Vote":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgVote\",\n \"value\": {\n \"proposal_id\": 823, // [input]: number\n \"voter\": \"voter\", // [input]: string\n \"option\": 1 // [input]: number (yes: 1, abstain: 2, no: 3, no_with_veto: 4)\n }\n}","vote-options#Vote Options":"enum VoteOption {\n VOTE_OPTION_UNSPECIFIED = 0,\n VOTE_OPTION_YES = 1,\n VOTE_OPTION_ABSTAIN = 2,\n VOTE_OPTION_NO = 3,\n VOTE_OPTION_NO_WITH_VETO = 4\n}","ibc-transfer#IBC Transfer":"{\n \"type_url\": \"/ibc.applications.transfer.v1.MsgTransfer\",\n \"value\": {\n \"source_port\": \"source_port\", // [input]: string\n \"source_channel\": \"source_channel\", // [input]: string\n \"token\": {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n },\n \"sender\": \"sender\", // [input]: string\n \"receiver\": \"receiver\", // [input]: string\n \"timeout_height\": {\n \"revision_height\": 13594714, // [input]: number\n \"revision_number\": 2 // [input]: number\n },\n \"memo\": \"\" // [input]: string\n }\n}","cosmwasm-executecontract#Cosmwasm ExecuteContract":"{\n \"type_url\": \"/cosmwasm.wasm.v1.MsgExecuteContract\",\n \"value\": {\n \"sender\": \"sender\", // [input]: string\n \"contract\": \"contract\", // [input]: string\n \"funds\": [], // [input]: unknown[]\n \"msg\": [1, 2] // [input]: Buffer or Uint8Array\n }\n}","proposal#Proposal":"","textproposal#TextProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.gov.v1beta1.TextProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\" // [input]: string\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","clientupdateproposal#ClientUpdateProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/ibc.core.client.v1.ClientUpdateProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"subject_client_id\": \"subject_client_id\", // [input]: string\n \"substitute_client_id\": \"substitute_client_id\" // [input]: string\n }\n },\n \"initial_deposit\": [],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","communitypoolspendproposal#CommunityPoolSpendProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"recipient\": \"recipient\", // [input]: string\n \"amount\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","parameterchangeproposal#ParameterChangeProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.params.v1beta1.ParameterChangeProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"changes\": [\n {\n \"subspace\": \"subspace\", // [input]: string\n \"key\": \"key\", // [input]: string\n \"value\": \"value\" // [input]: string\n }\n ]\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","softwareupgradeproposal#SoftwareUpgradeProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"plan\": {\n \"name\": \"name\", // [input]: string\n \"height\": \"height\", // [input]: string\n \"info\": \"info\", // [input]: string\n \"upgraded_client_state\": null // [input]: null or IAny\n }\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","grant#Grant":"","delegate-grant#Delegate Grant":"{\n \"type_url\": \"/cosmos.authz.v1beta1.MsgGrant\",\n \"value\": {\n \"granter\": \"granter\", // [input]: string\n \"grantee\": \"grantee\", // [input]: string\n \"grant\": {\n \"authorization\": {\n \"type_url\": \"/cosmos.staking.v1beta1.StakeAuthorization\",\n \"value\": {\n \"allow_list\": {\n \"address\": [\"address\", \"address\"] // [input]: string[]\n },\n \"authorization_type\": 1 // [input]: number\n }\n },\n \"expiration\": {\n \"type_url\": \"/google.protobuf.Timestamp\",\n \"value\": {\n \"seconds\": 5325252355 // [input]: number (unix time)\n }\n }\n }\n }\n}","revoke-delegate-grant#Revoke Delegate Grant":"{\n \"type_url\": \"/cosmos.authz.v1beta1.MsgRevoke\",\n \"value\": {\n \"granter\": \"granter\", // [input]: string\n \"grantee\": \"grantee\", // [input]: string\n \"msg_type_url\": \"/cosmos.staking.v1beta1.MsgDelegate\"\n }\n}","authorization-type#Authorization Type":"type AuthorizationType = {\n AUTHORIZATION_TYPE_UNSPECIFIED = 0,\n AUTHORIZATION_TYPE_DELEGATE = 1,\n AUTHORIZATION_TYPE_UNDELEGATE = 2,\n AUTHORIZATION_TYPE_REDELEGATE = 3\n}"}},"/extension/integration/cosmos/typescript":{"title":"Typescript","data":{"installation#Installation":"The Cosmostation wallet package lives in npm. To install the latest stable version, run the following command:\nnpm install @cosmostation/extension\nOr if you're using yarn:\nyarn add @cosmostation/extension","account#Account":"","request-account#Request account":"Get account information\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const account = await provider.requestAccount();\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Request Account\n;","disconnect#Disconnect":"Disconnect from the extension\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const account = await provider.requestAccount();\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Disconnect\n;","sign#Sign":"","signamino#SignAmino":"Signing with amino in the legacy way.\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const doc = {\n // ...\n };\n const response = await provider.signAmino(doc);\n console.log(response.signatures);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Amino\n;","signdirect#SignDirect":"Signing based on protobuf\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const doc = {\n // ...\n };\n const response = await provider.signDirect(doc);\n console.log(response.signatures);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Direct\n;","signandsendtransaction#SignAndSendTransaction":"A method that combines sign and send using signDirect\nReceives message as json and automates creation of protobufJSON e.g.\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const account = await provider.requestAccount();\n const response = await provider.signAndSendTransaction({\n messages: [\n {\n type_url: '/cosmos.bank.v1beta1.MsgSend',\n value: {\n from_address: account.address,\n to_address: account.address,\n amount: [\n {\n denom: 'uatom',\n amount: '1',\n },\n ],\n },\n },\n ],\n memo: 'Test (Sign And Send Transaction)',\n });\n console.log(response);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign And Send Transaction\n;","signmessage#SignMessage":"sign arbitrary bytes\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const response = await provider.signMessage('Test (Sign Message)');\n console.log(response.signature);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Message\n;","verifymessage#verifyMessage":"verify arbitrary bytes\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const text = 'Test (Sign Message)';\n const signResponse = await provider.signMessage(text);\n const verifyResponse = await provider.verifyMessage(text, signResponse.signature);\n console.log(verifyResponse ? 'verified' : 'not verified');\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign & Verify Message\n;","addcustomchain#AddCustomChain":"Add a chain or testnet chain that is not officially provided by the extension.\nimport { cosmosFunctions } from '@cosmostation/extension';\n {\n try {\n const response = cosmosFunctions.addCosmosChain({\n chainId: 'custom-chain-1',\n chainName: 'custom-chain',\n addressPrefix: 'custom',\n baseDenom: 'ucustom',\n displayDenom: 'CUSTOM',\n restURL: 'https://rpc.custom-chain.com',\n decimals: 6, // optional\n coinType: \"118'\", // optional\n });\n console.log(response.tx_response.txhash);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Add a custom chain\n;","event#Event":"","addeventlistener#addEventListener":"window.addEventListener('cosmostation_keystorechange', () => {\n console.log('Key store in Cosmostation is changed. You may need to refetch the account info.');\n});","removeeventlistener#removeEventListener":"window.removeEventListener('cosmostation_keystorechange', handler);"}},"/extension/integration/cosmos/vanilla":{"title":"Vanilla","data":{"":"This code can be used without any installation.","account#Account":"Get account information\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const account = await window.cosmostation.cosmos.request({\n method: 'cos_requestAccount',\n params: { chainName: 'cosmoshub-4' },\n });\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Request Account\n","sign#Sign":"","signamino#SignAmino":"Signing with amino in the legacy way.\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const doc = {\n //...\n };\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_signAmino',\n params: { chainName: 'cosmoshub-4', doc },\n });\n console.log(response.signature);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Amino\n","signdirect#SignDirect":"Signing based on protobuf\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const doc = {\n // ...\n };\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_signDirect',\n params: {\n chainName: 'cosmoshub-4',\n doc,\n },\n });\n console.log(response.signatures);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Direct\n","signmessage#SignMessage":"sign arbitrary bytes\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const account = await window.cosmostation.cosmos.request({\n method: 'cos_requestAccount',\n params: { chainName: 'cosmoshub-4' },\n });\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_signMessage',\n params: {\n chainName: 'cosmoshub-4',\n message: 'Test (Sign Message)',\n signer: account.address,\n },\n });\n console.log(response.signature);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Message\n","verifymessage#VerifyMessage":"verify arbitrary bytes\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const message = 'Test (Sign Message)';\n const account = await window.cosmostation.cosmos.request({\n method: 'cos_requestAccount',\n params: { chainName: 'cosmoshub-4' },\n });\n const signResponse = await window.cosmostation.cosmos.request({\n method: 'cos_signMessage',\n params: {\n chainName: 'cosmoshub-4',\n message,\n signer: account.address,\n },\n });\n const verifyResponse = await window.cosmostation.cosmos.request({\n method: 'cos_verifyMessage',\n params: {\n chainName: 'cosmoshub-4',\n message,\n signer: account.address,\n publicKey: signResponse.pub_key.value,\n signature: signResponse.signature,\n },\n });\n console.log(verifyResponse ? 'verified' : 'not verified');\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign & Verify Message\n","addcw20token#AddCW20Token":" {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n await window.cosmostation.cosmos.request({\n method: 'cos_addTokensCW20',\n params: {\n chainName: 'juno-1',\n tokens: [\n {\n contractAddress: '',\n },\n ],\n },\n });\n console.log('added');\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Add CW20 Tokens\n","addcustomchain#AddCustomChain":"Add a chain or testnet chain that is not officially provided by the extension.\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_addChain',\n params: {\n chainId: 'custom-chain-1',\n chainName: 'custom-chain',\n addressPrefix: 'custom',\n baseDenom: 'ucustom',\n displayDenom: 'CUSTOM',\n restURL: 'https://rpc.custom-chain.com',\n decimals: 6, // optional\n coinType: '118', // optional\n },\n });\n console.log(response.tx_response.txhash);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Add a custom chain\n","event#Event":"","addeventlistener#addEventListener":"window.addEventListener('cosmostation_keystorechange', () => {\n console.log('Key store in Cosmostation is changed. You may need to refetch the account info.');\n});","removeeventlistener#removeEventListener":"window.removeEventListener('cosmostation_keystorechange', handler);"}},"/extension/integration/evm/event":{"title":"Event","data":{"accountschanged#accountsChanged":"If current account is connected to the dApp, return an array of address. Otherwise, return an empty array.\nimport { ethers } from \"ethers\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const handler = provider.on(\"accountsChanged\", (accounts) => {\n if(accounts.length === 0 ) {\n console.log(provider.request({'eth_requestAccounts'}))\n } else {\n console.log(accounts)\n }\n });\n provider.off(handler)\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}","chainchanged#chainChanged":"import { ethers } from \"ethers\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const handler = provider.on(\"chainChanged\", (chainId) => {\n console.log(chainId);\n });\n provider.off(handler);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}"}},"/extension/integration/cosmos/wallet":{"title":"Wallet","data":{"":"The interface of each Cosmos wallet is different, and in order to solve the problem of having to manually attach each wallet to the Dapp, it was developed to automatically add the same interface and wallet.","installation#Installation":"npm install @cosmostation/wallets\nOr if you're using yarn:\nyarn add @cosmostation/wallets","add-wallet#Add Wallet":"To detect a wallet, it is ideal to inject it directly from the extension, but it is also possible to manually inject a wallet that has not been injected into a dapp.Example\nimport { registerCosmosWallet, CosmosRegisterWallet } from '@cosmostation/wallets';\n {\n const wallet: CosmosRegisterWallet = {\n // ...\n };\n registerCosmosWallet(wallet);\n }}\n>\n Register Wallet\n;\ngo to test","example#Example":"This is an example of adding keplr and leap wallet.","keplr#Keplr":"import { registerCosmosWallet, CosmosRegisterWallet } from '@cosmostation/wallets';\n {\n if (!window.keplr) {\n alert('Keplr extension is not installed');\n return;\n }\n const wallet: CosmosRegisterWallet = {\n name: 'Keplr',\n logo: 'https://wallet.keplr.app/keplr-brand-assets/keplr-logo.svg',\n events: {\n on(type, listener) {\n if (type === 'AccountChanged') {\n window.addEventListener('keplr_keystorechange', listener);\n }\n },\n off(type, listener) {\n if (type === 'AccountChanged') {\n window.removeEventListener('keplr_keystorechange', listener);\n }\n },\n },\n methods: {\n getSupportedChainIds: async () => {\n return ['cosmoshub-4'];\n },\n connect: async (chainIds) => {\n const cIds = typeof chainIds === 'string' ? [chainIds] : chainIds;\n const supportedChainIds = await wallet.methods.getSupportedChainIds();\n if (!cIds.every((cId) => supportedChainIds.includes(cId))) {\n throw new Error('Unsupported chainId is exist');\n }\n await window.keplr.enable(chainIds);\n },\n getAccount: async (chainId) => {\n const response = await window.keplr.getKey(chainId);\n return {\n address: response.bech32Address,\n name: response.name,\n public_key: {\n type: response.algo,\n value: Buffer.from(response.pubKey).toString('base64'),\n },\n is_ledger: response.isNanoLedger,\n };\n },\n signAmino: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.keplr.defaultOptions.sign.disableBalanceCheck = options.is_check_balance;\n }\n const signer = options?.signer || (await wallet.methods.getAccount(chainId)).address;\n const response = await window.keplr.signAmino(chainId, signer, document);\n return {\n signature: response.signature.signature,\n signed_doc: response.signed,\n };\n },\n signDirect: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.keplr.defaultOptions.sign.disableBalanceCheck = !options.is_check_balance;\n }\n const account = await wallet.methods.getAccount(chainId);\n if (account.is_ledger) {\n throw new Error('Ledger is not supported');\n }\n const signer = options?.signer || account.address;\n const signingDoc = {\n accountNumber: document.account_number,\n authInfoBytes: document.auth_info_bytes,\n chainId: document.chain_id,\n bodyBytes: document.body_bytes,\n };\n const response = await window.keplr.signDirect(chainId, signer, signingDoc);\n return {\n signature: response.signature.signature,\n signed_doc: {\n auth_info_bytes: response.signed.authInfoBytes,\n body_bytes: response.signed.bodyBytes,\n },\n };\n },\n sendTransaction: async (chainId, tx_bytes, mode) => {\n const broadcastMode =\n mode === 1 ? 'block' : mode === 2 ? 'sync' : mode === 3 ? 'async' : 'sync';\n const txBytes =\n typeof tx_bytes === 'string'\n ? new Uint8Array(Buffer.from(tx_bytes, 'base64'))\n : tx_bytes;\n const response = await window.keplr.sendTx(chainId, txBytes, broadcastMode);\n const txHash = Buffer.from(response).toString('hex').toUpperCase();\n return txHash;\n },\n addChain: async (chain) => {\n const coinType = chain.coin_type ? Number(chain.coin_type.replaceAll(\"'\", '')) : 118;\n await window.keplr.experimentalSuggestChain({\n chainId: chain.chain_id,\n chainName: chain.chain_name,\n rpc: chain.lcd_url,\n rest: chain.lcd_url,\n bip44: {\n coinType,\n },\n bech32Config: {\n bech32PrefixAccAddr: chain.address_prefix,\n bech32PrefixAccPub: chain.address_prefix + 'pub',\n bech32PrefixValAddr: chain.address_prefix + 'valoper',\n bech32PrefixValPub: chain.address_prefix + 'valoperpub',\n bech32PrefixConsAddr: chain.address_prefix + 'valcons',\n bech32PrefixConsPub: chain.address_prefix + 'valconspub',\n },\n currencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n ],\n feeCurrencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n gasPriceStep: {\n low: chain?.gas_rate?.tiny ? Number(chain?.gas_rate?.tiny) : 0.01,\n average: chain?.gas_rate?.low ? Number(chain?.gas_rate?.low) : 0.025,\n high: chain?.gas_rate?.average ? Number(chain?.gas_rate?.average) : 0.04,\n },\n },\n ],\n stakeCurrency: {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n });\n },\n },\n };\n registerCosmosWallet(wallet);\n }}\n>\n Register Keplr Wallet\n;","leap#Leap":"import { registerCosmosWallet, CosmosRegisterWallet } from '@cosmostation/wallets';\n {\n if (!window.leap) {\n alert('Leap extension is not installed');\n return;\n }\n const wallet: CosmosRegisterWallet = {\n name: 'Leap',\n logo: 'https://miro.medium.com/v2/resize:fill:176:176/1*2jNLyjIPuU8HBbayPapwcQ.png',\n events: {\n on(type, listener) {\n if (type === 'AccountChanged') {\n window.addEventListener('leap_keystorechange', listener);\n }\n },\n off(type, listener) {\n if (type === 'AccountChanged') {\n window.removeEventListener('leap_keystorechange', listener);\n }\n },\n },\n methods: {\n getSupportedChainIds: async () => {\n return ['cosmoshub-4'];\n },\n connect: async (chainIds) => {\n const cIds = typeof chainIds === 'string' ? [chainIds] : chainIds;\n const supportedChainIds = await wallet.methods.getSupportedChainIds();\n if (!cIds.every((cId) => supportedChainIds.includes(cId))) {\n throw new Error('Unsupported chainId is exist');\n }\n await window.leap.enable(chainIds);\n },\n getAccount: async (chainId) => {\n const response = await window.leap.getKey(chainId);\n return {\n address: response.bech32Address,\n name: response.name,\n public_key: {\n type: response.algo,\n value: Buffer.from(response.pubKey).toString('base64'),\n },\n is_ledger: response.isNanoLedger,\n };\n },\n signAmino: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.leap.defaultOptions.sign.disableBalanceCheck = options.is_check_balance;\n }\n const signer = options?.signer || (await wallet.methods.getAccount(chainId)).address;\n const response = await window.leap.signAmino(chainId, signer, document);\n return {\n signature: response.signature.signature,\n signed_doc: response.signed,\n };\n },\n signDirect: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.leap.defaultOptions.sign.disableBalanceCheck = !options.is_check_balance;\n }\n const account = await wallet.methods.getAccount(chainId);\n if (account.is_ledger) {\n throw new Error('Ledger is not supported');\n }\n const signer = options?.signer || account.address;\n const signingDoc = {\n accountNumber: document.account_number,\n authInfoBytes: document.auth_info_bytes,\n chainId: document.chain_id,\n bodyBytes: document.body_bytes,\n };\n const response = await window.leap.signDirect(chainId, signer, signingDoc);\n return {\n signature: response.signature.signature,\n signed_doc: {\n auth_info_bytes: response.signed.authInfoBytes,\n body_bytes: response.signed.bodyBytes,\n },\n };\n },\n sendTransaction: async (chainId, tx_bytes, mode) => {\n const broadcastMode =\n mode === 1 ? 'block' : mode === 2 ? 'sync' : mode === 3 ? 'async' : 'sync';\n const txBytes =\n typeof tx_bytes === 'string'\n ? new Uint8Array(Buffer.from(tx_bytes, 'base64'))\n : tx_bytes;\n const response = await window.leap.sendTx(chainId, txBytes, broadcastMode);\n const txHash = Buffer.from(response).toString('hex').toUpperCase();\n return txHash;\n },\n addChain: async (chain) => {\n const coinType = chain.coin_type ? Number(chain.coin_type.replaceAll(\"'\", '')) : 118;\n await window.leap.experimentalSuggestChain({\n chainId: chain.chain_id,\n chainName: chain.chain_name,\n rpc: chain.lcd_url,\n rest: chain.lcd_url,\n bip44: {\n coinType,\n },\n bech32Config: {\n bech32PrefixAccAddr: chain.address_prefix,\n bech32PrefixAccPub: chain.address_prefix + 'pub',\n bech32PrefixValAddr: chain.address_prefix + 'valoper',\n bech32PrefixValPub: chain.address_prefix + 'valoperpub',\n bech32PrefixConsAddr: chain.address_prefix + 'valcons',\n bech32PrefixConsPub: chain.address_prefix + 'valconspub',\n },\n currencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n ],\n feeCurrencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n gasPriceStep: {\n low: chain?.gas_rate?.tiny ? Number(chain?.gas_rate?.tiny) : 0.01,\n average: chain?.gas_rate?.low ? Number(chain?.gas_rate?.low) : 0.025,\n high: chain?.gas_rate?.average ? Number(chain?.gas_rate?.average) : 0.04,\n },\n },\n ],\n stakeCurrency: {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n });\n },\n },\n };\n registerCosmosWallet(wallet);\n }}\n>\n Register Leap Wallet\n;"}},"/extension/integration/evm/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"const ethereum = () => {\n if (\"cosmostation\" in window) {\n return window.cosmostation.ethereum;\n } else {\n window.open(\"https://cosmostation.io/wallet/#extension\");\n /**\n * or window.open(\"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf\");\n * */\n }\n};\nconst provider = ethereum();"}},"/extension/integration/evm/supported-rpc-methods":{"title":"Supported RPC methods","data":{"ethereum-json-rpc-methods#Ethereum JSON-RPC Methods":"For the Ethereum JSON-RPC API, please see the Ethereum wikiImportant methods from this API include:\neth_accounts\neth_call\neth_getBalance\neth_sign\neth_sendTransaction\neth_signTransaction","eth_requestaccounts-eip-1102#eth_requestAccounts (EIP-1102)":"Link","returns#Returns":"string[] - An array of a single, hexadecimal Ethereum address string.","example#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"eth_requestAccounts\",\n});","wallet_addethereumchain-eip-3085#wallet_addEthereumChain (EIP-3085)":"Link","parameters#Parameters":"type WalletAddEthereumChainParam = [\n {\n chainId: string;\n chainName: string;\n blockExplorerUrls?: string[];\n iconUrls?: string[];\n nativeCurrency: {\n name: string;\n symbol: string;\n decimals: number;\n };\n rpcUrls: string[];\n coinGeckoId?: string;\n }\n];","returns-1#Returns":"null - The method returns null if the request was successful, and an error otherwise.","example-1#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"wallet_addEthereumChain\",\n params: [\n {\n chainId: \"0x38\",\n chainName: \"Binance Smart Chain\",\n rpcUrls: [\"https://bsc-dataseed.binance.org\"],\n iconUrls: [\n \"https://www.coinreaders.com/imgdata/coinreaders_com/202107/2021072701234398.png\",\n ],\n nativeCurrency: {\n name: \"BNB\",\n symbol: \"BNB\",\n decimals: 18,\n },\n blockExplorerUrls: [\"https://bscscan.com\"],\n },\n ],\n});","wallet_switchethereumchain-eip-3326#wallet_switchEthereumChain (EIP-3326)":"Link","parameters-1#Parameters":"type WalletSwitchEthereumChainParam = [\n {\n chainId: string;\n }\n];","returns-2#Returns":"null - The method returns null if the request was successful, and an error otherwise.","example-2#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"wallet_switchEthereumChain\",\n params: [{ chainId: \"0x38\" }],\n});","wallet_watchasset-eip-747#wallet_watchAsset (EIP-747)":"Link","parameters-2#Parameters":"type WalletWatchAssetParam = {\n type: string;\n options: {\n address: string;\n symbol: string;\n decimals: number;\n image?: string;\n coinGeckoId?: string;\n };\n};","returns-3#Returns":"boolean - true if the request was successful, error otherwise.","example-3#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"wallet_watchAsset\",\n params: {\n type: \"ERC20\",\n options: {\n address: \"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\",\n symbol: \"WETH\",\n decimals: 18,\n },\n },\n});","eth_signtypeddata_v3--eth_signtypeddata_v4#eth_signTypedData_v3 / eth_signTypedData_v4":"","example-4#Example":"const msgParams = JSON.stringify({\n domain: {\n // Defining the chain aka Rinkeby testnet or Ethereum Main Net\n chainId: 1,\n // Give a user friendly name to the specific contract you are signing for.\n name: \"Ether Mail\",\n // If name isn't enough add verifying contract to make sure you are establishing contracts with the proper entity\n verifyingContract: \"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\",\n // Just let's you know the latest version. Definitely make sure the field name is correct.\n version: \"1\",\n },\n // Defining the message signing data content.\n message: {\n /*\n - Anything you want. Just a JSON Blob that encodes the data you want to send\n - No required fields\n - This is DApp Specific\n - Be as explicit as possible when building out the message schema.\n */\n contents: \"Hello, Bob!\",\n attachedMoneyInEth: 4.2,\n from: {\n name: \"Cow\",\n wallets: [\n \"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\",\n \"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF\",\n ],\n },\n to: [\n {\n name: \"Bob\",\n wallets: [\n \"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\",\n \"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57\",\n \"0xB0B0b0b0b0b0B000000000000000000000000000\",\n ],\n },\n ],\n },\n // Refers to the keys of the *types* object below.\n primaryType: \"Mail\",\n types: {\n // TODO: Clarify if EIP712Domain refers to the domain the contract is hosted on\n EIP712Domain: [\n { name: \"name\", type: \"string\" },\n { name: \"version\", type: \"string\" },\n { name: \"chainId\", type: \"uint256\" },\n { name: \"verifyingContract\", type: \"address\" },\n ],\n // Not an EIP712Domain definition\n Group: [\n { name: \"name\", type: \"string\" },\n { name: \"members\", type: \"Person[]\" },\n ],\n // Refer to PrimaryType\n Mail: [\n { name: \"from\", type: \"Person\" },\n { name: \"to\", type: \"Person[]\" },\n { name: \"contents\", type: \"string\" },\n ],\n // Not an EIP712Domain definition\n Person: [\n { name: \"name\", type: \"string\" },\n { name: \"wallets\", type: \"address[]\" },\n ],\n },\n});\nconst from = \"\"; // signer address\nconst params = [from, msgParams];\nconst method = \"eth_signTypedData_v4\";\n// provider.request or\nwindow.cosmostation.ethereum.request({\n method,\n params,\n});"}},"/extension/integration/evm/use-ethers":{"title":"Use ethers","data":{"":"npmjs\ndocs\nimport { ethers } from \"ethers\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const ethersProvider = new ethers.providers.Web3Provider(provider);\n // requestAccounts\n const accounts = ethersProvider.send(\"eth_requestAccounts\", []);\n // If you want more info, please check out ethers docs (https://docs.ethers.io)\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}"}},"/extension/integration/evm/use-web3-js":{"title":"Use web3.js","data":{"":"npmjs\ndocs\nimport Web3 from \"web3\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const web3 = new Web3(provider);\n // requestAccounts\n const accounts = web3.eth.requestAccounts();\n // If you want more info, please check out web3.js docs (https://web3js.readthedocs.io)\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}","signtypeddata#signTypedData":"const provider = await ethereum();\nconst web3 = new Web3(provider);\nconst msgParams = JSON.stringify({\n domain: {\n // Defining the chain aka Rinkeby testnet or Ethereum Main Net\n chainId: 1,\n // Give a user friendly name to the specific contract you are signing for.\n name: \"Ether Mail\",\n // If name isn't enough add verifying contract to make sure you are establishing contracts with the proper entity\n verifyingContract: \"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\",\n // Just let's you know the latest version. Definitely make sure the field name is correct.\n version: \"1\",\n },\n // Defining the message signing data content.\n message: {\n /*\n - Anything you want. Just a JSON Blob that encodes the data you want to send\n - No required fields\n - This is DApp Specific\n - Be as explicit as possible when building out the message schema.\n */\n contents: \"Hello, Bob!\",\n attachedMoneyInEth: 4.2,\n from: {\n name: \"Cow\",\n wallets: [\n \"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\",\n \"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF\",\n ],\n },\n to: [\n {\n name: \"Bob\",\n wallets: [\n \"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\",\n \"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57\",\n \"0xB0B0b0b0b0b0B000000000000000000000000000\",\n ],\n },\n ],\n },\n // Refers to the keys of the *types* object below.\n primaryType: \"Mail\",\n types: {\n // TODO: Clarify if EIP712Domain refers to the domain the contract is hosted on\n EIP712Domain: [\n { name: \"name\", type: \"string\" },\n { name: \"version\", type: \"string\" },\n { name: \"chainId\", type: \"uint256\" },\n { name: \"verifyingContract\", type: \"address\" },\n ],\n // Not an EIP712Domain definition\n Group: [\n { name: \"name\", type: \"string\" },\n { name: \"members\", type: \"Person[]\" },\n ],\n // Refer to PrimaryType\n Mail: [\n { name: \"from\", type: \"Person\" },\n { name: \"to\", type: \"Person[]\" },\n { name: \"contents\", type: \"string\" },\n ],\n // Not an EIP712Domain definition\n Person: [\n { name: \"name\", type: \"string\" },\n { name: \"wallets\", type: \"address[]\" },\n ],\n },\n});\nconst from = \"\"; // signer address\nconst params = [from, msgParams];\nconst method = \"eth_signTypedData_v4\";\nconst result = web3.currentProvider.request({\n method,\n params,\n});"}},"/extension/integration/sui/connect-and-get-accounts":{"title":"Connect And Get Accounts","data":{"":"connect and get Account via Cosmostation Extension\nconst response = await window.cosmostation.sui.connect();\n// or\nconst response = await window.cosmostation.sui.connect([\n \"viewAccount\",\n \"suggestTransactions\",\n]);","response#Response":"export type SuiConnectResponse = boolean;\ntrue","get-accounts#Get Accounts":"","vanilla-code#Vanilla Code":"const response = await window.cosmostation.sui.connect();\nconst accounts = await window.cosmostation.sui.getAccounts();\nconst publicKey = await window.cosmostation.sui.getPublicKey();","response-1#Response":"export type SuiAccountResponse = string[];\n[\"0xd2d030d4339531d9cb442caf4be7bb954fddedb4\"]"}},"/extension/integration/sui/execute-move-call":{"title":"Execute Move Call","data":{"":"Execute Move Call via Cosmostation Extension\nconst payload = {\n packageObjectId: \"0x2\",\n module: \"devnet_nft\",\n function: \"mint\",\n typeArguments: [],\n arguments: [\n \"Cosmostation NFT\",\n \"An NFT created by Cosmostation Wallet\",\n \"https://avatars.githubusercontent.com/u/49175386?s=200&v=4\",\n ],\n gasBudget: 10000,\n};\nawait window.cosmostation.sui.connect();\nconst response = await window.cosmostation.sui.executeMoveCall(payload);","request#request":"MoveCallTransaction\nexport interface MoveCallTransaction {\n packageObjectId: ObjectId;\n module: string;\n function: string;\n typeArguments: string[] | TypeTag[];\n arguments: SuiJsonValue[];\n gasPayment?: ObjectId;\n gasBudget: number;\n}","response#Response":"CertifiedTransaction\nTransactionEffects\nexport type SuiTransactionResponse = {\n certificate: CertifiedTransaction;\n effects: TransactionEffects;\n};\n{\n \"certificate\": {\n \"transactionDigest\": \"QTWZUMmBzPReVUPjxPRPs271Zve7C4rtCRHm8Cisz4x\",\n \"data\": {\n \"transactions\": [\n {\n \"Call\": {\n \"package\": {\n \"objectId\": \"0x0000000000000000000000000000000000000002\",\n \"version\": 1,\n \"digest\": \"BN1R9u+4+jOoGiGagW50eT+EE+JxtYLaveBPxHhgsiE=\"\n },\n \"module\": \"devnet_nft\",\n \"function\": \"mint\",\n \"arguments\": [\n \"Cosmostation NFT\",\n \"An NFT created by Cosmostation Wallet\",\n \"https://avatars.githubusercontent.com/u/49175386?s=200&v=4\"\n ]\n }\n }\n ],\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"gasPayment\": {\n \"objectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 99,\n \"digest\": \"aw8yjNgqA/siJay1eJWv/axflLvGwSM+RbXOilKWAlo=\"\n },\n \"gasPrice\": 1,\n \"gasBudget\": 10000\n },\n \"txSignature\": \"ALSjaMJTiA34zu/d6nnfBH7SxjQvk988NYcNeW8cHJf0zLvriSbIf3/6q7FDtg/5jCNOBknZ38Hmgg0MAhRs7wdWEU2i63wnssWTOQJmMjz5Wq+PhqtBW+GrkSSWOnRKAA==\",\n \"authSignInfo\": {\n \"epoch\": 0,\n \"signature\": \"qhUPMYuuaMqemq+l5a/rDm7VlFmkzXvxtf1gNdwT1xTuNPGYRE0DYBJ+WNnB/D30\",\n \"signers_map\": [\n 58, 48, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 16, 0, 0, 0, 0, 0, 2, 0, 3, 0\n ]\n }\n },\n \"effects\": {\n \"status\": { \"status\": \"success\" },\n \"gasUsed\": {\n \"computationCost\": 464,\n \"storageCost\": 40,\n \"storageRebate\": 16\n },\n \"transactionDigest\": \"QTWZUMmBzPReVUPjxPRPs271Zve7C4rtCRHm8Cisz4x\",\n \"created\": [\n {\n \"owner\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"reference\": {\n \"objectId\": \"0x1eaadc7b76011f5657821a6aa92eae6098689c9a\",\n \"version\": 100,\n \"digest\": \"jJ99SfS/MZIqudWmXmdXU8GChiXFsej27kWDz6FCNeQ=\"\n }\n }\n ],\n \"mutated\": [\n {\n \"owner\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"reference\": {\n \"objectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 100,\n \"digest\": \"wgC6a5w4Xqg4D81bOvBiRjkh0m91srqzZP0kLTkCU6Y=\"\n }\n }\n ],\n \"gasObject\": {\n \"owner\": { \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\" },\n \"reference\": {\n \"objectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 100,\n \"digest\": \"wgC6a5w4Xqg4D81bOvBiRjkh0m91srqzZP0kLTkCU6Y=\"\n }\n },\n \"events\": [\n {\n \"coinBalanceChange\": {\n \"packageId\": \"0x0000000000000000000000000000000000000002\",\n \"transactionModule\": \"gas\",\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"changeType\": \"Gas\",\n \"owner\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"coinType\": \"0x2::sui::SUI\",\n \"coinObjectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 99,\n \"amount\": -488\n }\n },\n {\n \"newObject\": {\n \"packageId\": \"0x0000000000000000000000000000000000000002\",\n \"transactionModule\": \"devnet_nft\",\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"recipient\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"objectType\": \"0x2::devnet_nft::DevNetNFT\",\n \"objectId\": \"0x1eaadc7b76011f5657821a6aa92eae6098689c9a\",\n \"version\": 100\n }\n },\n {\n \"moveEvent\": {\n \"packageId\": \"0x0000000000000000000000000000000000000002\",\n \"transactionModule\": \"devnet_nft\",\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"type\": \"0x2::devnet_nft::MintNFTEvent\",\n \"fields\": {\n \"creator\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"name\": \"Cosmostation NFT\",\n \"object_id\": \"0x1eaadc7b76011f5657821a6aa92eae6098689c9a\"\n },\n \"bcs\": \"Hqrce3YBH1ZXghpqqS6uYJhonJrd7iW+41+mNKHUhtFigfMzNw7z8hBDb3Ntb3N0YXRpb24gTkZU\"\n }\n }\n ],\n \"dependencies\": [\"CxQQcJfAyDkhxiLiXxrAkFREikMNnngwoGW7kVouMY7w\"]\n }\n}"}},"/extension/integration/sui/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.\nconst sui = () => {\n if (\"cosmostation\" in window) {\n return window.cosmostation.sui;\n } else {\n window.open(\"https://cosmostation.io/wallet/#extension\");\n /**\n * or window.open(\"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf\");\n * */\n }\n};\nconst provider = sui();"}},"/extension/integration/sui/sign-and-execute-transaction":{"title":"Sign And Execute Transaction","data":{"":"import { TransactionBlock } from \"@mysten/sui.js\";\n// Send Sui coin\nconst tx = new TransactionBlock();\nconst sampleSendCoinAmount = \"100000\";\nconst sampleReceiverAddress = \"0x...\";\nconst [coin] = tx.splitCoins(tx.gas, [tx.pure(sampleSendCoinAmount)]);\ntx.transferObjects([coin], tx.pure(sampleReceiverAddress));\n// SuiSignAndExecuteTransactionBlockInput\nconst payload = {\n transactionBlock: tx,\n options: {\n showInput: true,\n showEffects: true,\n showEvents: true,\n },\n};\nawait window.cosmostation.sui.connect();\nconst response = await window.cosmostation.sui.signAndExecuteTransaction(\n payload\n);","request#request":"SuiSignAndExecuteTransactionBlockInput\nexport interface SuiSignTransactionBlockInput {\n transactionBlock: TransactionBlock;\n account: WalletAccount;\n chain: IdentifierString;\n}\nexport interface SuiSignAndExecuteTransactionBlockInput\n extends SuiSignTransactionBlockInput {\n requestType?: ExecuteTransactionRequestType;\n options?: SuiTransactionBlockResponseOptions;\n}\nexport type SuiTransactionBlockResponseOptions = {\n showInput?: boolean | undefined;\n showEffects?: boolean | undefined;\n showEvents?: boolean | undefined;\n showObjectChanges?: boolean | undefined;\n showBalanceChanges?: boolean | undefined;\n};","response#Response":"SuiTrasactionResponse\nSuiTransactionBlock\nTransactionEffects\nTransactionEvents\nSuiObjectChange\nBalanceChange\nexport type SuiTransactionResponse = {\n digest: TransactionDigest,\n transaction: optional(SuiTransactionBlock),\n effects: optional(TransactionEffects),\n events: optional(TransactionEvents),\n timestampMs: optional(string()),\n checkpoint: optional(string()),\n confirmedLocalExecution: optional(boolean()),\n objectChanges: optional(array(SuiObjectChange)),\n balanceChanges: optional(array(BalanceChange)),\n /* Errors that occurred in fetching/serializing the transaction. */\n errors: optional(array(string())),\n};\n{\n \"digest\": \"ADxukibq4o4QqiMgr6QqtXnXczh5MGCQqMkgCKUW5NXT\",\n \"transaction\": {\n \"data\": {\n \"messageVersion\": \"v1\",\n \"transaction\": {\n \"kind\": \"ProgrammableTransaction\",\n \"inputs\": [\n {\n \"type\": \"pure\",\n \"valueType\": \"u64\",\n \"value\": \"1000000000\"\n },\n {\n \"type\": \"object\",\n \"objectType\": \"sharedObject\",\n \"objectId\": \"\",\n \"initialSharedVersion\": \"1\",\n \"mutable\": true\n },\n {\n \"type\": \"pure\",\n \"valueType\": \"address\",\n \"value\": \"\"\n }\n ],\n \"transactions\": [\n {\n \"SplitCoins\": [\n \"GasCoin\",\n [\n {\n \"Input\": 0\n }\n ]\n ]\n },\n {\n \"MoveCall\": {\n \"package\": \"\",\n \"module\": \"sui_system\",\n \"function\": \"request_add_stake\",\n \"arguments\": [\n {\n \"Input\": 1\n },\n {\n \"Result\": 0\n },\n {\n \"Input\": 2\n }\n ]\n }\n }\n ]\n },\n \"sender\": \"\",\n \"gasData\": {\n \"payment\": [\n {\n \"objectId\": \"\",\n \"version\": 120,\n \"digest\": \"4eWN3j13gkCgmpF3ino3PyBnBGcr8TM9g7oXyLVcFvDf\"\n }\n ],\n \"owner\": \"\",\n \"price\": \"990\",\n \"budget\": \"10269000\"\n }\n },\n \"txSignatures\": [\n \"AOM7i8tZRt314VYWxtBr5DAUukOZJsRcX6YUZjKVzB/j0gyYqCMZ1mIVPFdM79VNXzEpS2Te8Ez7g878a13Ybwz6TRHL+z8z7uHmh38YqSzeZTJS1AuOfKSpuon1IV17MQ==\"\n ]\n },\n \"effects\": {\n \"messageVersion\": \"v1\",\n \"status\": {\n \"status\": \"success\"\n },\n \"executedEpoch\": \"25\",\n \"gasUsed\": {\n \"computationCost\": \"990000\",\n \"storageCost\": \"721559200\",\n \"storageRebate\": \"713064528\",\n \"nonRefundableStorageFee\": \"7202672\"\n },\n \"modifiedAtVersions\": [\n {\n \"objectId\": \"\",\n \"sequenceNumber\": \"1999135\"\n },\n {\n \"objectId\": \"\",\n \"sequenceNumber\": \"1999135\"\n },\n {\n \"objectId\": \"\",\n \"sequenceNumber\": \"120\"\n }\n ],\n \"sharedObjects\": [\n {\n \"objectId\": \"\",\n \"version\": 1999135,\n \"digest\": \"DwbUaKPdp58kXHhh3WGzSnxv1uuzoEP55mmvrZyRqx8Q\"\n }\n ],\n \"transactionDigest\": \"ADxukibq4o4QqiMgr6QqtXnXczh5MGCQqMkgCKUW5NXT\",\n \"created\": [\n {\n \"owner\": {\n \"AddressOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"BEEN82jwzg2gku5meXogNQLz1zSnbv9rEFRVu7RhekPd\"\n }\n }\n ],\n \"mutated\": [\n {\n \"owner\": {\n \"Shared\": {\n \"initial_shared_version\": 1\n }\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"CgnEEDYNDnAyFb6GzXwvCTC5X1RqAUEGkLQN59dn86Fn\"\n }\n },\n {\n \"owner\": {\n \"ObjectOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"7zdHAR9jtbEuaNroxVUUXGgMBJCVF9RRfQ1ACy4sGr8d\"\n }\n },\n {\n \"owner\": {\n \"AddressOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"4uYp4yEhf4kcKmdUSZmxao5nGo38mydK93w9Vj6GdmJy\"\n }\n }\n ],\n \"gasObject\": {\n \"owner\": {\n \"AddressOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"4uYp4yEhf4kcKmdUSZmxao5nGo38mydK93w9Vj6GdmJy\"\n }\n },\n \"eventsDigest\": \"5MMMagM2CoBtWGL7x39i2H8FeF75LWfFzgZDpzc5YC1H\",\n \"dependencies\": [\n \"Ui22Hhc6NyVEnAhRWCWVT333JvvBWG75qJx9qBg9VE1\",\n \"53k4PWPByFxMLEYu53coAPiFCoxoz1mkUnv2Nr73UFw1\",\n \"6oLy1FVtkMhuknWGsz7cvyYhn5CZFGPnyLhXZYuBd8kh\"\n ]\n },\n \"events\": [\n {\n \"id\": {\n \"txDigest\": \"ADxukibq4o4QqiMgr6QqtXnXczh5MGCQqMkgCKUW5NXT\",\n \"eventSeq\": \"0\"\n },\n \"packageId\": \"\",\n \"transactionModule\": \"sui_system\",\n \"sender\": \"\",\n \"type\": \"0x3::validator::StakingRequestEvent\",\n \"parsedJson\": {\n \"amount\": \"1000000000\",\n \"epoch\": \"25\",\n \"pool_id\": \"\",\n \"staker_address\": \"\",\n \"validator_address\": \"\"\n },\n \"bcs\": \"\"\n }\n ],\n \"confirmedLocalExecution\": true\n}"}},"/":{"title":"Cosmostation","data":{"":"Cosmostation is a committed interchain service provider in the Cosmos ecosystem, established since its genesis in 2019.\nOur array of tools, including Mintscan, Mintscan API, and Cosmostation wallets showcases our dedication to the community. This developer documentation is your guide to understanding and utilizing our offerings for enhanced protocol development.","mintscan#Mintscan":"Mintscan is the second generation blockchain analytics platform specialized in on-chain data visualization.\nExplorer\nData analyzer\nInterchain Hub","api#API":"First Class Access to Indexed Interchain Data. Streamline your connection to Interchain with Mintscan API.\nRPC Endpoint\nHistorical API\nBuilder API\nStatistics API\nCustom API","extension-wallet#Extension Wallet":"Cosmostation is a non-custodial multi-chain cryptocurrency browser extension wallet that supports 50+ chains including Ethereum, Cosmos, Sui, and more.","mobile-wallet#Mobile Wallet":"Industry leading non-custodial mobile wallet supporting 50+ interchain networks. Enjoy native staking, IBC send, voting, and token swap on mobile."}},"/mintscan":{"title":"Introduction","data":{"":"Mintscan can easily provide information such as validators and assets publicly through Github","to-provide-information#To provide information":"Folk chainlist repository\nAdd the data\nCreate a pull request\nReview and Merge","registry#Registry":"Validator > Moniker\nAssets > Native\nAssets > CW20\nAssets > ERC20\nEcosystem"}},"/mintscan/registry/assets":{"title":"How to add your token info","data":{"":"To add asset metadata on mintscan.\n‼️ Please note that tokens of Testnets and unverified networks may not be merged to master.\nFork this repo to your own github account\nClone fork and create new branch\ngit clone git@github.com:YOUR_ACCOUNT/chainlist.git\ncd chainlist\ngit branch \ngit checkout \nAdd the info of your token in the chain that your token needs to be displayed\nCommon info to fill\nField\tDescription\tdenom\tToken's denom.\ttype\tType of the token:\t\t- staking: Native staking token of a chain.\t\t- native: Native token issued on a chain, not the staking token.\t\t- ibc: Token transferred via IBC.\t\t- pool: Token representing a liquidity pool.\t\t- bridge: Token bridged from another network.\t\t- cw20: CW20 token type.\t\t- erc20: ERC20 token type.\torigin_chain\tThe origin chain where this token was issued.\torigin_denom\tOriginal denom of the token.\torigin_type\tOriginal type of the token (staking, native, pool, ibc, bridge, cw20, erc20).\tsymbol\tDisplayed name of the token in the list.\tdecimals\tToken's decimals.\timage\tImage route of the token (optional).\t\tPlace image in ${targetchain}/asset folder. Ensure it's a png file.\tcoinGeckoId\tCoinGecko site's API ID. Leave empty if none.\t\nIf the type is staking, provide the info below\nField\tDescription\tdescription\tA brief summary of the token\t\nIf the type is ibc, provide the info below:\nField\tDescription\tenable\ttrue if IBC transmission is possible (optional).\tchannel\tToken's IBC channel (optional).\tport\tToken's IBC port (optional).\t\tAdd the token's channel and port.\tcounter_party\tCounter party's IBC channel and port (optional).\t\t- channel.\t\t- port.\t\t- denom: Token's denom before IBC transfer.\tpath\tPath of token transfer (optional).\t\tProvide full details if transferred via IBC, bridge, or other path.\tpath\tPath details for bridge tokens (optional).\t\tProvide details if transferred via IBC, bridge, or other path.\tcontract\tContract address for token transfer via contract (optional).\t\nNative Token\n/assets/v2/${chain}/assets.json\n// example OSMOSIS\n[\n {\n \"denom\": \"uosmo\",\n \"type\": \"staking\",\n \"origin_chain\": \"osmosis\",\n \"origin_denom\": \"uosmo\",\n \"origin_type\": \"staking\",\n \"symbol\": \"OSMO\",\n \"decimals\": 6,\n \"description\": \"Osmosis Staking Coin\",\n \"image\": \"osmosis/asset/osmo.png\",\n \"coinGeckoId\": \"osmosis\"\n },\n {\n \"denom\": \"uion\",\n \"type\": \"native\",\n \"origin_chain\": \"osmosis\",\n \"origin_denom\": \"uion\",\n \"origin_type\": \"native\",\n \"symbol\": \"ION\",\n \"decimals\": 6,\n \"description\": \"Native Coin\",\n \"image\": \"osmosis/asset/ion.png\",\n \"coinGeckoId\": \"ion\"\n },\n // example KUJIRA\n {\n \"denom\": \"factory//uusk\",\n \"type\": \"native\",\n \"origin_chain\": \"kujira\",\n \"origin_denom\": \"factory//uusk\",\n \"origin_type\": \"native\",\n \"symbol\": \"USK\",\n \"decimals\": 6,\n \"description\": \"USK Stable Asset\",\n \"image\": \"kujira/asset/usk.png\",\n \"coinGeckoId\": \"usk\"\n }\n]\nIBC Token\n[\n // example COSMOS\n {\n \"denom\": \"ibc/\",\n \"type\": \"ibc\",\n \"origin_chain\": \"osmosis\",\n \"origin_denom\": \"uosmo\",\n \"origin_type\": \"staking\",\n \"symbol\": \"OSMO\",\n \"decimals\": 6,\n \"enable\": true,\n \"path\": \"osmosis>cosmos\",\n \"channel\": \"channel-141\",\n \"port\": \"transfer\",\n \"counter_party\": {\n \"channel\": \"channel-0\",\n \"port\": \"transfer\",\n \"denom\": \"uosmo\"\n },\n \"image\": \"osmosis/asset/osmo.png\", // Set image route for base_denom\n \"coinGeckoId\": \"osmosis\"\n },\n // example IRIS\n {\n \"denom\": \"ibc/\",\n \"type\": \"ibc\",\n \"origin_denom\": \"weth\",\n \"origin_type\": \"erc20\",\n \"symbol\": \"WETH\",\n \"origin_chain\": \"ethereum\",\n \"decimals\": 18,\n \"enable\": true,\n \"path\": \"ethereum>gravity-bridge>iris\",\n \"channel\": \"channel-29\",\n \"port\": \"transfer\",\n \"counter_party\": {\n \"channel\": \"channel-47\",\n \"port\": \"transfer\",\n \"denom\": \"gravity0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\"\n },\n \"image\": \"ethereum/asset/weth.png\", // Set image route for base_denom\n \"coinGeckoId\": \"weth\",\n \"contract\": \"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\"\n }\n]\nBridge Token\n[\n // example GRAVITY-BRIDGE\n {\n \"denom\": \"gravity0x2260fac5e5542a773aa44fbcfedf7c193bc2c599\",\n \"type\": \"bridge\",\n \"origin_chain\": \"ethereum\",\n \"origin_denom\": \"wbtc\",\n \"origin_type\": \"erc20\",\n \"symbol\": \"WBTC\",\n \"decimals\": 8,\n \"path\": \"ethereum>gravity-bridge\",\n \"image\": \"ethereum/asset/wbtc.png\",\n \"coinGeckoId\": \"wrapped-bitcoin\",\n \"contract\": \"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599\"\n },\n // example IRIS\n {\n \"denom\": \"htltbcbusd\",\n \"type\": \"bridge\",\n \"origin_chain\": \"bnb-beacon-chain\",\n \"origin_denom\": \"busd\",\n \"origin_type\": \"bep2\",\n \"symbol\": \"BUSD\",\n \"decimals\": 8,\n \"path\": \"bnb-beacon-chain>iris\",\n \"image\": \"bnb-beacon-chain/asset/busd.png\",\n \"coinGeckoId\": \"binance-usd\"\n }\n]\nPool Token\n// example COSMOS\n[\n {\n \"denom\": \"\",\n \"type\": \"pool\",\n \"origin_chain\": \"cosmos\",\n \"origin_denom\": \"\",\n \"origin_type\": \"pool\",\n \"symbol\": \"GDEX-1\",\n \"decimals\": 6,\n \"description\": \"pool/1\",\n \"image\": \"cosmos/asset/pool.png\", // Add pool image in the target chain’s folder\n \"coinGeckoId\": \"\"\n }\n]\nCommit and push to your fork\ngit add -A\ngit commit -m “Add ”\ngit push origin \nFrom your repository, make pull request (PR)"}},"/extension/integration/aptos/network":{"title":"Network","data":{"":"Get Network via Cosmostation Extension","network#Network":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const network = await provider.network();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code#Vanilla Code":"try {\n const provider = aptos();\n const network = await provider.network(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","response#Response":"export type AptosNetworkResponse = string;\n\"Mainnet\""}},"/mintscan/registry/ecosystem":{"title":"How to add your project on Ecosystem","data":{"":"To add ecosystem on mintscan.\nPlease contact us and provide us with the information below.\nChain\nProject name\nDescription\nUrl\nToken(Optional)\nContact(Optional) : twitter, telegram, discord\nReference(Optional) : Docs, Github, Blog, Reddit\nType : Cosmwasm, EVM, Module\nBanner : 1125 x 600 px"}},"/mintscan/registry/erc20":{"title":"How to add your ERC20 token info","data":{"":"To add erc20 asset metadata on mintscan assets.\nEvmos Erc20 list supporting\nFork this repo to your own github account\nClone fork and create new branch\ngit clone git@github.com:YOUR_ACCOUNT/chainlist.git\ncd chainlist\ngit branch \ngit checkout \nAdd the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master\nkey\tvalue\tchainId\tChainId of the chain\taddress\tToken's contract_address\tchainName\tName of the displayed token\tsymbol\tName of token's symbol\tdecimals\tDecimal of the token\timage\tImage route of the token/${targetChain}/asset add image in the folder Make sure to upload a pngfile\tdefault\tdefault value is false\tcoinGeckoId (optional)\tCoin gecko site's API ID Empty string if none\t\nERC20 Token\n/${targetChain}/contract.json\n[\n {\n \"chainId\": 9001,\n \"chainName\": \"evmos\",\n \"address\": \"0xD4949664cD82660AaE99bEdc034a0deA8A0bd517\",\n \"symbol\": \"WEVMOS\",\n \"description\": \"Wrapped Evmos\",\n \"decimals\": 18,\n \"image\": \"evmos/asset/wevmos.png\",\n \"default\": true,\n \"coinGeckoId\": \"evmos\"\n },\n {\n \"chainId\": 9001,\n \"chainName\": \"evmos\",\n \"address\": \"0xb72A7567847abA28A2819B855D7fE679D4f59846\",\n \"symbol\": \"ceUSDT\",\n \"description\": \"Tether USD (Celer)\",\n \"decimals\": 6,\n \"image\": \"ethereum/asset/usdt.png\",\n \"default\": false,\n \"coinGeckoId\": \"tether\"\n }\n]\nCommit and push to your fork\ngit add -A\ngit commit -m “Add ”\ngit push origin \nFrom your repository, make pull request (PR)"}},"/mintscan/registry/cw20":{"title":"How to add your CW20 token info","data":{"":"To add CW20 asset metadata on mintscan assets.\nJuno Cw20 list supporting\nFork this repo to your own github account\\\nClone fork and create new branch\ngit clone git@github.com:YOUR_ACCOUNT/chainlist.git\ncd chainlist\ngit branch \ngit checkout \nAdd the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master\nkey\tvalue\tchainId\t-1\tchainName\tChain with the token\taddress\tToken's contract_address\tsymbol\tName of token's symbol\tdescription\tA brief summary of the token\tdecimals\tDecimal of the token\timage\tImage route of the token /${targetChain}/asset add image in the folder Make sure to upload a png file\tdefault\tdefault value is false\tcoinGeckoId\tCoin gecko site's API ID Empty string if none\t\nCw20 Token\n/${targetChain}/contract.json\n// example JUNO\n[\n {\n \"chainId\": -1,\n \"chainName\": \"juno\",\n \"address\": \"\",\n \"symbol\": \"DAO\",\n \"description\": \"DAO DAO\",\n \"decimals\": 6,\n \"image\": \"juno/asset/dao.png\",\n \"default\": false,\n \"coinGeckoId\": \"\"\n },\n {\n \"chainId\": -1,\n \"chainName\": \"juno\",\n \"address\": \"\",\n \"symbol\": \"NETA\",\n \"description\": \"NETA\",\n \"decimals\": 6,\n \"image\": \"juno/asset/neta.png\",\n \"default\": true,\n \"coinGeckoId\": \"neta\"\n }\n]\nCommit and push to your fork\n git add -A\n git commit -m “Add ”\n git push origin \nFrom your repository, make pull request (PR)"}},"/mintstation/cli":{"title":"CLI Introduction","data":{"introduction#Introduction":"mintstaiond is a command line client for the Mintstation. Mintstation users can use mintstationd to send transactions to the Mintstation network and query the blockchain data.See here for instructions on installing mintstationd.","working-directory-a-hrefworking-directory-idworking-directorya#Working Directory ":"The default working directory for the mintstationd is $HOME/.mintstationd, which is mainly used to store configuration files and blockchain data. The Mintstation key data is saved in the working directory of mintstationd. You can also specify the mintstationd working directory by using the --home flag when executing mintstationd.","connecting-to-a-full-node#Connecting to a Full-Node":"By default, mintstationd uses tcp://localhost:26657 as the RPC address to connect to the Mintstation network. This default configuration assumes that the machine executing mintstationd is running as a full-node.The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the --node flag when executing mintstationd"}},"/mintstation/cli/command":{"title":"Useful CLI Commands","data":{"":"Get standard debug info from the mint daemon:\nmintstationd status\nCheck if your node is catching up:\n# Query via the RPC (default port: 26657)\ncurl http://localhost:26657/status | jq .result.sync_info.catching_up\nGet your node ID:\nmintstationd tendermint show-node-id\nCheck if you are jailed or tombstoned:\nmintstationd query slashing signing-info $(mintstationd tendermint show-validator)\nSet the default chain for commands to use:\nmintstationd config chain-id mintstation-1\nGet your valoper address:\nmintstationd keys show -a --bech val\nSee keys on the current box:\nmintstationd keys list\nImport a key from a mnemonic:\nmintstationd keys add --recover\nExport a private key (warning: don't do this unless you know what you're doing!)\nmintstationd keys export --unsafe --unarmored-hex\nWithdraw rewards (including validator commission), where mintvaloper1... is the validator address:\nmintstationd tx distribution withdraw-rewards --from --commission\nStake:\nmintstationd tx staking delegate umint --from \nFind out what the JSON for a command would be using --generate-only:\nmintstationd tx bank send $(mintstationd keys show -a) umint --generate-only\nQuery the results of a gov vote that has ended, from a remote RPC (NB - you have to specify a height before the vote ended):\n mintstationd q gov votes 1 --height --node https://rpc-archive.mintnetwork.io:443\nTransfer mint to another chain (osmosis) with IBC\nmintstationd tx ibc-transfer transfer transfer channel-0 1000000umint --from --node https://rpc-archive.mintnetwork.io:443 --packet-timeout-height 0-0\nQuery the validator set (and jailed status) via CLI:\nmintstationd query staking validators --limit 1000 -o json | jq -r '.validators[] | [.operator_address, (.tokens|tonumber / pow(10; 6)), .description.moniker, .jail, .status] | @csv' | column -t -s\",\" | sort -k2 -n -r | nl\nGet contract state:\nmintstationd q wasm contract-state all "}},"/mintstation/contracts/compile":{"title":"Compile a Contract","data":{"":"This guide is from the official CosmWasm/rust-optimizer repository. This method of compiling the contract will optimize the final build so that it reduces gas consumption.Example contracts for this can be found at https://github.com/CosmWasm/cw-examples. This repository requires this section to compile since multiple contracts are involved in a single repository.","single-contract-repository#Single Contract Repository":"The easiest way is to simply use the published docker image. You must run this in the root of the smart contract repository you wish to compile. It will produce an artifacts directory with .wasm and contracts.txt containing the hashes. This is just one file.\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/rust-optimizer:0.12.11\n# If you you use an ARM machine (Ex: Mac M1), you need to use the following\n# This is experimental and should not be used for production use\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/rust-optimizer-arm64:0.12.11\nBy running this in the root of your project, it will compile your contract into an artifacts/ folder. From here you can upload it to chain, collect the store code, and interact with it as you design","multiple-contract-repository-mono-repo#Multiple Contract Repository (Mono Repo)":"Sometime you want many contracts to be related and import common functionality. This is exactly the case of cosmwasm-plus. In such a case, we can often not just compile from root, as the compile order is not deterministic and there are feature flags shared among the repos. This has lead to issues in the past.For this use-case there is second docker image, which will compile all the contracts/* folders inside the workspace and do so one-by-one in alphabetical order. It will then add all the generated wasm files to an artifacts directory with a checksum, just like the basic docker image (same output format).To compile all contracts in the workspace deterministically, you can run:\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/workspace-optimizer:0.12.11\n# If you you use an ARM machine (Ex: Mac M1), you need to use the following\n# This is experimental and should not be used for production use\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/workspace-optimizer-arm64:0.12.11\nNOTE: See the difference with workspace-optimizer vs rust-optimizer in the previous single contract example.\\"}},"/mintstation/cli/setup":{"title":"Setup Mintstation","data":{"build#Build":"Clone source from repository:\ngit clone https://github.com/cosmostation/mintstation\ncd mintstation\ngit checkout v0.0.1 #SET_CURRENT_VERSION\nOnce you're on the correct tag, you can build:\n# from mint dir\nmake install\nTo confirm that the installation has succeeded, you can run:\nmintstationd version\n# v0.0.1","configure#Configure":"Set the chain-id & node\nmintstationd config chain-id mintstation-1\nmintstationd config node {node_rpc_endpoint}"}},"/mintstation/contracts/create":{"title":"Code a Contract","data":{"":"To implement a wasm smart contract, it is highly recommended to learn Rust first. Rust is the language commonly used for wasm development and is well-regarded for its stability and performance. You can begin your Rust learning journey by referring to the following link:Rust Language Learning GuideFor smart contract development, you can follow the structure provided by CosmWasm's template. This template will help you understand the project's architecture and enable you to develop your contract more systematically. You can find the template at the following link:CosmWasm Template, book.cosmwasm.comAmong the popular smart contract samples, there are cw20 and cw721 implementations. cw20 represents a widely-used token contract, while cw721 implements a Non-Fungible Token (NFT) contract. These samples can be valuable references during your development process. You can explore the code for each sample through the links below:cw20, cw721For all great CosmWasm tools, https://github.com/CosmWasm/awesome-cosmwasmAlthough smart contract development can be complex, leveraging the provided resources will increase your chances of successfully completing your project. Additionally, make sure to actively engage with the community and online resources to continue your learning journey and receive ongoing support. Best of luck!"}},"/mintstation/contracts/deploy":{"title":"Deploy a Contract","data":{"prerequisite#PreRequisite":"Make sure you follow the create a contract guide first for your project. Once you have a contract compiled in the artifacts/*.wasm directory, you are ready for this guide.","upload#Upload":"You need to upload the contract via the CLI to chain. To do this, perform the following\nTXFLAGS=\"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3\"\nmintstationd tx wasm store artifacts/CONRTACT_NAME.wasm \\\n --from $TXFLAGS -y --broadcast-mode=block\nThis will then return a transaction hash. With this data, you need to query it to get the code id of the contract on chain\nmintstationd q tx --output=json\nThis will return the data about the transaction, and give us the code id of our contract\n{\n \"height\": \"294601\",\n \"txhash\": \"\",\n \"codespace\": \"\",\n \"code\": 0,\n \"data\": \"\",\n \"raw_log\": \"[{\\\"events\\\":[{\\\"type\\\":\\\"message\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"action\\\",\\\"value\\\":\\\"/cosmwasm.wasm.v1.MsgStoreCode\\\"},{\\\"key\\\":\\\"module\\\",\\\"value\\\":\\\"wasm\\\"},{\\\"key\\\":\\\"sender\\\",\\\"value\\\":\\\"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl\\\"}]},{\\\"type\\\":\\\"store_code\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"code_checksum\\\",\\\"value\\\":\\\"\\\"},{\\\"key\\\":\\\"code_id\\\",\\\"value\\\":\\\"13\\\"}]}]}]\",\n \"logs\": [\n {\n \"msg_index\": 0,\n \"log\": \"\",\n \"events\": [\n {\n \"type\": \"message\",\n \"attributes\": [\n {\n \"key\": \"action\",\n \"value\": \"/cosmwasm.wasm.v1.MsgStoreCode\"\n },\n {\n \"key\": \"module\",\n \"value\": \"wasm\"\n },\n {\n \"key\": \"sender\",\n \"value\": \"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl\"\n }\n ]\n },\n {\n \"type\": \"store_code\",\n \"attributes\": [\n {\n \"key\": \"code_checksum\",\n \"value\": \"\"\n },\n {\n \"key\": \"code_id\",\n \"value\": \"13\"\n }\n ]\n }\n ]\n }\n }]\n}\nWe can see both raw_log and also logs[0].events[1].store_code shows the code_id being 13. If you wish the automate this return code in bash to a variable, you can \n# ensure jq is installed\nUPLOAD_TX_HASH=\nCODE_ID=$(mintstationd q tx $UPLOAD_TX_HASH --output json | jq -r '.logs[0].events[] | select(.type == \"store_code\").attributes[] | select(.key == \"code_id\").value') && echo \"Code Id: $CODE_ID\"","instantiate#Instantiate":"With the code now being up on chain, we can now run logic to setup our own copy of the contract which we control. This will then give us a unique contract address for others to interact with in accordance with the contract logic. This example is from the cosmwasm/cw-template.Ensure you change CODE_ID to match your code id from the store code\nFLAGS=\"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3\"\n#Example1\nCODE_ID=1\nmintstationd tx wasm instantiate \"$CODE_ID\" '{\"count\":0}' --label \"contract\" $FLAGS -y --admin \n#cw20\nCODE_ID=2\nINIT='{\"name\":\"CW20\",\"symbol\":\"TOKEN\",\"decimals\":2,\"initial_balances\":[{\"amount\":\"1000000\",\"address\":
}]}'\nmintstationd tx wasm instantiate \"$CODE_ID\" \"$INIT\" --from --label \"cw-token\" $FLAGS -y --admin "}},"/mintstation/contracts/query":{"title":"Query A Contract","data":{"command-line-interface#Command Line Interface":"The most common way to query a cosmwasm smart contract is within the mintstationd wasm smart query command. This follows the following format where query is a JSON string with no spaces. By default, the least amount of data this can be is an empty JSON payload '{}'.\nmintstationd query wasm contract-state smart [contract_bech32] [query] [flags]\nFor this example, we are going to use a random NFT contract on the mint chain. This will show you how to brute force query a contract if you have no idea what the query schema of the contract is. At this time, there is no way to query the format of a contract's requests, but this is something many are actively working on.Now we attempt to query this contract address and extract some data from it and get which queries are allowed. As you can see, we pass through a random payload for abcde so that the contract will return actual valid query requestsNOTE: A Query can never be empty such as '{}' given you need to specify the path of data you want to reach.{% hint style=\"info\" %}\nThe query shows CW721 Base is this contracts name. As this is a standard contract, all messages can be found in the CosmWasm/cw-nfts repository on github\nhttps://github.com/CosmWasm/cw-nfts/blob/main/contracts/cw721-base/src/msg.rs\n{% endhint %}From this, we now know all of the query endpoints and can requests something more specific from the contract for our usage. Let's get\nCONTRACT=\nmintstationd q wasm contract-state smart $CONTRACT '{\"all_tokens\":{}}'\ndata:\n tokens:\n - \"0\"\n - \"1\"\n - \"2\"\n - \"3\"\n - \"4\"\n - \"5\"\n - \"6\"\n - \"7\"\n - \"8\"\n# You can use --output=json to read it via JSON form\n# mintstationd q wasm contract-state smart $CONTRACT '{\"all_tokens\":{}}' --output=json | jq .data\nHere we can see there are 8 tokens in this set. Lets query one of the NFTs information\nCONTRACT=\nmintstationd q wasm contract-state smart $CONTRACT '{\"nft_info\":{}}'\n# missing field `token_id`: query wasm contract failed\nJust like the first query, we can see that the payload needs more information. It returned an error that we need to specify the token_id we want the nft_info for. Note, Uint128 sized numbers are read as a string\nCONTRACT=\nmintstationd q wasm contract-state smart $CONTRACT '{\"nft_info\":{\"token_id\":\"8\"}}'\n# data:\n# extension: null\n# token_uri: ipfs:///metadata.json","rest-api-query#Rest API Query":"If you wish to query the data more programmatically with an application such as Python, you may be better suited to use the rest API. You can find these endpoints on https://cosmos.directory/mint/nodes in the REST section.This query endpoint can be found via Mintstation's SwaggerUI. However, some modules you will not be able to easily find the endpoint. To do this, you will need to search through the proto files. Here we know we want to query the cosmwasm module, which is called wasmd on chain. This repo is found at https://github.com/cosmwasm/wasmd.\nIn this module, you can see the proto folder in the root of the repo. This will house the endpoints the module exposes so we can find the above path which. This is a query so we find the query proto file\nhttps://github.com/CosmWasm/wasmd/blob/main/proto/cosmwasm/wasm/v1/query.proto\\\noption go_package = \"github.com/CosmWasm/wasmd/x/wasm/types\";\noption (gogoproto.goproto_getters_all) = false;\noption (gogoproto.equal_all) = false;\n// Query provides defines the gRPC querier service\nservice Query {\n ...\n // SmartContractState get smart query result from the contract\n rpc SmartContractState(QuerySmartContractStateRequest)\n returns (QuerySmartContractStateResponse) {\n option (google.api.http).get =\n \"/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}\";\n }\n ...\n{% hint style=\"info\" %}\nYou must base64 encode the JSON payload for REST API Request. Just take your JSON payload and\n- put it into https://www.base64encode.org/\n- or use Mac / Linux built in command\necho '{\"all_tokens\":{}}' | base64\n# eyJhbGxfdG9rZW5zIjp7fX0K\n{% endhint %}With this, we can now query the contract and gather the data. You can use your web browser, or a library like httpx / requests in Python for automated bots. Be aware that many API providers will late limit the number of requests you can make.\nhttps://api.mint.strange.love/cosmwasm/wasm/v1/contract//smart/eyJhbGxfdG9rZW5zIjp7fX0K\n{\n \"data\": {\n \"tokens\": [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"]\n }\n}","cosmology-smart-contract-query#Cosmology Smart Contract Query":"Using CosmWasm/ts-codegen, you can create an NPM module to make interactions and queries into dev-friendly Typescript classes to allow you to focus on shipping code.Here are a few tutorials from cosmology:\nts-codegen overview for CosmWasm\nCosmWasm Contract to Typescript npm module\nConfigure CosmWasm ts-codegen in your Contracts repo\nQuery a CosmWasm smart contract from ts-codegen\nEnable React Query\nEnable Recoil\nIntegrate Telescope with ts-codegen"}},"/mintstation/contracts/execute":{"title":"Send Tokens to a Contract","data":{"command-line-interface#Command Line Interface":"When you execute a message, a user can also pass through a flag which sends funds from their account to the contract to do logic. You can check if a user sends any funds in your contract's execute endpoint with the info.funds array of Coins sent by the user. These funds then get added to the contracts balance just like any other account. So it is up to you as the developer to ensure to save how many funds each user has sent via a BTreeMap or other object storage in state (if they can redeem funds back at a later time).To send funds to a contract with some arbitrary endpoint, you use the --amount flag.\nmintstationd tx wasm execute CONTRACT '{\"some_endpoint\":{}}' --amount 1000000umint\nIf the \"some_endpoint\" execute errors on the contract, the funds will remain in the users account.","typescript#Typescript":"import type { Coin } from '@cosmjs/stargate';\nimport { SigningStargateClient, StargateClient, type StdFee } from '@cosmjs/stargate';\nimport type { OfflineAminoSigner } from '@cosmjs/amino';\nimport type { OfflineDirectSigner } from '@cosmjs/proto-signing';\nimport { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';\nlet RPC = '';\nconst get_wallet_for_chain = async (\n chain_id: string,\n): Promise => {\n // open keplr\n const cosmostation = window as CosmostationWindow;\n if (keplr === undefined) {\n throw new Error('Cosmostation not found');\n }\n let signer = cosmostation.getOfflineSignerAuto;\n if (signer === undefined) {\n throw new Error('Cosmostation not found');\n }\n return signer(chain_id);\n};\nlet wallet = await get_wallet_for_chain('mintstation-1');\nlet address = (await wallet.getAccounts())[0].address;\nlet from_client = await SigningCosmWasmClient.connectWithSigner(RPC, wallet, {\n prefix: 'mint',\n});\nconst msg = { some_endpoint: {} };\nlet fee: StdFee = {\n amount: [{ amount: '5000', denom: 'umint' }],\n gas: '500000',\n};\nlet send_amount: Coin = {\n amount: '100000',\n denom: 'umint',\n};\nawait from_client\n .execute(address, REVIEWS_CONTRACT_ADDRESS, msg, fee, 'memo', send_amount)\n .then((res) => {\n console.log(`Success @ height ${res.height}\\n\\nTxHash: ${res.transactionHash}`);\n });"}},"/mintstation":{"title":"Mintstation","data":{"":"Mintstation is a network designed for testing the Cosmos SDK. It provides access to the latest features of the Cosmos ecosystem, allowing users to leverage CosmWasm smart contracts.In this documentation, the following topics are covered:\nLocal network installation\nCLI usage\nRunning a full node and participating as a validator\nUtilizing Cosmwasm for smart contract development\nCustom module development\nMintstation offers a testing ground for developers and users to explore and experiment with the capabilities of the Cosmos SDK while having the ability to interact with CosmWasm smart contracts. The documentation provides comprehensive guidance on setting up a local network, utilizing the CLI, engaging as a validator, and leveraging Cosmwasm for smart contract deployment. Additionally, developers are encouraged to explore custom module development to tailor the network to their specific needs.By providing an environment that maintains the latest features of the Cosmos SDK and supports Cosmwasm smart contracts, Mintstation facilitates a dynamic and insightful experience for individuals and teams working within the Cosmos ecosystem."}},"/mintstation/validator/command":{"title":"Useful command for Validators","data":{"upgrade-to-a-validator#Upgrade to a validator":"Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step.To upgrade the node to a validator, you will need to submit a create-validator transaction:\nmintstationd tx staking create-validator \\\n --amount 1000000umint \\\n --commission-max-change-rate \"0.1\" \\\n --commission-max-rate \"0.20\" \\\n --commission-rate \"0.1\" \\\n --min-self-delegation \"1\" \\\n --details \"validators write bios too\" \\\n --pubkey=$(mintstationd tendermint show-validator) \\\n --moniker \"$MONIKER_NAME\" \\\n --chain-id $CHAIN_ID \\\n --gas-prices 0.025umint \\\n --from \nThe above transaction is just an example. There are many more flags that can be set to customise your validator, such as your validator website, or keybase.io id, etc. To see a full list:\nmintstationd tx staking create-validator --help","unjail#Unjail":"stationed tx slashing unjail --from --keyring-backend test --chain-id mintstation-1 --fees 100umint"}},"/mintstation/validator/delegations":{"title":"Delegations","data":{"":"If you wish to perform more extensive testing and require additional delegations, please don't hesitate to get in touch with us at mintstation@cosmostation.io.We are more than happy to provide you with the necessary delegations to support your testing efforts. Our delegation services aim to help you thoroughly evaluate and explore the features and capabilities of our platform.By reaching out to us, you can access a wide range of resources and support to make the most out of your testing experience. Whether you are testing staking, governance, or any other aspects of our system, we want to ensure that you have a beautiful and seamless experience.Feel free to contact us with any specific requirements or questions you may have. Our team at mintstation@cosmostation.io is ready to assist you, and we look forward to supporting your testing journey!"}},"/mintstation/validator/localnet":{"title":"Localnet","data":{"setup-signle-local-network#Setup signle local network":"To set up a single local network easily, you can directly run the script below, and it will start working immediately:To get up and running with the mintstationd binary, please follow the instructions here.\nAPP_HOME=\"$HOME/.mintstationd\"\nRPC=\"http://localhost:26657\"\nCHAIN_ID=\"localnet-1\"\nMONIKER=\"Moniker\"\nmintstationd init ${MONIKER} --chain-id ${CHAIN_ID} --home ${APP_HOME}\nsed -i -r 's/minimum-gas-prices = \"\"/minimum-gas-prices = \"0.0001umint\"/' ${APP_HOME}/config/app.toml\nsed -i -e 's/\\\"stake\\\"/\\\"umint\\\"/g' ${APP_HOME}/config/genesis.json\nmintstationd start --home ${APP_HOME}"}},"/mintstation/validator/mainnet":{"title":"Joining Mainnet","data":{"":"To get up and running with the mintstationd binary, please follow the instructions here.","setting-up-the-node#Setting up the Node":"These instructions will direct you on how to initialize your node, synchronize to the network and upgrade your node to a validator.","initialize-the-chain#Initialize the chain":"CHAIN_ID=mintstation-1\nMONIKER_NAME=\nmintstationd init \"$MONIKER_NAME\" --chain-id $CHAIN_ID\nThis will generate the following files in ~/.mintstationd/config/\ngenesis.json\nnode_key.json\npriv_validator_key.json","download-the-genesis-file#Download the genesis file":"Download the the geneis file.\n# Download genesis.json file (https://github.com/cosmostation/mintstation)\nrm ~/.mintstationd/config/genesis.json\nmv genesis.json $HOME/.mintstationd/config/genesis.json\nThis will replace the genesis file created using mintstationd init command with the mainnet genesis.json.","set-seeds#Set seeds":"We can set the seeds by retrieving the list of seeds from the mintstation repo and using sed to inject into ~/.mintstationd/config/config.toml:\n# Set the base repo URL for mainnet & retrieve seeds\nCHAIN_REPO=\"https://raw.githubusercontent.com/cosmostation/mintstation/main/$CHAIN_ID\" && \\\nexport SEEDS=\"$(curl -sL \"$CHAIN_REPO/seeds.txt\")\"\n# Add seeds to config.toml\nsed -i.bak -e \"s/^seeds *=.*/seeds = \\\"$SEEDS\\\"/\" ~/.mintstationd/config/config.toml","set-minimum-gas-prices#Set minimum gas prices":"For RPC nodes and Validator nodes we recommend setting the following minimum-gas-prices. As we are a permissionless wasm chain, this setting will help protect against contract spam and potential wasm contract attack vectors.In $HOME/.mintstationd/config/app.toml, set minimum gas prices:\nsed -i.bak -e \"s/^minimum-gas-prices *=.*/minimum-gas-prices = \\\"0.0025umint\\\"/\" ~/.mintstationd/config/app.toml","create-or-restore-a-local-key-pair#Create (or restore) a local key pair":"Either create a new key pair, or restore an existing wallet for your validator:\nmintstationd keys add \n# OR\n# Restore existing mint wallet with mnemonic seed phrase.\n# You will be prompted to enter mnemonic seed.\nmintstationd keys add --recover\n# Query the keystore for your public address\nmintstationd keys show -a\nReplace with a key name of your choosing.After creating a new key, the key information and seed phrase will be shown. It is essential to write this seed phrase down and keep it in a safe place. The seed phrase is the only way to restore your keys.","get-some-tokens#Get some tokens":"Delegations here.","syncing-the-node#Syncing the node":"There are methods to sync a node to the network:","from-genesis#From genesis":"After starting the mintstationd daemon, the chain will begin to sync to the network. The time to sync to the network will vary depending on your setup and the current size of the blockchain, but could take a very long time. To query the status of your node:\n# Query via the RPC (default port: 26657)\ncurl http://localhost:26657/status | jq .result.sync_info.catching_up\nIf this command returns true then your node is still catching up. If it returns false then your node has caught up to the network current block and you are safe to proceed to upgrade to a validator node.When syncing from genesis, you will need to perform upgrades while catching up to the head. mintstation-1 upgrades are detailed in node-upgrade.md along with a description of each type of upgrade.","backup-critical-files#Backup critical files":"There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.mintstationd/config/:\npriv_validator_key.json\nnode_key.json\nIt is recommended that you encrypt the backup of these files."}},"/mintstation/validator/upgrade":{"title":"Upgrades","data":{"upgrades#Upgrades":"Release procedures for validators and node operators are explained here.","upgrade-types#Upgrade types":"There are two types of upgrades that happen on Mintstation Network. They are:\nPlanned feature upgrades or planned patches\nUnplanned security upgrades.","planned-upgrade-via-governance#Planned upgrade (via governance)":"Planned upgrades, as the name suggests, are upgrades that are developed and proposed via governance. If approved by the community, these upgrades are undertaken by the chain automatically halting at the planned upgrade height.Node operators are then required to swap the binary for the planned upgrade binary. After all node operators have upgraded and started their nodes the network will continue in the upgraded state.","unplanned-upgrade#Unplanned upgrade":"Where emergency security patches are required node operators will be required to halt their nodes manually at the required upgrade height, swap the patched binary and restart their nodes. After all node operators have upgraded and started their nodes the network will continue in the upgraded state."}},"/mobile/article":{"title":"Articles","data":{"":"How to Derive(Add) & Manage WalletsWallet Management“dApp” on Cosmostation Mobile WalletIntroducing AuthZ on Cosmostation MobileGas OptimizationKava DeFiOsmosis and Sifchain DEXNFT on Cosmostation MobileStarname Service"}},"/mobile":{"title":"Introduction","data":{"":"Mobile wallets support various types of services.\nAccess dApps on desktop/mobile via QR code scanning.\nConnect with dApps from your mobile browser via Deep Link.\nIn-app browser support on mobile wallets.\nCosmostation Mobile Wallet supports dApps through various methods.\nCosmostation(Same way as Extension)\nCosmos-Kit\nWalletConnect 1.0(Deprecated), WalletConnect 2.0\nConnections using Cosmostation and WalletConnect also implement the Keplr and Web3j specifications."}},"/mobile/integration/cosmjs":{"title":"Integrate cosmjs","data":{"":"Cosmjs TutorialCosmjs Example CodeCosmjs Example Page","add-package#Add package":"yarn add @cosmostation/cosmos-client\nnpm install @cosmostation/cosmos-client","offline-signer#Offline Signer":"import { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nimport { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nimport { GasPrice, calculateFee } from \"@cosmjs/stargate\";\nimport { SigningCosmWasmClient } from \"@cosmjs/cosmwasm-stargate\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nconst rpcEndpoint = RPC_END_POINT;\nconst client = await SigningCosmWasmClient.connectWithSigner(\n rpcEndpoint,\n offlineSigner\n);\n//getAccounts\nconst accounts = await offlineSigner.getAccounts();\n//execute\nconst gasPrice = GasPrice.fromString(\"0.01denom\");\nconst fees = {\n upload: calculateFee(1500000, gasPrice),\n init: calculateFee(500000, gasPrice),\n exec: calculateFee(500000, gasPrice),\n};\nconst result = await client.execute(\n accounts[0].address,\n RECEIPT_ADDRESS,\n MESSAGE,\n fees.exec\n);"}},"/mobile/integration/cosmostation":{"title":"Cosmostation","data":{"":"Using @cosmostation/extension-client to support both Mobile and PC in the same way as extensions.\nIf your project's dApp works well in Cosmostation Extension, it will work well in mobile too.\nFor more detailed explanation, please refer to the Cosmostation Extension Guide."}},"/mobile/integration/walletconnect/accounts":{"title":"Accounts","data":{"":"Use account on Cosmostation Mobile Wallet via WalletConnect.","get-accounts#Get Accounts":"Select an account after checking unsupported chains or empty accounts.The response only contains selected account.\nexport function getAccountRequest(chainIds) {\n return {\n id: payloadId(),\n jsonrpc: \"2.0\",\n method: \"cosmostation_wc_accounts_v1\",\n params: chainIds,\n };\n}\nconst request = getAccountRequest([CHAIN_ID, NOT_SUPPORTED_CHAIN_ID]);\nconnector\n .sendCustomRequest(request)\n .then((accounts) => {\n setAccounts(accounts);\n console.log(accounts.length == 1);\n })\n .catch((error) => {\n console.error(error);\n });\ntype AccountResponse = {\n name: string;\n algo: string;\n address: Uint8Array;\n pubKey: string;\n bech32Address: string;\n};"}},"/mobile/integration/walletconnect/sign-tx":{"title":"Sign Transactions","data":{"":"Sign transcation using Cosmostation Mobile Wallet via WalletConnect.\nexport function getSignTxRequest(chainId, signer, signDoc) {\n return {\n id: payloadId(),\n jsonrpc: \"2.0\",\n method: \"cosmostation_wc_sign_tx_v1\",\n params: [chainId, signer, signDoc],\n };\n}\nconst signDoc = makeAminoSignDoc(\n [message],\n fee,\n CHAIN_ID,\n \"\",\n accountNumber,\n sequence\n);\nconst request = getSignAminoRequest(CHAIN_ID, address, signDoc);\nconnector\n .sendCustomRequest(request)\n .then((response) => {\n const signed = _.get(response, \"0.signed\");\n const signature = _.get(response, \"0.signature\");\n return broadcastTx(signed, signature);\n })\n .then((result) => {\n const code = _.get(result, \"code\");\n if (code === 0) {\n const txHash = _.get(result, \"txhash\");\n console.log(txHash);\n } else {\n const rawLog = _.get(result, \"raw_log\");\n console.error(rawLog);\n }\n });\ntype SignTxResponse = {\n signed: StdSignDoc;\n signature: { signature: string; pub_key: { type: string; value: string } };\n};"}},"/mobile/integration/walletconnect2":{"title":"WalletConnect 2.0","data":{"":"Cosmostation Mobile Wallet implement WalletConnect 2.0 specs.WalletConnect 2.0 Cosmos GuideWalletConnect 2.0 Example CodeWalletConnect 2.0 Example Page","connect#Connect":"import Client from \"@walletconnect/sign-client\";\nimport {\n PairingTypes,\n ProposalTypes,\n SessionTypes,\n} from \"@walletconnect/types\";\nfunction App() {\n const [client, setClient] = useState();\n const [pairings, setPairings] = useState([]);\n const [session, setSession] = useState();\n const [chains, setChains] = useState([]);\n const [accounts, setAccounts] = useState([]);\n useEffect(() => {\n if (client === undefined) {\n createClient();\n }\n }, [client]);\n const createClient = async () => {\n try {\n const _client = await Client.init({...});\n setClient(_client);\n } catch (err) {\n throw err;\n } finally {\n }\n };\n async function connect() {\n const modal = new Modal();\n if (typeof client === \"undefined\") {\n throw new Error(\"WalletConnect is not initialized\");\n }\n try {\n const requiredNamespaces = getRequiredNamespaces();\n const { uri, approval } = await client.connect({\n pairingTopic: undefined,\n requiredNamespaces: {\n cosmos: {\n methods: [\"cosmos_signDirect\", \"cosmos_signAmino\"],\n chains: [\"cosmos:cosmoshub-4\"],\n events: [],\n },\n },\n });\n if (uri) {\n const standaloneChains = Object.values(requiredNamespaces)\n .map((namespace) => namespace.chains)\n .flat();\n modal.open(uri, standaloneChains);\n }\n const session = await approval();\n console.log(\"Established session:\", session);\n await onSessionConnected(session);\n setPairings(client.pairing.getAll({ active: true }));\n } catch (e) {\n console.error(e);\n } finally {\n modal.close();\n }\n }\n const getRequiredNamespaces = (): ProposalTypes.RequiredNamespaces => {\n return Object.fromEntries(\n chains.map((namespace) => [\n namespace,\n {\n methods: [\"cosmos_signDirect\", \"cosmos_signAmino\"],\n chains: chains.filter((chain) => chain.startsWith(namespace)),\n events: [],\n },\n ])\n );\n };\n const onSessionConnected = useCallback(\n async (_session: SessionTypes.Struct) => {\n const allNamespaceAccounts = Object.values(_session.namespaces)\n .map((namespace) => namespace.accounts)\n .flat();\n const allNamespaceChains = Object.keys(_session.namespaces);\n setSession(_session);\n setChains(allNamespaceChains);\n setAccounts(allNamespaceAccounts);\n },\n []\n );\n}"}},"/mobile/integration/walletconnect/connect":{"title":"Connect","data":{"":"Cosmostation Mobile Wallet supports dApps via WalletConnect.(Deprecated)WalletConnect Example CodeWalletConnect Example Page\nimport WalletConnect from \"@walletconnect/client\";\nexport async function connect() {\n const connector = new WalletConnect({\n bridge: \"https://bridge.walletconnect.org\",\n signingMethods: [\n \"cosmostation_wc_accounts_v1\",\n \"cosmostation_wc_sign_tx_v1\",\n ],\n qrcodeModal: new CosmostationWCModal(),\n });\n await connector.createSession();\n return connector;\n}","modal#Modal":"Use CosmostationModal when initializing WalletConnect to use DeepLink and QRCode connect.\nyarn add @cosmostation/wc-modal\nimport CosmostationWCModal from \"@cosmostation/wc-modal\";","event#Event":"By implementing connect/disconnect event, handle connect state event.\nconst connector = await connect();\nconnector.on(\"connect\", (error, payload) => {\n if (error) {\n setConnected(false);\n throw error;\n }\n setConnected(true);\n});\nconnector.on(\"disconnect\", (error, payload) => {\n setConnected(false);\n});"}},"/mintscan/registry/moniker":{"title":"How to add your validator moniker image","data":{"":"To add moniker image on mintscan validator tab.\nAdd your image to ${targetchain}/moniker folder\nImage with png format and validator address name\nExample will display cosmostation validator moniker logo for cosmos"}},"/mobile/listing":{"title":"How to dApp listing?","data":{"":"For add your dapp to Mobile Wallet.Create a pull request from the link below.https://github.com/cosmostation/chainlist/blob/main/dapp/README.md"}},"/mintstation/module":{"title":"Building Modules","data":{"":"In this tutorial we will be going over building a module in Mintstation to show how easy it is to build on top of the Mintstation ecosystem. This module will be simple in nature but will show how to set up and connect a module to Mintstation and can be used as a starting point for more complex modules.","set-up#Set up":"git clone https://github.com/cosmostation/mintstation.git","defining-protocol-buffer-types#Defining Protocol Buffer Types":"The first step in building a new Mintstation Module is to define our Module's types. To do that we use Protocol Buffers which is a used for serializing structured data and generating code for multiple target languages, Protocol Buffers are also smaller than JSON & XML so sending data around the network will be less expensive. Learn More.Our Protobuf files will all live in proto/mintstation directory. we will create a new directory with the new module greet and add the following files in the proto/greet/v1beta1/ directory\ngenesis.proto\ngreet.proto\nquery.proto\ntx.proto","defining-the-greet-type#Defining The Greet Type":"Inside the proto/greet/v1beta1/greet.proto file lets define our greet type:\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\nimport \"cosmos_proto/cosmos.proto\";\nimport \"gogoproto/gogo.proto\";\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\nmessage Greet {\nstring owner = 1;\nstring id = 2;\nstring message = 3;\n}\nHere we are saying that we have a Greet type that will have an owner, an id and a message that will contain the greet string. Once we have that defined we are ready to set up a way to create this greet message and query it.","creating-a-new-greeting#Creating a new Greeting":"Inside the proto/greet/v1beta1/tx.proto file lets define our Msg Type:\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\nimport \"gogoproto/gogo.proto\";\nimport \"cosmos_proto/cosmos.proto\";\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\nservice Msg {\n\trpc CreateGreet(MsgCreateGreet) returns (MsgCreateGreetResponse);\n}\nmessage MsgCreateGreet {\nstring message = 1;\nstring owner = 2;\n}\nmessage MsgCreateGreetResponse {}\nNow that we have defined how to create a new Greeting let's finish up by setting up our queries to view a specific greeting or all of them.One thing to note here is that any state changing actions are transactions and for that reason we put them in our tx.proto files, we essentially said we are creating a new state changing message & defined the types for that message in our proto file, we will later add clients to trigger state change, which in our case will be adding a new message to our chain.","querying-greetings#Querying Greetings":"Code inside the proto/greet/v1beta1/query.proto :\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\nimport \"gogoproto/gogo.proto\";\nimport \"google/api/annotations.proto\";\nimport \"cosmos/base/query/v1beta1/pagination.proto\";\nimport \"cosmos_proto/cosmos.proto\";\nimport \"mintstation/greet/v1beta1/greet.proto\";\nservice Query {\n\trpc Greet(QueryGetGreetRequest) returns (QueryGetGreetResponse) {\n\toption (google.api.http).get = \"/mintstation/greet/v1beta1/greetings/{id}\";\n\t}\n\trpc GreetAll(QueryAllGreetRequest) returns (QueryAllGreetResponse) {\n\toption (google.api.http).get = \"/mintstation/swap/v1beta1/greetings\";\n\t}\n}\nmessage QueryGetGreetRequest {\nstring id = 1;\n}\nmessage QueryGetGreetResponse {\nGreet greeting = 1;\n}\nmessage QueryAllGreetRequest {\ncosmos.base.query.v1beta1.PageRequest pagination = 1;\n}\nmessage QueryAllGreetResponse {\nrepeated Greet greetings = 1;\ncosmos.base.query.v1beta1.PageResponse pagination = 2;\n}\nOur query.proto now contains the types for our queries, we have defined a request type & a response type and those types will be returned once we trigger a query through the CLI, REST API, or Grpc. The response will follow the same structure regardless of the type of client initiating the request.We defined our query, tx, and greet proto files we finally need to set up the genesis file and then we are ready to generate these types. In the genesis file we will create a minimal genesis.proto for this tutorial to keep things simple.\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\nimport \"mintstation/greet/v1beta1/greet.proto\";\nimport \"gogoproto/gogo.proto\";\nimport \"google/protobuf/timestamp.proto\";\nimport \"cosmos_proto/cosmos.proto\";\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\n// our gensis state message will be empty for this tutorial\nmessage GenesisState {}\nOnce all the files are filled in we are ready to generate our proto types. in the Mintstation Directory run make proto-gen to generate the types, this will create a folder inside the x/greet and will contain the auto-generated proto types.","developing-our-greet-module#Developing Our Greet Module":"we have successfully set up our Proto files & generated them, we now have a x/greet directory generated, this is where we will write our module's code. For starters we will define our module's types in a new file inside x/greet/types/greet.go.","setting-up-constants--importing-packages#Setting up constants & importing packages":"Let's set up some basic constants for our module to help with routing, & fetching items from our store.\npackage types\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"github.com/cosmos/cosmos-sdk/codec\"\n\t\"github.com/cosmos/cosmos-sdk/codec/types\"\n\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n\tsdkerrors \"github.com/cosmos/cosmos-sdk/types/errors\"\n\t\"github.com/cosmos/cosmos-sdk/types/msgservice\"\n)\n// defined our module's constants such as name, routerkey\n// and prefixes for getting items from the store\nconst (\n\tModuleName = \"greet\"\n\tStoreKey = ModuleName\n\tRouterKey = ModuleName\n\tQuerierRoute = ModuleName\n\tGreetKey = \"greet-value-\" // used for getting a greeting from our store\n\tGreetCountKey = \"greet-count-\" // used for getting count from out store\n\tQueryGetGreeting = \"get-greeting\" // used for legacy querier routing\n\tQueryListGreetings = \"list-greetings\"// used for legacy querier routing\n)\n// heler function simply returns []byte out of a prefix string\nfunc KeyPrefix(p string) []byte {\n\treturn []byte(p)\n}\n// returns default genesis state\nfunc DefaultGenesisState() GenesisState {\n\treturn GenesisState{}\n}\n// validates genesis state\nfunc (gs GenesisState) Validate() error {\n\treturn nil\n}","setting-up-our-msg-for-creating-a-new-greeting#Setting up our Msg for creating a new greeting":"Our MsgCreateGreet struct was created when we generated our Proto Types, we now need to use that struct to implement the sdk.Msg interface such that we can create new greetings. the first thing we will do is defined an unnamed variable with the _ syntax and have it implement the sdk.Msg type. This will help us catch unimplemented functions and guide us with syntax highlighting.\n// MsgCreateGreet we defined it here to get type checking\n//to make sure we are immplementing it correctly\nvar _ sdk.Msg = &MsgCreateGreet{}\n// constructor for creating a new greeting\nfunc NewMsgCreateGreet(owner string, message string) *MsgCreateGreet{\n\treturn &MsgCreateGreet{\n\tOwner: owner,\n\tMessage: message,\n\t}\n}\n// does a quick stateless validation on our new greeting\nfunc (m *MsgCreateGreet) ValidateBasic() error {\n\t// ensures address is valid\n\tif _, err := sdk.AccAddressFromBech32(m.Owner); err != nil {\n\t\treturn sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, \"invalid owner address\", err)\n\t}\n\t// ensures the greeting is not empty\n\tif len(strings.TrimSpace(m.Message)) == 0 {\n\t\treturn fmt.Errorf(\"must provide a greeting message\")\n\t}\n\treturn nil\n}\n// gets the signer of the new message which will be the owner of the greeting\nfunc (m *MsgCreateGreet) GetSigners() []sdk.AccAddress {\n\towner, err := sdk.AccAddressFromBech32(m.Owner);\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn []sdk.AccAddress{owner}\n}","registering-our-codec--interfaces#Registering our Codec & interfaces":"now that we have our MsgCreateGreet implement the sdk.Msg interface let's register our codec for marshaling/unmarshaling our greeting we will register both the deprecated legacy amino and the new Interface registry.\n// registers the marshal/unmarsahl for greating a new greeting for our legacy amino codec\nfunc RegisterLegacyAminoCodec(cdc *codec.LegacyAmino){\n\tcdc.RegisterConcrete(&MsgCreateGreet{}, \"greet/CreateGreet\", nil)\n}\n// registers a module's interface types and their concrete implementations as proto.Message.\nfunc RegisterInterfaces(registry types.InterfaceRegistry){\n\tregistry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateGreet{})\n\tmsgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)\n}\nvar amino = codec.NewLegacyAmino()\nvar ModuleCdc = codec.NewAminoCodec(amino)","setting-up-a-basic-keeper#Setting up a basic Keeper":"we have finished up setting up our types, now it's time to implement our greet module's keeper, lets do that in a new folder & package named keeper, create x/greet/keeper/greet_keeper.go .","setting-up-the-keeper-struct--imports#Setting up the Keeper Struct & imports":"keepers are an abstraction over the state defined by a module, every module would have a keeper which would be used to access the state of that module, or if given access a keeper can also use other module's keepers by providing reference to the other module's keeper.\npackage keeper\nimport (\n\t\"context\"\n\t\"strconv\"\n\t\"github.com/cosmos/cosmos-sdk/codec\"\n\t\"github.com/cosmos/cosmos-sdk/store/prefix\"\n\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n\tabci \"github.com/tendermint/tendermint/abci/types\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\tsdkerrors \"github.com/cosmos/cosmos-sdk/types/errors\"\n)\ntype Keeper struct {\n\tcdc codec.Codec // used to marshall and unmarshall structs from & to []byte\n\tkey sdk.StoreKey // grant access to the store\n}\n// our constructor for creating a new Keeper for this module\nfunc NewKeeper(c codec.Codec, k sdk.StoreKey) Keeper {\n\treturn Keeper{\n\tcdc: c,\n\tkey: k,\n\t}\n}","wiring-up-our-methods-for-handling-new-transactions--queries#Wiring up our methods for handling new transactions & queries":"Now that we have our Keeper Struct written, let's create some receiver functions on our keeper to handle adding a new greeting & looking up a greeting.\n// get greet count will be used for setting an Id when a new greeting is created\nfunc (k Keeper) GetGreetCount(ctx sdk.Context) int64 {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetCountKey))\n\tbyteKey := types.KeyPrefix(types.GreetCountKey)\n\tbz := store.Get(byteKey)\n\tif bz == nil {\n\t\treturn 0\n\t}\n\tcount, err := strconv.ParseInt(string(bz), 10, 64)\n\tif err != nil {\n\t\tpanic(\"cannot decode count\")\n\t}\n\treturn count\n}\n// sets the greet count\nfunc (k Keeper) SetGreetCount(ctx sdk.Context, count int64){\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetCountKey))\n\tkey := types.KeyPrefix(types.GreetCountKey)\n\tvalue := []byte(strconv.FormatInt(count, 10))\n\tstore.Set(key, value)\n}\n// creates a new greeting\nfunc (k Keeper) CreateGreet(ctx sdk.Context, m types.MsgCreateGreet){\n\tcount := k.GetGreetCount(ctx)\n\tgreet := types.Greet{\n\tId: strconv.FormatInt(count, 10),\n\tOwner: m.Owner,\n\tMessage: m.Message,\n\t}\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\tkey := types.KeyPrefix(types.GreetKey + greet.Id)\n\tvalue := k.cdc.MustMarshal(&greet)\n\tstore.Set(key, value)\n\tk.SetGreetCount(ctx, count + 1)\n}\n// gets a greeting from the store\nfunc (k Keeper) GetGreeting(ctx sdk.Context, key string) types.Greet {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\tvar Greet types.Greet\n\tk.cdc.Unmarshal(store.Get(types.KeyPrefix(types.GreetKey + key)), &Greet)\n\treturn Greet\n}\n// checks if a greeting exists by an id\nfunc (k Keeper) HasGreet(ctx sdk.Context, id string) bool {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\treturn store.Has(types.KeyPrefix(types.GreetKey + id))\n}\n// gets the owner of a greeting\nfunc (k Keeper) GetGreetOwner(ctx sdk.Context, key string) string {\n\treturn k.GetGreeting(ctx, key).Owner\n}\n// gets a list of all greetings in the store\nfunc (k Keeper) GetAllGreetings(ctx sdk.Context) (msgs []types.Greet){\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\titerator := sdk.KVStorePrefixIterator(store, types.KeyPrefix(types.GreetKey))\n\tdefer iterator.Close()\n\tfor ; iterator.Valid(); iterator.Next() {\n\t\tvar msg types.Greet\n\t\tk.cdc.Unmarshal(iterator.Value(), &msg)\n\t\tmsgs = append(msgs, msg)\n\t}\n\treturn\n}","handling-queries#Handling queries":"We have added methods for interacting with greetings such as creating or reading them, now let's set up our two query services so we can route them to the correct method, we will set up our legacy Querier & gRPC querier below the methods we defined above on our keeper.\nfunc (k Keeper) GreetAll(c context.Context, req *types.QueryAllGreetRequest) (*types.QueryAllGreetResponse, error){\n\tctx := sdk.UnwrapSDKContext(c)\n\tvar greetings []*types.Greet\n\tfor _, g := range k.GetAllGreetings(ctx) {\n\t\tvar greeting = &g\n\t\tgreetings = append(greetings,greeting)\n\t}\n\treturn &types.QueryAllGreetResponse{Greetings: greetings, Pagination: nil}, nil\n}\nfunc (k Keeper) Greet(c context.Context, req *types.QueryGetGreetRequest) (*types.QueryGetGreetResponse, error){\n\tsdk.UnwrapSDKContext(c)\n\tvar greeting = k.GetGreeting(sdk.UnwrapSDKContext(c), req.Id)\n\treturn &types.QueryGetGreetResponse{Greeting: &greeting}, nil\n}\n// LEGACY QUERIER will be deperacted but for the sake of competeness this is how to set it up\nfunc NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {\n\treturn func(ctx sdk.Context, path []string, req abci.RequestQuery) ([]byte, error) {\n\tswitch path[0] {\n\t\tcase types.QueryGetGreeting:\n\t\t\tvar getGreetRequest types.QueryGetGreetRequest\n\t\t\terr := legacyQuerierCdc.UnmarshalJSON(req.Data, &getGreetRequest)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())\n\t\t\t}\n\t\t\tval := k.GetGreeting(ctx, getGreetRequest.GetId())\n\t\t\tbz, err := legacyQuerierCdc.MarshalJSON(val)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())\n\t\t\t}\n\t\t\treturn bz, nil\n\t\tcase types.QueryListGreetings:\n\t\t\tval := k.GetAllGreetings(ctx)\n\t\t\tbz, err := codec.MarshalJSONIndent(legacyQuerierCdc, val)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())\n\t\t\t}\n\t\t\treturn bz, nil\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unknow request at %s query endpoint\", types.ModuleName)\n\t\t}\n\t}\n}","setting-up-a-command-to-create-a-new-greeting#Setting up a command to create a new greeting":"let's set up a way for clients to submit a new greeting & query existing greetings, we can do that with a CLI, REST, & gRPC clients. for this tutorial we will focus on setting up our CLI client. create x/greet/client/cli/tx.go.here We will define a command to create a new greeting:\npackage cli\nimport (\n\t\"fmt\"\n\t\"github.com/cosmos/cosmos-sdk/client\"\n\t\"github.com/cosmos/cosmos-sdk/client/flags\"\n\t\"github.com/cosmos/cosmos-sdk/client/tx\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\t\"github.com/spf13/cobra\"\n)\nfunc GetTxCmd() *cobra.Command {\n\tcmd := &cobra.Command{\n\tUse: types.ModuleName,\n\tShort: fmt.Sprintf(\"%s transactions subcommands\", types.ModuleName),\n\tDisableFlagParsing: true,\n\tSuggestionsMinimumDistance: 2,\n\tRunE: client.ValidateCmd,\n\t}\n\tcmd.AddCommand(CmdCreateGreeting())\n\treturn cmd\n}\nfunc CmdCreateGreeting() *cobra.Command {\n\tcmd:= &cobra.Command{\n\tUse: \"create-greeting [message]\",\n\tShort: \"creates a new greetings\",\n\tArgs: cobra.ExactArgs(1),\n\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tmessage := string(args[0])\n\t\t\tclientCtx, err := client.GetClientTxContext(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tmsg := types.NewMsgCreateGreet(clientCtx.GetFromAddress().String(), string(message))\n\t\t\tif err := msg.ValidateBasic(); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\treturn tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)\n\t\t},\n\t}\n\tflags.AddTxFlagsToCmd(cmd)\n\treturn cmd\n}","querying-greetings-1#Querying greetings":"We will now set up two different commands for querying, one will be to list all greetings & the other will be to get a greeting by it's id. inside x/greet/cli/query.go:\npackage cli\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/cosmos/cosmos-sdk/client\"\n\t\"github.com/cosmos/cosmos-sdk/client/flags\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\t\"github.com/spf13/cobra\"\n)\n// this is the parent query command for the greet module everytime we add a new command we will register it here\nfunc GetQueryCmd(queryRoute string) *cobra.Command {\n// Group todos queries under a subcommand\n\tcmd := &cobra.Command{\n\t\tUse: types.ModuleName,\n\t\tShort: fmt.Sprintf(\"Querying commands for the %s module\", types.ModuleName),\n\t\tDisableFlagParsing: true,\n\t\tSuggestionsMinimumDistance: 2,\n\t\tRunE: client.ValidateCmd,\n\t}\n\tcmd.AddCommand(CmdListGreetings())\n\tcmd.AddCommand(CmdShowGreeting())\n\treturn cmd\n}\n// build the list greet command function\nfunc CmdListGreetings() *cobra.Command {\n\tcmd := &cobra.Command{\n\tUse: \"list-greetings\",\n\tShort: \"list all greetings\",\n\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tclientCtx, err := client.GetClientTxContext(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tpageReq, err := client.ReadPageRequest(cmd.Flags())\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tqueryClient := types.NewQueryClient(clientCtx)\n\t\t\tparams := &types.QueryAllGreetRequest{\n\t\t\tPagination: pageReq,\n\t\t\t}\n\t\t\tres, err := queryClient.GreetAll(context.Background(), params)\n\t\t\tif err != nil {\n\t\t\treturn err\n\t\t\t}\n\t\t\treturn clientCtx.PrintProto(res)\n\t\t},\n\t}\n\tflags.AddQueryFlagsToCmd(cmd)\n\treturn cmd\n}\n// build the show greet command function\nfunc CmdShowGreeting() *cobra.Command {\n\tcmd := &cobra.Command{\n\tUse: \"get-greeting [id]\",\n\tShort: \"shows a greeting\",\n\tArgs: cobra.ExactArgs(1),\n\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tclientCtx, err := client.GetClientTxContext(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tqueryClient := types.NewQueryClient(clientCtx)\n\t\t\tparams := &types.QueryGetGreetRequest{\n\t\t\tId: args[0],\n\t\t\t}\n\t\t\tres, err := queryClient.Greet(context.Background(), params)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\treturn clientCtx.PrintProto(res)\n\t\t},\n\t}\n\tflags.AddQueryFlagsToCmd(cmd)\n\treturn cmd\n}","setting-up-our-modules-package#Setting up our Module's package":"Now that we have all the basic functionality set up for our greet module, let's bring it all together and get our module ready to be used & tested, create a new file x/greet/module.go.Here we will start by implementing our AppModuleBasic && AppModule interfaces.\npackage greet\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"github.com/cosmos/cosmos-sdk/client\"\n\t\"github.com/cosmos/cosmos-sdk/codec\"\n\tcdctypes \"github.com/cosmos/cosmos-sdk/codec/types\"\n\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n\t\"github.com/cosmos/cosmos-sdk/types/module\"\n\t\"github.com/gorilla/mux\"\n\t\"github.com/grpc-ecosystem/grpc-gateway/runtime\"\n\t\"github.com/cosmostation/mintstation/x/greet/client/cli\"\n\t\"github.com/cosmostation/mintstation/x/greet/keeper\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\t\"github.com/spf13/cobra\"\n\tabci \"github.com/tendermint/tendermint/abci/types\"\n)\nvar (\n\t_ module.AppModule = AppModule{}\n\t_ module.AppModuleBasic = AppModuleBasic{}\n)\n/*\nThe AppModuleBasic interface defines the independent methods modules need to implement\nit follows this interface below\ntype AppModuleBasic interface {\n\tName() string\n\tRegisterLegacyAminoCodec(*codec.LegacyAmino)\n\tRegisterInterfaces(codectypes.InterfaceRegistry)\n\tDefaultGenesis(codec.JSONMarshaler) json.RawMessage\n\tValidateGenesis(codec.JSONMarshaler, client.TxEncodingConfig, json.RawMessage) error\n\t// client functionality\n\tRegisterRESTRoutes(client.Context, *mux.Router)\n\tRegisterGRPCRoutes(client.Context, *runtime.ServeMux)\n\tGetTxCmd() *cobra.Command\n\tGetQueryCmd() *cobra.Command\n}\n*/\ntype AppModuleBasic struct{}\n// Returns the name of the module as a string\nfunc (AppModuleBasic) Name() string {\n\treturn types.ModuleName\n}\nfunc (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {\n\tgs := types.DefaultGenesisState()\n\treturn cdc.MustMarshalJSON(&gs)\n}\nfunc (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {\n\treturn nil\n}\n// Registers the amino codec for the module, which is used to marshal\n// and unmarshal structs to/from []byte in order to persist them in the module's KVStore.\nfunc (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino){\n\ttypes.RegisterLegacyAminoCodec(cdc)\n}\n// Registers a module's interface types and their concrete implementations as proto.Message\nfunc (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) {\n\ttypes.RegisterInterfaces(registry)\n}\n// Registers gRPC routes for the module.\nfunc (a AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {\n\tif err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {\n\t\tpanic(err)\n\t}\n}\n// Registers the REST routes for the module. These routes will be used to map REST request to the module in order to process them\nfunc (a AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { }\n// Returns the root Tx command for the module. The subcommands of this root command are used by end-users\n// to generate new transactions containing messages defined in the module\nfunc (AppModuleBasic) GetTxCmd() *cobra.Command {\n\treturn cli.GetTxCmd()\n}\n// Return the root query command for the module. The subcommands of this root command are used by end-users\n// to generate new queries to the subset of the state defined by the module.\nfunc (AppModuleBasic) GetQueryCmd() *cobra.Command {\n\treturn cli.GetQueryCmd(types.StoreKey)\n}\n// -------------------------------------APPMODULE BELOW------------------------------------------------- //\n/*\nThe AppModule interface defines the inter-dependent methods that modules need to implement\nfollows the interface below\n\ttype AppModule interface {\n\t\tAppModuleGenesis\n\t\t// registers\n\t\tRegisterInvariants(sdk.InvariantRegistry)\n\t\t// routes\n\t\tRoute() sdk.Route\n\t\t// Deprecated: use RegisterServices\n\t\tQuerierRoute() string\n\t\t// Deprecated: use RegisterServices\n\t\tLegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier\n\t\t// RegisterServices allows a module to register services\n\t\tRegisterServices(Configurator)\n\t\t// ABCI\n\t\tBeginBlock(sdk.Context, abci.RequestBeginBlock)\n\t\tEndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate\n\t}\n*/\ntype AppModule struct{\n\tAppModuleBasic\n\tkeeper keeper.Keeper\n}\n// constructor\nfunc NewAppModule(keeper keeper.Keeper) AppModule {\n\treturn AppModule{\n\t\tAppModuleBasic: AppModuleBasic{},\n\t\tkeeper: keeper,\n\t}\n}\n// Returns the route for messages to be routed to the module by BaseApp.\nfunc (am AppModule) Name() string {\n\treturn am.AppModuleBasic.Name()\n}\n// registers the invariants of the module. If an invariant deviates from its predicted value,\n// the InvariantRegistry triggers appropriate logic (most often the chain will be halted).\nfunc (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) { }\n// Returns the route for messages to be routed to the module by BaseApp.\nfunc (AppModule) Route() sdk.Route {\n\treturn sdk.Route{}\n}\n// Returns the name of the module's query route, for queries to be routes to the module by BaseApp.deprecated\nfunc (AppModule) QuerierRoute() string {\n\treturn types.QuerierRoute\n}\n// Returns a querier given the query path, in order to process the query.\nfunc (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {\n\treturn keeper.NewQuerier(am.keeper, legacyQuerierCdc)\n}\nfunc (AppModule) ConsensusVersion() uint64 {\n\treturn 1\n}\n// Allows a module to register services.\nfunc (am AppModule) RegisterServices(cfg module.Configurator) {\n\ttypes.RegisterMsgServer(cfg.MsgServer(), NewMsgServerImpl(am.keeper))\n\ttypes.RegisterQueryServer(cfg.QueryServer(), am.keeper)\n}\nfunc (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate {\n\treturn []abci.ValidatorUpdate{}\n}\nfunc (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {\n\tgs := types.DefaultGenesisState()\n\treturn cdc.MustMarshalJSON(&gs)\n}\nfunc (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) { }\nfunc (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {\n\treturn []abci.ValidatorUpdate{}\n}\n// ----------------------------------MSGSERVER REGISTER------------------------//\nvar _ types.MsgServer = msgServer{}\ntype msgServer struct {\n\tkeeper keeper.Keeper\n}\nfunc (m msgServer) CreateGreet(c context.Context, msg *types.MsgCreateGreet) (*types.MsgCreateGreetResponse, error) {\n\tctx := sdk.UnwrapSDKContext(c)\n\tm.keeper.CreateGreet(ctx, types.MsgCreateGreet{Owner: msg.Owner, Message: msg.Message})\n\treturn &types.MsgCreateGreetResponse{}, nil\n}\nfunc NewMsgServerImpl(keeper keeper.Keeper) types.MsgServer {\n\treturn &msgServer{keeper: keeper}\n}","hooking-up-our-module-inside-appgo#Hooking up our module inside App.go":"inside app/app.go start off importing the greet module, it's types & keeper packages and add them to the following places:\nmodule.NewBasicManager() add greet.AppModuleBasic{}\ntype App struct {} add greetkeeper.Keeper\nsdk.NewKVStoreKeys() inside NewApp func add greettypes.StoreKey\ninside NewApp func add app.greetKeeper = greetKeeper.NewKeeper() and add arguments appCodec & keys[greettypes.StoreKey]\ninside NewApp find where we define app.mm & add greet.NewAppModule(app.greetKeeper),\nfinally add the greet module's name to SetOrderBeginBlockers, SetOrderEndBlockers && SetOrderInitGenesis","testing-our-new-module#Testing our new Module":"inside the root of our directory run docker build -t mintstation/mintstation:tutorial-demo .\nfind the directory for kvtool and open in your favorite code editor\nrun kvtool testnet gen-config mintstation --mintstation.configTemplate upgrade-v44 which will create a bunch of files inside full_configs/generated\nopen up the two docker-compose.yaml files the one inside generated & the one inside generated/mintstation and change the image to point to mintstation/mintstation:tutorial-demo this will point to the local image we just built\nchange into the full_configs/generated directory and run docker compose up -d\nnow run docker compose exec mintstationnode bash to bash into our mintstation cli inside the running container\nWe should now have access to our greet commands that we defined first we will test creating a new greeting, for that we will run the following command:mintstationd tx greet create-greeting \"hello world from mintstation chain\" --from whalenow let's test to see if the greeting message is able to be queried:mintstationd q greet list-greetingsWe should see something like this below:\ngreetings:\n- id: \"0\"\n message: hello world from mintstation chain\n owner: \npagination: null\nNow let's test if we can query the greeting by it's id which in our case will be \"0\", run the following:mintstationd q greet get-greeting 0We should see:\ngreeting:\n id: \"0\"\n message: hello world from mintstation chain\n owner: "}},"/extension/integration/cosmos/Deprecated/send-tx":{"title":"Send Transcation","data":{"":"Send transcation via Cosmostation Extension","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { SEND_TRANSACTION_MODE } from \"@cosmostation/extension-client/cosmos\";\n// ...\nconst response = await provider.sendTransaction(\n \"cosmos\",\n \"abc=\", // base64 string or Uint8Array\n SEND_TRANSACTION_MODE.ASYNC /* SEND_TRANSACTION_MODE or one of [0, 1, 2, 3] */\n);","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_sendTransaction\",\n params: { chainName: \"cosmos\", txBytes: \"abc=\", mode: 0 },\n});","response#Response":"export type SendTransactionResponse = {\n tx_response: SendTransaction;\n};\nexport type SendTransaction = {\n code: number;\n txhash: string;\n raw_log?: unknown;\n codespace?: unknown;\n tx?: unknown;\n log?: unknown;\n info?: unknown;\n height?: unknown;\n gas_wanted?: unknown;\n gas_used?: unknown;\n events?: unknown;\n data?: unknown;\n timestamp?: unknown;\n};\nexport const SEND_TRANSACTION_MODE = {\n UNSPECIFIED: 0,\n BLOCK: 1,\n SYNC: 2,\n ASYNC: 3,\n};\n{\n \"tx_response\": {\n \"code\": 0,\n \"codespace\": \"\",\n \"data\": \"\",\n \"events\": [],\n \"gas_used\": \"0\",\n \"gas_wanted\": \"0\",\n \"height\": \"0\",\n \"info\": \"\",\n \"logs\": [],\n \"raw_log\": \"[]\",\n \"timestamp\": \"\",\n \"tx\": null,\n \"txhash\": \"\"\n }\n}"}}} \ No newline at end of file +{"/apis":{"title":"Introduction","data":{"":"Mintscan API, integral to Mintscan 2.0, stems from enterprise-grade onchain data indexing. Through features like tx builder and historical statistics APIs, it offers easy access to dynamic onchain data, including account balances and staking APR. Streamlining raw data processing, Mintscan API simplifies Interchain dapp development, positioning itself as a key piece in the Interchain infrastructure puzzle.For inquery, please contact us api@cosmostation.io","how-to-get-api-key#How to get API Key?":"Get start sign upCurrently in beta, approval is being processed via email(api@cosmostation.io).","features#Features":"RPC Endpoint\nHistorical API\nProto Builder API\nStatistics API\nUtility API\nCustom API","supported-chain-list#Supported chain list":"Akash\nArchway\nCosmos\nEvmos\nInjective\nJuno\nKava\nNeutron\nOsmosis\nStride","api-reference#API Reference":"Type\tAPI\tCredit\tProxy API\tLCD Proxy\t1\tCustom API\tAccount\t5\tStatistics API\tTransaction Statistics\t3\t\tMessage Statistics\t3\tBuilder API\tTransaction Builder\t5 ~ 10\tHistorical API\tAccount Transactions\t5\t\tAccount Votes\t5\t\tAccount Balance History\t7\t\tRichlist\t10\t\tValidator Votes\t5\t\tValidator Commission History\t5\t\tValidator Delegators\t10\t\tValidator Block Sign\t1\t\tValidator Voting Power\t1\t\tValidator Proposed Blocks\t1\tUtility API\tNode Info\t5\t\tInflation\t3\t\tStaking APR\t5\t\tAssets\t3\t\tPrices\t3 ~ 5"}},"/apis/reference/builder/tx-builder/broadcast":{"title":"Broadcast Transaction","data":{"post-v1networktx-builderbroadcast#[POST] /v1/:network/tx-builder/broadcast":"","request#Request":"Authorization: Bearer {access_token}\nContent-Type: application/json\n{\n // Original message of the tx from the result of the Build Transaction API Call\n \"tx\": string,\n // Generated using the user’s private key and the tx from the result of the Build Transaction API Call.\n \"signature\": string\n}","response#Response":"{\n \"tx_response\": {\n \"height\": \"0\",\n \"txhash\": \"\",\n \"codespace\": \"\",\n \"code\": 0,\n \"data\": \"\",\n \"raw_log\": \"[]\",\n \"logs\": [],\n \"info\": \"\",\n \"gas_wanted\": \"0\",\n \"gas_used\": \"0\",\n \"tx\": null,\n \"timestamp\": \"\",\n \"events\": []\n }\n}"}},"/apis/reference/builder/tx-builder/build":{"title":"Build Transactions","data":{"post-v1networktx-builder#[POST] /v1/:network/tx-builder":"This API returns the SignDoc data for broadcasting transactions.\nThe response includes tx for generating the signature, original messages used to create the SignDoc, fee value, and basic information of the account.\nUsers can either generate the signature directly without 0x from the value and broadcast it, or use the provided broadcast API to send the tx.\nMulti sign account is not supported yet.","request#Request":"Authorization: Bearer {access_token}\nContent-Type: application/json","response#Response":"{\n // SignDoc for generating the signature. Use the data without '0x'\n \"tx\": \"\",\n // Original data that user transfer\n \"messages\": [\n {\n \"type\": \"cosmos.staking.v1beta1.MsgDelegate\",\n \"delegatorAddress\": \"osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p\",\n \"validatorAddress\": \"\",\n \"amount\": { \"denom\": \"uosmo\", \"amount\": \"1\" }\n }\n ],\n // Transaction fee\n \"fee\": { \"amount\": [{ \"denom\": \"uosmo\", \"amount\": \"760\" }], \"gas\": \"303815\" },\n // Account public key of signer\n \"publicKey\": {\n \"@type\": \"/cosmos.crypto.secp256k1.PubKey\",\n \"key\": \"A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n // Account number of signer\n \"accountNumber\": \"63277\",\n // Account sequence of signer\n \"sequence\": \"12\"\n}","how-to-make-a-public-key-from-private-key#How to make a public key from private key":"const privateKey = Buffer.from(\n '',\n 'hex',\n);\nconst pubKeyUint8Array = TinySecp256k1.pointFromScalar(privateKey, true);\nif (!pubKeyUint8Array) {\n throw new Error('Invalid private key');\n}\n// Use this publicKey when sending a transaction (tx) for the first time.\nconst publicKey = Buffer.from(pubKeyUint8Array).toString('base64');","send-transaction#Send Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.bank.v1beta1.MsgSend\",\n // Sender Address\n \"fromAddress\": \"string\",\n // Receiver Address\n \"toAddress\": \"string\",\n // Amount Array\n \"amount\": [\n {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n ]\n }\n ]\n}","delegate-transaction#Delegate Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.staking.v1beta1.MsgDelegate\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // Validator Address to delegate\n \"validatorAddress\": \"string\",\n // Amount\n \"amount\": {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n }\n ]\n}","undelegate-transaction#Undelegate Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.staking.v1beta1.MsgUndelegate\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // Validator Address to undelegate\n \"validatorAddress\": \"string\",\n // Amount\n \"amount\": {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n }\n ]\n}","begin-redelegate-transaction#Begin Redelegate Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.staking.v1beta1.MsgBeginRedelegate\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // From Validator Address to redelegate\n \"validatorSrcAddress\": \"string\",\n // To Validator Address to redelegate\n \"validatorDstAddress\": \"string\",\n // Amount\n \"amount\": {\n \"denom\": \"string\",\n \"amount\"\": string\"\n }\n }\n ]\n}","claim-delegate-rewards-transaction#Claim Delegate Rewards Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\",\n // Sender Address\n \"delegatorAddress\": \"string\",\n // Validator Address to claim rewards\n \"validatorAddress\"\": string\"\n }\n ]\n}","claim-validator-commissions-transaction#Claim Validator Commissions Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\",\n // Validator Address to withdraw validator commission\n \"validatorAddress\"\": string\"\n }\n ]\n}","governance-vote-transaction#Governance Vote Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{\"type\": \"string\", \"key\": \"string\"}],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmos.gov.v1beta1.MsgVote\",\n // Proposal ID\n \"proposalId\": \"string\",\n // Voter\n \"voter\": \"string\",\n // Vote Option(\"VOTE_OPTION_UNSPECIFIED\" | \"VOTE_OPTION_YES\" | \"VOTE_OPTION_ABSTAIN\" | \"VOTE_OPTION_NO\" | \"VOTE_OPTION_NO_WITH_VETO\")\n \"option\"\": string\"\n }\n ]\n}","wasm-contract-execute-transaction#Wasm Contract Execute Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n // Message Type\n \"type\": \"cosmwasm.wasm.v1.MsgExecuteContract\",\n // Sender\n \"sender\": \"string\",\n // Contract Address\n \"contract\": \"string\",\n // Execute Messages\n \"msg\": {},\n // Funds\n \"funds\": []\n }\n ]\n}","authz-grant-transaction#Authz Grant Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n // GeneraicAuthorization\n \"type\": \"cosmos.authz.v1beta1.MsgGrant\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n \"grant\": {\n \"authorization\": {\n // Auth Type(\"GenericAuthorization\" | \"StakeAuthorization\" | \"SendAuthorization\")\n \"type\": \"GenericAuthorization\",\n \"msg\": \"string\"\n },\n \"expiration\": \"datetime\"\n }\n },\n {\n // StakeAuthorization\n \"type\": \"cosmos.authz.v1beta1.MsgGrant\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n \"grant\": {\n \"authorization\": {\n // Auth Type(\"GenericAuthorization\" | \"StakeAuthorization\" | \"SendAuthorization\")\n \"type\": \"StakeAuthorization\",\n \"maxTokens\": { \"denom\": \"string\", \"amount\": \"string\" },\n // When used in conjunction with a denyList, the allowList is not applied\n \"allowList\": { \"address\": [\"string\"] },\n \"denyList\": { \"address\": [\"string\"] },\n // Authorization Type(\"AUTHORIZATION_TYPE_DELEGATE\" | \"AUTHORIZATION_TYPE_UNDELEGATE\" | \"AUTHORIZATION_TYPE_REDELEGATE\")\n \"authorizationType\": \"string\"\n },\n \"expiration\": \"datetime\"\n }\n },\n {\n // SendAuthorization\n \"type\": \"cosmos.authz.v1beta1.MsgGrant\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n \"grant\": {\n \"authorization\": {\n // Auth Type(\"GenericAuthorization\" | \"StakeAuthorization\" | \"SendAuthorization\")\n \"type\": \"SendAuthorization\",\n \"spendLimit\": [{ \"denom\": \"string\", \"amount\": \"string\" }]\n },\n \"expiration\": \"datetime\"\n }\n }\n ]\n}","authz-execute-transaction#Authz Execute Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n \"type\": \"cosmos.authz.v1beta1.MsgExec\",\n \"grantee\": \"string\",\n \"msgs\": [\n {\n // type_url excluding '/' (ex: cosmos.bank.v1beta1.MsgSend)\n \"type\": \"string\"\n // the values included in the corresponding type message\n }\n ]\n }\n ]\n}","authz-revoke-transaction#Authz Revoke Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n {\n \"type\": \"cosmos.authz.v1beta1.MsgRevoke\",\n \"granter\": \"string\",\n \"grantee\": \"string\",\n // msgTypeUrl\n // GenericAuthorization, you can simply use the msg value of that authorization as it is\n // SendAuthorization, you should use /cosmos.bank.v1beta1.MsgSend\n // StakeAuthorization, you should provide values based on the Authorization Type granted.\n // - AUTHORIZATION_TYPE_DELEGATE, use /cosmos.staking.v1beta1.MsgDelegate.\n // - AUTHORIZATION_TYPE_UNDELEGATE, use /cosmos.staking.v1beta1.MsgUndelegate\n // - AUTHORIZATION_TYPE_REDELEGATE, use /cosmos.staking.v1beta1.MsgBeginRedelegate\n \"msgTypeUrl\": \"string\"\n }\n ]\n}","multiple-message-type-of-transaction#Multiple Message Type of Transaction":"{\n // Signer Address\n \"signer\": \"string\",\n // Tx Memo\n \"memo\": \"string\",\n // !!! When sending a transaction (tx) for the first time, must provide the public key\n // pubkey type (\"tendermint/PubKeySecp256k1\" | \"ethermint/PubKeyEthSecp256k1\" | \"injective/PubKeyEthSecp256k1\")\n \"pubkey\": [{ \"type\": \"string\", \"key\": \"string\" }],\n // Message Array\n \"messages\": [\n // The message types within the messages defined above\n ]\n}"}},"/apis/reference/custom/account":{"title":"Account","data":{"get-v1networkaccountsaddress#[GET] /v1/:network/accounts/:address":"Get account information with current balances","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"}},"/apis/reference/builder/tx-builder/make-signature":{"title":"How Make Signature","data":{"":"This documentation page provides an example of generating a signature using the tx (SignDoc) produced in the Build Transaction process.\nThe example code in this document is written in Node.js. Users can implement the sign logic based on their respective programming language.\n// Import packages for sign\nimport * as TinySecp256k1 from 'tiny-secp256k1';\nimport * as encHex from 'crypto-js/enc-hex';\nimport * as sha256 from 'crypto-js/sha256';\n// Define a custom function to execute the logic described on the Build Transaction page.\n// Each user can implement their own version of this function and use it accordingly\nconst buildResult = await buildTx();\n/* Example of result\n {\n \"tx\": \"\",\n \"messages\": [\n {\n \"type\": \"cosmos.staking.v1beta1.MsgDelegate\",\n \"delegatorAddress\": \"osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p\",\n \"validatorAddress\": \"\",\n \"amount\": { \"denom\": \"uosmo\", \"amount\": \"1\" }\n }\n ],\n \"fee\": { \"amount\": [{ \"denom\": \"uosmo\", \"amount\": \"760\" }], \"gas\": \"303815\" },\n \"publicKey\": {\n \"@type\": \"/cosmos.crypto.secp256k1.PubKey\",\n \"key\": \"A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"accountNumber\": \"63277\",\n \"sequence\": \"12\"\n}\n*/\n// Removes the '0x' string from the beginning of the tx.\nconst signDoc = buildResult.tx.replace(/^0x(.*)/, '$1');\n// SignDoc Example: \n// The part that creates a Buffer using the user's Private Key.\n// If the Private Key starts with '0x', the '0x' prefix is removed and the value is used.\nconst privateKey = Buffer.from(\n '',\n 'hex',\n);\nconst hashedSignDoc = sha256(encHex.parse(signDoc)).toString(encHex);\nconst signResult = TinySecp256k1.sign(Buffer.from(hashedSignDoc, 'hex'), privateKey);\nconst signatureHex = Buffer.from(signResult).toString('hex');\n// Use this to broadcast the transaction\nconst signature = `0x${signatureHex}`;\n// Example: "}},"/apis/reference/historical/account/account-balances":{"title":"Account Balance History","data":{"get-v1networkaccountsaddressbalances#[GET] /v1/:network/accounts/:address/balances":"Get balance history of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q\n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA==\n# Search start datetime\n# (datetime, optional, default: 30 days ago)\nfromDateTime: 2023-07-20\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/historical/account/account-transactions":{"title":"Account Transactions","data":{"get-v1networkaccountsaddresstransactions#[GET] /v1/:network/accounts/:address/transactions":"Get transactions of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q\n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Array of strings for filtering by message type\n# (array of string, optional)\nmessageTypes[]: /cosmos.staking.v1beta1.MsgDelegate\n# Search start datetime\n# (datetime, optional)\nfromDateTime: 2023-04-20\n# Search end datetime\n# (datetime, optional)\ntoDateTime: 2023-04-21 23:59:59\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4MDUxNjI5NjAwMHwxNDczMjU5OQ=="}},"/apis/reference/historical/account/account-votes":{"title":"Account Votes","data":{"get-v1networkaccountsaddressvotes#[GET] /v1/:network/accounts/:address/votes":"Get a list of votes of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\naddress: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q\n# Whether to remove duplicates for the same proposal\n# (boolean, optional, default: false)\ndistinct: true"}},"/apis/reference/historical/account/account-richlist":{"title":"Account Balance History","data":{"get-v1networkaccountsrichlistsymbol#[GET] /v1/:network/accounts/richlist/:symbol":"Get richlist for the given symbol","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom\n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA==\n# To display detailed information of the balance\n# (boolean, optional, default: false)\ndetail: true"}},"/apis/reference/historical/validator/validator-commissions":{"title":"Validator Commission Balance History","data":{"get-v1networkvalidatorsvalidatoraddresscommissions#[GET] /v1/:network/validators/:validatorAddress/commissions":"Get commission balance history of an account","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA==\n# Search start datetime\n# (datetime, optional, default: 30 days ago)\nfromDateTime: 2023-07-20\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/historical/validator/validator-delegators":{"title":"Validator Delegators","data":{"get-v1networkvalidatorsvalidatoraddressdelegators#[GET] /v1/:network/validators/:validatorAddress/delegators":"Get a list of richlist of a symbol","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 10\n# Value of skip amount for pagination\n# (number, optional, default: 0)\nfrom: 20"}},"/apis/reference/historical/validator/validator-power-events":{"title":"Validator Voting Power Events","data":{"get-v1networkvalidatorsvalidatoraddresspowerevents#[GET] /v1/:network/validators/:validatorAddress/powerEvents":"Get voting power events of validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA=="}},"/apis/reference/historical/validator/validator-proposed-blocks":{"title":"Validator Voting Power Events","data":{"get-v1networkvalidatorsvalidatoraddressproposed#[GET] /v1/:network/validators/:validatorAddress/proposed":"Get blocks proposed by the validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: \n# Request per page\n# (number, optional, default: 20)\ntake: 20\n# Value of `pagination.searchAfter` from previous request for pagination\n# (string, optional)\nsearchAfter: MTY4OTc1NTU4NjAwMA=="}},"/apis/reference/historical/validator/validator-block-sign":{"title":"Validator Latest Block Sign","data":{"get-v1networkvalidatorsvalidatoraddresslatestuptime#[GET] /v1/:network/validators/:validatorAddress/latestUptime":"Get latest blocks signature of validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of account\n# (string, required)\nvalidatorAddress: "}},"/apis/reference/historical/validator/validator-votes":{"title":"Validator Votes","data":{"get-v1networkvalidatorsvalidatoraddresstransactions#[GET] /v1/:network/validators/:validatorAddress/transactions":"Get a list of votes of a validator","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The address of validator\n# (string, required)\nvalidatorAddress: \n# Whether to remove duplicates for the same proposal\n# (boolean, optional, default: false)\ndistinct: true"}},"/apis/reference/proxy/lcd":{"title":"LCD Proxy","data":{"":"Proxy API for making LCD requests to BlockChain Node","getpost-v1networklcd#[GET][POST] /v1/:network/lcd/*":"You can directly access the Node LCD API by referring to the Swagger or document of the Network you want to make requests to.\nHowever, please note that certain requests are blocked as they may have a negative impact on the server.","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# The url of lcd API. See details in Swagger or document of the network\n# (string, required)\n*: /cosmos/bank/v1beta1/balances/cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"}},"/apis/reference/statistics/messages":{"title":"Message Counts","data":{"get-v1networkstatisticsmessages#[GET] /v1/:network/statistics/messages":"Get The Number of Transactions per each message type over the last 30 days","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/apis/reference/utilities/assets":{"title":"Assets","data":{"get-v1networkassets#[GET] /v1/:network/assets":"Get all assets of the current chain","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos","get-v1networkassetssymbol#[GET] /v1/:network/assets/:symbol":"Get asset of specific symbol","request-1#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom"}},"/apis/reference/utilities/inflation":{"title":"Chain Inflation","data":{"get-v1networkinflation#[GET] /v1/:network/inflation":"Get inflation data from the chain","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos"}},"/extension/guide/account/add-account":{"title":"Add Account","data":{"":"Create a new wallet, restore with an existing mnemonic phrase, or restore with a private key.","create-wallet#Create wallet":"The following process is for users who do not have a wallet and wish to create a new wallet.'Create wallet' will import a new wallet with a mnemonic phrase.\nStep 1 Click 'Create wallet'Step 2 Enter 'Account name'. Account name will be used for users to easily distinguish wallets imported on the extension.Step 3 Your mnemonic phrase will be displayed. Cosmostation Wallet Extension supports both 12 words and 24 words mnemonic phrases.\nPlease make sure to back up your mnemonic phrase and save it in a safe location only accessible by you. If the mnemonic phrase is lost, you will not be able to regain access to your account.DO NOT share your Secret Recovery Phrase with anyone! If someone has access to your secret phrase, they will have access to your wallet. Cosmostation support will NEVER ask you for your secret phrase or your private key.\nStep 4 (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default.Step 5 Enter your seed phrase in correct order. This process is to confirm that you have saved the correct mnemonic phrase.Step 6 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.Step 7 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.","restore-wallet-with-a-mnemonic-phrase#Restore wallet with a mnemonic phrase":"The following process is for users who already have a mnemonic phrase.\nStep 1 Click 'Restore with mnemonics'Step 2 Enter 'Account name' and 'Mnemonic phrases'. Account name will be used for you to easily distinguish wallets.Step 3 (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default.Step 4 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.Step 5 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.","restore-wallet-with-a-private-key#Restore wallet with a private key":"The following process is for users that already have a private key.\nStep 1 Click 'Import wallet'.Step 2 Click 'Restore with private key'.Step 3 Enter your 'Account name' and 'Private key'. (Private keys start with 0x and consists of a 66 digit string)Step 4 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.Step 5 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."}},"/apis/reference/statistics/transactions":{"title":"Transactions Counts","data":{"get-v1networkstatisticstxshourly#[GET] /v1/:network/statistics/txs/hourly":"Get The Number of Transactions Per Hour","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59","get-v1networkstatisticstxsdaily#[GET] /v1/:network/statistics/txs/daily":"Get The Number of Transactions Per Day","request-1#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59","get-v1networkstatisticstxsweekly#[GET] /v1/:network/statistics/txs/weekly":"Get The Number of Transactions Per Week","request-2#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Search end datetime\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-07-21 23:59:59"}},"/extension/guide/account/add-ledger-account":{"title":"Add Ledger Account","data":{"":"Create a new ledger wallet","supported-devices--connection-method#Supported Devices & Connection Method":"Ledger S, X\nUSB, HID","adding-ledger-account#Adding Ledger Account":"Account icon → setting icon → Add account → Create a new ledger account → Account name → HD path setting → Done","hd-path-setting#HD path setting":"Up to 101 Ledger accounts and wallets can be derived from a single set of mnemonics in a Ledger by assigning any number smaller than 101 to HD paths when creating a Ledger account.","connecting-ledger#Connecting Ledger":"Select the new Ledger account to connect on home screen.","cosmos-networks#Cosmos Networks":"Cosmostation extension wallet supports Cosmos SDK chain wallets derived from HD paths 44'/118'/0'/0/n. Connecting to any Cosmos SDK chain with a Ledger automatically derives all the Cosmos SDK chain wallets supported by a Ledger account.","evm-networks#EVM Networks":"Cosmostation extension wallet supports EVM wallets derived from HD paths 44'/60'/0'/0/n. Connecting to any EVM network with a Ledger automatically derives all the EVM network wallets supported by a Ledger account.","not-supported-networks#Not Supported Networks":"44'/118'/0'/0/n is a generic HD path for Cosmos SDK chains, but some networks use custom HD paths assigned by their network foundations. For example, a Cosmos SDK chain Crypto.org’s official HD path used by the foundation and Ledger is 44'/394'/0'/0/n.\nIn an effort to sync with the network foundations and Ledger, Cosmostation extension wallet derives wallets solely from HD paths used by the foundations and Ledger. Instead of deriving all the Cosmos SDK chain wallets from 44'/118'/0'/0/n path, Cosmostation only supports the wallets of Cosmos SDK chains whose official HD path is 44'/118'/0'/0/n for now.\nCustom HD path wallets will be supported in future updates.","signing-transactions#Signing Transactions":"","cosmos-sdk-chains#Cosmos SDK Chains":"Open the Cosmos app on Ledger\nCheck the review message on Ledger\nApprove or reject a transaction\nAll the Cosmos SDK chains' transactions can be signed from the Cosmos app.","ethereum--evm#Ethereum & EVM":"Open the Ethereum app on Ledger\nCheck the review message on Ledger\nApprove or reject a transaction\nAll the EVM chains' transactions can be signed from the Ethereum app."}},"/apis/reference/utilities/staking-apr":{"title":"Chain Staking APR","data":{"get-v1networkapr#[GET] /v1/:network/apr":"Get default staking APR of the chain","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos","get-v1networkaprvalidatoraddress#[GET] /v1/:network/apr/:validatorAddress":"Get staking APR when delegating to a specific validator","request-1#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos\n# Validator address to delegate\n# (string, required)\nvalidatorAddress: "}},"/apis/reference/utilities/prices":{"title":"Prices","data":{"get-v1pricessymbolcoingeckoid#[GET] /v1/prices/:symbol/coingeckoId":"Get coingecko ID via symbol","request#Request":"Authorization: Bearer {access_token}\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom","get-v1pricessymbolsymbol#[GET] /v1/prices/symbol/:symbol":"Get hourly prices via symbol","request-1#Request":"Authorization: Bearer {access_token}\n# Symbol of the asset to be queried\n# (string, required)\nsymbol: uatom\n# End datetime for obtaining prices\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-04-21 23:59:59\n# Request per page\n# (number, optional, default: 24)\nticks: 24","get-v1pricescoingeckoidgeckoid#[GET] /v1/prices/coingeckoId/:geckoId":"Get hourly prices via coingeckoId","request-2#Request":"Authorization: Bearer {access_token}\n# CoingeckoId of the asset to be queried\n# (string, required)\ngeckoId: cosmos\n# End datetime for obtaining prices\n# (datetime, optional, default: CURRENT_TIMESTAMP)\ntoDateTime: 2023-04-21 23:59:59\n# Request per page\n# (number, optional, default: 24)\nticks: 24"}},"/apis/reference/utilities/node-info":{"title":"Node Info","data":{"get-v1networknode_info#[GET] /v1/:network/node_info":"Get node informations with chain parameters","request#Request":"Authorization: Bearer {access_token}\n# The name of network\n# (string, required)\nnetwork: cosmos"}},"/extension/guide/chains":{"title":"Chains","data":{"":"Cosmostation Wallet Extension supports various PoS networks.","addremove-chains#Add/Remove Chains":"Add/remove chains to efficiently manage your wallet.Select chains you want to display on the list. Only selected chains will be displayed on both the dashboard and wallet detail page.\nStep 1 View chains that are added to your list. Click 'Add chain' to add/remove chains from the list.Step 2 By toggling on/off, you can choose chains that you want to display on Cosmostation Wallet Extension.Step 3 Selected chains are also visible on the top right side of wallet details."}},"/extension/guide/account/intro":{"title":"Introduction","data":{"":"Cosmostation Wallet Extension allows you to add and manage multiple accounts.\nSecurely manage your accounts in a convenient user interface.","add-account#Add Account":"'Add Account' has three options. [Creat a new account], [Import mnemonics], and [Import private key]. Please refer to each page for detailed instructions.\nStep 1 Click 'Add account' under 'Account Management'.Step 2 You will see three options to choose from. Please refer to the following link for detailed instructions.","manage-keys#Manage keys":"Under 'Account Management', you are able to see all the accounts that are registered on Cosmostation Extension.If you created a new account or restored a wallet with a mnemonic phrase, you will be able to see the option to [View mnemonics], [View private key], and [Delete account].If you restored a wallet with a private key, then you will only be able to choose [View private key].","delete-account#Delete Account":"You can delete accounts from Cosmostation Extension.Once deleted, you can restore your account again by importing the same mnemonic phrase or private key.\nYou are required to enter your password before deleting your account.Once deleted, if you lose your mnemonic phrase or private key you will not be able to gain access to the account again."}},"/extension":{"title":"Introduction","data":{"":"Cosmostation Wallet Extension is a non-custodial chrome extension wallet that supports multiple sovereign networks and inter-blockchain bridges. The wallet extension allows users to easily interact with networks and decentralized applications with just a few clicks.To download Cosmostation Wallet Extension, click this link to download from the chrome webstore.","wallet#Wallet":"","dashboard#Dashboard":""}},"/extension/guide/transfer-coins":{"title":"Transfer coins","data":{"":"Transfer coins with just one click via Cosmostation Wallet Extension.\nCosmostation Wallet Extension currently DOES NOT SUPPORT IBC TRANSFERS.If you are trying to send assets to a different chain, the send button will be deactivated.","receive#Receive":"Click 'Deposit' to copy the address to the clipboard or scan the QR code.","send#Send":"The following process is for users sending assets to a different address.\nStep 1 Enter 'Recipient address', 'Amount,' and 'Memo.' The memo field is optional but required for sending to specific centralized cryptocurrency exchanges. Centralized exchanges will ask you to enter a memo for identification when you make a deposit.\nMake sure that you enter the correct recipient address.Entering an incorrect address may result in loss of funds and responsibility of entering the correct address is on the user.\nStep 2, 3 Check the transaction information and confirm."}},"/extension/guide/settings":{"title":"Settings","data":{"":"Customize the wallet extension in wallet settings.","dark-mode#Dark mode":"Toggle back and forth to choose between Dark or Light mode.","address-book#Address Book":"Create different address books for each chain. You can use the address book when using the 'Send' function.\nStep 1 View / Add addresses to the chain you selected.Step 2 Enter address information and click 'Save'.\nLabel your address to distinguish them from one another.\nMemo is optional but required to transfer assets to centralized cryptocurrency\nexchanges. Centralized exchanges will ask you to enter a memo for\nidentification when you make a deposit.\nIf you add addresses in the address book, you can use the address book feature when sending assets.","change-password#Change password":"Enter your current password and to change it to a new password. Enter the new password once more to confirm.\nMake sure that you enter more than 8 characters for the password.","currency--language#Currency & Language":"Cosmostation Wallet Extension supports 2 languages and 5 currencies.\nWe plan to support more currencies and languages in the near future.","lock-screen#Lock screen":"Lock your screen to secure your wallet.\n!"}},"/extension/guide/dapps":{"title":"dApp","data":{"":"Cosmostation Wallet Exntension supports various dApps deployed on PoS networks.","connection-status#Connection status":"Easily check if the wallet extension is connect to the dApp.If you wish to disconnect, click the connection status under your account name.","disconnect-with-just-a-click#Disconnect with just a click.":"Easily disconnect from dApps by clicking the connecting status under your account name."}},"/extension/integration/aptos/connect-and-account":{"title":"Connect, Account","data":{"":"connect and get Account via Cosmostation Extension","connect#Connect":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const account = await provider.connect();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code#Vanilla Code":"const provider = aptos();\ntry {\n const account = await provider.connect();\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","response#Response":"export type AptosConnectResponse = {\n address: string;\n publicKey: string;\n};\n{\n \"address\": \"\",\n \"publicKey\": \"\"\n}","account#Account":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const account = await provider.account();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code-1#Vanilla Code":"try {\n const provider = aptos();\n const account = await provider.account(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","response-1#Response":"export type AptosAccountResponse = {\n address: string;\n publicKey: string;\n};\n{\n \"address\": \"\",\n \"publicKey\": \"\"\n}"}},"/extension/integration/aptos/network":{"title":"Network","data":{"":"Get Network via Cosmostation Extension","network#Network":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const network = await provider.network();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code#Vanilla Code":"try {\n const provider = aptos();\n const network = await provider.network(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","response#Response":"export type AptosNetworkResponse = string;\n\"Mainnet\""}},"/extension/integration/aptos/event":{"title":"Event","data":{"accountchange#AccountChange":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\nconst handler = (account) => console.log(account);\ntry {\n const provider = await aptos();\n provider.onAccountChange(handler);\n // if you want to remove the listener\n provider.offAccountChange(handler);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"const handler = (account) => console.log(account);\ntry {\n const provider = aptos();\n provider.onAccountChange(handler);\n // if you want to remove the listener\n provider.offAccountChange(handler);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","networkchange#NetworkChange":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\nconst handler = (network) => console.log(network);\ntry {\n const provider = await aptos();\n provider.onNetworkChange(handler);\n // if you want to remove the listener\n provider.offNetworkChange(handler);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code-1#Vanilla Code":"const handler = (network) => console.log(network);\ntry {\n const provider = aptos();\n provider.onNetworkChange(handler);\n // if you want to remove the listener\n provider.offNetworkChange(handler);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}"}},"/extension/integration/aptos/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"const isCosmostation = \"cosmostation\" in window;\nconst aptos = () => {\n if (\"cosmostation\" in window) {\n return window.cosmostation.aptos;\n } else {\n window.open(\"https://cosmostation.io/wallet/#extension\");\n /**\n * or window.open(\"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf\");\n * */\n }\n};\nconst provider = aptos();"}},"/extension/integration/aptos/sign-and-submit-transaction":{"title":"Sign And Submit Transaction","data":{"":"Sign And Submit transcation via Cosmostation Extension","signandsubmittransaction#SignAndSubmitTransaction":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n // e.g. send payload\n const payload = {\n arguments: [\n \"\",\n \"100000000\",\n ],\n function: \"0x1::aptos_account::transfer\",\n type: \"entry_function_payload\",\n type_arguments: [],\n };\n const pendingTransaction = await provider.signAndSubmitTransaction(payload);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code#Vanilla Code":"// e.g. send payload\nconst payload = {\n arguments: [\n \"\",\n \"100000000\",\n ],\n function: \"0x1::aptos_account::transfer\",\n type: \"entry_function_payload\",\n type_arguments: [],\n};\ntry {\n const provider = aptos();\n const pendingTransaction = await provider.signAndSubmitTransaction(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","request#request":"export type AptosSignPayload = {\n function: string;\n type: string;\n type_arguments: string[];\n arguments: T[];\n};","response#Response":"export type AptosSignAndSubmitTransactionResponse = {\n hash: string;\n sender: string;\n sequence_number: string;\n max_gas_amount: string;\n gas_unit_price: string;\n expiration_timestamp_secs: string;\n payload: AptosSignPayload;\n signature?: {\n type: string;\n public_key: string;\n signature: string;\n };\n};\n{\n \"hash\": \"\",\n \"sender\": \"\",\n \"sequence_number\": \"15\",\n \"max_gas_amount\": \"1016\",\n \"gas_unit_price\": \"100\",\n \"expiration_timestamp_secs\": \"1668137878\",\n \"payload\": {\n \"function\": \"0x1::coin::transfer\",\n \"type_arguments\": [\"0x1::aptos_coin::AptosCoin\"],\n \"arguments\": [\n \"\",\n \"1000000\"\n ],\n \"type\": \"entry_function_payload\"\n },\n \"signature\": {\n \"public_key\": \"\",\n \"signature\": \"\",\n \"type\": \"ed25519_signature\"\n }\n}","signtransaction#SignTransaction":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"import { aptos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await aptos();\n const signature = await provider.signTransaction(payload);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","vanilla-code-1#Vanilla Code":"const cosmostation = provider();\n// e.g. send payload\nconst payload = {\n arguments: [\n \"\",\n \"100000000\",\n ],\n function: \"0x1::aptos_account::transfer\",\n type: \"entry_function_payload\",\n type_arguments: [],\n};\ntry {\n const provider = aptos();\n const signature = await provider.signTransaction(payload);\n} catch (e) {\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n}","request-1#request":"export type AptosSignPayload = {\n function: string;\n type: string;\n type_arguments: string[];\n arguments: T[];\n};","response-1#Response":"export type AptosSignTransactionResponse = string;\n\"\""}},"/extension/integration/cosmos/Deprecated/chains":{"title":"Chains","data":{"":"Get supported chains and add specific chains for using Cosmostation Extension.","add-chains#Add chains":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"try {\n // ...\n await provider.addChain({\n chainId: \"cerberus-chain-1\",\n chainName: \"cerberus\",\n addressPrefix: \"cre\",\n baseDenom: \"ucrbrus\",\n displayDenom: \"CRBRUS\",\n restURL: \"https://lcd-office.cosmostation.io/mooncat-1-1\",\n coinType: \"118\", // optional (default: '118')\n decimals: 6, // optional (default: 6)\n gasRate: {\n // optional (default: { average: '0.025', low: '0.0025', tiny: '0.00025' })\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n sendGas: \"80000\", // optional (default: '100000')\n type: \"ETHERMINT\", // optional (default: '')\n });\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code#Vanilla Code":"await window.cosmostation.cosmos.request({\n method: \"cos_addChain\",\n params: {\n chainId: \"cerberus-chain-1\",\n chainName: \"cerberus\",\n addressPrefix: \"cre\",\n baseDenom: \"ucrbrus\",\n displayDenom: \"CRBRUS\",\n restURL: \"https://lcd-office.cosmostation.io/mooncat-1-1\",\n coinType: \"118\", // optional (default: '118')\n decimals: 6, // optional (default: 6)\n gasRate: {\n // optional (default: { average: '0.025', low: '0.0025', tiny: '0.00025' })\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n sendGas: \"80000\", // optional (default: '100000')\n type: \"ETHERMINT\", // optional (default: '')\n },\n});","response#Response":"type addChainResponse = boolean;\ntrue","keplr-to-cosmostation#keplr to cosmostation":"{\n chainId: chainInfo.chainId,\n addressPrefix: chainInfo.bech32Config.bech32PrefixAccAddr,\n baseDenom: chainInfo.currencies[0].coinMinimalDenom,\n chainName: chainInfo.chainName || chainInfo.chainId,\n displayDenom: chainInfo.currencies[0].coinDenom,\n decimals: chainInfo.currencies[0].coinDecimals,\n restURL: chainInfo.rest,\n coinType: String(chainInfo.bip44.coinType),\n gasRate: chainInfo.gasPriceStep\n ? {\n tiny: String(chainInfo.gasPriceStep.low),\n low: String(chainInfo.gasPriceStep.average),\n average: String(chainInfo.gasPriceStep.high),\n }\n : undefined,\n}\nexport interface KeplrChainInfo {\n readonly rpc: string;\n readonly rpcConfig?: AxiosRequestConfig;\n readonly rest: string;\n readonly restConfig?: AxiosRequestConfig;\n readonly chainId: string;\n readonly chainName: string;\n readonly stakeCurrency: Currency;\n readonly walletUrl?: string;\n readonly walletUrlForStaking?: string;\n readonly bip44: BIP44;\n readonly alternativeBIP44s?: BIP44[];\n readonly bech32Config: Bech32Config;\n readonly currencies: AppCurrency[];\n readonly feeCurrencies: FeeCurrency[];\n readonly features?: string[];\n readonly beta?: boolean;\n}","supported-chains#Supported chains":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"const supportedChains = await provider.getSupportedChains();","vanilla-code-1#Vanilla Code":"const supportedChains = await window.cosmostation.cosmos.request({\n method: \"cos_supportedChainNames\",\n});","response-1#Response":"type SupportedChainNamesResponse = {\n official: string[]; // lowercase\n unofficial: string[]; // lowercase\n};\n{\n \"official\": [\"cosmos\", \"osmosis\"],\n \"unofficial\": [\"test\"]\n}","supported-chainids#Supported chainIds":"","code-using-cosmostationextension-client-2#Code using @cosmostation/extension-client":"const supportedChains = await provider.getSupportedChainIds();","vanilla-code-2#Vanilla Code":"const supportedChainIds = await window.cosmostation.cosmos.request({\n method: \"cos_supportedChainIds\",\n});","response-2#Response":"type SupportedChainIdsResponse = {\n official: string[];\n unofficial: string[];\n};\n{\n \"official\": [\"cosmoshub-4\", \"gravity-bridge-3\"],\n \"unofficial\": [\"columbus-5\", \"agoric-3\"]\n}","activated-chains#Activated chains":"","code-using-cosmostationextension-client-3#Code using @cosmostation/extension-client":"const activatedChains = await provider.getActivatedChains();","vanilla-code-3#Vanilla Code":"const activatedChains = await window.cosmostation.cosmos.request({\n method: \"cos_activatedChainNames\",\n});","response-3#Response":"type ActivatedChainNamesResponse = string[]; // lowercase\n[\"cosmos\", \"osmosis\"]","activated-chainids#Activated chainIds":"","code-using-cosmostationextension-client-4#Code using @cosmostation/extension-client":"const activatedChainIds = await provider.getActivatedChainIds();","vanilla-code-4#Vanilla Code":"const activatedChainIds = await window.cosmostation.cosmos.request({\n method: \"cos_activatedChainIds\",\n});","response-4#Response":"type ActivatedChainIdsResponse = string[];\n[\"cosmoshub-4\", \"gravity-bridge-3\"]"}},"/extension/integration/cosmos/Deprecated/accounts":{"title":"Accounts","data":{"":"Using Cosmostation Extension accounts.","get-accounts#Get Accounts":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"const account = await provider.getAccount(\"cosmoshub-4\");","vanilla-code#Vanilla Code":"const account = await window.cosmostation.cosmos.request({\n method: \"cos_account\",\n params: { chainName: \"cosmoshub-4\" },\n});","if-connected-successfully-it-will-look-like-below#If connected successfully, it will look like below.":"","response#Response":"type AccountResponse = {\n name: string;\n address: string;\n publicKey: Uint8Array;\n isLedger: boolean;\n};\n{\n \"name\": \"account name\",\n \"address\": \"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow\",\n \"publicKey\": [\n 3, 77, 9, 189, 251, 249, 150, 235, 192, 56, 51, 98, 56, 242, 12, 102, 144,\n 211, 89, 42, 187, 170\n ],\n \"isLedger\": false\n}","request-account-popup#Request Account (Popup)":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"try {\n // ...\n const account = await provider.requestAccount(\"cosmoshub-4\");\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code-1#Vanilla Code":"const account = await window.cosmostation.cosmos.request({\n method: \"cos_requestAccount\",\n params: { chainName: \"cosmoshub-4\" },\n});","response-1#Response":"type RequestAccountResponse = {\n name: string;\n address: string;\n publicKey: Uint8Array;\n isLedger: boolean;\n};\n{\n \"name\": \"account name\",\n \"address\": \"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow\",\n \"publicKey\": [\n 3, 77, 9, 189, 251, 249, 150, 235, 192, 56, 51, 98, 56, 242, 12, 102, 144,\n 211, 89, 42, 187, 170\n ],\n \"isLedger\": false\n}"}},"/extension/integration/cosmos/Deprecated/cw20-token":{"title":"CW20 token","data":{"":"@cosmostation/extension-client >= 0.1.7CW20 token via Cosmostation Extension","add-cw20-tokens#Add CW20 Tokens":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"// ...\nconst response = await provider.addCW20Tokens('mint', [\n {\n contractAddress: '',\n imageURL: 'https://pbs.twimg.com/profile_images/1465777324859826197/RUXx0equ_400x400.jpg', // optional\n coinGeckoId: 'neta', // optional\n },\n {\n contractAddress: '',\n },\n]);","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: 'cos_addTokensCW20',\n params: {\n chainName: 'mint',\n tokens: [\n {\n contractAddress: '',\n imageURL: 'https://pbs.twimg.com/profile_images/1465777324859826197/RUXx0equ_400x400.jpg', // optional\n coinGeckoId: 'neta', // optional\n },\n {\n contractAddress: '',\n },\n ],\n },\n});","response#Response":"export type AddCW20TokenResponse = null;\nnull","get-cw20-token-balance#Get CW20 Token Balance":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"// ...\nconst response = await provider.getCW20TokenBalance(\n 'mint',\n '', // contract address\n 'mint14xgdfdnpjtulj6p7rkc75ekxqjq8hc5cg5evx3', // address\n);","vanilla-code-1#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: 'cos_getBalanceCW20',\n params: {\n chainName: 'mint',\n contractAddress: '',\n address: 'mint14xgdfdnpjtulj6p7rkc75ekxqjq8hc5cg5evx3',\n },\n});","response-1#Response":"export type getCW20TokenBalanceResponse = string;\n\"1331775394\"","get-cw20-token-info#Get CW20 Token Info":"","code-using-cosmostationextension-client-2#Code using @cosmostation/extension-client":"// ...\nconst response = await provider.getCW20TokenInfo(\n 'mint',\n '', // contract address\n);","vanilla-code-2#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: 'cos_getTokenInfoCW20',\n params: {\n chainName: 'mint',\n contractAddress: '',\n },\n});","response-2#Response":"export type getCW20TokenInfoResponse = {\n decimals: number;\n name: string;\n symbol: string;\n total_supply: string;\n};\n{\n \"name\": \"NETA\",\n \"symbol\": \"NETA\",\n \"decimals\": 6,\n \"total_supply\": \"31886600000\"\n}"}},"/extension/integration/cosmos/Deprecated/disconnect":{"title":"Disconnect","data":{"":"Disconnect from Dapp","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"const response = await provider.disconnect();","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_disconnect\",\n});","response#Response":"type DisconnectResponse = null;\nnull"}},"/extension/integration/cosmos/Deprecated/error":{"title":"Error","data":{"":"Error description\nCode\tModel\tDescription\t4001\t-\tUser rejected request\t4100\t-\tThe requested account and/or method has not been authorized by the user.\t4200\t-\tThe requested method is not supported\t-32000\t-\tInvalid input.\t-32600\t-\tThe JSON sent is not a valid Request object.\t-32602\t-\tInvalid method parameter(s).\t-32603\t-\tInternal JSON-RPC error."}},"/extension/integration/cosmos/Deprecated/event":{"title":"Event","data":{"":"Account change event","onaccountchanged#onAccountChanged":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"provider.onAccountChanged(() => console.log(\"changed\"));","vanilla-code#Vanilla Code":"window.addEventListener(\"cosmostation_keystorechange\", () => {\n console.log(\"Key store in Cosmostation is changed. You may need to refetch the account info.\")\n})","offaccountchanged#offAccountChanged":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"const event = provider.onAccountChanged(() => console.log(\"changed\"));\nprovider.offAccountChanged(event);","vanilla-code-1#Vanilla Code":"window.removeEventListener(\"cosmostation_keystorechange\", handler)"}},"/extension/integration/cosmos/Deprecated/sign-message":{"title":"Sign Message","data":{"":"Sign Message via Cosmostation Extension","sign-message#Sign Message":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"try {\n // ...\n const response = await provider.signMessage(\n \"cosmoshub-4\",\n \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\", // signer\n \"message!!!!\" // message\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signMessage\",\n params: {\n chainName: \"cosmoshub-4\",\n signer: \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n message: \"message!!!!\",\n },\n});","response#Response":"export type SignMessageResponse = {\n signature: string;\n pub_key: { type: string; value: string };\n};\n{\n \"pub_key\": {\n \"type\": \"tendermint/PubKeySecp256k1\",\n \"value\": \"A00Jvfv5luvAODNiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"signature\": \"signature==\"\n}","verifymessage#VerifyMessage":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"try {\n const response = await provider.signMessage(\n \"cosmoshub-4\",\n \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n \"message!!!!\"\n );\n const result = await provider.verifyMessage(\n \"cosmoshub-4\",\n \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n \"message!!!!\",\n response\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code-1#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signMessage\",\n params: {\n chainName: \"cosmoshub-4\",\n signer: \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n message: \"message!!!!\",\n },\n});\nconst result = await window.cosmostation.cosmos.request({\n method: \"cos_verifyMessage\",\n params: {\n chainName: \"cosmoshub-4\",\n signer: \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n message: \"message!!!!\",\n publicKey: response.pub_key.value,\n signature: response.signature,\n },\n});","response-1#Response":"export type VerifyMessageResponse = boolean;\ntrue"}},"/extension/integration/cosmos/Deprecated/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { cosmos, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await cosmos();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"window.onload = async () => {\n if (!window.cosmostation) {\n alert(\"Please install cosmostation extension\");\n } else {\n // logic\n }\n};"}},"/extension/integration/cosmos/proto":{"title":"Protobuf JSON","data":{"":"Automatically creates json as a transaction in protobuf format.\nWhen using signAndTransaction, send a message as shown below.This is an example. You can request it by filling in the value in [input].","test#Test":"You can test it by connecting directly to your wallet. Please refer to the example below and send a transaction.\nIt will be sent directly to the cosmoshub-4 mainnet, so don't sign if you don't want to.","1-connect#1. Connect":"","2-get-account#2. Get Account":"","3-sign-and-send-transaction#3. Sign And Send Transaction":"It is editable.\nYou can send multiple messages.","example#Example":"","send#Send":"{\n \"type_url\": \"/cosmos.bank.v1beta1.MsgSend\",\n \"value\": {\n \"from_address\": \"from_address\", // [input]: string\n \"to_address\": \"to_address\", // [input]: string\n \"amount\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n}","multisend#MultiSend":"{\n \"type_url\": \"/cosmos.bank.v1beta1.MsgMultiSend\",\n \"value\": {\n \"inputs\": [\n {\n \"address\": \"address\", // [input]: string\n \"coins\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n ],\n \"outputs\": [\n {\n \"address\": \"address\", // [input]: string\n \"coins\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n ]\n }\n}","delegate#Delegate":"{\n \"type_url\": \"/cosmos.staking.v1beta1.MsgDelegate\",\n \"value\": {\n \"delegator_address\": \"delegator_address\", // [input]: string\n \"validator_address\": \"validator_address\", // [input]: string\n \"amount\": {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n }\n}","redelegate#Redelegate":"{\n \"type_url\": \"/cosmos.staking.v1beta1.MsgBeginRedelegate\",\n \"value\": {\n \"delegator_address\": \"[input]\", // [input]: string\n \"validator_src_address\": \"[input]\", // [input]: string\n \"validator_dst_address\": \"[input]\", // [input]: string\n \"amount\": {\n \"denom\": \"[input]\", // [input]: string\n \"amount\": \"[input]\" // [input]: string\n }\n }\n}","undelegate#Undelegate":"{\n \"type_url\": \"/cosmos.staking.v1beta1.MsgUndelegate\",\n \"value\": {\n \"delegator_address\": \"delegator_address\", // [input]: string\n \"validator_address\": \"validator_address\", // [input]: string\n \"amount\": {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n }\n}","reward#Reward":"{\n \"type_url\": \"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\",\n \"value\": {\n \"delegator_address\": \"delegator_address\", // [input]: string\n \"validator_address\": \"validator_address\" // [input]: string\n }\n}","vote#Vote":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgVote\",\n \"value\": {\n \"proposal_id\": 823, // [input]: number\n \"voter\": \"voter\", // [input]: string\n \"option\": 1 // [input]: number (yes: 1, abstain: 2, no: 3, no_with_veto: 4)\n }\n}","vote-options#Vote Options":"enum VoteOption {\n VOTE_OPTION_UNSPECIFIED = 0,\n VOTE_OPTION_YES = 1,\n VOTE_OPTION_ABSTAIN = 2,\n VOTE_OPTION_NO = 3,\n VOTE_OPTION_NO_WITH_VETO = 4\n}","ibc-transfer#IBC Transfer":"{\n \"type_url\": \"/ibc.applications.transfer.v1.MsgTransfer\",\n \"value\": {\n \"source_port\": \"source_port\", // [input]: string\n \"source_channel\": \"source_channel\", // [input]: string\n \"token\": {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n },\n \"sender\": \"sender\", // [input]: string\n \"receiver\": \"receiver\", // [input]: string\n \"timeout_height\": {\n \"revision_height\": 13594714, // [input]: number\n \"revision_number\": 2 // [input]: number\n },\n \"memo\": \"\" // [input]: string\n }\n}","cosmwasm-executecontract#Cosmwasm ExecuteContract":"{\n \"type_url\": \"/cosmwasm.wasm.v1.MsgExecuteContract\",\n \"value\": {\n \"sender\": \"sender\", // [input]: string\n \"contract\": \"contract\", // [input]: string\n \"funds\": [], // [input]: unknown[]\n \"msg\": [1, 2] // [input]: Buffer or Uint8Array\n }\n}","proposal#Proposal":"","textproposal#TextProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.gov.v1beta1.TextProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\" // [input]: string\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","clientupdateproposal#ClientUpdateProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/ibc.core.client.v1.ClientUpdateProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"subject_client_id\": \"subject_client_id\", // [input]: string\n \"substitute_client_id\": \"substitute_client_id\" // [input]: string\n }\n },\n \"initial_deposit\": [],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","communitypoolspendproposal#CommunityPoolSpendProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"recipient\": \"recipient\", // [input]: string\n \"amount\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ]\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","parameterchangeproposal#ParameterChangeProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.params.v1beta1.ParameterChangeProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"changes\": [\n {\n \"subspace\": \"subspace\", // [input]: string\n \"key\": \"key\", // [input]: string\n \"value\": \"value\" // [input]: string\n }\n ]\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","softwareupgradeproposal#SoftwareUpgradeProposal":"{\n \"type_url\": \"/cosmos.gov.v1beta1.MsgSubmitProposal\",\n \"value\": {\n \"content\": {\n \"type_url\": \"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal\",\n \"value\": {\n \"title\": \"title\", // [input]: string\n \"description\": \"description\", // [input]: string\n \"plan\": {\n \"name\": \"name\", // [input]: string\n \"height\": \"height\", // [input]: string\n \"info\": \"info\", // [input]: string\n \"upgraded_client_state\": null // [input]: null or IAny\n }\n }\n },\n \"initial_deposit\": [\n {\n \"denom\": \"denom\", // [input]: string\n \"amount\": \"amount\" // [input]: string\n }\n ],\n \"proposer\": \"proposer\" // [input]: string\n }\n}","grant#Grant":"","delegate-grant#Delegate Grant":"{\n \"type_url\": \"/cosmos.authz.v1beta1.MsgGrant\",\n \"value\": {\n \"granter\": \"granter\", // [input]: string\n \"grantee\": \"grantee\", // [input]: string\n \"grant\": {\n \"authorization\": {\n \"type_url\": \"/cosmos.staking.v1beta1.StakeAuthorization\",\n \"value\": {\n \"allow_list\": {\n \"address\": [\"address\", \"address\"] // [input]: string[]\n },\n \"authorization_type\": 1 // [input]: number\n }\n },\n \"expiration\": {\n \"type_url\": \"/google.protobuf.Timestamp\",\n \"value\": {\n \"seconds\": 5325252355 // [input]: number (unix time)\n }\n }\n }\n }\n}","revoke-delegate-grant#Revoke Delegate Grant":"{\n \"type_url\": \"/cosmos.authz.v1beta1.MsgRevoke\",\n \"value\": {\n \"granter\": \"granter\", // [input]: string\n \"grantee\": \"grantee\", // [input]: string\n \"msg_type_url\": \"/cosmos.staking.v1beta1.MsgDelegate\"\n }\n}","authorization-type#Authorization Type":"type AuthorizationType = {\n AUTHORIZATION_TYPE_UNSPECIFIED = 0,\n AUTHORIZATION_TYPE_DELEGATE = 1,\n AUTHORIZATION_TYPE_UNDELEGATE = 2,\n AUTHORIZATION_TYPE_REDELEGATE = 3\n}"}},"/extension/integration/cosmos/integrate-cosmjs":{"title":"Integrate cosmjs","data":{"":"Integrate cosmjs.","add-package#Add package":"yarn add @cosmostation/cosmos-client\nnpm install @cosmostation/cosmos-client","offline-signer#Offline Signer":"import { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nimport { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nimport { GasPrice, calculateFee } from \"@cosmjs/stargate\";\nimport { SigningCosmWasmClient } from \"@cosmjs/cosmwasm-stargate\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nconst rpcEndpoint = RPC_END_POINT;\nconst client = await SigningCosmWasmClient.connectWithSigner(\n rpcEndpoint,\n offlineSigner\n);\n//getAccounts\nconst accounts = await offlineSigner.getAccounts();\n//execute\nconst gasPrice = GasPrice.fromString(\"0.01denom\");\nconst fees = {\n upload: calculateFee(1500000, gasPrice),\n init: calculateFee(500000, gasPrice),\n exec: calculateFee(500000, gasPrice),\n};\nconst result = await client.execute(\n accounts[0].address,\n RECEIPT_ADDRESS,\n MESSAGE,\n fees.exec\n);"}},"/extension/integration/cosmos/Deprecated/sign-tx":{"title":"Sign Transactions","data":{"":"Sign transcation via Cosmostation Extension","sign-amino#Sign Amino":"","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"try {\n // ...\n const response = await provider.signAmino(\n \"cosmoshub-4\",\n {\n chain_id: \"cosmoshub-4\",\n fee: { amount: [{ denom: \"uatom\", amount: \"5000\" }], gas: \"200000\" },\n memo: \"\",\n msgs: [\n {\n type: \"cosmos-sdk/MsgSend\",\n value: {\n from_address: \"cosmos1wepghweioghweiog\",\n to_address: \"cosmos1weogihweoighweoigheoiw\",\n amount: [{ denom: \"uatom\", amount: \"5000\" }],\n },\n },\n ],\n sequence: \"20\",\n account_number: \"632177\",\n },\n {\n memo: true, // optional\n fee: true, // optional\n gasRate: {\n // optional\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n }\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signAmino\",\n params: {\n chainName: \"cosmoshub-4\",\n doc: {\n chain_id: \"cosmoshub-4\",\n fee: { amount: [{ denom: \"uatom\", amount: \"5000\" }], gas: \"200000\" },\n memo: \"\",\n msgs: [\n {\n type: \"cosmos-sdk/MsgSend\",\n value: {\n from_address: \"cosmos1wepghweioghweiog\",\n to_address: \"cosmos1weogihweoighweoigheoiw\",\n amount: [{ denom: \"uatom\", amount: \"5000\" }],\n },\n },\n ],\n sequence: \"20\",\n account_number: \"632177\",\n },\n isEditMemo: true, // optional\n isEditFee: true, // optional\n gasRate: {\n // optional\n average: \"0.2\",\n low: \"0.02\",\n tiny: \"0.002\",\n },\n },\n});","response#Response":"export type SignAminoResponse = {\n signature: string;\n pub_key: { type: string; value: string };\n signed_doc: SignAminoDoc;\n};\nexport type SignAminoDoc = {\n chain_id: string;\n sequence: string;\n account_number: string;\n fee: Fee;\n memo: string;\n msgs: Msg[];\n};\nexport type Amount = {\n denom: string;\n amount: string;\n};\nexport type Msg = {\n type: string;\n value: T;\n};\nexport type Fee = { amount: Amount[]; gas: string };\n{\n \"pub_key\": {\n \"type\": \"tendermint/PubKeySecp256k1\",\n \"value\": \"A00Jvfv5luvAODNiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"signature\": \"signature==\",\n \"signed_doc\": {\n \"chain_id\": \"cosmoshub-4\",\n \"fee\": {\n \"amount\": [{ \"denom\": \"uatom\", \"amount\": \"5000\" }],\n \"gas\": \"200000\"\n },\n \"memo\": \"\",\n \"msgs\": [\n {\n \"type\": \"cosmos-sdk/MsgSend\",\n \"value\": {\n \"from_address\": \"cosmos1gr0e3pj3y6fqvzyfm0qxyw9h5dwfrvh8zv3x9p\",\n \"to_address\": \"cosmos1ursv4z57pw8ly2jsgn09dyjha4qrk7aen987ld\",\n \"amount\": [{ \"denom\": \"uatom\", \"amount\": \"5000\" }]\n }\n }\n ],\n \"sequence\": \"20\",\n \"account_number\": \"632177\"\n }\n}","sign-direct#Sign Direct":"","code-using-cosmostationextension-client-1#Code using @cosmostation/extension-client":"try {\n // ...\n const response = await provider.signDirect(\n \"cosmos\",\n {\n chain_id: \"cosmoshub-4\",\n account_number: \"1\",\n auth_info_bytes: [\n 10, 80, 10, 70, 10, 31, 47, 99, 111, 115, 109, 111, 115, 46, 99, 114,\n 121, 112, 116, 111, 46, 115, 101, 99, 112, 50, 53, 54, 107, 49, 46, 80,\n 117, 98, 75, 101, 121, 18, 35, 10, 33, 3, 77, 9, 189, 251, 249, 150,\n 235, 192, 56, 51, 98, 56, 242, 12, 102, 144, 211, 89, 42, 187, 170, 250,\n 5, 87, 201, 59, 166, 215, 108, 14, 162, 212, 18, 4, 10, 2, 8, 127, 24,\n 14, 18, 19, 10, 13, 10, 5, 117, 97, 116, 111, 109, 18, 4, 50, 48, 48,\n 48, 16, 128, 241, 4,\n ],\n body_bytes: [\n 10, 133, 1, 10, 28, 47, 99, 111, 115, 109, 111, 115, 46, 98, 97, 110,\n 107, 46, 118, 49, 98, 101, 116, 97, 49, 46, 77, 115, 103, 83, 101, 110,\n 100, 18, 101, 10, 42, 99, 114, 101, 49, 103, 114, 48, 101, 51, 112, 106,\n 51, 121, 54, 102, 113, 118, 122, 121, 102, 109, 48, 113, 120, 121, 119,\n 57, 104, 53, 100, 119, 102, 114, 118, 104, 56, 120, 121, 122, 114, 115,\n 118, 18, 42, 99, 114, 101, 49, 120, 53, 119, 103, 104, 54, 118, 119,\n 121, 101, 54, 48, 119, 118, 51, 100, 116, 115, 104, 115, 57, 100, 109,\n 113, 103, 103, 119, 102, 120, 50, 108, 100, 104, 103, 108, 117, 101,\n 122, 26, 11, 10, 4, 117, 99, 114, 101, 18, 3, 49, 48, 48, 18, 0,\n ],\n },\n { memo: true, fee: true } // edit | optional (default: { memo: false, fee: false }),\n );\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n if (e.code === 4001) {\n console.log(\"user rejected request\");\n }\n // exception\n}","vanilla-code-1#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_signDirect\",\n params: {\n chainName: \"cosmos\",\n doc: {\n chain_id: \"cosmoshub-4\",\n account_number: \"1\",\n auth_info_bytes: [\n 10, 80, 10, 70, 10, 31, 47, 99, 111, 115, 109, 111, 115, 46, 99, 114,\n 121, 112, 116, 111, 46, 115, 101, 99, 112, 50, 53, 54, 107, 49, 46, 80,\n 117, 98, 75, 101, 121, 18, 35, 10, 33, 3, 77, 9, 189, 251, 249, 150,\n 235, 192, 56, 51, 98, 56, 242, 12, 102, 144, 211, 89, 42, 187, 170, 250,\n 5, 87, 201, 59, 166, 215, 108, 14, 162, 212, 18, 4, 10, 2, 8, 127, 24,\n 14, 18, 19, 10, 13, 10, 5, 117, 97, 116, 111, 109, 18, 4, 50, 48, 48,\n 48, 16, 128, 241, 4,\n ],\n body_bytes: [\n 10, 133, 1, 10, 28, 47, 99, 111, 115, 109, 111, 115, 46, 98, 97, 110,\n 107, 46, 118, 49, 98, 101, 116, 97, 49, 46, 77, 115, 103, 83, 101, 110,\n 100, 18, 101, 10, 42, 99, 114, 101, 49, 103, 114, 48, 101, 51, 112, 106,\n 51, 121, 54, 102, 113, 118, 122, 121, 102, 109, 48, 113, 120, 121, 119,\n 57, 104, 53, 100, 119, 102, 114, 118, 104, 56, 120, 121, 122, 114, 115,\n 118, 18, 42, 99, 114, 101, 49, 120, 53, 119, 103, 104, 54, 118, 119,\n 121, 101, 54, 48, 119, 118, 51, 100, 116, 115, 104, 115, 57, 100, 109,\n 113, 103, 103, 119, 102, 120, 50, 108, 100, 104, 103, 108, 117, 101,\n 122, 26, 11, 10, 4, 117, 99, 114, 101, 18, 3, 49, 48, 48, 18, 0,\n ],\n },\n isEditFee: true,\n isEditMemo: true,\n },\n});","response-1#Response":"export type SignDirectDoc = {\n chain_id: string;\n body_bytes: Uint8Array;\n auth_info_bytes: Uint8Array;\n account_number: string;\n};\nexport type SignDirectResponse = {\n signature: string;\n pub_key: { type: string; value: string };\n signed_doc: SignDirectDoc;\n};\n{\n \"pub_key\": {\n \"type\": \"tendermint/PubKeySecp256k1\",\n \"value\": \"A00Jvfv5luvAODNiOPIMZpDTWSq7qvoFV8k7ptdsDqLU\"\n },\n \"signature\": \"signature==\",\n \"signed_doc\": {\n \"chain_id\": \"cosmoshub-4\",\n \"account_number\": \"1\",\n \"auth_info_bytes\": [\n 10, 80, 10, 70, 10, 31, 47, 99, 111, 115, 109, 111, 115, 46, 99, 114, 121,\n 112, 116, 111, 46, 115, 101, 99, 112, 50, 53, 54, 107, 49, 46, 80, 117,\n 98, 75, 101, 121, 18, 35, 10, 33, 3, 77, 9, 189, 251, 249, 150, 235, 192,\n 56, 51, 98, 56, 242, 12, 102, 144, 211, 89, 42, 187, 170, 250, 5, 87, 201,\n 59, 166, 215, 108, 14, 162, 212, 18, 4, 10, 2, 8, 127, 24, 14, 18, 19, 10,\n 13, 10, 5, 117, 97, 116, 111, 109, 18, 4, 50, 48, 48, 48, 16, 128, 241, 4\n ],\n \"body_bytes\": [\n 10, 133, 1, 10, 28, 47, 99, 111, 115, 109, 111, 115, 46, 98, 97, 110, 107,\n 46, 118, 49, 98, 101, 116, 97, 49, 46, 77, 115, 103, 83, 101, 110, 100,\n 18, 101, 10, 42, 99, 114, 101, 49, 103, 114, 48, 101, 51, 112, 106, 51,\n 121, 54, 102, 113, 118, 122, 121, 102, 109, 48, 113, 120, 121, 119, 57,\n 104, 53, 100, 119, 102, 114, 118, 104, 56, 120, 121, 122, 114, 115, 118,\n 18, 42, 99, 114, 101, 49, 120, 53, 119, 103, 104, 54, 118, 119, 121, 101,\n 54, 48, 119, 118, 51, 100, 116, 115, 104, 115, 57, 100, 109, 113, 103,\n 103, 119, 102, 120, 50, 108, 100, 104, 103, 108, 117, 101, 122, 26, 11,\n 10, 4, 117, 99, 114, 101, 18, 3, 49, 48, 48, 18, 0\n ]\n }\n}"}},"/extension/integration/cosmos/react-hook":{"title":"React hook","data":{"installation#Installation":"The Cosmostation wallet hook package lives in npm. To install the latest stable version, run the following command:\nnpm install @cosmostation/use-wallets\nOr if you're using yarn:\nyarn add @cosmostation/use-wallets","cosmosprovider#CosmosProvider":"Components that use cosmos wallet state need CosmosProvider to appear somewhere in the parent tree. A good place to put this is in your root component:\nimport { CosmosProvider } from '@cosmostation/use-wallets';\nfunction App() {\n return (\n \n \n \n );\n}","usecosmoswallets#useCosmosWallets":"With useCosmosWallets, you can select a list of wallets, the wallet you are currently using, and the wallet you want to use.\nThe wallet list is automatically inserted in extensions.If you would like to add a wallet, click here","selectwallet#selectWallet":"import { useCosmosWallets } from '@cosmostation/use-wallets';\nfunction Connect() {\n const { cosmosWallets, selectWallet } = useCosmosWallets();\n return (\n
\n {cosmosWallets.map((wallet) => (\n {\n selectWallet(wallet.id);\n }}\n key={wallet.id}\n >\n {wallet.name} {wallet.name}\n \n ))}\n
\n );\n}","addchain#addChain":"import { useCosmosWallets } from '@cosmostation/use-wallets';\nfunction AddCustomChain() {\n const { currentWallet } = useCosmosWallets();\n return (\n
\n {\n try {\n if (!currentWallet) {\n throw new Error('No Selected Wallet');\n }\n await currentWallet.methods.addChain({\n chain_id: 'custom-chain-1',\n chain_name: 'custom-chain',\n address_prefix: 'custom',\n base_denom: 'ucustom',\n display_denom: 'CUSTOM',\n lcd_url: 'https://rpc.custom-chain.com',\n decimals: 6, // optional\n coin_type: \"118'\", // optional\n });\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Add Custom Chain\n \n
\n );\n}","usecosmosaccount#useCosmosAccount":"With useCosmosAccount, you can get the account information of the wallet you are currently using.","account#Account":"Account automatically requests account information the moment a wallet is selected. If you want to request more manually, you can use 'mutate'.\nType\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function Account() {\n const { data, error, mutate } = useCosmosAccount('cosmoshub-4');\n useEffect(() => {\n console.log('address', data?.account);\n console.log('error', error);\n }, [data, error]);\n return ;\n}","methods#Methods":"the available methods in the selected account. (e.g. sign)\nType","disconnect#disconnect":"import { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function Account() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return ;\n}","signamino#signAmino":"Amino Doc Type\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAmino() {\n const { data } = useCosmosAccount('cosmoshub-4');\n const sendExampleDoc = {\n // ...\n };\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n console.dir(await data?.methods.signAmino(sendExampleDoc), { depth: 100 });\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign Amino\n \n );\n}","signdirect#signDirect":"Direct Doc Type\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignDirect() {\n const { data } = useCosmosAccount('cosmoshub-4');\n const sendExampleDoc = {\n // ...\n };\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n const result = await data.methods.signDirect(sendExampleDoc);\n console.dir(result, { depth: 100 });\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign Direct\n \n );\n}","signandsendtransaction#signAndSendTransaction":"A method that combines sign and send using signDirect\nReceives message as json and automates creation of protobufJSON e.g.\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAndSendTransaction() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n console.dir(\n await data?.methods.signAndSendTransaction({\n messages: [\n {\n type_url: '/cosmos.bank.v1beta1.MsgSend',\n value: {\n from_address: data?.account.address,\n to_address: data?.account.address,\n amount: [\n {\n denom: 'uatom',\n amount: '1',\n },\n ],\n },\n },\n ],\n memo: 'Test (Sign And Send Transaction)',\n }),\n { depth: 100 },\n );\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign And Send Transaction\n \n );\n}","signmessage#signMessage":"sign arbitrary bytes\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAndSendTransaction() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n if (!data.methods.signMessage) {\n throw new Error('No signMessage method');\n }\n const message = '(test) sign message';\n console.dir(await data.methods.signMessage(message));\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Sign Message\n \n );\n}","verifymessage#verifyMessage":"verify arbitrary bytes\nimport { useCosmosAccount } from '@cosmostation/use-wallets';\nexport default function SignAndSendTransaction() {\n const { data } = useCosmosAccount('cosmoshub-4');\n return (\n {\n try {\n if (!data) {\n throw new Error('No data');\n }\n if (!data.methods.signMessage) {\n throw new Error('No signMessage method');\n }\n if (!data.methods.verifyMessage) {\n throw new Error('No verifyMessage method');\n }\n const message = '(test) sign message';\n const response = await data.methods.signMessage(message);\n const verify = await data.methods.verifyMessage(message, response.signature);\n console.log(verify ? 'verified' : 'not verified');\n } catch (e) {\n console.log(e.message);\n }\n }}\n >\n Verify Message\n \n );\n}","type#Type":"","account-1#Account":"interface Account {\n data?: {\n account: CosmosAccount;\n methods: CosmosMethods;\n };\n error?: string;\n mutate: () => void;\n}","cosmosaccount#CosmosAccount":"interface CosmosAccount {\n address: string;\n public_key: {\n type: CosmosPublicKeyType;\n value: string;\n };\n name?: string;\n is_ledger?: boolean;\n}","cosmospublickeytype#CosmosPublicKeyType":"type CosmosPublicKeyType = 'secp256k1' | 'ethsecp256k1';","cosmosmethods#CosmosMethods":"interface CosmosMethods {\n signAndSendTransaction: (\n props: SignAndSendTransactionProps,\n options?: SignOptions,\n ) => Promise;\n signAmino: (\n document: CosmosSignAminoDoc,\n options?: SignOptions,\n ) => Promise;\n signDirect: (\n document: CosmosSignDirectDoc,\n options?: SignOptions,\n ) => Promise;\n sendTransaction: (\n tx_bytes: Uint8Array | string,\n mode?: number,\n ) => Promise;\n getSupportedChainIds: () => Promise;\n signMessage?: (message: string, signer: string) => Promise;\n verifyMessage?: (message: string, signature: string) => Promise;\n}","cosmossignaminodoc#CosmosSignAminoDoc":"interface CosmosSignAminoDoc {\n sequence: string;\n account_number: string;\n fee: {\n amount?: {\n denom: string;\n amount: string;\n }[];\n gas: string;\n };\n memo: string;\n msgs: {\n type: string;\n value: any;\n }[];\n}","cosmossignaminoresponse#CosmosSignAminoResponse":"interface CosmosSignAminoResponse {\n signature: string;\n signed_doc: any;\n}","cosmossigndirectdoc#CosmosSignDirectDoc":"interface CosmosSignDirectDoc {\n account_number: string;\n body_bytes: string | Uint8Array;\n auth_info_bytes: string | Uint8Array;\n}","cosmossigndirectresponse#CosmosSignDirectResponse":"interface CosmosSignDirectResponse {\n signature: string;\n signed_doc: CosmosSignedDoc;\n}","signandsendtransactionprops#SignAndSendTransactionProps":"interface CosmosSignAndSendTransactionProps {\n messages: Message[];\n memo?: string;\n fee?: Fee;\n sequence?: number;\n lcd_url?: string;\n fee_denom?: string;\n gas_rate?: number;\n payer?: string;\n granter?: string;\n}\ninterface CosmosMessage {\n type_url: string;\n value?: unknown;\n}","cosmosfee#CosmosFee":"interface CosmosFee {\n amount: Amount[];\n gas_limit: number;\n payer?: string;\n granter?: string;\n}\ninterface CosmosAmount {\n denom: string;\n amount: number;\n}"}},"/extension/integration/cosmos/integrate-keplr":{"title":"Use Cosmostation with Keplr Interface","data":{"":"Cosmostation is providing Keplr's interface. The purpose is to make it easier for the developers to integrate Cosmostation to dApps that have Keplr integrated already.Supported functions/variables are as belows:\ndefaultOptions\nenable\ngetKey\nexperimentalSuggestChain\ngetOfflineSigner\ngetOfflineSignerAuto\ngetOfflineSignerOnlyAmino\nsendTx\nsignAmino\nsignDirect\nsignArbitrary\nverifyArbitrary\nIn case of an error, use the Cosmostation interface.You need to use methods provided by Cosmostation for the event handling and defaultOptions change.\nHere's the guide:","guide#Guide":"Use window.cosmostation.providers.keplr instead of window.keplr.\nwindow.onload = async () => {\n if (!window.cosmostation) {\n alert(\"Please install cosmostation extension\");\n } else {\n const chainId = \"cosmoshub-4\";\n await window.cosmostation.providers.keplr.enable(chainId);\n const offlineSigner =\n window.cosmostation.providers.keplr.getOfflineSigner(chainId);\n const accounts = await offlineSigner.getAccounts();\n }\n};\nasync getKeplr(): Promise {\n if (window.cosmostation) {\n return window.cosmostation.providers.keplr;\n }\n if (document.readyState === \"complete\") {\n return window.cosmostation.providers.keplr;\n }\n return new Promise((resolve) => {\n const documentStateChange = (event: Event) => {\n if (\n event.target &&\n (event.target as Document).readyState === \"complete\"\n ) {\n resolve(window.cosmostation.providers.keplr);\n document.removeEventListener(\"readystatechange\", documentStateChange);\n }\n };\n document.addEventListener(\"readystatechange\", documentStateChange);\n });\n}","defaultoptions#defaultOptions":"window.cosmostation.providers.keplr.defaultOptions = {\n sign: {\n preferNoSetFee: true,\n preferNoSetMemo: true,\n },\n};","event#Event":"window.addEventListener(\"cosmostation_keystorechange\", () => {\n console.log(\"Key store in Cosmostation is changed. You may need to refetch the account info.\")\n})"}},"/extension/integration/cosmos/typescript":{"title":"Typescript","data":{"installation#Installation":"The Cosmostation wallet package lives in npm. To install the latest stable version, run the following command:\nnpm install @cosmostation/extension\nOr if you're using yarn:\nyarn add @cosmostation/extension","account#Account":"","request-account#Request account":"Get account information\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const account = await provider.requestAccount();\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Request Account\n;","disconnect#Disconnect":"Disconnect from the extension\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const account = await provider.requestAccount();\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Disconnect\n;","sign#Sign":"","signamino#SignAmino":"Signing with amino in the legacy way.\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const doc = {\n // ...\n };\n const response = await provider.signAmino(doc);\n console.log(response.signatures);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Amino\n;","signdirect#SignDirect":"Signing based on protobuf\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const doc = {\n // ...\n };\n const response = await provider.signDirect(doc);\n console.log(response.signatures);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Direct\n;","signandsendtransaction#SignAndSendTransaction":"A method that combines sign and send using signDirect\nReceives message as json and automates creation of protobufJSON e.g.\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const account = await provider.requestAccount();\n const response = await provider.signAndSendTransaction({\n messages: [\n {\n type_url: '/cosmos.bank.v1beta1.MsgSend',\n value: {\n from_address: account.address,\n to_address: account.address,\n amount: [\n {\n denom: 'uatom',\n amount: '1',\n },\n ],\n },\n },\n ],\n memo: 'Test (Sign And Send Transaction)',\n });\n console.log(response);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign And Send Transaction\n;","signmessage#SignMessage":"sign arbitrary bytes\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const response = await provider.signMessage('Test (Sign Message)');\n console.log(response.signature);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Message\n;","verifymessage#verifyMessage":"verify arbitrary bytes\nimport { cosmos } from '@cosmostation/extension';\n {\n try {\n const provider = await cosmos('cosmoshub-4');\n const text = 'Test (Sign Message)';\n const signResponse = await provider.signMessage(text);\n const verifyResponse = await provider.verifyMessage(text, signResponse.signature);\n console.log(verifyResponse ? 'verified' : 'not verified');\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign & Verify Message\n;","addcustomchain#AddCustomChain":"Add a chain or testnet chain that is not officially provided by the extension.\nimport { cosmosFunctions } from '@cosmostation/extension';\n {\n try {\n const response = cosmosFunctions.addCosmosChain({\n chainId: 'custom-chain-1',\n chainName: 'custom-chain',\n addressPrefix: 'custom',\n baseDenom: 'ucustom',\n displayDenom: 'CUSTOM',\n restURL: 'https://rpc.custom-chain.com',\n decimals: 6, // optional\n coinType: \"118'\", // optional\n });\n console.log(response.tx_response.txhash);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Add a custom chain\n;","event#Event":"","addeventlistener#addEventListener":"window.addEventListener('cosmostation_keystorechange', () => {\n console.log('Key store in Cosmostation is changed. You may need to refetch the account info.');\n});","removeeventlistener#removeEventListener":"window.removeEventListener('cosmostation_keystorechange', handler);"}},"/extension/integration/cosmos/vanilla":{"title":"Vanilla","data":{"":"This code can be used without any installation.","account#Account":"Get account information\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const account = await window.cosmostation.cosmos.request({\n method: 'cos_requestAccount',\n params: { chainName: 'cosmoshub-4' },\n });\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Request Account\n","sign#Sign":"","signamino#SignAmino":"Signing with amino in the legacy way.\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const doc = {\n //...\n };\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_signAmino',\n params: { chainName: 'cosmoshub-4', doc },\n });\n console.log(response.signature);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Amino\n","signdirect#SignDirect":"Signing based on protobuf\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const doc = {\n // ...\n };\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_signDirect',\n params: {\n chainName: 'cosmoshub-4',\n doc,\n },\n });\n console.log(response.signatures);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Direct\n","signmessage#SignMessage":"sign arbitrary bytes\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const account = await window.cosmostation.cosmos.request({\n method: 'cos_requestAccount',\n params: { chainName: 'cosmoshub-4' },\n });\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_signMessage',\n params: {\n chainName: 'cosmoshub-4',\n message: 'Test (Sign Message)',\n signer: account.address,\n },\n });\n console.log(response.signature);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign Message\n","verifymessage#VerifyMessage":"verify arbitrary bytes\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const message = 'Test (Sign Message)';\n const account = await window.cosmostation.cosmos.request({\n method: 'cos_requestAccount',\n params: { chainName: 'cosmoshub-4' },\n });\n const signResponse = await window.cosmostation.cosmos.request({\n method: 'cos_signMessage',\n params: {\n chainName: 'cosmoshub-4',\n message,\n signer: account.address,\n },\n });\n const verifyResponse = await window.cosmostation.cosmos.request({\n method: 'cos_verifyMessage',\n params: {\n chainName: 'cosmoshub-4',\n message,\n signer: account.address,\n publicKey: signResponse.pub_key.value,\n signature: signResponse.signature,\n },\n });\n console.log(verifyResponse ? 'verified' : 'not verified');\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Sign & Verify Message\n","addcw20token#AddCW20Token":" {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n await window.cosmostation.cosmos.request({\n method: 'cos_addTokensCW20',\n params: {\n chainName: 'juno-1',\n tokens: [\n {\n contractAddress: '',\n },\n ],\n },\n });\n console.log('added');\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Add CW20 Tokens\n","addcustomchain#AddCustomChain":"Add a chain or testnet chain that is not officially provided by the extension.\n {\n try {\n if (!window.cosmostation) {\n throw new Error('Cosmostation extension not installed');\n }\n const response = await window.cosmostation.cosmos.request({\n method: 'cos_addChain',\n params: {\n chainId: 'custom-chain-1',\n chainName: 'custom-chain',\n addressPrefix: 'custom',\n baseDenom: 'ucustom',\n displayDenom: 'CUSTOM',\n restURL: 'https://rpc.custom-chain.com',\n decimals: 6, // optional\n coinType: '118', // optional\n },\n });\n console.log(response.tx_response.txhash);\n } catch (e) {\n console.log(e.message);\n }\n }}\n>\n Add a custom chain\n","event#Event":"","addeventlistener#addEventListener":"window.addEventListener('cosmostation_keystorechange', () => {\n console.log('Key store in Cosmostation is changed. You may need to refetch the account info.');\n});","removeeventlistener#removeEventListener":"window.removeEventListener('cosmostation_keystorechange', handler);"}},"/extension/integration/evm/event":{"title":"Event","data":{"accountschanged#accountsChanged":"If current account is connected to the dApp, return an array of address. Otherwise, return an empty array.\nimport { ethers } from \"ethers\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const handler = provider.on(\"accountsChanged\", (accounts) => {\n if(accounts.length === 0 ) {\n console.log(provider.request({'eth_requestAccounts'}))\n } else {\n console.log(accounts)\n }\n });\n provider.off(handler)\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}","chainchanged#chainChanged":"import { ethers } from \"ethers\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const handler = provider.on(\"chainChanged\", (chainId) => {\n console.log(chainId);\n });\n provider.off(handler);\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}"}},"/extension/integration/evm/supported-rpc-methods":{"title":"Supported RPC methods","data":{"ethereum-json-rpc-methods#Ethereum JSON-RPC Methods":"For the Ethereum JSON-RPC API, please see the Ethereum wikiImportant methods from this API include:\neth_accounts\neth_call\neth_getBalance\neth_sign\neth_sendTransaction\neth_signTransaction","eth_requestaccounts-eip-1102#eth_requestAccounts (EIP-1102)":"Link","returns#Returns":"string[] - An array of a single, hexadecimal Ethereum address string.","example#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"eth_requestAccounts\",\n});","wallet_addethereumchain-eip-3085#wallet_addEthereumChain (EIP-3085)":"Link","parameters#Parameters":"type WalletAddEthereumChainParam = [\n {\n chainId: string;\n chainName: string;\n blockExplorerUrls?: string[];\n iconUrls?: string[];\n nativeCurrency: {\n name: string;\n symbol: string;\n decimals: number;\n };\n rpcUrls: string[];\n coinGeckoId?: string;\n }\n];","returns-1#Returns":"null - The method returns null if the request was successful, and an error otherwise.","example-1#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"wallet_addEthereumChain\",\n params: [\n {\n chainId: \"0x38\",\n chainName: \"Binance Smart Chain\",\n rpcUrls: [\"https://bsc-dataseed.binance.org\"],\n iconUrls: [\n \"https://www.coinreaders.com/imgdata/coinreaders_com/202107/2021072701234398.png\",\n ],\n nativeCurrency: {\n name: \"BNB\",\n symbol: \"BNB\",\n decimals: 18,\n },\n blockExplorerUrls: [\"https://bscscan.com\"],\n },\n ],\n});","wallet_switchethereumchain-eip-3326#wallet_switchEthereumChain (EIP-3326)":"Link","parameters-1#Parameters":"type WalletSwitchEthereumChainParam = [\n {\n chainId: string;\n }\n];","returns-2#Returns":"null - The method returns null if the request was successful, and an error otherwise.","example-2#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"wallet_switchEthereumChain\",\n params: [{ chainId: \"0x38\" }],\n});","wallet_watchasset-eip-747#wallet_watchAsset (EIP-747)":"Link","parameters-2#Parameters":"type WalletWatchAssetParam = {\n type: string;\n options: {\n address: string;\n symbol: string;\n decimals: number;\n image?: string;\n coinGeckoId?: string;\n };\n};","returns-3#Returns":"boolean - true if the request was successful, error otherwise.","example-3#Example":"// provider.request or\nwindow.cosmostation.ethereum.request({\n method: \"wallet_watchAsset\",\n params: {\n type: \"ERC20\",\n options: {\n address: \"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\",\n symbol: \"WETH\",\n decimals: 18,\n },\n },\n});","eth_signtypeddata_v3--eth_signtypeddata_v4#eth_signTypedData_v3 / eth_signTypedData_v4":"","example-4#Example":"const msgParams = JSON.stringify({\n domain: {\n // Defining the chain aka Rinkeby testnet or Ethereum Main Net\n chainId: 1,\n // Give a user friendly name to the specific contract you are signing for.\n name: \"Ether Mail\",\n // If name isn't enough add verifying contract to make sure you are establishing contracts with the proper entity\n verifyingContract: \"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\",\n // Just let's you know the latest version. Definitely make sure the field name is correct.\n version: \"1\",\n },\n // Defining the message signing data content.\n message: {\n /*\n - Anything you want. Just a JSON Blob that encodes the data you want to send\n - No required fields\n - This is DApp Specific\n - Be as explicit as possible when building out the message schema.\n */\n contents: \"Hello, Bob!\",\n attachedMoneyInEth: 4.2,\n from: {\n name: \"Cow\",\n wallets: [\n \"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\",\n \"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF\",\n ],\n },\n to: [\n {\n name: \"Bob\",\n wallets: [\n \"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\",\n \"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57\",\n \"0xB0B0b0b0b0b0B000000000000000000000000000\",\n ],\n },\n ],\n },\n // Refers to the keys of the *types* object below.\n primaryType: \"Mail\",\n types: {\n // TODO: Clarify if EIP712Domain refers to the domain the contract is hosted on\n EIP712Domain: [\n { name: \"name\", type: \"string\" },\n { name: \"version\", type: \"string\" },\n { name: \"chainId\", type: \"uint256\" },\n { name: \"verifyingContract\", type: \"address\" },\n ],\n // Not an EIP712Domain definition\n Group: [\n { name: \"name\", type: \"string\" },\n { name: \"members\", type: \"Person[]\" },\n ],\n // Refer to PrimaryType\n Mail: [\n { name: \"from\", type: \"Person\" },\n { name: \"to\", type: \"Person[]\" },\n { name: \"contents\", type: \"string\" },\n ],\n // Not an EIP712Domain definition\n Person: [\n { name: \"name\", type: \"string\" },\n { name: \"wallets\", type: \"address[]\" },\n ],\n },\n});\nconst from = \"\"; // signer address\nconst params = [from, msgParams];\nconst method = \"eth_signTypedData_v4\";\n// provider.request or\nwindow.cosmostation.ethereum.request({\n method,\n params,\n});"}},"/extension/integration/cosmos/wallet":{"title":"Wallet","data":{"":"The interface of each Cosmos wallet is different, and in order to solve the problem of having to manually attach each wallet to the Dapp, it was developed to automatically add the same interface and wallet.","installation#Installation":"npm install @cosmostation/wallets\nOr if you're using yarn:\nyarn add @cosmostation/wallets","add-wallet#Add Wallet":"To detect a wallet, it is ideal to inject it directly from the extension, but it is also possible to manually inject a wallet that has not been injected into a dapp.Example\nimport { registerCosmosWallet, CosmosRegisterWallet } from '@cosmostation/wallets';\n {\n const wallet: CosmosRegisterWallet = {\n // ...\n };\n registerCosmosWallet(wallet);\n }}\n>\n Register Wallet\n;\ngo to test","example#Example":"This is an example of adding keplr and leap wallet.","keplr#Keplr":"import { registerCosmosWallet, CosmosRegisterWallet } from '@cosmostation/wallets';\n {\n if (!window.keplr) {\n alert('Keplr extension is not installed');\n return;\n }\n const wallet: CosmosRegisterWallet = {\n name: 'Keplr',\n logo: 'https://wallet.keplr.app/keplr-brand-assets/keplr-logo.svg',\n events: {\n on(type, listener) {\n if (type === 'AccountChanged') {\n window.addEventListener('keplr_keystorechange', listener);\n }\n },\n off(type, listener) {\n if (type === 'AccountChanged') {\n window.removeEventListener('keplr_keystorechange', listener);\n }\n },\n },\n methods: {\n getSupportedChainIds: async () => {\n return ['cosmoshub-4'];\n },\n connect: async (chainIds) => {\n const cIds = typeof chainIds === 'string' ? [chainIds] : chainIds;\n const supportedChainIds = await wallet.methods.getSupportedChainIds();\n if (!cIds.every((cId) => supportedChainIds.includes(cId))) {\n throw new Error('Unsupported chainId is exist');\n }\n await window.keplr.enable(chainIds);\n },\n getAccount: async (chainId) => {\n const response = await window.keplr.getKey(chainId);\n return {\n address: response.bech32Address,\n name: response.name,\n public_key: {\n type: response.algo,\n value: Buffer.from(response.pubKey).toString('base64'),\n },\n is_ledger: response.isNanoLedger,\n };\n },\n signAmino: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.keplr.defaultOptions.sign.disableBalanceCheck = options.is_check_balance;\n }\n const signer = options?.signer || (await wallet.methods.getAccount(chainId)).address;\n const response = await window.keplr.signAmino(chainId, signer, document);\n return {\n signature: response.signature.signature,\n signed_doc: response.signed,\n };\n },\n signDirect: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.keplr.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.keplr.defaultOptions.sign.disableBalanceCheck = !options.is_check_balance;\n }\n const account = await wallet.methods.getAccount(chainId);\n if (account.is_ledger) {\n throw new Error('Ledger is not supported');\n }\n const signer = options?.signer || account.address;\n const signingDoc = {\n accountNumber: document.account_number,\n authInfoBytes: document.auth_info_bytes,\n chainId: document.chain_id,\n bodyBytes: document.body_bytes,\n };\n const response = await window.keplr.signDirect(chainId, signer, signingDoc);\n return {\n signature: response.signature.signature,\n signed_doc: {\n auth_info_bytes: response.signed.authInfoBytes,\n body_bytes: response.signed.bodyBytes,\n },\n };\n },\n sendTransaction: async (chainId, tx_bytes, mode) => {\n const broadcastMode =\n mode === 1 ? 'block' : mode === 2 ? 'sync' : mode === 3 ? 'async' : 'sync';\n const txBytes =\n typeof tx_bytes === 'string'\n ? new Uint8Array(Buffer.from(tx_bytes, 'base64'))\n : tx_bytes;\n const response = await window.keplr.sendTx(chainId, txBytes, broadcastMode);\n const txHash = Buffer.from(response).toString('hex').toUpperCase();\n return txHash;\n },\n addChain: async (chain) => {\n const coinType = chain.coin_type ? Number(chain.coin_type.replaceAll(\"'\", '')) : 118;\n await window.keplr.experimentalSuggestChain({\n chainId: chain.chain_id,\n chainName: chain.chain_name,\n rpc: chain.lcd_url,\n rest: chain.lcd_url,\n bip44: {\n coinType,\n },\n bech32Config: {\n bech32PrefixAccAddr: chain.address_prefix,\n bech32PrefixAccPub: chain.address_prefix + 'pub',\n bech32PrefixValAddr: chain.address_prefix + 'valoper',\n bech32PrefixValPub: chain.address_prefix + 'valoperpub',\n bech32PrefixConsAddr: chain.address_prefix + 'valcons',\n bech32PrefixConsPub: chain.address_prefix + 'valconspub',\n },\n currencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n ],\n feeCurrencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n gasPriceStep: {\n low: chain?.gas_rate?.tiny ? Number(chain?.gas_rate?.tiny) : 0.01,\n average: chain?.gas_rate?.low ? Number(chain?.gas_rate?.low) : 0.025,\n high: chain?.gas_rate?.average ? Number(chain?.gas_rate?.average) : 0.04,\n },\n },\n ],\n stakeCurrency: {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n });\n },\n },\n };\n registerCosmosWallet(wallet);\n }}\n>\n Register Keplr Wallet\n;","leap#Leap":"import { registerCosmosWallet, CosmosRegisterWallet } from '@cosmostation/wallets';\n {\n if (!window.leap) {\n alert('Leap extension is not installed');\n return;\n }\n const wallet: CosmosRegisterWallet = {\n name: 'Leap',\n logo: 'https://miro.medium.com/v2/resize:fill:176:176/1*2jNLyjIPuU8HBbayPapwcQ.png',\n events: {\n on(type, listener) {\n if (type === 'AccountChanged') {\n window.addEventListener('leap_keystorechange', listener);\n }\n },\n off(type, listener) {\n if (type === 'AccountChanged') {\n window.removeEventListener('leap_keystorechange', listener);\n }\n },\n },\n methods: {\n getSupportedChainIds: async () => {\n return ['cosmoshub-4'];\n },\n connect: async (chainIds) => {\n const cIds = typeof chainIds === 'string' ? [chainIds] : chainIds;\n const supportedChainIds = await wallet.methods.getSupportedChainIds();\n if (!cIds.every((cId) => supportedChainIds.includes(cId))) {\n throw new Error('Unsupported chainId is exist');\n }\n await window.leap.enable(chainIds);\n },\n getAccount: async (chainId) => {\n const response = await window.leap.getKey(chainId);\n return {\n address: response.bech32Address,\n name: response.name,\n public_key: {\n type: response.algo,\n value: Buffer.from(response.pubKey).toString('base64'),\n },\n is_ledger: response.isNanoLedger,\n };\n },\n signAmino: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.leap.defaultOptions.sign.disableBalanceCheck = options.is_check_balance;\n }\n const signer = options?.signer || (await wallet.methods.getAccount(chainId)).address;\n const response = await window.leap.signAmino(chainId, signer, document);\n return {\n signature: response.signature.signature,\n signed_doc: response.signed,\n };\n },\n signDirect: async (chainId, document, options) => {\n if (typeof options?.edit_mode?.fee === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetFee = options.edit_mode.fee;\n }\n if (typeof options?.edit_mode?.memo === 'boolean') {\n window.leap.defaultOptions.sign.preferNoSetMemo = options.edit_mode.memo;\n }\n if (typeof options?.is_check_balance === 'boolean') {\n window.leap.defaultOptions.sign.disableBalanceCheck = !options.is_check_balance;\n }\n const account = await wallet.methods.getAccount(chainId);\n if (account.is_ledger) {\n throw new Error('Ledger is not supported');\n }\n const signer = options?.signer || account.address;\n const signingDoc = {\n accountNumber: document.account_number,\n authInfoBytes: document.auth_info_bytes,\n chainId: document.chain_id,\n bodyBytes: document.body_bytes,\n };\n const response = await window.leap.signDirect(chainId, signer, signingDoc);\n return {\n signature: response.signature.signature,\n signed_doc: {\n auth_info_bytes: response.signed.authInfoBytes,\n body_bytes: response.signed.bodyBytes,\n },\n };\n },\n sendTransaction: async (chainId, tx_bytes, mode) => {\n const broadcastMode =\n mode === 1 ? 'block' : mode === 2 ? 'sync' : mode === 3 ? 'async' : 'sync';\n const txBytes =\n typeof tx_bytes === 'string'\n ? new Uint8Array(Buffer.from(tx_bytes, 'base64'))\n : tx_bytes;\n const response = await window.leap.sendTx(chainId, txBytes, broadcastMode);\n const txHash = Buffer.from(response).toString('hex').toUpperCase();\n return txHash;\n },\n addChain: async (chain) => {\n const coinType = chain.coin_type ? Number(chain.coin_type.replaceAll(\"'\", '')) : 118;\n await window.leap.experimentalSuggestChain({\n chainId: chain.chain_id,\n chainName: chain.chain_name,\n rpc: chain.lcd_url,\n rest: chain.lcd_url,\n bip44: {\n coinType,\n },\n bech32Config: {\n bech32PrefixAccAddr: chain.address_prefix,\n bech32PrefixAccPub: chain.address_prefix + 'pub',\n bech32PrefixValAddr: chain.address_prefix + 'valoper',\n bech32PrefixValPub: chain.address_prefix + 'valoperpub',\n bech32PrefixConsAddr: chain.address_prefix + 'valcons',\n bech32PrefixConsPub: chain.address_prefix + 'valconspub',\n },\n currencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n ],\n feeCurrencies: [\n {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n gasPriceStep: {\n low: chain?.gas_rate?.tiny ? Number(chain?.gas_rate?.tiny) : 0.01,\n average: chain?.gas_rate?.low ? Number(chain?.gas_rate?.low) : 0.025,\n high: chain?.gas_rate?.average ? Number(chain?.gas_rate?.average) : 0.04,\n },\n },\n ],\n stakeCurrency: {\n coinDenom: chain.display_denom,\n coinMinimalDenom: chain.base_denom,\n coinDecimals: chain.decimals || 6,\n coinGeckoId: chain.coingecko_id || 'unknown',\n },\n });\n },\n },\n };\n registerCosmosWallet(wallet);\n }}\n>\n Register Leap Wallet\n;"}},"/extension/integration/evm/use-web3-js":{"title":"Use web3.js","data":{"":"npmjs\ndocs\nimport Web3 from \"web3\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const web3 = new Web3(provider);\n // requestAccounts\n const accounts = web3.eth.requestAccounts();\n // If you want more info, please check out web3.js docs (https://web3js.readthedocs.io)\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}","signtypeddata#signTypedData":"const provider = await ethereum();\nconst web3 = new Web3(provider);\nconst msgParams = JSON.stringify({\n domain: {\n // Defining the chain aka Rinkeby testnet or Ethereum Main Net\n chainId: 1,\n // Give a user friendly name to the specific contract you are signing for.\n name: \"Ether Mail\",\n // If name isn't enough add verifying contract to make sure you are establishing contracts with the proper entity\n verifyingContract: \"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\",\n // Just let's you know the latest version. Definitely make sure the field name is correct.\n version: \"1\",\n },\n // Defining the message signing data content.\n message: {\n /*\n - Anything you want. Just a JSON Blob that encodes the data you want to send\n - No required fields\n - This is DApp Specific\n - Be as explicit as possible when building out the message schema.\n */\n contents: \"Hello, Bob!\",\n attachedMoneyInEth: 4.2,\n from: {\n name: \"Cow\",\n wallets: [\n \"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\",\n \"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF\",\n ],\n },\n to: [\n {\n name: \"Bob\",\n wallets: [\n \"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\",\n \"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57\",\n \"0xB0B0b0b0b0b0B000000000000000000000000000\",\n ],\n },\n ],\n },\n // Refers to the keys of the *types* object below.\n primaryType: \"Mail\",\n types: {\n // TODO: Clarify if EIP712Domain refers to the domain the contract is hosted on\n EIP712Domain: [\n { name: \"name\", type: \"string\" },\n { name: \"version\", type: \"string\" },\n { name: \"chainId\", type: \"uint256\" },\n { name: \"verifyingContract\", type: \"address\" },\n ],\n // Not an EIP712Domain definition\n Group: [\n { name: \"name\", type: \"string\" },\n { name: \"members\", type: \"Person[]\" },\n ],\n // Refer to PrimaryType\n Mail: [\n { name: \"from\", type: \"Person\" },\n { name: \"to\", type: \"Person[]\" },\n { name: \"contents\", type: \"string\" },\n ],\n // Not an EIP712Domain definition\n Person: [\n { name: \"name\", type: \"string\" },\n { name: \"wallets\", type: \"address[]\" },\n ],\n },\n});\nconst from = \"\"; // signer address\nconst params = [from, msgParams];\nconst method = \"eth_signTypedData_v4\";\nconst result = web3.currentProvider.request({\n method,\n params,\n});"}},"/extension/integration/evm/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n}","vanilla-code#Vanilla Code":"const ethereum = () => {\n if (\"cosmostation\" in window) {\n return window.cosmostation.ethereum;\n } else {\n window.open(\"https://cosmostation.io/wallet/#extension\");\n /**\n * or window.open(\"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf\");\n * */\n }\n};\nconst provider = ethereum();"}},"/extension/integration/evm/use-ethers":{"title":"Use ethers","data":{"":"npmjs\ndocs\nimport { ethers } from \"ethers\";\nimport { ethereum, InstallError } from \"@cosmostation/extension-client\";\ntry {\n const provider = await ethereum();\n const ethersProvider = new ethers.providers.Web3Provider(provider);\n // requestAccounts\n const accounts = ethersProvider.send(\"eth_requestAccounts\", []);\n // If you want more info, please check out ethers docs (https://docs.ethers.io)\n} catch (e) {\n if (e instanceof InstallError) {\n console.log(\"not installed\");\n }\n // exception\n}"}},"/extension/integration/sui/execute-move-call":{"title":"Execute Move Call","data":{"":"Execute Move Call via Cosmostation Extension\nconst payload = {\n packageObjectId: \"0x2\",\n module: \"devnet_nft\",\n function: \"mint\",\n typeArguments: [],\n arguments: [\n \"Cosmostation NFT\",\n \"An NFT created by Cosmostation Wallet\",\n \"https://avatars.githubusercontent.com/u/49175386?s=200&v=4\",\n ],\n gasBudget: 10000,\n};\nawait window.cosmostation.sui.connect();\nconst response = await window.cosmostation.sui.executeMoveCall(payload);","request#request":"MoveCallTransaction\nexport interface MoveCallTransaction {\n packageObjectId: ObjectId;\n module: string;\n function: string;\n typeArguments: string[] | TypeTag[];\n arguments: SuiJsonValue[];\n gasPayment?: ObjectId;\n gasBudget: number;\n}","response#Response":"CertifiedTransaction\nTransactionEffects\nexport type SuiTransactionResponse = {\n certificate: CertifiedTransaction;\n effects: TransactionEffects;\n};\n{\n \"certificate\": {\n \"transactionDigest\": \"QTWZUMmBzPReVUPjxPRPs271Zve7C4rtCRHm8Cisz4x\",\n \"data\": {\n \"transactions\": [\n {\n \"Call\": {\n \"package\": {\n \"objectId\": \"0x0000000000000000000000000000000000000002\",\n \"version\": 1,\n \"digest\": \"BN1R9u+4+jOoGiGagW50eT+EE+JxtYLaveBPxHhgsiE=\"\n },\n \"module\": \"devnet_nft\",\n \"function\": \"mint\",\n \"arguments\": [\n \"Cosmostation NFT\",\n \"An NFT created by Cosmostation Wallet\",\n \"https://avatars.githubusercontent.com/u/49175386?s=200&v=4\"\n ]\n }\n }\n ],\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"gasPayment\": {\n \"objectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 99,\n \"digest\": \"aw8yjNgqA/siJay1eJWv/axflLvGwSM+RbXOilKWAlo=\"\n },\n \"gasPrice\": 1,\n \"gasBudget\": 10000\n },\n \"txSignature\": \"ALSjaMJTiA34zu/d6nnfBH7SxjQvk988NYcNeW8cHJf0zLvriSbIf3/6q7FDtg/5jCNOBknZ38Hmgg0MAhRs7wdWEU2i63wnssWTOQJmMjz5Wq+PhqtBW+GrkSSWOnRKAA==\",\n \"authSignInfo\": {\n \"epoch\": 0,\n \"signature\": \"qhUPMYuuaMqemq+l5a/rDm7VlFmkzXvxtf1gNdwT1xTuNPGYRE0DYBJ+WNnB/D30\",\n \"signers_map\": [\n 58, 48, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 16, 0, 0, 0, 0, 0, 2, 0, 3, 0\n ]\n }\n },\n \"effects\": {\n \"status\": { \"status\": \"success\" },\n \"gasUsed\": {\n \"computationCost\": 464,\n \"storageCost\": 40,\n \"storageRebate\": 16\n },\n \"transactionDigest\": \"QTWZUMmBzPReVUPjxPRPs271Zve7C4rtCRHm8Cisz4x\",\n \"created\": [\n {\n \"owner\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"reference\": {\n \"objectId\": \"0x1eaadc7b76011f5657821a6aa92eae6098689c9a\",\n \"version\": 100,\n \"digest\": \"jJ99SfS/MZIqudWmXmdXU8GChiXFsej27kWDz6FCNeQ=\"\n }\n }\n ],\n \"mutated\": [\n {\n \"owner\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"reference\": {\n \"objectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 100,\n \"digest\": \"wgC6a5w4Xqg4D81bOvBiRjkh0m91srqzZP0kLTkCU6Y=\"\n }\n }\n ],\n \"gasObject\": {\n \"owner\": { \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\" },\n \"reference\": {\n \"objectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 100,\n \"digest\": \"wgC6a5w4Xqg4D81bOvBiRjkh0m91srqzZP0kLTkCU6Y=\"\n }\n },\n \"events\": [\n {\n \"coinBalanceChange\": {\n \"packageId\": \"0x0000000000000000000000000000000000000002\",\n \"transactionModule\": \"gas\",\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"changeType\": \"Gas\",\n \"owner\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"coinType\": \"0x2::sui::SUI\",\n \"coinObjectId\": \"0x3be2f11263e4c6d77356ba04f053f38ae917bd23\",\n \"version\": 99,\n \"amount\": -488\n }\n },\n {\n \"newObject\": {\n \"packageId\": \"0x0000000000000000000000000000000000000002\",\n \"transactionModule\": \"devnet_nft\",\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"recipient\": {\n \"AddressOwner\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\"\n },\n \"objectType\": \"0x2::devnet_nft::DevNetNFT\",\n \"objectId\": \"0x1eaadc7b76011f5657821a6aa92eae6098689c9a\",\n \"version\": 100\n }\n },\n {\n \"moveEvent\": {\n \"packageId\": \"0x0000000000000000000000000000000000000002\",\n \"transactionModule\": \"devnet_nft\",\n \"sender\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"type\": \"0x2::devnet_nft::MintNFTEvent\",\n \"fields\": {\n \"creator\": \"0xddee25bee35fa634a1d486d16281f333370ef3f2\",\n \"name\": \"Cosmostation NFT\",\n \"object_id\": \"0x1eaadc7b76011f5657821a6aa92eae6098689c9a\"\n },\n \"bcs\": \"Hqrce3YBH1ZXghpqqS6uYJhonJrd7iW+41+mNKHUhtFigfMzNw7z8hBDb3Ntb3N0YXRpb24gTkZU\"\n }\n }\n ],\n \"dependencies\": [\"CxQQcJfAyDkhxiLiXxrAkFREikMNnngwoGW7kVouMY7w\"]\n }\n}"}},"/extension/integration/sui/connect-and-get-accounts":{"title":"Connect And Get Accounts","data":{"":"connect and get Account via Cosmostation Extension\nconst response = await window.cosmostation.sui.connect();\n// or\nconst response = await window.cosmostation.sui.connect([\n \"viewAccount\",\n \"suggestTransactions\",\n]);","response#Response":"export type SuiConnectResponse = boolean;\ntrue","get-accounts#Get Accounts":"","vanilla-code#Vanilla Code":"const response = await window.cosmostation.sui.connect();\nconst accounts = await window.cosmostation.sui.getAccounts();\nconst publicKey = await window.cosmostation.sui.getPublicKey();","response-1#Response":"export type SuiAccountResponse = string[];\n[\"0xd2d030d4339531d9cb442caf4be7bb954fddedb4\"]"}},"/extension/integration/sui/provider":{"title":"Provider","data":{"":"Cosmostation extension support various chains.\nconst sui = () => {\n if (\"cosmostation\" in window) {\n return window.cosmostation.sui;\n } else {\n window.open(\"https://cosmostation.io/wallet/#extension\");\n /**\n * or window.open(\"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf\");\n * */\n }\n};\nconst provider = sui();"}},"/extension/integration/sui/sign-and-execute-transaction":{"title":"Sign And Execute Transaction","data":{"":"import { TransactionBlock } from \"@mysten/sui.js\";\n// Send Sui coin\nconst tx = new TransactionBlock();\nconst sampleSendCoinAmount = \"100000\";\nconst sampleReceiverAddress = \"0x...\";\nconst [coin] = tx.splitCoins(tx.gas, [tx.pure(sampleSendCoinAmount)]);\ntx.transferObjects([coin], tx.pure(sampleReceiverAddress));\n// SuiSignAndExecuteTransactionBlockInput\nconst payload = {\n transactionBlock: tx,\n options: {\n showInput: true,\n showEffects: true,\n showEvents: true,\n },\n};\nawait window.cosmostation.sui.connect();\nconst response = await window.cosmostation.sui.signAndExecuteTransaction(\n payload\n);","request#request":"SuiSignAndExecuteTransactionBlockInput\nexport interface SuiSignTransactionBlockInput {\n transactionBlock: TransactionBlock;\n account: WalletAccount;\n chain: IdentifierString;\n}\nexport interface SuiSignAndExecuteTransactionBlockInput\n extends SuiSignTransactionBlockInput {\n requestType?: ExecuteTransactionRequestType;\n options?: SuiTransactionBlockResponseOptions;\n}\nexport type SuiTransactionBlockResponseOptions = {\n showInput?: boolean | undefined;\n showEffects?: boolean | undefined;\n showEvents?: boolean | undefined;\n showObjectChanges?: boolean | undefined;\n showBalanceChanges?: boolean | undefined;\n};","response#Response":"SuiTrasactionResponse\nSuiTransactionBlock\nTransactionEffects\nTransactionEvents\nSuiObjectChange\nBalanceChange\nexport type SuiTransactionResponse = {\n digest: TransactionDigest,\n transaction: optional(SuiTransactionBlock),\n effects: optional(TransactionEffects),\n events: optional(TransactionEvents),\n timestampMs: optional(string()),\n checkpoint: optional(string()),\n confirmedLocalExecution: optional(boolean()),\n objectChanges: optional(array(SuiObjectChange)),\n balanceChanges: optional(array(BalanceChange)),\n /* Errors that occurred in fetching/serializing the transaction. */\n errors: optional(array(string())),\n};\n{\n \"digest\": \"ADxukibq4o4QqiMgr6QqtXnXczh5MGCQqMkgCKUW5NXT\",\n \"transaction\": {\n \"data\": {\n \"messageVersion\": \"v1\",\n \"transaction\": {\n \"kind\": \"ProgrammableTransaction\",\n \"inputs\": [\n {\n \"type\": \"pure\",\n \"valueType\": \"u64\",\n \"value\": \"1000000000\"\n },\n {\n \"type\": \"object\",\n \"objectType\": \"sharedObject\",\n \"objectId\": \"\",\n \"initialSharedVersion\": \"1\",\n \"mutable\": true\n },\n {\n \"type\": \"pure\",\n \"valueType\": \"address\",\n \"value\": \"\"\n }\n ],\n \"transactions\": [\n {\n \"SplitCoins\": [\n \"GasCoin\",\n [\n {\n \"Input\": 0\n }\n ]\n ]\n },\n {\n \"MoveCall\": {\n \"package\": \"\",\n \"module\": \"sui_system\",\n \"function\": \"request_add_stake\",\n \"arguments\": [\n {\n \"Input\": 1\n },\n {\n \"Result\": 0\n },\n {\n \"Input\": 2\n }\n ]\n }\n }\n ]\n },\n \"sender\": \"\",\n \"gasData\": {\n \"payment\": [\n {\n \"objectId\": \"\",\n \"version\": 120,\n \"digest\": \"4eWN3j13gkCgmpF3ino3PyBnBGcr8TM9g7oXyLVcFvDf\"\n }\n ],\n \"owner\": \"\",\n \"price\": \"990\",\n \"budget\": \"10269000\"\n }\n },\n \"txSignatures\": [\n \"AOM7i8tZRt314VYWxtBr5DAUukOZJsRcX6YUZjKVzB/j0gyYqCMZ1mIVPFdM79VNXzEpS2Te8Ez7g878a13Ybwz6TRHL+z8z7uHmh38YqSzeZTJS1AuOfKSpuon1IV17MQ==\"\n ]\n },\n \"effects\": {\n \"messageVersion\": \"v1\",\n \"status\": {\n \"status\": \"success\"\n },\n \"executedEpoch\": \"25\",\n \"gasUsed\": {\n \"computationCost\": \"990000\",\n \"storageCost\": \"721559200\",\n \"storageRebate\": \"713064528\",\n \"nonRefundableStorageFee\": \"7202672\"\n },\n \"modifiedAtVersions\": [\n {\n \"objectId\": \"\",\n \"sequenceNumber\": \"1999135\"\n },\n {\n \"objectId\": \"\",\n \"sequenceNumber\": \"1999135\"\n },\n {\n \"objectId\": \"\",\n \"sequenceNumber\": \"120\"\n }\n ],\n \"sharedObjects\": [\n {\n \"objectId\": \"\",\n \"version\": 1999135,\n \"digest\": \"DwbUaKPdp58kXHhh3WGzSnxv1uuzoEP55mmvrZyRqx8Q\"\n }\n ],\n \"transactionDigest\": \"ADxukibq4o4QqiMgr6QqtXnXczh5MGCQqMkgCKUW5NXT\",\n \"created\": [\n {\n \"owner\": {\n \"AddressOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"BEEN82jwzg2gku5meXogNQLz1zSnbv9rEFRVu7RhekPd\"\n }\n }\n ],\n \"mutated\": [\n {\n \"owner\": {\n \"Shared\": {\n \"initial_shared_version\": 1\n }\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"CgnEEDYNDnAyFb6GzXwvCTC5X1RqAUEGkLQN59dn86Fn\"\n }\n },\n {\n \"owner\": {\n \"ObjectOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"7zdHAR9jtbEuaNroxVUUXGgMBJCVF9RRfQ1ACy4sGr8d\"\n }\n },\n {\n \"owner\": {\n \"AddressOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"4uYp4yEhf4kcKmdUSZmxao5nGo38mydK93w9Vj6GdmJy\"\n }\n }\n ],\n \"gasObject\": {\n \"owner\": {\n \"AddressOwner\": \"\"\n },\n \"reference\": {\n \"objectId\": \"\",\n \"version\": 1999136,\n \"digest\": \"4uYp4yEhf4kcKmdUSZmxao5nGo38mydK93w9Vj6GdmJy\"\n }\n },\n \"eventsDigest\": \"5MMMagM2CoBtWGL7x39i2H8FeF75LWfFzgZDpzc5YC1H\",\n \"dependencies\": [\n \"Ui22Hhc6NyVEnAhRWCWVT333JvvBWG75qJx9qBg9VE1\",\n \"53k4PWPByFxMLEYu53coAPiFCoxoz1mkUnv2Nr73UFw1\",\n \"6oLy1FVtkMhuknWGsz7cvyYhn5CZFGPnyLhXZYuBd8kh\"\n ]\n },\n \"events\": [\n {\n \"id\": {\n \"txDigest\": \"ADxukibq4o4QqiMgr6QqtXnXczh5MGCQqMkgCKUW5NXT\",\n \"eventSeq\": \"0\"\n },\n \"packageId\": \"\",\n \"transactionModule\": \"sui_system\",\n \"sender\": \"\",\n \"type\": \"0x3::validator::StakingRequestEvent\",\n \"parsedJson\": {\n \"amount\": \"1000000000\",\n \"epoch\": \"25\",\n \"pool_id\": \"\",\n \"staker_address\": \"\",\n \"validator_address\": \"\"\n },\n \"bcs\": \"\"\n }\n ],\n \"confirmedLocalExecution\": true\n}"}},"/mintscan":{"title":"Introduction","data":{"":"Mintscan can easily provide information such as validators and assets publicly through Github","to-provide-information#To provide information":"Folk chainlist repository\nAdd the data\nCreate a pull request\nReview and Merge","registry#Registry":"Validator > Moniker\nAssets > Native\nAssets > CW20\nAssets > ERC20\nEcosystem"}},"/mintscan/registry/assets":{"title":"How to add your token info","data":{"":"To add asset metadata on mintscan.\n‼️ Please note that tokens of Testnets and unverified networks may not be merged to master.\nFork this repo to your own github account\nClone fork and create new branch\ngit clone git@github.com:YOUR_ACCOUNT/chainlist.git\ncd chainlist\ngit branch \ngit checkout \nAdd the info of your token in the chain that your token needs to be displayed\nCommon info to fill\nField\tDescription\tdenom\tToken's denom.\ttype\tType of the token:\t\t- staking: Native staking token of a chain.\t\t- native: Native token issued on a chain, not the staking token.\t\t- ibc: Token transferred via IBC.\t\t- pool: Token representing a liquidity pool.\t\t- bridge: Token bridged from another network.\t\t- cw20: CW20 token type.\t\t- erc20: ERC20 token type.\torigin_chain\tThe origin chain where this token was issued.\torigin_denom\tOriginal denom of the token.\torigin_type\tOriginal type of the token (staking, native, pool, ibc, bridge, cw20, erc20).\tsymbol\tDisplayed name of the token in the list.\tdecimals\tToken's decimals.\timage\tImage route of the token (optional).\t\tPlace image in ${targetchain}/asset folder. Ensure it's a png file.\tcoinGeckoId\tCoinGecko site's API ID. Leave empty if none.\t\nIf the type is staking, provide the info below\nField\tDescription\tdescription\tA brief summary of the token\t\nIf the type is ibc, provide the info below:\nField\tDescription\tenable\ttrue if IBC transmission is possible (optional).\tchannel\tToken's IBC channel (optional).\tport\tToken's IBC port (optional).\t\tAdd the token's channel and port.\tcounter_party\tCounter party's IBC channel and port (optional).\t\t- channel.\t\t- port.\t\t- denom: Token's denom before IBC transfer.\tpath\tPath of token transfer (optional).\t\tProvide full details if transferred via IBC, bridge, or other path.\tpath\tPath details for bridge tokens (optional).\t\tProvide details if transferred via IBC, bridge, or other path.\tcontract\tContract address for token transfer via contract (optional).\t\nNative Token\n/assets/v2/${chain}/assets.json\n// example OSMOSIS\n[\n {\n \"denom\": \"uosmo\",\n \"type\": \"staking\",\n \"origin_chain\": \"osmosis\",\n \"origin_denom\": \"uosmo\",\n \"origin_type\": \"staking\",\n \"symbol\": \"OSMO\",\n \"decimals\": 6,\n \"description\": \"Osmosis Staking Coin\",\n \"image\": \"osmosis/asset/osmo.png\",\n \"coinGeckoId\": \"osmosis\"\n },\n {\n \"denom\": \"uion\",\n \"type\": \"native\",\n \"origin_chain\": \"osmosis\",\n \"origin_denom\": \"uion\",\n \"origin_type\": \"native\",\n \"symbol\": \"ION\",\n \"decimals\": 6,\n \"description\": \"Native Coin\",\n \"image\": \"osmosis/asset/ion.png\",\n \"coinGeckoId\": \"ion\"\n },\n // example KUJIRA\n {\n \"denom\": \"factory//uusk\",\n \"type\": \"native\",\n \"origin_chain\": \"kujira\",\n \"origin_denom\": \"factory//uusk\",\n \"origin_type\": \"native\",\n \"symbol\": \"USK\",\n \"decimals\": 6,\n \"description\": \"USK Stable Asset\",\n \"image\": \"kujira/asset/usk.png\",\n \"coinGeckoId\": \"usk\"\n }\n]\nIBC Token\n[\n // example COSMOS\n {\n \"denom\": \"ibc/\",\n \"type\": \"ibc\",\n \"origin_chain\": \"osmosis\",\n \"origin_denom\": \"uosmo\",\n \"origin_type\": \"staking\",\n \"symbol\": \"OSMO\",\n \"decimals\": 6,\n \"enable\": true,\n \"path\": \"osmosis>cosmos\",\n \"channel\": \"channel-141\",\n \"port\": \"transfer\",\n \"counter_party\": {\n \"channel\": \"channel-0\",\n \"port\": \"transfer\",\n \"denom\": \"uosmo\"\n },\n \"image\": \"osmosis/asset/osmo.png\", // Set image route for base_denom\n \"coinGeckoId\": \"osmosis\"\n },\n // example IRIS\n {\n \"denom\": \"ibc/\",\n \"type\": \"ibc\",\n \"origin_denom\": \"weth\",\n \"origin_type\": \"erc20\",\n \"symbol\": \"WETH\",\n \"origin_chain\": \"ethereum\",\n \"decimals\": 18,\n \"enable\": true,\n \"path\": \"ethereum>gravity-bridge>iris\",\n \"channel\": \"channel-29\",\n \"port\": \"transfer\",\n \"counter_party\": {\n \"channel\": \"channel-47\",\n \"port\": \"transfer\",\n \"denom\": \"gravity0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\"\n },\n \"image\": \"ethereum/asset/weth.png\", // Set image route for base_denom\n \"coinGeckoId\": \"weth\",\n \"contract\": \"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\"\n }\n]\nBridge Token\n[\n // example GRAVITY-BRIDGE\n {\n \"denom\": \"gravity0x2260fac5e5542a773aa44fbcfedf7c193bc2c599\",\n \"type\": \"bridge\",\n \"origin_chain\": \"ethereum\",\n \"origin_denom\": \"wbtc\",\n \"origin_type\": \"erc20\",\n \"symbol\": \"WBTC\",\n \"decimals\": 8,\n \"path\": \"ethereum>gravity-bridge\",\n \"image\": \"ethereum/asset/wbtc.png\",\n \"coinGeckoId\": \"wrapped-bitcoin\",\n \"contract\": \"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599\"\n },\n // example IRIS\n {\n \"denom\": \"htltbcbusd\",\n \"type\": \"bridge\",\n \"origin_chain\": \"bnb-beacon-chain\",\n \"origin_denom\": \"busd\",\n \"origin_type\": \"bep2\",\n \"symbol\": \"BUSD\",\n \"decimals\": 8,\n \"path\": \"bnb-beacon-chain>iris\",\n \"image\": \"bnb-beacon-chain/asset/busd.png\",\n \"coinGeckoId\": \"binance-usd\"\n }\n]\nPool Token\n// example COSMOS\n[\n {\n \"denom\": \"\",\n \"type\": \"pool\",\n \"origin_chain\": \"cosmos\",\n \"origin_denom\": \"\",\n \"origin_type\": \"pool\",\n \"symbol\": \"GDEX-1\",\n \"decimals\": 6,\n \"description\": \"pool/1\",\n \"image\": \"cosmos/asset/pool.png\", // Add pool image in the target chain’s folder\n \"coinGeckoId\": \"\"\n }\n]\nCommit and push to your fork\ngit add -A\ngit commit -m “Add ”\ngit push origin \nFrom your repository, make pull request (PR)"}},"/mintscan/registry/cw20":{"title":"How to add your CW20 token info","data":{"":"To add CW20 asset metadata on mintscan assets.\nJuno Cw20 list supporting\nFork this repo to your own github account\\\nClone fork and create new branch\ngit clone git@github.com:YOUR_ACCOUNT/chainlist.git\ncd chainlist\ngit branch \ngit checkout \nAdd the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master\nkey\tvalue\tchainId\t-1\tchainName\tChain with the token\taddress\tToken's contract_address\tsymbol\tName of token's symbol\tdescription\tA brief summary of the token\tdecimals\tDecimal of the token\timage\tImage route of the token /${targetChain}/asset add image in the folder Make sure to upload a png file\tdefault\tdefault value is false\tcoinGeckoId\tCoin gecko site's API ID Empty string if none\t\nCw20 Token\n/${targetChain}/contract.json\n// example JUNO\n[\n {\n \"chainId\": -1,\n \"chainName\": \"juno\",\n \"address\": \"\",\n \"symbol\": \"DAO\",\n \"description\": \"DAO DAO\",\n \"decimals\": 6,\n \"image\": \"juno/asset/dao.png\",\n \"default\": false,\n \"coinGeckoId\": \"\"\n },\n {\n \"chainId\": -1,\n \"chainName\": \"juno\",\n \"address\": \"\",\n \"symbol\": \"NETA\",\n \"description\": \"NETA\",\n \"decimals\": 6,\n \"image\": \"juno/asset/neta.png\",\n \"default\": true,\n \"coinGeckoId\": \"neta\"\n }\n]\nCommit and push to your fork\n git add -A\n git commit -m “Add ”\n git push origin \nFrom your repository, make pull request (PR)"}},"/mintscan/registry/ecosystem":{"title":"How to add your project on Ecosystem","data":{"":"To add ecosystem on mintscan.\nPlease contact us and provide us with the information below.\nChain\nProject name\nDescription\nUrl\nToken(Optional)\nContact(Optional) : twitter, telegram, discord\nReference(Optional) : Docs, Github, Blog, Reddit\nType : Cosmwasm, EVM, Module\nBanner : 1125 x 600 px"}},"/":{"title":"Cosmostation","data":{"":"Cosmostation is a committed interchain service provider in the Cosmos ecosystem, established since its genesis in 2019.\nOur array of tools, including Mintscan, Mintscan API, and Cosmostation wallets showcases our dedication to the community. This developer documentation is your guide to understanding and utilizing our offerings for enhanced protocol development.","mintscan#Mintscan":"Mintscan is the second generation blockchain analytics platform specialized in on-chain data visualization.\nExplorer\nData analyzer\nInterchain Hub","api#API":"First Class Access to Indexed Interchain Data. Streamline your connection to Interchain with Mintscan API.\nRPC Endpoint\nHistorical API\nBuilder API\nStatistics API\nCustom API","extension-wallet#Extension Wallet":"Cosmostation is a non-custodial multi-chain cryptocurrency browser extension wallet that supports 50+ chains including Ethereum, Cosmos, Sui, and more.","mobile-wallet#Mobile Wallet":"Industry leading non-custodial mobile wallet supporting 50+ interchain networks. Enjoy native staking, IBC send, voting, and token swap on mobile."}},"/mintscan/registry/erc20":{"title":"How to add your ERC20 token info","data":{"":"To add erc20 asset metadata on mintscan assets.\nEvmos Erc20 list supporting\nFork this repo to your own github account\nClone fork and create new branch\ngit clone git@github.com:YOUR_ACCOUNT/chainlist.git\ncd chainlist\ngit branch \ngit checkout \nAdd the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master\nkey\tvalue\tchainId\tChainId of the chain\taddress\tToken's contract_address\tchainName\tName of the displayed token\tsymbol\tName of token's symbol\tdecimals\tDecimal of the token\timage\tImage route of the token/${targetChain}/asset add image in the folder Make sure to upload a pngfile\tdefault\tdefault value is false\tcoinGeckoId (optional)\tCoin gecko site's API ID Empty string if none\t\nERC20 Token\n/${targetChain}/contract.json\n[\n {\n \"chainId\": 9001,\n \"chainName\": \"evmos\",\n \"address\": \"0xD4949664cD82660AaE99bEdc034a0deA8A0bd517\",\n \"symbol\": \"WEVMOS\",\n \"description\": \"Wrapped Evmos\",\n \"decimals\": 18,\n \"image\": \"evmos/asset/wevmos.png\",\n \"default\": true,\n \"coinGeckoId\": \"evmos\"\n },\n {\n \"chainId\": 9001,\n \"chainName\": \"evmos\",\n \"address\": \"0xb72A7567847abA28A2819B855D7fE679D4f59846\",\n \"symbol\": \"ceUSDT\",\n \"description\": \"Tether USD (Celer)\",\n \"decimals\": 6,\n \"image\": \"ethereum/asset/usdt.png\",\n \"default\": false,\n \"coinGeckoId\": \"tether\"\n }\n]\nCommit and push to your fork\ngit add -A\ngit commit -m “Add ”\ngit push origin \nFrom your repository, make pull request (PR)"}},"/mintscan/registry/moniker":{"title":"How to add your validator moniker image","data":{"":"To add moniker image on mintscan validator tab.\nAdd your image to ${targetchain}/moniker folder\nImage with png format and validator address name\nExample will display cosmostation validator moniker logo for cosmos"}},"/mintstation/cli/command":{"title":"Useful CLI Commands","data":{"":"Get standard debug info from the mint daemon:\nmintstationd status\nCheck if your node is catching up:\n# Query via the RPC (default port: 26657)\ncurl http://localhost:26657/status | jq .result.sync_info.catching_up\nGet your node ID:\nmintstationd tendermint show-node-id\nCheck if you are jailed or tombstoned:\nmintstationd query slashing signing-info $(mintstationd tendermint show-validator)\nSet the default chain for commands to use:\nmintstationd config chain-id mintstation-1\nGet your valoper address:\nmintstationd keys show -a --bech val\nSee keys on the current box:\nmintstationd keys list\nImport a key from a mnemonic:\nmintstationd keys add --recover\nExport a private key (warning: don't do this unless you know what you're doing!)\nmintstationd keys export --unsafe --unarmored-hex\nWithdraw rewards (including validator commission), where mintvaloper1... is the validator address:\nmintstationd tx distribution withdraw-rewards --from --commission\nStake:\nmintstationd tx staking delegate umint --from \nFind out what the JSON for a command would be using --generate-only:\nmintstationd tx bank send $(mintstationd keys show -a) umint --generate-only\nQuery the results of a gov vote that has ended, from a remote RPC (NB - you have to specify a height before the vote ended):\n mintstationd q gov votes 1 --height --node https://rpc-archive.mintnetwork.io:443\nTransfer mint to another chain (osmosis) with IBC\nmintstationd tx ibc-transfer transfer transfer channel-0 1000000umint --from --node https://rpc-archive.mintnetwork.io:443 --packet-timeout-height 0-0\nQuery the validator set (and jailed status) via CLI:\nmintstationd query staking validators --limit 1000 -o json | jq -r '.validators[] | [.operator_address, (.tokens|tonumber / pow(10; 6)), .description.moniker, .jail, .status] | @csv' | column -t -s\",\" | sort -k2 -n -r | nl\nGet contract state:\nmintstationd q wasm contract-state all "}},"/mintstation/cli":{"title":"CLI Introduction","data":{"introduction#Introduction":"mintstaiond is a command line client for the Mintstation. Mintstation users can use mintstationd to send transactions to the Mintstation network and query the blockchain data.See here for instructions on installing mintstationd.","working-directory-a-hrefworking-directory-idworking-directorya#Working Directory ":"The default working directory for the mintstationd is $HOME/.mintstation, which is mainly used to store configuration files and blockchain data. The Mintstation key data is saved in the working directory of mintstationd. You can also specify the mintstationd working directory by using the --home flag when executing mintstationd.","connecting-to-a-full-node#Connecting to a Full-Node":"By default, mintstationd uses tcp://localhost:26657 as the RPC address to connect to the Mintstation network. This default configuration assumes that the machine executing mintstationd is running as a full-node.The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the --node flag when executing mintstationd"}},"/mintstation/cli/setup":{"title":"Setup CLI","data":{"build#Build":"Build Requirements\nGo 1.20.+\nClone source from repository:\ngit clone https://github.com/cosmostation/mintstation\ncd mintstation\ngit checkout {SET_CURRENT_VERSION}\nOnce you're on the correct tag, you can build:\n# from mintstation dir\nmake install\nTo confirm that the installation has succeeded, you can run:\nmintstationd version\n#v0.0.1","configure#Configure":"Set the chain-id & node,\n#Update config.toml\nmintstationd config chain-id mintstation-1\nmintstationd config node {NODE_RPC_ENDPOINT:PORT}"}},"/mintstation/contracts/compile":{"title":"Compile Contracts","data":{"":"This guide is from the official CosmWasm/rust-optimizer repository. This method of compiling the contract will optimize the final build so that it reduces gas consumption.Example contracts for this can be found at https://github.com/CosmWasm/cw-examples. This repository requires this section to compile since multiple contracts are involved in a single repository.","single-contract-repository#Single Contract Repository":"The easiest way is to simply use the published docker image. You must run this in the root of the smart contract repository you wish to compile. It will produce an artifacts directory with .wasm and contracts.txt containing the hashes. This is just one file.\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/rust-optimizer:0.12.11\n# If you you use an ARM machine (Ex: Mac M1), you need to use the following\n# This is experimental and should not be used for production use\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/rust-optimizer-arm64:0.12.11\nBy running this in the root of your project, it will compile your contract into an artifacts/ folder. From here you can upload it to chain, collect the store code, and interact with it as you design","multiple-contract-repository-mono-repo#Multiple Contract Repository (Mono Repo)":"Sometime you want many contracts to be related and import common functionality. This is exactly the case of cosmwasm-plus. In such a case, we can often not just compile from root, as the compile order is not deterministic and there are feature flags shared among the repos. This has lead to issues in the past.For this use-case there is second docker image, which will compile all the contracts/* folders inside the workspace and do so one-by-one in alphabetical order. It will then add all the generated wasm files to an artifacts directory with a checksum, just like the basic docker image (same output format).To compile all contracts in the workspace deterministically, you can run:\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/workspace-optimizer:0.12.11\n# If you you use an ARM machine (Ex: Mac M1), you need to use the following\n# This is experimental and should not be used for production use\ndocker run --rm -v \"$(pwd)\":/code \\\n --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n cosmwasm/workspace-optimizer-arm64:0.12.11\nNOTE: See the difference with workspace-optimizer vs rust-optimizer in the previous single contract example.\\"}},"/mintstation/contracts/create":{"title":"Create Contracts","data":{"":"To implement a wasm smart contract, it is highly recommended to learn Rust first. Rust is the language commonly used for wasm development and is well-regarded for its stability and performance. You can begin your Rust learning journey by referring to the following link:Rust Language Learning GuideFor smart contract development, you can follow the structure provided by CosmWasm's template. This template will help you understand the project's architecture and enable you to develop your contract more systematically. You can find the template at the following link:CosmWasm Template, book.cosmwasm.comAmong the popular smart contract samples, there are cw20 and cw721 implementations. cw20 represents a widely-used token contract, while cw721 implements a Non-Fungible Token (NFT) contract. These samples can be valuable references during your development process. You can explore the code for each sample through the links below:cw20, cw721For all great CosmWasm tools, https://github.com/CosmWasm/awesome-cosmwasmAlthough smart contract development can be complex, leveraging the provided resources will increase your chances of successfully completing your project. Additionally, make sure to actively engage with the community and online resources to continue your learning journey and receive ongoing support. Best of luck!"}},"/mintstation/contracts/execute":{"title":"Execute Contracts","data":{"command-line-interface#Command Line Interface":"When you execute a message, a user can also pass through a flag which sends funds from their account to the contract to do logic. You can check if a user sends any funds in your contract's execute endpoint with the info.funds array of Coins sent by the user. These funds then get added to the contracts balance just like any other account. So it is up to you as the developer to ensure to save how many funds each user has sent via a BTreeMap or other object storage in state (if they can redeem funds back at a later time).To send funds to a contract with some arbitrary endpoint, you use the --amount flag.\nmintstationd tx wasm execute CONTRACT '{\"some_endpoint\":{}}' --amount 1000000umint\nIf the \"some_endpoint\" execute errors on the contract, the funds will remain in the users account.","typescript#Typescript":"import type { Coin } from '@cosmjs/stargate';\nimport { SigningStargateClient, StargateClient, type StdFee } from '@cosmjs/stargate';\nimport type { OfflineAminoSigner } from '@cosmjs/amino';\nimport type { OfflineDirectSigner } from '@cosmjs/proto-signing';\nimport { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';\nlet RPC = '';\nconst get_wallet_for_chain = async (\n chain_id: string,\n): Promise => {\n // open keplr\n const cosmostation = window as CosmostationWindow;\n if (keplr === undefined) {\n throw new Error('Cosmostation not found');\n }\n let signer = cosmostation.getOfflineSignerAuto;\n if (signer === undefined) {\n throw new Error('Cosmostation not found');\n }\n return signer(chain_id);\n};\nlet wallet = await get_wallet_for_chain('mintstation-1');\nlet address = (await wallet.getAccounts())[0].address;\nlet from_client = await SigningCosmWasmClient.connectWithSigner(RPC, wallet, {\n prefix: 'mint',\n});\nconst msg = { some_endpoint: {} };\nlet fee: StdFee = {\n amount: [{ amount: '5000', denom: 'umint' }],\n gas: '500000',\n};\nlet send_amount: Coin = {\n amount: '100000',\n denom: 'umint',\n};\nawait from_client\n .execute(address, REVIEWS_CONTRACT_ADDRESS, msg, fee, 'memo', send_amount)\n .then((res) => {\n console.log(`Success @ height ${res.height}\\n\\nTxHash: ${res.transactionHash}`);\n });"}},"/mintstation/contracts/deploy":{"title":"Deploy Contracts","data":{"prerequisite#PreRequisite":"Make sure you follow the create a contract guide first for your project. Once you have a contract compiled in the artifacts/*.wasm directory, you are ready for this guide.","upload#Upload":"You need to upload the contract via the CLI to chain. To do this, perform the following\nTXFLAGS=\"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3\"\nmintstationd tx wasm store artifacts/CONRTACT_NAME.wasm \\\n --from $TXFLAGS -y --broadcast-mode=block\nThis will then return a transaction hash. With this data, you need to query it to get the code id of the contract on chain\nmintstationd q tx --output=json\nThis will return the data about the transaction, and give us the code id of our contract\n{\n \"height\": \"294601\",\n \"txhash\": \"\",\n \"codespace\": \"\",\n \"code\": 0,\n \"data\": \"\",\n \"raw_log\": \"[{\\\"events\\\":[{\\\"type\\\":\\\"message\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"action\\\",\\\"value\\\":\\\"/cosmwasm.wasm.v1.MsgStoreCode\\\"},{\\\"key\\\":\\\"module\\\",\\\"value\\\":\\\"wasm\\\"},{\\\"key\\\":\\\"sender\\\",\\\"value\\\":\\\"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl\\\"}]},{\\\"type\\\":\\\"store_code\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"code_checksum\\\",\\\"value\\\":\\\"\\\"},{\\\"key\\\":\\\"code_id\\\",\\\"value\\\":\\\"13\\\"}]}]}]\",\n \"logs\": [\n {\n \"msg_index\": 0,\n \"log\": \"\",\n \"events\": [\n {\n \"type\": \"message\",\n \"attributes\": [\n {\n \"key\": \"action\",\n \"value\": \"/cosmwasm.wasm.v1.MsgStoreCode\"\n },\n {\n \"key\": \"module\",\n \"value\": \"wasm\"\n },\n {\n \"key\": \"sender\",\n \"value\": \"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl\"\n }\n ]\n },\n {\n \"type\": \"store_code\",\n \"attributes\": [\n {\n \"key\": \"code_checksum\",\n \"value\": \"\"\n },\n {\n \"key\": \"code_id\",\n \"value\": \"13\"\n }\n ]\n }\n ]\n }\n }]\n}\nWe can see both raw_log and also logs[0].events[1].store_code shows the code_id being 13. If you wish the automate this return code in bash to a variable, you can \n# ensure jq is installed\nUPLOAD_TX_HASH=\nCODE_ID=$(mintstationd q tx $UPLOAD_TX_HASH --output json | jq -r '.logs[0].events[] | select(.type == \"store_code\").attributes[] | select(.key == \"code_id\").value') && echo \"Code Id: $CODE_ID\"","instantiate#Instantiate":"With the code now being up on chain, we can now run logic to setup our own copy of the contract which we control. This will then give us a unique contract address for others to interact with in accordance with the contract logic. This example is from the cosmwasm/cw-template.Ensure you change CODE_ID to match your code id from the store code\nFLAGS=\"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3\"\n#Example1\nCODE_ID=1\nmintstationd tx wasm instantiate \"$CODE_ID\" '{\"count\":0}' --label \"contract\" $FLAGS -y --admin \n#cw20\nCODE_ID=2\nINIT='{\"name\":\"CW20\",\"symbol\":\"TOKEN\",\"decimals\":2,\"initial_balances\":[{\"amount\":\"1000000\",\"address\":
}]}'\nmintstationd tx wasm instantiate \"$CODE_ID\" \"$INIT\" --from --label \"cw-token\" $FLAGS -y --admin "}},"/mintstation":{"title":"Introduction","data":{"":"Mintstation is a network designed for testing the Cosmos SDK. It provides access to the latest features of the Cosmos ecosystem, allowing users to leverage CosmWasm smart contracts.In this documentation, the following topics are covered:\nLocal network installation\nCLI usage\nRunning a full node and participating as a validator\nUtilizing Cosmwasm for smart contract development\nCustom module development\nMintstation offers a testing ground for developers and users to explore and experiment with the capabilities of the Cosmos SDK while having the ability to interact with CosmWasm smart contracts. The documentation provides comprehensive guidance on setting up a local network, utilizing the CLI, engaging as a validator, and leveraging Cosmwasm for smart contract deployment. Additionally, developers are encouraged to explore custom module development to tailor the network to their specific needs.By providing an environment that maintains the latest features of the Cosmos SDK and supports Cosmwasm smart contracts, Mintstation facilitates a dynamic and insightful experience for individuals and teams working within the Cosmos ecosystem."}},"/mintstation/validator/localnet":{"title":"Localnet","data":{"setup-local-network#Setup Local Network":"To set up a single local network easily, you can directly run the script below, and it will start working immediately:To get up and running with the mintstationd binary, please follow the instructions here.\nAPP_HOME=\"$HOME/.mintstation\"\nRPC=\"http://localhost:26657\"\nCHAIN_ID=\"localnet-1\"\nMONIKER=\"Moniker\"\nmintstationd init ${MONIKER} --chain-id ${CHAIN_ID} --home ${APP_HOME}\nsed -i -r 's/minimum-gas-prices = \"0stake\"/minimum-gas-prices = \"0.0001umint\"/' ${APP_HOME}/config/app.toml\nsed -i -e 's/\\\"stake\\\"/\\\"umint\\\"/g' ${APP_HOME}/config/genesis.json\nmintstationd keys add validator --keyring-backend test\nMY_VALIDATOR_ADDRESS=$(mintstationd keys show validator --keyring-backend test -a)\nmintstationd add-genesis-account $MY_VALIDATOR_ADDRESS 10000000000umint\nmintstationd gentx validator 10000000umint --chain-id localnet-1 --keyring-backend test\nmintstationd collect-gentxs\nmintstationd start --home ${APP_HOME}"}},"/mobile/article":{"title":"Articles","data":{"":"How to Derive(Add) & Manage WalletsWallet Management“dApp” on Cosmostation Mobile WalletIntroducing AuthZ on Cosmostation MobileGas OptimizationKava DeFiOsmosis and Sifchain DEXNFT on Cosmostation MobileStarname Service"}},"/mintstation/validator/command":{"title":"Useful commands","data":{"upgrade-to-a-validator#Upgrade to a validator":"Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step.To upgrade the node to a validator, you will need to submit a create-validator transaction:\nmintstationd tx staking create-validator \\\n --amount 1000000umint \\\n --commission-max-change-rate \"0.1\" \\\n --commission-max-rate \"0.20\" \\\n --commission-rate \"0.1\" \\\n --min-self-delegation \"1\" \\\n --details \"validators write bios too\" \\\n --pubkey=$(mintstationd tendermint show-validator) \\\n --moniker \"$MONIKER_NAME\" \\\n --chain-id $CHAIN_ID \\\n --gas-prices 0.025umint \\\n --from \nThe above transaction is just an example. There are many more flags that can be set to customise your validator, such as your validator website, or keybase.io id, etc. To see a full list:\nmintstationd tx staking create-validator --help\nUnjail\nstationed tx slashing unjail --from --chain-id mintstation-1 --fees 100umint\nTo track your validator's signing history, copy the validator public key:\nmintstationd tendermint show-validator\nUse your validators public key queried above as the validator-pubkey below:\nmintstationd query slashing signing-info \nExample:\nmintstationd query slashing signing-info '{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"HlixoxNZBPq4pBOYEimtSq9Ak4peBISVsIbI5ZHrEAU=\"}'"}},"/mintstation/validator/upgrade":{"title":"Node Upgrades","data":{"upgrades#Upgrades":"Release procedures for validators and node operators are explained here.","upgrade-types#Upgrade types":"There are two types of upgrades that happen on Mintstation Network. They are:\nPlanned feature upgrades or planned patches\nUnplanned security upgrades.","planned-upgrade-via-governance#Planned upgrade (via governance)":"Planned upgrades, as the name suggests, are upgrades that are developed and proposed via governance. If approved by the community, these upgrades are undertaken by the chain automatically halting at the planned upgrade height.Node operators are then required to swap the binary for the planned upgrade binary. After all node operators have upgraded and started their nodes the network will continue in the upgraded state.","unplanned-upgrade#Unplanned upgrade":"Where emergency security patches are required node operators will be required to halt their nodes manually at the required upgrade height, swap the patched binary and restart their nodes. After all node operators have upgraded and started their nodes the network will continue in the upgraded state."}},"/mobile/integration/cosmjs":{"title":"Integrate cosmjs","data":{"":"Cosmjs TutorialCosmjs Example CodeCosmjs Example Page","add-package#Add package":"yarn add @cosmostation/cosmos-client\nnpm install @cosmostation/cosmos-client","offline-signer#Offline Signer":"import { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nimport { getOfflineSigner } from \"@cosmostation/cosmos-client\";\nimport { GasPrice, calculateFee } from \"@cosmjs/stargate\";\nimport { SigningCosmWasmClient } from \"@cosmjs/cosmwasm-stargate\";\nconst offlineSigner = await getOfflineSigner(CHAIN_ID);\nconst rpcEndpoint = RPC_END_POINT;\nconst client = await SigningCosmWasmClient.connectWithSigner(\n rpcEndpoint,\n offlineSigner\n);\n//getAccounts\nconst accounts = await offlineSigner.getAccounts();\n//execute\nconst gasPrice = GasPrice.fromString(\"0.01denom\");\nconst fees = {\n upload: calculateFee(1500000, gasPrice),\n init: calculateFee(500000, gasPrice),\n exec: calculateFee(500000, gasPrice),\n};\nconst result = await client.execute(\n accounts[0].address,\n RECEIPT_ADDRESS,\n MESSAGE,\n fees.exec\n);"}},"/mintstation/validator/mainnet":{"title":"Joining Mainnet","data":{"":"To get up and running with the mintstationd binary, please follow the instructions here.","setting-up-the-node#Setting up the Node":"These instructions will direct you on how to initialize your node, synchronize to the network and upgrade your node to a validator.","initialize-the-chain#Initialize the chain":"CHAIN_ID=mintstation-1\nMONIKER_NAME=\nmintstationd init \"$MONIKER_NAME\" --chain-id $CHAIN_ID\nThis will generate the following files in ~/.mintstation/config/\ngenesis.json\nnode_key.json\npriv_validator_key.json","download-the-genesis-file#Download the genesis file":"Download the the geneis file.\n# Download genesis.json file (https://github.com/cosmostation/mintstation)\nrm ~/.mintstation/config/genesis.json\nmv genesis.json $HOME/.mintstation/config/genesis.json\nThis will replace the genesis file created using mintstationd init command with the mainnet genesis.json.","set-seeds#Set seeds":"We can set the seeds by retrieving the list of seeds from the mintstation repo and using sed to inject into ~/.mintstation/config/config.toml:\n# Set the base repo URL for mainnet & retrieve seeds\nCHAIN_ID=mintstation-1\nCHAIN_REPO=\"https://raw.githubusercontent.com/cosmostation/mintstation/main/$CHAIN_ID\" && \\\nexport SEEDS=\"$(curl -sL \"$CHAIN_REPO/seeds.txt\")\"\n# Add seeds to config.toml\nsed -i.bak -e \"s/^seeds *=.*/seeds = \\\"$SEEDS\\\"/\" ~/.mintstation/config/config.toml","set-minimum-gas-prices#Set minimum gas prices":"For RPC nodes and Validator nodes we recommend setting the following minimum-gas-prices. As we are a permissionless wasm chain, this setting will help protect against contract spam and potential wasm contract attack vectors.In $HOME/.mintstation/config/app.toml, set minimum gas prices:\nsed -i.bak -e \"s/^minimum-gas-prices *=.*/minimum-gas-prices = \\\"0.0025umint\\\"/\" ~/.mintstation/config/app.toml","create-or-restore-a-local-key-pair#Create (or restore) a local key pair":"Either create a new key pair, or restore an existing wallet for your validator:\nmintstationd keys add \n# OR\n# Restore existing mint wallet with mnemonic seed phrase.\n# You will be prompted to enter mnemonic seed.\nmintstationd keys add --recover\n# Query the keystore for your public address\nmintstationd keys show --bech val -a\nReplace with a key name of your choosing.After creating a new key, the key information and seed phrase will be shown. It is essential to write this seed phrase down and keep it in a safe place. The seed phrase is the only way to restore your keys.","get-some-tokens#Get some tokens":"Delegations here.","syncing-the-node#Syncing the node":"There are methods to sync a node to the network:","from-genesis#From genesis":"After starting the mintstationd daemon, the chain will begin to sync to the network. The time to sync to the network will vary depending on your setup and the current size of the blockchain, but could take a very long time. To query the status of your node:\n# Query via the RPC (default port: 26657)\ncurl http://localhost:26657/status | jq .result.sync_info.catching_up\nIf this command returns true then your node is still catching up. If it returns false then your node has caught up to the network current block and you are safe to proceed to upgrade to a validator node.When syncing from genesis, you will need to perform upgrades while catching up to the head. mintstation-1 upgrades are detailed in node-upgrade.md along with a description of each type of upgrade.","backup-critical-files#Backup critical files":"There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.mintstation/config/:\npriv_validator_key.json\nnode_key.json\nIt is recommended that you encrypt the backup of these files."}},"/mobile":{"title":"Introduction","data":{"":"Mobile wallets support various types of services.\nAccess dApps on desktop/mobile via QR code scanning.\nConnect with dApps from your mobile browser via Deep Link.\nIn-app browser support on mobile wallets.\nCosmostation Mobile Wallet supports dApps through various methods.\nCosmostation(Same way as Extension)\nCosmos-Kit\nWalletConnect 1.0(Deprecated), WalletConnect 2.0\nConnections using Cosmostation and WalletConnect also implement the Keplr and Web3j specifications."}},"/mobile/integration/walletconnect/accounts":{"title":"Accounts","data":{"":"Use account on Cosmostation Mobile Wallet via WalletConnect.","get-accounts#Get Accounts":"Select an account after checking unsupported chains or empty accounts.The response only contains selected account.\nexport function getAccountRequest(chainIds) {\n return {\n id: payloadId(),\n jsonrpc: \"2.0\",\n method: \"cosmostation_wc_accounts_v1\",\n params: chainIds,\n };\n}\nconst request = getAccountRequest([CHAIN_ID, NOT_SUPPORTED_CHAIN_ID]);\nconnector\n .sendCustomRequest(request)\n .then((accounts) => {\n setAccounts(accounts);\n console.log(accounts.length == 1);\n })\n .catch((error) => {\n console.error(error);\n });\ntype AccountResponse = {\n name: string;\n algo: string;\n address: Uint8Array;\n pubKey: string;\n bech32Address: string;\n};"}},"/mobile/integration/walletconnect2":{"title":"WalletConnect 2.0","data":{"":"Cosmostation Mobile Wallet implement WalletConnect 2.0 specs.WalletConnect 2.0 Cosmos GuideWalletConnect 2.0 Example CodeWalletConnect 2.0 Example Page","connect#Connect":"import Client from \"@walletconnect/sign-client\";\nimport {\n PairingTypes,\n ProposalTypes,\n SessionTypes,\n} from \"@walletconnect/types\";\nfunction App() {\n const [client, setClient] = useState();\n const [pairings, setPairings] = useState([]);\n const [session, setSession] = useState();\n const [chains, setChains] = useState([]);\n const [accounts, setAccounts] = useState([]);\n useEffect(() => {\n if (client === undefined) {\n createClient();\n }\n }, [client]);\n const createClient = async () => {\n try {\n const _client = await Client.init({...});\n setClient(_client);\n } catch (err) {\n throw err;\n } finally {\n }\n };\n async function connect() {\n const modal = new Modal();\n if (typeof client === \"undefined\") {\n throw new Error(\"WalletConnect is not initialized\");\n }\n try {\n const requiredNamespaces = getRequiredNamespaces();\n const { uri, approval } = await client.connect({\n pairingTopic: undefined,\n requiredNamespaces: {\n cosmos: {\n methods: [\"cosmos_signDirect\", \"cosmos_signAmino\"],\n chains: [\"cosmos:cosmoshub-4\"],\n events: [],\n },\n },\n });\n if (uri) {\n const standaloneChains = Object.values(requiredNamespaces)\n .map((namespace) => namespace.chains)\n .flat();\n modal.open(uri, standaloneChains);\n }\n const session = await approval();\n console.log(\"Established session:\", session);\n await onSessionConnected(session);\n setPairings(client.pairing.getAll({ active: true }));\n } catch (e) {\n console.error(e);\n } finally {\n modal.close();\n }\n }\n const getRequiredNamespaces = (): ProposalTypes.RequiredNamespaces => {\n return Object.fromEntries(\n chains.map((namespace) => [\n namespace,\n {\n methods: [\"cosmos_signDirect\", \"cosmos_signAmino\"],\n chains: chains.filter((chain) => chain.startsWith(namespace)),\n events: [],\n },\n ])\n );\n };\n const onSessionConnected = useCallback(\n async (_session: SessionTypes.Struct) => {\n const allNamespaceAccounts = Object.values(_session.namespaces)\n .map((namespace) => namespace.accounts)\n .flat();\n const allNamespaceChains = Object.keys(_session.namespaces);\n setSession(_session);\n setChains(allNamespaceChains);\n setAccounts(allNamespaceAccounts);\n },\n []\n );\n}"}},"/mobile/integration/walletconnect/connect":{"title":"Connect","data":{"":"Cosmostation Mobile Wallet supports dApps via WalletConnect.(Deprecated)WalletConnect Example CodeWalletConnect Example Page\nimport WalletConnect from \"@walletconnect/client\";\nexport async function connect() {\n const connector = new WalletConnect({\n bridge: \"https://bridge.walletconnect.org\",\n signingMethods: [\n \"cosmostation_wc_accounts_v1\",\n \"cosmostation_wc_sign_tx_v1\",\n ],\n qrcodeModal: new CosmostationWCModal(),\n });\n await connector.createSession();\n return connector;\n}","modal#Modal":"Use CosmostationModal when initializing WalletConnect to use DeepLink and QRCode connect.\nyarn add @cosmostation/wc-modal\nimport CosmostationWCModal from \"@cosmostation/wc-modal\";","event#Event":"By implementing connect/disconnect event, handle connect state event.\nconst connector = await connect();\nconnector.on(\"connect\", (error, payload) => {\n if (error) {\n setConnected(false);\n throw error;\n }\n setConnected(true);\n});\nconnector.on(\"disconnect\", (error, payload) => {\n setConnected(false);\n});"}},"/mintstation/contracts/query":{"title":"Query Contracts","data":{"command-line-interface#Command Line Interface":"The most common way to query a cosmwasm smart contract is within the mintstationd wasm smart query command. This follows the following format where query is a JSON string with no spaces. By default, the least amount of data this can be is an empty JSON payload '{}'.\nmintstationd query wasm contract-state smart [contract_bech32] [query] [flags]\nFor this example, we are going to use a random NFT contract on the mint chain. This will show you how to brute force query a contract if you have no idea what the query schema of the contract is. At this time, there is no way to query the format of a contract's requests, but this is something many are actively working on.Now we attempt to query this contract address and extract some data from it and get which queries are allowed. As you can see, we pass through a random payload for abcde so that the contract will return actual valid query requestsNOTE: A Query can never be empty such as '{}' given you need to specify the path of data you want to reach.{% hint style=\"info\" %}\nThe query shows CW721 Base is this contracts name. As this is a standard contract, all messages can be found in the CosmWasm/cw-nfts repository on github\nhttps://github.com/CosmWasm/cw-nfts/blob/main/contracts/cw721-base/src/msg.rs\n{% endhint %}From this, we now know all of the query endpoints and can requests something more specific from the contract for our usage. Let's get\nCONTRACT=\nmintstationd q wasm contract-state smart $CONTRACT '{\"all_tokens\":{}}'\ndata:\n tokens:\n - \"0\"\n - \"1\"\n - \"2\"\n - \"3\"\n - \"4\"\n - \"5\"\n - \"6\"\n - \"7\"\n - \"8\"\n# You can use --output=json to read it via JSON form\n# mintstationd q wasm contract-state smart $CONTRACT '{\"all_tokens\":{}}' --output=json | jq .data\nHere we can see there are 8 tokens in this set. Lets query one of the NFTs information\nCONTRACT=\nmintstationd q wasm contract-state smart $CONTRACT '{\"nft_info\":{}}'\n# missing field `token_id`: query wasm contract failed\nJust like the first query, we can see that the payload needs more information. It returned an error that we need to specify the token_id we want the nft_info for. Note, Uint128 sized numbers are read as a string\nCONTRACT=\nmintstationd q wasm contract-state smart $CONTRACT '{\"nft_info\":{\"token_id\":\"8\"}}'\n# data:\n# extension: null\n# token_uri: ipfs:///metadata.json","rest-api-query#Rest API Query":"If you wish to query the data more programmatically with an application such as Python, you may be better suited to use the rest API. You can find these endpoints on https://cosmos.directory/mint/nodes in the REST section.This query endpoint can be found via Mintstation's SwaggerUI. However, some modules you will not be able to easily find the endpoint. To do this, you will need to search through the proto files. Here we know we want to query the cosmwasm module, which is called wasmd on chain. This repo is found at https://github.com/cosmwasm/wasmd.\nIn this module, you can see the proto folder in the root of the repo. This will house the endpoints the module exposes so we can find the above path which. This is a query so we find the query proto file\nhttps://github.com/CosmWasm/wasmd/blob/main/proto/cosmwasm/wasm/v1/query.proto\\\noption go_package = \"github.com/CosmWasm/wasmd/x/wasm/types\";\noption (gogoproto.goproto_getters_all) = false;\noption (gogoproto.equal_all) = false;\n// Query provides defines the gRPC querier service\nservice Query {\n ...\n // SmartContractState get smart query result from the contract\n rpc SmartContractState(QuerySmartContractStateRequest)\n returns (QuerySmartContractStateResponse) {\n option (google.api.http).get =\n \"/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}\";\n }\n ...\n{% hint style=\"info\" %}\nYou must base64 encode the JSON payload for REST API Request. Just take your JSON payload and\n- put it into https://www.base64encode.org/\n- or use Mac / Linux built in command\necho '{\"all_tokens\":{}}' | base64\n# eyJhbGxfdG9rZW5zIjp7fX0K\n{% endhint %}With this, we can now query the contract and gather the data. You can use your web browser, or a library like httpx / requests in Python for automated bots. Be aware that many API providers will late limit the number of requests you can make.\nhttps://api.mint.strange.love/cosmwasm/wasm/v1/contract//smart/eyJhbGxfdG9rZW5zIjp7fX0K\n{\n \"data\": {\n \"tokens\": [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"]\n }\n}","cosmology-smart-contract-query#Cosmology Smart Contract Query":"Using CosmWasm/ts-codegen, you can create an NPM module to make interactions and queries into dev-friendly Typescript classes to allow you to focus on shipping code.Here are a few tutorials from cosmology:\nts-codegen overview for CosmWasm\nCosmWasm Contract to Typescript npm module\nConfigure CosmWasm ts-codegen in your Contracts repo\nQuery a CosmWasm smart contract from ts-codegen\nEnable React Query\nEnable Recoil\nIntegrate Telescope with ts-codegen"}},"/mobile/integration/walletconnect/sign-tx":{"title":"Sign Transactions","data":{"":"Sign transcation using Cosmostation Mobile Wallet via WalletConnect.\nexport function getSignTxRequest(chainId, signer, signDoc) {\n return {\n id: payloadId(),\n jsonrpc: \"2.0\",\n method: \"cosmostation_wc_sign_tx_v1\",\n params: [chainId, signer, signDoc],\n };\n}\nconst signDoc = makeAminoSignDoc(\n [message],\n fee,\n CHAIN_ID,\n \"\",\n accountNumber,\n sequence\n);\nconst request = getSignAminoRequest(CHAIN_ID, address, signDoc);\nconnector\n .sendCustomRequest(request)\n .then((response) => {\n const signed = _.get(response, \"0.signed\");\n const signature = _.get(response, \"0.signature\");\n return broadcastTx(signed, signature);\n })\n .then((result) => {\n const code = _.get(result, \"code\");\n if (code === 0) {\n const txHash = _.get(result, \"txhash\");\n console.log(txHash);\n } else {\n const rawLog = _.get(result, \"raw_log\");\n console.error(rawLog);\n }\n });\ntype SignTxResponse = {\n signed: StdSignDoc;\n signature: { signature: string; pub_key: { type: string; value: string } };\n};"}},"/mobile/integration/cosmostation":{"title":"Cosmostation","data":{"":"Using @cosmostation/extension-client to support both Mobile and PC in the same way as extensions.\nIf your project's dApp works well in Cosmostation Extension, it will work well in mobile too.\nFor more detailed explanation, please refer to the Cosmostation Extension Guide."}},"/mintstation/validator/delegations":{"title":"Delegations","data":{"":"If you wish to perform more extensive testing and require additional delegations, please don't hesitate to get in touch with us at mintstation@cosmostation.io.We are more than happy to provide you with the necessary delegations to support your testing efforts. Our delegation services aim to help you thoroughly evaluate and explore the features and capabilities of our platform.By reaching out to us, you can access a wide range of resources and support to make the most out of your testing experience. Whether you are testing staking, governance, or any other aspects of our system, we want to ensure that you have a beautiful and seamless experience.Feel free to contact us with any specific requirements or questions you may have. Our team at mintstation@cosmostation.io is ready to assist you, and we look forward to supporting your testing journey!"}},"/mobile/listing":{"title":"How to dApp listing?","data":{"":"For add your dapp to Mobile Wallet.Create a pull request from the link below.https://github.com/cosmostation/chainlist/blob/main/dapp/README.md"}},"/mintstation/module":{"title":"Building Modules","data":{"":"In this tutorial we will be going over building a module in Mintstation to show how easy it is to build on top of the Mintstation ecosystem. This module will be simple in nature but will show how to set up and connect a module to Mintstation and can be used as a starting point for more complex modules.","set-up#Set up":"git clone https://github.com/cosmostation/mintstation.git","defining-protocol-buffer-types#Defining Protocol Buffer Types":"The first step in building a new Mintstation Module is to define our Module's types. To do that we use Protocol Buffers which is a used for serializing structured data and generating code for multiple target languages, Protocol Buffers are also smaller than JSON & XML so sending data around the network will be less expensive. Learn More.Our Protobuf files will all live in proto/mintstation directory. we will create a new directory with the new module greet and add the following files in the proto/greet/v1beta1/ directory\ngenesis.proto\ngreet.proto\nquery.proto\ntx.proto","defining-the-greet-type#Defining The Greet Type":"Inside the proto/greet/v1beta1/greet.proto file lets define our greet type:\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\nimport \"cosmos_proto/cosmos.proto\";\nimport \"gogoproto/gogo.proto\";\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\nmessage Greet {\nstring owner = 1;\nstring id = 2;\nstring message = 3;\n}\nHere we are saying that we have a Greet type that will have an owner, an id and a message that will contain the greet string. Once we have that defined we are ready to set up a way to create this greet message and query it.","creating-a-new-greeting#Creating a new Greeting":"Inside the proto/greet/v1beta1/tx.proto file lets define our Msg Type:\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\nimport \"gogoproto/gogo.proto\";\nimport \"cosmos_proto/cosmos.proto\";\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\nservice Msg {\n\trpc CreateGreet(MsgCreateGreet) returns (MsgCreateGreetResponse);\n}\nmessage MsgCreateGreet {\nstring message = 1;\nstring owner = 2;\n}\nmessage MsgCreateGreetResponse {}\nNow that we have defined how to create a new Greeting let's finish up by setting up our queries to view a specific greeting or all of them.One thing to note here is that any state changing actions are transactions and for that reason we put them in our tx.proto files, we essentially said we are creating a new state changing message & defined the types for that message in our proto file, we will later add clients to trigger state change, which in our case will be adding a new message to our chain.","querying-greetings#Querying Greetings":"Code inside the proto/greet/v1beta1/query.proto :\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\nimport \"gogoproto/gogo.proto\";\nimport \"google/api/annotations.proto\";\nimport \"cosmos/base/query/v1beta1/pagination.proto\";\nimport \"cosmos_proto/cosmos.proto\";\nimport \"mintstation/greet/v1beta1/greet.proto\";\nservice Query {\n\trpc Greet(QueryGetGreetRequest) returns (QueryGetGreetResponse) {\n\toption (google.api.http).get = \"/mintstation/greet/v1beta1/greetings/{id}\";\n\t}\n\trpc GreetAll(QueryAllGreetRequest) returns (QueryAllGreetResponse) {\n\toption (google.api.http).get = \"/mintstation/swap/v1beta1/greetings\";\n\t}\n}\nmessage QueryGetGreetRequest {\nstring id = 1;\n}\nmessage QueryGetGreetResponse {\nGreet greeting = 1;\n}\nmessage QueryAllGreetRequest {\ncosmos.base.query.v1beta1.PageRequest pagination = 1;\n}\nmessage QueryAllGreetResponse {\nrepeated Greet greetings = 1;\ncosmos.base.query.v1beta1.PageResponse pagination = 2;\n}\nOur query.proto now contains the types for our queries, we have defined a request type & a response type and those types will be returned once we trigger a query through the CLI, REST API, or Grpc. The response will follow the same structure regardless of the type of client initiating the request.We defined our query, tx, and greet proto files we finally need to set up the genesis file and then we are ready to generate these types. In the genesis file we will create a minimal genesis.proto for this tutorial to keep things simple.\nsyntax = \"proto3\";\npackage mintstation.greet.v1beta1;\nimport \"mintstation/greet/v1beta1/greet.proto\";\nimport \"gogoproto/gogo.proto\";\nimport \"google/protobuf/timestamp.proto\";\nimport \"cosmos_proto/cosmos.proto\";\noption go_package = \"github.com/cosmostation/mintstation/x/greet/types\";\n// our gensis state message will be empty for this tutorial\nmessage GenesisState {}\nOnce all the files are filled in we are ready to generate our proto types. in the Mintstation Directory run make proto-gen to generate the types, this will create a folder inside the x/greet and will contain the auto-generated proto types.","developing-our-greet-module#Developing Our Greet Module":"we have successfully set up our Proto files & generated them, we now have a x/greet directory generated, this is where we will write our module's code. For starters we will define our module's types in a new file inside x/greet/types/greet.go.","setting-up-constants--importing-packages#Setting up constants & importing packages":"Let's set up some basic constants for our module to help with routing, & fetching items from our store.\npackage types\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"github.com/cosmos/cosmos-sdk/codec\"\n\t\"github.com/cosmos/cosmos-sdk/codec/types\"\n\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n\tsdkerrors \"github.com/cosmos/cosmos-sdk/types/errors\"\n\t\"github.com/cosmos/cosmos-sdk/types/msgservice\"\n)\n// defined our module's constants such as name, routerkey\n// and prefixes for getting items from the store\nconst (\n\tModuleName = \"greet\"\n\tStoreKey = ModuleName\n\tRouterKey = ModuleName\n\tQuerierRoute = ModuleName\n\tGreetKey = \"greet-value-\" // used for getting a greeting from our store\n\tGreetCountKey = \"greet-count-\" // used for getting count from out store\n\tQueryGetGreeting = \"get-greeting\" // used for legacy querier routing\n\tQueryListGreetings = \"list-greetings\"// used for legacy querier routing\n)\n// heler function simply returns []byte out of a prefix string\nfunc KeyPrefix(p string) []byte {\n\treturn []byte(p)\n}\n// returns default genesis state\nfunc DefaultGenesisState() GenesisState {\n\treturn GenesisState{}\n}\n// validates genesis state\nfunc (gs GenesisState) Validate() error {\n\treturn nil\n}","setting-up-our-msg-for-creating-a-new-greeting#Setting up our Msg for creating a new greeting":"Our MsgCreateGreet struct was created when we generated our Proto Types, we now need to use that struct to implement the sdk.Msg interface such that we can create new greetings. the first thing we will do is defined an unnamed variable with the _ syntax and have it implement the sdk.Msg type. This will help us catch unimplemented functions and guide us with syntax highlighting.\n// MsgCreateGreet we defined it here to get type checking\n//to make sure we are immplementing it correctly\nvar _ sdk.Msg = &MsgCreateGreet{}\n// constructor for creating a new greeting\nfunc NewMsgCreateGreet(owner string, message string) *MsgCreateGreet{\n\treturn &MsgCreateGreet{\n\tOwner: owner,\n\tMessage: message,\n\t}\n}\n// does a quick stateless validation on our new greeting\nfunc (m *MsgCreateGreet) ValidateBasic() error {\n\t// ensures address is valid\n\tif _, err := sdk.AccAddressFromBech32(m.Owner); err != nil {\n\t\treturn sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, \"invalid owner address\", err)\n\t}\n\t// ensures the greeting is not empty\n\tif len(strings.TrimSpace(m.Message)) == 0 {\n\t\treturn fmt.Errorf(\"must provide a greeting message\")\n\t}\n\treturn nil\n}\n// gets the signer of the new message which will be the owner of the greeting\nfunc (m *MsgCreateGreet) GetSigners() []sdk.AccAddress {\n\towner, err := sdk.AccAddressFromBech32(m.Owner);\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn []sdk.AccAddress{owner}\n}","registering-our-codec--interfaces#Registering our Codec & interfaces":"now that we have our MsgCreateGreet implement the sdk.Msg interface let's register our codec for marshaling/unmarshaling our greeting we will register both the deprecated legacy amino and the new Interface registry.\n// registers the marshal/unmarsahl for greating a new greeting for our legacy amino codec\nfunc RegisterLegacyAminoCodec(cdc *codec.LegacyAmino){\n\tcdc.RegisterConcrete(&MsgCreateGreet{}, \"greet/CreateGreet\", nil)\n}\n// registers a module's interface types and their concrete implementations as proto.Message.\nfunc RegisterInterfaces(registry types.InterfaceRegistry){\n\tregistry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateGreet{})\n\tmsgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)\n}\nvar amino = codec.NewLegacyAmino()\nvar ModuleCdc = codec.NewAminoCodec(amino)","setting-up-a-basic-keeper#Setting up a basic Keeper":"we have finished up setting up our types, now it's time to implement our greet module's keeper, lets do that in a new folder & package named keeper, create x/greet/keeper/greet_keeper.go .","setting-up-the-keeper-struct--imports#Setting up the Keeper Struct & imports":"keepers are an abstraction over the state defined by a module, every module would have a keeper which would be used to access the state of that module, or if given access a keeper can also use other module's keepers by providing reference to the other module's keeper.\npackage keeper\nimport (\n\t\"context\"\n\t\"strconv\"\n\t\"github.com/cosmos/cosmos-sdk/codec\"\n\t\"github.com/cosmos/cosmos-sdk/store/prefix\"\n\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n\tabci \"github.com/tendermint/tendermint/abci/types\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\tsdkerrors \"github.com/cosmos/cosmos-sdk/types/errors\"\n)\ntype Keeper struct {\n\tcdc codec.Codec // used to marshall and unmarshall structs from & to []byte\n\tkey sdk.StoreKey // grant access to the store\n}\n// our constructor for creating a new Keeper for this module\nfunc NewKeeper(c codec.Codec, k sdk.StoreKey) Keeper {\n\treturn Keeper{\n\tcdc: c,\n\tkey: k,\n\t}\n}","wiring-up-our-methods-for-handling-new-transactions--queries#Wiring up our methods for handling new transactions & queries":"Now that we have our Keeper Struct written, let's create some receiver functions on our keeper to handle adding a new greeting & looking up a greeting.\n// get greet count will be used for setting an Id when a new greeting is created\nfunc (k Keeper) GetGreetCount(ctx sdk.Context) int64 {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetCountKey))\n\tbyteKey := types.KeyPrefix(types.GreetCountKey)\n\tbz := store.Get(byteKey)\n\tif bz == nil {\n\t\treturn 0\n\t}\n\tcount, err := strconv.ParseInt(string(bz), 10, 64)\n\tif err != nil {\n\t\tpanic(\"cannot decode count\")\n\t}\n\treturn count\n}\n// sets the greet count\nfunc (k Keeper) SetGreetCount(ctx sdk.Context, count int64){\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetCountKey))\n\tkey := types.KeyPrefix(types.GreetCountKey)\n\tvalue := []byte(strconv.FormatInt(count, 10))\n\tstore.Set(key, value)\n}\n// creates a new greeting\nfunc (k Keeper) CreateGreet(ctx sdk.Context, m types.MsgCreateGreet){\n\tcount := k.GetGreetCount(ctx)\n\tgreet := types.Greet{\n\tId: strconv.FormatInt(count, 10),\n\tOwner: m.Owner,\n\tMessage: m.Message,\n\t}\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\tkey := types.KeyPrefix(types.GreetKey + greet.Id)\n\tvalue := k.cdc.MustMarshal(&greet)\n\tstore.Set(key, value)\n\tk.SetGreetCount(ctx, count + 1)\n}\n// gets a greeting from the store\nfunc (k Keeper) GetGreeting(ctx sdk.Context, key string) types.Greet {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\tvar Greet types.Greet\n\tk.cdc.Unmarshal(store.Get(types.KeyPrefix(types.GreetKey + key)), &Greet)\n\treturn Greet\n}\n// checks if a greeting exists by an id\nfunc (k Keeper) HasGreet(ctx sdk.Context, id string) bool {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\treturn store.Has(types.KeyPrefix(types.GreetKey + id))\n}\n// gets the owner of a greeting\nfunc (k Keeper) GetGreetOwner(ctx sdk.Context, key string) string {\n\treturn k.GetGreeting(ctx, key).Owner\n}\n// gets a list of all greetings in the store\nfunc (k Keeper) GetAllGreetings(ctx sdk.Context) (msgs []types.Greet){\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.KeyPrefix(types.GreetKey))\n\titerator := sdk.KVStorePrefixIterator(store, types.KeyPrefix(types.GreetKey))\n\tdefer iterator.Close()\n\tfor ; iterator.Valid(); iterator.Next() {\n\t\tvar msg types.Greet\n\t\tk.cdc.Unmarshal(iterator.Value(), &msg)\n\t\tmsgs = append(msgs, msg)\n\t}\n\treturn\n}","handling-queries#Handling queries":"We have added methods for interacting with greetings such as creating or reading them, now let's set up our two query services so we can route them to the correct method, we will set up our legacy Querier & gRPC querier below the methods we defined above on our keeper.\nfunc (k Keeper) GreetAll(c context.Context, req *types.QueryAllGreetRequest) (*types.QueryAllGreetResponse, error){\n\tctx := sdk.UnwrapSDKContext(c)\n\tvar greetings []*types.Greet\n\tfor _, g := range k.GetAllGreetings(ctx) {\n\t\tvar greeting = &g\n\t\tgreetings = append(greetings,greeting)\n\t}\n\treturn &types.QueryAllGreetResponse{Greetings: greetings, Pagination: nil}, nil\n}\nfunc (k Keeper) Greet(c context.Context, req *types.QueryGetGreetRequest) (*types.QueryGetGreetResponse, error){\n\tsdk.UnwrapSDKContext(c)\n\tvar greeting = k.GetGreeting(sdk.UnwrapSDKContext(c), req.Id)\n\treturn &types.QueryGetGreetResponse{Greeting: &greeting}, nil\n}\n// LEGACY QUERIER will be deperacted but for the sake of competeness this is how to set it up\nfunc NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {\n\treturn func(ctx sdk.Context, path []string, req abci.RequestQuery) ([]byte, error) {\n\tswitch path[0] {\n\t\tcase types.QueryGetGreeting:\n\t\t\tvar getGreetRequest types.QueryGetGreetRequest\n\t\t\terr := legacyQuerierCdc.UnmarshalJSON(req.Data, &getGreetRequest)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())\n\t\t\t}\n\t\t\tval := k.GetGreeting(ctx, getGreetRequest.GetId())\n\t\t\tbz, err := legacyQuerierCdc.MarshalJSON(val)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())\n\t\t\t}\n\t\t\treturn bz, nil\n\t\tcase types.QueryListGreetings:\n\t\t\tval := k.GetAllGreetings(ctx)\n\t\t\tbz, err := codec.MarshalJSONIndent(legacyQuerierCdc, val)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())\n\t\t\t}\n\t\t\treturn bz, nil\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unknow request at %s query endpoint\", types.ModuleName)\n\t\t}\n\t}\n}","setting-up-a-command-to-create-a-new-greeting#Setting up a command to create a new greeting":"let's set up a way for clients to submit a new greeting & query existing greetings, we can do that with a CLI, REST, & gRPC clients. for this tutorial we will focus on setting up our CLI client. create x/greet/client/cli/tx.go.here We will define a command to create a new greeting:\npackage cli\nimport (\n\t\"fmt\"\n\t\"github.com/cosmos/cosmos-sdk/client\"\n\t\"github.com/cosmos/cosmos-sdk/client/flags\"\n\t\"github.com/cosmos/cosmos-sdk/client/tx\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\t\"github.com/spf13/cobra\"\n)\nfunc GetTxCmd() *cobra.Command {\n\tcmd := &cobra.Command{\n\tUse: types.ModuleName,\n\tShort: fmt.Sprintf(\"%s transactions subcommands\", types.ModuleName),\n\tDisableFlagParsing: true,\n\tSuggestionsMinimumDistance: 2,\n\tRunE: client.ValidateCmd,\n\t}\n\tcmd.AddCommand(CmdCreateGreeting())\n\treturn cmd\n}\nfunc CmdCreateGreeting() *cobra.Command {\n\tcmd:= &cobra.Command{\n\tUse: \"create-greeting [message]\",\n\tShort: \"creates a new greetings\",\n\tArgs: cobra.ExactArgs(1),\n\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tmessage := string(args[0])\n\t\t\tclientCtx, err := client.GetClientTxContext(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tmsg := types.NewMsgCreateGreet(clientCtx.GetFromAddress().String(), string(message))\n\t\t\tif err := msg.ValidateBasic(); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\treturn tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)\n\t\t},\n\t}\n\tflags.AddTxFlagsToCmd(cmd)\n\treturn cmd\n}","querying-greetings-1#Querying greetings":"We will now set up two different commands for querying, one will be to list all greetings & the other will be to get a greeting by it's id. inside x/greet/cli/query.go:\npackage cli\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/cosmos/cosmos-sdk/client\"\n\t\"github.com/cosmos/cosmos-sdk/client/flags\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\t\"github.com/spf13/cobra\"\n)\n// this is the parent query command for the greet module everytime we add a new command we will register it here\nfunc GetQueryCmd(queryRoute string) *cobra.Command {\n// Group todos queries under a subcommand\n\tcmd := &cobra.Command{\n\t\tUse: types.ModuleName,\n\t\tShort: fmt.Sprintf(\"Querying commands for the %s module\", types.ModuleName),\n\t\tDisableFlagParsing: true,\n\t\tSuggestionsMinimumDistance: 2,\n\t\tRunE: client.ValidateCmd,\n\t}\n\tcmd.AddCommand(CmdListGreetings())\n\tcmd.AddCommand(CmdShowGreeting())\n\treturn cmd\n}\n// build the list greet command function\nfunc CmdListGreetings() *cobra.Command {\n\tcmd := &cobra.Command{\n\tUse: \"list-greetings\",\n\tShort: \"list all greetings\",\n\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tclientCtx, err := client.GetClientTxContext(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tpageReq, err := client.ReadPageRequest(cmd.Flags())\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tqueryClient := types.NewQueryClient(clientCtx)\n\t\t\tparams := &types.QueryAllGreetRequest{\n\t\t\tPagination: pageReq,\n\t\t\t}\n\t\t\tres, err := queryClient.GreetAll(context.Background(), params)\n\t\t\tif err != nil {\n\t\t\treturn err\n\t\t\t}\n\t\t\treturn clientCtx.PrintProto(res)\n\t\t},\n\t}\n\tflags.AddQueryFlagsToCmd(cmd)\n\treturn cmd\n}\n// build the show greet command function\nfunc CmdShowGreeting() *cobra.Command {\n\tcmd := &cobra.Command{\n\tUse: \"get-greeting [id]\",\n\tShort: \"shows a greeting\",\n\tArgs: cobra.ExactArgs(1),\n\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tclientCtx, err := client.GetClientTxContext(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tqueryClient := types.NewQueryClient(clientCtx)\n\t\t\tparams := &types.QueryGetGreetRequest{\n\t\t\tId: args[0],\n\t\t\t}\n\t\t\tres, err := queryClient.Greet(context.Background(), params)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\treturn clientCtx.PrintProto(res)\n\t\t},\n\t}\n\tflags.AddQueryFlagsToCmd(cmd)\n\treturn cmd\n}","setting-up-our-modules-package#Setting up our Module's package":"Now that we have all the basic functionality set up for our greet module, let's bring it all together and get our module ready to be used & tested, create a new file x/greet/module.go.Here we will start by implementing our AppModuleBasic && AppModule interfaces.\npackage greet\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"github.com/cosmos/cosmos-sdk/client\"\n\t\"github.com/cosmos/cosmos-sdk/codec\"\n\tcdctypes \"github.com/cosmos/cosmos-sdk/codec/types\"\n\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n\t\"github.com/cosmos/cosmos-sdk/types/module\"\n\t\"github.com/gorilla/mux\"\n\t\"github.com/grpc-ecosystem/grpc-gateway/runtime\"\n\t\"github.com/cosmostation/mintstation/x/greet/client/cli\"\n\t\"github.com/cosmostation/mintstation/x/greet/keeper\"\n\t\"github.com/cosmostation/mintstation/x/greet/types\"\n\t\"github.com/spf13/cobra\"\n\tabci \"github.com/tendermint/tendermint/abci/types\"\n)\nvar (\n\t_ module.AppModule = AppModule{}\n\t_ module.AppModuleBasic = AppModuleBasic{}\n)\n/*\nThe AppModuleBasic interface defines the independent methods modules need to implement\nit follows this interface below\ntype AppModuleBasic interface {\n\tName() string\n\tRegisterLegacyAminoCodec(*codec.LegacyAmino)\n\tRegisterInterfaces(codectypes.InterfaceRegistry)\n\tDefaultGenesis(codec.JSONMarshaler) json.RawMessage\n\tValidateGenesis(codec.JSONMarshaler, client.TxEncodingConfig, json.RawMessage) error\n\t// client functionality\n\tRegisterRESTRoutes(client.Context, *mux.Router)\n\tRegisterGRPCRoutes(client.Context, *runtime.ServeMux)\n\tGetTxCmd() *cobra.Command\n\tGetQueryCmd() *cobra.Command\n}\n*/\ntype AppModuleBasic struct{}\n// Returns the name of the module as a string\nfunc (AppModuleBasic) Name() string {\n\treturn types.ModuleName\n}\nfunc (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {\n\tgs := types.DefaultGenesisState()\n\treturn cdc.MustMarshalJSON(&gs)\n}\nfunc (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {\n\treturn nil\n}\n// Registers the amino codec for the module, which is used to marshal\n// and unmarshal structs to/from []byte in order to persist them in the module's KVStore.\nfunc (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino){\n\ttypes.RegisterLegacyAminoCodec(cdc)\n}\n// Registers a module's interface types and their concrete implementations as proto.Message\nfunc (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) {\n\ttypes.RegisterInterfaces(registry)\n}\n// Registers gRPC routes for the module.\nfunc (a AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {\n\tif err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {\n\t\tpanic(err)\n\t}\n}\n// Registers the REST routes for the module. These routes will be used to map REST request to the module in order to process them\nfunc (a AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { }\n// Returns the root Tx command for the module. The subcommands of this root command are used by end-users\n// to generate new transactions containing messages defined in the module\nfunc (AppModuleBasic) GetTxCmd() *cobra.Command {\n\treturn cli.GetTxCmd()\n}\n// Return the root query command for the module. The subcommands of this root command are used by end-users\n// to generate new queries to the subset of the state defined by the module.\nfunc (AppModuleBasic) GetQueryCmd() *cobra.Command {\n\treturn cli.GetQueryCmd(types.StoreKey)\n}\n// -------------------------------------APPMODULE BELOW------------------------------------------------- //\n/*\nThe AppModule interface defines the inter-dependent methods that modules need to implement\nfollows the interface below\n\ttype AppModule interface {\n\t\tAppModuleGenesis\n\t\t// registers\n\t\tRegisterInvariants(sdk.InvariantRegistry)\n\t\t// routes\n\t\tRoute() sdk.Route\n\t\t// Deprecated: use RegisterServices\n\t\tQuerierRoute() string\n\t\t// Deprecated: use RegisterServices\n\t\tLegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier\n\t\t// RegisterServices allows a module to register services\n\t\tRegisterServices(Configurator)\n\t\t// ABCI\n\t\tBeginBlock(sdk.Context, abci.RequestBeginBlock)\n\t\tEndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate\n\t}\n*/\ntype AppModule struct{\n\tAppModuleBasic\n\tkeeper keeper.Keeper\n}\n// constructor\nfunc NewAppModule(keeper keeper.Keeper) AppModule {\n\treturn AppModule{\n\t\tAppModuleBasic: AppModuleBasic{},\n\t\tkeeper: keeper,\n\t}\n}\n// Returns the route for messages to be routed to the module by BaseApp.\nfunc (am AppModule) Name() string {\n\treturn am.AppModuleBasic.Name()\n}\n// registers the invariants of the module. If an invariant deviates from its predicted value,\n// the InvariantRegistry triggers appropriate logic (most often the chain will be halted).\nfunc (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) { }\n// Returns the route for messages to be routed to the module by BaseApp.\nfunc (AppModule) Route() sdk.Route {\n\treturn sdk.Route{}\n}\n// Returns the name of the module's query route, for queries to be routes to the module by BaseApp.deprecated\nfunc (AppModule) QuerierRoute() string {\n\treturn types.QuerierRoute\n}\n// Returns a querier given the query path, in order to process the query.\nfunc (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {\n\treturn keeper.NewQuerier(am.keeper, legacyQuerierCdc)\n}\nfunc (AppModule) ConsensusVersion() uint64 {\n\treturn 1\n}\n// Allows a module to register services.\nfunc (am AppModule) RegisterServices(cfg module.Configurator) {\n\ttypes.RegisterMsgServer(cfg.MsgServer(), NewMsgServerImpl(am.keeper))\n\ttypes.RegisterQueryServer(cfg.QueryServer(), am.keeper)\n}\nfunc (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate {\n\treturn []abci.ValidatorUpdate{}\n}\nfunc (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {\n\tgs := types.DefaultGenesisState()\n\treturn cdc.MustMarshalJSON(&gs)\n}\nfunc (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) { }\nfunc (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {\n\treturn []abci.ValidatorUpdate{}\n}\n// ----------------------------------MSGSERVER REGISTER------------------------//\nvar _ types.MsgServer = msgServer{}\ntype msgServer struct {\n\tkeeper keeper.Keeper\n}\nfunc (m msgServer) CreateGreet(c context.Context, msg *types.MsgCreateGreet) (*types.MsgCreateGreetResponse, error) {\n\tctx := sdk.UnwrapSDKContext(c)\n\tm.keeper.CreateGreet(ctx, types.MsgCreateGreet{Owner: msg.Owner, Message: msg.Message})\n\treturn &types.MsgCreateGreetResponse{}, nil\n}\nfunc NewMsgServerImpl(keeper keeper.Keeper) types.MsgServer {\n\treturn &msgServer{keeper: keeper}\n}","hooking-up-our-module-inside-appgo#Hooking up our module inside App.go":"inside app/app.go start off importing the greet module, it's types & keeper packages and add them to the following places:\nmodule.NewBasicManager() add greet.AppModuleBasic{}\ntype App struct {} add greetkeeper.Keeper\nsdk.NewKVStoreKeys() inside NewApp func add greettypes.StoreKey\ninside NewApp func add app.greetKeeper = greetKeeper.NewKeeper() and add arguments appCodec & keys[greettypes.StoreKey]\ninside NewApp find where we define app.mm & add greet.NewAppModule(app.greetKeeper),\nfinally add the greet module's name to SetOrderBeginBlockers, SetOrderEndBlockers && SetOrderInitGenesis","testing-our-new-module#Testing our new Module":"inside the root of our directory run docker build -t mintstation/mintstation:tutorial-demo .\nfind the directory for kvtool and open in your favorite code editor\nrun kvtool testnet gen-config mintstation --mintstation.configTemplate upgrade-v44 which will create a bunch of files inside full_configs/generated\nopen up the two docker-compose.yaml files the one inside generated & the one inside generated/mintstation and change the image to point to mintstation/mintstation:tutorial-demo this will point to the local image we just built\nchange into the full_configs/generated directory and run docker compose up -d\nnow run docker compose exec mintstationnode bash to bash into our mintstation cli inside the running container\nWe should now have access to our greet commands that we defined first we will test creating a new greeting, for that we will run the following command:mintstationd tx greet create-greeting \"hello world from mintstation chain\" --from whalenow let's test to see if the greeting message is able to be queried:mintstationd q greet list-greetingsWe should see something like this below:\ngreetings:\n- id: \"0\"\n message: hello world from mintstation chain\n owner: \npagination: null\nNow let's test if we can query the greeting by it's id which in our case will be \"0\", run the following:mintstationd q greet get-greeting 0We should see:\ngreeting:\n id: \"0\"\n message: hello world from mintstation chain\n owner: "}},"/extension/integration/cosmos/Deprecated/send-tx":{"title":"Send Transcation","data":{"":"Send transcation via Cosmostation Extension","code-using-cosmostationextension-client#Code using @cosmostation/extension-client":"import { SEND_TRANSACTION_MODE } from \"@cosmostation/extension-client/cosmos\";\n// ...\nconst response = await provider.sendTransaction(\n \"cosmos\",\n \"abc=\", // base64 string or Uint8Array\n SEND_TRANSACTION_MODE.ASYNC /* SEND_TRANSACTION_MODE or one of [0, 1, 2, 3] */\n);","vanilla-code#Vanilla Code":"const response = await window.cosmostation.cosmos.request({\n method: \"cos_sendTransaction\",\n params: { chainName: \"cosmos\", txBytes: \"abc=\", mode: 0 },\n});","response#Response":"export type SendTransactionResponse = {\n tx_response: SendTransaction;\n};\nexport type SendTransaction = {\n code: number;\n txhash: string;\n raw_log?: unknown;\n codespace?: unknown;\n tx?: unknown;\n log?: unknown;\n info?: unknown;\n height?: unknown;\n gas_wanted?: unknown;\n gas_used?: unknown;\n events?: unknown;\n data?: unknown;\n timestamp?: unknown;\n};\nexport const SEND_TRANSACTION_MODE = {\n UNSPECIFIED: 0,\n BLOCK: 1,\n SYNC: 2,\n ASYNC: 3,\n};\n{\n \"tx_response\": {\n \"code\": 0,\n \"codespace\": \"\",\n \"data\": \"\",\n \"events\": [],\n \"gas_used\": \"0\",\n \"gas_wanted\": \"0\",\n \"height\": \"0\",\n \"info\": \"\",\n \"logs\": [],\n \"raw_log\": \"[]\",\n \"timestamp\": \"\",\n \"tx\": null,\n \"txhash\": \"\"\n }\n}"}}} \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-12f868f64da6b3bf.js b/_next/static/chunks/pages/_app-d4789c20aba1fbbb.js similarity index 75% rename from _next/static/chunks/pages/_app-12f868f64da6b3bf.js rename to _next/static/chunks/pages/_app-d4789c20aba1fbbb.js index eae4978e..02700c39 100644 --- a/_next/static/chunks/pages/_app-12f868f64da6b3bf.js +++ b/_next/static/chunks/pages/_app-d4789c20aba1fbbb.js @@ -6,7 +6,7 @@ * @function * @param {GitUrl} obj The parsed Git url object. * @return {String} token prefix - */function buildToken(ee){return"bitbucket.org"===ee.source?"x-token-auth:"+ee.token+"@":ee.token+"@"}function buildPath(ee){return"bitbucket-server"===ee.source?"scm/"+ee.full_name:""+ee.full_name}gitUrlParse.stringify=function(ee,en){en=en||(ee.protocols&&ee.protocols.length?ee.protocols.join("+"):ee.protocol);var er=ee.port?":"+ee.port:"",ei=ee.user||"git",eo=ee.git_suffix?".git":"";switch(en){case"ssh":if(er)return"ssh://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;return ei+"@"+ee.resource+":"+ee.full_name+eo;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return en+"://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;case"http":case"https":return en+"://"+(ee.token?buildToken(ee):ee.user&&(ee.protocols.includes("http")||ee.protocols.includes("https"))?ee.user+"@":"")+ee.resource+er+"/"+buildPath(ee)+eo;default:return ee.href}},ee.exports=gitUrlParse},6337:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var ee=function(ee){for(var en=ee,er=getFrameElement(en);er;)er=getFrameElement(en=er.ownerDocument);return en}(window.document),en=[],er=null,ei=null;IntersectionObserver.prototype.THROTTLE_TIMEOUT=100,IntersectionObserver.prototype.POLL_INTERVAL=null,IntersectionObserver.prototype.USE_MUTATION_OBSERVER=!0,IntersectionObserver._setupCrossOriginUpdater=function(){return er||(er=function(ee,er){ei=ee&&er?convertFromParentRect(ee,er):getEmptyRect(),en.forEach(function(ee){ee._checkForIntersections()})}),er},IntersectionObserver._resetCrossOriginUpdater=function(){er=null,ei=null},IntersectionObserver.prototype.observe=function(ee){if(!this._observationTargets.some(function(en){return en.element==ee})){if(!(ee&&1==ee.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:ee,entry:null}),this._monitorIntersections(ee.ownerDocument),this._checkForIntersections()}},IntersectionObserver.prototype.unobserve=function(ee){this._observationTargets=this._observationTargets.filter(function(en){return en.element!=ee}),this._unmonitorIntersections(ee.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},IntersectionObserver.prototype.takeRecords=function(){var ee=this._queuedEntries.slice();return this._queuedEntries=[],ee},IntersectionObserver.prototype._initThresholds=function(ee){var en=ee||[0];return Array.isArray(en)||(en=[en]),en.sort().filter(function(ee,en,er){if("number"!=typeof ee||isNaN(ee)||ee<0||ee>1)throw Error("threshold must be a number between 0 and 1 inclusively");return ee!==er[en-1]})},IntersectionObserver.prototype._parseRootMargin=function(ee){var en=(ee||"0px").split(/\s+/).map(function(ee){var en=/^(-?\d*\.?\d+)(px|%)$/.exec(ee);if(!en)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(en[1]),unit:en[2]}});return en[1]=en[1]||en[0],en[2]=en[2]||en[0],en[3]=en[3]||en[1],en},IntersectionObserver.prototype._monitorIntersections=function(en){var er=en.defaultView;if(er&&-1==this._monitoringDocuments.indexOf(en)){var ei=this._checkForIntersections,eo=null,es=null;if(this.POLL_INTERVAL?eo=er.setInterval(ei,this.POLL_INTERVAL):(addEvent(er,"resize",ei,!0),addEvent(en,"scroll",ei,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in er&&(es=new er.MutationObserver(ei)).observe(en,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(en),this._monitoringUnsubscribes.push(function(){var ee=en.defaultView;ee&&(eo&&ee.clearInterval(eo),removeEvent(ee,"resize",ei,!0)),removeEvent(en,"scroll",ei,!0),es&&es.disconnect()}),en!=(this.root&&(this.root.ownerDocument||this.root)||ee)){var eu=getFrameElement(en);eu&&this._monitorIntersections(eu.ownerDocument)}}},IntersectionObserver.prototype._unmonitorIntersections=function(en){var er=this._monitoringDocuments.indexOf(en);if(-1!=er){var ei=this.root&&(this.root.ownerDocument||this.root)||ee;if(!this._observationTargets.some(function(ee){var er=ee.element.ownerDocument;if(er==en)return!0;for(;er&&er!=ei;){var eo=getFrameElement(er);if((er=eo&&eo.ownerDocument)==en)return!0}return!1})){var eo=this._monitoringUnsubscribes[er];if(this._monitoringDocuments.splice(er,1),this._monitoringUnsubscribes.splice(er,1),eo(),en!=ei){var es=getFrameElement(en);es&&this._unmonitorIntersections(es.ownerDocument)}}}},IntersectionObserver.prototype._unmonitorAllIntersections=function(){var ee=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var en=0;enen.indexOf(this)&&en.push(this)},IntersectionObserver.prototype._unregisterInstance=function(){var ee=en.indexOf(this);-1!=ee&&en.splice(ee,1)},window.IntersectionObserver=IntersectionObserver,window.IntersectionObserverEntry=IntersectionObserverEntry}function getFrameElement(ee){try{return ee.defaultView&&ee.defaultView.frameElement||null}catch(ee){return null}}function IntersectionObserverEntry(ee){this.time=ee.time,this.target=ee.target,this.rootBounds=ensureDOMRect(ee.rootBounds),this.boundingClientRect=ensureDOMRect(ee.boundingClientRect),this.intersectionRect=ensureDOMRect(ee.intersectionRect||getEmptyRect()),this.isIntersecting=!!ee.intersectionRect;var en=this.boundingClientRect,er=en.width*en.height,ei=this.intersectionRect,eo=ei.width*ei.height;er?this.intersectionRatio=Number((eo/er).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function IntersectionObserver(ee,en){var er=en||{};if("function"!=typeof ee)throw Error("callback must be a function");if(er.root&&1!=er.root.nodeType&&9!=er.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=ee,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(er.rootMargin),this.thresholds=this._initThresholds(er.threshold),this.root=er.root||null,this.rootMargin=this._rootMarginValues.map(function(ee){return ee.value+ee.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function now(){return window.performance&&performance.now&&performance.now()}function throttle(ee,en){var er=null;return function(){er||(er=setTimeout(function(){ee(),er=null},en))}}function addEvent(ee,en,er,ei){"function"==typeof ee.addEventListener?ee.addEventListener(en,er,ei||!1):"function"==typeof ee.attachEvent&&ee.attachEvent("on"+en,er)}function removeEvent(ee,en,er,ei){"function"==typeof ee.removeEventListener?ee.removeEventListener(en,er,ei||!1):"function"==typeof ee.detachEvent&&ee.detachEvent("on"+en,er)}function computeRectIntersection(ee,en){var er=Math.max(ee.top,en.top),ei=Math.min(ee.bottom,en.bottom),eo=Math.max(ee.left,en.left),es=Math.min(ee.right,en.right),eu=es-eo,ec=ei-er;return eu>=0&&ec>=0&&{top:er,bottom:ei,left:eo,right:es,width:eu,height:ec}||null}function getBoundingClientRect(ee){var en;try{en=ee.getBoundingClientRect()}catch(ee){}return en?(en.width&&en.height||(en={top:en.top,right:en.right,bottom:en.bottom,left:en.left,width:en.right-en.left,height:en.bottom-en.top}),en):getEmptyRect()}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function ensureDOMRect(ee){return!ee||"x"in ee?ee:{top:ee.top,y:ee.top,bottom:ee.bottom,left:ee.left,x:ee.left,right:ee.right,width:ee.width,height:ee.height}}function convertFromParentRect(ee,en){var er=en.top-ee.top,ei=en.left-ee.left;return{top:er,left:ei,height:en.height,width:en.width,bottom:er+en.height,right:ei+en.width}}function containsDeep(ee,en){for(var er=en;er;){if(er==ee)return!0;er=getParentNode(er)}return!1}function getParentNode(en){var er=en.parentNode;return 9==en.nodeType&&en!=ee?getFrameElement(en):(er&&er.assignedSlot&&(er=er.assignedSlot.parentNode),er&&11==er.nodeType&&er.host)?er.host:er}function isDoc(ee){return ee&&9===ee.nodeType}}()},9073:function(ee,en,er){"use strict";var ei=er(2337);function isSsh(ee){if(Array.isArray(ee))return -1!==ee.indexOf("ssh")||-1!==ee.indexOf("rsync");if("string"!=typeof ee)return!1;var en=ei(ee);if(ee=ee.substring(ee.indexOf("://")+3),isSsh(en))return!0;var er=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!ee.match(er)&&ee.indexOf("@"){},themes:[]},y=()=>{var ee;return null!==(ee=(0,ei.useContext)(ec))&&void 0!==ee?ee:ed},$=ee=>(0,ei.useContext)(ec)?ei.createElement(ei.Fragment,null,ee.children):ei.createElement(f,ee),eh=["light","dark"],f=({forcedTheme:ee,disableTransitionOnChange:en=!1,enableSystem:er=!0,enableColorScheme:eu=!0,storageKey:ed="theme",themes:ef=eh,defaultTheme:em=er?"system":"light",attribute:eg="data-theme",value:ex,children:ev,nonce:ey})=>{let[eb,e_]=(0,ei.useState)(()=>S(ed,em)),[ew,ek]=(0,ei.useState)(()=>S(ed)),eC=ex?Object.values(ex):ef,eE=(0,ei.useCallback)(ee=>{let ei=ee;if(!ei)return;"system"===ee&&er&&(ei=p());let es=ex?ex[ei]:ei,ec=en?b():null,ed=document.documentElement;if("class"===eg?(ed.classList.remove(...eC),es&&ed.classList.add(es)):es?ed.setAttribute(eg,es):ed.removeAttribute(eg),eu){let ee=eo.includes(em)?em:null,en=eo.includes(ei)?ei:ee;ed.style.colorScheme=en}null==ec||ec()},[]),eO=(0,ei.useCallback)(ee=>{e_(ee);try{localStorage.setItem(ed,ee)}catch(ee){}},[ee]),eT=(0,ei.useCallback)(en=>{let ei=p(en);ek(ei),"system"===eb&&er&&!ee&&eE("system")},[eb,ee]);(0,ei.useEffect)(()=>{let ee=window.matchMedia(es);return ee.addListener(eT),eT(ee),()=>ee.removeListener(eT)},[eT]),(0,ei.useEffect)(()=>{let e=ee=>{ee.key===ed&&eO(ee.newValue||em)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[eO]),(0,ei.useEffect)(()=>{eE(null!=ee?ee:eb)},[ee,eb]);let eP=(0,ei.useMemo)(()=>({theme:eb,setTheme:eO,forcedTheme:ee,resolvedTheme:"system"===eb?ew:eb,themes:er?[...ef,"system"]:ef,systemTheme:er?ew:void 0}),[eb,eO,ee,ew,er,ef]);return ei.createElement(ec.Provider,{value:eP},ei.createElement(ep,{forcedTheme:ee,disableTransitionOnChange:en,enableSystem:er,enableColorScheme:eu,storageKey:ed,themes:ef,defaultTheme:em,attribute:eg,value:ex,children:ev,attrs:eC,nonce:ey}),ev)},ep=(0,ei.memo)(({forcedTheme:ee,storageKey:en,attribute:er,enableSystem:eu,enableColorScheme:ec,defaultTheme:ed,value:eh,attrs:ep,nonce:ef})=>{let em="system"===ed,eg="class"===er?`var d=document.documentElement,c=d.classList;c.remove(${ep.map(ee=>`'${ee}'`).join(",")});`:`var d=document.documentElement,n='${er}',s='setAttribute';`,ex=ec?eo.includes(ed)&&ed?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${ed}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",$=(ee,en=!1,ei=!0)=>{let es=eh?eh[ee]:ee,eu=en?ee+"|| ''":`'${es}'`,ed="";return ec&&ei&&!en&&eo.includes(ee)&&(ed+=`d.style.colorScheme = '${ee}';`),"class"===er?ed+=en||es?`c.add(${eu})`:"null":es&&(ed+=`d[s](n,${eu})`),ed},ev=ee?`!function(){${eg}${$(ee)}}()`:eu?`!function(){try{${eg}var e=localStorage.getItem('${en}');if('system'===e||(!e&&${em})){var t='${es}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$("dark")}}else{${$("light")}}}else if(e){${eh?`var x=${JSON.stringify(eh)};`:""}${$(eh?"x[e]":"e",!0)}}${em?"":"else{"+$(ed,!1,!1)+"}"}${ex}}catch(e){}}()`:`!function(){try{${eg}var e=localStorage.getItem('${en}');if(e){${eh?`var x=${JSON.stringify(eh)};`:""}${$(eh?"x[e]":"e",!0)}}else{${$(ed,!1,!1)};}${ex}}catch(t){}}();`;return ei.createElement("script",{nonce:ef,dangerouslySetInnerHTML:{__html:ev}})},()=>!0),S=(ee,en)=>{let er;if(!eu){try{er=localStorage.getItem(ee)||void 0}catch(ee){}return er||en}},b=()=>{let ee=document.createElement("style");return ee.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(ee),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(ee)},1)}},p=ee=>(ee||(ee=window.matchMedia(es)),ee.matches?"dark":"light")},3454:function(ee,en,er){"use strict";var ei,eo;ee.exports=(null==(ei=er.g.process)?void 0:ei.env)&&"object"==typeof(null==(eo=er.g.process)?void 0:eo.env)?er.g.process:er(7663)},2327:function(ee,en,er){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return er(5337)}])},5337:function(ee,en,er){"use strict";let ei;er.r(en),er.d(en,{__toc:function(){return r1},default:function(){return _app}});var eo,es,eu,ec,ed,eh,ep,ef,em,eg,ex,ev,ey,eb,e_,ew,ek,eC=er(5893),eE=er(1163),eO=er(7294);function r(ee){var en,er,ei="";if("string"==typeof ee||"number"==typeof ee)ei+=ee;else if("object"==typeof ee){if(Array.isArray(ee))for(en=0;en{en(!0)},[]),ee}var eT=er(7222),eP="https://nextra.vercel.app",useFSRoute=()=>{let{locale:ee=eT.ZW,asPath:en,route:er}=(0,eE.useRouter)();return(0,eO.useMemo)(()=>{let ei=eT.hV.has(er)?er:en,{pathname:eo}=new URL(ei,eP),es=ee?eo.replace(RegExp(`\\.${ee}(\\/|$)`),"$1"):eo;return es.replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[en,ee,er])},eS=er(2643),eI=er(4861);!function(ee){function assertIs(ee){}function assertNever(ee){throw Error()}function joinValues(ee,en=" | "){return ee.map(ee=>"string"==typeof ee?`'${ee}'`:ee).join(en)}ee.assertEqual=ee=>ee,ee.assertIs=assertIs,ee.assertNever=assertNever,ee.arrayToEnum=ee=>{let en={};for(let er of ee)en[er]=er;return en},ee.getValidEnumValues=en=>{let er=ee.objectKeys(en).filter(ee=>"number"!=typeof en[en[ee]]),ei={};for(let ee of er)ei[ee]=en[ee];return ee.objectValues(ei)},ee.objectValues=en=>ee.objectKeys(en).map(function(ee){return en[ee]}),ee.objectKeys="function"==typeof Object.keys?ee=>Object.keys(ee):ee=>{let en=[];for(let er in ee)Object.prototype.hasOwnProperty.call(ee,er)&&en.push(er);return en},ee.find=(ee,en)=>{for(let er of ee)if(en(er))return er},ee.isInteger="function"==typeof Number.isInteger?ee=>Number.isInteger(ee):ee=>"number"==typeof ee&&isFinite(ee)&&Math.floor(ee)===ee,ee.joinValues=joinValues,ee.jsonStringifyReplacer=(ee,en)=>"bigint"==typeof en?en.toString():en}(ex||(ex={})),function(ee){ee.mergeShapes=(ee,en)=>({...ee,...en})}(ev||(ev={}));let ej=ex.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=ee=>{let en=typeof ee;switch(en){case"undefined":return ej.undefined;case"string":return ej.string;case"number":return isNaN(ee)?ej.nan:ej.number;case"boolean":return ej.boolean;case"function":return ej.function;case"bigint":return ej.bigint;case"symbol":return ej.symbol;case"object":if(Array.isArray(ee))return ej.array;if(null===ee)return ej.null;if(ee.then&&"function"==typeof ee.then&&ee.catch&&"function"==typeof ee.catch)return ej.promise;if("undefined"!=typeof Map&&ee instanceof Map)return ej.map;if("undefined"!=typeof Set&&ee instanceof Set)return ej.set;if("undefined"!=typeof Date&&ee instanceof Date)return ej.date;return ej.object;default:return ej.unknown}},eR=ex.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=ee=>{let en=JSON.stringify(ee,null,2);return en.replace(/"([^"]+)":/g,"$1:")};let ZodError=class ZodError extends Error{constructor(ee){super(),this.issues=[],this.addIssue=ee=>{this.issues=[...this.issues,ee]},this.addIssues=(ee=[])=>{this.issues=[...this.issues,...ee]};let en=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,en):this.__proto__=en,this.name="ZodError",this.issues=ee}get errors(){return this.issues}format(ee){let en=ee||function(ee){return ee.message},er={_errors:[]},processError=ee=>{for(let ei of ee.issues)if("invalid_union"===ei.code)ei.unionErrors.map(processError);else if("invalid_return_type"===ei.code)processError(ei.returnTypeError);else if("invalid_arguments"===ei.code)processError(ei.argumentsError);else if(0===ei.path.length)er._errors.push(en(ei));else{let ee=er,eo=0;for(;eoee.message){let en={},er=[];for(let ei of this.issues)ei.path.length>0?(en[ei.path[0]]=en[ei.path[0]]||[],en[ei.path[0]].push(ee(ei))):er.push(ee(ei));return{formErrors:er,fieldErrors:en}}get formErrors(){return this.flatten()}};ZodError.create=ee=>{let en=new ZodError(ee);return en};let errorMap=(ee,en)=>{let er;switch(ee.code){case eR.invalid_type:er=ee.received===ej.undefined?"Required":`Expected ${ee.expected}, received ${ee.received}`;break;case eR.invalid_literal:er=`Invalid literal value, expected ${JSON.stringify(ee.expected,ex.jsonStringifyReplacer)}`;break;case eR.unrecognized_keys:er=`Unrecognized key(s) in object: ${ex.joinValues(ee.keys,", ")}`;break;case eR.invalid_union:er="Invalid input";break;case eR.invalid_union_discriminator:er=`Invalid discriminator value. Expected ${ex.joinValues(ee.options)}`;break;case eR.invalid_enum_value:er=`Invalid enum value. Expected ${ex.joinValues(ee.options)}, received '${ee.received}'`;break;case eR.invalid_arguments:er="Invalid function arguments";break;case eR.invalid_return_type:er="Invalid function return type";break;case eR.invalid_date:er="Invalid date";break;case eR.invalid_string:"object"==typeof ee.validation?"includes"in ee.validation?(er=`Invalid input: must include "${ee.validation.includes}"`,"number"==typeof ee.validation.position&&(er=`${er} at one or more positions greater than or equal to ${ee.validation.position}`)):"startsWith"in ee.validation?er=`Invalid input: must start with "${ee.validation.startsWith}"`:"endsWith"in ee.validation?er=`Invalid input: must end with "${ee.validation.endsWith}"`:ex.assertNever(ee.validation):er="regex"!==ee.validation?`Invalid ${ee.validation}`:"Invalid";break;case eR.too_small:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at least":"more than"} ${ee.minimum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at least":"over"} ${ee.minimum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${ee.minimum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(ee.minimum))}`:"Invalid input";break;case eR.too_big:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at most":"less than"} ${ee.maximum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at most":"under"} ${ee.maximum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"bigint"===ee.type?`BigInt must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly":ee.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(ee.maximum))}`:"Invalid input";break;case eR.custom:er="Invalid input";break;case eR.invalid_intersection_types:er="Intersection results could not be merged";break;case eR.not_multiple_of:er=`Number must be a multiple of ${ee.multipleOf}`;break;case eR.not_finite:er="Number must be finite";break;default:er=en.defaultError,ex.assertNever(ee)}return{message:er}},eM=errorMap;function setErrorMap(ee){eM=ee}function getErrorMap(){return eM}let makeIssue=ee=>{let{data:en,path:er,errorMaps:ei,issueData:eo}=ee,es=[...er,...eo.path||[]],eu={...eo,path:es},ec="",ed=ei.filter(ee=>!!ee).slice().reverse();for(let ee of ed)ec=ee(eu,{data:en,defaultError:ec}).message;return{...eo,path:es,message:eo.message||ec}},eN=[];function addIssueToContext(ee,en){let er=makeIssue({issueData:en,data:ee.data,path:ee.path,errorMaps:[ee.common.contextualErrorMap,ee.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee)});ee.common.issues.push(er)}let ParseStatus=class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(ee,en){let er=[];for(let ei of en){if("aborted"===ei.status)return eA;"dirty"===ei.status&&ee.dirty(),er.push(ei.value)}return{status:ee.value,value:er}}static async mergeObjectAsync(ee,en){let er=[];for(let ee of en)er.push({key:await ee.key,value:await ee.value});return ParseStatus.mergeObjectSync(ee,er)}static mergeObjectSync(ee,en){let er={};for(let ei of en){let{key:en,value:eo}=ei;if("aborted"===en.status||"aborted"===eo.status)return eA;"dirty"===en.status&&ee.dirty(),"dirty"===eo.status&&ee.dirty(),"__proto__"!==en.value&&(void 0!==eo.value||ei.alwaysSet)&&(er[en.value]=eo.value)}return{status:ee.value,value:er}}};let eA=Object.freeze({status:"aborted"}),DIRTY=ee=>({status:"dirty",value:ee}),OK=ee=>({status:"valid",value:ee}),isAborted=ee=>"aborted"===ee.status,isDirty=ee=>"dirty"===ee.status,isValid=ee=>"valid"===ee.status,isAsync=ee=>"undefined"!=typeof Promise&&ee instanceof Promise;!function(ee){ee.errToObj=ee=>"string"==typeof ee?{message:ee}:ee||{},ee.toString=ee=>"string"==typeof ee?ee:null==ee?void 0:ee.message}(ey||(ey={}));let ParseInputLazyPath=class ParseInputLazyPath{constructor(ee,en,er,ei){this._cachedPath=[],this.parent=ee,this.data=en,this._path=er,this._key=ei}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};let handleResult=(ee,en)=>{if(isValid(en))return{success:!0,data:en.value};if(!ee.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let en=new ZodError(ee.common.issues);return this._error=en,this._error}}};function processCreateParams(ee){if(!ee)return{};let{errorMap:en,invalid_type_error:er,required_error:ei,description:eo}=ee;if(en&&(er||ei))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(en)return{errorMap:en,description:eo};let customMap=(ee,en)=>"invalid_type"!==ee.code?{message:en.defaultError}:void 0===en.data?{message:null!=ei?ei:en.defaultError}:{message:null!=er?er:en.defaultError};return{errorMap:customMap,description:eo}}let ZodType=class ZodType{constructor(ee){this.spa=this.safeParseAsync,this._def=ee,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(ee){return getParsedType(ee.data)}_getOrReturnCtx(ee,en){return en||{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}_processInputParams(ee){return{status:new ParseStatus,ctx:{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}}_parseSync(ee){let en=this._parse(ee);if(isAsync(en))throw Error("Synchronous parse encountered promise.");return en}_parseAsync(ee){let en=this._parse(ee);return Promise.resolve(en)}parse(ee,en){let er=this.safeParse(ee,en);if(er.success)return er.data;throw er.error}safeParse(ee,en){var er;let ei={common:{issues:[],async:null!==(er=null==en?void 0:en.async)&&void 0!==er&&er,contextualErrorMap:null==en?void 0:en.errorMap},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},eo=this._parseSync({data:ee,path:ei.path,parent:ei});return handleResult(ei,eo)}async parseAsync(ee,en){let er=await this.safeParseAsync(ee,en);if(er.success)return er.data;throw er.error}async safeParseAsync(ee,en){let er={common:{issues:[],contextualErrorMap:null==en?void 0:en.errorMap,async:!0},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},ei=this._parse({data:ee,path:er.path,parent:er}),eo=await (isAsync(ei)?ei:Promise.resolve(ei));return handleResult(er,eo)}refine(ee,en){let getIssueProperties=ee=>"string"==typeof en||void 0===en?{message:en}:"function"==typeof en?en(ee):en;return this._refinement((en,er)=>{let ei=ee(en),setError=()=>er.addIssue({code:eR.custom,...getIssueProperties(en)});return"undefined"!=typeof Promise&&ei instanceof Promise?ei.then(ee=>!!ee||(setError(),!1)):!!ei||(setError(),!1)})}refinement(ee,en){return this._refinement((er,ei)=>!!ee(er)||(ei.addIssue("function"==typeof en?en(er,ei):en),!1))}_refinement(ee){return new ZodEffects({schema:this,typeName:eb.ZodEffects,effect:{type:"refinement",refinement:ee}})}superRefine(ee){return this._refinement(ee)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(ee){return ZodUnion.create([this,ee],this._def)}and(ee){return ZodIntersection.create(this,ee,this._def)}transform(ee){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:eb.ZodEffects,effect:{type:"transform",transform:ee}})}default(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:en,typeName:eb.ZodDefault})}brand(){return new ZodBranded({typeName:eb.ZodBranded,type:this,...processCreateParams(this._def)})}catch(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:en,typeName:eb.ZodCatch})}describe(ee){let en=this.constructor;return new en({...this._def,description:ee})}pipe(ee){return ZodPipeline.create(this,ee)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};let eL=/^c[^\s-]{8,}$/i,eZ=/^[a-z][a-z0-9]*$/,eF=/^[0-9A-HJKMNP-TV-Z]{26}$/,eD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eU=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ez=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,eB=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,datetimeRegex=ee=>ee.precision?ee.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}Z$`):0===ee.precision?ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function isValidIP(ee,en){return!!(("v4"===en||!en)&&ez.test(ee)||("v6"===en||!en)&&eB.test(ee))}let ZodString=class ZodString extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=String(ee.data));let er=this._getType(ee);if(er!==ej.string){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.string,received:en.parsedType}),eA}let eo=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind)ee.data.lengther.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,maximum:er.value,type:"string",inclusive:!0,exact:!1,message:er.message}),eo.dirty());else if("length"===er.kind){let ei=ee.data.length>er.value,es=ee.data.lengthee.test(en),{validation:en,code:eR.invalid_string,...ey.errToObj(er)})}_addCheck(ee){return new ZodString({...this._def,checks:[...this._def.checks,ee]})}email(ee){return this._addCheck({kind:"email",...ey.errToObj(ee)})}url(ee){return this._addCheck({kind:"url",...ey.errToObj(ee)})}emoji(ee){return this._addCheck({kind:"emoji",...ey.errToObj(ee)})}uuid(ee){return this._addCheck({kind:"uuid",...ey.errToObj(ee)})}cuid(ee){return this._addCheck({kind:"cuid",...ey.errToObj(ee)})}cuid2(ee){return this._addCheck({kind:"cuid2",...ey.errToObj(ee)})}ulid(ee){return this._addCheck({kind:"ulid",...ey.errToObj(ee)})}ip(ee){return this._addCheck({kind:"ip",...ey.errToObj(ee)})}datetime(ee){var en;return"string"==typeof ee?this._addCheck({kind:"datetime",precision:null,offset:!1,message:ee}):this._addCheck({kind:"datetime",precision:void 0===(null==ee?void 0:ee.precision)?null:null==ee?void 0:ee.precision,offset:null!==(en=null==ee?void 0:ee.offset)&&void 0!==en&&en,...ey.errToObj(null==ee?void 0:ee.message)})}regex(ee,en){return this._addCheck({kind:"regex",regex:ee,...ey.errToObj(en)})}includes(ee,en){return this._addCheck({kind:"includes",value:ee,position:null==en?void 0:en.position,...ey.errToObj(null==en?void 0:en.message)})}startsWith(ee,en){return this._addCheck({kind:"startsWith",value:ee,...ey.errToObj(en)})}endsWith(ee,en){return this._addCheck({kind:"endsWith",value:ee,...ey.errToObj(en)})}min(ee,en){return this._addCheck({kind:"min",value:ee,...ey.errToObj(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee,...ey.errToObj(en)})}length(ee,en){return this._addCheck({kind:"length",value:ee,...ey.errToObj(en)})}nonempty(ee){return this.min(1,ey.errToObj(ee))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(ee=>"datetime"===ee.kind)}get isEmail(){return!!this._def.checks.find(ee=>"email"===ee.kind)}get isURL(){return!!this._def.checks.find(ee=>"url"===ee.kind)}get isEmoji(){return!!this._def.checks.find(ee=>"emoji"===ee.kind)}get isUUID(){return!!this._def.checks.find(ee=>"uuid"===ee.kind)}get isCUID(){return!!this._def.checks.find(ee=>"cuid"===ee.kind)}get isCUID2(){return!!this._def.checks.find(ee=>"cuid2"===ee.kind)}get isULID(){return!!this._def.checks.find(ee=>"ulid"===ee.kind)}get isIP(){return!!this._def.checks.find(ee=>"ip"===ee.kind)}get minLength(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxLength(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valueei?er:ei,es=parseInt(ee.toFixed(eo).replace(".","")),eu=parseInt(en.toFixed(eo).replace(".",""));return es%eu/Math.pow(10,eo)}ZodString.create=ee=>{var en;return new ZodString({checks:[],typeName:eb.ZodString,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(ee){let en;this._def.coerce&&(ee.data=Number(ee.data));let er=this._getType(ee);if(er!==ej.number){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.number,received:en.parsedType}),eA}let ei=new ParseStatus;for(let er of this._def.checks)if("int"===er.kind)ex.isInteger(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.invalid_type,expected:"integer",received:"float",message:er.message}),ei.dirty());else if("min"===er.kind){let eo=er.inclusive?ee.dataer.value:ee.data>=er.value;eo&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,maximum:er.value,type:"number",inclusive:er.inclusive,exact:!1,message:er.message}),ei.dirty())}else"multipleOf"===er.kind?0!==floatSafeRemainder(ee.data,er.value)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.not_multiple_of,multipleOf:er.value,message:er.message}),ei.dirty()):"finite"===er.kind?Number.isFinite(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.not_finite,message:er.message}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,ei){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(ei)}]})}_addCheck(ee){return new ZodNumber({...this._def,checks:[...this._def.checks,ee]})}int(ee){return this._addCheck({kind:"int",message:ey.toString(ee)})}positive(ee){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}finite(ee){return this._addCheck({kind:"finite",message:ey.toString(ee)})}safe(ee){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ey.toString(ee)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ey.toString(ee)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value"int"===ee.kind||"multipleOf"===ee.kind&&ex.isInteger(ee.value))}get isFinite(){let ee=null,en=null;for(let er of this._def.checks){if("finite"===er.kind||"int"===er.kind||"multipleOf"===er.kind)return!0;"min"===er.kind?(null===en||er.value>en)&&(en=er.value):"max"===er.kind&&(null===ee||er.valuenew ZodNumber({checks:[],typeName:eb.ZodNumber,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(ee){let en;this._def.coerce&&(ee.data=BigInt(ee.data));let er=this._getType(ee);if(er!==ej.bigint){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.bigint,received:en.parsedType}),eA}let ei=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind){let eo=er.inclusive?ee.dataer.value:ee.data>=er.value;eo&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,type:"bigint",maximum:er.value,inclusive:er.inclusive,message:er.message}),ei.dirty())}else"multipleOf"===er.kind?ee.data%er.value!==BigInt(0)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.not_multiple_of,multipleOf:er.value,message:er.message}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,ei){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(ei)}]})}_addCheck(ee){return new ZodBigInt({...this._def,checks:[...this._def.checks,ee]})}positive(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value{var en;return new ZodBigInt({checks:[],typeName:eb.ZodBigInt,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodBoolean=class ZodBoolean extends ZodType{_parse(ee){this._def.coerce&&(ee.data=!!ee.data);let en=this._getType(ee);if(en!==ej.boolean){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.boolean,received:en.parsedType}),eA}return OK(ee.data)}};ZodBoolean.create=ee=>new ZodBoolean({typeName:eb.ZodBoolean,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodDate=class ZodDate extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=new Date(ee.data));let er=this._getType(ee);if(er!==ej.date){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.date,received:en.parsedType}),eA}if(isNaN(ee.data.getTime())){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_date}),eA}let ei=new ParseStatus;for(let er of this._def.checks)"min"===er.kind?ee.data.getTime()er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,message:er.message,inclusive:!0,exact:!1,maximum:er.value,type:"date"}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:new Date(ee.data.getTime())}}_addCheck(ee){return new ZodDate({...this._def,checks:[...this._def.checks,ee]})}min(ee,en){return this._addCheck({kind:"min",value:ee.getTime(),message:ey.toString(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee.getTime(),message:ey.toString(en)})}get minDate(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return null!=ee?new Date(ee):null}get maxDate(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valuenew ZodDate({checks:[],coerce:(null==ee?void 0:ee.coerce)||!1,typeName:eb.ZodDate,...processCreateParams(ee)});let ZodSymbol=class ZodSymbol extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.symbol){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.symbol,received:en.parsedType}),eA}return OK(ee.data)}};ZodSymbol.create=ee=>new ZodSymbol({typeName:eb.ZodSymbol,...processCreateParams(ee)});let ZodUndefined=class ZodUndefined extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.undefined,received:en.parsedType}),eA}return OK(ee.data)}};ZodUndefined.create=ee=>new ZodUndefined({typeName:eb.ZodUndefined,...processCreateParams(ee)});let ZodNull=class ZodNull extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.null){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.null,received:en.parsedType}),eA}return OK(ee.data)}};ZodNull.create=ee=>new ZodNull({typeName:eb.ZodNull,...processCreateParams(ee)});let ZodAny=class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(ee){return OK(ee.data)}};ZodAny.create=ee=>new ZodAny({typeName:eb.ZodAny,...processCreateParams(ee)});let ZodUnknown=class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(ee){return OK(ee.data)}};ZodUnknown.create=ee=>new ZodUnknown({typeName:eb.ZodUnknown,...processCreateParams(ee)});let ZodNever=class ZodNever extends ZodType{_parse(ee){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.never,received:en.parsedType}),eA}};ZodNever.create=ee=>new ZodNever({typeName:eb.ZodNever,...processCreateParams(ee)});let ZodVoid=class ZodVoid extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.void,received:en.parsedType}),eA}return OK(ee.data)}};ZodVoid.create=ee=>new ZodVoid({typeName:eb.ZodVoid,...processCreateParams(ee)});let ZodArray=class ZodArray extends ZodType{_parse(ee){let{ctx:en,status:er}=this._processInputParams(ee),ei=this._def;if(en.parsedType!==ej.array)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.array,received:en.parsedType}),eA;if(null!==ei.exactLength){let ee=en.data.length>ei.exactLength.value,eo=en.data.lengthei.maxLength.value&&(addIssueToContext(en,{code:eR.too_big,maximum:ei.maxLength.value,type:"array",inclusive:!0,exact:!1,message:ei.maxLength.message}),er.dirty()),en.common.async)return Promise.all([...en.data].map((ee,er)=>ei.type._parseAsync(new ParseInputLazyPath(en,ee,en.path,er)))).then(ee=>ParseStatus.mergeArray(er,ee));let eo=[...en.data].map((ee,er)=>ei.type._parseSync(new ParseInputLazyPath(en,ee,en.path,er)));return ParseStatus.mergeArray(er,eo)}get element(){return this._def.type}min(ee,en){return new ZodArray({...this._def,minLength:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodArray({...this._def,maxLength:{value:ee,message:ey.toString(en)}})}length(ee,en){return new ZodArray({...this._def,exactLength:{value:ee,message:ey.toString(en)}})}nonempty(ee){return this.min(1,ee)}};function deepPartialify(ee){if(ee instanceof ZodObject){let en={};for(let er in ee.shape){let ei=ee.shape[er];en[er]=ZodOptional.create(deepPartialify(ei))}return new ZodObject({...ee._def,shape:()=>en})}return ee instanceof ZodArray?new ZodArray({...ee._def,type:deepPartialify(ee.element)}):ee instanceof ZodOptional?ZodOptional.create(deepPartialify(ee.unwrap())):ee instanceof ZodNullable?ZodNullable.create(deepPartialify(ee.unwrap())):ee instanceof ZodTuple?ZodTuple.create(ee.items.map(ee=>deepPartialify(ee))):ee}ZodArray.create=(ee,en)=>new ZodArray({type:ee,minLength:null,maxLength:null,exactLength:null,typeName:eb.ZodArray,...processCreateParams(en)});let ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let ee=this._def.shape(),en=ex.objectKeys(ee);return this._cached={shape:ee,keys:en}}_parse(ee){let en=this._getType(ee);if(en!==ej.object){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.object,received:en.parsedType}),eA}let{status:er,ctx:ei}=this._processInputParams(ee),{shape:eo,keys:es}=this._getCached(),eu=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(let ee in ei.data)es.includes(ee)||eu.push(ee);let ec=[];for(let ee of es){let en=eo[ee],er=ei.data[ee];ec.push({key:{status:"valid",value:ee},value:en._parse(new ParseInputLazyPath(ei,er,ei.path,ee)),alwaysSet:ee in ei.data})}if(this._def.catchall instanceof ZodNever){let ee=this._def.unknownKeys;if("passthrough"===ee)for(let ee of eu)ec.push({key:{status:"valid",value:ee},value:{status:"valid",value:ei.data[ee]}});else if("strict"===ee)eu.length>0&&(addIssueToContext(ei,{code:eR.unrecognized_keys,keys:eu}),er.dirty());else if("strip"===ee);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let ee=this._def.catchall;for(let en of eu){let er=ei.data[en];ec.push({key:{status:"valid",value:en},value:ee._parse(new ParseInputLazyPath(ei,er,ei.path,en)),alwaysSet:en in ei.data})}}return ei.common.async?Promise.resolve().then(async()=>{let ee=[];for(let en of ec){let er=await en.key;ee.push({key:er,value:await en.value,alwaysSet:en.alwaysSet})}return ee}).then(ee=>ParseStatus.mergeObjectSync(er,ee)):ParseStatus.mergeObjectSync(er,ec)}get shape(){return this._def.shape()}strict(ee){return ey.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==ee?{errorMap:(en,er)=>{var ei,eo,es,eu;let ec=null!==(es=null===(eo=(ei=this._def).errorMap)||void 0===eo?void 0:eo.call(ei,en,er).message)&&void 0!==es?es:er.defaultError;return"unrecognized_keys"===en.code?{message:null!==(eu=ey.errToObj(ee).message)&&void 0!==eu?eu:ec}:{message:ec}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(ee){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...ee})})}merge(ee){let en=new ZodObject({unknownKeys:ee._def.unknownKeys,catchall:ee._def.catchall,shape:()=>({...this._def.shape(),...ee._def.shape()}),typeName:eb.ZodObject});return en}setKey(ee,en){return this.augment({[ee]:en})}catchall(ee){return new ZodObject({...this._def,catchall:ee})}pick(ee){let en={};return ex.objectKeys(ee).forEach(er=>{ee[er]&&this.shape[er]&&(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}omit(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{ee[er]||(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}deepPartial(){return deepPartialify(this)}partial(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{let ei=this.shape[er];ee&&!ee[er]?en[er]=ei:en[er]=ei.optional()}),new ZodObject({...this._def,shape:()=>en})}required(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{if(ee&&!ee[er])en[er]=this.shape[er];else{let ee=this.shape[er],ei=ee;for(;ei instanceof ZodOptional;)ei=ei._def.innerType;en[er]=ei}}),new ZodObject({...this._def,shape:()=>en})}keyof(){return createZodEnum(ex.objectKeys(this.shape))}};ZodObject.create=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.strictCreate=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strict",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.lazycreate=(ee,en)=>new ZodObject({shape:ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)});let ZodUnion=class ZodUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.options;function handleResults(ee){for(let en of ee)if("valid"===en.result.status)return en.result;for(let er of ee)if("dirty"===er.result.status)return en.common.issues.push(...er.ctx.common.issues),er.result;let er=ee.map(ee=>new ZodError(ee.ctx.common.issues));return addIssueToContext(en,{code:eR.invalid_union,unionErrors:er}),eA}if(en.common.async)return Promise.all(er.map(async ee=>{let er={...en,common:{...en.common,issues:[]},parent:null};return{result:await ee._parseAsync({data:en.data,path:en.path,parent:er}),ctx:er}})).then(handleResults);{let ee;let ei=[];for(let eo of er){let er={...en,common:{...en.common,issues:[]},parent:null},es=eo._parseSync({data:en.data,path:en.path,parent:er});if("valid"===es.status)return es;"dirty"!==es.status||ee||(ee={result:es,ctx:er}),er.common.issues.length&&ei.push(er.common.issues)}if(ee)return en.common.issues.push(...ee.ctx.common.issues),ee.result;let eo=ei.map(ee=>new ZodError(ee));return addIssueToContext(en,{code:eR.invalid_union,unionErrors:eo}),eA}}get options(){return this._def.options}};ZodUnion.create=(ee,en)=>new ZodUnion({options:ee,typeName:eb.ZodUnion,...processCreateParams(en)});let getDiscriminator=ee=>{if(ee instanceof ZodLazy)return getDiscriminator(ee.schema);if(ee instanceof ZodEffects)return getDiscriminator(ee.innerType());if(ee instanceof ZodLiteral)return[ee.value];if(ee instanceof ZodEnum)return ee.options;if(ee instanceof ZodNativeEnum)return Object.keys(ee.enum);if(ee instanceof ZodDefault)return getDiscriminator(ee._def.innerType);if(ee instanceof ZodUndefined)return[void 0];else if(ee instanceof ZodNull)return[null];else return null};let ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.object)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.object,received:en.parsedType}),eA;let er=this.discriminator,ei=en.data[er],eo=this.optionsMap.get(ei);return eo?en.common.async?eo._parseAsync({data:en.data,path:en.path,parent:en}):eo._parseSync({data:en.data,path:en.path,parent:en}):(addIssueToContext(en,{code:eR.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[er]}),eA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(ee,en,er){let ei=new Map;for(let er of en){let en=getDiscriminator(er.shape[ee]);if(!en)throw Error(`A discriminator value for key \`${ee}\` could not be extracted from all schema options`);for(let eo of en){if(ei.has(eo))throw Error(`Discriminator property ${String(ee)} has duplicate value ${String(eo)}`);ei.set(eo,er)}}return new ZodDiscriminatedUnion({typeName:eb.ZodDiscriminatedUnion,discriminator:ee,options:en,optionsMap:ei,...processCreateParams(er)})}};function mergeValues(ee,en){let er=getParsedType(ee),ei=getParsedType(en);if(ee===en)return{valid:!0,data:ee};if(er===ej.object&&ei===ej.object){let er=ex.objectKeys(en),ei=ex.objectKeys(ee).filter(ee=>-1!==er.indexOf(ee)),eo={...ee,...en};for(let er of ei){let ei=mergeValues(ee[er],en[er]);if(!ei.valid)return{valid:!1};eo[er]=ei.data}return{valid:!0,data:eo}}if(er===ej.array&&ei===ej.array){if(ee.length!==en.length)return{valid:!1};let er=[];for(let ei=0;ei{if(isAborted(ee)||isAborted(ei))return eA;let eo=mergeValues(ee.value,ei.value);return eo.valid?((isDirty(ee)||isDirty(ei))&&en.dirty(),{status:en.value,value:eo.data}):(addIssueToContext(er,{code:eR.invalid_intersection_types}),eA)};return er.common.async?Promise.all([this._def.left._parseAsync({data:er.data,path:er.path,parent:er}),this._def.right._parseAsync({data:er.data,path:er.path,parent:er})]).then(([ee,en])=>handleParsed(ee,en)):handleParsed(this._def.left._parseSync({data:er.data,path:er.path,parent:er}),this._def.right._parseSync({data:er.data,path:er.path,parent:er}))}};ZodIntersection.create=(ee,en,er)=>new ZodIntersection({left:ee,right:en,typeName:eb.ZodIntersection,...processCreateParams(er)});let ZodTuple=class ZodTuple extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.array)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.array,received:er.parsedType}),eA;if(er.data.lengththis._def.items.length&&(addIssueToContext(er,{code:eR.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),en.dirty());let eo=[...er.data].map((ee,en)=>{let ei=this._def.items[en]||this._def.rest;return ei?ei._parse(new ParseInputLazyPath(er,ee,er.path,en)):null}).filter(ee=>!!ee);return er.common.async?Promise.all(eo).then(ee=>ParseStatus.mergeArray(en,ee)):ParseStatus.mergeArray(en,eo)}get items(){return this._def.items}rest(ee){return new ZodTuple({...this._def,rest:ee})}};ZodTuple.create=(ee,en)=>{if(!Array.isArray(ee))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:ee,typeName:eb.ZodTuple,rest:null,...processCreateParams(en)})};let ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.object)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.object,received:er.parsedType}),eA;let ei=[],eo=this._def.keyType,es=this._def.valueType;for(let ee in er.data)ei.push({key:eo._parse(new ParseInputLazyPath(er,ee,er.path,ee)),value:es._parse(new ParseInputLazyPath(er,er.data[ee],er.path,ee))});return er.common.async?ParseStatus.mergeObjectAsync(en,ei):ParseStatus.mergeObjectSync(en,ei)}get element(){return this._def.valueType}static create(ee,en,er){return new ZodRecord(en instanceof ZodType?{keyType:ee,valueType:en,typeName:eb.ZodRecord,...processCreateParams(er)}:{keyType:ZodString.create(),valueType:ee,typeName:eb.ZodRecord,...processCreateParams(en)})}};let ZodMap=class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.map)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.map,received:er.parsedType}),eA;let ei=this._def.keyType,eo=this._def.valueType,es=[...er.data.entries()].map(([ee,en],es)=>({key:ei._parse(new ParseInputLazyPath(er,ee,er.path,[es,"key"])),value:eo._parse(new ParseInputLazyPath(er,en,er.path,[es,"value"]))}));if(er.common.async){let ee=new Map;return Promise.resolve().then(async()=>{for(let er of es){let ei=await er.key,eo=await er.value;if("aborted"===ei.status||"aborted"===eo.status)return eA;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}})}{let ee=new Map;for(let er of es){let ei=er.key,eo=er.value;if("aborted"===ei.status||"aborted"===eo.status)return eA;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}}}};ZodMap.create=(ee,en,er)=>new ZodMap({valueType:en,keyType:ee,typeName:eb.ZodMap,...processCreateParams(er)});let ZodSet=class ZodSet extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.set)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.set,received:er.parsedType}),eA;let ei=this._def;null!==ei.minSize&&er.data.sizeei.maxSize.value&&(addIssueToContext(er,{code:eR.too_big,maximum:ei.maxSize.value,type:"set",inclusive:!0,exact:!1,message:ei.maxSize.message}),en.dirty());let eo=this._def.valueType;function finalizeSet(ee){let er=new Set;for(let ei of ee){if("aborted"===ei.status)return eA;"dirty"===ei.status&&en.dirty(),er.add(ei.value)}return{status:en.value,value:er}}let es=[...er.data.values()].map((ee,en)=>eo._parse(new ParseInputLazyPath(er,ee,er.path,en)));return er.common.async?Promise.all(es).then(ee=>finalizeSet(ee)):finalizeSet(es)}min(ee,en){return new ZodSet({...this._def,minSize:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodSet({...this._def,maxSize:{value:ee,message:ey.toString(en)}})}size(ee,en){return this.min(ee,en).max(ee,en)}nonempty(ee){return this.min(1,ee)}};ZodSet.create=(ee,en)=>new ZodSet({valueType:ee,minSize:null,maxSize:null,typeName:eb.ZodSet,...processCreateParams(en)});let ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.function)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.function,received:en.parsedType}),eA;function makeArgsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eR.invalid_arguments,argumentsError:er}})}function makeReturnsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eR.invalid_return_type,returnTypeError:er}})}let er={errorMap:en.common.contextualErrorMap},ei=en.data;if(this._def.returns instanceof ZodPromise){let ee=this;return OK(async function(...en){let eo=new ZodError([]),es=await ee._def.args.parseAsync(en,er).catch(ee=>{throw eo.addIssue(makeArgsIssue(en,ee)),eo}),eu=await Reflect.apply(ei,this,es),ec=await ee._def.returns._def.type.parseAsync(eu,er).catch(ee=>{throw eo.addIssue(makeReturnsIssue(eu,ee)),eo});return ec})}{let ee=this;return OK(function(...en){let eo=ee._def.args.safeParse(en,er);if(!eo.success)throw new ZodError([makeArgsIssue(en,eo.error)]);let es=Reflect.apply(ei,this,eo.data),eu=ee._def.returns.safeParse(es,er);if(!eu.success)throw new ZodError([makeReturnsIssue(es,eu.error)]);return eu.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...ee){return new ZodFunction({...this._def,args:ZodTuple.create(ee).rest(ZodUnknown.create())})}returns(ee){return new ZodFunction({...this._def,returns:ee})}implement(ee){let en=this.parse(ee);return en}strictImplement(ee){let en=this.parse(ee);return en}static create(ee,en,er){return new ZodFunction({args:ee||ZodTuple.create([]).rest(ZodUnknown.create()),returns:en||ZodUnknown.create(),typeName:eb.ZodFunction,...processCreateParams(er)})}};let ZodLazy=class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.getter();return er._parse({data:en.data,path:en.path,parent:en})}};ZodLazy.create=(ee,en)=>new ZodLazy({getter:ee,typeName:eb.ZodLazy,...processCreateParams(en)});let ZodLiteral=class ZodLiteral extends ZodType{_parse(ee){if(ee.data!==this._def.value){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{received:en.data,code:eR.invalid_literal,expected:this._def.value}),eA}return{status:"valid",value:ee.data}}get value(){return this._def.value}};function createZodEnum(ee,en){return new ZodEnum({values:ee,typeName:eb.ZodEnum,...processCreateParams(en)})}ZodLiteral.create=(ee,en)=>new ZodLiteral({value:ee,typeName:eb.ZodLiteral,...processCreateParams(en)});let ZodEnum=class ZodEnum extends ZodType{_parse(ee){if("string"!=typeof ee.data){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{expected:ex.joinValues(er),received:en.parsedType,code:eR.invalid_type}),eA}if(-1===this._def.values.indexOf(ee.data)){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{received:en.data,code:eR.invalid_enum_value,options:er}),eA}return OK(ee.data)}get options(){return this._def.values}get enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Values(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}extract(ee){return ZodEnum.create(ee)}exclude(ee){return ZodEnum.create(this.options.filter(en=>!ee.includes(en)))}};ZodEnum.create=createZodEnum;let ZodNativeEnum=class ZodNativeEnum extends ZodType{_parse(ee){let en=ex.getValidEnumValues(this._def.values),er=this._getOrReturnCtx(ee);if(er.parsedType!==ej.string&&er.parsedType!==ej.number){let ee=ex.objectValues(en);return addIssueToContext(er,{expected:ex.joinValues(ee),received:er.parsedType,code:eR.invalid_type}),eA}if(-1===en.indexOf(ee.data)){let ee=ex.objectValues(en);return addIssueToContext(er,{received:er.data,code:eR.invalid_enum_value,options:ee}),eA}return OK(ee.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(ee,en)=>new ZodNativeEnum({values:ee,typeName:eb.ZodNativeEnum,...processCreateParams(en)});let ZodPromise=class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.promise&&!1===en.common.async)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.promise,received:en.parsedType}),eA;let er=en.parsedType===ej.promise?en.data:Promise.resolve(en.data);return OK(er.then(ee=>this._def.type.parseAsync(ee,{path:en.path,errorMap:en.common.contextualErrorMap})))}};ZodPromise.create=(ee,en)=>new ZodPromise({type:ee,typeName:eb.ZodPromise,...processCreateParams(en)});let ZodEffects=class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eb.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),ei=this._def.effect||null,eo={addIssue:ee=>{addIssueToContext(er,ee),ee.fatal?en.abort():en.dirty()},get path(){return er.path}};if(eo.addIssue=eo.addIssue.bind(eo),"preprocess"===ei.type){let ee=ei.transform(er.data,eo);return er.common.issues.length?{status:"dirty",value:er.data}:er.common.async?Promise.resolve(ee).then(ee=>this._def.schema._parseAsync({data:ee,path:er.path,parent:er})):this._def.schema._parseSync({data:ee,path:er.path,parent:er})}if("refinement"===ei.type){let executeRefinement=ee=>{let en=ei.refinement(ee,eo);if(er.common.async)return Promise.resolve(en);if(en instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return ee};if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>"aborted"===ee.status?eA:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value).then(()=>({status:en.value,value:ee.value}))));{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eA:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value),{status:en.value,value:ee.value})}}if("transform"===ei.type){if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>isValid(ee)?Promise.resolve(ei.transform(ee.value,eo)).then(ee=>({status:en.value,value:ee})):ee);{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});if(!isValid(ee))return ee;let es=ei.transform(ee.value,eo);if(es instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:en.value,value:es}}}ex.assertNever(ei)}};ZodEffects.create=(ee,en,er)=>new ZodEffects({schema:ee,typeName:eb.ZodEffects,effect:en,...processCreateParams(er)}),ZodEffects.createWithPreprocess=(ee,en,er)=>new ZodEffects({schema:en,effect:{type:"preprocess",transform:ee},typeName:eb.ZodEffects,...processCreateParams(er)});let ZodOptional=class ZodOptional extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.undefined?OK(void 0):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodOptional.create=(ee,en)=>new ZodOptional({innerType:ee,typeName:eb.ZodOptional,...processCreateParams(en)});let ZodNullable=class ZodNullable extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.null?OK(null):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodNullable.create=(ee,en)=>new ZodNullable({innerType:ee,typeName:eb.ZodNullable,...processCreateParams(en)});let ZodDefault=class ZodDefault extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return en.parsedType===ej.undefined&&(er=this._def.defaultValue()),this._def.innerType._parse({data:er,path:en.path,parent:en})}removeDefault(){return this._def.innerType}};ZodDefault.create=(ee,en)=>new ZodDefault({innerType:ee,typeName:eb.ZodDefault,defaultValue:"function"==typeof en.default?en.default:()=>en.default,...processCreateParams(en)});let ZodCatch=class ZodCatch extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er={...en,common:{...en.common,issues:[]}},ei=this._def.innerType._parse({data:er.data,path:er.path,parent:{...er}});return isAsync(ei)?ei.then(ee=>({status:"valid",value:"valid"===ee.status?ee.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})})):{status:"valid",value:"valid"===ei.status?ei.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(ee,en)=>new ZodCatch({innerType:ee,typeName:eb.ZodCatch,catchValue:"function"==typeof en.catch?en.catch:()=>en.catch,...processCreateParams(en)});let ZodNaN=class ZodNaN extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.nan){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.nan,received:en.parsedType}),eA}return{status:"valid",value:ee.data}}};ZodNaN.create=ee=>new ZodNaN({typeName:eb.ZodNaN,...processCreateParams(ee)});let eW=Symbol("zod_brand");let ZodBranded=class ZodBranded extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return this._def.type._parse({data:er,path:en.path,parent:en})}unwrap(){return this._def.type}};let ZodPipeline=class ZodPipeline extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.common.async){let handleAsync=async()=>{let ee=await this._def.in._parseAsync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eA:"dirty"===ee.status?(en.dirty(),DIRTY(ee.value)):this._def.out._parseAsync({data:ee.value,path:er.path,parent:er})};return handleAsync()}{let ee=this._def.in._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eA:"dirty"===ee.status?(en.dirty(),{status:"dirty",value:ee.value}):this._def.out._parseSync({data:ee.value,path:er.path,parent:er})}}static create(ee,en){return new ZodPipeline({in:ee,out:en,typeName:eb.ZodPipeline})}};let ZodReadonly=class ZodReadonly extends ZodType{_parse(ee){let en=this._def.innerType._parse(ee);return isValid(en)&&(en.value=Object.freeze(en.value)),en}};ZodReadonly.create=(ee,en)=>new ZodReadonly({innerType:ee,typeName:eb.ZodReadonly,...processCreateParams(en)});let custom=(ee,en={},er)=>ee?ZodAny.create().superRefine((ei,eo)=>{var es,eu;if(!ee(ei)){let ee="function"==typeof en?en(ei):"string"==typeof en?{message:en}:en,ec=null===(eu=null!==(es=ee.fatal)&&void 0!==es?es:er)||void 0===eu||eu,ed="string"==typeof ee?{message:ee}:ee;eo.addIssue({code:"custom",...ed,fatal:ec})}}):ZodAny.create(),eH={object:ZodObject.lazycreate};!function(ee){ee.ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline",ee.ZodReadonly="ZodReadonly"}(eb||(eb={}));let instanceOfType=(ee,en={message:`Input not instance of ${ee.name}`})=>custom(en=>en instanceof ee,en),eq=ZodString.create,e$=ZodNumber.create,eQ=ZodNaN.create,eG=ZodBigInt.create,eK=ZodBoolean.create,eY=ZodDate.create,eX=ZodSymbol.create,eJ=ZodUndefined.create,e0=ZodNull.create,e1=ZodAny.create,e2=ZodUnknown.create,e4=ZodNever.create,e5=ZodVoid.create,e3=ZodArray.create,e6=ZodObject.create,e7=ZodObject.strictCreate,e9=ZodUnion.create,e8=ZodDiscriminatedUnion.create,tn=ZodIntersection.create,tr=ZodTuple.create,ti=ZodRecord.create,to=ZodMap.create,ts=ZodSet.create,tl=ZodFunction.create,tu=ZodLazy.create,tc=ZodLiteral.create,td=ZodEnum.create,th=ZodNativeEnum.create,tp=ZodPromise.create,tf=ZodEffects.create,tm=ZodOptional.create,tg=ZodNullable.create,tx=ZodEffects.createWithPreprocess,tv=ZodPipeline.create,ostring=()=>eq().optional(),onumber=()=>e$().optional(),oboolean=()=>eK().optional(),ty={string:ee=>ZodString.create({...ee,coerce:!0}),number:ee=>ZodNumber.create({...ee,coerce:!0}),boolean:ee=>ZodBoolean.create({...ee,coerce:!0}),bigint:ee=>ZodBigInt.create({...ee,coerce:!0}),date:ee=>ZodDate.create({...ee,coerce:!0})},tb=eA;var t_=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:eN,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:eA,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return ex},get objectUtil(){return ev},ZodParsedType:ej,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:eW,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:eH,get ZodFirstPartyTypeKind(){return eb},coerce:ty,any:e1,array:e3,bigint:eG,boolean:eK,date:eY,discriminatedUnion:e8,effect:tf,enum:td,function:tl,instanceof:instanceOfType,intersection:tn,lazy:tu,literal:tc,map:to,nan:eQ,nativeEnum:th,never:e4,null:e0,nullable:tg,number:e$,object:e6,oboolean:oboolean,onumber:onumber,optional:tm,ostring:ostring,pipeline:tv,preprocess:tx,promise:tp,record:ti,set:ts,strictObject:e7,string:eq,symbol:eX,transformer:tf,tuple:tr,undefined:eJ,union:e9,unknown:e2,void:e5,NEVER:tb,ZodIssueCode:eR,quotelessJson:quotelessJson,ZodError:ZodError}),tw=er(1664),tk=er.n(tw),tC={i8:"13.5.6"};er(6337);var tE=er(2010),tO={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tT=t_.strictObject({breadcrumb:t_.boolean(),collapsed:t_.boolean(),footer:t_.boolean(),layout:t_.enum(["default","full","raw"]),navbar:t_.boolean(),pagination:t_.boolean(),sidebar:t_.boolean(),timestamp:t_.boolean(),toc:t_.boolean(),typesetting:t_.enum(["default","article"])}),tP=t_.enum(["normal","hidden","children"]),tS=t_.string(),tI=t_.strictObject({href:t_.string(),newWindow:t_.boolean(),title:tS}),tj=t_.strictObject({display:tP.optional(),items:t_.record(tI.partial({href:!0,newWindow:!0})),title:tS,type:t_.literal("menu")}),tR=t_.strictObject({title:tS,type:t_.literal("separator")}),tM=tI.extend({display:tP,theme:tT,title:tS,type:t_.enum(["page","doc"])}).deepPartial();function extendMeta(ee={},en){"string"==typeof ee&&(ee={title:ee});let er=Object.assign({},en.theme,ee.theme);return Object.assign({},en,ee,{theme:er})}function findFirstRoute(ee){for(let en of ee){if(en.route)return en.route;if(en.children){let ee=findFirstRoute(en.children);if(ee)return ee}}}function normalizePages({list:ee,locale:en,defaultLocale:er,route:ei,docsRoot:eo="",underCurrentDocsRoot:es=!1,pageThemeContext:eu=tO}){let ec,ed;for(let er of ee)if("Meta"===er.kind){if(er.locale===en){ec=er.data;break}ec||(ec=er.data)}let eh=ec||{},ep=Object.keys(eh);for(let ee of ep)"string"==typeof eh[ee]&&(eh[ee]={title:eh[ee]});let ef=[],em=[],eg=[],ex=[],ev=[],ey=0,eb=eu,e_=[],ew=-1,ek=eh["*"]||{};delete ek.title,delete ek.href;let eC=ee.filter(ee=>"Meta"!==ee.kind&&!ee.name.startsWith("_")&&(!("locale"in ee)||!ee.locale||[en,er].includes(ee.locale))).sort((ee,en)=>{let er=ep.indexOf(ee.name),ei=ep.indexOf(en.name);return -1===er&&-1===ei?ee.name{let en;let er=[],ei=ep.indexOf(ee.name);if(-1!==ei){for(let ee=ew+1;ee({...ec,type:eE,...eI&&{title:eI},...ew&&{display:ew},...eS&&{children:[]}}),ej=getItem(),eR=getItem(),eM=getItem();if(eR.isUnderCurrentDocsTree=eP,"separator"===eE&&(ej.isUnderCurrentDocsTree=eP),ec.route===ei)switch(e_=[ej],ed=eE,eb={...eb,...eO},eE){case"page":case"menu":ey=ev.length;break;case"doc":ey=ex.length}if(!("hidden"===ew&&"Folder"!==ej.kind||eT.hV.has(ec.route))){if(eS){if(void 0!==eS.activeIndex&&void 0!==eS.activeType){switch(eb=eS.activeThemeContext,ed=eS.activeType,e_=[ej,...eS.activePath],ed){case"page":case"menu":ey=ev.length+eS.activeIndex;break;case"doc":ey=ex.length+eS.activeIndex}ec.withIndexPage&&"doc"===eE&&ey++}switch(eE){case"page":case"menu":eM.children.push(...eS.directories),eg.push(...eS.docsDirectories),eS.flatDirectories.length?(eM.firstChildRoute=findFirstRoute(eS.flatDirectories),ev.push(eM)):eM.withIndexPage&&ev.push(eM);break;case"doc":Array.isArray(eR.children)&&eR.children.push(...eS.docsDirectories),ej.withIndexPage&&"children"!==ew&&ex.push(eR)}em.push(...eS.flatDirectories),ex.push(...eS.flatDocsDirectories),Array.isArray(ej.children)&&ej.children.push(...eS.directories)}else switch(em.push(ej),eE){case"page":case"menu":ev.push(eM);break;case"doc":ex.push(eR)}switch("doc"===eE&&"children"===ew?eR.children&&(ef.push(...eR.children),eg.push(...eR.children)):ef.push(ej),eE){case"page":case"menu":eg.push(eM);break;case"doc":"children"!==ew&&eg.push(eR);break;case"separator":eg.push(ej)}}}return{activeType:ed,activeIndex:ey,activeThemeContext:eb,activePath:e_,directories:ef,flatDirectories:em,docsDirectories:eg,flatDocsDirectories:ex,topLevelNavbarItems:ev}}t_.string().or(tj).or(tR).or(tM);var tN=er(3458),tA=er.n(tN);function getWindow(ee){if(null==ee)return window;if("[object Window]"!==ee.toString()){var en=ee.ownerDocument;return en&&en.defaultView||window}return ee}function isElement(ee){var en=getWindow(ee).Element;return ee instanceof en||ee instanceof Element}function isHTMLElement(ee){var en=getWindow(ee).HTMLElement;return ee instanceof en||ee instanceof HTMLElement}function isShadowRoot(ee){if("undefined"==typeof ShadowRoot)return!1;var en=getWindow(ee).ShadowRoot;return ee instanceof en||ee instanceof ShadowRoot}var tL=Math.max,tZ=Math.min,tF=Math.round;function getUAString(){var ee=navigator.userAgentData;return null!=ee&&ee.brands&&Array.isArray(ee.brands)?ee.brands.map(function(ee){return ee.brand+"/"+ee.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ee,en,er){void 0===en&&(en=!1),void 0===er&&(er=!1);var ei=ee.getBoundingClientRect(),eo=1,es=1;en&&isHTMLElement(ee)&&(eo=ee.offsetWidth>0&&tF(ei.width)/ee.offsetWidth||1,es=ee.offsetHeight>0&&tF(ei.height)/ee.offsetHeight||1);var eu=(isElement(ee)?getWindow(ee):window).visualViewport,ec=!isLayoutViewport()&&er,ed=(ei.left+(ec&&eu?eu.offsetLeft:0))/eo,eh=(ei.top+(ec&&eu?eu.offsetTop:0))/es,ep=ei.width/eo,ef=ei.height/es;return{width:ep,height:ef,top:eh,right:ed+ep,bottom:eh+ef,left:ed,x:ed,y:eh}}function getWindowScroll(ee){var en=getWindow(ee);return{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function getHTMLElementScroll(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function getNodeScroll(ee){return ee!==getWindow(ee)&&isHTMLElement(ee)?getHTMLElementScroll(ee):getWindowScroll(ee)}function getNodeName(ee){return ee?(ee.nodeName||"").toLowerCase():null}function getDocumentElement(ee){return((isElement(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function getWindowScrollBarX(ee){return getBoundingClientRect(getDocumentElement(ee)).left+getWindowScroll(ee).scrollLeft}function getComputedStyle_getComputedStyle(ee){return getWindow(ee).getComputedStyle(ee)}function isScrollParent(ee){var en=getComputedStyle_getComputedStyle(ee),er=en.overflow,ei=en.overflowX,eo=en.overflowY;return/auto|scroll|overlay|hidden/.test(er+eo+ei)}function isElementScaled(ee){var en=ee.getBoundingClientRect(),er=tF(en.width)/ee.offsetWidth||1,ei=tF(en.height)/ee.offsetHeight||1;return 1!==er||1!==ei}function getCompositeRect(ee,en,er){void 0===er&&(er=!1);var ei=isHTMLElement(en),eo=isHTMLElement(en)&&isElementScaled(en),es=getDocumentElement(en),eu=getBoundingClientRect(ee,eo,er),ec={scrollLeft:0,scrollTop:0},ed={x:0,y:0};return(ei||!ei&&!er)&&(("body"!==getNodeName(en)||isScrollParent(es))&&(ec=getNodeScroll(en)),isHTMLElement(en)?(ed=getBoundingClientRect(en,!0),ed.x+=en.clientLeft,ed.y+=en.clientTop):es&&(ed.x=getWindowScrollBarX(es))),{x:eu.left+ec.scrollLeft-ed.x,y:eu.top+ec.scrollTop-ed.y,width:eu.width,height:eu.height}}function getLayoutRect(ee){var en=getBoundingClientRect(ee),er=ee.offsetWidth,ei=ee.offsetHeight;return 1>=Math.abs(en.width-er)&&(er=en.width),1>=Math.abs(en.height-ei)&&(ei=en.height),{x:ee.offsetLeft,y:ee.offsetTop,width:er,height:ei}}function getParentNode(ee){return"html"===getNodeName(ee)?ee:ee.assignedSlot||ee.parentNode||(isShadowRoot(ee)?ee.host:null)||getDocumentElement(ee)}function getScrollParent(ee){return["html","body","#document"].indexOf(getNodeName(ee))>=0?ee.ownerDocument.body:isHTMLElement(ee)&&isScrollParent(ee)?ee:getScrollParent(getParentNode(ee))}function listScrollParents(ee,en){void 0===en&&(en=[]);var er,ei=getScrollParent(ee),eo=ei===(null==(er=ee.ownerDocument)?void 0:er.body),es=getWindow(ei),eu=eo?[es].concat(es.visualViewport||[],isScrollParent(ei)?ei:[]):ei,ec=en.concat(eu);return eo?ec:ec.concat(listScrollParents(getParentNode(eu)))}function isTableElement(ee){return["table","td","th"].indexOf(getNodeName(ee))>=0}function getTrueOffsetParent(ee){return isHTMLElement(ee)&&"fixed"!==getComputedStyle_getComputedStyle(ee).position?ee.offsetParent:null}function getContainingBlock(ee){var en=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(ee)&&"fixed"===getComputedStyle_getComputedStyle(ee).position)return null;var er=getParentNode(ee);for(isShadowRoot(er)&&(er=er.host);isHTMLElement(er)&&0>["html","body"].indexOf(getNodeName(er));){var ei=getComputedStyle_getComputedStyle(er);if("none"!==ei.transform||"none"!==ei.perspective||"paint"===ei.contain||-1!==["transform","perspective"].indexOf(ei.willChange)||en&&"filter"===ei.willChange||en&&ei.filter&&"none"!==ei.filter)return er;er=er.parentNode}return null}function getOffsetParent(ee){for(var en=getWindow(ee),er=getTrueOffsetParent(ee);er&&isTableElement(er)&&"static"===getComputedStyle_getComputedStyle(er).position;)er=getTrueOffsetParent(er);return er&&("html"===getNodeName(er)||"body"===getNodeName(er)&&"static"===getComputedStyle_getComputedStyle(er).position)?en:er||getContainingBlock(ee)||en}var tD="top",tU="bottom",tV="right",tz="left",tB="auto",tW=[tD,tU,tV,tz],tH="start",tq="end",t$="clippingParents",tQ="viewport",tG="popper",tK="reference",tY=tW.reduce(function(ee,en){return ee.concat([en+"-"+tH,en+"-"+tq])},[]),tX=[].concat(tW,[tB]).reduce(function(ee,en){return ee.concat([en,en+"-"+tH,en+"-"+tq])},[]),tJ=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(ee){var en=new Map,er=new Set,ei=[];function sort(ee){er.add(ee.name),[].concat(ee.requires||[],ee.requiresIfExists||[]).forEach(function(ee){if(!er.has(ee)){var ei=en.get(ee);ei&&sort(ei)}}),ei.push(ee)}return ee.forEach(function(ee){en.set(ee.name,ee)}),ee.forEach(function(ee){er.has(ee.name)||sort(ee)}),ei}function orderModifiers(ee){var en=order(ee);return tJ.reduce(function(ee,er){return ee.concat(en.filter(function(ee){return ee.phase===er}))},[])}function debounce(ee){var en;return function(){return en||(en=new Promise(function(er){Promise.resolve().then(function(){en=void 0,er(ee())})})),en}}function mergeByName(ee){var en=ee.reduce(function(ee,en){var er=ee[en.name];return ee[en.name]=er?Object.assign({},er,en,{options:Object.assign({},er.options,en.options),data:Object.assign({},er.data,en.data)}):en,ee},{});return Object.keys(en).map(function(ee){return en[ee]})}var t0={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ee=arguments.length,en=Array(ee),er=0;er=0?"x":"y"}function computeOffsets(ee){var en,er=ee.reference,ei=ee.element,eo=ee.placement,es=eo?getBasePlacement(eo):null,eu=eo?getVariation(eo):null,ec=er.x+er.width/2-ei.width/2,ed=er.y+er.height/2-ei.height/2;switch(es){case tD:en={x:ec,y:er.y-ei.height};break;case tU:en={x:ec,y:er.y+er.height};break;case tV:en={x:er.x+er.width,y:ed};break;case tz:en={x:er.x-ei.width,y:ed};break;default:en={x:er.x,y:er.y}}var eh=es?getMainAxisFromPlacement(es):null;if(null!=eh){var ep="y"===eh?"height":"width";switch(eu){case tH:en[eh]=en[eh]-(er[ep]/2-ei[ep]/2);break;case tq:en[eh]=en[eh]+(er[ep]/2-ei[ep]/2)}}return en}var t2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ee,en){var er=ee.x,ei=ee.y,eo=en.devicePixelRatio||1;return{x:tF(er*eo)/eo||0,y:tF(ei*eo)/eo||0}}function mapToStyles(ee){var en,er,ei=ee.popper,eo=ee.popperRect,es=ee.placement,eu=ee.variation,ec=ee.offsets,ed=ee.position,eh=ee.gpuAcceleration,ep=ee.adaptive,ef=ee.roundOffsets,em=ee.isFixed,eg=ec.x,ex=void 0===eg?0:eg,ev=ec.y,ey=void 0===ev?0:ev,eb="function"==typeof ef?ef({x:ex,y:ey}):{x:ex,y:ey};ex=eb.x,ey=eb.y;var e_=ec.hasOwnProperty("x"),ew=ec.hasOwnProperty("y"),ek=tz,eC=tD,eE=window;if(ep){var eO=getOffsetParent(ei),eT="clientHeight",eP="clientWidth";eO===getWindow(ei)&&"static"!==getComputedStyle_getComputedStyle(eO=getDocumentElement(ei)).position&&"absolute"===ed&&(eT="scrollHeight",eP="scrollWidth"),(es===tD||(es===tz||es===tV)&&eu===tq)&&(eC=tU,ey-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.height:eO[eT])-eo.height,ey*=eh?1:-1),(es===tz||(es===tD||es===tU)&&eu===tq)&&(ek=tV,ex-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.width:eO[eP])-eo.width,ex*=eh?1:-1)}var eS=Object.assign({position:ed},ep&&t2),eI=!0===ef?roundOffsetsByDPR({x:ex,y:ey},getWindow(ei)):{x:ex,y:ey};return(ex=eI.x,ey=eI.y,eh)?Object.assign({},eS,((er={})[eC]=ew?"0":"",er[ek]=e_?"0":"",er.transform=1>=(eE.devicePixelRatio||1)?"translate("+ex+"px, "+ey+"px)":"translate3d("+ex+"px, "+ey+"px, 0)",er)):Object.assign({},eS,((en={})[eC]=ew?ey+"px":"",en[ek]=e_?ex+"px":"",en.transform="",en))}function distanceAndSkiddingToXY(ee,en,er){var ei=getBasePlacement(ee),eo=[tz,tD].indexOf(ei)>=0?-1:1,es="function"==typeof er?er(Object.assign({},en,{placement:ee})):er,eu=es[0],ec=es[1];return eu=eu||0,ec=(ec||0)*eo,[tz,tV].indexOf(ei)>=0?{x:ec,y:eu}:{x:eu,y:ec}}var t4={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(ee){return ee.replace(/left|right|bottom|top/g,function(ee){return t4[ee]})}var t5={start:"end",end:"start"};function getOppositeVariationPlacement(ee){return ee.replace(/start|end/g,function(ee){return t5[ee]})}function getViewportRect(ee,en){var er=getWindow(ee),ei=getDocumentElement(ee),eo=er.visualViewport,es=ei.clientWidth,eu=ei.clientHeight,ec=0,ed=0;if(eo){es=eo.width,eu=eo.height;var eh=isLayoutViewport();(eh||!eh&&"fixed"===en)&&(ec=eo.offsetLeft,ed=eo.offsetTop)}return{width:es,height:eu,x:ec+getWindowScrollBarX(ee),y:ed}}function getDocumentRect(ee){var en,er=getDocumentElement(ee),ei=getWindowScroll(ee),eo=null==(en=ee.ownerDocument)?void 0:en.body,es=tL(er.scrollWidth,er.clientWidth,eo?eo.scrollWidth:0,eo?eo.clientWidth:0),eu=tL(er.scrollHeight,er.clientHeight,eo?eo.scrollHeight:0,eo?eo.clientHeight:0),ec=-ei.scrollLeft+getWindowScrollBarX(ee),ed=-ei.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(eo||er).direction&&(ec+=tL(er.clientWidth,eo?eo.clientWidth:0)-es),{width:es,height:eu,x:ec,y:ed}}function contains(ee,en){var er=en.getRootNode&&en.getRootNode();if(ee.contains(en))return!0;if(er&&isShadowRoot(er)){var ei=en;do{if(ei&&ee.isSameNode(ei))return!0;ei=ei.parentNode||ei.host}while(ei)}return!1}function rectToClientRect(ee){return Object.assign({},ee,{left:ee.x,top:ee.y,right:ee.x+ee.width,bottom:ee.y+ee.height})}function getInnerBoundingClientRect(ee,en){var er=getBoundingClientRect(ee,!1,"fixed"===en);return er.top=er.top+ee.clientTop,er.left=er.left+ee.clientLeft,er.bottom=er.top+ee.clientHeight,er.right=er.left+ee.clientWidth,er.width=ee.clientWidth,er.height=ee.clientHeight,er.x=er.left,er.y=er.top,er}function getClientRectFromMixedType(ee,en,er){return en===tQ?rectToClientRect(getViewportRect(ee,er)):isElement(en)?getInnerBoundingClientRect(en,er):rectToClientRect(getDocumentRect(getDocumentElement(ee)))}function getClippingParents(ee){var en=listScrollParents(getParentNode(ee)),er=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(ee).position)>=0&&isHTMLElement(ee)?getOffsetParent(ee):ee;return isElement(er)?en.filter(function(ee){return isElement(ee)&&contains(ee,er)&&"body"!==getNodeName(ee)}):[]}function getClippingRect(ee,en,er,ei){var eo=[].concat("clippingParents"===en?getClippingParents(ee):[].concat(en),[er]),es=eo[0],eu=eo.reduce(function(en,er){var eo=getClientRectFromMixedType(ee,er,ei);return en.top=tL(eo.top,en.top),en.right=tZ(eo.right,en.right),en.bottom=tZ(eo.bottom,en.bottom),en.left=tL(eo.left,en.left),en},getClientRectFromMixedType(ee,es,ei));return eu.width=eu.right-eu.left,eu.height=eu.bottom-eu.top,eu.x=eu.left,eu.y=eu.top,eu}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(ee){return Object.assign({},getFreshSideObject(),ee)}function expandToHashMap(ee,en){return en.reduce(function(en,er){return en[er]=ee,en},{})}function detectOverflow(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=void 0===ei?ee.placement:ei,es=er.strategy,eu=void 0===es?ee.strategy:es,ec=er.boundary,ed=void 0===ec?t$:ec,eh=er.rootBoundary,ep=void 0===eh?tQ:eh,ef=er.elementContext,em=void 0===ef?tG:ef,eg=er.altBoundary,ex=void 0!==eg&&eg,ev=er.padding,ey=void 0===ev?0:ev,eb=mergePaddingObject("number"!=typeof ey?ey:expandToHashMap(ey,tW)),e_=em===tG?tK:tG,ew=ee.rects.popper,ek=ee.elements[ex?e_:em],eC=getClippingRect(isElement(ek)?ek:ek.contextElement||getDocumentElement(ee.elements.popper),ed,ep,eu),eE=getBoundingClientRect(ee.elements.reference),eO=computeOffsets({reference:eE,element:ew,strategy:"absolute",placement:eo}),eT=rectToClientRect(Object.assign({},ew,eO)),eP=em===tG?eT:eE,eS={top:eC.top-eP.top+eb.top,bottom:eP.bottom-eC.bottom+eb.bottom,left:eC.left-eP.left+eb.left,right:eP.right-eC.right+eb.right},eI=ee.modifiersData.offset;if(em===tG&&eI){var ej=eI[eo];Object.keys(eS).forEach(function(ee){var en=[tV,tU].indexOf(ee)>=0?1:-1,er=[tD,tU].indexOf(ee)>=0?"y":"x";eS[ee]+=ej[er]*en})}return eS}function computeAutoPlacement(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=er.boundary,es=er.rootBoundary,eu=er.padding,ec=er.flipVariations,ed=er.allowedAutoPlacements,eh=void 0===ed?tX:ed,ep=getVariation(ei),ef=ep?ec?tY:tY.filter(function(ee){return getVariation(ee)===ep}):tW,em=ef.filter(function(ee){return eh.indexOf(ee)>=0});0===em.length&&(em=ef);var eg=em.reduce(function(en,er){return en[er]=detectOverflow(ee,{placement:er,boundary:eo,rootBoundary:es,padding:eu})[getBasePlacement(er)],en},{});return Object.keys(eg).sort(function(ee,en){return eg[ee]-eg[en]})}function getExpandedFallbackPlacements(ee){if(getBasePlacement(ee)===tB)return[];var en=getOppositePlacement(ee);return[getOppositeVariationPlacement(ee),en,getOppositeVariationPlacement(en)]}function getAltAxis(ee){return"x"===ee?"y":"x"}function within(ee,en,er){return tL(ee,tZ(en,er))}function withinMaxClamp(ee,en,er){var ei=within(ee,en,er);return ei>er?er:ei}var toPaddingObject=function(ee,en){return mergePaddingObject("number"!=typeof(ee="function"==typeof ee?ee(Object.assign({},en.rects,{placement:en.placement})):ee)?ee:expandToHashMap(ee,tW))};function getSideOffsets(ee,en,er){return void 0===er&&(er={x:0,y:0}),{top:ee.top-en.height-er.y,right:ee.right-en.width+er.x,bottom:ee.bottom-en.height+er.y,left:ee.left-en.width-er.x}}function isAnySideFullyClipped(ee){return[tD,tV,tU,tz].some(function(en){return ee[en]>=0})}var t3=function(ee){void 0===ee&&(ee={});var en=ee,er=en.defaultModifiers,ei=void 0===er?[]:er,eo=en.defaultOptions,es=void 0===eo?t0:eo;return function(ee,en,er){void 0===er&&(er=es);var eo={placement:"bottom",orderedModifiers:[],options:Object.assign({},t0,es),modifiersData:{},elements:{reference:ee,popper:en},attributes:{},styles:{}},eu=[],ec=!1,ed={state:eo,setOptions:function(er){var eu="function"==typeof er?er(eo.options):er;cleanupModifierEffects(),eo.options=Object.assign({},es,eo.options,eu),eo.scrollParents={reference:isElement(ee)?listScrollParents(ee):ee.contextElement?listScrollParents(ee.contextElement):[],popper:listScrollParents(en)};var ec=orderModifiers(mergeByName([].concat(ei,eo.options.modifiers)));return eo.orderedModifiers=ec.filter(function(ee){return ee.enabled}),runModifierEffects(),ed.update()},forceUpdate:function(){if(!ec){var ee=eo.elements,en=ee.reference,er=ee.popper;if(areValidElements(en,er)){eo.rects={reference:getCompositeRect(en,getOffsetParent(er),"fixed"===eo.options.strategy),popper:getLayoutRect(er)},eo.reset=!1,eo.placement=eo.options.placement,eo.orderedModifiers.forEach(function(ee){return eo.modifiersData[ee.name]=Object.assign({},ee.data)});for(var ei=0;ei=0,eM=eR?"width":"height",eN=detectOverflow(en,{placement:eS,boundary:ep,rootBoundary:ef,altBoundary:em,padding:eh}),eA=eR?ej?tV:tz:ej?tU:tD;ek[eM]>eC[eM]&&(eA=getOppositePlacement(eA));var eL=getOppositePlacement(eA),eZ=[];if(es&&eZ.push(eN[eI]<=0),ec&&eZ.push(eN[eA]<=0,eN[eL]<=0),eZ.every(function(ee){return ee})){eT=eS,eO=!1;break}eE.set(eS,eZ)}if(eO)for(var eF=ex?3:1,_loop=function(ee){var en=ew.find(function(en){var er=eE.get(en);if(er)return er.slice(0,ee).every(function(ee){return ee})});if(en)return eT=en,"break"},eD=eF;eD>0&&"break"!==_loop(eD);eD--);en.placement!==eT&&(en.modifiersData[ei]._skip=!0,en.placement=eT,en.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,ei=ee.name,eo=er.mainAxis,es=void 0===eo||eo,eu=er.altAxis,ec=void 0!==eu&&eu,ed=er.boundary,eh=er.rootBoundary,ep=er.altBoundary,ef=er.padding,em=er.tether,eg=void 0===em||em,ex=er.tetherOffset,ev=void 0===ex?0:ex,ey=detectOverflow(en,{boundary:ed,rootBoundary:eh,padding:ef,altBoundary:ep}),eb=getBasePlacement(en.placement),e_=getVariation(en.placement),ew=!e_,ek=getMainAxisFromPlacement(eb),eC=getAltAxis(ek),eE=en.modifiersData.popperOffsets,eO=en.rects.reference,eT=en.rects.popper,eP="function"==typeof ev?ev(Object.assign({},en.rects,{placement:en.placement})):ev,eS="number"==typeof eP?{mainAxis:eP,altAxis:eP}:Object.assign({mainAxis:0,altAxis:0},eP),eI=en.modifiersData.offset?en.modifiersData.offset[en.placement]:null,ej={x:0,y:0};if(eE){if(es){var eR,eM="y"===ek?tD:tz,eN="y"===ek?tU:tV,eA="y"===ek?"height":"width",eL=eE[ek],eZ=eL+ey[eM],eF=eL-ey[eN],eD=eg?-eT[eA]/2:0,eU=e_===tH?eO[eA]:eT[eA],eV=e_===tH?-eT[eA]:-eO[eA],ez=en.elements.arrow,eB=eg&&ez?getLayoutRect(ez):{width:0,height:0},eW=en.modifiersData["arrow#persistent"]?en.modifiersData["arrow#persistent"].padding:getFreshSideObject(),eH=eW[eM],eq=eW[eN],e$=within(0,eO[eA],eB[eA]),eQ=ew?eO[eA]/2-eD-e$-eH-eS.mainAxis:eU-e$-eH-eS.mainAxis,eG=ew?-eO[eA]/2+eD+e$+eq+eS.mainAxis:eV+e$+eq+eS.mainAxis,eK=en.elements.arrow&&getOffsetParent(en.elements.arrow),eY=eK?"y"===ek?eK.clientTop||0:eK.clientLeft||0:0,eX=null!=(eR=null==eI?void 0:eI[ek])?eR:0,eJ=eL+eQ-eX-eY,e0=eL+eG-eX,e1=within(eg?tZ(eZ,eJ):eZ,eL,eg?tL(eF,e0):eF);eE[ek]=e1,ej[ek]=e1-eL}if(ec){var e2,e4="x"===ek?tD:tz,e5="x"===ek?tU:tV,e3=eE[eC],e6="y"===eC?"height":"width",e7=e3+ey[e4],e9=e3-ey[e5],e8=-1!==[tD,tz].indexOf(eb),tn=null!=(e2=null==eI?void 0:eI[eC])?e2:0,tr=e8?e7:e3-eO[e6]-eT[e6]-tn+eS.altAxis,ti=e8?e3+eO[e6]+eT[e6]-tn-eS.altAxis:e9,to=eg&&e8?withinMaxClamp(tr,e3,ti):within(eg?tr:e7,e3,eg?ti:e9);eE[eC]=to,ej[eC]=to-e3}en.modifiersData[ei]=ej}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(ee){var en,er=ee.state,ei=ee.name,eo=ee.options,es=er.elements.arrow,eu=er.modifiersData.popperOffsets,ec=getBasePlacement(er.placement),ed=getMainAxisFromPlacement(ec),eh=[tz,tV].indexOf(ec)>=0?"height":"width";if(es&&eu){var ep=toPaddingObject(eo.padding,er),ef=getLayoutRect(es),em="y"===ed?tD:tz,eg="y"===ed?tU:tV,ex=er.rects.reference[eh]+er.rects.reference[ed]-eu[ed]-er.rects.popper[eh],ev=eu[ed]-er.rects.reference[ed],ey=getOffsetParent(es),eb=ey?"y"===ed?ey.clientHeight||0:ey.clientWidth||0:0,e_=ex/2-ev/2,ew=ep[em],ek=eb-ef[eh]-ep[eg],eC=eb/2-ef[eh]/2+e_,eE=within(ew,eC,ek),eO=ed;er.modifiersData[ei]=((en={})[eO]=eE,en.centerOffset=eE-eC,en)}},effect:function(ee){var en=ee.state,er=ee.options.element,ei=void 0===er?"[data-popper-arrow]":er;null!=ei&&("string"!=typeof ei||(ei=en.elements.popper.querySelector(ei)))&&contains(en.elements.popper,ei)&&(en.elements.arrow=ei)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ee){var en=ee.state,er=ee.name,ei=en.rects.reference,eo=en.rects.popper,es=en.modifiersData.preventOverflow,eu=detectOverflow(en,{elementContext:"reference"}),ec=detectOverflow(en,{altBoundary:!0}),ed=getSideOffsets(eu,ei),eh=getSideOffsets(ec,eo,es),ep=isAnySideFullyClipped(ed),ef=isAnySideFullyClipped(eh);en.modifiersData[er]={referenceClippingOffsets:ed,popperEscapeOffsets:eh,isReferenceHidden:ep,hasPopperEscaped:ef},en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-reference-hidden":ep,"data-popper-escaped":ef})}}]}),t6=er(6304),t7=er.n(t6);function escapeStringRegexp(ee){if("string"!=typeof ee)throw TypeError("Expected a string");return ee.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var t9=er(2351);let t8=(0,eO.createContext)(null);t8.displayName="OpenClosedContext";var ne=((eo=ne||{})[eo.Open=1]="Open",eo[eo.Closed=2]="Closed",eo[eo.Closing=4]="Closing",eo[eo.Opening=8]="Opening",eo);function C(){return(0,eO.useContext)(t8)}function open_closed_c({value:ee,children:en}){return eO.createElement(t8.Provider,{value:ee},en)}var nt=er(2984),nn=er(4879),nr=er(6723),ni=er(3855),no=er(2180),ns=er(3784);function once_l(ee){let en={called:!1};return(...er)=>{if(!en.called)return en.called=!0,ee(...er)}}var nl=er(9362);function g(ee,...en){ee&&en.length>0&&ee.classList.add(...en)}function v(ee,...en){ee&&en.length>0&&ee.classList.remove(...en)}function b(ee,en){let er=(0,nl.k)();if(!ee)return er.dispose;let{transitionDuration:ei,transitionDelay:eo}=getComputedStyle(ee),[es,eu]=[ei,eo].map(ee=>{let[en=0]=ee.split(",").filter(Boolean).map(ee=>ee.includes("ms")?parseFloat(ee):1e3*parseFloat(ee)).sort((ee,en)=>en-ee);return en}),ec=es+eu;if(0!==ec){er.group(er=>{er.setTimeout(()=>{en(),er.dispose()},ec),er.addEventListener(ee,"transitionrun",ee=>{ee.target===ee.currentTarget&&er.dispose()})});let ei=er.addEventListener(ee,"transitionend",ee=>{ee.target===ee.currentTarget&&(en(),ei())})}else en();return er.add(()=>en()),er.dispose}function M(ee,en,er,ei){let eo=er?"enter":"leave",es=(0,nl.k)(),eu=void 0!==ei?once_l(ei):()=>{};"enter"===eo&&(ee.removeAttribute("hidden"),ee.style.display="");let ec=(0,nt.E)(eo,{enter:()=>en.enter,leave:()=>en.leave}),ed=(0,nt.E)(eo,{enter:()=>en.enterTo,leave:()=>en.leaveTo}),eh=(0,nt.E)(eo,{enter:()=>en.enterFrom,leave:()=>en.leaveFrom});return v(ee,...en.base,...en.enter,...en.enterTo,...en.enterFrom,...en.leave,...en.leaveFrom,...en.leaveTo,...en.entered),g(ee,...en.base,...ec,...eh),es.nextFrame(()=>{v(ee,...en.base,...ec,...eh),g(ee,...en.base,...ec,...ed),b(ee,()=>(v(ee,...en.base,...ec),g(ee,...en.base,...en.entered),eu()))}),es.dispose}function use_disposables_p(){let[ee]=(0,eO.useState)(nl.k);return(0,eO.useEffect)(()=>()=>ee.dispose(),[ee]),ee}function E({immediate:ee,container:en,direction:er,classes:ei,onStart:eo,onStop:es}){let eu=(0,nn.t)(),ec=use_disposables_p(),ed=(0,ni.E)(er);(0,nr.e)(()=>{ee&&(ed.current="enter")},[ee]),(0,nr.e)(()=>{let ee=(0,nl.k)();ec.add(ee.dispose);let er=en.current;if(er&&"idle"!==ed.current&&eu.current)return ee.dispose(),eo.current(ed.current),ee.add(M(er,ei.current,"enter"===ed.current,()=>{ee.dispose(),es.current(ed.current)})),ee.dispose},[er])}var nu=er(3781),nc=er(4067);function use_flags_c(ee=0){let[en,er]=(0,eO.useState)(ee),ei=(0,nn.t)(),eo=(0,eO.useCallback)(ee=>{ei.current&&er(en=>en|ee)},[en,ei]),es=(0,eO.useCallback)(ee=>!!(en&ee),[en]);return{flags:en,addFlag:eo,hasFlag:es,removeFlag:(0,eO.useCallback)(ee=>{ei.current&&er(en=>en&~ee)},[er,ei]),toggleFlag:(0,eO.useCallback)(ee=>{ei.current&&er(en=>en^ee)},[er])}}function S(ee=""){return ee.split(" ").filter(ee=>ee.trim().length>1)}let nd=(0,eO.createContext)(null);nd.displayName="TransitionContext";var nh=((es=nh||{}).Visible="visible",es.Hidden="hidden",es);function Se(){let ee=(0,eO.useContext)(nd);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}function Ne(){let ee=(0,eO.useContext)(np);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}let np=(0,eO.createContext)(null);function U(ee){return"children"in ee?U(ee.children):ee.current.filter(({el:ee})=>null!==ee.current).filter(({state:ee})=>"visible"===ee).length>0}function oe(ee,en){let er=(0,ni.E)(ee),ei=(0,eO.useRef)([]),eo=(0,nn.t)(),es=use_disposables_p(),eu=(0,nu.z)((ee,en=t9.l4.Hidden)=>{let eu=ei.current.findIndex(({el:en})=>en===ee);-1!==eu&&((0,nt.E)(en,{[t9.l4.Unmount](){ei.current.splice(eu,1)},[t9.l4.Hidden](){ei.current[eu].state="hidden"}}),es.microTask(()=>{var ee;!U(ei)&&eo.current&&(null==(ee=er.current)||ee.call(er))}))}),ec=(0,nu.z)(ee=>{let en=ei.current.find(({el:en})=>en===ee);return en?"visible"!==en.state&&(en.state="visible"):ei.current.push({el:ee,state:"visible"}),()=>eu(ee,t9.l4.Unmount)}),ed=(0,eO.useRef)([]),eh=(0,eO.useRef)(Promise.resolve()),ep=(0,eO.useRef)({enter:[],leave:[],idle:[]}),ef=(0,nu.z)((ee,er,ei)=>{ed.current.splice(0),en&&(en.chains.current[er]=en.chains.current[er].filter(([en])=>en!==ee)),null==en||en.chains.current[er].push([ee,new Promise(ee=>{ed.current.push(ee)})]),null==en||en.chains.current[er].push([ee,new Promise(ee=>{Promise.all(ep.current[er].map(([ee,en])=>en)).then(()=>ee())})]),"enter"===er?eh.current=eh.current.then(()=>null==en?void 0:en.wait.current).then(()=>ei(er)):ei(er)}),em=(0,nu.z)((ee,en,er)=>{Promise.all(ep.current[en].splice(0).map(([ee,en])=>en)).then(()=>{var ee;null==(ee=ed.current.shift())||ee()}).then(()=>er(en))});return(0,eO.useMemo)(()=>({children:ei,register:ec,unregister:eu,onStart:ef,onStop:em,wait:eh,chains:ep}),[ec,eu,ei,ef,em,ep,eh])}function xe(){}np.displayName="NestingContext";let nf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function se(ee){var en;let er={};for(let ei of nf)er[ei]=null!=(en=ee[ei])?en:xe;return er}function Re(ee){let en=(0,eO.useRef)(se(ee));return(0,eO.useEffect)(()=>{en.current=se(ee)},[ee]),en}let nm="div",ng=t9.AN.RenderStrategy;function De(ee,en){var er,ei;let{beforeEnter:eo,afterEnter:es,beforeLeave:eu,afterLeave:ec,enter:ed,enterFrom:eh,enterTo:ep,entered:ef,leave:em,leaveFrom:eg,leaveTo:ex,...ev}=ee,ey=(0,eO.useRef)(null),eb=(0,ns.T)(ey,en),e_=null==(er=ev.unmount)||er?t9.l4.Unmount:t9.l4.Hidden,{show:ew,appear:ek,initial:eC}=Se(),[eE,eT]=(0,eO.useState)(ew?"visible":"hidden"),eP=Ne(),{register:eS,unregister:eI}=eP;(0,eO.useEffect)(()=>eS(ey),[eS,ey]),(0,eO.useEffect)(()=>{if(e_===t9.l4.Hidden&&ey.current){if(ew&&"visible"!==eE){eT("visible");return}return(0,nt.E)(eE,{hidden:()=>eI(ey),visible:()=>eS(ey)})}},[eE,ey,eS,eI,ew,e_]);let ej=(0,ni.E)({base:S(ev.className),enter:S(ed),enterFrom:S(eh),enterTo:S(ep),entered:S(ef),leave:S(em),leaveFrom:S(eg),leaveTo:S(ex)}),eR=Re({beforeEnter:eo,afterEnter:es,beforeLeave:eu,afterLeave:ec}),eM=(0,no.H)();(0,eO.useEffect)(()=>{if(eM&&"visible"===eE&&null===ey.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[ey,eE,eM]);let eN=eC&&!ek,eA=ek&&ew&&eC,eL=!eM||eN?"idle":ew?"enter":"leave",eZ=use_flags_c(0),eF=(0,nu.z)(ee=>(0,nt.E)(ee,{enter:()=>{eZ.addFlag(ne.Opening),eR.current.beforeEnter()},leave:()=>{eZ.addFlag(ne.Closing),eR.current.beforeLeave()},idle:()=>{}})),eD=(0,nu.z)(ee=>(0,nt.E)(ee,{enter:()=>{eZ.removeFlag(ne.Opening),eR.current.afterEnter()},leave:()=>{eZ.removeFlag(ne.Closing),eR.current.afterLeave()},idle:()=>{}})),eU=oe(()=>{eT("hidden"),eI(ey)},eP);E({immediate:eA,container:ey,classes:ej,direction:eL,onStart:(0,ni.E)(ee=>{eU.onStart(ey,ee,eF)}),onStop:(0,ni.E)(ee=>{eU.onStop(ey,ee,eD),"leave"!==ee||U(eU)||(eT("hidden"),eI(ey))})});let eV=ev,ez={ref:eb};return eA?eV={...eV,className:(0,nc.A)(ev.className,...ej.current.enter,...ej.current.enterFrom)}:(eV.className=(0,nc.A)(ev.className,null==(ei=ey.current)?void 0:ei.className),""===eV.className&&delete eV.className),eO.createElement(np.Provider,{value:eU},eO.createElement(open_closed_c,{value:(0,nt.E)(eE,{visible:ne.Open,hidden:ne.Closed})|eZ.flags},(0,t9.sY)({ourProps:ez,theirProps:eV,defaultTag:nm,features:ng,visible:"visible"===eE,name:"Transition.Child"})))}function He(ee,en){let{show:er,appear:ei=!1,unmount:eo=!0,...es}=ee,eu=(0,eO.useRef)(null),ec=(0,ns.T)(eu,en);(0,no.H)();let ed=C();if(void 0===er&&null!==ed&&(er=(ed&ne.Open)===ne.Open),![!0,!1].includes(er))throw Error("A is used but it is missing a `show={true | false}` prop.");let[eh,ep]=(0,eO.useState)(er?"visible":"hidden"),ef=oe(()=>{ep("hidden")}),[em,eg]=(0,eO.useState)(!0),ex=(0,eO.useRef)([er]);(0,nr.e)(()=>{!1!==em&&ex.current[ex.current.length-1]!==er&&(ex.current.push(er),eg(!1))},[ex,er]);let ev=(0,eO.useMemo)(()=>({show:er,appear:ei,initial:em}),[er,ei,em]);(0,eO.useEffect)(()=>{if(er)ep("visible");else if(U(ef)){let ee=eu.current;if(!ee)return;let en=ee.getBoundingClientRect();0===en.x&&0===en.y&&0===en.width&&0===en.height&&ep("hidden")}else ep("hidden")},[er,ef]);let ey={unmount:eo},eb=(0,nu.z)(()=>{var en;em&&eg(!1),null==(en=ee.beforeEnter)||en.call(ee)}),e_=(0,nu.z)(()=>{var en;em&&eg(!1),null==(en=ee.beforeLeave)||en.call(ee)});return eO.createElement(np.Provider,{value:ef},eO.createElement(nd.Provider,{value:ev},(0,t9.sY)({ourProps:{...ey,as:eO.Fragment,children:eO.createElement(nv,{ref:ec,...ey,...es,beforeEnter:eb,beforeLeave:e_})},theirProps:{},defaultTag:eO.Fragment,features:ng,visible:"visible"===eh,name:"Transition"})))}function Fe(ee,en){let er=null!==(0,eO.useContext)(nd),ei=null!==C();return eO.createElement(eO.Fragment,null,!er&&ei?eO.createElement(nx,{ref:en,...ee}):eO.createElement(nv,{ref:en,...ee}))}let nx=(0,t9.yV)(He),nv=(0,t9.yV)(De),ny=Object.assign(nx,{Child:(0,t9.yV)(Fe),Root:nx});var nb=er(7192),n_=er(9946);function use_computed_i(ee,en){let[er,ei]=(0,eO.useState)(ee),eo=(0,ni.E)(ee);return(0,nr.e)(()=>ei(eo.current),[eo,ei,...en]),er}var nw=er(1363);function f(ee){throw Error("Unexpected object: "+ee)}var nk=((eu=nk||{})[eu.First=0]="First",eu[eu.Previous=1]="Previous",eu[eu.Next=2]="Next",eu[eu.Last=3]="Last",eu[eu.Specific=4]="Specific",eu[eu.Nothing=5]="Nothing",eu);function x(ee,en){let er=en.resolveItems();if(er.length<=0)return null;let ei=en.resolveActiveIndex(),eo=null!=ei?ei:-1,es=(()=>{switch(ee.focus){case 0:return er.findIndex(ee=>!en.resolveDisabled(ee));case 1:{let ee=er.slice().reverse().findIndex((ee,er,ei)=>(-1===eo||!(ei.length-er-1>=eo))&&!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 2:return er.findIndex((ee,er)=>!(er<=eo)&&!en.resolveDisabled(ee));case 3:{let ee=er.slice().reverse().findIndex(ee=>!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 4:return er.findIndex(er=>en.resolveId(er)===ee.id);case 5:return null;default:f(ee)}})();return -1===es?ei:es}function bugs_r(ee){let en=ee.parentElement,er=null;for(;en&&!(en instanceof HTMLFieldSetElement);)en instanceof HTMLLegendElement&&(er=en),en=en.parentElement;let ei=(null==en?void 0:en.getAttribute("disabled"))==="";return!(ei&&i(er))&&ei}function i(ee){if(!ee)return!1;let en=ee.previousElementSibling;for(;null!==en;){if(en instanceof HTMLLegendElement)return!1;en=en.previousElementSibling}return!0}var nC=er(4575),nE=er(4157);function d(ee,en,er){let ei=(0,ni.E)(en);(0,eO.useEffect)(()=>{function t(ee){ei.current(ee)}return document.addEventListener(ee,t,er),()=>document.removeEventListener(ee,t,er)},[ee,er])}function use_window_event_s(ee,en,er){let ei=(0,ni.E)(en);(0,eO.useEffect)(()=>{function t(ee){ei.current(ee)}return window.addEventListener(ee,t,er),()=>window.removeEventListener(ee,t,er)},[ee,er])}function h(ee,en,er=!0){let ei=(0,eO.useRef)(!1);function c(er,eo){if(!ei.current||er.defaultPrevented)return;let es=eo(er);if(null!==es&&es.getRootNode().contains(es)&&es.isConnected){for(let en of function u(ee){return"function"==typeof ee?u(ee()):Array.isArray(ee)||ee instanceof Set?ee:[ee]}(ee)){if(null===en)continue;let ee=en instanceof HTMLElement?en:en.current;if(null!=ee&&ee.contains(es)||er.composed&&er.composedPath().includes(ee))return}return(0,nC.sP)(es,nC.tJ.Loose)||-1===es.tabIndex||er.preventDefault(),en(er,es)}}(0,eO.useEffect)(()=>{requestAnimationFrame(()=>{ei.current=er})},[er]);let eo=(0,eO.useRef)(null);d("pointerdown",ee=>{var en,er;ei.current&&(eo.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),d("mousedown",ee=>{var en,er;ei.current&&(eo.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),d("click",ee=>{eo.current&&(c(ee,()=>eo.current),eo.current=null)},!0),d("touchend",ee=>c(ee,()=>ee.target instanceof HTMLElement?ee.target:null),!0),use_window_event_s("blur",ee=>c(ee,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var nO=er(6045);function form_e(ee={},en=null,er=[]){for(let[ei,eo]of Object.entries(ee))o(er,form_f(en,ei),eo);return er}function form_f(ee,en){return ee?ee+"["+en+"]":en}function o(ee,en,er){if(Array.isArray(er))for(let[ei,eo]of er.entries())o(ee,form_f(en,ei.toString()),eo);else er instanceof Date?ee.push([en,er.toISOString()]):"boolean"==typeof er?ee.push([en,er?"1":"0"]):"string"==typeof er?ee.push([en,er]):"number"==typeof er?ee.push([en,`${er}`]):null==er?ee.push([en,""]):form_e(er,en,ee)}var nT=er(5466);function use_controllable_T(ee,en,er){let[ei,eo]=(0,eO.useState)(er),es=void 0!==ee,eu=(0,eO.useRef)(es),ec=(0,eO.useRef)(!1),ed=(0,eO.useRef)(!1);return!es||eu.current||ec.current?es||!eu.current||ed.current||(ed.current=!0,eu.current=es,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(ec.current=!0,eu.current=es,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[es?ee:ei,(0,nu.z)(ee=>(es||eo(ee),null==en?void 0:en(ee)))]}function t(ee){return[ee.screenX,ee.screenY]}function use_tracked_pointer_u(){let ee=(0,eO.useRef)([-1,-1]);return{wasMoved(en){let er=t(en);return(ee.current[0]!==er[0]||ee.current[1]!==er[1])&&(ee.current=er,!0)},update(en){ee.current=t(en)}}}let nP=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function get_text_value_o(ee){var en,er;let ei=null!=(en=ee.innerText)?en:"",eo=ee.cloneNode(!0);if(!(eo instanceof HTMLElement))return ei;let es=!1;for(let ee of eo.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))ee.remove(),es=!0;let eu=es?null!=(er=eo.innerText)?er:"":ei;return nP.test(eu)&&(eu=eu.replace(nP,"")),eu}function get_text_value_g(ee){let en=ee.getAttribute("aria-label");if("string"==typeof en)return en.trim();let er=ee.getAttribute("aria-labelledby");if(er){let ee=er.split(" ").map(ee=>{let en=document.getElementById(ee);if(en){let ee=en.getAttribute("aria-label");return"string"==typeof ee?ee.trim():get_text_value_o(en).trim()}return null}).filter(Boolean);if(ee.length>0)return ee.join(", ")}return get_text_value_o(ee).trim()}function use_text_value_b(ee){let en=(0,eO.useRef)(""),er=(0,eO.useRef)("");return(0,nu.z)(()=>{let ei=ee.current;if(!ei)return"";let eo=ei.innerText;if(en.current===eo)return er.current;let es=get_text_value_g(ei).trim().toLowerCase();return en.current=eo,er.current=es,es})}var nS=((ec=nS||{})[ec.Open=0]="Open",ec[ec.Closed=1]="Closed",ec),nI=((ed=nI||{})[ed.Single=0]="Single",ed[ed.Multi=1]="Multi",ed),nj=((eh=nj||{})[eh.Pointer=0]="Pointer",eh[eh.Other=1]="Other",eh),nR=((ep=nR||{})[ep.OpenListbox=0]="OpenListbox",ep[ep.CloseListbox=1]="CloseListbox",ep[ep.GoToOption=2]="GoToOption",ep[ep.Search=3]="Search",ep[ep.ClearSearch=4]="ClearSearch",ep[ep.RegisterOption=5]="RegisterOption",ep[ep.UnregisterOption=6]="UnregisterOption",ep[ep.RegisterLabel=7]="RegisterLabel",ep);function listbox_z(ee,en=ee=>ee){let er=null!==ee.activeOptionIndex?ee.options[ee.activeOptionIndex]:null,ei=(0,nC.z2)(en(ee.options.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{options:ei,activeOptionIndex:eo}}let nM={1:ee=>ee.dataRef.current.disabled||1===ee.listboxState?ee:{...ee,activeOptionIndex:null,listboxState:1},0(ee){if(ee.dataRef.current.disabled||0===ee.listboxState)return ee;let en=ee.activeOptionIndex,{isSelected:er}=ee.dataRef.current,ei=ee.options.findIndex(ee=>er(ee.dataRef.current.value));return -1!==ei&&(en=ei),{...ee,listboxState:0,activeOptionIndex:en}},2(ee,en){var er;if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let ei=listbox_z(ee),eo=x(en,{resolveItems:()=>ei.options,resolveActiveIndex:()=>ei.activeOptionIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeOptionIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeOptionIndex?ee.options.slice(ee.activeOptionIndex+er).concat(ee.options.slice(0,ee.activeOptionIndex+er)):ee.options).find(ee=>{var en;return!ee.dataRef.current.disabled&&(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))}),es=eo?ee.options.indexOf(eo):-1;return -1===es||es===ee.activeOptionIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeOptionIndex:es,activationTrigger:1}},4:ee=>ee.dataRef.current.disabled||1===ee.listboxState||""===ee.searchQuery?ee:{...ee,searchQuery:""},5:(ee,en)=>{let er={id:en.id,dataRef:en.dataRef},ei=listbox_z(ee,ee=>[...ee,er]);return null===ee.activeOptionIndex&&ee.dataRef.current.isSelected(en.dataRef.current.value)&&(ei.activeOptionIndex=ei.options.indexOf(er)),{...ee,...ei}},6:(ee,en)=>{let er=listbox_z(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}},7:(ee,en)=>({...ee,labelId:en.id})},nN=(0,eO.createContext)(null);function listbox_(ee){let en=(0,eO.useContext)(nN);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,listbox_),en}return en}nN.displayName="ListboxActionsContext";let nA=(0,eO.createContext)(null);function listbox_U(ee){let en=(0,eO.useContext)(nA);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,listbox_U),en}return en}function Ve(ee,en){return(0,nt.E)(en.type,nM,ee,en)}nA.displayName="ListboxDataContext";let nL=eO.Fragment;function Qe(ee,en){let{value:er,defaultValue:ei,form:eo,name:es,onChange:eu,by:ec=(ee,en)=>ee===en,disabled:ed=!1,horizontal:eh=!1,multiple:ep=!1,...ef}=ee,em=eh?"horizontal":"vertical",eg=(0,ns.T)(en),[ex=ep?[]:void 0,ev]=use_controllable_T(er,eu,ei),[ey,eb]=(0,eO.useReducer)(Ve,{dataRef:(0,eO.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),e_=(0,eO.useRef)({static:!1,hold:!1}),ew=(0,eO.useRef)(null),ek=(0,eO.useRef)(null),eC=(0,eO.useRef)(null),eE=(0,nu.z)("string"==typeof ec?(ee,en)=>{let er=ec;return(null==ee?void 0:ee[er])===(null==en?void 0:en[er])}:ec),eT=(0,eO.useCallback)(ee=>(0,nt.E)(eP.mode,{1:()=>ex.some(en=>eE(en,ee)),0:()=>eE(ex,ee)}),[ex]),eP=(0,eO.useMemo)(()=>({...ey,value:ex,disabled:ed,mode:ep?1:0,orientation:em,compare:eE,isSelected:eT,optionsPropsRef:e_,labelRef:ew,buttonRef:ek,optionsRef:eC}),[ex,ed,ep,ey]);(0,nr.e)(()=>{ey.dataRef.current=eP},[eP]),h([eP.buttonRef,eP.optionsRef],(ee,en)=>{var er;eb({type:1}),(0,nC.sP)(en,nC.tJ.Loose)||(ee.preventDefault(),null==(er=eP.buttonRef.current)||er.focus())},0===eP.listboxState);let eS=(0,eO.useMemo)(()=>({open:0===eP.listboxState,disabled:ed,value:ex}),[eP,ed,ex]),eI=(0,nu.z)(ee=>{let en=eP.options.find(en=>en.id===ee);en&&eZ(en.dataRef.current.value)}),ej=(0,nu.z)(()=>{if(null!==eP.activeOptionIndex){let{dataRef:ee,id:en}=eP.options[eP.activeOptionIndex];eZ(ee.current.value),eb({type:2,focus:nk.Specific,id:en})}}),eR=(0,nu.z)(()=>eb({type:0})),eM=(0,nu.z)(()=>eb({type:1})),eN=(0,nu.z)((ee,en,er)=>ee===nk.Specific?eb({type:2,focus:nk.Specific,id:en,trigger:er}):eb({type:2,focus:ee,trigger:er})),eA=(0,nu.z)((ee,en)=>(eb({type:5,id:ee,dataRef:en}),()=>eb({type:6,id:ee}))),eL=(0,nu.z)(ee=>(eb({type:7,id:ee}),()=>eb({type:7,id:null}))),eZ=(0,nu.z)(ee=>(0,nt.E)(eP.mode,{0:()=>null==ev?void 0:ev(ee),1(){let en=eP.value.slice(),er=en.findIndex(en=>eE(en,ee));return -1===er?en.push(ee):en.splice(er,1),null==ev?void 0:ev(en)}})),eF=(0,nu.z)(ee=>eb({type:3,value:ee})),eD=(0,nu.z)(()=>eb({type:4})),eU=(0,eO.useMemo)(()=>({onChange:eZ,registerOption:eA,registerLabel:eL,goToOption:eN,closeListbox:eM,openListbox:eR,selectActiveOption:ej,selectOption:eI,search:eF,clearSearch:eD}),[]),eV={ref:eg},ez=(0,eO.useRef)(null),eB=use_disposables_p();return(0,eO.useEffect)(()=>{ez.current&&void 0!==ei&&eB.addEventListener(ez.current,"reset",()=>{null==ev||ev(ei)})},[ez,ev]),eO.createElement(nN.Provider,{value:eU},eO.createElement(nA.Provider,{value:eP},eO.createElement(open_closed_c,{value:(0,nt.E)(eP.listboxState,{0:ne.Open,1:ne.Closed})},null!=es&&null!=ex&&form_e({[es]:ex}).map(([ee,en],er)=>eO.createElement(nO._,{features:nO.A.Hidden,ref:0===er?ee=>{var en;ez.current=null!=(en=null==ee?void 0:ee.closest("form"))?en:null}:void 0,...(0,t9.oA)({key:ee,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:eo,name:ee,value:en})})),(0,t9.sY)({ourProps:eV,theirProps:ef,slot:eS,defaultTag:nL,name:"Listbox"}))))}let nZ="button";function Xe(ee,en){var er;let ei=(0,n_.M)(),{id:eo=`headlessui-listbox-button-${ei}`,...es}=ee,eu=listbox_U("Listbox.Button"),ec=listbox_("Listbox.Button"),ed=(0,ns.T)(eu.buttonRef,en),eh=use_disposables_p(),ep=(0,nu.z)(ee=>{switch(ee.key){case nw.R.Space:case nw.R.Enter:case nw.R.ArrowDown:ee.preventDefault(),ec.openListbox(),eh.nextFrame(()=>{eu.value||ec.goToOption(nk.First)});break;case nw.R.ArrowUp:ee.preventDefault(),ec.openListbox(),eh.nextFrame(()=>{eu.value||ec.goToOption(nk.Last)})}}),ef=(0,nu.z)(ee=>{ee.key===nw.R.Space&&ee.preventDefault()}),em=(0,nu.z)(ee=>{if(bugs_r(ee.currentTarget))return ee.preventDefault();0===eu.listboxState?(ec.closeListbox(),eh.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(ee.preventDefault(),ec.openListbox())}),eg=use_computed_i(()=>{if(eu.labelId)return[eu.labelId,eo].join(" ")},[eu.labelId,eo]),ex=(0,eO.useMemo)(()=>({open:0===eu.listboxState,disabled:eu.disabled,value:eu.value}),[eu]),ev={ref:ed,id:eo,type:(0,nE.f)(ee,eu.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(er=eu.optionsRef.current)?void 0:er.id,"aria-expanded":0===eu.listboxState,"aria-labelledby":eg,disabled:eu.disabled,onKeyDown:ep,onKeyUp:ef,onClick:em};return(0,t9.sY)({ourProps:ev,theirProps:es,slot:ex,defaultTag:nZ,name:"Listbox.Button"})}let nF="label";function ze(ee,en){let er=(0,n_.M)(),{id:ei=`headlessui-listbox-label-${er}`,...eo}=ee,es=listbox_U("Listbox.Label"),eu=listbox_("Listbox.Label"),ec=(0,ns.T)(es.labelRef,en);(0,nr.e)(()=>eu.registerLabel(ei),[ei]);let ed=(0,nu.z)(()=>{var ee;return null==(ee=es.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}),eh=(0,eO.useMemo)(()=>({open:0===es.listboxState,disabled:es.disabled}),[es]);return(0,t9.sY)({ourProps:{ref:ec,id:ei,onClick:ed},theirProps:eo,slot:eh,defaultTag:nF,name:"Listbox.Label"})}let nD="ul",nU=t9.AN.RenderStrategy|t9.AN.Static;function Ye(ee,en){var er;let ei=(0,n_.M)(),{id:eo=`headlessui-listbox-options-${ei}`,...es}=ee,eu=listbox_U("Listbox.Options"),ec=listbox_("Listbox.Options"),ed=(0,ns.T)(eu.optionsRef,en),eh=use_disposables_p(),ep=use_disposables_p(),ef=C(),em=null!==ef?(ef&ne.Open)===ne.Open:0===eu.listboxState;(0,eO.useEffect)(()=>{var ee;let en=eu.optionsRef.current;en&&0===eu.listboxState&&en!==(null==(ee=(0,nT.r)(en))?void 0:ee.activeElement)&&en.focus({preventScroll:!0})},[eu.listboxState,eu.optionsRef]);let eg=(0,nu.z)(ee=>{switch(ep.dispose(),ee.key){case nw.R.Space:if(""!==eu.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ec.search(ee.key);case nw.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),null!==eu.activeOptionIndex){let{dataRef:ee}=eu.options[eu.activeOptionIndex];ec.onChange(ee.current.value)}0===eu.mode&&(ec.closeListbox(),(0,nl.k)().nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}));break;case(0,nt.E)(eu.orientation,{vertical:nw.R.ArrowDown,horizontal:nw.R.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.Next);case(0,nt.E)(eu.orientation,{vertical:nw.R.ArrowUp,horizontal:nw.R.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.Previous);case nw.R.Home:case nw.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.First);case nw.R.End:case nw.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.Last);case nw.R.Escape:return ee.preventDefault(),ee.stopPropagation(),ec.closeListbox(),eh.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});case nw.R.Tab:ee.preventDefault(),ee.stopPropagation();break;default:1===ee.key.length&&(ec.search(ee.key),ep.setTimeout(()=>ec.clearSearch(),350))}}),ex=use_computed_i(()=>{var ee,en,er;return null!=(er=null==(ee=eu.labelRef.current)?void 0:ee.id)?er:null==(en=eu.buttonRef.current)?void 0:en.id},[eu.labelRef.current,eu.buttonRef.current]),ev=(0,eO.useMemo)(()=>({open:0===eu.listboxState}),[eu]),ey={"aria-activedescendant":null===eu.activeOptionIndex||null==(er=eu.options[eu.activeOptionIndex])?void 0:er.id,"aria-multiselectable":1===eu.mode||void 0,"aria-labelledby":ex,"aria-orientation":eu.orientation,id:eo,onKeyDown:eg,role:"listbox",tabIndex:0,ref:ed};return(0,t9.sY)({ourProps:ey,theirProps:es,slot:ev,defaultTag:nD,features:nU,visible:em,name:"Listbox.Options"})}let nV="li";function et(ee,en){let er=(0,n_.M)(),{id:ei=`headlessui-listbox-option-${er}`,disabled:eo=!1,value:es,...eu}=ee,ec=listbox_U("Listbox.Option"),ed=listbox_("Listbox.Option"),eh=null!==ec.activeOptionIndex&&ec.options[ec.activeOptionIndex].id===ei,ep=ec.isSelected(es),ef=(0,eO.useRef)(null),em=use_text_value_b(ef),eg=(0,ni.E)({disabled:eo,value:es,domRef:ef,get textValue(){return em()}}),ex=(0,ns.T)(en,ef);(0,nr.e)(()=>{if(0!==ec.listboxState||!eh||0===ec.activationTrigger)return;let ee=(0,nl.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ef.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[ef,eh,ec.listboxState,ec.activationTrigger,ec.activeOptionIndex]),(0,nr.e)(()=>ed.registerOption(ei,eg),[eg,ei]);let ev=(0,nu.z)(ee=>{if(eo)return ee.preventDefault();ed.onChange(es),0===ec.mode&&(ed.closeListbox(),(0,nl.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}))}),ey=(0,nu.z)(()=>{if(eo)return ed.goToOption(nk.Nothing);ed.goToOption(nk.Specific,ei)}),eb=use_tracked_pointer_u(),e_=(0,nu.z)(ee=>eb.update(ee)),ew=(0,nu.z)(ee=>{eb.wasMoved(ee)&&(eo||eh||ed.goToOption(nk.Specific,ei,0))}),ek=(0,nu.z)(ee=>{eb.wasMoved(ee)&&(eo||eh&&ed.goToOption(nk.Nothing))}),eC=(0,eO.useMemo)(()=>({active:eh,selected:ep,disabled:eo}),[eh,ep,eo]);return(0,t9.sY)({ourProps:{id:ei,ref:ex,role:"option",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,"aria-selected":ep,disabled:void 0,onClick:ev,onFocus:ey,onPointerEnter:e_,onMouseEnter:e_,onPointerMove:ew,onMouseMove:ew,onPointerLeave:ek,onMouseLeave:ek},theirProps:eu,slot:eC,defaultTag:nV,name:"Listbox.Option"})}let nz=Object.assign((0,t9.yV)(Qe),{Button:(0,t9.yV)(Xe),Label:(0,t9.yV)(ze),Options:(0,t9.yV)(Ye),Option:(0,t9.yV)(et)});var nB=er(3935),nW=er(9008),nH=er.n(nW);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=0||(eo[er]=ee[er]);return eo}var nq=["keyOverride"],n$=["crossOrigin"],nQ={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},buildOpenGraphMediaTags=function(ee,en,er){void 0===en&&(en=[]);var ei=void 0===er?{}:er,eo=ei.defaultWidth,es=ei.defaultHeight;return en.reduce(function(en,er,ei){return en.push(eO.createElement("meta",{key:"og:"+ee+":0"+ei,property:"og:"+ee,content:er.url})),er.alt&&en.push(eO.createElement("meta",{key:"og:"+ee+":alt0"+ei,property:"og:"+ee+":alt",content:er.alt})),er.secureUrl&&en.push(eO.createElement("meta",{key:"og:"+ee+":secure_url0"+ei,property:"og:"+ee+":secure_url",content:er.secureUrl.toString()})),er.type&&en.push(eO.createElement("meta",{key:"og:"+ee+":type0"+ei,property:"og:"+ee+":type",content:er.type.toString()})),er.width?en.push(eO.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:er.width.toString()})):eo&&en.push(eO.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:eo.toString()})),er.height?en.push(eO.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:er.height.toString()})):es&&en.push(eO.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:es.toString()})),en},[])},buildTags=function(ee){var en,er,ei,eo,es,eu=[];ee.titleTemplate&&(nQ.templateTitle=ee.titleTemplate);var ec="";ee.title?(ec=ee.title,nQ.templateTitle&&(ec=nQ.templateTitle.replace(/%s/g,function(){return ec}))):ee.defaultTitle&&(ec=ee.defaultTitle),ec&&eu.push(eO.createElement("title",{key:"title"},ec));var ed=void 0===ee.noindex?nQ.noindex||ee.dangerouslySetAllPagesToNoIndex:ee.noindex,eh=void 0===ee.nofollow?nQ.nofollow||ee.dangerouslySetAllPagesToNoFollow:ee.nofollow,ep=ee.norobots||nQ.norobots,ef="";if(ee.robotsProps){var em=ee.robotsProps,eg=em.nosnippet,ex=em.maxSnippet,ev=em.maxImagePreview,ey=em.maxVideoPreview,eb=em.noarchive,e_=em.noimageindex,ew=em.notranslate,ek=em.unavailableAfter;ef=(eg?",nosnippet":"")+(ex?",max-snippet:"+ex:"")+(ev?",max-image-preview:"+ev:"")+(eb?",noarchive":"")+(ek?",unavailable_after:"+ek:"")+(e_?",noimageindex":"")+(ey?",max-video-preview:"+ey:"")+(ew?",notranslate":"")}if(ee.norobots&&(nQ.norobots=!0),ed||eh?(ee.dangerouslySetAllPagesToNoIndex&&(nQ.noindex=!0),ee.dangerouslySetAllPagesToNoFollow&&(nQ.nofollow=!0),eu.push(eO.createElement("meta",{key:"robots",name:"robots",content:(ed?"noindex":"index")+","+(eh?"nofollow":"follow")+ef}))):(!ep||ef)&&eu.push(eO.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+ef})),ee.description&&eu.push(eO.createElement("meta",{key:"description",name:"description",content:ee.description})),ee.themeColor&&eu.push(eO.createElement("meta",{key:"theme-color",name:"theme-color",content:ee.themeColor})),ee.mobileAlternate&&eu.push(eO.createElement("link",{rel:"alternate",key:"mobileAlternate",media:ee.mobileAlternate.media,href:ee.mobileAlternate.href})),ee.languageAlternates&&ee.languageAlternates.length>0&&ee.languageAlternates.forEach(function(ee){eu.push(eO.createElement("link",{rel:"alternate",key:"languageAlternate-"+ee.hrefLang,hrefLang:ee.hrefLang,href:ee.href}))}),ee.twitter&&(ee.twitter.cardType&&eu.push(eO.createElement("meta",{key:"twitter:card",name:"twitter:card",content:ee.twitter.cardType})),ee.twitter.site&&eu.push(eO.createElement("meta",{key:"twitter:site",name:"twitter:site",content:ee.twitter.site})),ee.twitter.handle&&eu.push(eO.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:ee.twitter.handle}))),ee.facebook&&ee.facebook.appId&&eu.push(eO.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:ee.facebook.appId})),(null!=(en=ee.openGraph)&&en.title||ec)&&eu.push(eO.createElement("meta",{key:"og:title",property:"og:title",content:(null==(eo=ee.openGraph)?void 0:eo.title)||ec})),(null!=(er=ee.openGraph)&&er.description||ee.description)&&eu.push(eO.createElement("meta",{key:"og:description",property:"og:description",content:(null==(es=ee.openGraph)?void 0:es.description)||ee.description})),ee.openGraph){if((ee.openGraph.url||ee.canonical)&&eu.push(eO.createElement("meta",{key:"og:url",property:"og:url",content:ee.openGraph.url||ee.canonical})),ee.openGraph.type){var eC=ee.openGraph.type.toLowerCase();eu.push(eO.createElement("meta",{key:"og:type",property:"og:type",content:eC})),"profile"===eC&&ee.openGraph.profile?(ee.openGraph.profile.firstName&&eu.push(eO.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:ee.openGraph.profile.firstName})),ee.openGraph.profile.lastName&&eu.push(eO.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:ee.openGraph.profile.lastName})),ee.openGraph.profile.username&&eu.push(eO.createElement("meta",{key:"profile:username",property:"profile:username",content:ee.openGraph.profile.username})),ee.openGraph.profile.gender&&eu.push(eO.createElement("meta",{key:"profile:gender",property:"profile:gender",content:ee.openGraph.profile.gender}))):"book"===eC&&ee.openGraph.book?(ee.openGraph.book.authors&&ee.openGraph.book.authors.length&&ee.openGraph.book.authors.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"book:author:0"+en,property:"book:author",content:ee}))}),ee.openGraph.book.isbn&&eu.push(eO.createElement("meta",{key:"book:isbn",property:"book:isbn",content:ee.openGraph.book.isbn})),ee.openGraph.book.releaseDate&&eu.push(eO.createElement("meta",{key:"book:release_date",property:"book:release_date",content:ee.openGraph.book.releaseDate})),ee.openGraph.book.tags&&ee.openGraph.book.tags.length&&ee.openGraph.book.tags.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"book:tag:0"+en,property:"book:tag",content:ee}))})):"article"===eC&&ee.openGraph.article?(ee.openGraph.article.publishedTime&&eu.push(eO.createElement("meta",{key:"article:published_time",property:"article:published_time",content:ee.openGraph.article.publishedTime})),ee.openGraph.article.modifiedTime&&eu.push(eO.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:ee.openGraph.article.modifiedTime})),ee.openGraph.article.expirationTime&&eu.push(eO.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:ee.openGraph.article.expirationTime})),ee.openGraph.article.authors&&ee.openGraph.article.authors.length&&ee.openGraph.article.authors.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"article:author:0"+en,property:"article:author",content:ee}))}),ee.openGraph.article.section&&eu.push(eO.createElement("meta",{key:"article:section",property:"article:section",content:ee.openGraph.article.section})),ee.openGraph.article.tags&&ee.openGraph.article.tags.length&&ee.openGraph.article.tags.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"article:tag:0"+en,property:"article:tag",content:ee}))})):("video.movie"===eC||"video.episode"===eC||"video.tv_show"===eC||"video.other"===eC)&&ee.openGraph.video&&(ee.openGraph.video.actors&&ee.openGraph.video.actors.length&&ee.openGraph.video.actors.forEach(function(ee,en){ee.profile&&eu.push(eO.createElement("meta",{key:"video:actor:0"+en,property:"video:actor",content:ee.profile})),ee.role&&eu.push(eO.createElement("meta",{key:"video:actor:role:0"+en,property:"video:actor:role",content:ee.role}))}),ee.openGraph.video.directors&&ee.openGraph.video.directors.length&&ee.openGraph.video.directors.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"video:director:0"+en,property:"video:director",content:ee}))}),ee.openGraph.video.writers&&ee.openGraph.video.writers.length&&ee.openGraph.video.writers.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"video:writer:0"+en,property:"video:writer",content:ee}))}),ee.openGraph.video.duration&&eu.push(eO.createElement("meta",{key:"video:duration",property:"video:duration",content:ee.openGraph.video.duration.toString()})),ee.openGraph.video.releaseDate&&eu.push(eO.createElement("meta",{key:"video:release_date",property:"video:release_date",content:ee.openGraph.video.releaseDate})),ee.openGraph.video.tags&&ee.openGraph.video.tags.length&&ee.openGraph.video.tags.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"video:tag:0"+en,property:"video:tag",content:ee}))}),ee.openGraph.video.series&&eu.push(eO.createElement("meta",{key:"video:series",property:"video:series",content:ee.openGraph.video.series})))}ee.defaultOpenGraphImageWidth&&(nQ.defaultOpenGraphImageWidth=ee.defaultOpenGraphImageWidth),ee.defaultOpenGraphImageHeight&&(nQ.defaultOpenGraphImageHeight=ee.defaultOpenGraphImageHeight),ee.openGraph.images&&ee.openGraph.images.length&&eu.push.apply(eu,buildOpenGraphMediaTags("image",ee.openGraph.images,{defaultWidth:nQ.defaultOpenGraphImageWidth,defaultHeight:nQ.defaultOpenGraphImageHeight})),ee.defaultOpenGraphVideoWidth&&(nQ.defaultOpenGraphVideoWidth=ee.defaultOpenGraphVideoWidth),ee.defaultOpenGraphVideoHeight&&(nQ.defaultOpenGraphVideoHeight=ee.defaultOpenGraphVideoHeight),ee.openGraph.videos&&ee.openGraph.videos.length&&eu.push.apply(eu,buildOpenGraphMediaTags("video",ee.openGraph.videos,{defaultWidth:nQ.defaultOpenGraphVideoWidth,defaultHeight:nQ.defaultOpenGraphVideoHeight})),ee.openGraph.audio&&eu.push.apply(eu,buildOpenGraphMediaTags("audio",ee.openGraph.audio)),ee.openGraph.locale&&eu.push(eO.createElement("meta",{key:"og:locale",property:"og:locale",content:ee.openGraph.locale})),(ee.openGraph.siteName||ee.openGraph.site_name)&&eu.push(eO.createElement("meta",{key:"og:site_name",property:"og:site_name",content:ee.openGraph.siteName||ee.openGraph.site_name}))}return ee.canonical&&eu.push(eO.createElement("link",{rel:"canonical",href:ee.canonical,key:"canonical"})),ee.additionalMetaTags&&ee.additionalMetaTags.length>0&&ee.additionalMetaTags.forEach(function(ee){var en,er,ei=ee.keyOverride,eo=_objectWithoutPropertiesLoose(ee,nq);eu.push(eO.createElement("meta",_extends({key:"meta:"+(null!=(en=null!=(er=null!=ei?ei:eo.name)?er:eo.property)?en:eo.httpEquiv)},eo)))}),null!=(ei=ee.additionalLinkTags)&&ei.length&&ee.additionalLinkTags.forEach(function(ee){var en,er=ee.crossOrigin,ei=_objectWithoutPropertiesLoose(ee,n$),eo="anonymous"===er||"use-credentials"===er||""===er?er:void 0;eu.push(eO.createElement("link",_extends({key:"link"+(null!=(en=ei.keyOverride)?en:ei.href)+ei.rel},ei,{crossOrigin:eo})))}),eu},WithHead=function(ee){return eO.createElement(nH(),null,buildTags(ee))},NextSeo=function(ee){var en=ee.title,er=ee.themeColor,ei=ee.noindex,eo=ee.nofollow,es=ee.robotsProps,eu=ee.description,ec=ee.canonical,ed=ee.openGraph,eh=ee.facebook,ep=ee.twitter,ef=ee.additionalMetaTags,em=ee.titleTemplate,eg=ee.defaultTitle,ex=ee.mobileAlternate,ev=ee.languageAlternates,ey=ee.additionalLinkTags;return eO.createElement(eO.Fragment,null,eO.createElement(WithHead,{title:en,themeColor:er,noindex:ei,nofollow:eo,robotsProps:es,description:eu,canonical:ec,facebook:eh,openGraph:ed,additionalMetaTags:ef,twitter:ep,titleTemplate:em,defaultTitle:eg,mobileAlternate:ex,languageAlternates:ev,additionalLinkTags:ey}))};function F({container:ee,accept:en,walk:er,enabled:ei=!0}){let eo=(0,eO.useRef)(en),es=(0,eO.useRef)(er);(0,eO.useEffect)(()=>{eo.current=en,es.current=er},[en,er]),(0,nr.e)(()=>{if(!ee||!ei)return;let en=(0,nT.r)(ee);if(!en)return;let er=eo.current,eu=es.current,ec=Object.assign(ee=>er(ee),{acceptNode:er}),ed=en.createTreeWalker(ee,NodeFilter.SHOW_ELEMENT,ec,!1);for(;ed.nextNode();)eu(ed.currentNode)},[ee,ei,eo,es])}function use_owner_n(...ee){return(0,eO.useMemo)(()=>(0,nT.r)(...ee),[...ee])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var nG=((ef=nG||{})[ef.Open=0]="Open",ef[ef.Closed=1]="Closed",ef),nK=((em=nK||{})[em.Pointer=0]="Pointer",em[em.Other=1]="Other",em),nY=((eg=nY||{})[eg.OpenMenu=0]="OpenMenu",eg[eg.CloseMenu=1]="CloseMenu",eg[eg.GoToItem=2]="GoToItem",eg[eg.Search=3]="Search",eg[eg.ClearSearch=4]="ClearSearch",eg[eg.RegisterItem=5]="RegisterItem",eg[eg.UnregisterItem=6]="UnregisterItem",eg);function w(ee,en=ee=>ee){let er=null!==ee.activeItemIndex?ee.items[ee.activeItemIndex]:null,ei=(0,nC.z2)(en(ee.items.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{items:ei,activeItemIndex:eo}}let nX={1:ee=>1===ee.menuState?ee:{...ee,activeItemIndex:null,menuState:1},0:ee=>0===ee.menuState?ee:{...ee,__demoMode:!1,menuState:0},2:(ee,en)=>{var er;let ei=w(ee),eo=x(en,{resolveItems:()=>ei.items,resolveActiveIndex:()=>ei.activeItemIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeItemIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeItemIndex?ee.items.slice(ee.activeItemIndex+er).concat(ee.items.slice(0,ee.activeItemIndex+er)):ee.items).find(ee=>{var en;return(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))&&!ee.dataRef.current.disabled}),es=eo?ee.items.indexOf(eo):-1;return -1===es||es===ee.activeItemIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeItemIndex:es,activationTrigger:1}},4:ee=>""===ee.searchQuery?ee:{...ee,searchQuery:"",searchActiveItemIndex:null},5:(ee,en)=>{let er=w(ee,ee=>[...ee,{id:en.id,dataRef:en.dataRef}]);return{...ee,...er}},6:(ee,en)=>{let er=w(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}}},nJ=(0,eO.createContext)(null);function O(ee){let en=(0,eO.useContext)(nJ);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,O),en}return en}function menu_ye(ee,en){return(0,nt.E)(en.type,nX,ee,en)}nJ.displayName="MenuContext";let n0=eO.Fragment;function Me(ee,en){let{__demoMode:er=!1,...ei}=ee,eo=(0,eO.useReducer)(menu_ye,{__demoMode:er,menuState:er?0:1,buttonRef:(0,eO.createRef)(),itemsRef:(0,eO.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:es,itemsRef:eu,buttonRef:ec},ed]=eo,eh=(0,ns.T)(en);h([ec,eu],(ee,en)=>{var er;ed({type:1}),(0,nC.sP)(en,nC.tJ.Loose)||(ee.preventDefault(),null==(er=ec.current)||er.focus())},0===es);let ep=(0,nu.z)(()=>{ed({type:1})}),ef=(0,eO.useMemo)(()=>({open:0===es,close:ep}),[es,ep]),em={ref:eh};return eO.createElement(nJ.Provider,{value:eo},eO.createElement(open_closed_c,{value:(0,nt.E)(es,{0:ne.Open,1:ne.Closed})},(0,t9.sY)({ourProps:em,theirProps:ei,slot:ef,defaultTag:n0,name:"Menu"})))}let n1="button";function menu_Re(ee,en){var er;let ei=(0,n_.M)(),{id:eo=`headlessui-menu-button-${ei}`,...es}=ee,[eu,ec]=O("Menu.Button"),ed=(0,ns.T)(eu.buttonRef,en),eh=use_disposables_p(),ep=(0,nu.z)(ee=>{switch(ee.key){case nw.R.Space:case nw.R.Enter:case nw.R.ArrowDown:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),eh.nextFrame(()=>ec({type:2,focus:nk.First}));break;case nw.R.ArrowUp:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),eh.nextFrame(()=>ec({type:2,focus:nk.Last}))}}),ef=(0,nu.z)(ee=>{ee.key===nw.R.Space&&ee.preventDefault()}),em=(0,nu.z)(en=>{if(bugs_r(en.currentTarget))return en.preventDefault();ee.disabled||(0===eu.menuState?(ec({type:1}),eh.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(en.preventDefault(),ec({type:0})))}),eg=(0,eO.useMemo)(()=>({open:0===eu.menuState}),[eu]),ex={ref:ed,id:eo,type:(0,nE.f)(ee,eu.buttonRef),"aria-haspopup":"menu","aria-controls":null==(er=eu.itemsRef.current)?void 0:er.id,"aria-expanded":0===eu.menuState,onKeyDown:ep,onKeyUp:ef,onClick:em};return(0,t9.sY)({ourProps:ex,theirProps:es,slot:eg,defaultTag:n1,name:"Menu.Button"})}let n2="div",n4=t9.AN.RenderStrategy|t9.AN.Static;function Ee(ee,en){var er,ei;let eo=(0,n_.M)(),{id:es=`headlessui-menu-items-${eo}`,...eu}=ee,[ec,ed]=O("Menu.Items"),eh=(0,ns.T)(ec.itemsRef,en),ep=use_owner_n(ec.itemsRef),ef=use_disposables_p(),em=C(),eg=null!==em?(em&ne.Open)===ne.Open:0===ec.menuState;(0,eO.useEffect)(()=>{let ee=ec.itemsRef.current;ee&&0===ec.menuState&&ee!==(null==ep?void 0:ep.activeElement)&&ee.focus({preventScroll:!0})},[ec.menuState,ec.itemsRef,ep]),F({container:ec.itemsRef.current,enabled:0===ec.menuState,accept:ee=>"menuitem"===ee.getAttribute("role")?NodeFilter.FILTER_REJECT:ee.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(ee){ee.setAttribute("role","none")}});let ex=(0,nu.z)(ee=>{var en,er;switch(ef.dispose(),ee.key){case nw.R.Space:if(""!==ec.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ed({type:3,value:ee.key});case nw.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),ed({type:1}),null!==ec.activeItemIndex){let{dataRef:ee}=ec.items[ec.activeItemIndex];null==(er=null==(en=ee.current)?void 0:en.domRef.current)||er.click()}(0,nC.wI)(ec.buttonRef.current);break;case nw.R.ArrowDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.Next});case nw.R.ArrowUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.Previous});case nw.R.Home:case nw.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.First});case nw.R.End:case nw.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.Last});case nw.R.Escape:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nl.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});break;case nw.R.Tab:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nl.k)().nextFrame(()=>{(0,nC.EO)(ec.buttonRef.current,ee.shiftKey?nC.TO.Previous:nC.TO.Next)});break;default:1===ee.key.length&&(ed({type:3,value:ee.key}),ef.setTimeout(()=>ed({type:4}),350))}}),ev=(0,nu.z)(ee=>{ee.key===nw.R.Space&&ee.preventDefault()}),ey=(0,eO.useMemo)(()=>({open:0===ec.menuState}),[ec]),eb={"aria-activedescendant":null===ec.activeItemIndex||null==(er=ec.items[ec.activeItemIndex])?void 0:er.id,"aria-labelledby":null==(ei=ec.buttonRef.current)?void 0:ei.id,id:es,onKeyDown:ex,onKeyUp:ev,role:"menu",tabIndex:0,ref:eh};return(0,t9.sY)({ourProps:eb,theirProps:eu,slot:ey,defaultTag:n2,features:n4,visible:eg,name:"Menu.Items"})}let n5=eO.Fragment;function menu_Pe(ee,en){let er=(0,n_.M)(),{id:ei=`headlessui-menu-item-${er}`,disabled:eo=!1,...es}=ee,[eu,ec]=O("Menu.Item"),ed=null!==eu.activeItemIndex&&eu.items[eu.activeItemIndex].id===ei,eh=(0,eO.useRef)(null),ep=(0,ns.T)(en,eh);(0,nr.e)(()=>{if(eu.__demoMode||0!==eu.menuState||!ed||0===eu.activationTrigger)return;let ee=(0,nl.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=eh.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eu.__demoMode,eh,ed,eu.menuState,eu.activationTrigger,eu.activeItemIndex]);let ef=use_text_value_b(eh),em=(0,eO.useRef)({disabled:eo,domRef:eh,get textValue(){return ef()}});(0,nr.e)(()=>{em.current.disabled=eo},[em,eo]),(0,nr.e)(()=>(ec({type:5,id:ei,dataRef:em}),()=>ec({type:6,id:ei})),[em,ei]);let eg=(0,nu.z)(()=>{ec({type:1})}),ex=(0,nu.z)(ee=>{if(eo)return ee.preventDefault();ec({type:1}),(0,nC.wI)(eu.buttonRef.current)}),ev=(0,nu.z)(()=>{if(eo)return ec({type:2,focus:nk.Nothing});ec({type:2,focus:nk.Specific,id:ei})}),ey=use_tracked_pointer_u(),eb=(0,nu.z)(ee=>ey.update(ee)),e_=(0,nu.z)(ee=>{ey.wasMoved(ee)&&(eo||ed||ec({type:2,focus:nk.Specific,id:ei,trigger:0}))}),ew=(0,nu.z)(ee=>{ey.wasMoved(ee)&&(eo||ed&&ec({type:2,focus:nk.Nothing}))}),ek=(0,eO.useMemo)(()=>({active:ed,disabled:eo,close:eg}),[ed,eo,eg]);return(0,t9.sY)({ourProps:{id:ei,ref:ep,role:"menuitem",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,disabled:void 0,onClick:ex,onFocus:ev,onPointerEnter:eb,onMouseEnter:eb,onPointerMove:e_,onMouseMove:e_,onPointerLeave:ew,onMouseLeave:ew},theirProps:es,slot:ek,defaultTag:n5,name:"Menu.Item"})}let n3=Object.assign((0,t9.yV)(Me),{Button:(0,t9.yV)(menu_Re),Items:(0,t9.yV)(Ee),Item:(0,t9.yV)(menu_Pe)}),dist_t=ee=>"object"==typeof ee&&null!=ee&&1===ee.nodeType,e=(ee,en)=>(!en||"hidden"!==ee)&&"visible"!==ee&&"clip"!==ee,dist_n=(ee,en)=>{if(ee.clientHeight{let en=(ee=>{if(!ee.ownerDocument||!ee.ownerDocument.defaultView)return null;try{return ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ee);return!!en&&(en.clientHeightesen||es>ee&&eu=en&&ec>=er?es-ee-ei:eu>en&&ecer?eu-en+eo:0,l=ee=>{let en=ee.parentElement;return null==en?ee.getRootNode().host||null:en},dist_r=(ee,en)=>{var er,ei,eo,es;if("undefined"==typeof document)return[];let{scrollMode:eu,block:ec,inline:ed,boundary:eh,skipOverflowHiddenElements:ep}=en,ef="function"==typeof eh?eh:ee=>ee!==eh;if(!dist_t(ee))throw TypeError("Invalid target");let em=document.scrollingElement||document.documentElement,eg=[],ex=ee;for(;dist_t(ex)&&ef(ex);){if((ex=l(ex))===em){eg.push(ex);break}null!=ex&&ex===document.body&&dist_n(ex)&&!dist_n(document.documentElement)||null!=ex&&dist_n(ex,ep)&&eg.push(ex)}let ev=null!=(ei=null==(er=window.visualViewport)?void 0:er.width)?ei:innerWidth,ey=null!=(es=null==(eo=window.visualViewport)?void 0:eo.height)?es:innerHeight,{scrollX:eb,scrollY:e_}=window,{height:ew,width:ek,top:eC,right:eE,bottom:eO,left:eT}=ee.getBoundingClientRect(),{top:eP,right:eS,bottom:eI,left:ej}=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee),eR="start"===ec||"nearest"===ec?eC-eP:"end"===ec?eO+eI:eC+ew/2-eP+eI,eM="center"===ed?eT+ek/2-ej+eS:"end"===ed?eE+eS:eT-ej,eN=[];for(let ee=0;ee=0&&eT>=0&&eO<=ey&&eE<=ev&&eC>=eo&&eO<=eh&&eT>=ep&&eE<=es)break;let ef=getComputedStyle(en),ex=parseInt(ef.borderLeftWidth,10),eP=parseInt(ef.borderTopWidth,10),eS=parseInt(ef.borderRightWidth,10),eI=parseInt(ef.borderBottomWidth,10),ej=0,eA=0,eL="offsetWidth"in en?en.offsetWidth-en.clientWidth-ex-eS:0,eZ="offsetHeight"in en?en.offsetHeight-en.clientHeight-eP-eI:0,eF="offsetWidth"in en?0===en.offsetWidth?0:ei/en.offsetWidth:0,eD="offsetHeight"in en?0===en.offsetHeight?0:er/en.offsetHeight:0;if(em===en)ej="start"===ec?eR:"end"===ec?eR-ey:"nearest"===ec?dist_o(e_,e_+ey,ey,eP,eI,e_+eR,e_+eR+ew,ew):eR-ey/2,eA="start"===ed?eM:"center"===ed?eM-ev/2:"end"===ed?eM-ev:dist_o(eb,eb+ev,ev,ex,eS,eb+eM,eb+eM+ek,ek),ej=Math.max(0,ej+e_),eA=Math.max(0,eA+eb);else{ej="start"===ec?eR-eo-eP:"end"===ec?eR-eh+eI+eZ:"nearest"===ec?dist_o(eo,eh,er,eP,eI+eZ,eR,eR+ew,ew):eR-(eo+er/2)+eZ/2,eA="start"===ed?eM-ep-ex:"center"===ed?eM-(ep+ei/2)+eL/2:"end"===ed?eM-es+eS+eL:dist_o(ep,es,ei,ex,eS+eL,eM,eM+ek,ek);let{scrollLeft:ee,scrollTop:eu}=en;ej=0===eD?0:Math.max(0,Math.min(eu+ej/eD,en.scrollHeight-er/eD+eZ)),eA=0===eF?0:Math.max(0,Math.min(ee+eA/eF,en.scrollWidth-ei/eF+eL)),eR+=eu-ej,eM+=ee-eA}eN.push({el:en,top:ej,left:eA})}return eN},scroll_into_view_if_needed_dist_o=ee=>{var en;return!1===ee?{block:"end",inline:"nearest"}:(en=ee,en===Object(en)&&0!==Object.keys(en).length)?ee:{block:"start",inline:"nearest"}};function dist_e(ee,en){var er;if(!ee.isConnected||!(ee=>{let en=ee;for(;en&&en.parentNode;){if(en.parentNode===document)return!0;en=en.parentNode instanceof ShadowRoot?en.parentNode.host:en.parentNode}return!1})(ee))return;let ei=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee);if("object"==typeof(er=en)&&"function"==typeof er.behavior)return en.behavior(dist_r(ee,en));let eo="boolean"==typeof en||null==en?void 0:en.behavior;for(let{el:er,top:es,left:eu}of dist_r(ee,scroll_into_view_if_needed_dist_o(en))){let ee=es-ei.top+ei.bottom,en=eu-ei.left+ei.right;er.scroll({top:ee,left:en,behavior:eo})}}var n6=er(7462),n7=er(6826),n9=er.n(n7),n8={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};matchSorter.rankings=n8;var defaultBaseSortFn=function(ee,en){return String(ee.rankedValue).localeCompare(String(en.rankedValue))};function matchSorter(ee,en,er){void 0===er&&(er={});var ei=er,eo=ei.keys,es=ei.threshold,eu=void 0===es?n8.MATCHES:es,ec=ei.baseSort,ed=void 0===ec?defaultBaseSortFn:ec,eh=ei.sorter;return(void 0===eh?function(ee){return ee.sort(function(ee,en){return sortRankedValues(ee,en,ed)})}:eh)(ee.reduce(reduceItemsToRanked,[])).map(function(ee){return ee.item});function reduceItemsToRanked(ee,ei,es){var ec=getHighestRanking(ei,eo,en,er),ed=ec.rank,eh=ec.keyThreshold;return ed>=(void 0===eh?eu:eh)&&ee.push((0,n6.Z)({},ec,{item:ei,index:es})),ee}}function getHighestRanking(ee,en,er,ei){if(!en){var eo=ee;return{rankedValue:eo,rank:getMatchRanking(eo,er,ei),keyIndex:-1,keyThreshold:ei.threshold}}return getAllValuesToRank(ee,en).reduce(function(ee,en,eo){var es=ee.rank,eu=ee.rankedValue,ec=ee.keyIndex,ed=ee.keyThreshold,eh=en.itemValue,ep=en.attributes,ef=getMatchRanking(eh,er,ei),em=eu,eg=ep.minRanking,ex=ep.maxRanking,ev=ep.threshold;return ef=n8.MATCHES?ef=eg:ef>ex&&(ef=ex),ef>es&&(es=ef,ec=eo,ed=ev,em=eh),{rankedValue:em,rank:es,keyIndex:ec,keyThreshold:ed}},{rankedValue:ee,rank:n8.NO_MATCH,keyIndex:-1,keyThreshold:ei.threshold})}function getMatchRanking(ee,en,er){return(ee=prepareValueForComparison(ee,er),(en=prepareValueForComparison(en,er)).length>ee.length)?n8.NO_MATCH:ee===en?n8.CASE_SENSITIVE_EQUAL:(ee=ee.toLowerCase())===(en=en.toLowerCase())?n8.EQUAL:ee.startsWith(en)?n8.STARTS_WITH:ee.includes(" "+en)?n8.WORD_STARTS_WITH:ee.includes(en)?n8.CONTAINS:1===en.length?n8.NO_MATCH:getAcronym(ee).includes(en)?n8.ACRONYM:getClosenessRanking(ee,en)}function getAcronym(ee){var en="";return ee.split(" ").forEach(function(ee){ee.split("-").forEach(function(ee){en+=ee.substr(0,1)})}),en}function getClosenessRanking(ee,en){var er=0,ei=0;function findMatchingCharacter(ee,en,ei){for(var eo=ei,es=en.length;eo-1))return n8.NO_MATCH;return getRanking(ei-eo)}function sortRankedValues(ee,en,er){var ei=-1,eo=1,es=ee.rank,eu=ee.keyIndex,ec=en.rank,ed=en.keyIndex;return es!==ec?es>ec?ei:eo:eu===ed?er(ee,en):euen in ee?ri(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,__spreadValues=(ee,en)=>{for(var er in en||(en={}))ru.call(en,er)&&__defNormalProp(ee,er,en[er]);if(rl)for(var er of rl(en))rc.call(en,er)&&__defNormalProp(ee,er,en[er]);return ee},__spreadProps=(ee,en)=>ro(ee,rs(en)),__objRest=(ee,en)=>{var er={};for(var ei in ee)ru.call(ee,ei)&&0>en.indexOf(ei)&&(er[ei]=ee[ei]);if(null!=ee&&rl)for(var ei of rl(ee))0>en.indexOf(ei)&&rc.call(ee,ei)&&(er[ei]=ee[ei]);return er},__async=(ee,en,er)=>new Promise((ei,eo)=>{var fulfilled=ee=>{try{step(er.next(ee))}catch(ee){eo(ee)}},rejected=ee=>{try{step(er.throw(ee))}catch(ee){eo(ee)}},step=ee=>ee.done?ei(ee.value):Promise.resolve(ee.value).then(fulfilled,rejected);step((er=er.apply(ee,en)).next())}),rd=(0,eO.createContext)({}),rh=(0,eO.createContext)(ee=>ee),rp=(0,eO.createContext)(null),rf=new WeakMap,rm=(0,eO.createContext)(rf),useActiveAnchor=()=>(0,eO.useContext)(rd),useSetActiveAnchor=()=>(0,eO.useContext)(rh),useIntersectionObserver=()=>(0,eO.useContext)(rp),useSlugs=()=>(0,eO.useContext)(rm),ActiveAnchorProvider=({children:ee})=>{let[en,er]=(0,eO.useState)({}),ei=(0,eO.useRef)(null);return rz&&!ei.current&&(ei.current=new IntersectionObserver(ee=>{er(en=>{let er=__spreadValues({},en);for(let en of ee)if((null==en?void 0:en.rootBounds)&&rf.has(en.target)){let[ee,ei]=rf.get(en.target),eo=en.boundingClientRect.y+en.boundingClientRect.height<=en.rootBounds.y+en.rootBounds.height,es=en.intersectionRatio>0;er[ee]={index:ei,aboveHalfViewport:eo,insideHalfViewport:es}}let ei="",eo=1/0,es=-1;for(let ee in er)er[ee].isActive=!1,er[ee].insideHalfViewport&&er[ee].indexes&&(es=er[ee].index,ei=ee);return er[ei]&&(er[ei].isActive=!0),er})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,eC.jsx)(rd.Provider,{value:en,children:(0,eC.jsx)(rh.Provider,{value:er,children:(0,eC.jsx)(rm.Provider,{value:rf,children:(0,eC.jsx)(rp.Provider,{value:ei.current,children:ee})})})})},rg=(0,eO.createContext)({menu:!1,setMenu:()=>!1}),useMenu=()=>(0,eO.useContext)(rg),rx=rg.Provider,rv=(0,eO.createContext)(__spreadValues({title:"",frontMatter:{}},rQ));function useConfig(){return(0,eO.useContext)(rv)}var ConfigProvider=({children:ee,value:{themeConfig:en,pageOpts:er}})=>{let[ei,eo]=(0,eO.useState)(!1);e_||(e_=__spreadValues(__spreadValues({},rQ),Object.fromEntries(Object.entries(en).map(([ee,en])=>[ee,en&&"object"==typeof en&&rG.includes(ee)?__spreadValues(__spreadValues({},rQ[ee]),en):en]))));let es=__spreadProps(__spreadValues(__spreadProps(__spreadValues({},e_),{flexsearch:er.flexsearch}),"boolean"==typeof er.newNextLinkBehavior&&{newNextLinkBehavior:er.newNextLinkBehavior}),{title:er.title,frontMatter:er.frontMatter}),{nextThemes:eu}=es;return(0,eC.jsx)(tE.f,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:eu.defaultTheme,storageKey:eu.storageKey,forcedTheme:eu.forcedTheme,children:(0,eC.jsx)(rv.Provider,{value:es,children:(0,eC.jsx)(rx,{value:{menu:ei,setMenu:eo},children:ee})})})},ry=(0,eO.createContext)(ee=>ee),useDetails=()=>(0,eO.useContext)(ry),rb=ry.Provider,r_=Number(tC.i8.split(".")[0]),rw=(0,eO.forwardRef)(function(ee,en){var er=ee,{href:ei="",children:eo,newWindow:es}=er,eu=__objRest(er,["href","children","newWindow"]);let ec=useConfig();return es?(0,eC.jsxs)("a",__spreadProps(__spreadValues({ref:en,href:ei,target:"_blank",rel:"noreferrer"},eu),{children:[eo,(0,eC.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):ei?r_>12||ec.newNextLinkBehavior?(0,eC.jsx)(tk(),__spreadProps(__spreadValues({ref:en,href:ei},eu),{children:eo})):(0,eC.jsx)(tk(),{href:ei,passHref:!0,children:(0,eC.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:eo}))}):(0,eC.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:eo}))});rw.displayName="Anchor";var getGitIssueUrl=({repository:ee="",title:en,labels:er})=>{let ei=tA()(ee);if(!ei)throw Error("Invalid `docsRepositoryBase` URL!");return ei.resource.includes("gitlab")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/-/issues/new?issue[title]=${encodeURIComponent(en)}${er?`&issue[description]=/label${encodeURIComponent(` ~${er} + */function buildToken(ee){return"bitbucket.org"===ee.source?"x-token-auth:"+ee.token+"@":ee.token+"@"}function buildPath(ee){return"bitbucket-server"===ee.source?"scm/"+ee.full_name:""+ee.full_name}gitUrlParse.stringify=function(ee,en){en=en||(ee.protocols&&ee.protocols.length?ee.protocols.join("+"):ee.protocol);var er=ee.port?":"+ee.port:"",ei=ee.user||"git",eo=ee.git_suffix?".git":"";switch(en){case"ssh":if(er)return"ssh://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;return ei+"@"+ee.resource+":"+ee.full_name+eo;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return en+"://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;case"http":case"https":return en+"://"+(ee.token?buildToken(ee):ee.user&&(ee.protocols.includes("http")||ee.protocols.includes("https"))?ee.user+"@":"")+ee.resource+er+"/"+buildPath(ee)+eo;default:return ee.href}},ee.exports=gitUrlParse},6337:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var ee=function(ee){for(var en=ee,er=getFrameElement(en);er;)er=getFrameElement(en=er.ownerDocument);return en}(window.document),en=[],er=null,ei=null;IntersectionObserver.prototype.THROTTLE_TIMEOUT=100,IntersectionObserver.prototype.POLL_INTERVAL=null,IntersectionObserver.prototype.USE_MUTATION_OBSERVER=!0,IntersectionObserver._setupCrossOriginUpdater=function(){return er||(er=function(ee,er){ei=ee&&er?convertFromParentRect(ee,er):getEmptyRect(),en.forEach(function(ee){ee._checkForIntersections()})}),er},IntersectionObserver._resetCrossOriginUpdater=function(){er=null,ei=null},IntersectionObserver.prototype.observe=function(ee){if(!this._observationTargets.some(function(en){return en.element==ee})){if(!(ee&&1==ee.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:ee,entry:null}),this._monitorIntersections(ee.ownerDocument),this._checkForIntersections()}},IntersectionObserver.prototype.unobserve=function(ee){this._observationTargets=this._observationTargets.filter(function(en){return en.element!=ee}),this._unmonitorIntersections(ee.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},IntersectionObserver.prototype.takeRecords=function(){var ee=this._queuedEntries.slice();return this._queuedEntries=[],ee},IntersectionObserver.prototype._initThresholds=function(ee){var en=ee||[0];return Array.isArray(en)||(en=[en]),en.sort().filter(function(ee,en,er){if("number"!=typeof ee||isNaN(ee)||ee<0||ee>1)throw Error("threshold must be a number between 0 and 1 inclusively");return ee!==er[en-1]})},IntersectionObserver.prototype._parseRootMargin=function(ee){var en=(ee||"0px").split(/\s+/).map(function(ee){var en=/^(-?\d*\.?\d+)(px|%)$/.exec(ee);if(!en)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(en[1]),unit:en[2]}});return en[1]=en[1]||en[0],en[2]=en[2]||en[0],en[3]=en[3]||en[1],en},IntersectionObserver.prototype._monitorIntersections=function(en){var er=en.defaultView;if(er&&-1==this._monitoringDocuments.indexOf(en)){var ei=this._checkForIntersections,eo=null,es=null;if(this.POLL_INTERVAL?eo=er.setInterval(ei,this.POLL_INTERVAL):(addEvent(er,"resize",ei,!0),addEvent(en,"scroll",ei,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in er&&(es=new er.MutationObserver(ei)).observe(en,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(en),this._monitoringUnsubscribes.push(function(){var ee=en.defaultView;ee&&(eo&&ee.clearInterval(eo),removeEvent(ee,"resize",ei,!0)),removeEvent(en,"scroll",ei,!0),es&&es.disconnect()}),en!=(this.root&&(this.root.ownerDocument||this.root)||ee)){var eu=getFrameElement(en);eu&&this._monitorIntersections(eu.ownerDocument)}}},IntersectionObserver.prototype._unmonitorIntersections=function(en){var er=this._monitoringDocuments.indexOf(en);if(-1!=er){var ei=this.root&&(this.root.ownerDocument||this.root)||ee;if(!this._observationTargets.some(function(ee){var er=ee.element.ownerDocument;if(er==en)return!0;for(;er&&er!=ei;){var eo=getFrameElement(er);if((er=eo&&eo.ownerDocument)==en)return!0}return!1})){var eo=this._monitoringUnsubscribes[er];if(this._monitoringDocuments.splice(er,1),this._monitoringUnsubscribes.splice(er,1),eo(),en!=ei){var es=getFrameElement(en);es&&this._unmonitorIntersections(es.ownerDocument)}}}},IntersectionObserver.prototype._unmonitorAllIntersections=function(){var ee=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var en=0;enen.indexOf(this)&&en.push(this)},IntersectionObserver.prototype._unregisterInstance=function(){var ee=en.indexOf(this);-1!=ee&&en.splice(ee,1)},window.IntersectionObserver=IntersectionObserver,window.IntersectionObserverEntry=IntersectionObserverEntry}function getFrameElement(ee){try{return ee.defaultView&&ee.defaultView.frameElement||null}catch(ee){return null}}function IntersectionObserverEntry(ee){this.time=ee.time,this.target=ee.target,this.rootBounds=ensureDOMRect(ee.rootBounds),this.boundingClientRect=ensureDOMRect(ee.boundingClientRect),this.intersectionRect=ensureDOMRect(ee.intersectionRect||getEmptyRect()),this.isIntersecting=!!ee.intersectionRect;var en=this.boundingClientRect,er=en.width*en.height,ei=this.intersectionRect,eo=ei.width*ei.height;er?this.intersectionRatio=Number((eo/er).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function IntersectionObserver(ee,en){var er=en||{};if("function"!=typeof ee)throw Error("callback must be a function");if(er.root&&1!=er.root.nodeType&&9!=er.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=ee,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(er.rootMargin),this.thresholds=this._initThresholds(er.threshold),this.root=er.root||null,this.rootMargin=this._rootMarginValues.map(function(ee){return ee.value+ee.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function now(){return window.performance&&performance.now&&performance.now()}function throttle(ee,en){var er=null;return function(){er||(er=setTimeout(function(){ee(),er=null},en))}}function addEvent(ee,en,er,ei){"function"==typeof ee.addEventListener?ee.addEventListener(en,er,ei||!1):"function"==typeof ee.attachEvent&&ee.attachEvent("on"+en,er)}function removeEvent(ee,en,er,ei){"function"==typeof ee.removeEventListener?ee.removeEventListener(en,er,ei||!1):"function"==typeof ee.detachEvent&&ee.detachEvent("on"+en,er)}function computeRectIntersection(ee,en){var er=Math.max(ee.top,en.top),ei=Math.min(ee.bottom,en.bottom),eo=Math.max(ee.left,en.left),es=Math.min(ee.right,en.right),eu=es-eo,ec=ei-er;return eu>=0&&ec>=0&&{top:er,bottom:ei,left:eo,right:es,width:eu,height:ec}||null}function getBoundingClientRect(ee){var en;try{en=ee.getBoundingClientRect()}catch(ee){}return en?(en.width&&en.height||(en={top:en.top,right:en.right,bottom:en.bottom,left:en.left,width:en.right-en.left,height:en.bottom-en.top}),en):getEmptyRect()}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function ensureDOMRect(ee){return!ee||"x"in ee?ee:{top:ee.top,y:ee.top,bottom:ee.bottom,left:ee.left,x:ee.left,right:ee.right,width:ee.width,height:ee.height}}function convertFromParentRect(ee,en){var er=en.top-ee.top,ei=en.left-ee.left;return{top:er,left:ei,height:en.height,width:en.width,bottom:er+en.height,right:ei+en.width}}function containsDeep(ee,en){for(var er=en;er;){if(er==ee)return!0;er=getParentNode(er)}return!1}function getParentNode(en){var er=en.parentNode;return 9==en.nodeType&&en!=ee?getFrameElement(en):(er&&er.assignedSlot&&(er=er.assignedSlot.parentNode),er&&11==er.nodeType&&er.host)?er.host:er}function isDoc(ee){return ee&&9===ee.nodeType}}()},9073:function(ee,en,er){"use strict";var ei=er(2337);function isSsh(ee){if(Array.isArray(ee))return -1!==ee.indexOf("ssh")||-1!==ee.indexOf("rsync");if("string"!=typeof ee)return!1;var en=ei(ee);if(ee=ee.substring(ee.indexOf("://")+3),isSsh(en))return!0;var er=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!ee.match(er)&&ee.indexOf("@"){},themes:[]},y=()=>{var ee;return null!==(ee=(0,ei.useContext)(ec))&&void 0!==ee?ee:ed},$=ee=>(0,ei.useContext)(ec)?ei.createElement(ei.Fragment,null,ee.children):ei.createElement(f,ee),eh=["light","dark"],f=({forcedTheme:ee,disableTransitionOnChange:en=!1,enableSystem:er=!0,enableColorScheme:eu=!0,storageKey:ed="theme",themes:ef=eh,defaultTheme:em=er?"system":"light",attribute:eg="data-theme",value:ex,children:ev,nonce:ey})=>{let[eb,e_]=(0,ei.useState)(()=>S(ed,em)),[ew,ek]=(0,ei.useState)(()=>S(ed)),eC=ex?Object.values(ex):ef,eE=(0,ei.useCallback)(ee=>{let ei=ee;if(!ei)return;"system"===ee&&er&&(ei=p());let es=ex?ex[ei]:ei,ec=en?b():null,ed=document.documentElement;if("class"===eg?(ed.classList.remove(...eC),es&&ed.classList.add(es)):es?ed.setAttribute(eg,es):ed.removeAttribute(eg),eu){let ee=eo.includes(em)?em:null,en=eo.includes(ei)?ei:ee;ed.style.colorScheme=en}null==ec||ec()},[]),eO=(0,ei.useCallback)(ee=>{e_(ee);try{localStorage.setItem(ed,ee)}catch(ee){}},[ee]),eT=(0,ei.useCallback)(en=>{let ei=p(en);ek(ei),"system"===eb&&er&&!ee&&eE("system")},[eb,ee]);(0,ei.useEffect)(()=>{let ee=window.matchMedia(es);return ee.addListener(eT),eT(ee),()=>ee.removeListener(eT)},[eT]),(0,ei.useEffect)(()=>{let e=ee=>{ee.key===ed&&eO(ee.newValue||em)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[eO]),(0,ei.useEffect)(()=>{eE(null!=ee?ee:eb)},[ee,eb]);let eP=(0,ei.useMemo)(()=>({theme:eb,setTheme:eO,forcedTheme:ee,resolvedTheme:"system"===eb?ew:eb,themes:er?[...ef,"system"]:ef,systemTheme:er?ew:void 0}),[eb,eO,ee,ew,er,ef]);return ei.createElement(ec.Provider,{value:eP},ei.createElement(ep,{forcedTheme:ee,disableTransitionOnChange:en,enableSystem:er,enableColorScheme:eu,storageKey:ed,themes:ef,defaultTheme:em,attribute:eg,value:ex,children:ev,attrs:eC,nonce:ey}),ev)},ep=(0,ei.memo)(({forcedTheme:ee,storageKey:en,attribute:er,enableSystem:eu,enableColorScheme:ec,defaultTheme:ed,value:eh,attrs:ep,nonce:ef})=>{let em="system"===ed,eg="class"===er?`var d=document.documentElement,c=d.classList;c.remove(${ep.map(ee=>`'${ee}'`).join(",")});`:`var d=document.documentElement,n='${er}',s='setAttribute';`,ex=ec?eo.includes(ed)&&ed?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${ed}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",$=(ee,en=!1,ei=!0)=>{let es=eh?eh[ee]:ee,eu=en?ee+"|| ''":`'${es}'`,ed="";return ec&&ei&&!en&&eo.includes(ee)&&(ed+=`d.style.colorScheme = '${ee}';`),"class"===er?ed+=en||es?`c.add(${eu})`:"null":es&&(ed+=`d[s](n,${eu})`),ed},ev=ee?`!function(){${eg}${$(ee)}}()`:eu?`!function(){try{${eg}var e=localStorage.getItem('${en}');if('system'===e||(!e&&${em})){var t='${es}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$("dark")}}else{${$("light")}}}else if(e){${eh?`var x=${JSON.stringify(eh)};`:""}${$(eh?"x[e]":"e",!0)}}${em?"":"else{"+$(ed,!1,!1)+"}"}${ex}}catch(e){}}()`:`!function(){try{${eg}var e=localStorage.getItem('${en}');if(e){${eh?`var x=${JSON.stringify(eh)};`:""}${$(eh?"x[e]":"e",!0)}}else{${$(ed,!1,!1)};}${ex}}catch(t){}}();`;return ei.createElement("script",{nonce:ef,dangerouslySetInnerHTML:{__html:ev}})},()=>!0),S=(ee,en)=>{let er;if(!eu){try{er=localStorage.getItem(ee)||void 0}catch(ee){}return er||en}},b=()=>{let ee=document.createElement("style");return ee.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(ee),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(ee)},1)}},p=ee=>(ee||(ee=window.matchMedia(es)),ee.matches?"dark":"light")},3454:function(ee,en,er){"use strict";var ei,eo;ee.exports=(null==(ei=er.g.process)?void 0:ei.env)&&"object"==typeof(null==(eo=er.g.process)?void 0:eo.env)?er.g.process:er(7663)},2327:function(ee,en,er){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return er(5337)}])},5337:function(ee,en,er){"use strict";let ei;er.r(en),er.d(en,{__toc:function(){return r1},default:function(){return _app}});var eo,es,eu,ec,ed,eh,ep,ef,em,eg,ex,ev,ey,eb,e_,ew,ek,eC=er(5893),eE=er(1163),eO=er(7294);function r(ee){var en,er,ei="";if("string"==typeof ee||"number"==typeof ee)ei+=ee;else if("object"==typeof ee){if(Array.isArray(ee))for(en=0;en{en(!0)},[]),ee}var eT=er(7222),eP="https://nextra.vercel.app",useFSRoute=()=>{let{locale:ee=eT.ZW,asPath:en,route:er}=(0,eE.useRouter)();return(0,eO.useMemo)(()=>{let ei=eT.hV.has(er)?er:en,{pathname:eo}=new URL(ei,eP),es=ee?eo.replace(RegExp(`\\.${ee}(\\/|$)`),"$1"):eo;return es.replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[en,ee,er])},eS=er(2643),eI=er(4861);!function(ee){function assertIs(ee){}function assertNever(ee){throw Error()}function joinValues(ee,en=" | "){return ee.map(ee=>"string"==typeof ee?`'${ee}'`:ee).join(en)}ee.assertEqual=ee=>ee,ee.assertIs=assertIs,ee.assertNever=assertNever,ee.arrayToEnum=ee=>{let en={};for(let er of ee)en[er]=er;return en},ee.getValidEnumValues=en=>{let er=ee.objectKeys(en).filter(ee=>"number"!=typeof en[en[ee]]),ei={};for(let ee of er)ei[ee]=en[ee];return ee.objectValues(ei)},ee.objectValues=en=>ee.objectKeys(en).map(function(ee){return en[ee]}),ee.objectKeys="function"==typeof Object.keys?ee=>Object.keys(ee):ee=>{let en=[];for(let er in ee)Object.prototype.hasOwnProperty.call(ee,er)&&en.push(er);return en},ee.find=(ee,en)=>{for(let er of ee)if(en(er))return er},ee.isInteger="function"==typeof Number.isInteger?ee=>Number.isInteger(ee):ee=>"number"==typeof ee&&isFinite(ee)&&Math.floor(ee)===ee,ee.joinValues=joinValues,ee.jsonStringifyReplacer=(ee,en)=>"bigint"==typeof en?en.toString():en}(ex||(ex={})),function(ee){ee.mergeShapes=(ee,en)=>({...ee,...en})}(ev||(ev={}));let ej=ex.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=ee=>{let en=typeof ee;switch(en){case"undefined":return ej.undefined;case"string":return ej.string;case"number":return isNaN(ee)?ej.nan:ej.number;case"boolean":return ej.boolean;case"function":return ej.function;case"bigint":return ej.bigint;case"symbol":return ej.symbol;case"object":if(Array.isArray(ee))return ej.array;if(null===ee)return ej.null;if(ee.then&&"function"==typeof ee.then&&ee.catch&&"function"==typeof ee.catch)return ej.promise;if("undefined"!=typeof Map&&ee instanceof Map)return ej.map;if("undefined"!=typeof Set&&ee instanceof Set)return ej.set;if("undefined"!=typeof Date&&ee instanceof Date)return ej.date;return ej.object;default:return ej.unknown}},eR=ex.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=ee=>{let en=JSON.stringify(ee,null,2);return en.replace(/"([^"]+)":/g,"$1:")};let ZodError=class ZodError extends Error{constructor(ee){super(),this.issues=[],this.addIssue=ee=>{this.issues=[...this.issues,ee]},this.addIssues=(ee=[])=>{this.issues=[...this.issues,...ee]};let en=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,en):this.__proto__=en,this.name="ZodError",this.issues=ee}get errors(){return this.issues}format(ee){let en=ee||function(ee){return ee.message},er={_errors:[]},processError=ee=>{for(let ei of ee.issues)if("invalid_union"===ei.code)ei.unionErrors.map(processError);else if("invalid_return_type"===ei.code)processError(ei.returnTypeError);else if("invalid_arguments"===ei.code)processError(ei.argumentsError);else if(0===ei.path.length)er._errors.push(en(ei));else{let ee=er,eo=0;for(;eoee.message){let en={},er=[];for(let ei of this.issues)ei.path.length>0?(en[ei.path[0]]=en[ei.path[0]]||[],en[ei.path[0]].push(ee(ei))):er.push(ee(ei));return{formErrors:er,fieldErrors:en}}get formErrors(){return this.flatten()}};ZodError.create=ee=>{let en=new ZodError(ee);return en};let errorMap=(ee,en)=>{let er;switch(ee.code){case eR.invalid_type:er=ee.received===ej.undefined?"Required":`Expected ${ee.expected}, received ${ee.received}`;break;case eR.invalid_literal:er=`Invalid literal value, expected ${JSON.stringify(ee.expected,ex.jsonStringifyReplacer)}`;break;case eR.unrecognized_keys:er=`Unrecognized key(s) in object: ${ex.joinValues(ee.keys,", ")}`;break;case eR.invalid_union:er="Invalid input";break;case eR.invalid_union_discriminator:er=`Invalid discriminator value. Expected ${ex.joinValues(ee.options)}`;break;case eR.invalid_enum_value:er=`Invalid enum value. Expected ${ex.joinValues(ee.options)}, received '${ee.received}'`;break;case eR.invalid_arguments:er="Invalid function arguments";break;case eR.invalid_return_type:er="Invalid function return type";break;case eR.invalid_date:er="Invalid date";break;case eR.invalid_string:"object"==typeof ee.validation?"includes"in ee.validation?(er=`Invalid input: must include "${ee.validation.includes}"`,"number"==typeof ee.validation.position&&(er=`${er} at one or more positions greater than or equal to ${ee.validation.position}`)):"startsWith"in ee.validation?er=`Invalid input: must start with "${ee.validation.startsWith}"`:"endsWith"in ee.validation?er=`Invalid input: must end with "${ee.validation.endsWith}"`:ex.assertNever(ee.validation):er="regex"!==ee.validation?`Invalid ${ee.validation}`:"Invalid";break;case eR.too_small:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at least":"more than"} ${ee.minimum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at least":"over"} ${ee.minimum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${ee.minimum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(ee.minimum))}`:"Invalid input";break;case eR.too_big:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at most":"less than"} ${ee.maximum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at most":"under"} ${ee.maximum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"bigint"===ee.type?`BigInt must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly":ee.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(ee.maximum))}`:"Invalid input";break;case eR.custom:er="Invalid input";break;case eR.invalid_intersection_types:er="Intersection results could not be merged";break;case eR.not_multiple_of:er=`Number must be a multiple of ${ee.multipleOf}`;break;case eR.not_finite:er="Number must be finite";break;default:er=en.defaultError,ex.assertNever(ee)}return{message:er}},eM=errorMap;function setErrorMap(ee){eM=ee}function getErrorMap(){return eM}let makeIssue=ee=>{let{data:en,path:er,errorMaps:ei,issueData:eo}=ee,es=[...er,...eo.path||[]],eu={...eo,path:es},ec="",ed=ei.filter(ee=>!!ee).slice().reverse();for(let ee of ed)ec=ee(eu,{data:en,defaultError:ec}).message;return{...eo,path:es,message:eo.message||ec}},eN=[];function addIssueToContext(ee,en){let er=makeIssue({issueData:en,data:ee.data,path:ee.path,errorMaps:[ee.common.contextualErrorMap,ee.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee)});ee.common.issues.push(er)}let ParseStatus=class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(ee,en){let er=[];for(let ei of en){if("aborted"===ei.status)return eA;"dirty"===ei.status&&ee.dirty(),er.push(ei.value)}return{status:ee.value,value:er}}static async mergeObjectAsync(ee,en){let er=[];for(let ee of en)er.push({key:await ee.key,value:await ee.value});return ParseStatus.mergeObjectSync(ee,er)}static mergeObjectSync(ee,en){let er={};for(let ei of en){let{key:en,value:eo}=ei;if("aborted"===en.status||"aborted"===eo.status)return eA;"dirty"===en.status&&ee.dirty(),"dirty"===eo.status&&ee.dirty(),"__proto__"!==en.value&&(void 0!==eo.value||ei.alwaysSet)&&(er[en.value]=eo.value)}return{status:ee.value,value:er}}};let eA=Object.freeze({status:"aborted"}),DIRTY=ee=>({status:"dirty",value:ee}),OK=ee=>({status:"valid",value:ee}),isAborted=ee=>"aborted"===ee.status,isDirty=ee=>"dirty"===ee.status,isValid=ee=>"valid"===ee.status,isAsync=ee=>"undefined"!=typeof Promise&&ee instanceof Promise;!function(ee){ee.errToObj=ee=>"string"==typeof ee?{message:ee}:ee||{},ee.toString=ee=>"string"==typeof ee?ee:null==ee?void 0:ee.message}(ey||(ey={}));let ParseInputLazyPath=class ParseInputLazyPath{constructor(ee,en,er,ei){this._cachedPath=[],this.parent=ee,this.data=en,this._path=er,this._key=ei}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};let handleResult=(ee,en)=>{if(isValid(en))return{success:!0,data:en.value};if(!ee.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let en=new ZodError(ee.common.issues);return this._error=en,this._error}}};function processCreateParams(ee){if(!ee)return{};let{errorMap:en,invalid_type_error:er,required_error:ei,description:eo}=ee;if(en&&(er||ei))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(en)return{errorMap:en,description:eo};let customMap=(ee,en)=>"invalid_type"!==ee.code?{message:en.defaultError}:void 0===en.data?{message:null!=ei?ei:en.defaultError}:{message:null!=er?er:en.defaultError};return{errorMap:customMap,description:eo}}let ZodType=class ZodType{constructor(ee){this.spa=this.safeParseAsync,this._def=ee,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(ee){return getParsedType(ee.data)}_getOrReturnCtx(ee,en){return en||{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}_processInputParams(ee){return{status:new ParseStatus,ctx:{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}}_parseSync(ee){let en=this._parse(ee);if(isAsync(en))throw Error("Synchronous parse encountered promise.");return en}_parseAsync(ee){let en=this._parse(ee);return Promise.resolve(en)}parse(ee,en){let er=this.safeParse(ee,en);if(er.success)return er.data;throw er.error}safeParse(ee,en){var er;let ei={common:{issues:[],async:null!==(er=null==en?void 0:en.async)&&void 0!==er&&er,contextualErrorMap:null==en?void 0:en.errorMap},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},eo=this._parseSync({data:ee,path:ei.path,parent:ei});return handleResult(ei,eo)}async parseAsync(ee,en){let er=await this.safeParseAsync(ee,en);if(er.success)return er.data;throw er.error}async safeParseAsync(ee,en){let er={common:{issues:[],contextualErrorMap:null==en?void 0:en.errorMap,async:!0},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},ei=this._parse({data:ee,path:er.path,parent:er}),eo=await (isAsync(ei)?ei:Promise.resolve(ei));return handleResult(er,eo)}refine(ee,en){let getIssueProperties=ee=>"string"==typeof en||void 0===en?{message:en}:"function"==typeof en?en(ee):en;return this._refinement((en,er)=>{let ei=ee(en),setError=()=>er.addIssue({code:eR.custom,...getIssueProperties(en)});return"undefined"!=typeof Promise&&ei instanceof Promise?ei.then(ee=>!!ee||(setError(),!1)):!!ei||(setError(),!1)})}refinement(ee,en){return this._refinement((er,ei)=>!!ee(er)||(ei.addIssue("function"==typeof en?en(er,ei):en),!1))}_refinement(ee){return new ZodEffects({schema:this,typeName:eb.ZodEffects,effect:{type:"refinement",refinement:ee}})}superRefine(ee){return this._refinement(ee)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(ee){return ZodUnion.create([this,ee],this._def)}and(ee){return ZodIntersection.create(this,ee,this._def)}transform(ee){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:eb.ZodEffects,effect:{type:"transform",transform:ee}})}default(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:en,typeName:eb.ZodDefault})}brand(){return new ZodBranded({typeName:eb.ZodBranded,type:this,...processCreateParams(this._def)})}catch(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:en,typeName:eb.ZodCatch})}describe(ee){let en=this.constructor;return new en({...this._def,description:ee})}pipe(ee){return ZodPipeline.create(this,ee)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};let eL=/^c[^\s-]{8,}$/i,eZ=/^[a-z][a-z0-9]*$/,eF=/^[0-9A-HJKMNP-TV-Z]{26}$/,eD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eU=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ez=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,eB=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,datetimeRegex=ee=>ee.precision?ee.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}Z$`):0===ee.precision?ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function isValidIP(ee,en){return!!(("v4"===en||!en)&&ez.test(ee)||("v6"===en||!en)&&eB.test(ee))}let ZodString=class ZodString extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=String(ee.data));let er=this._getType(ee);if(er!==ej.string){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.string,received:en.parsedType}),eA}let eo=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind)ee.data.lengther.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,maximum:er.value,type:"string",inclusive:!0,exact:!1,message:er.message}),eo.dirty());else if("length"===er.kind){let ei=ee.data.length>er.value,es=ee.data.lengthee.test(en),{validation:en,code:eR.invalid_string,...ey.errToObj(er)})}_addCheck(ee){return new ZodString({...this._def,checks:[...this._def.checks,ee]})}email(ee){return this._addCheck({kind:"email",...ey.errToObj(ee)})}url(ee){return this._addCheck({kind:"url",...ey.errToObj(ee)})}emoji(ee){return this._addCheck({kind:"emoji",...ey.errToObj(ee)})}uuid(ee){return this._addCheck({kind:"uuid",...ey.errToObj(ee)})}cuid(ee){return this._addCheck({kind:"cuid",...ey.errToObj(ee)})}cuid2(ee){return this._addCheck({kind:"cuid2",...ey.errToObj(ee)})}ulid(ee){return this._addCheck({kind:"ulid",...ey.errToObj(ee)})}ip(ee){return this._addCheck({kind:"ip",...ey.errToObj(ee)})}datetime(ee){var en;return"string"==typeof ee?this._addCheck({kind:"datetime",precision:null,offset:!1,message:ee}):this._addCheck({kind:"datetime",precision:void 0===(null==ee?void 0:ee.precision)?null:null==ee?void 0:ee.precision,offset:null!==(en=null==ee?void 0:ee.offset)&&void 0!==en&&en,...ey.errToObj(null==ee?void 0:ee.message)})}regex(ee,en){return this._addCheck({kind:"regex",regex:ee,...ey.errToObj(en)})}includes(ee,en){return this._addCheck({kind:"includes",value:ee,position:null==en?void 0:en.position,...ey.errToObj(null==en?void 0:en.message)})}startsWith(ee,en){return this._addCheck({kind:"startsWith",value:ee,...ey.errToObj(en)})}endsWith(ee,en){return this._addCheck({kind:"endsWith",value:ee,...ey.errToObj(en)})}min(ee,en){return this._addCheck({kind:"min",value:ee,...ey.errToObj(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee,...ey.errToObj(en)})}length(ee,en){return this._addCheck({kind:"length",value:ee,...ey.errToObj(en)})}nonempty(ee){return this.min(1,ey.errToObj(ee))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(ee=>"datetime"===ee.kind)}get isEmail(){return!!this._def.checks.find(ee=>"email"===ee.kind)}get isURL(){return!!this._def.checks.find(ee=>"url"===ee.kind)}get isEmoji(){return!!this._def.checks.find(ee=>"emoji"===ee.kind)}get isUUID(){return!!this._def.checks.find(ee=>"uuid"===ee.kind)}get isCUID(){return!!this._def.checks.find(ee=>"cuid"===ee.kind)}get isCUID2(){return!!this._def.checks.find(ee=>"cuid2"===ee.kind)}get isULID(){return!!this._def.checks.find(ee=>"ulid"===ee.kind)}get isIP(){return!!this._def.checks.find(ee=>"ip"===ee.kind)}get minLength(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxLength(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valueei?er:ei,es=parseInt(ee.toFixed(eo).replace(".","")),eu=parseInt(en.toFixed(eo).replace(".",""));return es%eu/Math.pow(10,eo)}ZodString.create=ee=>{var en;return new ZodString({checks:[],typeName:eb.ZodString,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(ee){let en;this._def.coerce&&(ee.data=Number(ee.data));let er=this._getType(ee);if(er!==ej.number){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.number,received:en.parsedType}),eA}let ei=new ParseStatus;for(let er of this._def.checks)if("int"===er.kind)ex.isInteger(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.invalid_type,expected:"integer",received:"float",message:er.message}),ei.dirty());else if("min"===er.kind){let eo=er.inclusive?ee.dataer.value:ee.data>=er.value;eo&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,maximum:er.value,type:"number",inclusive:er.inclusive,exact:!1,message:er.message}),ei.dirty())}else"multipleOf"===er.kind?0!==floatSafeRemainder(ee.data,er.value)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.not_multiple_of,multipleOf:er.value,message:er.message}),ei.dirty()):"finite"===er.kind?Number.isFinite(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.not_finite,message:er.message}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,ei){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(ei)}]})}_addCheck(ee){return new ZodNumber({...this._def,checks:[...this._def.checks,ee]})}int(ee){return this._addCheck({kind:"int",message:ey.toString(ee)})}positive(ee){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}finite(ee){return this._addCheck({kind:"finite",message:ey.toString(ee)})}safe(ee){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ey.toString(ee)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ey.toString(ee)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value"int"===ee.kind||"multipleOf"===ee.kind&&ex.isInteger(ee.value))}get isFinite(){let ee=null,en=null;for(let er of this._def.checks){if("finite"===er.kind||"int"===er.kind||"multipleOf"===er.kind)return!0;"min"===er.kind?(null===en||er.value>en)&&(en=er.value):"max"===er.kind&&(null===ee||er.valuenew ZodNumber({checks:[],typeName:eb.ZodNumber,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(ee){let en;this._def.coerce&&(ee.data=BigInt(ee.data));let er=this._getType(ee);if(er!==ej.bigint){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.bigint,received:en.parsedType}),eA}let ei=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind){let eo=er.inclusive?ee.dataer.value:ee.data>=er.value;eo&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,type:"bigint",maximum:er.value,inclusive:er.inclusive,message:er.message}),ei.dirty())}else"multipleOf"===er.kind?ee.data%er.value!==BigInt(0)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.not_multiple_of,multipleOf:er.value,message:er.message}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,ei){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(ei)}]})}_addCheck(ee){return new ZodBigInt({...this._def,checks:[...this._def.checks,ee]})}positive(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value{var en;return new ZodBigInt({checks:[],typeName:eb.ZodBigInt,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodBoolean=class ZodBoolean extends ZodType{_parse(ee){this._def.coerce&&(ee.data=!!ee.data);let en=this._getType(ee);if(en!==ej.boolean){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.boolean,received:en.parsedType}),eA}return OK(ee.data)}};ZodBoolean.create=ee=>new ZodBoolean({typeName:eb.ZodBoolean,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodDate=class ZodDate extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=new Date(ee.data));let er=this._getType(ee);if(er!==ej.date){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.date,received:en.parsedType}),eA}if(isNaN(ee.data.getTime())){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_date}),eA}let ei=new ParseStatus;for(let er of this._def.checks)"min"===er.kind?ee.data.getTime()er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eR.too_big,message:er.message,inclusive:!0,exact:!1,maximum:er.value,type:"date"}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:new Date(ee.data.getTime())}}_addCheck(ee){return new ZodDate({...this._def,checks:[...this._def.checks,ee]})}min(ee,en){return this._addCheck({kind:"min",value:ee.getTime(),message:ey.toString(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee.getTime(),message:ey.toString(en)})}get minDate(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return null!=ee?new Date(ee):null}get maxDate(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valuenew ZodDate({checks:[],coerce:(null==ee?void 0:ee.coerce)||!1,typeName:eb.ZodDate,...processCreateParams(ee)});let ZodSymbol=class ZodSymbol extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.symbol){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.symbol,received:en.parsedType}),eA}return OK(ee.data)}};ZodSymbol.create=ee=>new ZodSymbol({typeName:eb.ZodSymbol,...processCreateParams(ee)});let ZodUndefined=class ZodUndefined extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.undefined,received:en.parsedType}),eA}return OK(ee.data)}};ZodUndefined.create=ee=>new ZodUndefined({typeName:eb.ZodUndefined,...processCreateParams(ee)});let ZodNull=class ZodNull extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.null){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.null,received:en.parsedType}),eA}return OK(ee.data)}};ZodNull.create=ee=>new ZodNull({typeName:eb.ZodNull,...processCreateParams(ee)});let ZodAny=class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(ee){return OK(ee.data)}};ZodAny.create=ee=>new ZodAny({typeName:eb.ZodAny,...processCreateParams(ee)});let ZodUnknown=class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(ee){return OK(ee.data)}};ZodUnknown.create=ee=>new ZodUnknown({typeName:eb.ZodUnknown,...processCreateParams(ee)});let ZodNever=class ZodNever extends ZodType{_parse(ee){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.never,received:en.parsedType}),eA}};ZodNever.create=ee=>new ZodNever({typeName:eb.ZodNever,...processCreateParams(ee)});let ZodVoid=class ZodVoid extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.void,received:en.parsedType}),eA}return OK(ee.data)}};ZodVoid.create=ee=>new ZodVoid({typeName:eb.ZodVoid,...processCreateParams(ee)});let ZodArray=class ZodArray extends ZodType{_parse(ee){let{ctx:en,status:er}=this._processInputParams(ee),ei=this._def;if(en.parsedType!==ej.array)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.array,received:en.parsedType}),eA;if(null!==ei.exactLength){let ee=en.data.length>ei.exactLength.value,eo=en.data.lengthei.maxLength.value&&(addIssueToContext(en,{code:eR.too_big,maximum:ei.maxLength.value,type:"array",inclusive:!0,exact:!1,message:ei.maxLength.message}),er.dirty()),en.common.async)return Promise.all([...en.data].map((ee,er)=>ei.type._parseAsync(new ParseInputLazyPath(en,ee,en.path,er)))).then(ee=>ParseStatus.mergeArray(er,ee));let eo=[...en.data].map((ee,er)=>ei.type._parseSync(new ParseInputLazyPath(en,ee,en.path,er)));return ParseStatus.mergeArray(er,eo)}get element(){return this._def.type}min(ee,en){return new ZodArray({...this._def,minLength:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodArray({...this._def,maxLength:{value:ee,message:ey.toString(en)}})}length(ee,en){return new ZodArray({...this._def,exactLength:{value:ee,message:ey.toString(en)}})}nonempty(ee){return this.min(1,ee)}};function deepPartialify(ee){if(ee instanceof ZodObject){let en={};for(let er in ee.shape){let ei=ee.shape[er];en[er]=ZodOptional.create(deepPartialify(ei))}return new ZodObject({...ee._def,shape:()=>en})}return ee instanceof ZodArray?new ZodArray({...ee._def,type:deepPartialify(ee.element)}):ee instanceof ZodOptional?ZodOptional.create(deepPartialify(ee.unwrap())):ee instanceof ZodNullable?ZodNullable.create(deepPartialify(ee.unwrap())):ee instanceof ZodTuple?ZodTuple.create(ee.items.map(ee=>deepPartialify(ee))):ee}ZodArray.create=(ee,en)=>new ZodArray({type:ee,minLength:null,maxLength:null,exactLength:null,typeName:eb.ZodArray,...processCreateParams(en)});let ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let ee=this._def.shape(),en=ex.objectKeys(ee);return this._cached={shape:ee,keys:en}}_parse(ee){let en=this._getType(ee);if(en!==ej.object){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.object,received:en.parsedType}),eA}let{status:er,ctx:ei}=this._processInputParams(ee),{shape:eo,keys:es}=this._getCached(),eu=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(let ee in ei.data)es.includes(ee)||eu.push(ee);let ec=[];for(let ee of es){let en=eo[ee],er=ei.data[ee];ec.push({key:{status:"valid",value:ee},value:en._parse(new ParseInputLazyPath(ei,er,ei.path,ee)),alwaysSet:ee in ei.data})}if(this._def.catchall instanceof ZodNever){let ee=this._def.unknownKeys;if("passthrough"===ee)for(let ee of eu)ec.push({key:{status:"valid",value:ee},value:{status:"valid",value:ei.data[ee]}});else if("strict"===ee)eu.length>0&&(addIssueToContext(ei,{code:eR.unrecognized_keys,keys:eu}),er.dirty());else if("strip"===ee);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let ee=this._def.catchall;for(let en of eu){let er=ei.data[en];ec.push({key:{status:"valid",value:en},value:ee._parse(new ParseInputLazyPath(ei,er,ei.path,en)),alwaysSet:en in ei.data})}}return ei.common.async?Promise.resolve().then(async()=>{let ee=[];for(let en of ec){let er=await en.key;ee.push({key:er,value:await en.value,alwaysSet:en.alwaysSet})}return ee}).then(ee=>ParseStatus.mergeObjectSync(er,ee)):ParseStatus.mergeObjectSync(er,ec)}get shape(){return this._def.shape()}strict(ee){return ey.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==ee?{errorMap:(en,er)=>{var ei,eo,es,eu;let ec=null!==(es=null===(eo=(ei=this._def).errorMap)||void 0===eo?void 0:eo.call(ei,en,er).message)&&void 0!==es?es:er.defaultError;return"unrecognized_keys"===en.code?{message:null!==(eu=ey.errToObj(ee).message)&&void 0!==eu?eu:ec}:{message:ec}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(ee){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...ee})})}merge(ee){let en=new ZodObject({unknownKeys:ee._def.unknownKeys,catchall:ee._def.catchall,shape:()=>({...this._def.shape(),...ee._def.shape()}),typeName:eb.ZodObject});return en}setKey(ee,en){return this.augment({[ee]:en})}catchall(ee){return new ZodObject({...this._def,catchall:ee})}pick(ee){let en={};return ex.objectKeys(ee).forEach(er=>{ee[er]&&this.shape[er]&&(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}omit(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{ee[er]||(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}deepPartial(){return deepPartialify(this)}partial(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{let ei=this.shape[er];ee&&!ee[er]?en[er]=ei:en[er]=ei.optional()}),new ZodObject({...this._def,shape:()=>en})}required(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{if(ee&&!ee[er])en[er]=this.shape[er];else{let ee=this.shape[er],ei=ee;for(;ei instanceof ZodOptional;)ei=ei._def.innerType;en[er]=ei}}),new ZodObject({...this._def,shape:()=>en})}keyof(){return createZodEnum(ex.objectKeys(this.shape))}};ZodObject.create=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.strictCreate=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strict",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.lazycreate=(ee,en)=>new ZodObject({shape:ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)});let ZodUnion=class ZodUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.options;function handleResults(ee){for(let en of ee)if("valid"===en.result.status)return en.result;for(let er of ee)if("dirty"===er.result.status)return en.common.issues.push(...er.ctx.common.issues),er.result;let er=ee.map(ee=>new ZodError(ee.ctx.common.issues));return addIssueToContext(en,{code:eR.invalid_union,unionErrors:er}),eA}if(en.common.async)return Promise.all(er.map(async ee=>{let er={...en,common:{...en.common,issues:[]},parent:null};return{result:await ee._parseAsync({data:en.data,path:en.path,parent:er}),ctx:er}})).then(handleResults);{let ee;let ei=[];for(let eo of er){let er={...en,common:{...en.common,issues:[]},parent:null},es=eo._parseSync({data:en.data,path:en.path,parent:er});if("valid"===es.status)return es;"dirty"!==es.status||ee||(ee={result:es,ctx:er}),er.common.issues.length&&ei.push(er.common.issues)}if(ee)return en.common.issues.push(...ee.ctx.common.issues),ee.result;let eo=ei.map(ee=>new ZodError(ee));return addIssueToContext(en,{code:eR.invalid_union,unionErrors:eo}),eA}}get options(){return this._def.options}};ZodUnion.create=(ee,en)=>new ZodUnion({options:ee,typeName:eb.ZodUnion,...processCreateParams(en)});let getDiscriminator=ee=>{if(ee instanceof ZodLazy)return getDiscriminator(ee.schema);if(ee instanceof ZodEffects)return getDiscriminator(ee.innerType());if(ee instanceof ZodLiteral)return[ee.value];if(ee instanceof ZodEnum)return ee.options;if(ee instanceof ZodNativeEnum)return Object.keys(ee.enum);if(ee instanceof ZodDefault)return getDiscriminator(ee._def.innerType);if(ee instanceof ZodUndefined)return[void 0];else if(ee instanceof ZodNull)return[null];else return null};let ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.object)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.object,received:en.parsedType}),eA;let er=this.discriminator,ei=en.data[er],eo=this.optionsMap.get(ei);return eo?en.common.async?eo._parseAsync({data:en.data,path:en.path,parent:en}):eo._parseSync({data:en.data,path:en.path,parent:en}):(addIssueToContext(en,{code:eR.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[er]}),eA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(ee,en,er){let ei=new Map;for(let er of en){let en=getDiscriminator(er.shape[ee]);if(!en)throw Error(`A discriminator value for key \`${ee}\` could not be extracted from all schema options`);for(let eo of en){if(ei.has(eo))throw Error(`Discriminator property ${String(ee)} has duplicate value ${String(eo)}`);ei.set(eo,er)}}return new ZodDiscriminatedUnion({typeName:eb.ZodDiscriminatedUnion,discriminator:ee,options:en,optionsMap:ei,...processCreateParams(er)})}};function mergeValues(ee,en){let er=getParsedType(ee),ei=getParsedType(en);if(ee===en)return{valid:!0,data:ee};if(er===ej.object&&ei===ej.object){let er=ex.objectKeys(en),ei=ex.objectKeys(ee).filter(ee=>-1!==er.indexOf(ee)),eo={...ee,...en};for(let er of ei){let ei=mergeValues(ee[er],en[er]);if(!ei.valid)return{valid:!1};eo[er]=ei.data}return{valid:!0,data:eo}}if(er===ej.array&&ei===ej.array){if(ee.length!==en.length)return{valid:!1};let er=[];for(let ei=0;ei{if(isAborted(ee)||isAborted(ei))return eA;let eo=mergeValues(ee.value,ei.value);return eo.valid?((isDirty(ee)||isDirty(ei))&&en.dirty(),{status:en.value,value:eo.data}):(addIssueToContext(er,{code:eR.invalid_intersection_types}),eA)};return er.common.async?Promise.all([this._def.left._parseAsync({data:er.data,path:er.path,parent:er}),this._def.right._parseAsync({data:er.data,path:er.path,parent:er})]).then(([ee,en])=>handleParsed(ee,en)):handleParsed(this._def.left._parseSync({data:er.data,path:er.path,parent:er}),this._def.right._parseSync({data:er.data,path:er.path,parent:er}))}};ZodIntersection.create=(ee,en,er)=>new ZodIntersection({left:ee,right:en,typeName:eb.ZodIntersection,...processCreateParams(er)});let ZodTuple=class ZodTuple extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.array)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.array,received:er.parsedType}),eA;if(er.data.lengththis._def.items.length&&(addIssueToContext(er,{code:eR.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),en.dirty());let eo=[...er.data].map((ee,en)=>{let ei=this._def.items[en]||this._def.rest;return ei?ei._parse(new ParseInputLazyPath(er,ee,er.path,en)):null}).filter(ee=>!!ee);return er.common.async?Promise.all(eo).then(ee=>ParseStatus.mergeArray(en,ee)):ParseStatus.mergeArray(en,eo)}get items(){return this._def.items}rest(ee){return new ZodTuple({...this._def,rest:ee})}};ZodTuple.create=(ee,en)=>{if(!Array.isArray(ee))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:ee,typeName:eb.ZodTuple,rest:null,...processCreateParams(en)})};let ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.object)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.object,received:er.parsedType}),eA;let ei=[],eo=this._def.keyType,es=this._def.valueType;for(let ee in er.data)ei.push({key:eo._parse(new ParseInputLazyPath(er,ee,er.path,ee)),value:es._parse(new ParseInputLazyPath(er,er.data[ee],er.path,ee))});return er.common.async?ParseStatus.mergeObjectAsync(en,ei):ParseStatus.mergeObjectSync(en,ei)}get element(){return this._def.valueType}static create(ee,en,er){return new ZodRecord(en instanceof ZodType?{keyType:ee,valueType:en,typeName:eb.ZodRecord,...processCreateParams(er)}:{keyType:ZodString.create(),valueType:ee,typeName:eb.ZodRecord,...processCreateParams(en)})}};let ZodMap=class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.map)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.map,received:er.parsedType}),eA;let ei=this._def.keyType,eo=this._def.valueType,es=[...er.data.entries()].map(([ee,en],es)=>({key:ei._parse(new ParseInputLazyPath(er,ee,er.path,[es,"key"])),value:eo._parse(new ParseInputLazyPath(er,en,er.path,[es,"value"]))}));if(er.common.async){let ee=new Map;return Promise.resolve().then(async()=>{for(let er of es){let ei=await er.key,eo=await er.value;if("aborted"===ei.status||"aborted"===eo.status)return eA;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}})}{let ee=new Map;for(let er of es){let ei=er.key,eo=er.value;if("aborted"===ei.status||"aborted"===eo.status)return eA;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}}}};ZodMap.create=(ee,en,er)=>new ZodMap({valueType:en,keyType:ee,typeName:eb.ZodMap,...processCreateParams(er)});let ZodSet=class ZodSet extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.set)return addIssueToContext(er,{code:eR.invalid_type,expected:ej.set,received:er.parsedType}),eA;let ei=this._def;null!==ei.minSize&&er.data.sizeei.maxSize.value&&(addIssueToContext(er,{code:eR.too_big,maximum:ei.maxSize.value,type:"set",inclusive:!0,exact:!1,message:ei.maxSize.message}),en.dirty());let eo=this._def.valueType;function finalizeSet(ee){let er=new Set;for(let ei of ee){if("aborted"===ei.status)return eA;"dirty"===ei.status&&en.dirty(),er.add(ei.value)}return{status:en.value,value:er}}let es=[...er.data.values()].map((ee,en)=>eo._parse(new ParseInputLazyPath(er,ee,er.path,en)));return er.common.async?Promise.all(es).then(ee=>finalizeSet(ee)):finalizeSet(es)}min(ee,en){return new ZodSet({...this._def,minSize:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodSet({...this._def,maxSize:{value:ee,message:ey.toString(en)}})}size(ee,en){return this.min(ee,en).max(ee,en)}nonempty(ee){return this.min(1,ee)}};ZodSet.create=(ee,en)=>new ZodSet({valueType:ee,minSize:null,maxSize:null,typeName:eb.ZodSet,...processCreateParams(en)});let ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.function)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.function,received:en.parsedType}),eA;function makeArgsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eR.invalid_arguments,argumentsError:er}})}function makeReturnsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eR.invalid_return_type,returnTypeError:er}})}let er={errorMap:en.common.contextualErrorMap},ei=en.data;if(this._def.returns instanceof ZodPromise){let ee=this;return OK(async function(...en){let eo=new ZodError([]),es=await ee._def.args.parseAsync(en,er).catch(ee=>{throw eo.addIssue(makeArgsIssue(en,ee)),eo}),eu=await Reflect.apply(ei,this,es),ec=await ee._def.returns._def.type.parseAsync(eu,er).catch(ee=>{throw eo.addIssue(makeReturnsIssue(eu,ee)),eo});return ec})}{let ee=this;return OK(function(...en){let eo=ee._def.args.safeParse(en,er);if(!eo.success)throw new ZodError([makeArgsIssue(en,eo.error)]);let es=Reflect.apply(ei,this,eo.data),eu=ee._def.returns.safeParse(es,er);if(!eu.success)throw new ZodError([makeReturnsIssue(es,eu.error)]);return eu.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...ee){return new ZodFunction({...this._def,args:ZodTuple.create(ee).rest(ZodUnknown.create())})}returns(ee){return new ZodFunction({...this._def,returns:ee})}implement(ee){let en=this.parse(ee);return en}strictImplement(ee){let en=this.parse(ee);return en}static create(ee,en,er){return new ZodFunction({args:ee||ZodTuple.create([]).rest(ZodUnknown.create()),returns:en||ZodUnknown.create(),typeName:eb.ZodFunction,...processCreateParams(er)})}};let ZodLazy=class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.getter();return er._parse({data:en.data,path:en.path,parent:en})}};ZodLazy.create=(ee,en)=>new ZodLazy({getter:ee,typeName:eb.ZodLazy,...processCreateParams(en)});let ZodLiteral=class ZodLiteral extends ZodType{_parse(ee){if(ee.data!==this._def.value){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{received:en.data,code:eR.invalid_literal,expected:this._def.value}),eA}return{status:"valid",value:ee.data}}get value(){return this._def.value}};function createZodEnum(ee,en){return new ZodEnum({values:ee,typeName:eb.ZodEnum,...processCreateParams(en)})}ZodLiteral.create=(ee,en)=>new ZodLiteral({value:ee,typeName:eb.ZodLiteral,...processCreateParams(en)});let ZodEnum=class ZodEnum extends ZodType{_parse(ee){if("string"!=typeof ee.data){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{expected:ex.joinValues(er),received:en.parsedType,code:eR.invalid_type}),eA}if(-1===this._def.values.indexOf(ee.data)){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{received:en.data,code:eR.invalid_enum_value,options:er}),eA}return OK(ee.data)}get options(){return this._def.values}get enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Values(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}extract(ee){return ZodEnum.create(ee)}exclude(ee){return ZodEnum.create(this.options.filter(en=>!ee.includes(en)))}};ZodEnum.create=createZodEnum;let ZodNativeEnum=class ZodNativeEnum extends ZodType{_parse(ee){let en=ex.getValidEnumValues(this._def.values),er=this._getOrReturnCtx(ee);if(er.parsedType!==ej.string&&er.parsedType!==ej.number){let ee=ex.objectValues(en);return addIssueToContext(er,{expected:ex.joinValues(ee),received:er.parsedType,code:eR.invalid_type}),eA}if(-1===en.indexOf(ee.data)){let ee=ex.objectValues(en);return addIssueToContext(er,{received:er.data,code:eR.invalid_enum_value,options:ee}),eA}return OK(ee.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(ee,en)=>new ZodNativeEnum({values:ee,typeName:eb.ZodNativeEnum,...processCreateParams(en)});let ZodPromise=class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.promise&&!1===en.common.async)return addIssueToContext(en,{code:eR.invalid_type,expected:ej.promise,received:en.parsedType}),eA;let er=en.parsedType===ej.promise?en.data:Promise.resolve(en.data);return OK(er.then(ee=>this._def.type.parseAsync(ee,{path:en.path,errorMap:en.common.contextualErrorMap})))}};ZodPromise.create=(ee,en)=>new ZodPromise({type:ee,typeName:eb.ZodPromise,...processCreateParams(en)});let ZodEffects=class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eb.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),ei=this._def.effect||null,eo={addIssue:ee=>{addIssueToContext(er,ee),ee.fatal?en.abort():en.dirty()},get path(){return er.path}};if(eo.addIssue=eo.addIssue.bind(eo),"preprocess"===ei.type){let ee=ei.transform(er.data,eo);return er.common.issues.length?{status:"dirty",value:er.data}:er.common.async?Promise.resolve(ee).then(ee=>this._def.schema._parseAsync({data:ee,path:er.path,parent:er})):this._def.schema._parseSync({data:ee,path:er.path,parent:er})}if("refinement"===ei.type){let executeRefinement=ee=>{let en=ei.refinement(ee,eo);if(er.common.async)return Promise.resolve(en);if(en instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return ee};if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>"aborted"===ee.status?eA:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value).then(()=>({status:en.value,value:ee.value}))));{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eA:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value),{status:en.value,value:ee.value})}}if("transform"===ei.type){if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>isValid(ee)?Promise.resolve(ei.transform(ee.value,eo)).then(ee=>({status:en.value,value:ee})):ee);{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});if(!isValid(ee))return ee;let es=ei.transform(ee.value,eo);if(es instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:en.value,value:es}}}ex.assertNever(ei)}};ZodEffects.create=(ee,en,er)=>new ZodEffects({schema:ee,typeName:eb.ZodEffects,effect:en,...processCreateParams(er)}),ZodEffects.createWithPreprocess=(ee,en,er)=>new ZodEffects({schema:en,effect:{type:"preprocess",transform:ee},typeName:eb.ZodEffects,...processCreateParams(er)});let ZodOptional=class ZodOptional extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.undefined?OK(void 0):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodOptional.create=(ee,en)=>new ZodOptional({innerType:ee,typeName:eb.ZodOptional,...processCreateParams(en)});let ZodNullable=class ZodNullable extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.null?OK(null):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodNullable.create=(ee,en)=>new ZodNullable({innerType:ee,typeName:eb.ZodNullable,...processCreateParams(en)});let ZodDefault=class ZodDefault extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return en.parsedType===ej.undefined&&(er=this._def.defaultValue()),this._def.innerType._parse({data:er,path:en.path,parent:en})}removeDefault(){return this._def.innerType}};ZodDefault.create=(ee,en)=>new ZodDefault({innerType:ee,typeName:eb.ZodDefault,defaultValue:"function"==typeof en.default?en.default:()=>en.default,...processCreateParams(en)});let ZodCatch=class ZodCatch extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er={...en,common:{...en.common,issues:[]}},ei=this._def.innerType._parse({data:er.data,path:er.path,parent:{...er}});return isAsync(ei)?ei.then(ee=>({status:"valid",value:"valid"===ee.status?ee.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})})):{status:"valid",value:"valid"===ei.status?ei.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(ee,en)=>new ZodCatch({innerType:ee,typeName:eb.ZodCatch,catchValue:"function"==typeof en.catch?en.catch:()=>en.catch,...processCreateParams(en)});let ZodNaN=class ZodNaN extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.nan){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eR.invalid_type,expected:ej.nan,received:en.parsedType}),eA}return{status:"valid",value:ee.data}}};ZodNaN.create=ee=>new ZodNaN({typeName:eb.ZodNaN,...processCreateParams(ee)});let eW=Symbol("zod_brand");let ZodBranded=class ZodBranded extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return this._def.type._parse({data:er,path:en.path,parent:en})}unwrap(){return this._def.type}};let ZodPipeline=class ZodPipeline extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.common.async){let handleAsync=async()=>{let ee=await this._def.in._parseAsync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eA:"dirty"===ee.status?(en.dirty(),DIRTY(ee.value)):this._def.out._parseAsync({data:ee.value,path:er.path,parent:er})};return handleAsync()}{let ee=this._def.in._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eA:"dirty"===ee.status?(en.dirty(),{status:"dirty",value:ee.value}):this._def.out._parseSync({data:ee.value,path:er.path,parent:er})}}static create(ee,en){return new ZodPipeline({in:ee,out:en,typeName:eb.ZodPipeline})}};let ZodReadonly=class ZodReadonly extends ZodType{_parse(ee){let en=this._def.innerType._parse(ee);return isValid(en)&&(en.value=Object.freeze(en.value)),en}};ZodReadonly.create=(ee,en)=>new ZodReadonly({innerType:ee,typeName:eb.ZodReadonly,...processCreateParams(en)});let custom=(ee,en={},er)=>ee?ZodAny.create().superRefine((ei,eo)=>{var es,eu;if(!ee(ei)){let ee="function"==typeof en?en(ei):"string"==typeof en?{message:en}:en,ec=null===(eu=null!==(es=ee.fatal)&&void 0!==es?es:er)||void 0===eu||eu,ed="string"==typeof ee?{message:ee}:ee;eo.addIssue({code:"custom",...ed,fatal:ec})}}):ZodAny.create(),eH={object:ZodObject.lazycreate};!function(ee){ee.ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline",ee.ZodReadonly="ZodReadonly"}(eb||(eb={}));let instanceOfType=(ee,en={message:`Input not instance of ${ee.name}`})=>custom(en=>en instanceof ee,en),eq=ZodString.create,e$=ZodNumber.create,eQ=ZodNaN.create,eG=ZodBigInt.create,eK=ZodBoolean.create,eY=ZodDate.create,eX=ZodSymbol.create,eJ=ZodUndefined.create,e0=ZodNull.create,e1=ZodAny.create,e2=ZodUnknown.create,e4=ZodNever.create,e5=ZodVoid.create,e3=ZodArray.create,e6=ZodObject.create,e7=ZodObject.strictCreate,e9=ZodUnion.create,e8=ZodDiscriminatedUnion.create,tn=ZodIntersection.create,tr=ZodTuple.create,ti=ZodRecord.create,to=ZodMap.create,ts=ZodSet.create,tl=ZodFunction.create,tu=ZodLazy.create,tc=ZodLiteral.create,td=ZodEnum.create,th=ZodNativeEnum.create,tp=ZodPromise.create,tf=ZodEffects.create,tm=ZodOptional.create,tg=ZodNullable.create,tx=ZodEffects.createWithPreprocess,tv=ZodPipeline.create,ostring=()=>eq().optional(),onumber=()=>e$().optional(),oboolean=()=>eK().optional(),ty={string:ee=>ZodString.create({...ee,coerce:!0}),number:ee=>ZodNumber.create({...ee,coerce:!0}),boolean:ee=>ZodBoolean.create({...ee,coerce:!0}),bigint:ee=>ZodBigInt.create({...ee,coerce:!0}),date:ee=>ZodDate.create({...ee,coerce:!0})},tb=eA;var t_=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:eN,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:eA,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return ex},get objectUtil(){return ev},ZodParsedType:ej,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:eW,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:eH,get ZodFirstPartyTypeKind(){return eb},coerce:ty,any:e1,array:e3,bigint:eG,boolean:eK,date:eY,discriminatedUnion:e8,effect:tf,enum:td,function:tl,instanceof:instanceOfType,intersection:tn,lazy:tu,literal:tc,map:to,nan:eQ,nativeEnum:th,never:e4,null:e0,nullable:tg,number:e$,object:e6,oboolean:oboolean,onumber:onumber,optional:tm,ostring:ostring,pipeline:tv,preprocess:tx,promise:tp,record:ti,set:ts,strictObject:e7,string:eq,symbol:eX,transformer:tf,tuple:tr,undefined:eJ,union:e9,unknown:e2,void:e5,NEVER:tb,ZodIssueCode:eR,quotelessJson:quotelessJson,ZodError:ZodError}),tw=er(1664),tk=er.n(tw),tC={i8:"13.5.6"};er(6337);var tE=er(2010),tO={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tT=t_.strictObject({breadcrumb:t_.boolean(),collapsed:t_.boolean(),footer:t_.boolean(),layout:t_.enum(["default","full","raw"]),navbar:t_.boolean(),pagination:t_.boolean(),sidebar:t_.boolean(),timestamp:t_.boolean(),toc:t_.boolean(),typesetting:t_.enum(["default","article"])}),tP=t_.enum(["normal","hidden","children"]),tS=t_.string(),tI=t_.strictObject({href:t_.string(),newWindow:t_.boolean(),title:tS}),tj=t_.strictObject({display:tP.optional(),items:t_.record(tI.partial({href:!0,newWindow:!0})),title:tS,type:t_.literal("menu")}),tR=t_.strictObject({title:tS,type:t_.literal("separator")}),tM=tI.extend({display:tP,theme:tT,title:tS,type:t_.enum(["page","doc"])}).deepPartial();function extendMeta(ee={},en){"string"==typeof ee&&(ee={title:ee});let er=Object.assign({},en.theme,ee.theme);return Object.assign({},en,ee,{theme:er})}function findFirstRoute(ee){for(let en of ee){if(en.route)return en.route;if(en.children){let ee=findFirstRoute(en.children);if(ee)return ee}}}function normalizePages({list:ee,locale:en,defaultLocale:er,route:ei,docsRoot:eo="",underCurrentDocsRoot:es=!1,pageThemeContext:eu=tO}){let ec,ed;for(let er of ee)if("Meta"===er.kind){if(er.locale===en){ec=er.data;break}ec||(ec=er.data)}let eh=ec||{},ep=Object.keys(eh);for(let ee of ep)"string"==typeof eh[ee]&&(eh[ee]={title:eh[ee]});let ef=[],em=[],eg=[],ex=[],ev=[],ey=0,eb=eu,e_=[],ew=-1,ek=eh["*"]||{};delete ek.title,delete ek.href;let eC=ee.filter(ee=>"Meta"!==ee.kind&&!ee.name.startsWith("_")&&(!("locale"in ee)||!ee.locale||[en,er].includes(ee.locale))).sort((ee,en)=>{let er=ep.indexOf(ee.name),ei=ep.indexOf(en.name);return -1===er&&-1===ei?ee.name{let en;let er=[],ei=ep.indexOf(ee.name);if(-1!==ei){for(let ee=ew+1;ee({...ec,type:eE,...eI&&{title:eI},...ew&&{display:ew},...eS&&{children:[]}}),ej=getItem(),eR=getItem(),eM=getItem();if(eR.isUnderCurrentDocsTree=eP,"separator"===eE&&(ej.isUnderCurrentDocsTree=eP),ec.route===ei)switch(e_=[ej],ed=eE,eb={...eb,...eO},eE){case"page":case"menu":ey=ev.length;break;case"doc":ey=ex.length}if(!("hidden"===ew&&"Folder"!==ej.kind||eT.hV.has(ec.route))){if(eS){if(void 0!==eS.activeIndex&&void 0!==eS.activeType){switch(eb=eS.activeThemeContext,ed=eS.activeType,e_=[ej,...eS.activePath],ed){case"page":case"menu":ey=ev.length+eS.activeIndex;break;case"doc":ey=ex.length+eS.activeIndex}ec.withIndexPage&&"doc"===eE&&ey++}switch(eE){case"page":case"menu":eM.children.push(...eS.directories),eg.push(...eS.docsDirectories),eS.flatDirectories.length?(eM.firstChildRoute=findFirstRoute(eS.flatDirectories),ev.push(eM)):eM.withIndexPage&&ev.push(eM);break;case"doc":Array.isArray(eR.children)&&eR.children.push(...eS.docsDirectories),ej.withIndexPage&&"children"!==ew&&ex.push(eR)}em.push(...eS.flatDirectories),ex.push(...eS.flatDocsDirectories),Array.isArray(ej.children)&&ej.children.push(...eS.directories)}else switch(em.push(ej),eE){case"page":case"menu":ev.push(eM);break;case"doc":ex.push(eR)}switch("doc"===eE&&"children"===ew?eR.children&&(ef.push(...eR.children),eg.push(...eR.children)):ef.push(ej),eE){case"page":case"menu":eg.push(eM);break;case"doc":"children"!==ew&&eg.push(eR);break;case"separator":eg.push(ej)}}}return{activeType:ed,activeIndex:ey,activeThemeContext:eb,activePath:e_,directories:ef,flatDirectories:em,docsDirectories:eg,flatDocsDirectories:ex,topLevelNavbarItems:ev}}t_.string().or(tj).or(tR).or(tM);var tN=er(3458),tA=er.n(tN);function getWindow(ee){if(null==ee)return window;if("[object Window]"!==ee.toString()){var en=ee.ownerDocument;return en&&en.defaultView||window}return ee}function isElement(ee){var en=getWindow(ee).Element;return ee instanceof en||ee instanceof Element}function isHTMLElement(ee){var en=getWindow(ee).HTMLElement;return ee instanceof en||ee instanceof HTMLElement}function isShadowRoot(ee){if("undefined"==typeof ShadowRoot)return!1;var en=getWindow(ee).ShadowRoot;return ee instanceof en||ee instanceof ShadowRoot}var tL=Math.max,tZ=Math.min,tF=Math.round;function getUAString(){var ee=navigator.userAgentData;return null!=ee&&ee.brands&&Array.isArray(ee.brands)?ee.brands.map(function(ee){return ee.brand+"/"+ee.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ee,en,er){void 0===en&&(en=!1),void 0===er&&(er=!1);var ei=ee.getBoundingClientRect(),eo=1,es=1;en&&isHTMLElement(ee)&&(eo=ee.offsetWidth>0&&tF(ei.width)/ee.offsetWidth||1,es=ee.offsetHeight>0&&tF(ei.height)/ee.offsetHeight||1);var eu=(isElement(ee)?getWindow(ee):window).visualViewport,ec=!isLayoutViewport()&&er,ed=(ei.left+(ec&&eu?eu.offsetLeft:0))/eo,eh=(ei.top+(ec&&eu?eu.offsetTop:0))/es,ep=ei.width/eo,ef=ei.height/es;return{width:ep,height:ef,top:eh,right:ed+ep,bottom:eh+ef,left:ed,x:ed,y:eh}}function getWindowScroll(ee){var en=getWindow(ee);return{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function getHTMLElementScroll(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function getNodeScroll(ee){return ee!==getWindow(ee)&&isHTMLElement(ee)?getHTMLElementScroll(ee):getWindowScroll(ee)}function getNodeName(ee){return ee?(ee.nodeName||"").toLowerCase():null}function getDocumentElement(ee){return((isElement(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function getWindowScrollBarX(ee){return getBoundingClientRect(getDocumentElement(ee)).left+getWindowScroll(ee).scrollLeft}function getComputedStyle_getComputedStyle(ee){return getWindow(ee).getComputedStyle(ee)}function isScrollParent(ee){var en=getComputedStyle_getComputedStyle(ee),er=en.overflow,ei=en.overflowX,eo=en.overflowY;return/auto|scroll|overlay|hidden/.test(er+eo+ei)}function isElementScaled(ee){var en=ee.getBoundingClientRect(),er=tF(en.width)/ee.offsetWidth||1,ei=tF(en.height)/ee.offsetHeight||1;return 1!==er||1!==ei}function getCompositeRect(ee,en,er){void 0===er&&(er=!1);var ei=isHTMLElement(en),eo=isHTMLElement(en)&&isElementScaled(en),es=getDocumentElement(en),eu=getBoundingClientRect(ee,eo,er),ec={scrollLeft:0,scrollTop:0},ed={x:0,y:0};return(ei||!ei&&!er)&&(("body"!==getNodeName(en)||isScrollParent(es))&&(ec=getNodeScroll(en)),isHTMLElement(en)?(ed=getBoundingClientRect(en,!0),ed.x+=en.clientLeft,ed.y+=en.clientTop):es&&(ed.x=getWindowScrollBarX(es))),{x:eu.left+ec.scrollLeft-ed.x,y:eu.top+ec.scrollTop-ed.y,width:eu.width,height:eu.height}}function getLayoutRect(ee){var en=getBoundingClientRect(ee),er=ee.offsetWidth,ei=ee.offsetHeight;return 1>=Math.abs(en.width-er)&&(er=en.width),1>=Math.abs(en.height-ei)&&(ei=en.height),{x:ee.offsetLeft,y:ee.offsetTop,width:er,height:ei}}function getParentNode(ee){return"html"===getNodeName(ee)?ee:ee.assignedSlot||ee.parentNode||(isShadowRoot(ee)?ee.host:null)||getDocumentElement(ee)}function getScrollParent(ee){return["html","body","#document"].indexOf(getNodeName(ee))>=0?ee.ownerDocument.body:isHTMLElement(ee)&&isScrollParent(ee)?ee:getScrollParent(getParentNode(ee))}function listScrollParents(ee,en){void 0===en&&(en=[]);var er,ei=getScrollParent(ee),eo=ei===(null==(er=ee.ownerDocument)?void 0:er.body),es=getWindow(ei),eu=eo?[es].concat(es.visualViewport||[],isScrollParent(ei)?ei:[]):ei,ec=en.concat(eu);return eo?ec:ec.concat(listScrollParents(getParentNode(eu)))}function isTableElement(ee){return["table","td","th"].indexOf(getNodeName(ee))>=0}function getTrueOffsetParent(ee){return isHTMLElement(ee)&&"fixed"!==getComputedStyle_getComputedStyle(ee).position?ee.offsetParent:null}function getContainingBlock(ee){var en=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(ee)&&"fixed"===getComputedStyle_getComputedStyle(ee).position)return null;var er=getParentNode(ee);for(isShadowRoot(er)&&(er=er.host);isHTMLElement(er)&&0>["html","body"].indexOf(getNodeName(er));){var ei=getComputedStyle_getComputedStyle(er);if("none"!==ei.transform||"none"!==ei.perspective||"paint"===ei.contain||-1!==["transform","perspective"].indexOf(ei.willChange)||en&&"filter"===ei.willChange||en&&ei.filter&&"none"!==ei.filter)return er;er=er.parentNode}return null}function getOffsetParent(ee){for(var en=getWindow(ee),er=getTrueOffsetParent(ee);er&&isTableElement(er)&&"static"===getComputedStyle_getComputedStyle(er).position;)er=getTrueOffsetParent(er);return er&&("html"===getNodeName(er)||"body"===getNodeName(er)&&"static"===getComputedStyle_getComputedStyle(er).position)?en:er||getContainingBlock(ee)||en}var tD="top",tU="bottom",tV="right",tz="left",tB="auto",tW=[tD,tU,tV,tz],tH="start",tq="end",t$="clippingParents",tQ="viewport",tG="popper",tK="reference",tY=tW.reduce(function(ee,en){return ee.concat([en+"-"+tH,en+"-"+tq])},[]),tX=[].concat(tW,[tB]).reduce(function(ee,en){return ee.concat([en,en+"-"+tH,en+"-"+tq])},[]),tJ=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(ee){var en=new Map,er=new Set,ei=[];function sort(ee){er.add(ee.name),[].concat(ee.requires||[],ee.requiresIfExists||[]).forEach(function(ee){if(!er.has(ee)){var ei=en.get(ee);ei&&sort(ei)}}),ei.push(ee)}return ee.forEach(function(ee){en.set(ee.name,ee)}),ee.forEach(function(ee){er.has(ee.name)||sort(ee)}),ei}function orderModifiers(ee){var en=order(ee);return tJ.reduce(function(ee,er){return ee.concat(en.filter(function(ee){return ee.phase===er}))},[])}function debounce(ee){var en;return function(){return en||(en=new Promise(function(er){Promise.resolve().then(function(){en=void 0,er(ee())})})),en}}function mergeByName(ee){var en=ee.reduce(function(ee,en){var er=ee[en.name];return ee[en.name]=er?Object.assign({},er,en,{options:Object.assign({},er.options,en.options),data:Object.assign({},er.data,en.data)}):en,ee},{});return Object.keys(en).map(function(ee){return en[ee]})}var t0={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ee=arguments.length,en=Array(ee),er=0;er=0?"x":"y"}function computeOffsets(ee){var en,er=ee.reference,ei=ee.element,eo=ee.placement,es=eo?getBasePlacement(eo):null,eu=eo?getVariation(eo):null,ec=er.x+er.width/2-ei.width/2,ed=er.y+er.height/2-ei.height/2;switch(es){case tD:en={x:ec,y:er.y-ei.height};break;case tU:en={x:ec,y:er.y+er.height};break;case tV:en={x:er.x+er.width,y:ed};break;case tz:en={x:er.x-ei.width,y:ed};break;default:en={x:er.x,y:er.y}}var eh=es?getMainAxisFromPlacement(es):null;if(null!=eh){var ep="y"===eh?"height":"width";switch(eu){case tH:en[eh]=en[eh]-(er[ep]/2-ei[ep]/2);break;case tq:en[eh]=en[eh]+(er[ep]/2-ei[ep]/2)}}return en}var t2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ee,en){var er=ee.x,ei=ee.y,eo=en.devicePixelRatio||1;return{x:tF(er*eo)/eo||0,y:tF(ei*eo)/eo||0}}function mapToStyles(ee){var en,er,ei=ee.popper,eo=ee.popperRect,es=ee.placement,eu=ee.variation,ec=ee.offsets,ed=ee.position,eh=ee.gpuAcceleration,ep=ee.adaptive,ef=ee.roundOffsets,em=ee.isFixed,eg=ec.x,ex=void 0===eg?0:eg,ev=ec.y,ey=void 0===ev?0:ev,eb="function"==typeof ef?ef({x:ex,y:ey}):{x:ex,y:ey};ex=eb.x,ey=eb.y;var e_=ec.hasOwnProperty("x"),ew=ec.hasOwnProperty("y"),ek=tz,eC=tD,eE=window;if(ep){var eO=getOffsetParent(ei),eT="clientHeight",eP="clientWidth";eO===getWindow(ei)&&"static"!==getComputedStyle_getComputedStyle(eO=getDocumentElement(ei)).position&&"absolute"===ed&&(eT="scrollHeight",eP="scrollWidth"),(es===tD||(es===tz||es===tV)&&eu===tq)&&(eC=tU,ey-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.height:eO[eT])-eo.height,ey*=eh?1:-1),(es===tz||(es===tD||es===tU)&&eu===tq)&&(ek=tV,ex-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.width:eO[eP])-eo.width,ex*=eh?1:-1)}var eS=Object.assign({position:ed},ep&&t2),eI=!0===ef?roundOffsetsByDPR({x:ex,y:ey},getWindow(ei)):{x:ex,y:ey};return(ex=eI.x,ey=eI.y,eh)?Object.assign({},eS,((er={})[eC]=ew?"0":"",er[ek]=e_?"0":"",er.transform=1>=(eE.devicePixelRatio||1)?"translate("+ex+"px, "+ey+"px)":"translate3d("+ex+"px, "+ey+"px, 0)",er)):Object.assign({},eS,((en={})[eC]=ew?ey+"px":"",en[ek]=e_?ex+"px":"",en.transform="",en))}function distanceAndSkiddingToXY(ee,en,er){var ei=getBasePlacement(ee),eo=[tz,tD].indexOf(ei)>=0?-1:1,es="function"==typeof er?er(Object.assign({},en,{placement:ee})):er,eu=es[0],ec=es[1];return eu=eu||0,ec=(ec||0)*eo,[tz,tV].indexOf(ei)>=0?{x:ec,y:eu}:{x:eu,y:ec}}var t4={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(ee){return ee.replace(/left|right|bottom|top/g,function(ee){return t4[ee]})}var t5={start:"end",end:"start"};function getOppositeVariationPlacement(ee){return ee.replace(/start|end/g,function(ee){return t5[ee]})}function getViewportRect(ee,en){var er=getWindow(ee),ei=getDocumentElement(ee),eo=er.visualViewport,es=ei.clientWidth,eu=ei.clientHeight,ec=0,ed=0;if(eo){es=eo.width,eu=eo.height;var eh=isLayoutViewport();(eh||!eh&&"fixed"===en)&&(ec=eo.offsetLeft,ed=eo.offsetTop)}return{width:es,height:eu,x:ec+getWindowScrollBarX(ee),y:ed}}function getDocumentRect(ee){var en,er=getDocumentElement(ee),ei=getWindowScroll(ee),eo=null==(en=ee.ownerDocument)?void 0:en.body,es=tL(er.scrollWidth,er.clientWidth,eo?eo.scrollWidth:0,eo?eo.clientWidth:0),eu=tL(er.scrollHeight,er.clientHeight,eo?eo.scrollHeight:0,eo?eo.clientHeight:0),ec=-ei.scrollLeft+getWindowScrollBarX(ee),ed=-ei.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(eo||er).direction&&(ec+=tL(er.clientWidth,eo?eo.clientWidth:0)-es),{width:es,height:eu,x:ec,y:ed}}function contains(ee,en){var er=en.getRootNode&&en.getRootNode();if(ee.contains(en))return!0;if(er&&isShadowRoot(er)){var ei=en;do{if(ei&&ee.isSameNode(ei))return!0;ei=ei.parentNode||ei.host}while(ei)}return!1}function rectToClientRect(ee){return Object.assign({},ee,{left:ee.x,top:ee.y,right:ee.x+ee.width,bottom:ee.y+ee.height})}function getInnerBoundingClientRect(ee,en){var er=getBoundingClientRect(ee,!1,"fixed"===en);return er.top=er.top+ee.clientTop,er.left=er.left+ee.clientLeft,er.bottom=er.top+ee.clientHeight,er.right=er.left+ee.clientWidth,er.width=ee.clientWidth,er.height=ee.clientHeight,er.x=er.left,er.y=er.top,er}function getClientRectFromMixedType(ee,en,er){return en===tQ?rectToClientRect(getViewportRect(ee,er)):isElement(en)?getInnerBoundingClientRect(en,er):rectToClientRect(getDocumentRect(getDocumentElement(ee)))}function getClippingParents(ee){var en=listScrollParents(getParentNode(ee)),er=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(ee).position)>=0&&isHTMLElement(ee)?getOffsetParent(ee):ee;return isElement(er)?en.filter(function(ee){return isElement(ee)&&contains(ee,er)&&"body"!==getNodeName(ee)}):[]}function getClippingRect(ee,en,er,ei){var eo=[].concat("clippingParents"===en?getClippingParents(ee):[].concat(en),[er]),es=eo[0],eu=eo.reduce(function(en,er){var eo=getClientRectFromMixedType(ee,er,ei);return en.top=tL(eo.top,en.top),en.right=tZ(eo.right,en.right),en.bottom=tZ(eo.bottom,en.bottom),en.left=tL(eo.left,en.left),en},getClientRectFromMixedType(ee,es,ei));return eu.width=eu.right-eu.left,eu.height=eu.bottom-eu.top,eu.x=eu.left,eu.y=eu.top,eu}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(ee){return Object.assign({},getFreshSideObject(),ee)}function expandToHashMap(ee,en){return en.reduce(function(en,er){return en[er]=ee,en},{})}function detectOverflow(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=void 0===ei?ee.placement:ei,es=er.strategy,eu=void 0===es?ee.strategy:es,ec=er.boundary,ed=void 0===ec?t$:ec,eh=er.rootBoundary,ep=void 0===eh?tQ:eh,ef=er.elementContext,em=void 0===ef?tG:ef,eg=er.altBoundary,ex=void 0!==eg&&eg,ev=er.padding,ey=void 0===ev?0:ev,eb=mergePaddingObject("number"!=typeof ey?ey:expandToHashMap(ey,tW)),e_=em===tG?tK:tG,ew=ee.rects.popper,ek=ee.elements[ex?e_:em],eC=getClippingRect(isElement(ek)?ek:ek.contextElement||getDocumentElement(ee.elements.popper),ed,ep,eu),eE=getBoundingClientRect(ee.elements.reference),eO=computeOffsets({reference:eE,element:ew,strategy:"absolute",placement:eo}),eT=rectToClientRect(Object.assign({},ew,eO)),eP=em===tG?eT:eE,eS={top:eC.top-eP.top+eb.top,bottom:eP.bottom-eC.bottom+eb.bottom,left:eC.left-eP.left+eb.left,right:eP.right-eC.right+eb.right},eI=ee.modifiersData.offset;if(em===tG&&eI){var ej=eI[eo];Object.keys(eS).forEach(function(ee){var en=[tV,tU].indexOf(ee)>=0?1:-1,er=[tD,tU].indexOf(ee)>=0?"y":"x";eS[ee]+=ej[er]*en})}return eS}function computeAutoPlacement(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=er.boundary,es=er.rootBoundary,eu=er.padding,ec=er.flipVariations,ed=er.allowedAutoPlacements,eh=void 0===ed?tX:ed,ep=getVariation(ei),ef=ep?ec?tY:tY.filter(function(ee){return getVariation(ee)===ep}):tW,em=ef.filter(function(ee){return eh.indexOf(ee)>=0});0===em.length&&(em=ef);var eg=em.reduce(function(en,er){return en[er]=detectOverflow(ee,{placement:er,boundary:eo,rootBoundary:es,padding:eu})[getBasePlacement(er)],en},{});return Object.keys(eg).sort(function(ee,en){return eg[ee]-eg[en]})}function getExpandedFallbackPlacements(ee){if(getBasePlacement(ee)===tB)return[];var en=getOppositePlacement(ee);return[getOppositeVariationPlacement(ee),en,getOppositeVariationPlacement(en)]}function getAltAxis(ee){return"x"===ee?"y":"x"}function within(ee,en,er){return tL(ee,tZ(en,er))}function withinMaxClamp(ee,en,er){var ei=within(ee,en,er);return ei>er?er:ei}var toPaddingObject=function(ee,en){return mergePaddingObject("number"!=typeof(ee="function"==typeof ee?ee(Object.assign({},en.rects,{placement:en.placement})):ee)?ee:expandToHashMap(ee,tW))};function getSideOffsets(ee,en,er){return void 0===er&&(er={x:0,y:0}),{top:ee.top-en.height-er.y,right:ee.right-en.width+er.x,bottom:ee.bottom-en.height+er.y,left:ee.left-en.width-er.x}}function isAnySideFullyClipped(ee){return[tD,tV,tU,tz].some(function(en){return ee[en]>=0})}var t3=function(ee){void 0===ee&&(ee={});var en=ee,er=en.defaultModifiers,ei=void 0===er?[]:er,eo=en.defaultOptions,es=void 0===eo?t0:eo;return function(ee,en,er){void 0===er&&(er=es);var eo={placement:"bottom",orderedModifiers:[],options:Object.assign({},t0,es),modifiersData:{},elements:{reference:ee,popper:en},attributes:{},styles:{}},eu=[],ec=!1,ed={state:eo,setOptions:function(er){var eu="function"==typeof er?er(eo.options):er;cleanupModifierEffects(),eo.options=Object.assign({},es,eo.options,eu),eo.scrollParents={reference:isElement(ee)?listScrollParents(ee):ee.contextElement?listScrollParents(ee.contextElement):[],popper:listScrollParents(en)};var ec=orderModifiers(mergeByName([].concat(ei,eo.options.modifiers)));return eo.orderedModifiers=ec.filter(function(ee){return ee.enabled}),runModifierEffects(),ed.update()},forceUpdate:function(){if(!ec){var ee=eo.elements,en=ee.reference,er=ee.popper;if(areValidElements(en,er)){eo.rects={reference:getCompositeRect(en,getOffsetParent(er),"fixed"===eo.options.strategy),popper:getLayoutRect(er)},eo.reset=!1,eo.placement=eo.options.placement,eo.orderedModifiers.forEach(function(ee){return eo.modifiersData[ee.name]=Object.assign({},ee.data)});for(var ei=0;ei=0,eM=eR?"width":"height",eN=detectOverflow(en,{placement:eS,boundary:ep,rootBoundary:ef,altBoundary:em,padding:eh}),eA=eR?ej?tV:tz:ej?tU:tD;ek[eM]>eC[eM]&&(eA=getOppositePlacement(eA));var eL=getOppositePlacement(eA),eZ=[];if(es&&eZ.push(eN[eI]<=0),ec&&eZ.push(eN[eA]<=0,eN[eL]<=0),eZ.every(function(ee){return ee})){eT=eS,eO=!1;break}eE.set(eS,eZ)}if(eO)for(var eF=ex?3:1,_loop=function(ee){var en=ew.find(function(en){var er=eE.get(en);if(er)return er.slice(0,ee).every(function(ee){return ee})});if(en)return eT=en,"break"},eD=eF;eD>0&&"break"!==_loop(eD);eD--);en.placement!==eT&&(en.modifiersData[ei]._skip=!0,en.placement=eT,en.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,ei=ee.name,eo=er.mainAxis,es=void 0===eo||eo,eu=er.altAxis,ec=void 0!==eu&&eu,ed=er.boundary,eh=er.rootBoundary,ep=er.altBoundary,ef=er.padding,em=er.tether,eg=void 0===em||em,ex=er.tetherOffset,ev=void 0===ex?0:ex,ey=detectOverflow(en,{boundary:ed,rootBoundary:eh,padding:ef,altBoundary:ep}),eb=getBasePlacement(en.placement),e_=getVariation(en.placement),ew=!e_,ek=getMainAxisFromPlacement(eb),eC=getAltAxis(ek),eE=en.modifiersData.popperOffsets,eO=en.rects.reference,eT=en.rects.popper,eP="function"==typeof ev?ev(Object.assign({},en.rects,{placement:en.placement})):ev,eS="number"==typeof eP?{mainAxis:eP,altAxis:eP}:Object.assign({mainAxis:0,altAxis:0},eP),eI=en.modifiersData.offset?en.modifiersData.offset[en.placement]:null,ej={x:0,y:0};if(eE){if(es){var eR,eM="y"===ek?tD:tz,eN="y"===ek?tU:tV,eA="y"===ek?"height":"width",eL=eE[ek],eZ=eL+ey[eM],eF=eL-ey[eN],eD=eg?-eT[eA]/2:0,eU=e_===tH?eO[eA]:eT[eA],eV=e_===tH?-eT[eA]:-eO[eA],ez=en.elements.arrow,eB=eg&&ez?getLayoutRect(ez):{width:0,height:0},eW=en.modifiersData["arrow#persistent"]?en.modifiersData["arrow#persistent"].padding:getFreshSideObject(),eH=eW[eM],eq=eW[eN],e$=within(0,eO[eA],eB[eA]),eQ=ew?eO[eA]/2-eD-e$-eH-eS.mainAxis:eU-e$-eH-eS.mainAxis,eG=ew?-eO[eA]/2+eD+e$+eq+eS.mainAxis:eV+e$+eq+eS.mainAxis,eK=en.elements.arrow&&getOffsetParent(en.elements.arrow),eY=eK?"y"===ek?eK.clientTop||0:eK.clientLeft||0:0,eX=null!=(eR=null==eI?void 0:eI[ek])?eR:0,eJ=eL+eQ-eX-eY,e0=eL+eG-eX,e1=within(eg?tZ(eZ,eJ):eZ,eL,eg?tL(eF,e0):eF);eE[ek]=e1,ej[ek]=e1-eL}if(ec){var e2,e4="x"===ek?tD:tz,e5="x"===ek?tU:tV,e3=eE[eC],e6="y"===eC?"height":"width",e7=e3+ey[e4],e9=e3-ey[e5],e8=-1!==[tD,tz].indexOf(eb),tn=null!=(e2=null==eI?void 0:eI[eC])?e2:0,tr=e8?e7:e3-eO[e6]-eT[e6]-tn+eS.altAxis,ti=e8?e3+eO[e6]+eT[e6]-tn-eS.altAxis:e9,to=eg&&e8?withinMaxClamp(tr,e3,ti):within(eg?tr:e7,e3,eg?ti:e9);eE[eC]=to,ej[eC]=to-e3}en.modifiersData[ei]=ej}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(ee){var en,er=ee.state,ei=ee.name,eo=ee.options,es=er.elements.arrow,eu=er.modifiersData.popperOffsets,ec=getBasePlacement(er.placement),ed=getMainAxisFromPlacement(ec),eh=[tz,tV].indexOf(ec)>=0?"height":"width";if(es&&eu){var ep=toPaddingObject(eo.padding,er),ef=getLayoutRect(es),em="y"===ed?tD:tz,eg="y"===ed?tU:tV,ex=er.rects.reference[eh]+er.rects.reference[ed]-eu[ed]-er.rects.popper[eh],ev=eu[ed]-er.rects.reference[ed],ey=getOffsetParent(es),eb=ey?"y"===ed?ey.clientHeight||0:ey.clientWidth||0:0,e_=ex/2-ev/2,ew=ep[em],ek=eb-ef[eh]-ep[eg],eC=eb/2-ef[eh]/2+e_,eE=within(ew,eC,ek),eO=ed;er.modifiersData[ei]=((en={})[eO]=eE,en.centerOffset=eE-eC,en)}},effect:function(ee){var en=ee.state,er=ee.options.element,ei=void 0===er?"[data-popper-arrow]":er;null!=ei&&("string"!=typeof ei||(ei=en.elements.popper.querySelector(ei)))&&contains(en.elements.popper,ei)&&(en.elements.arrow=ei)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ee){var en=ee.state,er=ee.name,ei=en.rects.reference,eo=en.rects.popper,es=en.modifiersData.preventOverflow,eu=detectOverflow(en,{elementContext:"reference"}),ec=detectOverflow(en,{altBoundary:!0}),ed=getSideOffsets(eu,ei),eh=getSideOffsets(ec,eo,es),ep=isAnySideFullyClipped(ed),ef=isAnySideFullyClipped(eh);en.modifiersData[er]={referenceClippingOffsets:ed,popperEscapeOffsets:eh,isReferenceHidden:ep,hasPopperEscaped:ef},en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-reference-hidden":ep,"data-popper-escaped":ef})}}]}),t6=er(6304),t7=er.n(t6);function escapeStringRegexp(ee){if("string"!=typeof ee)throw TypeError("Expected a string");return ee.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var t9=er(2351);let t8=(0,eO.createContext)(null);t8.displayName="OpenClosedContext";var ne=((eo=ne||{})[eo.Open=1]="Open",eo[eo.Closed=2]="Closed",eo[eo.Closing=4]="Closing",eo[eo.Opening=8]="Opening",eo);function C(){return(0,eO.useContext)(t8)}function open_closed_c({value:ee,children:en}){return eO.createElement(t8.Provider,{value:ee},en)}var nt=er(2984),nn=er(4879),nr=er(6723),ni=er(3855),no=er(2180),ns=er(3784);function once_l(ee){let en={called:!1};return(...er)=>{if(!en.called)return en.called=!0,ee(...er)}}var nl=er(9362);function g(ee,...en){ee&&en.length>0&&ee.classList.add(...en)}function v(ee,...en){ee&&en.length>0&&ee.classList.remove(...en)}function b(ee,en){let er=(0,nl.k)();if(!ee)return er.dispose;let{transitionDuration:ei,transitionDelay:eo}=getComputedStyle(ee),[es,eu]=[ei,eo].map(ee=>{let[en=0]=ee.split(",").filter(Boolean).map(ee=>ee.includes("ms")?parseFloat(ee):1e3*parseFloat(ee)).sort((ee,en)=>en-ee);return en}),ec=es+eu;if(0!==ec){er.group(er=>{er.setTimeout(()=>{en(),er.dispose()},ec),er.addEventListener(ee,"transitionrun",ee=>{ee.target===ee.currentTarget&&er.dispose()})});let ei=er.addEventListener(ee,"transitionend",ee=>{ee.target===ee.currentTarget&&(en(),ei())})}else en();return er.add(()=>en()),er.dispose}function M(ee,en,er,ei){let eo=er?"enter":"leave",es=(0,nl.k)(),eu=void 0!==ei?once_l(ei):()=>{};"enter"===eo&&(ee.removeAttribute("hidden"),ee.style.display="");let ec=(0,nt.E)(eo,{enter:()=>en.enter,leave:()=>en.leave}),ed=(0,nt.E)(eo,{enter:()=>en.enterTo,leave:()=>en.leaveTo}),eh=(0,nt.E)(eo,{enter:()=>en.enterFrom,leave:()=>en.leaveFrom});return v(ee,...en.base,...en.enter,...en.enterTo,...en.enterFrom,...en.leave,...en.leaveFrom,...en.leaveTo,...en.entered),g(ee,...en.base,...ec,...eh),es.nextFrame(()=>{v(ee,...en.base,...ec,...eh),g(ee,...en.base,...ec,...ed),b(ee,()=>(v(ee,...en.base,...ec),g(ee,...en.base,...en.entered),eu()))}),es.dispose}function use_disposables_p(){let[ee]=(0,eO.useState)(nl.k);return(0,eO.useEffect)(()=>()=>ee.dispose(),[ee]),ee}function E({immediate:ee,container:en,direction:er,classes:ei,onStart:eo,onStop:es}){let eu=(0,nn.t)(),ec=use_disposables_p(),ed=(0,ni.E)(er);(0,nr.e)(()=>{ee&&(ed.current="enter")},[ee]),(0,nr.e)(()=>{let ee=(0,nl.k)();ec.add(ee.dispose);let er=en.current;if(er&&"idle"!==ed.current&&eu.current)return ee.dispose(),eo.current(ed.current),ee.add(M(er,ei.current,"enter"===ed.current,()=>{ee.dispose(),es.current(ed.current)})),ee.dispose},[er])}var nu=er(3781),nc=er(4067);function use_flags_c(ee=0){let[en,er]=(0,eO.useState)(ee),ei=(0,nn.t)(),eo=(0,eO.useCallback)(ee=>{ei.current&&er(en=>en|ee)},[en,ei]),es=(0,eO.useCallback)(ee=>!!(en&ee),[en]);return{flags:en,addFlag:eo,hasFlag:es,removeFlag:(0,eO.useCallback)(ee=>{ei.current&&er(en=>en&~ee)},[er,ei]),toggleFlag:(0,eO.useCallback)(ee=>{ei.current&&er(en=>en^ee)},[er])}}function S(ee=""){return ee.split(" ").filter(ee=>ee.trim().length>1)}let nd=(0,eO.createContext)(null);nd.displayName="TransitionContext";var nh=((es=nh||{}).Visible="visible",es.Hidden="hidden",es);function Se(){let ee=(0,eO.useContext)(nd);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}function Ne(){let ee=(0,eO.useContext)(np);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}let np=(0,eO.createContext)(null);function U(ee){return"children"in ee?U(ee.children):ee.current.filter(({el:ee})=>null!==ee.current).filter(({state:ee})=>"visible"===ee).length>0}function oe(ee,en){let er=(0,ni.E)(ee),ei=(0,eO.useRef)([]),eo=(0,nn.t)(),es=use_disposables_p(),eu=(0,nu.z)((ee,en=t9.l4.Hidden)=>{let eu=ei.current.findIndex(({el:en})=>en===ee);-1!==eu&&((0,nt.E)(en,{[t9.l4.Unmount](){ei.current.splice(eu,1)},[t9.l4.Hidden](){ei.current[eu].state="hidden"}}),es.microTask(()=>{var ee;!U(ei)&&eo.current&&(null==(ee=er.current)||ee.call(er))}))}),ec=(0,nu.z)(ee=>{let en=ei.current.find(({el:en})=>en===ee);return en?"visible"!==en.state&&(en.state="visible"):ei.current.push({el:ee,state:"visible"}),()=>eu(ee,t9.l4.Unmount)}),ed=(0,eO.useRef)([]),eh=(0,eO.useRef)(Promise.resolve()),ep=(0,eO.useRef)({enter:[],leave:[],idle:[]}),ef=(0,nu.z)((ee,er,ei)=>{ed.current.splice(0),en&&(en.chains.current[er]=en.chains.current[er].filter(([en])=>en!==ee)),null==en||en.chains.current[er].push([ee,new Promise(ee=>{ed.current.push(ee)})]),null==en||en.chains.current[er].push([ee,new Promise(ee=>{Promise.all(ep.current[er].map(([ee,en])=>en)).then(()=>ee())})]),"enter"===er?eh.current=eh.current.then(()=>null==en?void 0:en.wait.current).then(()=>ei(er)):ei(er)}),em=(0,nu.z)((ee,en,er)=>{Promise.all(ep.current[en].splice(0).map(([ee,en])=>en)).then(()=>{var ee;null==(ee=ed.current.shift())||ee()}).then(()=>er(en))});return(0,eO.useMemo)(()=>({children:ei,register:ec,unregister:eu,onStart:ef,onStop:em,wait:eh,chains:ep}),[ec,eu,ei,ef,em,ep,eh])}function xe(){}np.displayName="NestingContext";let nf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function se(ee){var en;let er={};for(let ei of nf)er[ei]=null!=(en=ee[ei])?en:xe;return er}function Re(ee){let en=(0,eO.useRef)(se(ee));return(0,eO.useEffect)(()=>{en.current=se(ee)},[ee]),en}let nm="div",ng=t9.AN.RenderStrategy;function De(ee,en){var er,ei;let{beforeEnter:eo,afterEnter:es,beforeLeave:eu,afterLeave:ec,enter:ed,enterFrom:eh,enterTo:ep,entered:ef,leave:em,leaveFrom:eg,leaveTo:ex,...ev}=ee,ey=(0,eO.useRef)(null),eb=(0,ns.T)(ey,en),e_=null==(er=ev.unmount)||er?t9.l4.Unmount:t9.l4.Hidden,{show:ew,appear:ek,initial:eC}=Se(),[eE,eT]=(0,eO.useState)(ew?"visible":"hidden"),eP=Ne(),{register:eS,unregister:eI}=eP;(0,eO.useEffect)(()=>eS(ey),[eS,ey]),(0,eO.useEffect)(()=>{if(e_===t9.l4.Hidden&&ey.current){if(ew&&"visible"!==eE){eT("visible");return}return(0,nt.E)(eE,{hidden:()=>eI(ey),visible:()=>eS(ey)})}},[eE,ey,eS,eI,ew,e_]);let ej=(0,ni.E)({base:S(ev.className),enter:S(ed),enterFrom:S(eh),enterTo:S(ep),entered:S(ef),leave:S(em),leaveFrom:S(eg),leaveTo:S(ex)}),eR=Re({beforeEnter:eo,afterEnter:es,beforeLeave:eu,afterLeave:ec}),eM=(0,no.H)();(0,eO.useEffect)(()=>{if(eM&&"visible"===eE&&null===ey.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[ey,eE,eM]);let eN=eC&&!ek,eA=ek&&ew&&eC,eL=!eM||eN?"idle":ew?"enter":"leave",eZ=use_flags_c(0),eF=(0,nu.z)(ee=>(0,nt.E)(ee,{enter:()=>{eZ.addFlag(ne.Opening),eR.current.beforeEnter()},leave:()=>{eZ.addFlag(ne.Closing),eR.current.beforeLeave()},idle:()=>{}})),eD=(0,nu.z)(ee=>(0,nt.E)(ee,{enter:()=>{eZ.removeFlag(ne.Opening),eR.current.afterEnter()},leave:()=>{eZ.removeFlag(ne.Closing),eR.current.afterLeave()},idle:()=>{}})),eU=oe(()=>{eT("hidden"),eI(ey)},eP);E({immediate:eA,container:ey,classes:ej,direction:eL,onStart:(0,ni.E)(ee=>{eU.onStart(ey,ee,eF)}),onStop:(0,ni.E)(ee=>{eU.onStop(ey,ee,eD),"leave"!==ee||U(eU)||(eT("hidden"),eI(ey))})});let eV=ev,ez={ref:eb};return eA?eV={...eV,className:(0,nc.A)(ev.className,...ej.current.enter,...ej.current.enterFrom)}:(eV.className=(0,nc.A)(ev.className,null==(ei=ey.current)?void 0:ei.className),""===eV.className&&delete eV.className),eO.createElement(np.Provider,{value:eU},eO.createElement(open_closed_c,{value:(0,nt.E)(eE,{visible:ne.Open,hidden:ne.Closed})|eZ.flags},(0,t9.sY)({ourProps:ez,theirProps:eV,defaultTag:nm,features:ng,visible:"visible"===eE,name:"Transition.Child"})))}function He(ee,en){let{show:er,appear:ei=!1,unmount:eo=!0,...es}=ee,eu=(0,eO.useRef)(null),ec=(0,ns.T)(eu,en);(0,no.H)();let ed=C();if(void 0===er&&null!==ed&&(er=(ed&ne.Open)===ne.Open),![!0,!1].includes(er))throw Error("A is used but it is missing a `show={true | false}` prop.");let[eh,ep]=(0,eO.useState)(er?"visible":"hidden"),ef=oe(()=>{ep("hidden")}),[em,eg]=(0,eO.useState)(!0),ex=(0,eO.useRef)([er]);(0,nr.e)(()=>{!1!==em&&ex.current[ex.current.length-1]!==er&&(ex.current.push(er),eg(!1))},[ex,er]);let ev=(0,eO.useMemo)(()=>({show:er,appear:ei,initial:em}),[er,ei,em]);(0,eO.useEffect)(()=>{if(er)ep("visible");else if(U(ef)){let ee=eu.current;if(!ee)return;let en=ee.getBoundingClientRect();0===en.x&&0===en.y&&0===en.width&&0===en.height&&ep("hidden")}else ep("hidden")},[er,ef]);let ey={unmount:eo},eb=(0,nu.z)(()=>{var en;em&&eg(!1),null==(en=ee.beforeEnter)||en.call(ee)}),e_=(0,nu.z)(()=>{var en;em&&eg(!1),null==(en=ee.beforeLeave)||en.call(ee)});return eO.createElement(np.Provider,{value:ef},eO.createElement(nd.Provider,{value:ev},(0,t9.sY)({ourProps:{...ey,as:eO.Fragment,children:eO.createElement(nv,{ref:ec,...ey,...es,beforeEnter:eb,beforeLeave:e_})},theirProps:{},defaultTag:eO.Fragment,features:ng,visible:"visible"===eh,name:"Transition"})))}function Fe(ee,en){let er=null!==(0,eO.useContext)(nd),ei=null!==C();return eO.createElement(eO.Fragment,null,!er&&ei?eO.createElement(nx,{ref:en,...ee}):eO.createElement(nv,{ref:en,...ee}))}let nx=(0,t9.yV)(He),nv=(0,t9.yV)(De),ny=Object.assign(nx,{Child:(0,t9.yV)(Fe),Root:nx});var nb=er(7192),n_=er(9946);function use_computed_i(ee,en){let[er,ei]=(0,eO.useState)(ee),eo=(0,ni.E)(ee);return(0,nr.e)(()=>ei(eo.current),[eo,ei,...en]),er}var nw=er(1363);function f(ee){throw Error("Unexpected object: "+ee)}var nk=((eu=nk||{})[eu.First=0]="First",eu[eu.Previous=1]="Previous",eu[eu.Next=2]="Next",eu[eu.Last=3]="Last",eu[eu.Specific=4]="Specific",eu[eu.Nothing=5]="Nothing",eu);function x(ee,en){let er=en.resolveItems();if(er.length<=0)return null;let ei=en.resolveActiveIndex(),eo=null!=ei?ei:-1,es=(()=>{switch(ee.focus){case 0:return er.findIndex(ee=>!en.resolveDisabled(ee));case 1:{let ee=er.slice().reverse().findIndex((ee,er,ei)=>(-1===eo||!(ei.length-er-1>=eo))&&!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 2:return er.findIndex((ee,er)=>!(er<=eo)&&!en.resolveDisabled(ee));case 3:{let ee=er.slice().reverse().findIndex(ee=>!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 4:return er.findIndex(er=>en.resolveId(er)===ee.id);case 5:return null;default:f(ee)}})();return -1===es?ei:es}function bugs_r(ee){let en=ee.parentElement,er=null;for(;en&&!(en instanceof HTMLFieldSetElement);)en instanceof HTMLLegendElement&&(er=en),en=en.parentElement;let ei=(null==en?void 0:en.getAttribute("disabled"))==="";return!(ei&&i(er))&&ei}function i(ee){if(!ee)return!1;let en=ee.previousElementSibling;for(;null!==en;){if(en instanceof HTMLLegendElement)return!1;en=en.previousElementSibling}return!0}var nC=er(4575),nE=er(4157);function d(ee,en,er){let ei=(0,ni.E)(en);(0,eO.useEffect)(()=>{function t(ee){ei.current(ee)}return document.addEventListener(ee,t,er),()=>document.removeEventListener(ee,t,er)},[ee,er])}function use_window_event_s(ee,en,er){let ei=(0,ni.E)(en);(0,eO.useEffect)(()=>{function t(ee){ei.current(ee)}return window.addEventListener(ee,t,er),()=>window.removeEventListener(ee,t,er)},[ee,er])}function h(ee,en,er=!0){let ei=(0,eO.useRef)(!1);function c(er,eo){if(!ei.current||er.defaultPrevented)return;let es=eo(er);if(null!==es&&es.getRootNode().contains(es)&&es.isConnected){for(let en of function u(ee){return"function"==typeof ee?u(ee()):Array.isArray(ee)||ee instanceof Set?ee:[ee]}(ee)){if(null===en)continue;let ee=en instanceof HTMLElement?en:en.current;if(null!=ee&&ee.contains(es)||er.composed&&er.composedPath().includes(ee))return}return(0,nC.sP)(es,nC.tJ.Loose)||-1===es.tabIndex||er.preventDefault(),en(er,es)}}(0,eO.useEffect)(()=>{requestAnimationFrame(()=>{ei.current=er})},[er]);let eo=(0,eO.useRef)(null);d("pointerdown",ee=>{var en,er;ei.current&&(eo.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),d("mousedown",ee=>{var en,er;ei.current&&(eo.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),d("click",ee=>{eo.current&&(c(ee,()=>eo.current),eo.current=null)},!0),d("touchend",ee=>c(ee,()=>ee.target instanceof HTMLElement?ee.target:null),!0),use_window_event_s("blur",ee=>c(ee,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var nO=er(6045);function form_e(ee={},en=null,er=[]){for(let[ei,eo]of Object.entries(ee))o(er,form_f(en,ei),eo);return er}function form_f(ee,en){return ee?ee+"["+en+"]":en}function o(ee,en,er){if(Array.isArray(er))for(let[ei,eo]of er.entries())o(ee,form_f(en,ei.toString()),eo);else er instanceof Date?ee.push([en,er.toISOString()]):"boolean"==typeof er?ee.push([en,er?"1":"0"]):"string"==typeof er?ee.push([en,er]):"number"==typeof er?ee.push([en,`${er}`]):null==er?ee.push([en,""]):form_e(er,en,ee)}var nT=er(5466);function use_controllable_T(ee,en,er){let[ei,eo]=(0,eO.useState)(er),es=void 0!==ee,eu=(0,eO.useRef)(es),ec=(0,eO.useRef)(!1),ed=(0,eO.useRef)(!1);return!es||eu.current||ec.current?es||!eu.current||ed.current||(ed.current=!0,eu.current=es,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(ec.current=!0,eu.current=es,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[es?ee:ei,(0,nu.z)(ee=>(es||eo(ee),null==en?void 0:en(ee)))]}function t(ee){return[ee.screenX,ee.screenY]}function use_tracked_pointer_u(){let ee=(0,eO.useRef)([-1,-1]);return{wasMoved(en){let er=t(en);return(ee.current[0]!==er[0]||ee.current[1]!==er[1])&&(ee.current=er,!0)},update(en){ee.current=t(en)}}}let nP=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function get_text_value_o(ee){var en,er;let ei=null!=(en=ee.innerText)?en:"",eo=ee.cloneNode(!0);if(!(eo instanceof HTMLElement))return ei;let es=!1;for(let ee of eo.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))ee.remove(),es=!0;let eu=es?null!=(er=eo.innerText)?er:"":ei;return nP.test(eu)&&(eu=eu.replace(nP,"")),eu}function get_text_value_g(ee){let en=ee.getAttribute("aria-label");if("string"==typeof en)return en.trim();let er=ee.getAttribute("aria-labelledby");if(er){let ee=er.split(" ").map(ee=>{let en=document.getElementById(ee);if(en){let ee=en.getAttribute("aria-label");return"string"==typeof ee?ee.trim():get_text_value_o(en).trim()}return null}).filter(Boolean);if(ee.length>0)return ee.join(", ")}return get_text_value_o(ee).trim()}function use_text_value_b(ee){let en=(0,eO.useRef)(""),er=(0,eO.useRef)("");return(0,nu.z)(()=>{let ei=ee.current;if(!ei)return"";let eo=ei.innerText;if(en.current===eo)return er.current;let es=get_text_value_g(ei).trim().toLowerCase();return en.current=eo,er.current=es,es})}var nS=((ec=nS||{})[ec.Open=0]="Open",ec[ec.Closed=1]="Closed",ec),nI=((ed=nI||{})[ed.Single=0]="Single",ed[ed.Multi=1]="Multi",ed),nj=((eh=nj||{})[eh.Pointer=0]="Pointer",eh[eh.Other=1]="Other",eh),nR=((ep=nR||{})[ep.OpenListbox=0]="OpenListbox",ep[ep.CloseListbox=1]="CloseListbox",ep[ep.GoToOption=2]="GoToOption",ep[ep.Search=3]="Search",ep[ep.ClearSearch=4]="ClearSearch",ep[ep.RegisterOption=5]="RegisterOption",ep[ep.UnregisterOption=6]="UnregisterOption",ep[ep.RegisterLabel=7]="RegisterLabel",ep);function listbox_z(ee,en=ee=>ee){let er=null!==ee.activeOptionIndex?ee.options[ee.activeOptionIndex]:null,ei=(0,nC.z2)(en(ee.options.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{options:ei,activeOptionIndex:eo}}let nM={1:ee=>ee.dataRef.current.disabled||1===ee.listboxState?ee:{...ee,activeOptionIndex:null,listboxState:1},0(ee){if(ee.dataRef.current.disabled||0===ee.listboxState)return ee;let en=ee.activeOptionIndex,{isSelected:er}=ee.dataRef.current,ei=ee.options.findIndex(ee=>er(ee.dataRef.current.value));return -1!==ei&&(en=ei),{...ee,listboxState:0,activeOptionIndex:en}},2(ee,en){var er;if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let ei=listbox_z(ee),eo=x(en,{resolveItems:()=>ei.options,resolveActiveIndex:()=>ei.activeOptionIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeOptionIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeOptionIndex?ee.options.slice(ee.activeOptionIndex+er).concat(ee.options.slice(0,ee.activeOptionIndex+er)):ee.options).find(ee=>{var en;return!ee.dataRef.current.disabled&&(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))}),es=eo?ee.options.indexOf(eo):-1;return -1===es||es===ee.activeOptionIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeOptionIndex:es,activationTrigger:1}},4:ee=>ee.dataRef.current.disabled||1===ee.listboxState||""===ee.searchQuery?ee:{...ee,searchQuery:""},5:(ee,en)=>{let er={id:en.id,dataRef:en.dataRef},ei=listbox_z(ee,ee=>[...ee,er]);return null===ee.activeOptionIndex&&ee.dataRef.current.isSelected(en.dataRef.current.value)&&(ei.activeOptionIndex=ei.options.indexOf(er)),{...ee,...ei}},6:(ee,en)=>{let er=listbox_z(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}},7:(ee,en)=>({...ee,labelId:en.id})},nN=(0,eO.createContext)(null);function listbox_(ee){let en=(0,eO.useContext)(nN);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,listbox_),en}return en}nN.displayName="ListboxActionsContext";let nA=(0,eO.createContext)(null);function listbox_U(ee){let en=(0,eO.useContext)(nA);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,listbox_U),en}return en}function Ve(ee,en){return(0,nt.E)(en.type,nM,ee,en)}nA.displayName="ListboxDataContext";let nL=eO.Fragment;function Qe(ee,en){let{value:er,defaultValue:ei,form:eo,name:es,onChange:eu,by:ec=(ee,en)=>ee===en,disabled:ed=!1,horizontal:eh=!1,multiple:ep=!1,...ef}=ee,em=eh?"horizontal":"vertical",eg=(0,ns.T)(en),[ex=ep?[]:void 0,ev]=use_controllable_T(er,eu,ei),[ey,eb]=(0,eO.useReducer)(Ve,{dataRef:(0,eO.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),e_=(0,eO.useRef)({static:!1,hold:!1}),ew=(0,eO.useRef)(null),ek=(0,eO.useRef)(null),eC=(0,eO.useRef)(null),eE=(0,nu.z)("string"==typeof ec?(ee,en)=>{let er=ec;return(null==ee?void 0:ee[er])===(null==en?void 0:en[er])}:ec),eT=(0,eO.useCallback)(ee=>(0,nt.E)(eP.mode,{1:()=>ex.some(en=>eE(en,ee)),0:()=>eE(ex,ee)}),[ex]),eP=(0,eO.useMemo)(()=>({...ey,value:ex,disabled:ed,mode:ep?1:0,orientation:em,compare:eE,isSelected:eT,optionsPropsRef:e_,labelRef:ew,buttonRef:ek,optionsRef:eC}),[ex,ed,ep,ey]);(0,nr.e)(()=>{ey.dataRef.current=eP},[eP]),h([eP.buttonRef,eP.optionsRef],(ee,en)=>{var er;eb({type:1}),(0,nC.sP)(en,nC.tJ.Loose)||(ee.preventDefault(),null==(er=eP.buttonRef.current)||er.focus())},0===eP.listboxState);let eS=(0,eO.useMemo)(()=>({open:0===eP.listboxState,disabled:ed,value:ex}),[eP,ed,ex]),eI=(0,nu.z)(ee=>{let en=eP.options.find(en=>en.id===ee);en&&eZ(en.dataRef.current.value)}),ej=(0,nu.z)(()=>{if(null!==eP.activeOptionIndex){let{dataRef:ee,id:en}=eP.options[eP.activeOptionIndex];eZ(ee.current.value),eb({type:2,focus:nk.Specific,id:en})}}),eR=(0,nu.z)(()=>eb({type:0})),eM=(0,nu.z)(()=>eb({type:1})),eN=(0,nu.z)((ee,en,er)=>ee===nk.Specific?eb({type:2,focus:nk.Specific,id:en,trigger:er}):eb({type:2,focus:ee,trigger:er})),eA=(0,nu.z)((ee,en)=>(eb({type:5,id:ee,dataRef:en}),()=>eb({type:6,id:ee}))),eL=(0,nu.z)(ee=>(eb({type:7,id:ee}),()=>eb({type:7,id:null}))),eZ=(0,nu.z)(ee=>(0,nt.E)(eP.mode,{0:()=>null==ev?void 0:ev(ee),1(){let en=eP.value.slice(),er=en.findIndex(en=>eE(en,ee));return -1===er?en.push(ee):en.splice(er,1),null==ev?void 0:ev(en)}})),eF=(0,nu.z)(ee=>eb({type:3,value:ee})),eD=(0,nu.z)(()=>eb({type:4})),eU=(0,eO.useMemo)(()=>({onChange:eZ,registerOption:eA,registerLabel:eL,goToOption:eN,closeListbox:eM,openListbox:eR,selectActiveOption:ej,selectOption:eI,search:eF,clearSearch:eD}),[]),eV={ref:eg},ez=(0,eO.useRef)(null),eB=use_disposables_p();return(0,eO.useEffect)(()=>{ez.current&&void 0!==ei&&eB.addEventListener(ez.current,"reset",()=>{null==ev||ev(ei)})},[ez,ev]),eO.createElement(nN.Provider,{value:eU},eO.createElement(nA.Provider,{value:eP},eO.createElement(open_closed_c,{value:(0,nt.E)(eP.listboxState,{0:ne.Open,1:ne.Closed})},null!=es&&null!=ex&&form_e({[es]:ex}).map(([ee,en],er)=>eO.createElement(nO._,{features:nO.A.Hidden,ref:0===er?ee=>{var en;ez.current=null!=(en=null==ee?void 0:ee.closest("form"))?en:null}:void 0,...(0,t9.oA)({key:ee,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:eo,name:ee,value:en})})),(0,t9.sY)({ourProps:eV,theirProps:ef,slot:eS,defaultTag:nL,name:"Listbox"}))))}let nZ="button";function Xe(ee,en){var er;let ei=(0,n_.M)(),{id:eo=`headlessui-listbox-button-${ei}`,...es}=ee,eu=listbox_U("Listbox.Button"),ec=listbox_("Listbox.Button"),ed=(0,ns.T)(eu.buttonRef,en),eh=use_disposables_p(),ep=(0,nu.z)(ee=>{switch(ee.key){case nw.R.Space:case nw.R.Enter:case nw.R.ArrowDown:ee.preventDefault(),ec.openListbox(),eh.nextFrame(()=>{eu.value||ec.goToOption(nk.First)});break;case nw.R.ArrowUp:ee.preventDefault(),ec.openListbox(),eh.nextFrame(()=>{eu.value||ec.goToOption(nk.Last)})}}),ef=(0,nu.z)(ee=>{ee.key===nw.R.Space&&ee.preventDefault()}),em=(0,nu.z)(ee=>{if(bugs_r(ee.currentTarget))return ee.preventDefault();0===eu.listboxState?(ec.closeListbox(),eh.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(ee.preventDefault(),ec.openListbox())}),eg=use_computed_i(()=>{if(eu.labelId)return[eu.labelId,eo].join(" ")},[eu.labelId,eo]),ex=(0,eO.useMemo)(()=>({open:0===eu.listboxState,disabled:eu.disabled,value:eu.value}),[eu]),ev={ref:ed,id:eo,type:(0,nE.f)(ee,eu.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(er=eu.optionsRef.current)?void 0:er.id,"aria-expanded":0===eu.listboxState,"aria-labelledby":eg,disabled:eu.disabled,onKeyDown:ep,onKeyUp:ef,onClick:em};return(0,t9.sY)({ourProps:ev,theirProps:es,slot:ex,defaultTag:nZ,name:"Listbox.Button"})}let nF="label";function ze(ee,en){let er=(0,n_.M)(),{id:ei=`headlessui-listbox-label-${er}`,...eo}=ee,es=listbox_U("Listbox.Label"),eu=listbox_("Listbox.Label"),ec=(0,ns.T)(es.labelRef,en);(0,nr.e)(()=>eu.registerLabel(ei),[ei]);let ed=(0,nu.z)(()=>{var ee;return null==(ee=es.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}),eh=(0,eO.useMemo)(()=>({open:0===es.listboxState,disabled:es.disabled}),[es]);return(0,t9.sY)({ourProps:{ref:ec,id:ei,onClick:ed},theirProps:eo,slot:eh,defaultTag:nF,name:"Listbox.Label"})}let nD="ul",nU=t9.AN.RenderStrategy|t9.AN.Static;function Ye(ee,en){var er;let ei=(0,n_.M)(),{id:eo=`headlessui-listbox-options-${ei}`,...es}=ee,eu=listbox_U("Listbox.Options"),ec=listbox_("Listbox.Options"),ed=(0,ns.T)(eu.optionsRef,en),eh=use_disposables_p(),ep=use_disposables_p(),ef=C(),em=null!==ef?(ef&ne.Open)===ne.Open:0===eu.listboxState;(0,eO.useEffect)(()=>{var ee;let en=eu.optionsRef.current;en&&0===eu.listboxState&&en!==(null==(ee=(0,nT.r)(en))?void 0:ee.activeElement)&&en.focus({preventScroll:!0})},[eu.listboxState,eu.optionsRef]);let eg=(0,nu.z)(ee=>{switch(ep.dispose(),ee.key){case nw.R.Space:if(""!==eu.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ec.search(ee.key);case nw.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),null!==eu.activeOptionIndex){let{dataRef:ee}=eu.options[eu.activeOptionIndex];ec.onChange(ee.current.value)}0===eu.mode&&(ec.closeListbox(),(0,nl.k)().nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}));break;case(0,nt.E)(eu.orientation,{vertical:nw.R.ArrowDown,horizontal:nw.R.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.Next);case(0,nt.E)(eu.orientation,{vertical:nw.R.ArrowUp,horizontal:nw.R.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.Previous);case nw.R.Home:case nw.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.First);case nw.R.End:case nw.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nk.Last);case nw.R.Escape:return ee.preventDefault(),ee.stopPropagation(),ec.closeListbox(),eh.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});case nw.R.Tab:ee.preventDefault(),ee.stopPropagation();break;default:1===ee.key.length&&(ec.search(ee.key),ep.setTimeout(()=>ec.clearSearch(),350))}}),ex=use_computed_i(()=>{var ee,en,er;return null!=(er=null==(ee=eu.labelRef.current)?void 0:ee.id)?er:null==(en=eu.buttonRef.current)?void 0:en.id},[eu.labelRef.current,eu.buttonRef.current]),ev=(0,eO.useMemo)(()=>({open:0===eu.listboxState}),[eu]),ey={"aria-activedescendant":null===eu.activeOptionIndex||null==(er=eu.options[eu.activeOptionIndex])?void 0:er.id,"aria-multiselectable":1===eu.mode||void 0,"aria-labelledby":ex,"aria-orientation":eu.orientation,id:eo,onKeyDown:eg,role:"listbox",tabIndex:0,ref:ed};return(0,t9.sY)({ourProps:ey,theirProps:es,slot:ev,defaultTag:nD,features:nU,visible:em,name:"Listbox.Options"})}let nV="li";function et(ee,en){let er=(0,n_.M)(),{id:ei=`headlessui-listbox-option-${er}`,disabled:eo=!1,value:es,...eu}=ee,ec=listbox_U("Listbox.Option"),ed=listbox_("Listbox.Option"),eh=null!==ec.activeOptionIndex&&ec.options[ec.activeOptionIndex].id===ei,ep=ec.isSelected(es),ef=(0,eO.useRef)(null),em=use_text_value_b(ef),eg=(0,ni.E)({disabled:eo,value:es,domRef:ef,get textValue(){return em()}}),ex=(0,ns.T)(en,ef);(0,nr.e)(()=>{if(0!==ec.listboxState||!eh||0===ec.activationTrigger)return;let ee=(0,nl.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ef.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[ef,eh,ec.listboxState,ec.activationTrigger,ec.activeOptionIndex]),(0,nr.e)(()=>ed.registerOption(ei,eg),[eg,ei]);let ev=(0,nu.z)(ee=>{if(eo)return ee.preventDefault();ed.onChange(es),0===ec.mode&&(ed.closeListbox(),(0,nl.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}))}),ey=(0,nu.z)(()=>{if(eo)return ed.goToOption(nk.Nothing);ed.goToOption(nk.Specific,ei)}),eb=use_tracked_pointer_u(),e_=(0,nu.z)(ee=>eb.update(ee)),ew=(0,nu.z)(ee=>{eb.wasMoved(ee)&&(eo||eh||ed.goToOption(nk.Specific,ei,0))}),ek=(0,nu.z)(ee=>{eb.wasMoved(ee)&&(eo||eh&&ed.goToOption(nk.Nothing))}),eC=(0,eO.useMemo)(()=>({active:eh,selected:ep,disabled:eo}),[eh,ep,eo]);return(0,t9.sY)({ourProps:{id:ei,ref:ex,role:"option",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,"aria-selected":ep,disabled:void 0,onClick:ev,onFocus:ey,onPointerEnter:e_,onMouseEnter:e_,onPointerMove:ew,onMouseMove:ew,onPointerLeave:ek,onMouseLeave:ek},theirProps:eu,slot:eC,defaultTag:nV,name:"Listbox.Option"})}let nz=Object.assign((0,t9.yV)(Qe),{Button:(0,t9.yV)(Xe),Label:(0,t9.yV)(ze),Options:(0,t9.yV)(Ye),Option:(0,t9.yV)(et)});var nB=er(3935),nW=er(9008),nH=er.n(nW);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=0||(eo[er]=ee[er]);return eo}var nq=["keyOverride"],n$=["crossOrigin"],nQ={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},buildOpenGraphMediaTags=function(ee,en,er){void 0===en&&(en=[]);var ei=void 0===er?{}:er,eo=ei.defaultWidth,es=ei.defaultHeight;return en.reduce(function(en,er,ei){return en.push(eO.createElement("meta",{key:"og:"+ee+":0"+ei,property:"og:"+ee,content:er.url})),er.alt&&en.push(eO.createElement("meta",{key:"og:"+ee+":alt0"+ei,property:"og:"+ee+":alt",content:er.alt})),er.secureUrl&&en.push(eO.createElement("meta",{key:"og:"+ee+":secure_url0"+ei,property:"og:"+ee+":secure_url",content:er.secureUrl.toString()})),er.type&&en.push(eO.createElement("meta",{key:"og:"+ee+":type0"+ei,property:"og:"+ee+":type",content:er.type.toString()})),er.width?en.push(eO.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:er.width.toString()})):eo&&en.push(eO.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:eo.toString()})),er.height?en.push(eO.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:er.height.toString()})):es&&en.push(eO.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:es.toString()})),en},[])},buildTags=function(ee){var en,er,ei,eo,es,eu=[];ee.titleTemplate&&(nQ.templateTitle=ee.titleTemplate);var ec="";ee.title?(ec=ee.title,nQ.templateTitle&&(ec=nQ.templateTitle.replace(/%s/g,function(){return ec}))):ee.defaultTitle&&(ec=ee.defaultTitle),ec&&eu.push(eO.createElement("title",{key:"title"},ec));var ed=void 0===ee.noindex?nQ.noindex||ee.dangerouslySetAllPagesToNoIndex:ee.noindex,eh=void 0===ee.nofollow?nQ.nofollow||ee.dangerouslySetAllPagesToNoFollow:ee.nofollow,ep="";if(ee.robotsProps){var ef=ee.robotsProps,em=ef.nosnippet,eg=ef.maxSnippet,ex=ef.maxImagePreview,ev=ef.maxVideoPreview,ey=ef.noarchive,eb=ef.noimageindex,e_=ef.notranslate,ew=ef.unavailableAfter;ep=(em?",nosnippet":"")+(eg?",max-snippet:"+eg:"")+(ex?",max-image-preview:"+ex:"")+(ey?",noarchive":"")+(ew?",unavailable_after:"+ew:"")+(eb?",noimageindex":"")+(ev?",max-video-preview:"+ev:"")+(e_?",notranslate":"")}if(ed||eh?(ee.dangerouslySetAllPagesToNoIndex&&(nQ.noindex=!0),ee.dangerouslySetAllPagesToNoFollow&&(nQ.nofollow=!0),eu.push(eO.createElement("meta",{key:"robots",name:"robots",content:(ed?"noindex":"index")+","+(eh?"nofollow":"follow")+ep}))):eu.push(eO.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+ep})),ee.description&&eu.push(eO.createElement("meta",{key:"description",name:"description",content:ee.description})),ee.themeColor&&eu.push(eO.createElement("meta",{key:"theme-color",name:"theme-color",content:ee.themeColor})),ee.mobileAlternate&&eu.push(eO.createElement("link",{rel:"alternate",key:"mobileAlternate",media:ee.mobileAlternate.media,href:ee.mobileAlternate.href})),ee.languageAlternates&&ee.languageAlternates.length>0&&ee.languageAlternates.forEach(function(ee){eu.push(eO.createElement("link",{rel:"alternate",key:"languageAlternate-"+ee.hrefLang,hrefLang:ee.hrefLang,href:ee.href}))}),ee.twitter&&(ee.twitter.cardType&&eu.push(eO.createElement("meta",{key:"twitter:card",name:"twitter:card",content:ee.twitter.cardType})),ee.twitter.site&&eu.push(eO.createElement("meta",{key:"twitter:site",name:"twitter:site",content:ee.twitter.site})),ee.twitter.handle&&eu.push(eO.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:ee.twitter.handle}))),ee.facebook&&ee.facebook.appId&&eu.push(eO.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:ee.facebook.appId})),(null!=(en=ee.openGraph)&&en.title||ec)&&eu.push(eO.createElement("meta",{key:"og:title",property:"og:title",content:(null==(eo=ee.openGraph)?void 0:eo.title)||ec})),(null!=(er=ee.openGraph)&&er.description||ee.description)&&eu.push(eO.createElement("meta",{key:"og:description",property:"og:description",content:(null==(es=ee.openGraph)?void 0:es.description)||ee.description})),ee.openGraph){if((ee.openGraph.url||ee.canonical)&&eu.push(eO.createElement("meta",{key:"og:url",property:"og:url",content:ee.openGraph.url||ee.canonical})),ee.openGraph.type){var ek=ee.openGraph.type.toLowerCase();eu.push(eO.createElement("meta",{key:"og:type",property:"og:type",content:ek})),"profile"===ek&&ee.openGraph.profile?(ee.openGraph.profile.firstName&&eu.push(eO.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:ee.openGraph.profile.firstName})),ee.openGraph.profile.lastName&&eu.push(eO.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:ee.openGraph.profile.lastName})),ee.openGraph.profile.username&&eu.push(eO.createElement("meta",{key:"profile:username",property:"profile:username",content:ee.openGraph.profile.username})),ee.openGraph.profile.gender&&eu.push(eO.createElement("meta",{key:"profile:gender",property:"profile:gender",content:ee.openGraph.profile.gender}))):"book"===ek&&ee.openGraph.book?(ee.openGraph.book.authors&&ee.openGraph.book.authors.length&&ee.openGraph.book.authors.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"book:author:0"+en,property:"book:author",content:ee}))}),ee.openGraph.book.isbn&&eu.push(eO.createElement("meta",{key:"book:isbn",property:"book:isbn",content:ee.openGraph.book.isbn})),ee.openGraph.book.releaseDate&&eu.push(eO.createElement("meta",{key:"book:release_date",property:"book:release_date",content:ee.openGraph.book.releaseDate})),ee.openGraph.book.tags&&ee.openGraph.book.tags.length&&ee.openGraph.book.tags.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"book:tag:0"+en,property:"book:tag",content:ee}))})):"article"===ek&&ee.openGraph.article?(ee.openGraph.article.publishedTime&&eu.push(eO.createElement("meta",{key:"article:published_time",property:"article:published_time",content:ee.openGraph.article.publishedTime})),ee.openGraph.article.modifiedTime&&eu.push(eO.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:ee.openGraph.article.modifiedTime})),ee.openGraph.article.expirationTime&&eu.push(eO.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:ee.openGraph.article.expirationTime})),ee.openGraph.article.authors&&ee.openGraph.article.authors.length&&ee.openGraph.article.authors.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"article:author:0"+en,property:"article:author",content:ee}))}),ee.openGraph.article.section&&eu.push(eO.createElement("meta",{key:"article:section",property:"article:section",content:ee.openGraph.article.section})),ee.openGraph.article.tags&&ee.openGraph.article.tags.length&&ee.openGraph.article.tags.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"article:tag:0"+en,property:"article:tag",content:ee}))})):("video.movie"===ek||"video.episode"===ek||"video.tv_show"===ek||"video.other"===ek)&&ee.openGraph.video&&(ee.openGraph.video.actors&&ee.openGraph.video.actors.length&&ee.openGraph.video.actors.forEach(function(ee,en){ee.profile&&eu.push(eO.createElement("meta",{key:"video:actor:0"+en,property:"video:actor",content:ee.profile})),ee.role&&eu.push(eO.createElement("meta",{key:"video:actor:role:0"+en,property:"video:actor:role",content:ee.role}))}),ee.openGraph.video.directors&&ee.openGraph.video.directors.length&&ee.openGraph.video.directors.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"video:director:0"+en,property:"video:director",content:ee}))}),ee.openGraph.video.writers&&ee.openGraph.video.writers.length&&ee.openGraph.video.writers.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"video:writer:0"+en,property:"video:writer",content:ee}))}),ee.openGraph.video.duration&&eu.push(eO.createElement("meta",{key:"video:duration",property:"video:duration",content:ee.openGraph.video.duration.toString()})),ee.openGraph.video.releaseDate&&eu.push(eO.createElement("meta",{key:"video:release_date",property:"video:release_date",content:ee.openGraph.video.releaseDate})),ee.openGraph.video.tags&&ee.openGraph.video.tags.length&&ee.openGraph.video.tags.forEach(function(ee,en){eu.push(eO.createElement("meta",{key:"video:tag:0"+en,property:"video:tag",content:ee}))}),ee.openGraph.video.series&&eu.push(eO.createElement("meta",{key:"video:series",property:"video:series",content:ee.openGraph.video.series})))}ee.defaultOpenGraphImageWidth&&(nQ.defaultOpenGraphImageWidth=ee.defaultOpenGraphImageWidth),ee.defaultOpenGraphImageHeight&&(nQ.defaultOpenGraphImageHeight=ee.defaultOpenGraphImageHeight),ee.openGraph.images&&ee.openGraph.images.length&&eu.push.apply(eu,buildOpenGraphMediaTags("image",ee.openGraph.images,{defaultWidth:nQ.defaultOpenGraphImageWidth,defaultHeight:nQ.defaultOpenGraphImageHeight})),ee.defaultOpenGraphVideoWidth&&(nQ.defaultOpenGraphVideoWidth=ee.defaultOpenGraphVideoWidth),ee.defaultOpenGraphVideoHeight&&(nQ.defaultOpenGraphVideoHeight=ee.defaultOpenGraphVideoHeight),ee.openGraph.videos&&ee.openGraph.videos.length&&eu.push.apply(eu,buildOpenGraphMediaTags("video",ee.openGraph.videos,{defaultWidth:nQ.defaultOpenGraphVideoWidth,defaultHeight:nQ.defaultOpenGraphVideoHeight})),ee.openGraph.audio&&eu.push.apply(eu,buildOpenGraphMediaTags("audio",ee.openGraph.audio)),ee.openGraph.locale&&eu.push(eO.createElement("meta",{key:"og:locale",property:"og:locale",content:ee.openGraph.locale})),(ee.openGraph.siteName||ee.openGraph.site_name)&&eu.push(eO.createElement("meta",{key:"og:site_name",property:"og:site_name",content:ee.openGraph.siteName||ee.openGraph.site_name}))}return ee.canonical&&eu.push(eO.createElement("link",{rel:"canonical",href:ee.canonical,key:"canonical"})),ee.additionalMetaTags&&ee.additionalMetaTags.length>0&&ee.additionalMetaTags.forEach(function(ee){var en,er,ei=ee.keyOverride,eo=_objectWithoutPropertiesLoose(ee,nq);eu.push(eO.createElement("meta",_extends({key:"meta:"+(null!=(en=null!=(er=null!=ei?ei:eo.name)?er:eo.property)?en:eo.httpEquiv)},eo)))}),null!=(ei=ee.additionalLinkTags)&&ei.length&&ee.additionalLinkTags.forEach(function(ee){var en,er=ee.crossOrigin,ei=_objectWithoutPropertiesLoose(ee,n$),eo="anonymous"===er||"use-credentials"===er||""===er?er:void 0;eu.push(eO.createElement("link",_extends({key:"link"+(null!=(en=ei.keyOverride)?en:ei.href)+ei.rel},ei,{crossOrigin:eo})))}),eu},WithHead=function(ee){return eO.createElement(nH(),null,buildTags(ee))},NextSeo=function(ee){var en=ee.title,er=ee.themeColor,ei=ee.noindex,eo=ee.nofollow,es=ee.robotsProps,eu=ee.description,ec=ee.canonical,ed=ee.openGraph,eh=ee.facebook,ep=ee.twitter,ef=ee.additionalMetaTags,em=ee.titleTemplate,eg=ee.defaultTitle,ex=ee.mobileAlternate,ev=ee.languageAlternates,ey=ee.additionalLinkTags;return eO.createElement(eO.Fragment,null,eO.createElement(WithHead,{title:en,themeColor:er,noindex:ei,nofollow:eo,robotsProps:es,description:eu,canonical:ec,facebook:eh,openGraph:ed,additionalMetaTags:ef,twitter:ep,titleTemplate:em,defaultTitle:eg,mobileAlternate:ex,languageAlternates:ev,additionalLinkTags:ey}))};function F({container:ee,accept:en,walk:er,enabled:ei=!0}){let eo=(0,eO.useRef)(en),es=(0,eO.useRef)(er);(0,eO.useEffect)(()=>{eo.current=en,es.current=er},[en,er]),(0,nr.e)(()=>{if(!ee||!ei)return;let en=(0,nT.r)(ee);if(!en)return;let er=eo.current,eu=es.current,ec=Object.assign(ee=>er(ee),{acceptNode:er}),ed=en.createTreeWalker(ee,NodeFilter.SHOW_ELEMENT,ec,!1);for(;ed.nextNode();)eu(ed.currentNode)},[ee,ei,eo,es])}function use_owner_n(...ee){return(0,eO.useMemo)(()=>(0,nT.r)(...ee),[...ee])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var nG=((ef=nG||{})[ef.Open=0]="Open",ef[ef.Closed=1]="Closed",ef),nK=((em=nK||{})[em.Pointer=0]="Pointer",em[em.Other=1]="Other",em),nY=((eg=nY||{})[eg.OpenMenu=0]="OpenMenu",eg[eg.CloseMenu=1]="CloseMenu",eg[eg.GoToItem=2]="GoToItem",eg[eg.Search=3]="Search",eg[eg.ClearSearch=4]="ClearSearch",eg[eg.RegisterItem=5]="RegisterItem",eg[eg.UnregisterItem=6]="UnregisterItem",eg);function w(ee,en=ee=>ee){let er=null!==ee.activeItemIndex?ee.items[ee.activeItemIndex]:null,ei=(0,nC.z2)(en(ee.items.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{items:ei,activeItemIndex:eo}}let nX={1:ee=>1===ee.menuState?ee:{...ee,activeItemIndex:null,menuState:1},0:ee=>0===ee.menuState?ee:{...ee,__demoMode:!1,menuState:0},2:(ee,en)=>{var er;let ei=w(ee),eo=x(en,{resolveItems:()=>ei.items,resolveActiveIndex:()=>ei.activeItemIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeItemIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeItemIndex?ee.items.slice(ee.activeItemIndex+er).concat(ee.items.slice(0,ee.activeItemIndex+er)):ee.items).find(ee=>{var en;return(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))&&!ee.dataRef.current.disabled}),es=eo?ee.items.indexOf(eo):-1;return -1===es||es===ee.activeItemIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeItemIndex:es,activationTrigger:1}},4:ee=>""===ee.searchQuery?ee:{...ee,searchQuery:"",searchActiveItemIndex:null},5:(ee,en)=>{let er=w(ee,ee=>[...ee,{id:en.id,dataRef:en.dataRef}]);return{...ee,...er}},6:(ee,en)=>{let er=w(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}}},nJ=(0,eO.createContext)(null);function O(ee){let en=(0,eO.useContext)(nJ);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,O),en}return en}function menu_ye(ee,en){return(0,nt.E)(en.type,nX,ee,en)}nJ.displayName="MenuContext";let n0=eO.Fragment;function Me(ee,en){let{__demoMode:er=!1,...ei}=ee,eo=(0,eO.useReducer)(menu_ye,{__demoMode:er,menuState:er?0:1,buttonRef:(0,eO.createRef)(),itemsRef:(0,eO.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:es,itemsRef:eu,buttonRef:ec},ed]=eo,eh=(0,ns.T)(en);h([ec,eu],(ee,en)=>{var er;ed({type:1}),(0,nC.sP)(en,nC.tJ.Loose)||(ee.preventDefault(),null==(er=ec.current)||er.focus())},0===es);let ep=(0,nu.z)(()=>{ed({type:1})}),ef=(0,eO.useMemo)(()=>({open:0===es,close:ep}),[es,ep]),em={ref:eh};return eO.createElement(nJ.Provider,{value:eo},eO.createElement(open_closed_c,{value:(0,nt.E)(es,{0:ne.Open,1:ne.Closed})},(0,t9.sY)({ourProps:em,theirProps:ei,slot:ef,defaultTag:n0,name:"Menu"})))}let n1="button";function menu_Re(ee,en){var er;let ei=(0,n_.M)(),{id:eo=`headlessui-menu-button-${ei}`,...es}=ee,[eu,ec]=O("Menu.Button"),ed=(0,ns.T)(eu.buttonRef,en),eh=use_disposables_p(),ep=(0,nu.z)(ee=>{switch(ee.key){case nw.R.Space:case nw.R.Enter:case nw.R.ArrowDown:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),eh.nextFrame(()=>ec({type:2,focus:nk.First}));break;case nw.R.ArrowUp:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),eh.nextFrame(()=>ec({type:2,focus:nk.Last}))}}),ef=(0,nu.z)(ee=>{ee.key===nw.R.Space&&ee.preventDefault()}),em=(0,nu.z)(en=>{if(bugs_r(en.currentTarget))return en.preventDefault();ee.disabled||(0===eu.menuState?(ec({type:1}),eh.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(en.preventDefault(),ec({type:0})))}),eg=(0,eO.useMemo)(()=>({open:0===eu.menuState}),[eu]),ex={ref:ed,id:eo,type:(0,nE.f)(ee,eu.buttonRef),"aria-haspopup":"menu","aria-controls":null==(er=eu.itemsRef.current)?void 0:er.id,"aria-expanded":0===eu.menuState,onKeyDown:ep,onKeyUp:ef,onClick:em};return(0,t9.sY)({ourProps:ex,theirProps:es,slot:eg,defaultTag:n1,name:"Menu.Button"})}let n2="div",n4=t9.AN.RenderStrategy|t9.AN.Static;function Ee(ee,en){var er,ei;let eo=(0,n_.M)(),{id:es=`headlessui-menu-items-${eo}`,...eu}=ee,[ec,ed]=O("Menu.Items"),eh=(0,ns.T)(ec.itemsRef,en),ep=use_owner_n(ec.itemsRef),ef=use_disposables_p(),em=C(),eg=null!==em?(em&ne.Open)===ne.Open:0===ec.menuState;(0,eO.useEffect)(()=>{let ee=ec.itemsRef.current;ee&&0===ec.menuState&&ee!==(null==ep?void 0:ep.activeElement)&&ee.focus({preventScroll:!0})},[ec.menuState,ec.itemsRef,ep]),F({container:ec.itemsRef.current,enabled:0===ec.menuState,accept:ee=>"menuitem"===ee.getAttribute("role")?NodeFilter.FILTER_REJECT:ee.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(ee){ee.setAttribute("role","none")}});let ex=(0,nu.z)(ee=>{var en,er;switch(ef.dispose(),ee.key){case nw.R.Space:if(""!==ec.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ed({type:3,value:ee.key});case nw.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),ed({type:1}),null!==ec.activeItemIndex){let{dataRef:ee}=ec.items[ec.activeItemIndex];null==(er=null==(en=ee.current)?void 0:en.domRef.current)||er.click()}(0,nC.wI)(ec.buttonRef.current);break;case nw.R.ArrowDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.Next});case nw.R.ArrowUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.Previous});case nw.R.Home:case nw.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.First});case nw.R.End:case nw.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nk.Last});case nw.R.Escape:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nl.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});break;case nw.R.Tab:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nl.k)().nextFrame(()=>{(0,nC.EO)(ec.buttonRef.current,ee.shiftKey?nC.TO.Previous:nC.TO.Next)});break;default:1===ee.key.length&&(ed({type:3,value:ee.key}),ef.setTimeout(()=>ed({type:4}),350))}}),ev=(0,nu.z)(ee=>{ee.key===nw.R.Space&&ee.preventDefault()}),ey=(0,eO.useMemo)(()=>({open:0===ec.menuState}),[ec]),eb={"aria-activedescendant":null===ec.activeItemIndex||null==(er=ec.items[ec.activeItemIndex])?void 0:er.id,"aria-labelledby":null==(ei=ec.buttonRef.current)?void 0:ei.id,id:es,onKeyDown:ex,onKeyUp:ev,role:"menu",tabIndex:0,ref:eh};return(0,t9.sY)({ourProps:eb,theirProps:eu,slot:ey,defaultTag:n2,features:n4,visible:eg,name:"Menu.Items"})}let n5=eO.Fragment;function menu_Pe(ee,en){let er=(0,n_.M)(),{id:ei=`headlessui-menu-item-${er}`,disabled:eo=!1,...es}=ee,[eu,ec]=O("Menu.Item"),ed=null!==eu.activeItemIndex&&eu.items[eu.activeItemIndex].id===ei,eh=(0,eO.useRef)(null),ep=(0,ns.T)(en,eh);(0,nr.e)(()=>{if(eu.__demoMode||0!==eu.menuState||!ed||0===eu.activationTrigger)return;let ee=(0,nl.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=eh.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eu.__demoMode,eh,ed,eu.menuState,eu.activationTrigger,eu.activeItemIndex]);let ef=use_text_value_b(eh),em=(0,eO.useRef)({disabled:eo,domRef:eh,get textValue(){return ef()}});(0,nr.e)(()=>{em.current.disabled=eo},[em,eo]),(0,nr.e)(()=>(ec({type:5,id:ei,dataRef:em}),()=>ec({type:6,id:ei})),[em,ei]);let eg=(0,nu.z)(()=>{ec({type:1})}),ex=(0,nu.z)(ee=>{if(eo)return ee.preventDefault();ec({type:1}),(0,nC.wI)(eu.buttonRef.current)}),ev=(0,nu.z)(()=>{if(eo)return ec({type:2,focus:nk.Nothing});ec({type:2,focus:nk.Specific,id:ei})}),ey=use_tracked_pointer_u(),eb=(0,nu.z)(ee=>ey.update(ee)),e_=(0,nu.z)(ee=>{ey.wasMoved(ee)&&(eo||ed||ec({type:2,focus:nk.Specific,id:ei,trigger:0}))}),ew=(0,nu.z)(ee=>{ey.wasMoved(ee)&&(eo||ed&&ec({type:2,focus:nk.Nothing}))}),ek=(0,eO.useMemo)(()=>({active:ed,disabled:eo,close:eg}),[ed,eo,eg]);return(0,t9.sY)({ourProps:{id:ei,ref:ep,role:"menuitem",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,disabled:void 0,onClick:ex,onFocus:ev,onPointerEnter:eb,onMouseEnter:eb,onPointerMove:e_,onMouseMove:e_,onPointerLeave:ew,onMouseLeave:ew},theirProps:es,slot:ek,defaultTag:n5,name:"Menu.Item"})}let n3=Object.assign((0,t9.yV)(Me),{Button:(0,t9.yV)(menu_Re),Items:(0,t9.yV)(Ee),Item:(0,t9.yV)(menu_Pe)}),dist_t=ee=>"object"==typeof ee&&null!=ee&&1===ee.nodeType,e=(ee,en)=>(!en||"hidden"!==ee)&&"visible"!==ee&&"clip"!==ee,dist_n=(ee,en)=>{if(ee.clientHeight{let en=(ee=>{if(!ee.ownerDocument||!ee.ownerDocument.defaultView)return null;try{return ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ee);return!!en&&(en.clientHeightesen||es>ee&&eu=en&&ec>=er?es-ee-ei:eu>en&&ecer?eu-en+eo:0,l=ee=>{let en=ee.parentElement;return null==en?ee.getRootNode().host||null:en},dist_r=(ee,en)=>{var er,ei,eo,es;if("undefined"==typeof document)return[];let{scrollMode:eu,block:ec,inline:ed,boundary:eh,skipOverflowHiddenElements:ep}=en,ef="function"==typeof eh?eh:ee=>ee!==eh;if(!dist_t(ee))throw TypeError("Invalid target");let em=document.scrollingElement||document.documentElement,eg=[],ex=ee;for(;dist_t(ex)&&ef(ex);){if((ex=l(ex))===em){eg.push(ex);break}null!=ex&&ex===document.body&&dist_n(ex)&&!dist_n(document.documentElement)||null!=ex&&dist_n(ex,ep)&&eg.push(ex)}let ev=null!=(ei=null==(er=window.visualViewport)?void 0:er.width)?ei:innerWidth,ey=null!=(es=null==(eo=window.visualViewport)?void 0:eo.height)?es:innerHeight,{scrollX:eb,scrollY:e_}=window,{height:ew,width:ek,top:eC,right:eE,bottom:eO,left:eT}=ee.getBoundingClientRect(),{top:eP,right:eS,bottom:eI,left:ej}=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee),eR="start"===ec||"nearest"===ec?eC-eP:"end"===ec?eO+eI:eC+ew/2-eP+eI,eM="center"===ed?eT+ek/2-ej+eS:"end"===ed?eE+eS:eT-ej,eN=[];for(let ee=0;ee=0&&eT>=0&&eO<=ey&&eE<=ev&&eC>=eo&&eO<=eh&&eT>=ep&&eE<=es)break;let ef=getComputedStyle(en),ex=parseInt(ef.borderLeftWidth,10),eP=parseInt(ef.borderTopWidth,10),eS=parseInt(ef.borderRightWidth,10),eI=parseInt(ef.borderBottomWidth,10),ej=0,eA=0,eL="offsetWidth"in en?en.offsetWidth-en.clientWidth-ex-eS:0,eZ="offsetHeight"in en?en.offsetHeight-en.clientHeight-eP-eI:0,eF="offsetWidth"in en?0===en.offsetWidth?0:ei/en.offsetWidth:0,eD="offsetHeight"in en?0===en.offsetHeight?0:er/en.offsetHeight:0;if(em===en)ej="start"===ec?eR:"end"===ec?eR-ey:"nearest"===ec?dist_o(e_,e_+ey,ey,eP,eI,e_+eR,e_+eR+ew,ew):eR-ey/2,eA="start"===ed?eM:"center"===ed?eM-ev/2:"end"===ed?eM-ev:dist_o(eb,eb+ev,ev,ex,eS,eb+eM,eb+eM+ek,ek),ej=Math.max(0,ej+e_),eA=Math.max(0,eA+eb);else{ej="start"===ec?eR-eo-eP:"end"===ec?eR-eh+eI+eZ:"nearest"===ec?dist_o(eo,eh,er,eP,eI+eZ,eR,eR+ew,ew):eR-(eo+er/2)+eZ/2,eA="start"===ed?eM-ep-ex:"center"===ed?eM-(ep+ei/2)+eL/2:"end"===ed?eM-es+eS+eL:dist_o(ep,es,ei,ex,eS+eL,eM,eM+ek,ek);let{scrollLeft:ee,scrollTop:eu}=en;ej=0===eD?0:Math.max(0,Math.min(eu+ej/eD,en.scrollHeight-er/eD+eZ)),eA=0===eF?0:Math.max(0,Math.min(ee+eA/eF,en.scrollWidth-ei/eF+eL)),eR+=eu-ej,eM+=ee-eA}eN.push({el:en,top:ej,left:eA})}return eN},scroll_into_view_if_needed_dist_o=ee=>{var en;return!1===ee?{block:"end",inline:"nearest"}:(en=ee,en===Object(en)&&0!==Object.keys(en).length)?ee:{block:"start",inline:"nearest"}};function dist_e(ee,en){var er;if(!ee.isConnected||!(ee=>{let en=ee;for(;en&&en.parentNode;){if(en.parentNode===document)return!0;en=en.parentNode instanceof ShadowRoot?en.parentNode.host:en.parentNode}return!1})(ee))return;let ei=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee);if("object"==typeof(er=en)&&"function"==typeof er.behavior)return en.behavior(dist_r(ee,en));let eo="boolean"==typeof en||null==en?void 0:en.behavior;for(let{el:er,top:es,left:eu}of dist_r(ee,scroll_into_view_if_needed_dist_o(en))){let ee=es-ei.top+ei.bottom,en=eu-ei.left+ei.right;er.scroll({top:ee,left:en,behavior:eo})}}var n6=er(7462),n7=er(6826),n9=er.n(n7),n8={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};matchSorter.rankings=n8;var defaultBaseSortFn=function(ee,en){return String(ee.rankedValue).localeCompare(String(en.rankedValue))};function matchSorter(ee,en,er){void 0===er&&(er={});var ei=er,eo=ei.keys,es=ei.threshold,eu=void 0===es?n8.MATCHES:es,ec=ei.baseSort,ed=void 0===ec?defaultBaseSortFn:ec,eh=ei.sorter;return(void 0===eh?function(ee){return ee.sort(function(ee,en){return sortRankedValues(ee,en,ed)})}:eh)(ee.reduce(reduceItemsToRanked,[])).map(function(ee){return ee.item});function reduceItemsToRanked(ee,ei,es){var ec=getHighestRanking(ei,eo,en,er),ed=ec.rank,eh=ec.keyThreshold;return ed>=(void 0===eh?eu:eh)&&ee.push((0,n6.Z)({},ec,{item:ei,index:es})),ee}}function getHighestRanking(ee,en,er,ei){if(!en){var eo=ee;return{rankedValue:eo,rank:getMatchRanking(eo,er,ei),keyIndex:-1,keyThreshold:ei.threshold}}return getAllValuesToRank(ee,en).reduce(function(ee,en,eo){var es=ee.rank,eu=ee.rankedValue,ec=ee.keyIndex,ed=ee.keyThreshold,eh=en.itemValue,ep=en.attributes,ef=getMatchRanking(eh,er,ei),em=eu,eg=ep.minRanking,ex=ep.maxRanking,ev=ep.threshold;return ef=n8.MATCHES?ef=eg:ef>ex&&(ef=ex),ef>es&&(es=ef,ec=eo,ed=ev,em=eh),{rankedValue:em,rank:es,keyIndex:ec,keyThreshold:ed}},{rankedValue:ee,rank:n8.NO_MATCH,keyIndex:-1,keyThreshold:ei.threshold})}function getMatchRanking(ee,en,er){return(ee=prepareValueForComparison(ee,er),(en=prepareValueForComparison(en,er)).length>ee.length)?n8.NO_MATCH:ee===en?n8.CASE_SENSITIVE_EQUAL:(ee=ee.toLowerCase())===(en=en.toLowerCase())?n8.EQUAL:ee.startsWith(en)?n8.STARTS_WITH:ee.includes(" "+en)?n8.WORD_STARTS_WITH:ee.includes(en)?n8.CONTAINS:1===en.length?n8.NO_MATCH:getAcronym(ee).includes(en)?n8.ACRONYM:getClosenessRanking(ee,en)}function getAcronym(ee){var en="";return ee.split(" ").forEach(function(ee){ee.split("-").forEach(function(ee){en+=ee.substr(0,1)})}),en}function getClosenessRanking(ee,en){var er=0,ei=0;function findMatchingCharacter(ee,en,ei){for(var eo=ei,es=en.length;eo-1))return n8.NO_MATCH;return getRanking(ei-eo)}function sortRankedValues(ee,en,er){var ei=-1,eo=1,es=ee.rank,eu=ee.keyIndex,ec=en.rank,ed=en.keyIndex;return es!==ec?es>ec?ei:eo:eu===ed?er(ee,en):euen in ee?ri(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,__spreadValues=(ee,en)=>{for(var er in en||(en={}))ru.call(en,er)&&__defNormalProp(ee,er,en[er]);if(rl)for(var er of rl(en))rc.call(en,er)&&__defNormalProp(ee,er,en[er]);return ee},__spreadProps=(ee,en)=>ro(ee,rs(en)),__objRest=(ee,en)=>{var er={};for(var ei in ee)ru.call(ee,ei)&&0>en.indexOf(ei)&&(er[ei]=ee[ei]);if(null!=ee&&rl)for(var ei of rl(ee))0>en.indexOf(ei)&&rc.call(ee,ei)&&(er[ei]=ee[ei]);return er},__async=(ee,en,er)=>new Promise((ei,eo)=>{var fulfilled=ee=>{try{step(er.next(ee))}catch(ee){eo(ee)}},rejected=ee=>{try{step(er.throw(ee))}catch(ee){eo(ee)}},step=ee=>ee.done?ei(ee.value):Promise.resolve(ee.value).then(fulfilled,rejected);step((er=er.apply(ee,en)).next())}),rd=(0,eO.createContext)({}),rh=(0,eO.createContext)(ee=>ee),rp=(0,eO.createContext)(null),rf=new WeakMap,rm=(0,eO.createContext)(rf),useActiveAnchor=()=>(0,eO.useContext)(rd),useSetActiveAnchor=()=>(0,eO.useContext)(rh),useIntersectionObserver=()=>(0,eO.useContext)(rp),useSlugs=()=>(0,eO.useContext)(rm),ActiveAnchorProvider=({children:ee})=>{let[en,er]=(0,eO.useState)({}),ei=(0,eO.useRef)(null);return rz&&!ei.current&&(ei.current=new IntersectionObserver(ee=>{er(en=>{let er=__spreadValues({},en);for(let en of ee)if((null==en?void 0:en.rootBounds)&&rf.has(en.target)){let[ee,ei]=rf.get(en.target),eo=en.boundingClientRect.y+en.boundingClientRect.height<=en.rootBounds.y+en.rootBounds.height,es=en.intersectionRatio>0;er[ee]={index:ei,aboveHalfViewport:eo,insideHalfViewport:es}}let ei="",eo=1/0,es=-1;for(let ee in er)er[ee].isActive=!1,er[ee].insideHalfViewport&&er[ee].indexes&&(es=er[ee].index,ei=ee);return er[ei]&&(er[ei].isActive=!0),er})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,eC.jsx)(rd.Provider,{value:en,children:(0,eC.jsx)(rh.Provider,{value:er,children:(0,eC.jsx)(rm.Provider,{value:rf,children:(0,eC.jsx)(rp.Provider,{value:ei.current,children:ee})})})})},rg=(0,eO.createContext)({menu:!1,setMenu:()=>!1}),useMenu=()=>(0,eO.useContext)(rg),rx=rg.Provider,rv=(0,eO.createContext)(__spreadValues({title:"",frontMatter:{}},rQ));function useConfig(){return(0,eO.useContext)(rv)}var ConfigProvider=({children:ee,value:{themeConfig:en,pageOpts:er}})=>{let[ei,eo]=(0,eO.useState)(!1);e_||(e_=__spreadValues(__spreadValues({},rQ),Object.fromEntries(Object.entries(en).map(([ee,en])=>[ee,en&&"object"==typeof en&&rG.includes(ee)?__spreadValues(__spreadValues({},rQ[ee]),en):en]))));let es=__spreadProps(__spreadValues(__spreadProps(__spreadValues({},e_),{flexsearch:er.flexsearch}),"boolean"==typeof er.newNextLinkBehavior&&{newNextLinkBehavior:er.newNextLinkBehavior}),{title:er.title,frontMatter:er.frontMatter}),{nextThemes:eu}=es;return(0,eC.jsx)(tE.f,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:eu.defaultTheme,storageKey:eu.storageKey,forcedTheme:eu.forcedTheme,children:(0,eC.jsx)(rv.Provider,{value:es,children:(0,eC.jsx)(rx,{value:{menu:ei,setMenu:eo},children:ee})})})},ry=(0,eO.createContext)(ee=>ee),useDetails=()=>(0,eO.useContext)(ry),rb=ry.Provider,r_=Number(tC.i8.split(".")[0]),rw=(0,eO.forwardRef)(function(ee,en){var er=ee,{href:ei="",children:eo,newWindow:es}=er,eu=__objRest(er,["href","children","newWindow"]);let ec=useConfig();return es?(0,eC.jsxs)("a",__spreadProps(__spreadValues({ref:en,href:ei,target:"_blank",rel:"noreferrer"},eu),{children:[eo,(0,eC.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):ei?r_>12||ec.newNextLinkBehavior?(0,eC.jsx)(tk(),__spreadProps(__spreadValues({ref:en,href:ei},eu),{children:eo})):(0,eC.jsx)(tk(),{href:ei,passHref:!0,children:(0,eC.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:eo}))}):(0,eC.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:eo}))});rw.displayName="Anchor";var getGitIssueUrl=({repository:ee="",title:en,labels:er})=>{let ei=tA()(ee);if(!ei)throw Error("Invalid `docsRepositoryBase` URL!");return ei.resource.includes("gitlab")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/-/issues/new?issue[title]=${encodeURIComponent(en)}${er?`&issue[description]=/label${encodeURIComponent(` ~${er} `)}`:""}`:ei.resource.includes("github")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/issues/new?title=${encodeURIComponent(en)}&labels=${er||""}`:"#"};function renderComponent(ee,en){return ee?"function"!=typeof ee?ee:(0,eC.jsx)(ee,__spreadValues({},en)):null}function renderString(ee,en={}){let er="function"==typeof ee?ee(en):ee;return er||""}function usePopper(ee){let en=(0,eO.useRef)(null),er=(0,eO.useRef)(null),ei=(0,eO.useRef)(),eo=(0,eO.useCallback)(()=>{var eo;en.current&&er.current&&(null==(eo=ei.current)||eo.call(ei),ei.current=t3(en.current,er.current,ee).destroy)},[en,er,ei,ee]);return(0,eO.useMemo)(()=>[ee=>{en.current=ee,eo()},ee=>{er.current=ee,eo()}],[en,er,eo])}function useGitEditUrl(ee=""){let en=useConfig(),er=tA()(en.docsRepositoryBase||"");if(!er)throw Error("Invalid `docsRepositoryBase` URL!");return`${er.href}/${ee}`}function Banner(){let{banner:ee}=useConfig();if(!ee.text)return null;let en=`try{if(localStorage.getItem(${JSON.stringify(ee.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("script",{dangerouslySetInnerHTML:{__html:en}}),(0,eC.jsxs)("div",{className:dist_clsx("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,eC.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:renderComponent(ee.text)}),ee.dismissible&&(0,eC.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(ee.key,"0")}catch(ee){}document.body.classList.add("nextra-banner-hidden")},children:(0,eC.jsx)(eI.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function Breadcrumb({activePath:ee}){return(0,eC.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:ee.map((en,er)=>{let ei=!en.children||en.withIndexPage,eo=er===ee.length-1;return(0,eC.jsxs)(eO.Fragment,{children:[er>0&&(0,eC.jsx)(eI.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,eC.jsx)("div",{className:dist_clsx("nx-whitespace-nowrap nx-transition-colors",eo?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",ei&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:en.title,children:ei&&!eo?(0,eC.jsx)(rw,{href:en.route,children:en.title}):en.title})]},en.route+en.name)})})}function Collapse({children:ee,className:en,isOpen:er,horizontal:ei=!1}){let eo=(0,eO.useRef)(null),es=(0,eO.useRef)(null),eu=(0,eO.useRef)(0),ec=(0,eO.useRef)(er),ed=(0,eO.useRef)(!0);return(0,eO.useEffect)(()=>{let ee=eo.current,en=es.current,ec=eu.current;ec&&clearTimeout(ec),!ed.current&&ee&&en&&(ee.classList.toggle("nx-duration-500",!er),ee.classList.toggle("nx-duration-300",er),ei?(en.style.width=`${en.clientWidth}px`,ee.style.width=`${en.clientWidth}px`):ee.style.height=`${en.clientHeight}px`,er?eu.current=window.setTimeout(()=>{ee.style.removeProperty("height")},300):setTimeout(()=>{ei?ee.style.width="0px":ee.style.height="0px"},0))},[ei,er]),(0,eO.useEffect)(()=>{ed.current=!1},[]),(0,eC.jsx)("div",{ref:eo,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:ec.current||ei?void 0:{height:0},children:(0,eC.jsx)("div",{ref:es,className:dist_clsx("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",er?"nx-opacity-100":"nx-opacity-0",en),children:ee})})}var rk=(0,eO.memo)(function({value:ee,match:en}){let er;if(!ee)return null;let ei=ee.split(""),eo=escapeStringRegexp(en.trim()),es=RegExp(eo.replaceAll(" ","|"),"ig"),eu=0,ec=[];for(;(er=es.exec(ee))&&0!==es.lastIndex;){let ee=ei.splice(0,er.index-eu).join(""),en=ei.splice(0,es.lastIndex-er.index).join("");ec.push(ee,(0,eC.jsx)("span",{className:"nx-text-primary-600",children:en},er.index)),eu=es.lastIndex}return(0,eC.jsxs)(eC.Fragment,{children:[ec,ei.join("")]})}),rC=(0,eO.forwardRef)((ee,en)=>{var er=ee,{className:ei,suffix:eo}=er,es=__objRest(er,["className","suffix"]);return(0,eC.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,eC.jsx)("input",__spreadValues({ref:en,spellCheck:!1,className:dist_clsx(ei,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},es)),eo]})});rC.displayName="Input";var rE=["input","select","button","textarea"];function Search({className:ee,overlayClassName:en,value:er,onChange:ei,onActive:eo,loading:es,error:eu,results:ec}){let[ed,eh]=(0,eO.useState)(!1),ep=useConfig(),[ef,em]=(0,eO.useState)(0),eg=(0,eE.useRouter)(),{setMenu:ex}=useMenu(),ev=(0,eO.useRef)(null),ey=(0,eO.useRef)(null),[eb,e_]=(0,eO.useState)(!1),[ew,ek]=(0,eO.useState)(!0);(0,eO.useEffect)(()=>{em(0)},[er]),(0,eO.useEffect)(()=>{let down=ee=>{let en=document.activeElement,er=null==en?void 0:en.tagName.toLowerCase();!ev.current||!er||rE.includes(er)||null!=en&&en.isContentEditable||("/"===ee.key||"k"===ee.key&&(ee.metaKey||ee.ctrlKey)?(ee.preventDefault(),ev.current.focus({preventScroll:!0})):"Escape"===ee.key&&(eh(!1),ev.current.blur()))};return window.addEventListener("keydown",down),()=>{window.removeEventListener("keydown",down)}},[]);let eT=(0,eO.useCallback)(()=>{var ee;null==(ee=ev.current)||ee.blur(),ei(""),eh(!1),ex(!1)},[ei,ex]),eP=(0,eO.useCallback)(ee=>{let{index:en}=ee.currentTarget.dataset;em(Number(en))},[]),eS=(0,eO.useCallback)(function(ee){var en,er,ei;switch(ee.key){case"ArrowDown":if(ef+1 a`);er&&(ee.preventDefault(),eP({currentTarget:er}),er.focus())}break;case"ArrowUp":if(ef-1>=0){let en=null==(er=ey.current)?void 0:er.querySelector(`li:nth-of-type(${ef}) > a`);en&&(ee.preventDefault(),eP({currentTarget:en}),en.focus())}break;case"Enter":{let ee=ec[ef];ee&&ew&&(eg.push(ee.route),eT());break}case"Escape":eh(!1),null==(ei=ev.current)||ei.blur()}},[ef,ec,eg,eT,eP,ew]),ej=useMounted(),eR=ed&&!!er,eM=(0,eC.jsx)(ny,{show:ej&&(!ed||!!er),as:eO.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eC.jsx)("kbd",{className:dist_clsx("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",er?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:er?"Clear":void 0,onClick:()=>{ei("")},children:er&&eb?"ESC":ej&&(navigator.userAgent.includes("Macintosh")?(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),eN=(0,eO.useCallback)(ee=>{ek("compositionend"===ee.type)},[]);return(0,eC.jsxs)("div",{className:dist_clsx("nextra-search nx-relative md:nx-w-64",ee),children:[eR&&(0,eC.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>eh(!1)}),(0,eC.jsx)(rC,{ref:ev,value:er,onChange:ee=>{let{value:en}=ee.target;ei(en),eh(!!en)},onFocus:()=>{null==eo||eo(!0),e_(!0)},onBlur:()=>{e_(!1)},onCompositionStart:eN,onCompositionEnd:eN,type:"search",placeholder:renderString(ep.search.placeholder),onKeyDown:eS,suffix:eM}),(0,eC.jsx)(ny,{show:eR,as:ny.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eC.jsx)("ul",{className:dist_clsx("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",en),ref:ey,style:{transition:"max-height .2s ease"},children:eu?(0,eC.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,eC.jsx)(eI.AV,{className:"nx-h-5 nx-w-5"}),renderString(ep.search.error)]}):es?(0,eC.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,eC.jsx)(eI.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),renderComponent(ep.search.loading)]}):ec.length>0?ec.map(({route:ee,prefix:en,children:er,id:ei},eo)=>(0,eC.jsxs)(eO.Fragment,{children:[en,(0,eC.jsx)("li",{className:dist_clsx("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",eo===ef?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,eC.jsx)(rw,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:ee,"data-index":eo,onFocus:eP,onMouseMove:eP,onClick:eT,onKeyDown:eS,children:er})})]},ei)):renderComponent(ep.search.emptyResult)})})]})}var rO={},rT=new Map,loadIndexes=(ee,en)=>{let er=ee+"@"+en;if(rT.has(er))return rT.get(er);let ei=loadIndexesImpl(ee,en);return rT.set(er,ei),ei},loadIndexesImpl=(ee,en)=>__async(void 0,null,function*(){let er=yield fetch(`${ee}/_next/static/chunks/nextra-data-${en}.json`),ei=yield er.json(),eo=new(t7()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),es=new(t7()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),eu=0;for(let[ee,en]of Object.entries(ei)){let er="";for(let[ei,eo]of(++eu,Object.entries(en.data))){let[ec,ed]=ei.split("#"),eh=ee+(ec?"#"+ec:""),ep=ed||en.title,ef=eo.split("\n");es.add(__spreadValues({id:eh,url:eh,title:ep,pageId:`page_${eu}`,content:ep},ef[0]&&{display:ef[0]}));for(let ee=0;ee{var er,ei;if(!ee)return;let[eo,es]=rO[en],eu=(null==(er=eo.search(ee,5,{enrich:!0,suggest:!0})[0])?void 0:er.result)||[],ec=[],eh={};for(let en=0;enee._page_rk===en._page_rk?ee._section_rk-en._section_rk:eh[ee._page_rk]!==eh[en._page_rk]?eh[en._page_rk]-eh[ee._page_rk]:ee._page_rk-en._page_rk).map(ee=>({id:`${ee._page_rk}_${ee._section_rk}`,route:ee.route,prefix:ee.prefix,children:ee.children})))},ef=(0,eO.useCallback)(ee=>__async(this,null,function*(){if(ee&&!rO[en]){eo(!0);try{yield loadIndexes(er,en)}catch(ee){eu(!0)}eo(!1)}}),[en,er]),handleChange=ee=>__async(this,null,function*(){if(ep(ee),!ei){if(!rO[en]){eo(!0);try{yield loadIndexes(er,en)}catch(ee){eu(!0)}eo(!1)}doSearch(ee)}});return(0,eC.jsx)(Search,{loading:ei,error:es,value:eh,onChange:handleChange,onActive:ef,className:ee,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:ec})}function Select({options:ee,selected:en,onChange:er,title:ei,className:eo}){let[es,eu]=usePopper({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:ee}){ee.styles.popper.minWidth=`${ee.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,eC.jsx)(nz,{value:en,onChange:er,children:({open:er})=>(0,eC.jsxs)(nz.Button,{ref:es,title:ei,className:dist_clsx("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",er?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",eo),children:[en.name,(0,eC.jsx)(Portal,{children:(0,eC.jsx)(ny,{ref:eu,show:er,as:nz.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:ee.map(ee=>(0,eC.jsxs)(nz.Option,{value:ee,className:({active:ee})=>dist_clsx(ee?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[ee.name,ee.key===en.key&&(0,eC.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,eC.jsx)(eI.nQ,{})})]},ee.key))})})]})})}function Portal(ee){let en=useMounted();return en?(0,nB.createPortal)(ee.children,document.body):null}function LocaleSwitch({lite:ee,className:en}){let er=useConfig(),{locale:ei,asPath:eo}=(0,eE.useRouter)(),es=er.i18n;if(!es.length)return null;let eu=es.find(ee=>ei===ee.locale);return(0,eC.jsx)(Select,{title:"Change language",className:en,onChange:ee=>{let en=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${ee.key}; expires=${en.toUTCString()}; path=/`,location.href=(0,nb.addBasePath)(eo)},selected:{key:(null==eu?void 0:eu.locale)||"",name:(0,eC.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,eC.jsx)(eI.n9,{}),(0,eC.jsx)("span",{className:ee?"nx-hidden":"",children:null==eu?void 0:eu.text})]})},options:es.map(ee=>({key:ee.locale,name:ee.text}))})}function Footer({menu:ee}){let en=useConfig();return(0,eC.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,eC.jsxs)("div",{className:dist_clsx("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",ee&&(en.i18n.length>0||en.darkMode)?"nx-flex":"nx-hidden"),children:[(0,eC.jsx)(LocaleSwitch,{}),en.darkMode&&renderComponent(en.themeSwitch.component)]}),(0,eC.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,eC.jsx)("div",{className:dist_clsx("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:renderComponent(en.footer.text)})]})}function dist_Head(){var ee;let en=useConfig(),{resolvedTheme:er}=(0,tE.F)(),ei=useMounted(),eo="function"==typeof en.head?en.head({}):en.head,{primaryHue:es,primarySaturation:eu}=en,{dark:ec,light:ed}="number"==typeof es?{dark:es,light:es}:es,{dark:eh,light:ep}="number"==typeof eu?{dark:eu,light:eu}:eu,ef=en.frontMatter;return(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)(NextSeo,__spreadValues({title:en.title,description:ef.description,canonical:ef.canonical,openGraph:ef.openGraph},null==(ee=en.useNextSeoProps)?void 0:ee.call(en))),(0,eC.jsxs)(nH(),{children:[en.faviconGlyph?(0,eC.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${en.faviconGlyph}`}):null,ei?(0,eC.jsx)("meta",{name:"theme-color",content:"dark"===er?"#111":"#fff"}):(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,eC.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,eC.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,eC.jsx)("style",{children:` :root { --nextra-primary-hue: ${ed}deg; @@ -20,7 +20,7 @@ --nextra-primary-hue: ${ec}deg; --nextra-primary-saturation: ${eh}%; } - `}),eo]})]})}var rP={link:dist_clsx("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:dist_clsx("nx-inline nx-h-5 nx-shrink-0")},NavLinks=({flatDirectories:ee,currentIndex:en})=>{let er=useConfig(),ei=er.navigation,eo="boolean"==typeof ei?{prev:ei,next:ei}:ei,es=eo.prev&&ee[en-1],eu=eo.next&&ee[en+1];return(es&&!es.isUnderCurrentDocsTree&&(es=!1),eu&&!eu.isUnderCurrentDocsTree&&(eu=!1),es||eu)?(0,eC.jsxs)("div",{className:dist_clsx("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[es&&(0,eC.jsxs)(rw,{href:es.route,title:es.title,className:dist_clsx(rP.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,eC.jsx)(eI.LZ,{className:dist_clsx(rP.icon,"ltr:nx-rotate-180")}),es.title]}),eu&&(0,eC.jsxs)(rw,{href:eu.route,title:eu.title,className:dist_clsx(rP.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[eu.title,(0,eC.jsx)(eI.LZ,{className:dist_clsx(rP.icon,"rtl:nx-rotate-180")})]})]}):null},rS={link:dist_clsx("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:dist_clsx("nx-font-medium nx-subpixel-antialiased"),inactive:dist_clsx("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function NavbarMenu({className:ee,menu:en,children:er}){let{items:ei}=en,eo=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));return(0,eC.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,eC.jsxs)(n3,{children:[(0,eC.jsx)(n3.Button,{className:dist_clsx(ee,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",rS.inactive),children:er}),(0,eC.jsx)(ny,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eC.jsx)(n3.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",tabIndex:0,children:Object.entries(ei||{}).map(([ee,er])=>{var ei;return(0,eC.jsx)(n3.Item,{children:(0,eC.jsx)(rw,{href:er.href||(null==(ei=eo[ee])?void 0:ei.route)||en.route+"/"+ee,className:dist_clsx("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:er.newWindow,children:er.title||ee})},ee)})})})]})})}function Navbar({flatDirectories:ee,items:en}){let er=useConfig(),ei=useFSRoute(),{menu:eo,setMenu:es}=useMenu();return(0,eC.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,eC.jsx)("div",{className:dist_clsx("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,eC.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[er.logoLink?(0,eC.jsx)(rw,{href:"string"==typeof er.logoLink?er.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}):(0,eC.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}),en.map(ee=>{if("hidden"===ee.display)return null;if("menu"===ee.type){let en=ee;return(0,eC.jsxs)(NavbarMenu,{className:dist_clsx(rS.link,"nx-flex nx-gap-1",rS.inactive),menu:en,children:[en.title,(0,eC.jsx)(eI.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},en.title)}let en=ee,er=en.href||en.route||"#";en.children&&(er=(en.withIndexPage?en.route:en.firstChildRoute)||er);let eo=en.route===ei||ei.startsWith(en.route+"/");return(0,eC.jsxs)(rw,{href:er,className:dist_clsx(rS.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!eo||en.newWindow?rS.inactive:rS.active),newWindow:en.newWindow,"aria-current":!en.newWindow&&eo,children:[(0,eC.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:en.title}),(0,eC.jsx)("span",{className:"nx-invisible nx-font-medium",children:en.title})]},er)}),renderComponent(er.search.component,{directories:ee,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),er.project.link?(0,eC.jsx)(rw,{className:"nx-p-2 nx-text-current",href:er.project.link,newWindow:!0,children:renderComponent(er.project.icon)}):null,er.chat.link?(0,eC.jsx)(rw,{className:"nx-p-2 nx-text-current",href:er.chat.link,newWindow:!0,children:renderComponent(er.chat.icon)}):null,renderComponent(er.navbar.extraContent),(0,eC.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>es(!eo),children:(0,eC.jsx)(eI.Oq,{className:dist_clsx({open:eo})})})]})]})}var rI=Object.create(null),rj=(0,eO.createContext)(null),rR=(0,eO.createContext)(null),rM=(0,eO.createContext)(0),rN=(0,eO.memo)(function(ee){let en=(0,eO.useContext)(rM);return(0,eC.jsx)(rM.Provider,{value:en+1,children:(0,eC.jsx)(FolderImpl,__spreadValues({},ee))})}),rA={link:dist_clsx("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:dist_clsx("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:dist_clsx("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:dist_clsx("nx-flex nx-flex-col nx-gap-1"),border:dist_clsx("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function FolderImpl({item:ee,anchors:en}){let er=useFSRoute(),[ei]=er.split("#"),eo=[ei,ei+"/"].includes(ee.route+"/"),es=eo||ei.startsWith(ee.route+"/"),eu=(0,eO.useContext)(rj),ec=!!(null==eu?void 0:eu.startsWith(ee.route+"/")),ed=(0,eO.useContext)(rM),{setMenu:eh}=useMenu(),ep=useConfig(),{theme:ef}=ee,em=void 0===rI[ee.route]?eo||es||ec||(ef&&"collapsed"in ef?!ef.collapsed:ed{let updateTreeState=()=>{(es||ec)&&(rI[ee.route]=!0)},updateAndPruneTreeState=()=>{es&&ec?rI[ee.route]=!0:delete rI[ee.route]};ep.sidebar.autoCollapse?updateAndPruneTreeState():updateTreeState()},[es,ec,ee.route,ep.sidebar.autoCollapse]),"menu"===ee.type){let en=ee,er=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));ee.children=Object.entries(en.items||{}).map(([ee,ei])=>{let eo=er[ee]||__spreadProps(__spreadValues({name:ee},"locale"in en&&{locale:en.locale}),{route:en.route+"/"+ee});return __spreadValues(__spreadValues({},eo),ei)})}let ex="withIndexPage"in ee&&ee.withIndexPage,ev=ex?rw:"button";return(0,eC.jsxs)("li",{className:dist_clsx({open:em,active:eo}),children:[(0,eC.jsxs)(ev,{href:ex?ee.route:void 0,className:dist_clsx("nx-items-center nx-justify-between nx-gap-2",!ex&&"nx-text-left nx-w-full",rA.link,eo?rA.active:rA.inactive),onClick:en=>{let er=["svg","path"].includes(en.target.tagName.toLowerCase());if(er&&en.preventDefault(),ex){eo||er?rI[ee.route]=!em:(rI[ee.route]=!0,eh(!1)),eg({});return}eo||(rI[ee.route]=!em,eg({}))},children:[renderComponent(ep.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route}),(0,eC.jsx)(eI.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:dist_clsx("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",em&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,eC.jsx)(Collapse,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:em,children:Array.isArray(ee.children)?(0,eC.jsx)(Menu2,{className:dist_clsx(rA.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:ee.children,base:ee.route,anchors:en}):null})]})}function Separator({title:ee}){let en=useConfig();return(0,eC.jsx)("li",{className:dist_clsx("[word-break:break-word]",ee?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:ee?renderComponent(en.sidebar.titleComponent,{title:ee,type:"separator",route:""}):(0,eC.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function File({item:ee,anchors:en}){let er=useFSRoute(),ei=(0,eO.useContext)(rR),eo=ee.route&&[er,er+"/"].includes(ee.route+"/"),es=useActiveAnchor(),{setMenu:eu}=useMenu(),ec=useConfig();return"separator"===ee.type?(0,eC.jsx)(Separator,{title:ee.title}):(0,eC.jsxs)("li",{className:dist_clsx(rA.list,{active:eo}),children:[(0,eC.jsx)(rw,{href:ee.href||ee.route,newWindow:ee.newWindow,className:dist_clsx(rA.link,eo?rA.active:rA.inactive),onClick:()=>{eu(!1)},onFocus:()=>{null==ei||ei(ee.route)},onBlur:()=>{null==ei||ei(null)},children:renderComponent(ec.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route})}),eo&&en.length>0&&(0,eC.jsx)("ul",{className:dist_clsx(rA.list,rA.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:en.map(({id:ee,value:en})=>{var er;return(0,eC.jsx)("li",{children:(0,eC.jsx)("a",{href:`#${ee}`,className:dist_clsx(rA.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(er=es[ee])?void 0:er.isActive)?rA.active:rA.inactive),onClick:()=>{eu(!1)},children:en})},ee)})})]})}function Menu2({directories:ee,anchors:en,className:er,onlyCurrentDocs:ei}){return(0,eC.jsx)("ul",{className:dist_clsx(rA.list,er),children:ee.map(ee=>!ei||ee.isUnderCurrentDocsTree?"menu"===ee.type||ee.children&&(ee.children.length||!ee.withIndexPage)?(0,eC.jsx)(rN,{item:ee,anchors:en},ee.name):(0,eC.jsx)(File,{item:ee,anchors:en},ee.name):null)})}function Sidebar({docsDirectories:ee,flatDirectories:en,fullDirectories:er,asPopover:ei=!1,headings:eo,includePlaceholder:es}){let eu=useConfig(),{menu:ec,setMenu:ed}=useMenu(),eh=(0,eE.useRouter)(),[ep,ef]=(0,eO.useState)(null),[em,eg]=(0,eO.useState)(!0),[ex,ev]=(0,eO.useState)(!1),ey=(0,eO.useMemo)(()=>eo.filter(ee=>2===ee.depth),[eo]),eb=(0,eO.useRef)(null),e_=(0,eO.useRef)(null),ew=useMounted();(0,eO.useEffect)(()=>{ec?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[ec]),(0,eO.useEffect)(()=>{var ee;let en=null==(ee=eb.current)?void 0:ee.querySelector("li.active");if(en&&(window.innerWidth>767||ec)){let scroll=()=>{dist_e(en,{block:"center",inline:"center",scrollMode:"always",boundary:e_.current})};ec?setTimeout(scroll,300):scroll()}},[ec]),(0,eO.useEffect)(()=>{ed(!1)},[eh.asPath,ed]);let ek=eu.i18n.length>0,eT=eu.darkMode||ek||eu.sidebar.toggleButton;return(0,eC.jsxs)(eC.Fragment,{children:[es&&ei?(0,eC.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,eC.jsx)("div",{className:dist_clsx("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",ec?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>ed(!1)}),(0,eC.jsxs)("aside",{className:dist_clsx("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",em?"md:nx-w-64":"md:nx-w-20",ei?"md:nx-hidden":"md:nx-sticky md:nx-self-start",ec?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:e_,children:[(0,eC.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:renderComponent(eu.search.component,{directories:en})}),(0,eC.jsx)(rj.Provider,{value:ep,children:(0,eC.jsx)(rR.Provider,{value:ee=>{ef(ee)},children:(0,eC.jsxs)("div",{className:dist_clsx("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",em?"nextra-scrollbar":"no-scrollbar"),ref:eb,children:[(!ei||!em)&&(0,eC.jsx)(Collapse,{isOpen:em,horizontal:!0,children:(0,eC.jsx)(Menu2,{className:"nextra-menu-desktop max-md:nx-hidden",directories:ee,anchors:eu.toc.float?[]:ey,onlyCurrentDocs:!0})}),ew&&window.innerWidth<768&&(0,eC.jsx)(Menu2,{className:"nextra-menu-mobile md:nx-hidden",directories:er,anchors:ey})]})})}),eT&&(0,eC.jsxs)("div",{className:dist_clsx("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",em?dist_clsx(ek&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":ex?em?"show":"hide":"off",children:[(0,eC.jsx)(LocaleSwitch,{lite:!em,className:dist_clsx(em?"nx-grow":"max-md:nx-grow")}),eu.darkMode&&(0,eC.jsx)("div",{className:em&&!ek?"nx-grow nx-flex nx-flex-col":"",children:renderComponent(eu.themeSwitch.component,{lite:!em||ek})}),eu.sidebar.toggleButton&&(0,eC.jsx)("button",{title:em?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{eg(!em),ev(!0)},children:(0,eC.jsx)(eI.Qq,{isOpen:em})})]})]})]})}var rL="reach-skip-nav",rZ="Skip to content";(0,eO.forwardRef)(function(ee,en){var er=ee,{className:ei,id:eo,label:es=rZ,styled:eu}=er,ec=__objRest(er,["className","id","label","styled"]);let ed=void 0===ei?eu?dist_clsx("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":ei;return(0,eC.jsx)("a",__spreadProps(__spreadValues({},ec),{ref:en,href:`#${eo||rL}`,className:ed,"data-reach-skip-link":"",children:es}))}).displayName="SkipNavLink";var rF=(0,eO.forwardRef)(function(ee,en){var er=ee,{id:ei}=er,eo=__objRest(er,["id"]);return(0,eC.jsx)("div",__spreadProps(__spreadValues({},eo),{ref:en,id:ei||rL}))});rF.displayName="SkipNavContent";var rD=t_.strictObject({light:t_.string(),dark:t_.string(),system:t_.string()});function ThemeSwitch({lite:ee,className:en}){let{setTheme:er,resolvedTheme:ei,theme:eo=""}=(0,tE.F)(),es=useMounted(),eu=useConfig().themeSwitch,ec=es&&"dark"===ei?eI.kL:eI.NW,ed="function"==typeof eu.useOptions?eu.useOptions():eu.useOptions;return(0,eC.jsx)(Select,{className:en,title:"Change theme",options:[{key:"light",name:ed.light},{key:"dark",name:ed.dark},{key:"system",name:ed.system}],onChange:ee=>{er(ee.key)},selected:{key:eo,name:(0,eC.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,eC.jsx)(ec,{}),(0,eC.jsx)("span",{className:ee?"md:nx-hidden":"",children:es?ed[eo]:ed.light})]})}})}function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}function BackToTop({className:ee}){let en=(0,eO.useRef)(null);return(0,eO.useEffect)(()=>{function toggleVisible(){var ee;let{scrollTop:er}=document.documentElement;null==(ee=en.current)||ee.classList.toggle("nx-opacity-0",er<300)}return window.addEventListener("scroll",toggleVisible),()=>{window.removeEventListener("scroll",toggleVisible)}},[]),(0,eC.jsxs)("button",{ref:en,"aria-hidden":"true",onClick:scrollToTop,className:dist_clsx("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",ee),children:["Scroll to top",(0,eC.jsx)(eI.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var rU=dist_clsx("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function TOC({headings:ee,filePath:en}){var er;let ei=useActiveAnchor(),eo=useConfig(),es=(0,eO.useRef)(null),eu=(0,eO.useMemo)(()=>ee.filter(ee=>ee.depth>1),[ee]),ec=eu.length>0,ed=!!(eo.feedback.content||eo.editLink.component||eo.toc.extraContent),eh=null==(er=Object.entries(ei).find(([,{isActive:ee}])=>ee))?void 0:er[0];return(0,eO.useEffect)(()=>{var ee;if(!eh)return;let en=null==(ee=es.current)?void 0:ee.querySelector(`li > a[href="#${eh}"]`);en&&dist_e(en,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:es.current})},[eh]),(0,eC.jsxs)("div",{ref:es,className:dist_clsx("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[ec&&(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:renderComponent(eo.toc.title)}),(0,eC.jsx)("ul",{children:eu.map(({id:ee,value:en,depth:er})=>{var es,eu,ec,ed;return(0,eC.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,eC.jsx)("a",{href:`#${ee}`,className:dist_clsx({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[er],"nx-inline-block",(null==(es=ei[ee])?void 0:es.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(ed=null==(ec=(eu=eo.toc).headingComponent)?void 0:ec.call(eu,{id:ee,children:en}))?ed:en})},ee)})})]}),ed&&(0,eC.jsxs)("div",{className:dist_clsx(ec&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[eo.feedback.content?(0,eC.jsx)(rw,{className:rU,href:eo.feedback.useLink(),newWindow:!0,children:renderComponent(eo.feedback.content)}):null,renderComponent(eo.editLink.component,{filePath:en,className:rU,children:renderComponent(eo.editLink.text)}),renderComponent(eo.toc.extraContent),eo.toc.backToTop&&(0,eC.jsx)(BackToTop,{className:rU})]})]})}function MatchSorterSearch({className:ee,directories:en}){let[er,ei]=(0,eO.useState)(""),eo=(0,eO.useMemo)(()=>er?matchSorter(en,er,{keys:["title"]}).map(({route:ee,title:en})=>({id:ee+en,route:ee,children:(0,eC.jsx)(rk,{value:en,match:er})})):[],[er,en]);return(0,eC.jsx)(Search,{value:er,onChange:ei,className:ee,overlayClassName:"nx-w-full",results:eo})}var rV="en-US",rz="undefined"!=typeof window;function isReactNode(ee){return null==ee||"string"==typeof ee||isFunction(ee)||(0,eO.isValidElement)(ee)}function isFunction(ee){return"function"==typeof ee}var rB=t_.array(t_.strictObject({direction:t_.enum(["ltr","rtl"]).optional(),locale:t_.string(),text:t_.string()})),rW=[isReactNode,{message:"Must be React.ReactNode or React.FC"}],rH=[isFunction,{message:"Must be React.FC"}];t_.strictObject({banner:t_.strictObject({dismissible:t_.boolean(),key:t_.string(),text:t_.custom(...rW).optional()}),chat:t_.strictObject({icon:t_.custom(...rW),link:t_.string().startsWith("https://").optional()}),components:t_.record(t_.custom(...rH)).optional(),darkMode:t_.boolean(),direction:t_.enum(["ltr","rtl"]),docsRepositoryBase:t_.string().startsWith("https://"),editLink:t_.strictObject({component:t_.custom(...rH),text:t_.custom(...rW)}),faviconGlyph:t_.string().optional(),feedback:t_.strictObject({content:t_.custom(...rW),labels:t_.string(),useLink:t_.function().returns(t_.string())}),footer:t_.strictObject({component:t_.custom(...rW),text:t_.custom(...rW)}),gitTimestamp:t_.custom(...rW),head:t_.custom(...rW),i18n:rB,logo:t_.custom(...rW),logoLink:t_.boolean().or(t_.string()),main:t_.custom(...rH).optional(),navbar:t_.strictObject({component:t_.custom(...rW),extraContent:t_.custom(...rW).optional()}),navigation:t_.boolean().or(t_.strictObject({next:t_.boolean(),prev:t_.boolean()})),nextThemes:t_.strictObject({defaultTheme:t_.string(),forcedTheme:t_.string().optional(),storageKey:t_.string()}),notFound:t_.strictObject({content:t_.custom(...rW),labels:t_.string()}),primaryHue:t_.number().or(t_.strictObject({dark:t_.number(),light:t_.number()})),primarySaturation:t_.number().or(t_.strictObject({dark:t_.number(),light:t_.number()})),project:t_.strictObject({icon:t_.custom(...rW),link:t_.string().startsWith("https://").optional()}),search:t_.strictObject({component:t_.custom(...rW),emptyResult:t_.custom(...rW),error:t_.string().or(t_.function().returns(t_.string())),loading:t_.custom(...rW),placeholder:t_.string().or(t_.function().returns(t_.string()))}),serverSideError:t_.strictObject({content:t_.custom(...rW),labels:t_.string()}),sidebar:t_.strictObject({autoCollapse:t_.boolean().optional(),defaultMenuCollapseLevel:t_.number().min(1).int(),titleComponent:t_.custom(...rW),toggleButton:t_.boolean()}),themeSwitch:t_.strictObject({component:t_.custom(...rW),useOptions:rD.or(t_.function().returns(rD))}),toc:t_.strictObject({backToTop:t_.boolean(),component:t_.custom(...rW),extraContent:t_.custom(...rW),float:t_.boolean(),headingComponent:t_.custom(...rH).optional(),title:t_.custom(...rW)}),useNextSeoProps:t_.custom(isFunction)}).deepPartial().extend({i18n:rB.optional()});var rq={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},r$={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},rQ={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)(eI.D7,{}),(0,eC.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:ee,filePath:en,children:er}){let ei=useGitEditUrl(en);return ei?(0,eC.jsx)(rw,{className:ee,href:ei,children:er}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let ee=useConfig();return getGitIssueUrl({labels:ee.feedback.labels,repository:ee.docsRepositoryBase,title:`Feedback for \u201C${ee.title}\u201D`})}},footer:{component:Footer,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:ee}){let{locale:en=rV}=(0,eE.useRouter)();return(0,eC.jsxs)(eC.Fragment,{children:["Last updated on"," ",(0,eC.jsx)("time",{dateTime:ee.toISOString(),children:ee.toLocaleDateString(en,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,eC.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,eC.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,eC.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,eC.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,eC.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,eC.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,eC.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,eC.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:Navbar},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)(eI.fy,{}),(0,eC.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:ee,directories:en}){let er=useConfig();return er.flexsearch?(0,eC.jsx)(Flexsearch,{className:ee}):(0,eC.jsx)(MatchSorterSearch,{className:ee,directories:en})},emptyResult:(0,eC.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:ee,defaultLocale:en=rV}=(0,eE.useRouter)(),er=ee&&rq[ee]||rq[en];return(0,eC.jsxs)(eC.Fragment,{children:[er,"…"]})},placeholder:function(){let{locale:ee,defaultLocale:en=rV}=(0,eE.useRouter)(),er=ee&&r$[ee]||r$[en];return`${er}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:ee})=>(0,eC.jsx)(eC.Fragment,{children:ee}),toggleButton:!1},themeSwitch:{component:ThemeSwitch,useOptions(){let{locale:ee}=(0,eE.useRouter)();return"zh-CN"===ee?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:TOC,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},rG=Object.entries(rQ).map(([ee,en])=>{let er=en&&"object"==typeof en&&!Array.isArray(en)&&!(0,eO.isValidElement)(en);if(er)return ee}).filter(Boolean);if(rz){let ee;let addResizingClass=()=>{document.body.classList.add("resizing"),clearTimeout(ee),ee=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",addResizingClass)}function HeadingLink(ee){var en=ee,{tag:er,context:ei,children:eo,id:es,className:eu}=en,ec=__objRest(en,["tag","context","children","id","className"]);let ed=useSetActiveAnchor(),eh=useSlugs(),ep=useIntersectionObserver(),ef=(0,eO.useRef)(null);return(0,eO.useEffect)(()=>{if(!es)return;let ee=ef.current;if(ee)return eh.set(ee,[es,ei.index+=1]),null==ep||ep.observe(ee),()=>{null==ep||ep.disconnect(),eh.delete(ee),ed(ee=>{let en=__spreadValues({},ee);return delete en[es],en})}},[es,ei,eh,ep,ed]),(0,eC.jsxs)(er,__spreadProps(__spreadValues({className:"sr-only"===eu?"nx-sr-only":dist_clsx("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[er])},ec),{children:[eo,es&&(0,eC.jsx)("a",{href:`#${es}`,id:es,className:"subheading-anchor","aria-label":"Permalink for this section",ref:ef})]}))}var findSummary=ee=>{let en=null,er=[];return eO.Children.forEach(ee,(ee,ei)=>{var eo;if(ee&&ee.type===Summary){en||(en=ee);return}let es=ee;if(!en&&ee&&"object"==typeof ee&&ee.type!==Details&&"props"in ee&&ee.props){let er=findSummary(ee.props.children);en=er[0],es=(0,eO.cloneElement)(ee,__spreadProps(__spreadValues({},ee.props),{children:(null==(eo=er[1])?void 0:eo.length)?er[1]:void 0,key:ei}))}er.push(es)}),[en,er]},Details=ee=>{var en=ee,{children:er,open:ei}=en,eo=__objRest(en,["children","open"]);let[es,eu]=(0,eO.useState)(!!ei),[ec,ed]=findSummary(er),[eh,ep]=(0,eO.useState)(es);return(0,eO.useEffect)(()=>{if(es)ep(!0);else{let ee=setTimeout(()=>ep(es),500);return()=>clearTimeout(ee)}},[es]),(0,eC.jsxs)("details",__spreadProps(__spreadValues(__spreadProps(__spreadValues({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},eo),{open:eh}),es&&{"data-expanded":!0}),{children:[(0,eC.jsx)(rb,{value:eu,children:ec}),(0,eC.jsx)(Collapse,{isOpen:es,children:ed})]}))},Summary=ee=>{let en=useDetails();return(0,eC.jsx)("summary",__spreadProps(__spreadValues({className:dist_clsx("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},ee),{onClick:ee=>{ee.preventDefault(),en(ee=>!ee)}}))},rK=/https?:\/\//,Link=ee=>{var en=ee,{href:er="",className:ei}=en,eo=__objRest(en,["href","className"]);return(0,eC.jsx)(rw,__spreadValues({href:er,newWindow:rK.test(er),className:dist_clsx("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",ei)},eo))},A=ee=>{var en=ee,{href:er=""}=en,ei=__objRest(en,["href"]);return(0,eC.jsx)(rw,__spreadValues({href:er,newWindow:rK.test(er)},ei))},getComponents=({isRawLayout:ee,components:en})=>{if(ee)return{a:A};let er={index:0};return __spreadValues({h1:ee=>(0,eC.jsx)("h1",__spreadValues({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},ee)),h2:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h2",context:er},ee)),h3:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h3",context:er},ee)),h4:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h4",context:er},ee)),h5:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h5",context:er},ee)),h6:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h6",context:er},ee)),ul:ee=>(0,eC.jsx)("ul",__spreadValues({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),ol:ee=>(0,eC.jsx)("ol",__spreadValues({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),li:ee=>(0,eC.jsx)("li",__spreadValues({className:"nx-my-2"},ee)),blockquote:ee=>(0,eC.jsx)("blockquote",__spreadValues({className:dist_clsx("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},ee)),hr:ee=>(0,eC.jsx)("hr",__spreadValues({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},ee)),a:Link,table:ee=>(0,eC.jsx)(rr.iA,__spreadValues({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},ee)),p:ee=>(0,eC.jsx)("p",__spreadValues({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},ee)),tr:rr.Tr,th:rr.Th,td:rr.Td,details:Details,summary:Summary,pre:rr.SU,code:rr.EK},en)},rY={toc:dist_clsx("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:dist_clsx("nx-w-full nx-break-words")},Body=({themeContext:ee,breadcrumb:en,timestamp:er,navigation:ei,children:eo})=>{var es;let eu=useConfig(),ec=useMounted();if("raw"===ee.layout)return(0,eC.jsx)("div",{className:rY.main,children:eo});let ed=ee.timestamp&&eu.gitTimestamp&&er?new Date(er):null,eh=ec&&ed?(0,eC.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:renderComponent(eu.gitTimestamp,{timestamp:ed})}):(0,eC.jsx)("div",{className:"nx-mt-16"}),ep=(0,eC.jsxs)(eC.Fragment,{children:[eo,eh,ei]}),ef=(null==(es=eu.main)?void 0:es.call(eu,{children:ep}))||ep;return"full"===ee.layout?(0,eC.jsx)("article",{className:dist_clsx(rY.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:ef}):(0,eC.jsx)("article",{className:dist_clsx(rY.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===ee.typesetting&&"nextra-body-typesetting-article"),children:(0,eC.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[en,ef]})})},InnerLayout=({filePath:ee,pageMap:en,frontMatter:er,headings:ei,timestamp:eo,children:es})=>{let eu=useConfig(),{locale:ec=rV,defaultLocale:ed}=(0,eE.useRouter)(),eh=useFSRoute(),{activeType:ep,activeIndex:ef,activeThemeContext:em,activePath:eg,topLevelNavbarItems:ex,docsDirectories:ev,flatDirectories:ey,flatDocsDirectories:eb,directories:e_}=(0,eO.useMemo)(()=>normalizePages({list:en,locale:ec,defaultLocale:ed,route:eh}),[en,ec,ed,eh]),ew=__spreadValues(__spreadValues({},em),er),ek=!ew.sidebar||"raw"===ew.layout||"page"===ep,eT="page"!==ep&&ew.toc&&"default"===ew.layout?(0,eC.jsx)("nav",{className:dist_clsx(rY.toc,"nx-px-4"),"aria-label":"table of contents",children:renderComponent(eu.toc.component,{headings:eu.toc.float?ei:[],filePath:ee})}):"full"!==ew.layout&&"raw"!==ew.layout&&(0,eC.jsx)("nav",{className:rY.toc,"aria-label":"table of contents"}),eP=eu.i18n.find(ee=>ee.locale===ec),eI=eP?"rtl"===eP.direction:"rtl"===eu.direction,ej=eI?"rtl":"ltr";return(0,eC.jsxs)("div",{dir:ej,children:[(0,eC.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${ej}')`}}),(0,eC.jsx)(dist_Head,{}),(0,eC.jsx)(Banner,{}),ew.navbar&&renderComponent(eu.navbar.component,{flatDirectories:ey,items:ex}),(0,eC.jsx)("div",{className:dist_clsx("nx-mx-auto nx-flex","raw"!==ew.layout&&"nx-max-w-[90rem]"),children:(0,eC.jsxs)(ActiveAnchorProvider,{children:[(0,eC.jsx)(Sidebar,{docsDirectories:ev,flatDirectories:ey,fullDirectories:e_,headings:ei,asPopover:ek,includePlaceholder:"default"===ew.layout}),eT,(0,eC.jsx)(rF,{}),(0,eC.jsx)(Body,{themeContext:ew,breadcrumb:"page"!==ep&&ew.breadcrumb?(0,eC.jsx)(Breadcrumb,{activePath:eg}):null,timestamp:eo,navigation:"page"!==ep&&ew.pagination?(0,eC.jsx)(NavLinks,{flatDirectories:eb,currentIndex:ef}):null,children:(0,eC.jsx)(eS.Z,{components:getComponents({isRawLayout:"raw"===ew.layout,components:eu.components}),children:es})})]})}),ew.footer&&renderComponent(eu.footer.component,{menu:ek})]})};function Layout(ee){var en=ee,{children:er}=en,ei=__objRest(en,["children"]);return(0,eC.jsx)(ConfigProvider,{value:ei,children:(0,eC.jsx)(InnerLayout,__spreadProps(__spreadValues({},ei.pageOpts),{children:er}))})}let rX={logo:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsxs)("svg",{width:"24",height:"22",viewBox:"0 0 72 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eC.jsx)("path",{d:"M24.3551 53.1043L10.8159 29.6575C10.1275 28.4702 10.1275 27.0035 10.8159 25.8162L24.3551 2.36947C25.0436 1.18217 26.3107 0.443848 27.6876 0.443848H54.7661C56.143 0.443848 57.4101 1.17219 58.0985 2.36947L71.6378 25.8162L64.9829 29.6575L52.5511 8.13638H29.9125L18.5982 27.7419L31.03 49.263L24.3751 53.1043H24.3551Z",fill:"#9C6CFF"}),(0,eC.jsx)("path",{d:"M44.1545 65.8455H17.076C15.6992 65.8455 14.432 65.1171 13.7436 63.9198L0.204346 40.4731L6.85923 36.6318L19.291 58.1529H41.9296L53.2439 38.5475L40.8121 17.0263L47.467 13.1851L61.0063 36.6318C61.6947 37.8191 61.6947 39.2858 61.0063 40.4731L47.467 63.9198C46.7786 65.1071 45.5115 65.8455 44.1346 65.8455H44.1545Z",fill:"#05D2DD"})]}),(0,eC.jsx)("span",{style:{marginLeft:".4em",fontWeight:800},children:"Cosmostation"})]}),project:{link:"https://github.com/cosmostation"},docsRepositoryBase:"https://github.com/cosmostation/cosmostation-wallet-docs",useNextSeoProps:()=>({titleTemplate:"%s – Cosmostation Docs"})};var rJ=rX;er(9128);var r0=er(5425);let MDXLayout=function(ee){let{Component:en,pageProps:er}=ee;return(0,eC.jsx)(r0.a_,{children:(0,eC.jsx)(en,{...er})})},r1=[];function _createMdxContent(ee){return(0,eC.jsx)(eC.Fragment,{})}var _app=function(){let ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eC.jsx)(MDXLayout,{...ee,children:(0,eC.jsx)(_createMdxContent,{...ee})})};let r2=(ew=globalThis)[ek=Symbol.for("__nextra_internal__")]||(ew[ek]=Object.create(null));r2.Layout=Layout,r2.pageMap=[{kind:"Meta",data:{index:{title:"Cosmostation",display:"hidden",type:"page"},mintscan:{type:"page",title:"Mintscan"},apis:{type:"page",title:"API"},extension:{type:"page",title:"Extension Wallet"},mobile:{type:"page",title:"Mobile Wallets"},mintstation:{type:"page",title:"Mintstation"}}},{kind:"Folder",name:"apis",route:"/apis",children:[{kind:"Meta",data:{index:"Introduction",reference:"API Reference"}},{kind:"MdxPage",name:"index",route:"/apis"},{kind:"Folder",name:"reference",route:"/apis/reference",children:[{kind:"Meta",data:{proxy:"Proxy",utilities:"Utility API",historical:"Historical API",builder:"Builder API",statistics:"Statistics API",custom:"Custom API"}},{kind:"Folder",name:"builder",route:"/apis/reference/builder",children:[{kind:"Meta",data:{"tx-builder":"Transaction Builder"}},{kind:"Folder",name:"tx-builder",route:"/apis/reference/builder/tx-builder",children:[{kind:"Meta",data:{build:"Build Transaction","make-signature":"Sign Transaction",broadcast:"Broadcast Transaction"}},{kind:"MdxPage",name:"broadcast",route:"/apis/reference/builder/tx-builder/broadcast"},{kind:"MdxPage",name:"build",route:"/apis/reference/builder/tx-builder/build"},{kind:"MdxPage",name:"make-signature",route:"/apis/reference/builder/tx-builder/make-signature"}]}]},{kind:"Folder",name:"custom",route:"/apis/reference/custom",children:[{kind:"Meta",data:{account:"Account"}},{kind:"MdxPage",name:"account",route:"/apis/reference/custom/account"}]},{kind:"Folder",name:"historical",route:"/apis/reference/historical",children:[{kind:"Meta",data:{account:"Account",validator:"Validator"}},{kind:"Folder",name:"account",route:"/apis/reference/historical/account",children:[{kind:"Meta",data:{"account-transactions":"Account Transactions","account-votes":"Account Votes","account-balances":"Account Balance History","account-richlist":"Account Richlist"}},{kind:"MdxPage",name:"account-balances",route:"/apis/reference/historical/account/account-balances"},{kind:"MdxPage",name:"account-richlist",route:"/apis/reference/historical/account/account-richlist"},{kind:"MdxPage",name:"account-transactions",route:"/apis/reference/historical/account/account-transactions"},{kind:"MdxPage",name:"account-votes",route:"/apis/reference/historical/account/account-votes"}]},{kind:"Folder",name:"validator",route:"/apis/reference/historical/validator",children:[{kind:"Meta",data:{"validator-votes":"Validator Votes","validator-commissions":"Validator Commission Balance History","validator-delegators":"Validator Delegators","validator-block-sign":"Validator Block Sign","validator-power-events":"Validator Voting Power Events","validator-proposed-blocks":"Validator Proposed Blocks"}},{kind:"MdxPage",name:"validator-block-sign",route:"/apis/reference/historical/validator/validator-block-sign"},{kind:"MdxPage",name:"validator-commissions",route:"/apis/reference/historical/validator/validator-commissions"},{kind:"MdxPage",name:"validator-delegators",route:"/apis/reference/historical/validator/validator-delegators"},{kind:"MdxPage",name:"validator-power-events",route:"/apis/reference/historical/validator/validator-power-events"},{kind:"MdxPage",name:"validator-proposed-blocks",route:"/apis/reference/historical/validator/validator-proposed-blocks"},{kind:"MdxPage",name:"validator-votes",route:"/apis/reference/historical/validator/validator-votes"}]}]},{kind:"Folder",name:"proxy",route:"/apis/reference/proxy",children:[{kind:"Meta",data:{lcd:"LCD Proxy"}},{kind:"MdxPage",name:"lcd",route:"/apis/reference/proxy/lcd"}]},{kind:"Folder",name:"statistics",route:"/apis/reference/statistics",children:[{kind:"Meta",data:{transactions:"Transactions",messages:"Message Types"}},{kind:"MdxPage",name:"messages",route:"/apis/reference/statistics/messages"},{kind:"MdxPage",name:"transactions",route:"/apis/reference/statistics/transactions"}]},{kind:"Folder",name:"utilities",route:"/apis/reference/utilities",children:[{kind:"Meta",data:{"node-info":"Node Info",inflation:"Inflation","staking-apr":"Staking APR",assets:"Assets",prices:"Prices"}},{kind:"MdxPage",name:"assets",route:"/apis/reference/utilities/assets"},{kind:"MdxPage",name:"inflation",route:"/apis/reference/utilities/inflation"},{kind:"MdxPage",name:"node-info",route:"/apis/reference/utilities/node-info"},{kind:"MdxPage",name:"prices",route:"/apis/reference/utilities/prices"},{kind:"MdxPage",name:"staking-apr",route:"/apis/reference/utilities/staking-apr"}]}]}]},{kind:"Folder",name:"extension",route:"/extension",children:[{kind:"Meta",data:{index:"Introduction",integration:"Integration",guide:"User guide"}},{kind:"Folder",name:"guide",route:"/extension/guide",children:[{kind:"Meta",data:{account:"Account","transfer-coins":"Transfer Coins",chains:"Chains",dapps:"Dapps",settings:"Settings"}},{kind:"Folder",name:"account",route:"/extension/guide/account",children:[{kind:"Meta",data:{intro:"Introduction","add-account":"Add Account","add-ledger-account":"Add Ledger Account"}},{kind:"MdxPage",name:"add-account",route:"/extension/guide/account/add-account"},{kind:"MdxPage",name:"add-ledger-account",route:"/extension/guide/account/add-ledger-account"},{kind:"MdxPage",name:"intro",route:"/extension/guide/account/intro"}]},{kind:"MdxPage",name:"chains",route:"/extension/guide/chains"},{kind:"MdxPage",name:"dapps",route:"/extension/guide/dapps"},{kind:"MdxPage",name:"settings",route:"/extension/guide/settings"},{kind:"MdxPage",name:"transfer-coins",route:"/extension/guide/transfer-coins"}]},{kind:"MdxPage",name:"index",route:"/extension"},{kind:"Folder",name:"integration",route:"/extension/integration",children:[{kind:"Meta",data:{cosmos:"Cosmos Chains",evm:"EVM Network",aptos:"APTOS Network",sui:"SUI Network"}},{kind:"Folder",name:"aptos",route:"/extension/integration/aptos",children:[{kind:"Meta",data:{provider:"Provider","connect-and-account":"Connect & Account","sign-and-submit-transaction":"Sign & Submit Transaction",network:"Network",event:"Event"}},{kind:"MdxPage",name:"connect-and-account",route:"/extension/integration/aptos/connect-and-account"},{kind:"MdxPage",name:"event",route:"/extension/integration/aptos/event"},{kind:"MdxPage",name:"network",route:"/extension/integration/aptos/network"},{kind:"MdxPage",name:"provider",route:"/extension/integration/aptos/provider"},{kind:"MdxPage",name:"sign-and-submit-transaction",route:"/extension/integration/aptos/sign-and-submit-transaction"}]},{kind:"Folder",name:"cosmos",route:"/extension/integration/cosmos",children:[{kind:"Folder",name:"Deprecated",route:"/extension/integration/cosmos/Deprecated",children:[{kind:"Meta",data:{provider:"Provider",chains:"Chains",accounts:"Accounts","sign-tx":"Sign Transaction","sign-message":"Sign Message","send-tx":"Send Transaction","cw20-token":"CW20 Tokens",disconnect:"Disconnect",event:"Event",error:"Error"}},{kind:"MdxPage",name:"accounts",route:"/extension/integration/cosmos/Deprecated/accounts"},{kind:"MdxPage",name:"chains",route:"/extension/integration/cosmos/Deprecated/chains"},{kind:"MdxPage",name:"cw20-token",route:"/extension/integration/cosmos/Deprecated/cw20-token"},{kind:"MdxPage",name:"disconnect",route:"/extension/integration/cosmos/Deprecated/disconnect"},{kind:"MdxPage",name:"error",route:"/extension/integration/cosmos/Deprecated/error",frontMatter:{sidebar_position:11}},{kind:"MdxPage",name:"event",route:"/extension/integration/cosmos/Deprecated/event",frontMatter:{sidebar_position:10}},{kind:"MdxPage",name:"provider",route:"/extension/integration/cosmos/Deprecated/provider"},{kind:"MdxPage",name:"send-tx",route:"/extension/integration/cosmos/Deprecated/send-tx"},{kind:"MdxPage",name:"sign-message",route:"/extension/integration/cosmos/Deprecated/sign-message"},{kind:"MdxPage",name:"sign-tx",route:"/extension/integration/cosmos/Deprecated/sign-tx"}]},{kind:"Meta",data:{vanilla:"Vanilla",typescript:"Typescript","react-hook":"React Hook",wallet:"Wallet",proto:"Protobuf json","integrate-cosmjs":"Integrate Cosmjs","integrate-keplr":"Integrate Keplr"}},{kind:"MdxPage",name:"integrate-cosmjs",route:"/extension/integration/cosmos/integrate-cosmjs"},{kind:"MdxPage",name:"integrate-keplr",route:"/extension/integration/cosmos/integrate-keplr",frontMatter:{sidebar_position:13}},{kind:"MdxPage",name:"proto",route:"/extension/integration/cosmos/proto"},{kind:"MdxPage",name:"react-hook",route:"/extension/integration/cosmos/react-hook"},{kind:"MdxPage",name:"typescript",route:"/extension/integration/cosmos/typescript"},{kind:"MdxPage",name:"vanilla",route:"/extension/integration/cosmos/vanilla"},{kind:"MdxPage",name:"wallet",route:"/extension/integration/cosmos/wallet"}]},{kind:"Folder",name:"evm",route:"/extension/integration/evm",children:[{kind:"Meta",data:{provider:"Provider","use-web3-js":"Use web3.js","use-ethers":"Use ethers",event:"Event","supported-rpc-methods":"Supported RPC Methods"}},{kind:"MdxPage",name:"event",route:"/extension/integration/evm/event"},{kind:"MdxPage",name:"provider",route:"/extension/integration/evm/provider"},{kind:"MdxPage",name:"supported-rpc-methods",route:"/extension/integration/evm/supported-rpc-methods"},{kind:"MdxPage",name:"use-ethers",route:"/extension/integration/evm/use-ethers"},{kind:"MdxPage",name:"use-web3-js",route:"/extension/integration/evm/use-web3-js"}]},{kind:"Folder",name:"sui",route:"/extension/integration/sui",children:[{kind:"Meta",data:{provider:"Provider","connect-and-get-accounts":"Connect & Get Accounts","sign-and-execute-transaction":"Sign & Execute Transaction","execute-move-call":"Execute Move Call"}},{kind:"MdxPage",name:"connect-and-get-accounts",route:"/extension/integration/sui/connect-and-get-accounts"},{kind:"MdxPage",name:"execute-move-call",route:"/extension/integration/sui/execute-move-call"},{kind:"MdxPage",name:"provider",route:"/extension/integration/sui/provider"},{kind:"MdxPage",name:"sign-and-execute-transaction",route:"/extension/integration/sui/sign-and-execute-transaction"}]}]}]},{kind:"MdxPage",name:"index",route:"/"},{kind:"Folder",name:"mintscan",route:"/mintscan",children:[{kind:"Meta",data:{index:"Introduction",registry:"Registry"}},{kind:"MdxPage",name:"index",route:"/mintscan"},{kind:"Folder",name:"registry",route:"/mintscan/registry",children:[{kind:"Meta",data:{moniker:"Validator moniker",assets:"Asset Metadata",erc20:"ERC20 Metadata",cw20:"CW20 Metadata",ecosystem:"Ecosystem"}},{kind:"MdxPage",name:"assets",route:"/mintscan/registry/assets"},{kind:"MdxPage",name:"cw20",route:"/mintscan/registry/cw20"},{kind:"MdxPage",name:"ecosystem",route:"/mintscan/registry/ecosystem"},{kind:"MdxPage",name:"erc20",route:"/mintscan/registry/erc20"},{kind:"MdxPage",name:"moniker",route:"/mintscan/registry/moniker"}]}]},{kind:"Folder",name:"mintstation",route:"/mintstation",children:[{kind:"Meta",data:{index:"Introduction",cli:"CLI",validator:"Node & Validator",module:"Custom Module",contracts:"Smart Contracts"}},{kind:"Folder",name:"cli",route:"/mintstation/cli",children:[{kind:"Meta",data:{index:"Introduction",setup:"Setup CLI",command:"Useful CLI Commands"}},{kind:"MdxPage",name:"command",route:"/mintstation/cli/command",frontMatter:{cover:"../.gitbook/assets/Discord Invite (1) (50).png",coverY:262}},{kind:"MdxPage",name:"index",route:"/mintstation/cli"},{kind:"MdxPage",name:"setup",route:"/mintstation/cli/setup"}]},{kind:"Folder",name:"contracts",route:"/mintstation/contracts",children:[{kind:"Meta",data:{create:"Create Contract",compile:"Compile Contract",deploy:"Store Code",query:"Query to Contract",execute:"Execute with Contract"}},{kind:"MdxPage",name:"compile",route:"/mintstation/contracts/compile"},{kind:"MdxPage",name:"create",route:"/mintstation/contracts/create"},{kind:"MdxPage",name:"deploy",route:"/mintstation/contracts/deploy"},{kind:"MdxPage",name:"execute",route:"/mintstation/contracts/execute"},{kind:"MdxPage",name:"query",route:"/mintstation/contracts/query"}]},{kind:"MdxPage",name:"index",route:"/mintstation"},{kind:"MdxPage",name:"module",route:"/mintstation/module"},{kind:"Folder",name:"validator",route:"/mintstation/validator",children:[{kind:"Meta",data:{localnet:"Setup Local network",mainnet:"Setup Fullnode",delegations:"Delegations",upgrade:"Node Upgrade",command:"Useful Commands"}},{kind:"MdxPage",name:"command",route:"/mintstation/validator/command"},{kind:"MdxPage",name:"delegations",route:"/mintstation/validator/delegations"},{kind:"MdxPage",name:"localnet",route:"/mintstation/validator/localnet"},{kind:"MdxPage",name:"mainnet",route:"/mintstation/validator/mainnet"},{kind:"MdxPage",name:"upgrade",route:"/mintstation/validator/upgrade"}]}]},{kind:"Folder",name:"mobile",route:"/mobile",children:[{kind:"Meta",data:{index:"Introduction",integration:"Integration",listing:"Listing on mobile",article:"Article"}},{kind:"MdxPage",name:"article",route:"/mobile/article"},{kind:"MdxPage",name:"index",route:"/mobile"},{kind:"Folder",name:"integration",route:"/mobile/integration",children:[{kind:"Meta",data:{cosmostation:"Cosmostation Specs",walletconnect2:"WalletConnect 2.0",cosmoskit:{title:"Cosmos-Kit ↗",href:"https://docs.cosmoskit.com/integrating-wallets/cosmostation",newWindow:!0},cosmjs:"Cosmjs",walletconnect:"WalletConnect 1.0(Deprecated)"}},{kind:"MdxPage",name:"cosmjs",route:"/mobile/integration/cosmjs"},{kind:"MdxPage",name:"cosmostation",route:"/mobile/integration/cosmostation"},{kind:"Folder",name:"walletconnect",route:"/mobile/integration/walletconnect",children:[{kind:"Meta",data:{connect:"Connect",accounts:"Accounts","sign-tx":"Sign Transaction"}},{kind:"MdxPage",name:"accounts",route:"/mobile/integration/walletconnect/accounts"},{kind:"MdxPage",name:"connect",route:"/mobile/integration/walletconnect/connect"},{kind:"MdxPage",name:"sign-tx",route:"/mobile/integration/walletconnect/sign-tx"}]},{kind:"MdxPage",name:"walletconnect2",route:"/mobile/integration/walletconnect2"}]},{kind:"MdxPage",name:"listing",route:"/mobile/listing"}]}],r2.flexsearch={codeblocks:!0},r2.themeConfig=rJ},7498:function(ee,en){"use strict";var er;Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{PrefetchKind:function(){return er},ACTION_REFRESH:function(){return ei},ACTION_NAVIGATE:function(){return eo},ACTION_RESTORE:function(){return es},ACTION_SERVER_PATCH:function(){return eu},ACTION_PREFETCH:function(){return ec},ACTION_FAST_REFRESH:function(){return ed},ACTION_SERVER_ACTION:function(){return eh}});let ei="refresh",eo="navigate",es="restore",eu="server-patch",ec="prefetch",ed="fast-refresh",eh="server-action";!function(ee){ee.AUTO="auto",ee.FULL="full",ee.TEMPORARY="temporary"}(er||(er={})),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},30:function(ee,en,er){"use strict";function getDomainLocale(ee,en,er,ei){return!1}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),er(2866),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},3271:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"Image",{enumerable:!0,get:function(){return ev}});let ei=er(8754),eo=er(1757),es=eo._(er(7294)),eu=ei._(er(3935)),ec=ei._(er(9201)),ed=er(3914),eh=er(5494),ep=er(869);er(1905);let ef=er(1823),em=ei._(er(4545)),eg={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function handleLoading(ee,en,er,ei,eo,es){let eu=null==ee?void 0:ee.src;if(!ee||ee["data-loaded-src"]===eu)return;ee["data-loaded-src"]=eu;let ec="decode"in ee?ee.decode():Promise.resolve();ec.catch(()=>{}).then(()=>{if(ee.parentElement&&ee.isConnected){if("empty"!==en&&eo(!0),null==er?void 0:er.current){let en=new Event("load");Object.defineProperty(en,"target",{writable:!1,value:ee});let ei=!1,eo=!1;er.current({...en,nativeEvent:en,currentTarget:ee,target:ee,isDefaultPrevented:()=>ei,isPropagationStopped:()=>eo,persist:()=>{},preventDefault:()=>{ei=!0,en.preventDefault()},stopPropagation:()=>{eo=!0,en.stopPropagation()}})}(null==ei?void 0:ei.current)&&ei.current(ee)}})}function getDynamicProps(ee){let[en,er]=es.version.split("."),ei=parseInt(en,10),eo=parseInt(er,10);return ei>18||18===ei&&eo>=3?{fetchPriority:ee}:{fetchpriority:ee}}let ex=(0,es.forwardRef)((ee,en)=>{let{src:er,srcSet:ei,sizes:eo,height:eu,width:ec,decoding:ed,className:eh,style:ep,fetchPriority:ef,placeholder:em,loading:eg,unoptimized:ex,fill:ev,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:e_,setShowAltText:ew,onLoad:ek,onError:eC,...eE}=ee;return es.default.createElement("img",{...eE,...getDynamicProps(ef),loading:eg,width:ec,height:eu,decoding:ed,"data-nimg":ev?"fill":"1",className:eh,style:ep,sizes:eo,srcSet:ei,src:er,ref:(0,es.useCallback)(ee=>{en&&("function"==typeof en?en(ee):"object"==typeof en&&(en.current=ee)),ee&&(eC&&(ee.src=ee.src),ee.complete&&handleLoading(ee,em,ey,eb,e_,ex))},[er,em,ey,eb,e_,eC,ex,en]),onLoad:ee=>{let en=ee.currentTarget;handleLoading(en,em,ey,eb,e_,ex)},onError:ee=>{ew(!0),"empty"!==em&&e_(!0),eC&&eC(ee)}})});function ImagePreload(ee){let{isAppRouter:en,imgAttributes:er}=ee,ei={as:"image",imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:er.crossOrigin,referrerPolicy:er.referrerPolicy,...getDynamicProps(er.fetchPriority)};return en&&eu.default.preload?(eu.default.preload(er.src,ei),null):es.default.createElement(ec.default,null,es.default.createElement("link",{key:"__nimg-"+er.src+er.srcSet+er.sizes,rel:"preload",href:er.srcSet?void 0:er.src,...ei}))}let ev=(0,es.forwardRef)((ee,en)=>{let er=(0,es.useContext)(ef.RouterContext),ei=!er,eo=(0,es.useContext)(ep.ImageConfigContext),eu=(0,es.useMemo)(()=>{let ee=eg||eo||eh.imageConfigDefault,en=[...ee.deviceSizes,...ee.imageSizes].sort((ee,en)=>ee-en),er=ee.deviceSizes.sort((ee,en)=>ee-en);return{...ee,allSizes:en,deviceSizes:er}},[eo]),{onLoad:ec,onLoadingComplete:ev}=ee,ey=(0,es.useRef)(ec);(0,es.useEffect)(()=>{ey.current=ec},[ec]);let eb=(0,es.useRef)(ev);(0,es.useEffect)(()=>{eb.current=ev},[ev]);let[e_,ew]=(0,es.useState)(!1),[ek,eC]=(0,es.useState)(!1),{props:eE,meta:eO}=(0,ed.getImgProps)(ee,{defaultLoader:em.default,imgConf:eu,blurComplete:e_,showAltText:ek});return es.default.createElement(es.default.Fragment,null,es.default.createElement(ex,{...eE,unoptimized:eO.unoptimized,placeholder:eO.placeholder,fill:eO.fill,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:ew,setShowAltText:eC,ref:en}),eO.priority?es.default.createElement(ImagePreload,{isAppRouter:ei,imgAttributes:eE}):null)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5170:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return e_}});let ei=er(8754),eo=ei._(er(7294)),es=er(4450),eu=er(2227),ec=er(4364),ed=er(109),eh=er(3607),ep=er(1823),ef=er(9031),em=er(920),eg=er(30),ex=er(7192),ev=er(7498),ey=new Set;function prefetch(ee,en,er,ei,eo,es){if(!es&&!(0,eu.isLocalURL)(en))return;if(!ei.bypassPrefetchedCheck){let eo=void 0!==ei.locale?ei.locale:"locale"in ee?ee.locale:void 0,es=en+"%"+er+"%"+eo;if(ey.has(es))return;ey.add(es)}let ec=es?ee.prefetch(en,eo):ee.prefetch(en,er,ei);Promise.resolve(ec).catch(ee=>{})}function isModifiedEvent(ee){let en=ee.currentTarget,er=en.getAttribute("target");return er&&"_self"!==er||ee.metaKey||ee.ctrlKey||ee.shiftKey||ee.altKey||ee.nativeEvent&&2===ee.nativeEvent.which}function linkClicked(ee,en,er,ei,es,ec,ed,eh,ep,ef){let{nodeName:em}=ee.currentTarget,eg="A"===em.toUpperCase();if(eg&&(isModifiedEvent(ee)||!ep&&!(0,eu.isLocalURL)(er)))return;ee.preventDefault();let navigate=()=>{let ee=null==ed||ed;"beforePopState"in en?en[es?"replace":"push"](er,ei,{shallow:ec,locale:eh,scroll:ee}):en[es?"replace":"push"](ei||er,{forceOptimisticNavigation:!ef,scroll:ee})};ep?eo.default.startTransition(navigate):navigate()}function formatStringOrUrl(ee){return"string"==typeof ee?ee:(0,ec.formatUrl)(ee)}let eb=eo.default.forwardRef(function(ee,en){let er,ei;let{href:eu,as:ec,children:ey,prefetch:eb=null,passHref:e_,replace:ew,shallow:ek,scroll:eC,locale:eE,onClick:eO,onMouseEnter:eT,onTouchStart:eP,legacyBehavior:eS=!1,...eI}=ee;er=ey,eS&&("string"==typeof er||"number"==typeof er)&&(er=eo.default.createElement("a",null,er));let ej=eo.default.useContext(ep.RouterContext),eR=eo.default.useContext(ef.AppRouterContext),eM=null!=ej?ej:eR,eN=!ej,eA=!1!==eb,eL=null===eb?ev.PrefetchKind.AUTO:ev.PrefetchKind.FULL,{href:eZ,as:eF}=eo.default.useMemo(()=>{if(!ej){let ee=formatStringOrUrl(eu);return{href:ee,as:ec?formatStringOrUrl(ec):ee}}let[ee,en]=(0,es.resolveHref)(ej,eu,!0);return{href:ee,as:ec?(0,es.resolveHref)(ej,ec):en||ee}},[ej,eu,ec]),eD=eo.default.useRef(eZ),eU=eo.default.useRef(eF);eS&&(ei=eo.default.Children.only(er));let eV=eS?ei&&"object"==typeof ei&&ei.ref:en,[ez,eB,eW]=(0,em.useIntersection)({rootMargin:"200px"}),eH=eo.default.useCallback(ee=>{(eU.current!==eF||eD.current!==eZ)&&(eW(),eU.current=eF,eD.current=eZ),ez(ee),eV&&("function"==typeof eV?eV(ee):"object"==typeof eV&&(eV.current=ee))},[eF,eV,eZ,eW,ez]);eo.default.useEffect(()=>{eM&&eB&&eA&&prefetch(eM,eZ,eF,{locale:eE},{kind:eL},eN)},[eF,eZ,eB,eE,eA,null==ej?void 0:ej.locale,eM,eN,eL]);let eq={ref:eH,onClick(ee){eS||"function"!=typeof eO||eO(ee),eS&&ei.props&&"function"==typeof ei.props.onClick&&ei.props.onClick(ee),eM&&!ee.defaultPrevented&&linkClicked(ee,eM,eZ,eF,ew,ek,eC,eE,eN,eA)},onMouseEnter(ee){eS||"function"!=typeof eT||eT(ee),eS&&ei.props&&"function"==typeof ei.props.onMouseEnter&&ei.props.onMouseEnter(ee),eM&&(eA||!eN)&&prefetch(eM,eZ,eF,{locale:eE,priority:!0,bypassPrefetchedCheck:!0},{kind:eL},eN)},onTouchStart(ee){eS||"function"!=typeof eP||eP(ee),eS&&ei.props&&"function"==typeof ei.props.onTouchStart&&ei.props.onTouchStart(ee),eM&&(eA||!eN)&&prefetch(eM,eZ,eF,{locale:eE,priority:!0,bypassPrefetchedCheck:!0},{kind:eL},eN)}};if((0,ed.isAbsoluteUrl)(eF))eq.href=eF;else if(!eS||e_||"a"===ei.type&&!("href"in ei.props)){let ee=void 0!==eE?eE:null==ej?void 0:ej.locale,en=(null==ej?void 0:ej.isLocaleDomain)&&(0,eg.getDomainLocale)(eF,ee,null==ej?void 0:ej.locales,null==ej?void 0:ej.domainLocales);eq.href=en||(0,ex.addBasePath)((0,eh.addLocale)(eF,ee,null==ej?void 0:ej.defaultLocale))}return eS?eo.default.cloneElement(ei,eq):eo.default.createElement("a",{...eI,...eq},er)}),e_=eb;("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},920:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let ei=er(7294),eo=er(3436),es="function"==typeof IntersectionObserver,eu=new Map,ec=[];function createObserver(ee){let en;let er={root:ee.root||null,margin:ee.rootMargin||""},ei=ec.find(ee=>ee.root===er.root&&ee.margin===er.margin);if(ei&&(en=eu.get(ei)))return en;let eo=new Map,es=new IntersectionObserver(ee=>{ee.forEach(ee=>{let en=eo.get(ee.target),er=ee.isIntersecting||ee.intersectionRatio>0;en&&er&&en(er)})},ee);return en={id:er,observer:es,elements:eo},ec.push(er),eu.set(er,en),en}function observe(ee,en,er){let{id:ei,observer:eo,elements:es}=createObserver(er);return es.set(ee,en),eo.observe(ee),function(){if(es.delete(ee),eo.unobserve(ee),0===es.size){eo.disconnect(),eu.delete(ei);let ee=ec.findIndex(ee=>ee.root===ei.root&&ee.margin===ei.margin);ee>-1&&ec.splice(ee,1)}}}function useIntersection(ee){let{rootRef:en,rootMargin:er,disabled:eu}=ee,ec=eu||!es,[ed,eh]=(0,ei.useState)(!1),ep=(0,ei.useRef)(null),ef=(0,ei.useCallback)(ee=>{ep.current=ee},[]);(0,ei.useEffect)(()=>{if(es){if(ec||ed)return;let ee=ep.current;if(ee&&ee.tagName){let ei=observe(ee,ee=>ee&&eh(ee),{root:null==en?void 0:en.current,rootMargin:er});return ei}}else if(!ed){let ee=(0,eo.requestIdleCallback)(()=>eh(!0));return()=>(0,eo.cancelIdleCallback)(ee)}},[ec,er,en,ed,ep.current]);let em=(0,ei.useCallback)(()=>{eh(!1)},[]);return[ef,ed,em]}("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},3914:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),er(1905);let ei=er(2393),eo=er(5494);function isStaticRequire(ee){return void 0!==ee.default}function isStaticImageData(ee){return void 0!==ee.src}function isStaticImport(ee){return"object"==typeof ee&&(isStaticRequire(ee)||isStaticImageData(ee))}function getInt(ee){return void 0===ee?ee:"number"==typeof ee?Number.isFinite(ee)?ee:NaN:"string"==typeof ee&&/^[0-9]+$/.test(ee)?parseInt(ee,10):NaN}function getWidths(ee,en,er){let{deviceSizes:ei,allSizes:eo}=ee;if(er){let ee=/(^|\s)(1?\d?\d)vw/g,en=[];for(let ei;ei=ee.exec(er);ei)en.push(parseInt(ei[2]));if(en.length){let ee=.01*Math.min(...en);return{widths:eo.filter(en=>en>=ei[0]*ee),kind:"w"}}return{widths:eo,kind:"w"}}if("number"!=typeof en)return{widths:ei,kind:"w"};let es=[...new Set([en,2*en].map(ee=>eo.find(en=>en>=ee)||eo[eo.length-1]))];return{widths:es,kind:"x"}}function generateImgAttrs(ee){let{config:en,src:er,unoptimized:ei,width:eo,quality:es,sizes:eu,loader:ec}=ee;if(ei)return{src:er,srcSet:void 0,sizes:void 0};let{widths:ed,kind:eh}=getWidths(en,eo,eu),ep=ed.length-1;return{sizes:eu||"w"!==eh?eu:"100vw",srcSet:ed.map((ee,ei)=>ec({config:en,src:er,quality:es,width:ee})+" "+("w"===eh?ee:ei+1)+eh).join(", "),src:ec({config:en,src:er,quality:es,width:ed[ep]})}}function getImgProps(ee,en){let er,es,eu,{src:ec,sizes:ed,unoptimized:eh=!1,priority:ep=!1,loading:ef,className:em,quality:eg,width:ex,height:ev,fill:ey=!1,style:eb,onLoad:e_,onLoadingComplete:ew,placeholder:ek="empty",blurDataURL:eC,fetchPriority:eE,layout:eO,objectFit:eT,objectPosition:eP,lazyBoundary:eS,lazyRoot:eI,...ej}=ee,{imgConf:eR,showAltText:eM,blurComplete:eN,defaultLoader:eA}=en,eL=eR||eo.imageConfigDefault;if("allSizes"in eL)er=eL;else{let ee=[...eL.deviceSizes,...eL.imageSizes].sort((ee,en)=>ee-en),en=eL.deviceSizes.sort((ee,en)=>ee-en);er={...eL,allSizes:ee,deviceSizes:en}}let eZ=ej.loader||eA;delete ej.loader,delete ej.srcSet;let eF="__next_img_default"in eZ;if(eF){if("custom"===er.loader)throw Error('Image with src "'+ec+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let ee=eZ;eZ=en=>{let{config:er,...ei}=en;return ee(ei)}}if(eO){"fill"===eO&&(ey=!0);let ee={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},en={responsive:"100vw",fill:"100vw"},er=ee[eO];er&&(eb={...eb,...er});let ei=en[eO];ei&&!ed&&(ed=ei)}let eD="",eU=getInt(ex),eV=getInt(ev);if(isStaticImport(ec)){let ee=isStaticRequire(ec)?ec.default:ec;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(es=ee.blurWidth,eu=ee.blurHeight,eC=eC||ee.blurDataURL,eD=ee.src,!ey){if(eU||eV){if(eU&&!eV){let en=eU/ee.width;eV=Math.round(ee.height*en)}else if(!eU&&eV){let en=eV/ee.height;eU=Math.round(ee.width*en)}}else eU=ee.width,eV=ee.height}}let ez=!ep&&("lazy"===ef||void 0===ef);(!(ec="string"==typeof ec?ec:eD)||ec.startsWith("data:")||ec.startsWith("blob:"))&&(eh=!0,ez=!1),er.unoptimized&&(eh=!0),eF&&ec.endsWith(".svg")&&!er.dangerouslyAllowSVG&&(eh=!0),ep&&(eE="high");let eB=getInt(eg),eW=Object.assign(ey?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eT,objectPosition:eP}:{},eM?{}:{color:"transparent"},eb),eH=eN||"empty"===ek?null:"blur"===ek?'url("data:image/svg+xml;charset=utf-8,'+(0,ei.getImageBlurSvg)({widthInt:eU,heightInt:eV,blurWidth:es,blurHeight:eu,blurDataURL:eC||"",objectFit:eW.objectFit})+'")':'url("'+ek+'")',eq=eH?{backgroundSize:eW.objectFit||"cover",backgroundPosition:eW.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eH}:{},e$=generateImgAttrs({config:er,src:ec,unoptimized:eh,width:eU,quality:eB,sizes:ed,loader:eZ}),eQ={...ej,loading:ez?"lazy":ef,fetchPriority:eE,width:eU,height:eV,decoding:"async",className:em,style:{...eW,...eq},sizes:e$.sizes,srcSet:e$.srcSet,src:e$.src},eG={unoptimized:eh,priority:ep,placeholder:ek,fill:ey};return{props:eQ,meta:eG}}},2393:function(ee,en){"use strict";function getImageBlurSvg(ee){let{widthInt:en,heightInt:er,blurWidth:ei,blurHeight:eo,blurDataURL:es,objectFit:eu}=ee,ec=20,ed=ei?40*ei:en,eh=eo?40*eo:er,ep=ed&&eh?"viewBox='0 0 "+ed+" "+eh+"'":"",ef=ep?"none":"contain"===eu?"xMidYMid":"cover"===eu?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+ep+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+ef+"' style='filter: url(%23b);' href='"+es+"'/%3E%3C/svg%3E"}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},645:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return ed}});let ei=er(8754),eo=er(3914),es=er(1905),eu=er(3271),ec=ei._(er(4545)),unstable_getImgProps=ee=>{(0,es.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:en}=(0,eo.getImgProps)(ee,{defaultLoader:ec.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[ee,er]of Object.entries(en))void 0===er&&delete en[ee];return{props:en}},ed=eu.Image},4545:function(ee,en){"use strict";function defaultLoader(ee){let{config:en,src:er,width:ei,quality:eo}=ee;return en.path+"?url="+encodeURIComponent(er)+"&w="+ei+"&q="+(eo||75)}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return er}}),defaultLoader.__next_img_default=!0;let er=defaultLoader},9128:function(){},1864:function(ee){var en="/";!function(){"use strict";var er={114:function(ee){function assertPath(ee){if("string"!=typeof ee)throw TypeError("Path must be a string. Received "+JSON.stringify(ee))}function normalizeStringPosix(ee,en){for(var er,ei="",eo=0,es=-1,eu=0,ec=0;ec<=ee.length;++ec){if(ec2){var ed=ei.lastIndexOf("/");if(ed!==ei.length-1){-1===ed?(ei="",eo=0):eo=(ei=ei.slice(0,ed)).length-1-ei.lastIndexOf("/"),es=ec,eu=0;continue}}else if(2===ei.length||1===ei.length){ei="",eo=0,es=ec,eu=0;continue}}en&&(ei.length>0?ei+="/..":ei="..",eo=2)}else ei.length>0?ei+="/"+ee.slice(es+1,ec):ei=ee.slice(es+1,ec),eo=ec-es-1;es=ec,eu=0}else 46===er&&-1!==eu?++eu:eu=-1}return ei}function _format(ee,en){var er=en.dir||en.root,ei=en.base||(en.name||"")+(en.ext||"");return er?er===en.root?er+ei:er+ee+ei:ei}var en={resolve:function(){for(var ee,en,er="",ei=!1,eo=arguments.length-1;eo>=-1&&!ei;eo--)eo>=0?en=arguments[eo]:(void 0===ee&&(ee=""),en=ee),assertPath(en),0!==en.length&&(er=en+"/"+er,ei=47===en.charCodeAt(0));return(er=normalizeStringPosix(er,!ei),ei)?er.length>0?"/"+er:"/":er.length>0?er:"."},normalize:function(ee){if(assertPath(ee),0===ee.length)return".";var en=47===ee.charCodeAt(0),er=47===ee.charCodeAt(ee.length-1);return(0!==(ee=normalizeStringPosix(ee,!en)).length||en||(ee="."),ee.length>0&&er&&(ee+="/"),en)?"/"+ee:ee},isAbsolute:function(ee){return assertPath(ee),ee.length>0&&47===ee.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var ee,er=0;er0&&(void 0===ee?ee=ei:ee+="/"+ei)}return void 0===ee?".":en.normalize(ee)},relative:function(ee,er){if(assertPath(ee),assertPath(er),ee===er||(ee=en.resolve(ee))===(er=en.resolve(er)))return"";for(var ei=1;eied){if(47===er.charCodeAt(eu+ep))return er.slice(eu+ep+1);if(0===ep)return er.slice(eu+ep)}else es>ed&&(47===ee.charCodeAt(ei+ep)?eh=ep:0===ep&&(eh=0));break}var ef=ee.charCodeAt(ei+ep);if(ef!==er.charCodeAt(eu+ep))break;47===ef&&(eh=ep)}var em="";for(ep=ei+eh+1;ep<=eo;++ep)(ep===eo||47===ee.charCodeAt(ep))&&(0===em.length?em+="..":em+="/..");return em.length>0?em+er.slice(eu+eh):(eu+=eh,47===er.charCodeAt(eu)&&++eu,er.slice(eu))},_makeLong:function(ee){return ee},dirname:function(ee){if(assertPath(ee),0===ee.length)return".";for(var en=ee.charCodeAt(0),er=47===en,ei=-1,eo=!0,es=ee.length-1;es>=1;--es)if(47===(en=ee.charCodeAt(es))){if(!eo){ei=es;break}}else eo=!1;return -1===ei?er?"/":".":er&&1===ei?"//":ee.slice(0,ei)},basename:function(ee,en){if(void 0!==en&&"string"!=typeof en)throw TypeError('"ext" argument must be a string');assertPath(ee);var er,ei=0,eo=-1,es=!0;if(void 0!==en&&en.length>0&&en.length<=ee.length){if(en.length===ee.length&&en===ee)return"";var eu=en.length-1,ec=-1;for(er=ee.length-1;er>=0;--er){var ed=ee.charCodeAt(er);if(47===ed){if(!es){ei=er+1;break}}else -1===ec&&(es=!1,ec=er+1),eu>=0&&(ed===en.charCodeAt(eu)?-1==--eu&&(eo=er):(eu=-1,eo=ec))}return ei===eo?eo=ec:-1===eo&&(eo=ee.length),ee.slice(ei,eo)}for(er=ee.length-1;er>=0;--er)if(47===ee.charCodeAt(er)){if(!es){ei=er+1;break}}else -1===eo&&(es=!1,eo=er+1);return -1===eo?"":ee.slice(ei,eo)},extname:function(ee){assertPath(ee);for(var en=-1,er=0,ei=-1,eo=!0,es=0,eu=ee.length-1;eu>=0;--eu){var ec=ee.charCodeAt(eu);if(47===ec){if(!eo){er=eu+1;break}continue}-1===ei&&(eo=!1,ei=eu+1),46===ec?-1===en?en=eu:1!==es&&(es=1):-1!==en&&(es=-1)}return -1===en||-1===ei||0===es||1===es&&en===ei-1&&en===er+1?"":ee.slice(en,ei)},format:function(ee){if(null===ee||"object"!=typeof ee)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ee);return _format("/",ee)},parse:function(ee){assertPath(ee);var en,er={root:"",dir:"",base:"",ext:"",name:""};if(0===ee.length)return er;var ei=ee.charCodeAt(0),eo=47===ei;eo?(er.root="/",en=1):en=0;for(var es=-1,eu=0,ec=-1,ed=!0,eh=ee.length-1,ep=0;eh>=en;--eh){if(47===(ei=ee.charCodeAt(eh))){if(!ed){eu=eh+1;break}continue}-1===ec&&(ed=!1,ec=eh+1),46===ei?-1===es?es=eh:1!==ep&&(ep=1):-1!==es&&(ep=-1)}return -1===es||-1===ec||0===ep||1===ep&&es===ec-1&&es===eu+1?-1!==ec&&(0===eu&&eo?er.base=er.name=ee.slice(1,ec):er.base=er.name=ee.slice(eu,ec)):(0===eu&&eo?(er.name=ee.slice(1,es),er.base=ee.slice(1,ec)):(er.name=ee.slice(eu,es),er.base=ee.slice(eu,ec)),er.ext=ee.slice(es,ec)),eu>0?er.dir=ee.slice(0,eu-1):eo&&(er.dir="/"),er},sep:"/",delimiter:":",win32:null,posix:null};en.posix=en,ee.exports=en}},ei={};function __nccwpck_require__(ee){var en=ei[ee];if(void 0!==en)return en.exports;var eo=ei[ee]={exports:{}},es=!0;try{er[ee](eo,eo.exports,__nccwpck_require__),es=!1}finally{es&&delete ei[ee]}return eo.exports}__nccwpck_require__.ab=en+"/";var eo=__nccwpck_require__(114);ee.exports=eo}()},7663:function(ee){var en="/";!function(){var er={229:function(ee){var en,er,ei,eo=ee.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(ee){if(en===setTimeout)return setTimeout(ee,0);if((en===defaultSetTimout||!en)&&setTimeout)return en=setTimeout,setTimeout(ee,0);try{return en(ee,0)}catch(er){try{return en.call(null,ee,0)}catch(er){return en.call(this,ee,0)}}}function runClearTimeout(ee){if(er===clearTimeout)return clearTimeout(ee);if((er===defaultClearTimeout||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(ee);try{return er(ee)}catch(en){try{return er.call(null,ee)}catch(en){return er.call(this,ee)}}}!function(){try{en="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ee){en=defaultSetTimout}try{er="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ee){er=defaultClearTimeout}}();var es=[],eu=!1,ec=-1;function cleanUpNextTick(){eu&&ei&&(eu=!1,ei.length?es=ei.concat(es):ec=-1,es.length&&drainQueue())}function drainQueue(){if(!eu){var ee=runTimeout(cleanUpNextTick);eu=!0;for(var en=es.length;en;){for(ei=es,es=[];++ec1)for(var er=1;er(0,eu.jsx)("button",{className:dist_clsx("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",en),...er,children:ee}),ec=er(4861),ed={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,eu.jsx)(ec.AV,{className:"nx-mt-1"}),warning:"⚠️"},eh={default:dist_clsx("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:dist_clsx("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:dist_clsx("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:dist_clsx("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function Callout({children:ee,type:en="default",emoji:er=ed[en]}){return(0,eu.jsxs)("div",{className:dist_clsx("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",eh[en]),children:[(0,eu.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:er}),(0,eu.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:ee})]})}var ep=er(7294),CopyToClipboard=({getValue:ee,...en})=>{let[er,ei]=(0,ep.useState)(!1);(0,ep.useEffect)(()=>{if(!er)return;let ee=setTimeout(()=>{ei(!1)},2e3);return()=>{clearTimeout(ee)}},[er]);let eo=(0,ep.useCallback)(async()=>{ei(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(ee())}catch{console.error("Failed to copy!")}},[ee]),es=er?ec.nQ:ec.TI;return(0,eu.jsx)(Button,{onClick:eo,title:"Copy code",tabIndex:0,...en,children:(0,eu.jsx)(es,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},Code=({children:ee,className:en,...er})=>{let ei="data-line-numbers"in er;return(0,eu.jsx)("code",{className:dist_clsx("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",ei&&"[counter-reset:line]",en),dir:"ltr",...er,children:ee})},Pre=({children:ee,className:en,hasCopyCode:er,filename:ei,...eo})=>{let es=(0,ep.useRef)(null),ed=(0,ep.useCallback)(()=>{let ee=document.documentElement.dataset,en="nextraWordWrap"in ee;en?delete ee.nextraWordWrap:ee.nextraWordWrap=""},[]);return(0,eu.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[ei&&(0,eu.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:ei}),(0,eu.jsx)("pre",{className:dist_clsx("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",ei?"nx-pt-12 nx-pb-4":"nx-py-4",en),ref:es,...eo,children:ee}),(0,eu.jsxs)("div",{className:dist_clsx("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",ei?"nx-top-8":"nx-top-0"),children:[(0,eu.jsx)(Button,{onClick:ed,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,eu.jsx)(ec.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),er&&(0,eu.jsx)(CopyToClipboard,{getValue:()=>es.current?.querySelector("code")?.textContent||""})]})]})},ef=er(2351),em=er(9946),eg=er(2984),ex=er(1363),ev=er(4575),ey=er(6723),eb=er(3784),e_=er(4157),ew=er(3855),ek=er(4879),eC=er(6045);function focus_sentinel_A({onFocus:ee}){let[en,er]=(0,ep.useState)(!0),ei=(0,ek.t)();return en?ep.createElement(eC._,{as:"button",type:"button",features:eC.A.Focusable,onFocus:en=>{en.preventDefault();let eo,es=50;function t(){if(es--<=0){eo&&cancelAnimationFrame(eo);return}if(ee()){if(cancelAnimationFrame(eo),!ei.current)return;er(!1);return}eo=requestAnimationFrame(t)}eo=requestAnimationFrame(t)}}):null}var eE=er(3781),eO=er(1021),eT=er(5466);let eP=ep.createContext(null);function a(){return{groups:new Map,get(ee,en){var er;let ei=this.groups.get(ee);ei||(ei=new Map,this.groups.set(ee,ei));let eo=null!=(er=ei.get(en))?er:0;function i(){let ee=ei.get(en);ee>1?ei.set(en,ee-1):ei.delete(en)}return ei.set(en,eo+1),[Array.from(ei.keys()).indexOf(en),i]}}}function stable_collection_C({children:ee}){let en=ep.useRef(a());return ep.createElement(eP.Provider,{value:en},ee)}function stable_collection_d(ee){let en=ep.useContext(eP);if(!en)throw Error("You must wrap your component in a ");let er=f(),[ei,eo]=en.current.get(ee,er);return ep.useEffect(()=>eo,[]),ei}function f(){var ee,en,er;let ei=null!=(er=null==(en=null==(ee=ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:ee.ReactCurrentOwner)?void 0:en.current)?er:null;if(!ei)return Symbol();let eo=[],es=ei;for(;es;)eo.push(es.index),es=es.return;return"$."+eo.join(".")}var eS=((ei=eS||{})[ei.Forwards=0]="Forwards",ei[ei.Backwards=1]="Backwards",ei),eI=((eo=eI||{})[eo.Less=-1]="Less",eo[eo.Equal=0]="Equal",eo[eo.Greater=1]="Greater",eo),ej=((es=ej||{})[es.SetSelectedIndex=0]="SetSelectedIndex",es[es.RegisterTab=1]="RegisterTab",es[es.UnregisterTab=2]="UnregisterTab",es[es.RegisterPanel=3]="RegisterPanel",es[es.UnregisterPanel=4]="UnregisterPanel",es);let eR={0(ee,en){var er;let ei=(0,ev.z2)(ee.tabs,ee=>ee.current),eo=(0,ev.z2)(ee.panels,ee=>ee.current),es=ei.filter(ee=>{var en;return!(null!=(en=ee.current)&&en.hasAttribute("disabled"))}),eu={...ee,tabs:ei,panels:eo};if(en.index<0||en.index>ei.length-1){let er=(0,eg.E)(Math.sign(en.index-ee.selectedIndex),{[-1]:()=>1,0:()=>(0,eg.E)(Math.sign(en.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===es.length)return eu;let eo=(0,eg.E)(er,{0:()=>ei.indexOf(es[0]),1:()=>ei.indexOf(es[es.length-1])});return{...eu,selectedIndex:-1===eo?ee.selectedIndex:eo}}let ec=ei.slice(0,en.index),ed=[...ei.slice(en.index),...ec].find(ee=>es.includes(ee));if(!ed)return eu;let eh=null!=(er=ei.indexOf(ed))?er:ee.selectedIndex;return -1===eh&&(eh=ee.selectedIndex),{...eu,selectedIndex:eh}},1(ee,en){var er;if(ee.tabs.includes(en.tab))return ee;let ei=ee.tabs[ee.selectedIndex],eo=(0,ev.z2)([...ee.tabs,en.tab],ee=>ee.current),es=null!=(er=eo.indexOf(ei))?er:ee.selectedIndex;return -1===es&&(es=ee.selectedIndex),{...ee,tabs:eo,selectedIndex:es}},2:(ee,en)=>({...ee,tabs:ee.tabs.filter(ee=>ee!==en.tab)}),3:(ee,en)=>ee.panels.includes(en.panel)?ee:{...ee,panels:(0,ev.z2)([...ee.panels,en.panel],ee=>ee.current)},4:(ee,en)=>({...ee,panels:ee.panels.filter(ee=>ee!==en.panel)})},eM=(0,ep.createContext)(null);function M(ee){let en=(0,ep.useContext)(eM);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,M),en}return en}eM.displayName="TabsDataContext";let eN=(0,ep.createContext)(null);function q(ee){let en=(0,ep.useContext)(eN);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,q),en}return en}function fe(ee,en){return(0,eg.E)(en.type,eR,ee,en)}eN.displayName="TabsActionsContext";let eA=ep.Fragment;function me(ee,en){let{defaultIndex:er=0,vertical:ei=!1,manual:eo=!1,onChange:es,selectedIndex:eu=null,...ec}=ee,ed=ei?"vertical":"horizontal",eh=eo?"manual":"auto",em=null!==eu,eg=(0,eb.T)(en),[ex,e_]=(0,ep.useReducer)(fe,{selectedIndex:null!=eu?eu:er,tabs:[],panels:[]}),ek=(0,ep.useMemo)(()=>({selectedIndex:ex.selectedIndex}),[ex.selectedIndex]),eC=(0,ew.E)(es||(()=>{})),eO=(0,ew.E)(ex.tabs),eT=(0,ep.useMemo)(()=>({orientation:ed,activation:eh,...ex}),[ed,eh,ex]),eP=(0,eE.z)(ee=>(e_({type:1,tab:ee}),()=>e_({type:2,tab:ee}))),eS=(0,eE.z)(ee=>(e_({type:3,panel:ee}),()=>e_({type:4,panel:ee}))),eI=(0,eE.z)(ee=>{ej.current!==ee&&eC.current(ee),em||e_({type:0,index:ee})}),ej=(0,ew.E)(em?ee.selectedIndex:ex.selectedIndex),eR=(0,ep.useMemo)(()=>({registerTab:eP,registerPanel:eS,change:eI}),[]);(0,ey.e)(()=>{e_({type:0,index:null!=eu?eu:er})},[eu]),(0,ey.e)(()=>{if(void 0===ej.current||ex.tabs.length<=0)return;let ee=(0,ev.z2)(ex.tabs,ee=>ee.current);ee.some((ee,en)=>ex.tabs[en]!==ee)&&eI(ee.indexOf(ex.tabs[ej.current]))});let eL={ref:eg};return ep.createElement(stable_collection_C,null,ep.createElement(eN.Provider,{value:eR},ep.createElement(eM.Provider,{value:eT},eT.tabs.length<=0&&ep.createElement(focus_sentinel_A,{onFocus:()=>{var ee,en;for(let er of eO.current)if((null==(ee=er.current)?void 0:ee.tabIndex)===0)return null==(en=er.current)||en.focus(),!0;return!1}}),(0,ef.sY)({ourProps:eL,theirProps:ec,slot:ek,defaultTag:eA,name:"Tabs"}))))}let eL="div";function xe(ee,en){let{orientation:er,selectedIndex:ei}=M("Tab.List"),eo=(0,eb.T)(en);return(0,ef.sY)({ourProps:{ref:eo,role:"tablist","aria-orientation":er},theirProps:ee,slot:{selectedIndex:ei},defaultTag:eL,name:"Tabs.List"})}let eZ="button";function ye(ee,en){var er,ei;let eo=(0,em.M)(),{id:es=`headlessui-tabs-tab-${eo}`,...eu}=ee,{orientation:ec,activation:ed,selectedIndex:eh,tabs:ew,panels:ek}=M("Tab"),eC=q("Tab"),eP=M("Tab"),eS=(0,ep.useRef)(null),eI=(0,eb.T)(eS,en);(0,ey.e)(()=>eC.registerTab(eS),[eC,eS]);let ej=stable_collection_d("tabs"),eR=ew.indexOf(eS);-1===eR&&(eR=ej);let eM=eR===eh,eN=(0,eE.z)(ee=>{var en;let er=ee();if(er===ev.fE.Success&&"auto"===ed){let ee=null==(en=(0,eT.r)(eS))?void 0:en.activeElement,er=eP.tabs.findIndex(en=>en.current===ee);-1!==er&&eC.change(er)}return er}),eA=(0,eE.z)(ee=>{let en=ew.map(ee=>ee.current).filter(Boolean);if(ee.key===ex.R.Space||ee.key===ex.R.Enter){ee.preventDefault(),ee.stopPropagation(),eC.change(eR);return}switch(ee.key){case ex.R.Home:case ex.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),eN(()=>(0,ev.jA)(en,ev.TO.First));case ex.R.End:case ex.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),eN(()=>(0,ev.jA)(en,ev.TO.Last))}if(eN(()=>(0,eg.E)(ec,{vertical:()=>ee.key===ex.R.ArrowUp?(0,ev.jA)(en,ev.TO.Previous|ev.TO.WrapAround):ee.key===ex.R.ArrowDown?(0,ev.jA)(en,ev.TO.Next|ev.TO.WrapAround):ev.fE.Error,horizontal:()=>ee.key===ex.R.ArrowLeft?(0,ev.jA)(en,ev.TO.Previous|ev.TO.WrapAround):ee.key===ex.R.ArrowRight?(0,ev.jA)(en,ev.TO.Next|ev.TO.WrapAround):ev.fE.Error}))===ev.fE.Success)return ee.preventDefault()}),eL=(0,ep.useRef)(!1),eF=(0,eE.z)(()=>{var ee;eL.current||(eL.current=!0,null==(ee=eS.current)||ee.focus({preventScroll:!0}),eC.change(eR),(0,eO.Y)(()=>{eL.current=!1}))}),eD=(0,eE.z)(ee=>{ee.preventDefault()}),eU=(0,ep.useMemo)(()=>({selected:eM}),[eM]),eV={ref:eI,onKeyDown:eA,onMouseDown:eD,onClick:eF,id:es,role:"tab",type:(0,e_.f)(ee,eS),"aria-controls":null==(ei=null==(er=ek[eR])?void 0:er.current)?void 0:ei.id,"aria-selected":eM,tabIndex:eM?0:-1};return(0,ef.sY)({ourProps:eV,theirProps:eu,slot:eU,defaultTag:eZ,name:"Tabs.Tab"})}let eF="div";function Ae(ee,en){let{selectedIndex:er}=M("Tab.Panels"),ei=(0,eb.T)(en),eo=(0,ep.useMemo)(()=>({selectedIndex:er}),[er]);return(0,ef.sY)({ourProps:{ref:ei},theirProps:ee,slot:eo,defaultTag:eF,name:"Tabs.Panels"})}let eD="div",eU=ef.AN.RenderStrategy|ef.AN.Static;function Se(ee,en){var er,ei,eo,es;let eu=(0,em.M)(),{id:ec=`headlessui-tabs-panel-${eu}`,tabIndex:ed=0,...eh}=ee,{selectedIndex:eg,tabs:ex,panels:ev}=M("Tab.Panel"),e_=q("Tab.Panel"),ew=(0,ep.useRef)(null),ek=(0,eb.T)(ew,en);(0,ey.e)(()=>e_.registerPanel(ew),[e_,ew]);let eE=stable_collection_d("panels"),eO=ev.indexOf(ew);-1===eO&&(eO=eE);let eT=eO===eg,eP=(0,ep.useMemo)(()=>({selected:eT}),[eT]),eS={ref:ek,id:ec,role:"tabpanel","aria-labelledby":null==(ei=null==(er=ex[eO])?void 0:er.current)?void 0:ei.id,tabIndex:eT?ed:-1};return eT||null!=(eo=eh.unmount)&&!eo||null!=(es=eh.static)&&es?(0,ef.sY)({ourProps:eS,theirProps:eh,slot:eP,defaultTag:eD,features:eU,visible:eT,name:"Tabs.Panel"}):ep.createElement(eC._,{as:"span",...eS})}let eV=Object.assign((0,ef.yV)(ye),{Group:(0,ef.yV)(me),List:(0,ef.yV)(xe),Panels:(0,ef.yV)(Ae),Panel:(0,ef.yV)(Se)});function isTabObjectItem(ee){return!!ee&&"object"==typeof ee&&"label"in ee}Object.assign(function({items:ee,selectedIndex:en,defaultIndex:er=0,onChange:ei,children:eo,storageKey:es}){let[ec,ed]=(0,ep.useState)(er);(0,ep.useEffect)(()=>{void 0!==en&&ed(en)},[en]),(0,ep.useEffect)(()=>{if(!es)return;function fn(ee){ee.key===es&&ed(Number(ee.newValue))}let ee=Number(localStorage.getItem(es));return ed(Number.isNaN(ee)?0:ee),window.addEventListener("storage",fn),()=>{window.removeEventListener("storage",fn)}},[]);let eh=(0,ep.useCallback)(ee=>{if(es){let en=String(ee);localStorage.setItem(es,en),window.dispatchEvent(new StorageEvent("storage",{key:es,newValue:en}));return}ed(ee),ei?.(ee)},[]);return(0,eu.jsxs)(eV.Group,{selectedIndex:ec,defaultIndex:er,onChange:eh,children:[(0,eu.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,eu.jsx)(eV.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:ee.map((ee,en)=>{let er=isTabObjectItem(ee)&&ee.disabled;return(0,eu.jsx)(eV,{disabled:er,className:({selected:ee})=>dist_clsx("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",ee?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",er&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:isTabObjectItem(ee)?ee.label:ee},en)})})}),(0,eu.jsx)(eV.Panels,{children:eo})]})},{displayName:"Tabs",Tab:function({children:ee,...en}){return(0,eu.jsx)(eV.Panel,{...en,className:"nx-rounded nx-pt-6",children:ee})}});var Td=({className:ee="",...en})=>(0,eu.jsx)("td",{className:dist_clsx("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",ee),...en}),Table=({className:ee="",...en})=>(0,eu.jsx)("table",{className:dist_clsx("nx-block nx-overflow-x-scroll",ee),...en}),Th=({className:ee="",...en})=>(0,eu.jsx)("th",{className:dist_clsx("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",ee),...en}),Tr=({className:ee="",...en})=>(0,eu.jsx)("tr",{className:dist_clsx("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",ee),...en}),ez=er(1664),eB=er.n(ez),eW={cards:dist_clsx("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:dist_clsx("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:dist_clsx("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},eH=(0,eu.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:ee,num:en=3,className:er,style:ei,...eo}){return(0,eu.jsx)("div",{className:dist_clsx(eW.cards,er),...eo,style:{...ei,"--rows":en},children:ee})},{displayName:"Cards",Card:function({children:ee,title:en,icon:er,image:ei,arrow:eo,href:es,...ec}){let ed=eo?eH:null;return ei?(0,eu.jsxs)(eB(),{href:es,className:dist_clsx(eW.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...ec,children:[ee,(0,eu.jsxs)("span",{className:dist_clsx(eW.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[er,(0,eu.jsxs)("span",{className:"nx-flex nx-gap-1",children:[en,ed]})]})]}):(0,eu.jsx)(eB(),{href:es,className:dist_clsx(eW.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...ec,children:(0,eu.jsxs)("span",{className:dist_clsx(eW.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[er,en,ed]})})}});var eq=(0,ep.createContext)(0);function useIndent(){return(0,ep.useContext)(eq)}function Tree({children:ee}){return(0,eu.jsx)("div",{className:dist_clsx("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,eu.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:ee})})}function Ident(){let ee=useIndent();return(0,eu.jsx)(eu.Fragment,{children:Array.from({length:ee},(ee,en)=>(0,eu.jsx)("span",{className:"nx-w-5"},en))})}var e$=(0,ep.memo)(({label:ee,name:en,open:er,children:ei,defaultOpen:eo=!1,onToggle:es})=>{let ec=useIndent(),[ed,eh]=(0,ep.useState)(eo),ef=(0,ep.useCallback)(()=>{es?.(!ed),eh(!ed)},[ed,es]),em=void 0===er?ed:er;return(0,eu.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,eu.jsxs)("button",{onClick:ef,title:en,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,eu.jsx)(Ident,{}),(0,eu.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:em?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,eu.jsx)("span",{className:"nx-ml-1",children:ee??en})]}),em&&(0,eu.jsx)("ul",{children:(0,eu.jsx)(eq.Provider,{value:ec+1,children:ei})})]})});e$.displayName="Folder";var eQ=(0,ep.memo)(({label:ee,name:en,active:er})=>(0,eu.jsx)("li",{className:dist_clsx("nx-flex nx-list-none",er&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,eu.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,eu.jsx)(Ident,{}),(0,eu.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,eu.jsx)("span",{className:"nx-ml-1",children:ee??en})]})}));eQ.displayName="File",Object.assign(Tree,{Folder:e$,File:eQ})},4861:function(ee,en,er){"use strict";er.d(en,{LZ:function(){return ArrowRightIcon},nQ:function(){return CheckIcon},TI:function(){return CopyIcon},D7:function(){return DiscordIcon},Qq:function(){return ExpandIcon},fy:function(){return GitHubIcon},n9:function(){return GlobeIcon},AV:function(){return InformationCircleIcon},Oq:function(){return MenuIcon},kL:function(){return MoonIcon},L4:function(){return SpinnerIcon},NW:function(){return SunIcon},NK:function(){return WordWrapIcon},b0:function(){return XIcon}});var ei=er(5893);function ArrowRightIcon({pathClassName:ee,...en}){return(0,ei.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...en,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:ee})})}function CheckIcon(ee){return(0,ei.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function CopyIcon(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...ee,children:[(0,ei.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ei.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DiscordIcon(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...ee,children:[(0,ei.jsx)("title",{children:"Discord"}),(0,ei.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function ExpandIcon({isOpen:ee,...en}){return(0,ei.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...en,children:[(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:ee?"":"nx-origin-[35%] nx-rotate-180"}),(0,ei.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function GitHubIcon(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...ee,children:[(0,ei.jsx)("title",{children:"GitHub"}),(0,ei.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function GlobeIcon(ee){return(0,ei.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function InformationCircleIcon(ee){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function MenuIcon(ee){return(0,ei.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...ee,children:[(0,ei.jsx)("g",{children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,ei.jsx)("g",{children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function MoonIcon(ee){return(0,ei.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function SpinnerIcon(ee){return(0,ei.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:[(0,ei.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,ei.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function SunIcon(ee){return(0,ei.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function WordWrapIcon(ee){return(0,ei.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function XIcon(ee){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},2643:function(ee,en,er){"use strict";er.d(en,{Z:function(){return MDXProvider},a:function(){return mdx_useMDXComponents}});var ei=er(7294);let eo=ei.createContext({});function useMDXComponents(ee){let en=ei.useContext(eo);return ei.useMemo(()=>"function"==typeof ee?ee(en):{...en,...ee},[en,ee])}let es={};function MDXProvider({components:ee,children:en,disableParentContext:er}){let eu;return eu=er?"function"==typeof ee?ee({}):ee||es:useMDXComponents(ee),ei.createElement(eo.Provider,{value:eu},en)}var eu=er(5675),ec=er.n(eu),ed={img:ee=>(0,ei.createElement)("object"==typeof ee.src?ec():"img",ee)},mdx_useMDXComponents=ee=>useMDXComponents({...ed,...ee})},6008:function(ee,en,er){"use strict";var ei=er(2337);function parsePath(ee){var en={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:ee,query:{},parse_failed:!1};try{var er=new URL(ee);en.protocols=ei(er),en.protocol=en.protocols[0],en.port=er.port,en.resource=er.hostname,en.host=er.host,en.user=er.username||"",en.password=er.password||"",en.pathname=er.pathname,en.hash=er.hash.slice(1),en.search=er.search.slice(1),en.href=er.href,en.query=Object.fromEntries(er.searchParams)}catch(er){en.protocols=["file"],en.protocol=en.protocols[0],en.port="",en.resource="",en.user="",en.pathname="",en.hash="",en.search="",en.href=ee,en.query={},en.parse_failed=!0}return en}ee.exports=parsePath},3905:function(ee,en,er){"use strict";var ei=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(er(6008));let eo="text/plain",es="us-ascii",testParameter=(ee,en)=>en.some(en=>en instanceof RegExp?en.test(ee):en===ee),normalizeDataURL=(ee,{stripHash:en})=>{let er=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(ee);if(!er)throw Error(`Invalid URL: ${ee}`);let{type:ei,data:eu,hash:ec}=er.groups,ed=ei.split(";");ec=en?"":ec;let eh=!1;"base64"===ed[ed.length-1]&&(ed.pop(),eh=!0);let ep=(ed.shift()||"").toLowerCase(),ef=ed.map(ee=>{let[en,er=""]=ee.split("=").map(ee=>ee.trim());return"charset"===en&&(er=er.toLowerCase())===es?"":`${en}${er?`=${er}`:""}`}).filter(Boolean),em=[...ef];return eh&&em.push("base64"),(em.length>0||ep&&ep!==eo)&&em.unshift(ep),`data:${em.join(";")},${eh?eu.trim():eu}${ec?`#${ec}`:""}`};function normalizeUrl(ee,en){if(en={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...en},ee=ee.trim(),/^data:/i.test(ee))return normalizeDataURL(ee,en);if(/^view-source:/i.test(ee))throw Error("`view-source:` is not supported as it is a non-standard protocol");let er=ee.startsWith("//"),ei=!er&&/^\.*\//.test(ee);ei||(ee=ee.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,en.defaultProtocol));let eo=new URL(ee);if(en.forceHttp&&en.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(en.forceHttp&&"https:"===eo.protocol&&(eo.protocol="http:"),en.forceHttps&&"http:"===eo.protocol&&(eo.protocol="https:"),en.stripAuthentication&&(eo.username="",eo.password=""),en.stripHash?eo.hash="":en.stripTextFragment&&(eo.hash=eo.hash.replace(/#?:~:text.*?$/i,"")),eo.pathname){let ee=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,en=0,er="";for(;;){let ei=ee.exec(eo.pathname);if(!ei)break;let es=ei[0],eu=ei.index,ec=eo.pathname.slice(en,eu);er+=ec.replace(/\/{2,}/g,"/")+es,en=eu+es.length}let ei=eo.pathname.slice(en,eo.pathname.length);er+=ei.replace(/\/{2,}/g,"/"),eo.pathname=er}if(eo.pathname)try{eo.pathname=decodeURI(eo.pathname)}catch{}if(!0===en.removeDirectoryIndex&&(en.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(en.removeDirectoryIndex)&&en.removeDirectoryIndex.length>0){let ee=eo.pathname.split("/"),er=ee[ee.length-1];testParameter(er,en.removeDirectoryIndex)&&(ee=ee.slice(0,-1),eo.pathname=ee.slice(1).join("/")+"/")}if(eo.hostname&&(eo.hostname=eo.hostname.replace(/\.$/,""),en.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(eo.hostname)&&(eo.hostname=eo.hostname.replace(/^www\./,""))),Array.isArray(en.removeQueryParameters))for(let ee of[...eo.searchParams.keys()])testParameter(ee,en.removeQueryParameters)&&eo.searchParams.delete(ee);if(!0===en.removeQueryParameters&&(eo.search=""),en.sortQueryParameters){eo.searchParams.sort();try{eo.search=decodeURIComponent(eo.search)}catch{}}en.removeTrailingSlash&&(eo.pathname=eo.pathname.replace(/\/$/,""));let es=ee;return ee=eo.toString(),en.removeSingleSlash||"/"!==eo.pathname||es.endsWith("/")||""!==eo.hash||(ee=ee.replace(/\/$/,"")),(en.removeTrailingSlash||"/"===eo.pathname)&&""===eo.hash&&en.removeSingleSlash&&(ee=ee.replace(/\/$/,"")),er&&!en.normalizeProtocol&&(ee=ee.replace(/^http:\/\//,"//")),en.stripProtocol&&(ee=ee.replace(/^(?:https?:)?\/\//,"")),ee}let parseUrl=(ee,en=!1)=>{let er=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,throwErr=en=>{let er=Error(en);throw er.subject_url=ee,er};"string"==typeof ee&&ee.trim()||throwErr("Invalid url."),ee.length>parseUrl.MAX_INPUT_LENGTH&&throwErr("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),en&&("object"!=typeof en&&(en={stripHash:!1}),ee=normalizeUrl(ee,en));let eo=ei.default(ee);if(eo.parse_failed){let ee=eo.href.match(er);ee?(eo.protocols=["ssh"],eo.protocol="ssh",eo.resource=ee[2],eo.host=ee[2],eo.user=ee[1],eo.pathname=`/${ee[3]}`,eo.parse_failed=!1):throwErr("URL parsing failed.")}return eo};parseUrl.MAX_INPUT_LENGTH=2048,ee.exports=parseUrl},2337:function(ee){"use strict";ee.exports=function(ee,en){!0===en&&(en=0);var er="";if("string"==typeof ee)try{er=new URL(ee).protocol}catch(ee){}else ee&&ee.constructor===URL&&(er=ee.protocol);var ei=er.split(/\:|\+/).filter(Boolean);return"number"==typeof en?ei[en]:ei}},6826:function(ee){var en={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},er=Object.keys(en).join("|"),ei=RegExp(er,"g"),eo=RegExp(er,""),removeAccents=function(ee){return ee.replace(ei,function(ee){return en[ee]})},hasAccents=function(ee){return!!ee.match(eo)};ee.exports=removeAccents,ee.exports.has=hasAccents,ee.exports.remove=removeAccents},3250:function(ee,en,er){"use strict";/** + `}),eo]})]})}var rP={link:dist_clsx("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:dist_clsx("nx-inline nx-h-5 nx-shrink-0")},NavLinks=({flatDirectories:ee,currentIndex:en})=>{let er=useConfig(),ei=er.navigation,eo="boolean"==typeof ei?{prev:ei,next:ei}:ei,es=eo.prev&&ee[en-1],eu=eo.next&&ee[en+1];return(es&&!es.isUnderCurrentDocsTree&&(es=!1),eu&&!eu.isUnderCurrentDocsTree&&(eu=!1),es||eu)?(0,eC.jsxs)("div",{className:dist_clsx("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[es&&(0,eC.jsxs)(rw,{href:es.route,title:es.title,className:dist_clsx(rP.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,eC.jsx)(eI.LZ,{className:dist_clsx(rP.icon,"ltr:nx-rotate-180")}),es.title]}),eu&&(0,eC.jsxs)(rw,{href:eu.route,title:eu.title,className:dist_clsx(rP.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[eu.title,(0,eC.jsx)(eI.LZ,{className:dist_clsx(rP.icon,"rtl:nx-rotate-180")})]})]}):null},rS={link:dist_clsx("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:dist_clsx("nx-font-medium nx-subpixel-antialiased"),inactive:dist_clsx("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function NavbarMenu({className:ee,menu:en,children:er}){let{items:ei}=en,eo=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));return(0,eC.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,eC.jsxs)(n3,{children:[(0,eC.jsx)(n3.Button,{className:dist_clsx(ee,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",rS.inactive),children:er}),(0,eC.jsx)(ny,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eC.jsx)(n3.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",tabIndex:0,children:Object.entries(ei||{}).map(([ee,er])=>{var ei;return(0,eC.jsx)(n3.Item,{children:(0,eC.jsx)(rw,{href:er.href||(null==(ei=eo[ee])?void 0:ei.route)||en.route+"/"+ee,className:dist_clsx("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:er.newWindow,children:er.title||ee})},ee)})})})]})})}function Navbar({flatDirectories:ee,items:en}){let er=useConfig(),ei=useFSRoute(),{menu:eo,setMenu:es}=useMenu();return(0,eC.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,eC.jsx)("div",{className:dist_clsx("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,eC.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[er.logoLink?(0,eC.jsx)(rw,{href:"string"==typeof er.logoLink?er.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}):(0,eC.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}),en.map(ee=>{if("hidden"===ee.display)return null;if("menu"===ee.type){let en=ee;return(0,eC.jsxs)(NavbarMenu,{className:dist_clsx(rS.link,"nx-flex nx-gap-1",rS.inactive),menu:en,children:[en.title,(0,eC.jsx)(eI.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},en.title)}let en=ee,er=en.href||en.route||"#";en.children&&(er=(en.withIndexPage?en.route:en.firstChildRoute)||er);let eo=en.route===ei||ei.startsWith(en.route+"/");return(0,eC.jsxs)(rw,{href:er,className:dist_clsx(rS.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!eo||en.newWindow?rS.inactive:rS.active),newWindow:en.newWindow,"aria-current":!en.newWindow&&eo,children:[(0,eC.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:en.title}),(0,eC.jsx)("span",{className:"nx-invisible nx-font-medium",children:en.title})]},er)}),renderComponent(er.search.component,{directories:ee,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),er.project.link?(0,eC.jsx)(rw,{className:"nx-p-2 nx-text-current",href:er.project.link,newWindow:!0,children:renderComponent(er.project.icon)}):null,er.chat.link?(0,eC.jsx)(rw,{className:"nx-p-2 nx-text-current",href:er.chat.link,newWindow:!0,children:renderComponent(er.chat.icon)}):null,renderComponent(er.navbar.extraContent),(0,eC.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>es(!eo),children:(0,eC.jsx)(eI.Oq,{className:dist_clsx({open:eo})})})]})]})}var rI=Object.create(null),rj=(0,eO.createContext)(null),rR=(0,eO.createContext)(null),rM=(0,eO.createContext)(0),rN=(0,eO.memo)(function(ee){let en=(0,eO.useContext)(rM);return(0,eC.jsx)(rM.Provider,{value:en+1,children:(0,eC.jsx)(FolderImpl,__spreadValues({},ee))})}),rA={link:dist_clsx("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:dist_clsx("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:dist_clsx("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:dist_clsx("nx-flex nx-flex-col nx-gap-1"),border:dist_clsx("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function FolderImpl({item:ee,anchors:en}){let er=useFSRoute(),[ei]=er.split("#"),eo=[ei,ei+"/"].includes(ee.route+"/"),es=eo||ei.startsWith(ee.route+"/"),eu=(0,eO.useContext)(rj),ec=!!(null==eu?void 0:eu.startsWith(ee.route+"/")),ed=(0,eO.useContext)(rM),{setMenu:eh}=useMenu(),ep=useConfig(),{theme:ef}=ee,em=void 0===rI[ee.route]?eo||es||ec||(ef&&"collapsed"in ef?!ef.collapsed:ed{let updateTreeState=()=>{(es||ec)&&(rI[ee.route]=!0)},updateAndPruneTreeState=()=>{es&&ec?rI[ee.route]=!0:delete rI[ee.route]};ep.sidebar.autoCollapse?updateAndPruneTreeState():updateTreeState()},[es,ec,ee.route,ep.sidebar.autoCollapse]),"menu"===ee.type){let en=ee,er=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));ee.children=Object.entries(en.items||{}).map(([ee,ei])=>{let eo=er[ee]||__spreadProps(__spreadValues({name:ee},"locale"in en&&{locale:en.locale}),{route:en.route+"/"+ee});return __spreadValues(__spreadValues({},eo),ei)})}let ex="withIndexPage"in ee&&ee.withIndexPage,ev=ex?rw:"button";return(0,eC.jsxs)("li",{className:dist_clsx({open:em,active:eo}),children:[(0,eC.jsxs)(ev,{href:ex?ee.route:void 0,className:dist_clsx("nx-items-center nx-justify-between nx-gap-2",!ex&&"nx-text-left nx-w-full",rA.link,eo?rA.active:rA.inactive),onClick:en=>{let er=["svg","path"].includes(en.target.tagName.toLowerCase());if(er&&en.preventDefault(),ex){eo||er?rI[ee.route]=!em:(rI[ee.route]=!0,eh(!1)),eg({});return}eo||(rI[ee.route]=!em,eg({}))},children:[renderComponent(ep.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route}),(0,eC.jsx)(eI.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:dist_clsx("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",em&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,eC.jsx)(Collapse,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:em,children:Array.isArray(ee.children)?(0,eC.jsx)(Menu2,{className:dist_clsx(rA.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:ee.children,base:ee.route,anchors:en}):null})]})}function Separator({title:ee}){let en=useConfig();return(0,eC.jsx)("li",{className:dist_clsx("[word-break:break-word]",ee?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:ee?renderComponent(en.sidebar.titleComponent,{title:ee,type:"separator",route:""}):(0,eC.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function File({item:ee,anchors:en}){let er=useFSRoute(),ei=(0,eO.useContext)(rR),eo=ee.route&&[er,er+"/"].includes(ee.route+"/"),es=useActiveAnchor(),{setMenu:eu}=useMenu(),ec=useConfig();return"separator"===ee.type?(0,eC.jsx)(Separator,{title:ee.title}):(0,eC.jsxs)("li",{className:dist_clsx(rA.list,{active:eo}),children:[(0,eC.jsx)(rw,{href:ee.href||ee.route,newWindow:ee.newWindow,className:dist_clsx(rA.link,eo?rA.active:rA.inactive),onClick:()=>{eu(!1)},onFocus:()=>{null==ei||ei(ee.route)},onBlur:()=>{null==ei||ei(null)},children:renderComponent(ec.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route})}),eo&&en.length>0&&(0,eC.jsx)("ul",{className:dist_clsx(rA.list,rA.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:en.map(({id:ee,value:en})=>{var er;return(0,eC.jsx)("li",{children:(0,eC.jsx)("a",{href:`#${ee}`,className:dist_clsx(rA.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(er=es[ee])?void 0:er.isActive)?rA.active:rA.inactive),onClick:()=>{eu(!1)},children:en})},ee)})})]})}function Menu2({directories:ee,anchors:en,className:er,onlyCurrentDocs:ei}){return(0,eC.jsx)("ul",{className:dist_clsx(rA.list,er),children:ee.map(ee=>!ei||ee.isUnderCurrentDocsTree?"menu"===ee.type||ee.children&&(ee.children.length||!ee.withIndexPage)?(0,eC.jsx)(rN,{item:ee,anchors:en},ee.name):(0,eC.jsx)(File,{item:ee,anchors:en},ee.name):null)})}function Sidebar({docsDirectories:ee,flatDirectories:en,fullDirectories:er,asPopover:ei=!1,headings:eo,includePlaceholder:es}){let eu=useConfig(),{menu:ec,setMenu:ed}=useMenu(),eh=(0,eE.useRouter)(),[ep,ef]=(0,eO.useState)(null),[em,eg]=(0,eO.useState)(!0),[ex,ev]=(0,eO.useState)(!1),ey=(0,eO.useMemo)(()=>eo.filter(ee=>2===ee.depth),[eo]),eb=(0,eO.useRef)(null),e_=(0,eO.useRef)(null),ew=useMounted();(0,eO.useEffect)(()=>{ec?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[ec]),(0,eO.useEffect)(()=>{var ee;let en=null==(ee=eb.current)?void 0:ee.querySelector("li.active");if(en&&(window.innerWidth>767||ec)){let scroll=()=>{dist_e(en,{block:"center",inline:"center",scrollMode:"always",boundary:e_.current})};ec?setTimeout(scroll,300):scroll()}},[ec]),(0,eO.useEffect)(()=>{ed(!1)},[eh.asPath,ed]);let ek=eu.i18n.length>0,eT=eu.darkMode||ek||eu.sidebar.toggleButton;return(0,eC.jsxs)(eC.Fragment,{children:[es&&ei?(0,eC.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,eC.jsx)("div",{className:dist_clsx("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",ec?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>ed(!1)}),(0,eC.jsxs)("aside",{className:dist_clsx("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",em?"md:nx-w-64":"md:nx-w-20",ei?"md:nx-hidden":"md:nx-sticky md:nx-self-start",ec?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:e_,children:[(0,eC.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:renderComponent(eu.search.component,{directories:en})}),(0,eC.jsx)(rj.Provider,{value:ep,children:(0,eC.jsx)(rR.Provider,{value:ee=>{ef(ee)},children:(0,eC.jsxs)("div",{className:dist_clsx("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",em?"nextra-scrollbar":"no-scrollbar"),ref:eb,children:[(!ei||!em)&&(0,eC.jsx)(Collapse,{isOpen:em,horizontal:!0,children:(0,eC.jsx)(Menu2,{className:"nextra-menu-desktop max-md:nx-hidden",directories:ee,anchors:eu.toc.float?[]:ey,onlyCurrentDocs:!0})}),ew&&window.innerWidth<768&&(0,eC.jsx)(Menu2,{className:"nextra-menu-mobile md:nx-hidden",directories:er,anchors:ey})]})})}),eT&&(0,eC.jsxs)("div",{className:dist_clsx("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",em?dist_clsx(ek&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":ex?em?"show":"hide":"off",children:[(0,eC.jsx)(LocaleSwitch,{lite:!em,className:dist_clsx(em?"nx-grow":"max-md:nx-grow")}),eu.darkMode&&(0,eC.jsx)("div",{className:em&&!ek?"nx-grow nx-flex nx-flex-col":"",children:renderComponent(eu.themeSwitch.component,{lite:!em||ek})}),eu.sidebar.toggleButton&&(0,eC.jsx)("button",{title:em?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{eg(!em),ev(!0)},children:(0,eC.jsx)(eI.Qq,{isOpen:em})})]})]})]})}var rL="reach-skip-nav",rZ="Skip to content";(0,eO.forwardRef)(function(ee,en){var er=ee,{className:ei,id:eo,label:es=rZ,styled:eu}=er,ec=__objRest(er,["className","id","label","styled"]);let ed=void 0===ei?eu?dist_clsx("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":ei;return(0,eC.jsx)("a",__spreadProps(__spreadValues({},ec),{ref:en,href:`#${eo||rL}`,className:ed,"data-reach-skip-link":"",children:es}))}).displayName="SkipNavLink";var rF=(0,eO.forwardRef)(function(ee,en){var er=ee,{id:ei}=er,eo=__objRest(er,["id"]);return(0,eC.jsx)("div",__spreadProps(__spreadValues({},eo),{ref:en,id:ei||rL}))});rF.displayName="SkipNavContent";var rD=t_.strictObject({light:t_.string(),dark:t_.string(),system:t_.string()});function ThemeSwitch({lite:ee,className:en}){let{setTheme:er,resolvedTheme:ei,theme:eo=""}=(0,tE.F)(),es=useMounted(),eu=useConfig().themeSwitch,ec=es&&"dark"===ei?eI.kL:eI.NW,ed="function"==typeof eu.useOptions?eu.useOptions():eu.useOptions;return(0,eC.jsx)(Select,{className:en,title:"Change theme",options:[{key:"light",name:ed.light},{key:"dark",name:ed.dark},{key:"system",name:ed.system}],onChange:ee=>{er(ee.key)},selected:{key:eo,name:(0,eC.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,eC.jsx)(ec,{}),(0,eC.jsx)("span",{className:ee?"md:nx-hidden":"",children:es?ed[eo]:ed.light})]})}})}function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}function BackToTop({className:ee}){let en=(0,eO.useRef)(null);return(0,eO.useEffect)(()=>{function toggleVisible(){var ee;let{scrollTop:er}=document.documentElement;null==(ee=en.current)||ee.classList.toggle("nx-opacity-0",er<300)}return window.addEventListener("scroll",toggleVisible),()=>{window.removeEventListener("scroll",toggleVisible)}},[]),(0,eC.jsxs)("button",{ref:en,"aria-hidden":"true",onClick:scrollToTop,className:dist_clsx("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",ee),children:["Scroll to top",(0,eC.jsx)(eI.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var rU=dist_clsx("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function TOC({headings:ee,filePath:en}){var er;let ei=useActiveAnchor(),eo=useConfig(),es=(0,eO.useRef)(null),eu=(0,eO.useMemo)(()=>ee.filter(ee=>ee.depth>1),[ee]),ec=eu.length>0,ed=!!(eo.feedback.content||eo.editLink.component||eo.toc.extraContent),eh=null==(er=Object.entries(ei).find(([,{isActive:ee}])=>ee))?void 0:er[0];return(0,eO.useEffect)(()=>{var ee;if(!eh)return;let en=null==(ee=es.current)?void 0:ee.querySelector(`li > a[href="#${eh}"]`);en&&dist_e(en,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:es.current})},[eh]),(0,eC.jsxs)("div",{ref:es,className:dist_clsx("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[ec&&(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:renderComponent(eo.toc.title)}),(0,eC.jsx)("ul",{children:eu.map(({id:ee,value:en,depth:er})=>{var es,eu,ec,ed;return(0,eC.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,eC.jsx)("a",{href:`#${ee}`,className:dist_clsx({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[er],"nx-inline-block",(null==(es=ei[ee])?void 0:es.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(ed=null==(ec=(eu=eo.toc).headingComponent)?void 0:ec.call(eu,{id:ee,children:en}))?ed:en})},ee)})})]}),ed&&(0,eC.jsxs)("div",{className:dist_clsx(ec&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[eo.feedback.content?(0,eC.jsx)(rw,{className:rU,href:eo.feedback.useLink(),newWindow:!0,children:renderComponent(eo.feedback.content)}):null,renderComponent(eo.editLink.component,{filePath:en,className:rU,children:renderComponent(eo.editLink.text)}),renderComponent(eo.toc.extraContent),eo.toc.backToTop&&(0,eC.jsx)(BackToTop,{className:rU})]})]})}function MatchSorterSearch({className:ee,directories:en}){let[er,ei]=(0,eO.useState)(""),eo=(0,eO.useMemo)(()=>er?matchSorter(en,er,{keys:["title"]}).map(({route:ee,title:en})=>({id:ee+en,route:ee,children:(0,eC.jsx)(rk,{value:en,match:er})})):[],[er,en]);return(0,eC.jsx)(Search,{value:er,onChange:ei,className:ee,overlayClassName:"nx-w-full",results:eo})}var rV="en-US",rz="undefined"!=typeof window;function isReactNode(ee){return null==ee||"string"==typeof ee||isFunction(ee)||(0,eO.isValidElement)(ee)}function isFunction(ee){return"function"==typeof ee}var rB=t_.array(t_.strictObject({direction:t_.enum(["ltr","rtl"]).optional(),locale:t_.string(),text:t_.string()})),rW=[isReactNode,{message:"Must be React.ReactNode or React.FC"}],rH=[isFunction,{message:"Must be React.FC"}];t_.strictObject({banner:t_.strictObject({dismissible:t_.boolean(),key:t_.string(),text:t_.custom(...rW).optional()}),chat:t_.strictObject({icon:t_.custom(...rW),link:t_.string().startsWith("https://").optional()}),components:t_.record(t_.custom(...rH)).optional(),darkMode:t_.boolean(),direction:t_.enum(["ltr","rtl"]),docsRepositoryBase:t_.string().startsWith("https://"),editLink:t_.strictObject({component:t_.custom(...rH),text:t_.custom(...rW)}),faviconGlyph:t_.string().optional(),feedback:t_.strictObject({content:t_.custom(...rW),labels:t_.string(),useLink:t_.function().returns(t_.string())}),footer:t_.strictObject({component:t_.custom(...rW),text:t_.custom(...rW)}),gitTimestamp:t_.custom(...rW),head:t_.custom(...rW),i18n:rB,logo:t_.custom(...rW),logoLink:t_.boolean().or(t_.string()),main:t_.custom(...rH).optional(),navbar:t_.strictObject({component:t_.custom(...rW),extraContent:t_.custom(...rW).optional()}),navigation:t_.boolean().or(t_.strictObject({next:t_.boolean(),prev:t_.boolean()})),nextThemes:t_.strictObject({defaultTheme:t_.string(),forcedTheme:t_.string().optional(),storageKey:t_.string()}),notFound:t_.strictObject({content:t_.custom(...rW),labels:t_.string()}),primaryHue:t_.number().or(t_.strictObject({dark:t_.number(),light:t_.number()})),primarySaturation:t_.number().or(t_.strictObject({dark:t_.number(),light:t_.number()})),project:t_.strictObject({icon:t_.custom(...rW),link:t_.string().startsWith("https://").optional()}),search:t_.strictObject({component:t_.custom(...rW),emptyResult:t_.custom(...rW),error:t_.string().or(t_.function().returns(t_.string())),loading:t_.custom(...rW),placeholder:t_.string().or(t_.function().returns(t_.string()))}),serverSideError:t_.strictObject({content:t_.custom(...rW),labels:t_.string()}),sidebar:t_.strictObject({autoCollapse:t_.boolean().optional(),defaultMenuCollapseLevel:t_.number().min(1).int(),titleComponent:t_.custom(...rW),toggleButton:t_.boolean()}),themeSwitch:t_.strictObject({component:t_.custom(...rW),useOptions:rD.or(t_.function().returns(rD))}),toc:t_.strictObject({backToTop:t_.boolean(),component:t_.custom(...rW),extraContent:t_.custom(...rW),float:t_.boolean(),headingComponent:t_.custom(...rH).optional(),title:t_.custom(...rW)}),useNextSeoProps:t_.custom(isFunction)}).deepPartial().extend({i18n:rB.optional()});var rq={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},r$={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},rQ={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)(eI.D7,{}),(0,eC.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:ee,filePath:en,children:er}){let ei=useGitEditUrl(en);return ei?(0,eC.jsx)(rw,{className:ee,href:ei,children:er}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let ee=useConfig();return getGitIssueUrl({labels:ee.feedback.labels,repository:ee.docsRepositoryBase,title:`Feedback for \u201C${ee.title}\u201D`})}},footer:{component:Footer,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:ee}){let{locale:en=rV}=(0,eE.useRouter)();return(0,eC.jsxs)(eC.Fragment,{children:["Last updated on"," ",(0,eC.jsx)("time",{dateTime:ee.toISOString(),children:ee.toLocaleDateString(en,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,eC.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,eC.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,eC.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,eC.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,eC.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,eC.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,eC.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,eC.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:Navbar},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsx)(eI.fy,{}),(0,eC.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:ee,directories:en}){let er=useConfig();return er.flexsearch?(0,eC.jsx)(Flexsearch,{className:ee}):(0,eC.jsx)(MatchSorterSearch,{className:ee,directories:en})},emptyResult:(0,eC.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:ee,defaultLocale:en=rV}=(0,eE.useRouter)(),er=ee&&rq[ee]||rq[en];return(0,eC.jsxs)(eC.Fragment,{children:[er,"…"]})},placeholder:function(){let{locale:ee,defaultLocale:en=rV}=(0,eE.useRouter)(),er=ee&&r$[ee]||r$[en];return`${er}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:ee})=>(0,eC.jsx)(eC.Fragment,{children:ee}),toggleButton:!1},themeSwitch:{component:ThemeSwitch,useOptions(){let{locale:ee}=(0,eE.useRouter)();return"zh-CN"===ee?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:TOC,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},rG=Object.entries(rQ).map(([ee,en])=>{let er=en&&"object"==typeof en&&!Array.isArray(en)&&!(0,eO.isValidElement)(en);if(er)return ee}).filter(Boolean);if(rz){let ee;let addResizingClass=()=>{document.body.classList.add("resizing"),clearTimeout(ee),ee=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",addResizingClass)}function HeadingLink(ee){var en=ee,{tag:er,context:ei,children:eo,id:es,className:eu}=en,ec=__objRest(en,["tag","context","children","id","className"]);let ed=useSetActiveAnchor(),eh=useSlugs(),ep=useIntersectionObserver(),ef=(0,eO.useRef)(null);return(0,eO.useEffect)(()=>{if(!es)return;let ee=ef.current;if(ee)return eh.set(ee,[es,ei.index+=1]),null==ep||ep.observe(ee),()=>{null==ep||ep.disconnect(),eh.delete(ee),ed(ee=>{let en=__spreadValues({},ee);return delete en[es],en})}},[es,ei,eh,ep,ed]),(0,eC.jsxs)(er,__spreadProps(__spreadValues({className:"sr-only"===eu?"nx-sr-only":dist_clsx("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[er])},ec),{children:[eo,es&&(0,eC.jsx)("a",{href:`#${es}`,id:es,className:"subheading-anchor","aria-label":"Permalink for this section",ref:ef})]}))}var findSummary=ee=>{let en=null,er=[];return eO.Children.forEach(ee,(ee,ei)=>{var eo;if(ee&&ee.type===Summary){en||(en=ee);return}let es=ee;if(!en&&ee&&"object"==typeof ee&&ee.type!==Details&&"props"in ee&&ee.props){let er=findSummary(ee.props.children);en=er[0],es=(0,eO.cloneElement)(ee,__spreadProps(__spreadValues({},ee.props),{children:(null==(eo=er[1])?void 0:eo.length)?er[1]:void 0,key:ei}))}er.push(es)}),[en,er]},Details=ee=>{var en=ee,{children:er,open:ei}=en,eo=__objRest(en,["children","open"]);let[es,eu]=(0,eO.useState)(!!ei),[ec,ed]=findSummary(er),[eh,ep]=(0,eO.useState)(es);return(0,eO.useEffect)(()=>{if(es)ep(!0);else{let ee=setTimeout(()=>ep(es),500);return()=>clearTimeout(ee)}},[es]),(0,eC.jsxs)("details",__spreadProps(__spreadValues(__spreadProps(__spreadValues({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},eo),{open:eh}),es&&{"data-expanded":!0}),{children:[(0,eC.jsx)(rb,{value:eu,children:ec}),(0,eC.jsx)(Collapse,{isOpen:es,children:ed})]}))},Summary=ee=>{let en=useDetails();return(0,eC.jsx)("summary",__spreadProps(__spreadValues({className:dist_clsx("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},ee),{onClick:ee=>{ee.preventDefault(),en(ee=>!ee)}}))},rK=/https?:\/\//,Link=ee=>{var en=ee,{href:er="",className:ei}=en,eo=__objRest(en,["href","className"]);return(0,eC.jsx)(rw,__spreadValues({href:er,newWindow:rK.test(er),className:dist_clsx("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",ei)},eo))},A=ee=>{var en=ee,{href:er=""}=en,ei=__objRest(en,["href"]);return(0,eC.jsx)(rw,__spreadValues({href:er,newWindow:rK.test(er)},ei))},getComponents=({isRawLayout:ee,components:en})=>{if(ee)return{a:A};let er={index:0};return __spreadValues({h1:ee=>(0,eC.jsx)("h1",__spreadValues({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},ee)),h2:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h2",context:er},ee)),h3:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h3",context:er},ee)),h4:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h4",context:er},ee)),h5:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h5",context:er},ee)),h6:ee=>(0,eC.jsx)(HeadingLink,__spreadValues({tag:"h6",context:er},ee)),ul:ee=>(0,eC.jsx)("ul",__spreadValues({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),ol:ee=>(0,eC.jsx)("ol",__spreadValues({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),li:ee=>(0,eC.jsx)("li",__spreadValues({className:"nx-my-2"},ee)),blockquote:ee=>(0,eC.jsx)("blockquote",__spreadValues({className:dist_clsx("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},ee)),hr:ee=>(0,eC.jsx)("hr",__spreadValues({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},ee)),a:Link,table:ee=>(0,eC.jsx)(rr.iA,__spreadValues({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},ee)),p:ee=>(0,eC.jsx)("p",__spreadValues({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},ee)),tr:rr.Tr,th:rr.Th,td:rr.Td,details:Details,summary:Summary,pre:rr.SU,code:rr.EK},en)},rY={toc:dist_clsx("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:dist_clsx("nx-w-full nx-break-words")},Body=({themeContext:ee,breadcrumb:en,timestamp:er,navigation:ei,children:eo})=>{var es;let eu=useConfig(),ec=useMounted();if("raw"===ee.layout)return(0,eC.jsx)("div",{className:rY.main,children:eo});let ed=ee.timestamp&&eu.gitTimestamp&&er?new Date(er):null,eh=ec&&ed?(0,eC.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:renderComponent(eu.gitTimestamp,{timestamp:ed})}):(0,eC.jsx)("div",{className:"nx-mt-16"}),ep=(0,eC.jsxs)(eC.Fragment,{children:[eo,eh,ei]}),ef=(null==(es=eu.main)?void 0:es.call(eu,{children:ep}))||ep;return"full"===ee.layout?(0,eC.jsx)("article",{className:dist_clsx(rY.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:ef}):(0,eC.jsx)("article",{className:dist_clsx(rY.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===ee.typesetting&&"nextra-body-typesetting-article"),children:(0,eC.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[en,ef]})})},InnerLayout=({filePath:ee,pageMap:en,frontMatter:er,headings:ei,timestamp:eo,children:es})=>{let eu=useConfig(),{locale:ec=rV,defaultLocale:ed}=(0,eE.useRouter)(),eh=useFSRoute(),{activeType:ep,activeIndex:ef,activeThemeContext:em,activePath:eg,topLevelNavbarItems:ex,docsDirectories:ev,flatDirectories:ey,flatDocsDirectories:eb,directories:e_}=(0,eO.useMemo)(()=>normalizePages({list:en,locale:ec,defaultLocale:ed,route:eh}),[en,ec,ed,eh]),ew=__spreadValues(__spreadValues({},em),er),ek=!ew.sidebar||"raw"===ew.layout||"page"===ep,eT="page"!==ep&&ew.toc&&"default"===ew.layout?(0,eC.jsx)("nav",{className:dist_clsx(rY.toc,"nx-px-4"),"aria-label":"table of contents",children:renderComponent(eu.toc.component,{headings:eu.toc.float?ei:[],filePath:ee})}):"full"!==ew.layout&&"raw"!==ew.layout&&(0,eC.jsx)("nav",{className:rY.toc,"aria-label":"table of contents"}),eP=eu.i18n.find(ee=>ee.locale===ec),eI=eP?"rtl"===eP.direction:"rtl"===eu.direction,ej=eI?"rtl":"ltr";return(0,eC.jsxs)("div",{dir:ej,children:[(0,eC.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${ej}')`}}),(0,eC.jsx)(dist_Head,{}),(0,eC.jsx)(Banner,{}),ew.navbar&&renderComponent(eu.navbar.component,{flatDirectories:ey,items:ex}),(0,eC.jsx)("div",{className:dist_clsx("nx-mx-auto nx-flex","raw"!==ew.layout&&"nx-max-w-[90rem]"),children:(0,eC.jsxs)(ActiveAnchorProvider,{children:[(0,eC.jsx)(Sidebar,{docsDirectories:ev,flatDirectories:ey,fullDirectories:e_,headings:ei,asPopover:ek,includePlaceholder:"default"===ew.layout}),eT,(0,eC.jsx)(rF,{}),(0,eC.jsx)(Body,{themeContext:ew,breadcrumb:"page"!==ep&&ew.breadcrumb?(0,eC.jsx)(Breadcrumb,{activePath:eg}):null,timestamp:eo,navigation:"page"!==ep&&ew.pagination?(0,eC.jsx)(NavLinks,{flatDirectories:eb,currentIndex:ef}):null,children:(0,eC.jsx)(eS.Z,{components:getComponents({isRawLayout:"raw"===ew.layout,components:eu.components}),children:es})})]})}),ew.footer&&renderComponent(eu.footer.component,{menu:ek})]})};function Layout(ee){var en=ee,{children:er}=en,ei=__objRest(en,["children"]);return(0,eC.jsx)(ConfigProvider,{value:ei,children:(0,eC.jsx)(InnerLayout,__spreadProps(__spreadValues({},ei.pageOpts),{children:er}))})}let rX={logo:(0,eC.jsxs)(eC.Fragment,{children:[(0,eC.jsxs)("svg",{width:"24",height:"22",viewBox:"0 0 72 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eC.jsx)("path",{d:"M24.3551 53.1043L10.8159 29.6575C10.1275 28.4702 10.1275 27.0035 10.8159 25.8162L24.3551 2.36947C25.0436 1.18217 26.3107 0.443848 27.6876 0.443848H54.7661C56.143 0.443848 57.4101 1.17219 58.0985 2.36947L71.6378 25.8162L64.9829 29.6575L52.5511 8.13638H29.9125L18.5982 27.7419L31.03 49.263L24.3751 53.1043H24.3551Z",fill:"#9C6CFF"}),(0,eC.jsx)("path",{d:"M44.1545 65.8455H17.076C15.6992 65.8455 14.432 65.1171 13.7436 63.9198L0.204346 40.4731L6.85923 36.6318L19.291 58.1529H41.9296L53.2439 38.5475L40.8121 17.0263L47.467 13.1851L61.0063 36.6318C61.6947 37.8191 61.6947 39.2858 61.0063 40.4731L47.467 63.9198C46.7786 65.1071 45.5115 65.8455 44.1346 65.8455H44.1545Z",fill:"#05D2DD"})]}),(0,eC.jsx)("span",{style:{marginLeft:".4em",fontWeight:800},children:"Cosmostation"})]}),project:{link:"https://github.com/cosmostation"},docsRepositoryBase:"https://github.com/cosmostation/cosmostation-wallet-docs",useNextSeoProps:()=>({titleTemplate:"%s – Cosmostation Docs"})};var rJ=rX;er(9128);var r0=er(5425);let MDXLayout=function(ee){let{Component:en,pageProps:er}=ee;return(0,eC.jsx)(r0.a_,{children:(0,eC.jsx)(en,{...er})})},r1=[];function _createMdxContent(ee){return(0,eC.jsx)(eC.Fragment,{})}var _app=function(){let ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eC.jsx)(MDXLayout,{...ee,children:(0,eC.jsx)(_createMdxContent,{...ee})})};let r2=(ew=globalThis)[ek=Symbol.for("__nextra_internal__")]||(ew[ek]=Object.create(null));r2.Layout=Layout,r2.pageMap=[{kind:"Meta",data:{index:{title:"Cosmostation",display:"hidden",type:"page"},mintscan:{type:"page",title:"Mintscan"},apis:{type:"page",title:"API"},extension:{type:"page",title:"Extension Wallet"},mobile:{type:"page",title:"Mobile Wallets"},mintstation:{type:"page",title:"Mintstation"}}},{kind:"Folder",name:"apis",route:"/apis",children:[{kind:"Meta",data:{index:"Introduction",reference:"API Reference"}},{kind:"MdxPage",name:"index",route:"/apis"},{kind:"Folder",name:"reference",route:"/apis/reference",children:[{kind:"Meta",data:{proxy:"Proxy",utilities:"Utility API",historical:"Historical API",builder:"Builder API",statistics:"Statistics API",custom:"Custom API"}},{kind:"Folder",name:"builder",route:"/apis/reference/builder",children:[{kind:"Meta",data:{"tx-builder":"Transaction Builder"}},{kind:"Folder",name:"tx-builder",route:"/apis/reference/builder/tx-builder",children:[{kind:"Meta",data:{build:"Build Transaction","make-signature":"Sign Transaction",broadcast:"Broadcast Transaction"}},{kind:"MdxPage",name:"broadcast",route:"/apis/reference/builder/tx-builder/broadcast"},{kind:"MdxPage",name:"build",route:"/apis/reference/builder/tx-builder/build"},{kind:"MdxPage",name:"make-signature",route:"/apis/reference/builder/tx-builder/make-signature"}]}]},{kind:"Folder",name:"custom",route:"/apis/reference/custom",children:[{kind:"Meta",data:{account:"Account"}},{kind:"MdxPage",name:"account",route:"/apis/reference/custom/account"}]},{kind:"Folder",name:"historical",route:"/apis/reference/historical",children:[{kind:"Meta",data:{account:"Account",validator:"Validator"}},{kind:"Folder",name:"account",route:"/apis/reference/historical/account",children:[{kind:"Meta",data:{"account-transactions":"Account Transactions","account-votes":"Account Votes","account-balances":"Account Balance History","account-richlist":"Account Richlist"}},{kind:"MdxPage",name:"account-balances",route:"/apis/reference/historical/account/account-balances"},{kind:"MdxPage",name:"account-richlist",route:"/apis/reference/historical/account/account-richlist"},{kind:"MdxPage",name:"account-transactions",route:"/apis/reference/historical/account/account-transactions"},{kind:"MdxPage",name:"account-votes",route:"/apis/reference/historical/account/account-votes"}]},{kind:"Folder",name:"validator",route:"/apis/reference/historical/validator",children:[{kind:"Meta",data:{"validator-votes":"Validator Votes","validator-commissions":"Validator Commission Balance History","validator-delegators":"Validator Delegators","validator-block-sign":"Validator Block Sign","validator-power-events":"Validator Voting Power Events","validator-proposed-blocks":"Validator Proposed Blocks"}},{kind:"MdxPage",name:"validator-block-sign",route:"/apis/reference/historical/validator/validator-block-sign"},{kind:"MdxPage",name:"validator-commissions",route:"/apis/reference/historical/validator/validator-commissions"},{kind:"MdxPage",name:"validator-delegators",route:"/apis/reference/historical/validator/validator-delegators"},{kind:"MdxPage",name:"validator-power-events",route:"/apis/reference/historical/validator/validator-power-events"},{kind:"MdxPage",name:"validator-proposed-blocks",route:"/apis/reference/historical/validator/validator-proposed-blocks"},{kind:"MdxPage",name:"validator-votes",route:"/apis/reference/historical/validator/validator-votes"}]}]},{kind:"Folder",name:"proxy",route:"/apis/reference/proxy",children:[{kind:"Meta",data:{lcd:"LCD Proxy"}},{kind:"MdxPage",name:"lcd",route:"/apis/reference/proxy/lcd"}]},{kind:"Folder",name:"statistics",route:"/apis/reference/statistics",children:[{kind:"Meta",data:{transactions:"Transactions",messages:"Message Types"}},{kind:"MdxPage",name:"messages",route:"/apis/reference/statistics/messages"},{kind:"MdxPage",name:"transactions",route:"/apis/reference/statistics/transactions"}]},{kind:"Folder",name:"utilities",route:"/apis/reference/utilities",children:[{kind:"Meta",data:{"node-info":"Node Info",inflation:"Inflation","staking-apr":"Staking APR",assets:"Assets",prices:"Prices"}},{kind:"MdxPage",name:"assets",route:"/apis/reference/utilities/assets"},{kind:"MdxPage",name:"inflation",route:"/apis/reference/utilities/inflation"},{kind:"MdxPage",name:"node-info",route:"/apis/reference/utilities/node-info"},{kind:"MdxPage",name:"prices",route:"/apis/reference/utilities/prices"},{kind:"MdxPage",name:"staking-apr",route:"/apis/reference/utilities/staking-apr"}]}]}]},{kind:"Folder",name:"extension",route:"/extension",children:[{kind:"Meta",data:{index:"Introduction",integration:"Integration",guide:"User guide"}},{kind:"Folder",name:"guide",route:"/extension/guide",children:[{kind:"Meta",data:{account:"Account","transfer-coins":"Transfer Coins",chains:"Chains",dapps:"Dapps",settings:"Settings"}},{kind:"Folder",name:"account",route:"/extension/guide/account",children:[{kind:"Meta",data:{intro:"Introduction","add-account":"Add Account","add-ledger-account":"Add Ledger Account"}},{kind:"MdxPage",name:"add-account",route:"/extension/guide/account/add-account"},{kind:"MdxPage",name:"add-ledger-account",route:"/extension/guide/account/add-ledger-account"},{kind:"MdxPage",name:"intro",route:"/extension/guide/account/intro"}]},{kind:"MdxPage",name:"chains",route:"/extension/guide/chains"},{kind:"MdxPage",name:"dapps",route:"/extension/guide/dapps"},{kind:"MdxPage",name:"settings",route:"/extension/guide/settings"},{kind:"MdxPage",name:"transfer-coins",route:"/extension/guide/transfer-coins"}]},{kind:"MdxPage",name:"index",route:"/extension"},{kind:"Folder",name:"integration",route:"/extension/integration",children:[{kind:"Meta",data:{cosmos:"Cosmos Chains",evm:"EVM Network",aptos:"APTOS Network",sui:"SUI Network"}},{kind:"Folder",name:"aptos",route:"/extension/integration/aptos",children:[{kind:"Meta",data:{provider:"Provider","connect-and-account":"Connect & Account","sign-and-submit-transaction":"Sign & Submit Transaction",network:"Network",event:"Event"}},{kind:"MdxPage",name:"connect-and-account",route:"/extension/integration/aptos/connect-and-account"},{kind:"MdxPage",name:"event",route:"/extension/integration/aptos/event"},{kind:"MdxPage",name:"network",route:"/extension/integration/aptos/network"},{kind:"MdxPage",name:"provider",route:"/extension/integration/aptos/provider"},{kind:"MdxPage",name:"sign-and-submit-transaction",route:"/extension/integration/aptos/sign-and-submit-transaction"}]},{kind:"Folder",name:"cosmos",route:"/extension/integration/cosmos",children:[{kind:"Folder",name:"Deprecated",route:"/extension/integration/cosmos/Deprecated",children:[{kind:"Meta",data:{provider:"Provider",chains:"Chains",accounts:"Accounts","sign-tx":"Sign Transaction","sign-message":"Sign Message","send-tx":"Send Transaction","cw20-token":"CW20 Tokens",disconnect:"Disconnect",event:"Event",error:"Error"}},{kind:"MdxPage",name:"accounts",route:"/extension/integration/cosmos/Deprecated/accounts"},{kind:"MdxPage",name:"chains",route:"/extension/integration/cosmos/Deprecated/chains"},{kind:"MdxPage",name:"cw20-token",route:"/extension/integration/cosmos/Deprecated/cw20-token"},{kind:"MdxPage",name:"disconnect",route:"/extension/integration/cosmos/Deprecated/disconnect"},{kind:"MdxPage",name:"error",route:"/extension/integration/cosmos/Deprecated/error",frontMatter:{sidebar_position:11}},{kind:"MdxPage",name:"event",route:"/extension/integration/cosmos/Deprecated/event",frontMatter:{sidebar_position:10}},{kind:"MdxPage",name:"provider",route:"/extension/integration/cosmos/Deprecated/provider"},{kind:"MdxPage",name:"send-tx",route:"/extension/integration/cosmos/Deprecated/send-tx"},{kind:"MdxPage",name:"sign-message",route:"/extension/integration/cosmos/Deprecated/sign-message"},{kind:"MdxPage",name:"sign-tx",route:"/extension/integration/cosmos/Deprecated/sign-tx"}]},{kind:"Meta",data:{vanilla:"Vanilla",typescript:"Typescript","react-hook":"React Hook",wallet:"Wallet",proto:"Protobuf json","integrate-cosmjs":"Integrate Cosmjs","integrate-keplr":"Integrate Keplr"}},{kind:"MdxPage",name:"integrate-cosmjs",route:"/extension/integration/cosmos/integrate-cosmjs"},{kind:"MdxPage",name:"integrate-keplr",route:"/extension/integration/cosmos/integrate-keplr",frontMatter:{sidebar_position:13}},{kind:"MdxPage",name:"proto",route:"/extension/integration/cosmos/proto"},{kind:"MdxPage",name:"react-hook",route:"/extension/integration/cosmos/react-hook"},{kind:"MdxPage",name:"typescript",route:"/extension/integration/cosmos/typescript"},{kind:"MdxPage",name:"vanilla",route:"/extension/integration/cosmos/vanilla"},{kind:"MdxPage",name:"wallet",route:"/extension/integration/cosmos/wallet"}]},{kind:"Folder",name:"evm",route:"/extension/integration/evm",children:[{kind:"Meta",data:{provider:"Provider","use-web3-js":"Use web3.js","use-ethers":"Use ethers",event:"Event","supported-rpc-methods":"Supported RPC Methods"}},{kind:"MdxPage",name:"event",route:"/extension/integration/evm/event"},{kind:"MdxPage",name:"provider",route:"/extension/integration/evm/provider"},{kind:"MdxPage",name:"supported-rpc-methods",route:"/extension/integration/evm/supported-rpc-methods"},{kind:"MdxPage",name:"use-ethers",route:"/extension/integration/evm/use-ethers"},{kind:"MdxPage",name:"use-web3-js",route:"/extension/integration/evm/use-web3-js"}]},{kind:"Folder",name:"sui",route:"/extension/integration/sui",children:[{kind:"Meta",data:{provider:"Provider","connect-and-get-accounts":"Connect & Get Accounts","sign-and-execute-transaction":"Sign & Execute Transaction","execute-move-call":"Execute Move Call"}},{kind:"MdxPage",name:"connect-and-get-accounts",route:"/extension/integration/sui/connect-and-get-accounts"},{kind:"MdxPage",name:"execute-move-call",route:"/extension/integration/sui/execute-move-call"},{kind:"MdxPage",name:"provider",route:"/extension/integration/sui/provider"},{kind:"MdxPage",name:"sign-and-execute-transaction",route:"/extension/integration/sui/sign-and-execute-transaction"}]}]}]},{kind:"MdxPage",name:"index",route:"/"},{kind:"Folder",name:"mintscan",route:"/mintscan",children:[{kind:"Meta",data:{index:"Introduction",registry:"Registry"}},{kind:"MdxPage",name:"index",route:"/mintscan"},{kind:"Folder",name:"registry",route:"/mintscan/registry",children:[{kind:"Meta",data:{moniker:"Validator moniker",assets:"Asset Metadata",erc20:"ERC20 Metadata",cw20:"CW20 Metadata",ecosystem:"Ecosystem"}},{kind:"MdxPage",name:"assets",route:"/mintscan/registry/assets"},{kind:"MdxPage",name:"cw20",route:"/mintscan/registry/cw20"},{kind:"MdxPage",name:"ecosystem",route:"/mintscan/registry/ecosystem"},{kind:"MdxPage",name:"erc20",route:"/mintscan/registry/erc20"},{kind:"MdxPage",name:"moniker",route:"/mintscan/registry/moniker"}]}]},{kind:"Folder",name:"mintstation",route:"/mintstation",children:[{kind:"Meta",data:{index:"Introduction",cli:"CLI",validator:"Node & Validator",module:"Building Modules",contracts:"Smart Contracts"}},{kind:"Folder",name:"cli",route:"/mintstation/cli",children:[{kind:"Meta",data:{index:"CLI Introduction",setup:"Setup CLI",command:"Useful CLI Commands"}},{kind:"MdxPage",name:"command",route:"/mintstation/cli/command",frontMatter:{cover:"../.gitbook/assets/Discord Invite (1) (50).png",coverY:262}},{kind:"MdxPage",name:"index",route:"/mintstation/cli"},{kind:"MdxPage",name:"setup",route:"/mintstation/cli/setup"}]},{kind:"Folder",name:"contracts",route:"/mintstation/contracts",children:[{kind:"Meta",data:{create:"Create Contracts",compile:"Compile Contracts",deploy:"Store Codes",query:"Query Contracts",execute:"Execute Contracts"}},{kind:"MdxPage",name:"compile",route:"/mintstation/contracts/compile"},{kind:"MdxPage",name:"create",route:"/mintstation/contracts/create"},{kind:"MdxPage",name:"deploy",route:"/mintstation/contracts/deploy"},{kind:"MdxPage",name:"execute",route:"/mintstation/contracts/execute"},{kind:"MdxPage",name:"query",route:"/mintstation/contracts/query"}]},{kind:"MdxPage",name:"index",route:"/mintstation"},{kind:"MdxPage",name:"module",route:"/mintstation/module"},{kind:"Folder",name:"validator",route:"/mintstation/validator",children:[{kind:"Meta",data:{localnet:"Setup Local Network",mainnet:"Joining Mainnet",delegations:"Delegations",upgrade:"Node Upgrades",command:"Useful Commands"}},{kind:"MdxPage",name:"command",route:"/mintstation/validator/command"},{kind:"MdxPage",name:"delegations",route:"/mintstation/validator/delegations"},{kind:"MdxPage",name:"localnet",route:"/mintstation/validator/localnet"},{kind:"MdxPage",name:"mainnet",route:"/mintstation/validator/mainnet"},{kind:"MdxPage",name:"upgrade",route:"/mintstation/validator/upgrade"}]}]},{kind:"Folder",name:"mobile",route:"/mobile",children:[{kind:"Meta",data:{index:"Introduction",integration:"Integration",listing:"Listing on mobile",article:"Article"}},{kind:"MdxPage",name:"article",route:"/mobile/article"},{kind:"MdxPage",name:"index",route:"/mobile"},{kind:"Folder",name:"integration",route:"/mobile/integration",children:[{kind:"Meta",data:{cosmostation:"Cosmostation Specs",walletconnect2:"WalletConnect 2.0",cosmoskit:{title:"Cosmos-Kit ↗",href:"https://docs.cosmoskit.com/integrating-wallets/cosmostation",newWindow:!0},cosmjs:"Cosmjs",walletconnect:"WalletConnect 1.0(Deprecated)"}},{kind:"MdxPage",name:"cosmjs",route:"/mobile/integration/cosmjs"},{kind:"MdxPage",name:"cosmostation",route:"/mobile/integration/cosmostation"},{kind:"Folder",name:"walletconnect",route:"/mobile/integration/walletconnect",children:[{kind:"Meta",data:{connect:"Connect",accounts:"Accounts","sign-tx":"Sign Transaction"}},{kind:"MdxPage",name:"accounts",route:"/mobile/integration/walletconnect/accounts"},{kind:"MdxPage",name:"connect",route:"/mobile/integration/walletconnect/connect"},{kind:"MdxPage",name:"sign-tx",route:"/mobile/integration/walletconnect/sign-tx"}]},{kind:"MdxPage",name:"walletconnect2",route:"/mobile/integration/walletconnect2"}]},{kind:"MdxPage",name:"listing",route:"/mobile/listing"}]}],r2.flexsearch={codeblocks:!0},r2.themeConfig=rJ},7498:function(ee,en){"use strict";var er;Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{PrefetchKind:function(){return er},ACTION_REFRESH:function(){return ei},ACTION_NAVIGATE:function(){return eo},ACTION_RESTORE:function(){return es},ACTION_SERVER_PATCH:function(){return eu},ACTION_PREFETCH:function(){return ec},ACTION_FAST_REFRESH:function(){return ed},ACTION_SERVER_ACTION:function(){return eh}});let ei="refresh",eo="navigate",es="restore",eu="server-patch",ec="prefetch",ed="fast-refresh",eh="server-action";!function(ee){ee.AUTO="auto",ee.FULL="full",ee.TEMPORARY="temporary"}(er||(er={})),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},30:function(ee,en,er){"use strict";function getDomainLocale(ee,en,er,ei){return!1}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),er(2866),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},3271:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"Image",{enumerable:!0,get:function(){return ev}});let ei=er(8754),eo=er(1757),es=eo._(er(7294)),eu=ei._(er(3935)),ec=ei._(er(9201)),ed=er(3914),eh=er(5494),ep=er(869);er(1905);let ef=er(1823),em=ei._(er(4545)),eg={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function handleLoading(ee,en,er,ei,eo,es){let eu=null==ee?void 0:ee.src;if(!ee||ee["data-loaded-src"]===eu)return;ee["data-loaded-src"]=eu;let ec="decode"in ee?ee.decode():Promise.resolve();ec.catch(()=>{}).then(()=>{if(ee.parentElement&&ee.isConnected){if("empty"!==en&&eo(!0),null==er?void 0:er.current){let en=new Event("load");Object.defineProperty(en,"target",{writable:!1,value:ee});let ei=!1,eo=!1;er.current({...en,nativeEvent:en,currentTarget:ee,target:ee,isDefaultPrevented:()=>ei,isPropagationStopped:()=>eo,persist:()=>{},preventDefault:()=>{ei=!0,en.preventDefault()},stopPropagation:()=>{eo=!0,en.stopPropagation()}})}(null==ei?void 0:ei.current)&&ei.current(ee)}})}function getDynamicProps(ee){let[en,er]=es.version.split("."),ei=parseInt(en,10),eo=parseInt(er,10);return ei>18||18===ei&&eo>=3?{fetchPriority:ee}:{fetchpriority:ee}}let ex=(0,es.forwardRef)((ee,en)=>{let{src:er,srcSet:ei,sizes:eo,height:eu,width:ec,decoding:ed,className:eh,style:ep,fetchPriority:ef,placeholder:em,loading:eg,unoptimized:ex,fill:ev,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:e_,setShowAltText:ew,onLoad:ek,onError:eC,...eE}=ee;return es.default.createElement("img",{...eE,...getDynamicProps(ef),loading:eg,width:ec,height:eu,decoding:ed,"data-nimg":ev?"fill":"1",className:eh,style:ep,sizes:eo,srcSet:ei,src:er,ref:(0,es.useCallback)(ee=>{en&&("function"==typeof en?en(ee):"object"==typeof en&&(en.current=ee)),ee&&(eC&&(ee.src=ee.src),ee.complete&&handleLoading(ee,em,ey,eb,e_,ex))},[er,em,ey,eb,e_,eC,ex,en]),onLoad:ee=>{let en=ee.currentTarget;handleLoading(en,em,ey,eb,e_,ex)},onError:ee=>{ew(!0),"empty"!==em&&e_(!0),eC&&eC(ee)}})});function ImagePreload(ee){let{isAppRouter:en,imgAttributes:er}=ee,ei={as:"image",imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:er.crossOrigin,referrerPolicy:er.referrerPolicy,...getDynamicProps(er.fetchPriority)};return en&&eu.default.preload?(eu.default.preload(er.src,ei),null):es.default.createElement(ec.default,null,es.default.createElement("link",{key:"__nimg-"+er.src+er.srcSet+er.sizes,rel:"preload",href:er.srcSet?void 0:er.src,...ei}))}let ev=(0,es.forwardRef)((ee,en)=>{let er=(0,es.useContext)(ef.RouterContext),ei=!er,eo=(0,es.useContext)(ep.ImageConfigContext),eu=(0,es.useMemo)(()=>{let ee=eg||eo||eh.imageConfigDefault,en=[...ee.deviceSizes,...ee.imageSizes].sort((ee,en)=>ee-en),er=ee.deviceSizes.sort((ee,en)=>ee-en);return{...ee,allSizes:en,deviceSizes:er}},[eo]),{onLoad:ec,onLoadingComplete:ev}=ee,ey=(0,es.useRef)(ec);(0,es.useEffect)(()=>{ey.current=ec},[ec]);let eb=(0,es.useRef)(ev);(0,es.useEffect)(()=>{eb.current=ev},[ev]);let[e_,ew]=(0,es.useState)(!1),[ek,eC]=(0,es.useState)(!1),{props:eE,meta:eO}=(0,ed.getImgProps)(ee,{defaultLoader:em.default,imgConf:eu,blurComplete:e_,showAltText:ek});return es.default.createElement(es.default.Fragment,null,es.default.createElement(ex,{...eE,unoptimized:eO.unoptimized,placeholder:eO.placeholder,fill:eO.fill,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:ew,setShowAltText:eC,ref:en}),eO.priority?es.default.createElement(ImagePreload,{isAppRouter:ei,imgAttributes:eE}):null)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5170:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return e_}});let ei=er(8754),eo=ei._(er(7294)),es=er(4450),eu=er(2227),ec=er(4364),ed=er(109),eh=er(3607),ep=er(1823),ef=er(9031),em=er(920),eg=er(30),ex=er(7192),ev=er(7498),ey=new Set;function prefetch(ee,en,er,ei,eo,es){if(!es&&!(0,eu.isLocalURL)(en))return;if(!ei.bypassPrefetchedCheck){let eo=void 0!==ei.locale?ei.locale:"locale"in ee?ee.locale:void 0,es=en+"%"+er+"%"+eo;if(ey.has(es))return;ey.add(es)}let ec=es?ee.prefetch(en,eo):ee.prefetch(en,er,ei);Promise.resolve(ec).catch(ee=>{})}function isModifiedEvent(ee){let en=ee.currentTarget,er=en.getAttribute("target");return er&&"_self"!==er||ee.metaKey||ee.ctrlKey||ee.shiftKey||ee.altKey||ee.nativeEvent&&2===ee.nativeEvent.which}function linkClicked(ee,en,er,ei,es,ec,ed,eh,ep,ef){let{nodeName:em}=ee.currentTarget,eg="A"===em.toUpperCase();if(eg&&(isModifiedEvent(ee)||!ep&&!(0,eu.isLocalURL)(er)))return;ee.preventDefault();let navigate=()=>{let ee=null==ed||ed;"beforePopState"in en?en[es?"replace":"push"](er,ei,{shallow:ec,locale:eh,scroll:ee}):en[es?"replace":"push"](ei||er,{forceOptimisticNavigation:!ef,scroll:ee})};ep?eo.default.startTransition(navigate):navigate()}function formatStringOrUrl(ee){return"string"==typeof ee?ee:(0,ec.formatUrl)(ee)}let eb=eo.default.forwardRef(function(ee,en){let er,ei;let{href:eu,as:ec,children:ey,prefetch:eb=null,passHref:e_,replace:ew,shallow:ek,scroll:eC,locale:eE,onClick:eO,onMouseEnter:eT,onTouchStart:eP,legacyBehavior:eS=!1,...eI}=ee;er=ey,eS&&("string"==typeof er||"number"==typeof er)&&(er=eo.default.createElement("a",null,er));let ej=eo.default.useContext(ep.RouterContext),eR=eo.default.useContext(ef.AppRouterContext),eM=null!=ej?ej:eR,eN=!ej,eA=!1!==eb,eL=null===eb?ev.PrefetchKind.AUTO:ev.PrefetchKind.FULL,{href:eZ,as:eF}=eo.default.useMemo(()=>{if(!ej){let ee=formatStringOrUrl(eu);return{href:ee,as:ec?formatStringOrUrl(ec):ee}}let[ee,en]=(0,es.resolveHref)(ej,eu,!0);return{href:ee,as:ec?(0,es.resolveHref)(ej,ec):en||ee}},[ej,eu,ec]),eD=eo.default.useRef(eZ),eU=eo.default.useRef(eF);eS&&(ei=eo.default.Children.only(er));let eV=eS?ei&&"object"==typeof ei&&ei.ref:en,[ez,eB,eW]=(0,em.useIntersection)({rootMargin:"200px"}),eH=eo.default.useCallback(ee=>{(eU.current!==eF||eD.current!==eZ)&&(eW(),eU.current=eF,eD.current=eZ),ez(ee),eV&&("function"==typeof eV?eV(ee):"object"==typeof eV&&(eV.current=ee))},[eF,eV,eZ,eW,ez]);eo.default.useEffect(()=>{eM&&eB&&eA&&prefetch(eM,eZ,eF,{locale:eE},{kind:eL},eN)},[eF,eZ,eB,eE,eA,null==ej?void 0:ej.locale,eM,eN,eL]);let eq={ref:eH,onClick(ee){eS||"function"!=typeof eO||eO(ee),eS&&ei.props&&"function"==typeof ei.props.onClick&&ei.props.onClick(ee),eM&&!ee.defaultPrevented&&linkClicked(ee,eM,eZ,eF,ew,ek,eC,eE,eN,eA)},onMouseEnter(ee){eS||"function"!=typeof eT||eT(ee),eS&&ei.props&&"function"==typeof ei.props.onMouseEnter&&ei.props.onMouseEnter(ee),eM&&(eA||!eN)&&prefetch(eM,eZ,eF,{locale:eE,priority:!0,bypassPrefetchedCheck:!0},{kind:eL},eN)},onTouchStart(ee){eS||"function"!=typeof eP||eP(ee),eS&&ei.props&&"function"==typeof ei.props.onTouchStart&&ei.props.onTouchStart(ee),eM&&(eA||!eN)&&prefetch(eM,eZ,eF,{locale:eE,priority:!0,bypassPrefetchedCheck:!0},{kind:eL},eN)}};if((0,ed.isAbsoluteUrl)(eF))eq.href=eF;else if(!eS||e_||"a"===ei.type&&!("href"in ei.props)){let ee=void 0!==eE?eE:null==ej?void 0:ej.locale,en=(null==ej?void 0:ej.isLocaleDomain)&&(0,eg.getDomainLocale)(eF,ee,null==ej?void 0:ej.locales,null==ej?void 0:ej.domainLocales);eq.href=en||(0,ex.addBasePath)((0,eh.addLocale)(eF,ee,null==ej?void 0:ej.defaultLocale))}return eS?eo.default.cloneElement(ei,eq):eo.default.createElement("a",{...eI,...eq},er)}),e_=eb;("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},920:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let ei=er(7294),eo=er(3436),es="function"==typeof IntersectionObserver,eu=new Map,ec=[];function createObserver(ee){let en;let er={root:ee.root||null,margin:ee.rootMargin||""},ei=ec.find(ee=>ee.root===er.root&&ee.margin===er.margin);if(ei&&(en=eu.get(ei)))return en;let eo=new Map,es=new IntersectionObserver(ee=>{ee.forEach(ee=>{let en=eo.get(ee.target),er=ee.isIntersecting||ee.intersectionRatio>0;en&&er&&en(er)})},ee);return en={id:er,observer:es,elements:eo},ec.push(er),eu.set(er,en),en}function observe(ee,en,er){let{id:ei,observer:eo,elements:es}=createObserver(er);return es.set(ee,en),eo.observe(ee),function(){if(es.delete(ee),eo.unobserve(ee),0===es.size){eo.disconnect(),eu.delete(ei);let ee=ec.findIndex(ee=>ee.root===ei.root&&ee.margin===ei.margin);ee>-1&&ec.splice(ee,1)}}}function useIntersection(ee){let{rootRef:en,rootMargin:er,disabled:eu}=ee,ec=eu||!es,[ed,eh]=(0,ei.useState)(!1),ep=(0,ei.useRef)(null),ef=(0,ei.useCallback)(ee=>{ep.current=ee},[]);(0,ei.useEffect)(()=>{if(es){if(ec||ed)return;let ee=ep.current;if(ee&&ee.tagName){let ei=observe(ee,ee=>ee&&eh(ee),{root:null==en?void 0:en.current,rootMargin:er});return ei}}else if(!ed){let ee=(0,eo.requestIdleCallback)(()=>eh(!0));return()=>(0,eo.cancelIdleCallback)(ee)}},[ec,er,en,ed,ep.current]);let em=(0,ei.useCallback)(()=>{eh(!1)},[]);return[ef,ed,em]}("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},3914:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),er(1905);let ei=er(2393),eo=er(5494);function isStaticRequire(ee){return void 0!==ee.default}function isStaticImageData(ee){return void 0!==ee.src}function isStaticImport(ee){return"object"==typeof ee&&(isStaticRequire(ee)||isStaticImageData(ee))}function getInt(ee){return void 0===ee?ee:"number"==typeof ee?Number.isFinite(ee)?ee:NaN:"string"==typeof ee&&/^[0-9]+$/.test(ee)?parseInt(ee,10):NaN}function getWidths(ee,en,er){let{deviceSizes:ei,allSizes:eo}=ee;if(er){let ee=/(^|\s)(1?\d?\d)vw/g,en=[];for(let ei;ei=ee.exec(er);ei)en.push(parseInt(ei[2]));if(en.length){let ee=.01*Math.min(...en);return{widths:eo.filter(en=>en>=ei[0]*ee),kind:"w"}}return{widths:eo,kind:"w"}}if("number"!=typeof en)return{widths:ei,kind:"w"};let es=[...new Set([en,2*en].map(ee=>eo.find(en=>en>=ee)||eo[eo.length-1]))];return{widths:es,kind:"x"}}function generateImgAttrs(ee){let{config:en,src:er,unoptimized:ei,width:eo,quality:es,sizes:eu,loader:ec}=ee;if(ei)return{src:er,srcSet:void 0,sizes:void 0};let{widths:ed,kind:eh}=getWidths(en,eo,eu),ep=ed.length-1;return{sizes:eu||"w"!==eh?eu:"100vw",srcSet:ed.map((ee,ei)=>ec({config:en,src:er,quality:es,width:ee})+" "+("w"===eh?ee:ei+1)+eh).join(", "),src:ec({config:en,src:er,quality:es,width:ed[ep]})}}function getImgProps(ee,en){let er,es,eu,{src:ec,sizes:ed,unoptimized:eh=!1,priority:ep=!1,loading:ef,className:em,quality:eg,width:ex,height:ev,fill:ey=!1,style:eb,onLoad:e_,onLoadingComplete:ew,placeholder:ek="empty",blurDataURL:eC,fetchPriority:eE,layout:eO,objectFit:eT,objectPosition:eP,lazyBoundary:eS,lazyRoot:eI,...ej}=ee,{imgConf:eR,showAltText:eM,blurComplete:eN,defaultLoader:eA}=en,eL=eR||eo.imageConfigDefault;if("allSizes"in eL)er=eL;else{let ee=[...eL.deviceSizes,...eL.imageSizes].sort((ee,en)=>ee-en),en=eL.deviceSizes.sort((ee,en)=>ee-en);er={...eL,allSizes:ee,deviceSizes:en}}let eZ=ej.loader||eA;delete ej.loader,delete ej.srcSet;let eF="__next_img_default"in eZ;if(eF){if("custom"===er.loader)throw Error('Image with src "'+ec+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let ee=eZ;eZ=en=>{let{config:er,...ei}=en;return ee(ei)}}if(eO){"fill"===eO&&(ey=!0);let ee={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},en={responsive:"100vw",fill:"100vw"},er=ee[eO];er&&(eb={...eb,...er});let ei=en[eO];ei&&!ed&&(ed=ei)}let eD="",eU=getInt(ex),eV=getInt(ev);if(isStaticImport(ec)){let ee=isStaticRequire(ec)?ec.default:ec;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(es=ee.blurWidth,eu=ee.blurHeight,eC=eC||ee.blurDataURL,eD=ee.src,!ey){if(eU||eV){if(eU&&!eV){let en=eU/ee.width;eV=Math.round(ee.height*en)}else if(!eU&&eV){let en=eV/ee.height;eU=Math.round(ee.width*en)}}else eU=ee.width,eV=ee.height}}let ez=!ep&&("lazy"===ef||void 0===ef);(!(ec="string"==typeof ec?ec:eD)||ec.startsWith("data:")||ec.startsWith("blob:"))&&(eh=!0,ez=!1),er.unoptimized&&(eh=!0),eF&&ec.endsWith(".svg")&&!er.dangerouslyAllowSVG&&(eh=!0),ep&&(eE="high");let eB=getInt(eg),eW=Object.assign(ey?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eT,objectPosition:eP}:{},eM?{}:{color:"transparent"},eb),eH=eN||"empty"===ek?null:"blur"===ek?'url("data:image/svg+xml;charset=utf-8,'+(0,ei.getImageBlurSvg)({widthInt:eU,heightInt:eV,blurWidth:es,blurHeight:eu,blurDataURL:eC||"",objectFit:eW.objectFit})+'")':'url("'+ek+'")',eq=eH?{backgroundSize:eW.objectFit||"cover",backgroundPosition:eW.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eH}:{},e$=generateImgAttrs({config:er,src:ec,unoptimized:eh,width:eU,quality:eB,sizes:ed,loader:eZ}),eQ={...ej,loading:ez?"lazy":ef,fetchPriority:eE,width:eU,height:eV,decoding:"async",className:em,style:{...eW,...eq},sizes:e$.sizes,srcSet:e$.srcSet,src:e$.src},eG={unoptimized:eh,priority:ep,placeholder:ek,fill:ey};return{props:eQ,meta:eG}}},2393:function(ee,en){"use strict";function getImageBlurSvg(ee){let{widthInt:en,heightInt:er,blurWidth:ei,blurHeight:eo,blurDataURL:es,objectFit:eu}=ee,ec=20,ed=ei?40*ei:en,eh=eo?40*eo:er,ep=ed&&eh?"viewBox='0 0 "+ed+" "+eh+"'":"",ef=ep?"none":"contain"===eu?"xMidYMid":"cover"===eu?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+ep+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+ef+"' style='filter: url(%23b);' href='"+es+"'/%3E%3C/svg%3E"}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},645:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return ed}});let ei=er(8754),eo=er(3914),es=er(1905),eu=er(3271),ec=ei._(er(4545)),unstable_getImgProps=ee=>{(0,es.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:en}=(0,eo.getImgProps)(ee,{defaultLoader:ec.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[ee,er]of Object.entries(en))void 0===er&&delete en[ee];return{props:en}},ed=eu.Image},4545:function(ee,en){"use strict";function defaultLoader(ee){let{config:en,src:er,width:ei,quality:eo}=ee;return en.path+"?url="+encodeURIComponent(er)+"&w="+ei+"&q="+(eo||75)}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return er}}),defaultLoader.__next_img_default=!0;let er=defaultLoader},9128:function(){},1864:function(ee){var en="/";!function(){"use strict";var er={114:function(ee){function assertPath(ee){if("string"!=typeof ee)throw TypeError("Path must be a string. Received "+JSON.stringify(ee))}function normalizeStringPosix(ee,en){for(var er,ei="",eo=0,es=-1,eu=0,ec=0;ec<=ee.length;++ec){if(ec2){var ed=ei.lastIndexOf("/");if(ed!==ei.length-1){-1===ed?(ei="",eo=0):eo=(ei=ei.slice(0,ed)).length-1-ei.lastIndexOf("/"),es=ec,eu=0;continue}}else if(2===ei.length||1===ei.length){ei="",eo=0,es=ec,eu=0;continue}}en&&(ei.length>0?ei+="/..":ei="..",eo=2)}else ei.length>0?ei+="/"+ee.slice(es+1,ec):ei=ee.slice(es+1,ec),eo=ec-es-1;es=ec,eu=0}else 46===er&&-1!==eu?++eu:eu=-1}return ei}function _format(ee,en){var er=en.dir||en.root,ei=en.base||(en.name||"")+(en.ext||"");return er?er===en.root?er+ei:er+ee+ei:ei}var en={resolve:function(){for(var ee,en,er="",ei=!1,eo=arguments.length-1;eo>=-1&&!ei;eo--)eo>=0?en=arguments[eo]:(void 0===ee&&(ee=""),en=ee),assertPath(en),0!==en.length&&(er=en+"/"+er,ei=47===en.charCodeAt(0));return(er=normalizeStringPosix(er,!ei),ei)?er.length>0?"/"+er:"/":er.length>0?er:"."},normalize:function(ee){if(assertPath(ee),0===ee.length)return".";var en=47===ee.charCodeAt(0),er=47===ee.charCodeAt(ee.length-1);return(0!==(ee=normalizeStringPosix(ee,!en)).length||en||(ee="."),ee.length>0&&er&&(ee+="/"),en)?"/"+ee:ee},isAbsolute:function(ee){return assertPath(ee),ee.length>0&&47===ee.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var ee,er=0;er0&&(void 0===ee?ee=ei:ee+="/"+ei)}return void 0===ee?".":en.normalize(ee)},relative:function(ee,er){if(assertPath(ee),assertPath(er),ee===er||(ee=en.resolve(ee))===(er=en.resolve(er)))return"";for(var ei=1;eied){if(47===er.charCodeAt(eu+ep))return er.slice(eu+ep+1);if(0===ep)return er.slice(eu+ep)}else es>ed&&(47===ee.charCodeAt(ei+ep)?eh=ep:0===ep&&(eh=0));break}var ef=ee.charCodeAt(ei+ep);if(ef!==er.charCodeAt(eu+ep))break;47===ef&&(eh=ep)}var em="";for(ep=ei+eh+1;ep<=eo;++ep)(ep===eo||47===ee.charCodeAt(ep))&&(0===em.length?em+="..":em+="/..");return em.length>0?em+er.slice(eu+eh):(eu+=eh,47===er.charCodeAt(eu)&&++eu,er.slice(eu))},_makeLong:function(ee){return ee},dirname:function(ee){if(assertPath(ee),0===ee.length)return".";for(var en=ee.charCodeAt(0),er=47===en,ei=-1,eo=!0,es=ee.length-1;es>=1;--es)if(47===(en=ee.charCodeAt(es))){if(!eo){ei=es;break}}else eo=!1;return -1===ei?er?"/":".":er&&1===ei?"//":ee.slice(0,ei)},basename:function(ee,en){if(void 0!==en&&"string"!=typeof en)throw TypeError('"ext" argument must be a string');assertPath(ee);var er,ei=0,eo=-1,es=!0;if(void 0!==en&&en.length>0&&en.length<=ee.length){if(en.length===ee.length&&en===ee)return"";var eu=en.length-1,ec=-1;for(er=ee.length-1;er>=0;--er){var ed=ee.charCodeAt(er);if(47===ed){if(!es){ei=er+1;break}}else -1===ec&&(es=!1,ec=er+1),eu>=0&&(ed===en.charCodeAt(eu)?-1==--eu&&(eo=er):(eu=-1,eo=ec))}return ei===eo?eo=ec:-1===eo&&(eo=ee.length),ee.slice(ei,eo)}for(er=ee.length-1;er>=0;--er)if(47===ee.charCodeAt(er)){if(!es){ei=er+1;break}}else -1===eo&&(es=!1,eo=er+1);return -1===eo?"":ee.slice(ei,eo)},extname:function(ee){assertPath(ee);for(var en=-1,er=0,ei=-1,eo=!0,es=0,eu=ee.length-1;eu>=0;--eu){var ec=ee.charCodeAt(eu);if(47===ec){if(!eo){er=eu+1;break}continue}-1===ei&&(eo=!1,ei=eu+1),46===ec?-1===en?en=eu:1!==es&&(es=1):-1!==en&&(es=-1)}return -1===en||-1===ei||0===es||1===es&&en===ei-1&&en===er+1?"":ee.slice(en,ei)},format:function(ee){if(null===ee||"object"!=typeof ee)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ee);return _format("/",ee)},parse:function(ee){assertPath(ee);var en,er={root:"",dir:"",base:"",ext:"",name:""};if(0===ee.length)return er;var ei=ee.charCodeAt(0),eo=47===ei;eo?(er.root="/",en=1):en=0;for(var es=-1,eu=0,ec=-1,ed=!0,eh=ee.length-1,ep=0;eh>=en;--eh){if(47===(ei=ee.charCodeAt(eh))){if(!ed){eu=eh+1;break}continue}-1===ec&&(ed=!1,ec=eh+1),46===ei?-1===es?es=eh:1!==ep&&(ep=1):-1!==es&&(ep=-1)}return -1===es||-1===ec||0===ep||1===ep&&es===ec-1&&es===eu+1?-1!==ec&&(0===eu&&eo?er.base=er.name=ee.slice(1,ec):er.base=er.name=ee.slice(eu,ec)):(0===eu&&eo?(er.name=ee.slice(1,es),er.base=ee.slice(1,ec)):(er.name=ee.slice(eu,es),er.base=ee.slice(eu,ec)),er.ext=ee.slice(es,ec)),eu>0?er.dir=ee.slice(0,eu-1):eo&&(er.dir="/"),er},sep:"/",delimiter:":",win32:null,posix:null};en.posix=en,ee.exports=en}},ei={};function __nccwpck_require__(ee){var en=ei[ee];if(void 0!==en)return en.exports;var eo=ei[ee]={exports:{}},es=!0;try{er[ee](eo,eo.exports,__nccwpck_require__),es=!1}finally{es&&delete ei[ee]}return eo.exports}__nccwpck_require__.ab=en+"/";var eo=__nccwpck_require__(114);ee.exports=eo}()},7663:function(ee){var en="/";!function(){var er={229:function(ee){var en,er,ei,eo=ee.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(ee){if(en===setTimeout)return setTimeout(ee,0);if((en===defaultSetTimout||!en)&&setTimeout)return en=setTimeout,setTimeout(ee,0);try{return en(ee,0)}catch(er){try{return en.call(null,ee,0)}catch(er){return en.call(this,ee,0)}}}function runClearTimeout(ee){if(er===clearTimeout)return clearTimeout(ee);if((er===defaultClearTimeout||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(ee);try{return er(ee)}catch(en){try{return er.call(null,ee)}catch(en){return er.call(this,ee)}}}!function(){try{en="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ee){en=defaultSetTimout}try{er="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ee){er=defaultClearTimeout}}();var es=[],eu=!1,ec=-1;function cleanUpNextTick(){eu&&ei&&(eu=!1,ei.length?es=ei.concat(es):ec=-1,es.length&&drainQueue())}function drainQueue(){if(!eu){var ee=runTimeout(cleanUpNextTick);eu=!0;for(var en=es.length;en;){for(ei=es,es=[];++ec1)for(var er=1;er(0,eu.jsx)("button",{className:dist_clsx("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",en),...er,children:ee}),ec=er(4861),ed={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,eu.jsx)(ec.AV,{className:"nx-mt-1"}),warning:"⚠️"},eh={default:dist_clsx("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:dist_clsx("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:dist_clsx("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:dist_clsx("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function Callout({children:ee,type:en="default",emoji:er=ed[en]}){return(0,eu.jsxs)("div",{className:dist_clsx("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",eh[en]),children:[(0,eu.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:er}),(0,eu.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:ee})]})}var ep=er(7294),CopyToClipboard=({getValue:ee,...en})=>{let[er,ei]=(0,ep.useState)(!1);(0,ep.useEffect)(()=>{if(!er)return;let ee=setTimeout(()=>{ei(!1)},2e3);return()=>{clearTimeout(ee)}},[er]);let eo=(0,ep.useCallback)(async()=>{ei(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(ee())}catch{console.error("Failed to copy!")}},[ee]),es=er?ec.nQ:ec.TI;return(0,eu.jsx)(Button,{onClick:eo,title:"Copy code",tabIndex:0,...en,children:(0,eu.jsx)(es,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},Code=({children:ee,className:en,...er})=>{let ei="data-line-numbers"in er;return(0,eu.jsx)("code",{className:dist_clsx("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",ei&&"[counter-reset:line]",en),dir:"ltr",...er,children:ee})},Pre=({children:ee,className:en,hasCopyCode:er,filename:ei,...eo})=>{let es=(0,ep.useRef)(null),ed=(0,ep.useCallback)(()=>{let ee=document.documentElement.dataset,en="nextraWordWrap"in ee;en?delete ee.nextraWordWrap:ee.nextraWordWrap=""},[]);return(0,eu.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[ei&&(0,eu.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:ei}),(0,eu.jsx)("pre",{className:dist_clsx("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",ei?"nx-pt-12 nx-pb-4":"nx-py-4",en),ref:es,...eo,children:ee}),(0,eu.jsxs)("div",{className:dist_clsx("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",ei?"nx-top-8":"nx-top-0"),children:[(0,eu.jsx)(Button,{onClick:ed,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,eu.jsx)(ec.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),er&&(0,eu.jsx)(CopyToClipboard,{getValue:()=>es.current?.querySelector("code")?.textContent||""})]})]})},ef=er(2351),em=er(9946),eg=er(2984),ex=er(1363),ev=er(4575),ey=er(6723),eb=er(3784),e_=er(4157),ew=er(3855),ek=er(4879),eC=er(6045);function focus_sentinel_A({onFocus:ee}){let[en,er]=(0,ep.useState)(!0),ei=(0,ek.t)();return en?ep.createElement(eC._,{as:"button",type:"button",features:eC.A.Focusable,onFocus:en=>{en.preventDefault();let eo,es=50;function t(){if(es--<=0){eo&&cancelAnimationFrame(eo);return}if(ee()){if(cancelAnimationFrame(eo),!ei.current)return;er(!1);return}eo=requestAnimationFrame(t)}eo=requestAnimationFrame(t)}}):null}var eE=er(3781),eO=er(1021),eT=er(5466);let eP=ep.createContext(null);function a(){return{groups:new Map,get(ee,en){var er;let ei=this.groups.get(ee);ei||(ei=new Map,this.groups.set(ee,ei));let eo=null!=(er=ei.get(en))?er:0;function i(){let ee=ei.get(en);ee>1?ei.set(en,ee-1):ei.delete(en)}return ei.set(en,eo+1),[Array.from(ei.keys()).indexOf(en),i]}}}function stable_collection_C({children:ee}){let en=ep.useRef(a());return ep.createElement(eP.Provider,{value:en},ee)}function stable_collection_d(ee){let en=ep.useContext(eP);if(!en)throw Error("You must wrap your component in a ");let er=f(),[ei,eo]=en.current.get(ee,er);return ep.useEffect(()=>eo,[]),ei}function f(){var ee,en,er;let ei=null!=(er=null==(en=null==(ee=ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:ee.ReactCurrentOwner)?void 0:en.current)?er:null;if(!ei)return Symbol();let eo=[],es=ei;for(;es;)eo.push(es.index),es=es.return;return"$."+eo.join(".")}var eS=((ei=eS||{})[ei.Forwards=0]="Forwards",ei[ei.Backwards=1]="Backwards",ei),eI=((eo=eI||{})[eo.Less=-1]="Less",eo[eo.Equal=0]="Equal",eo[eo.Greater=1]="Greater",eo),ej=((es=ej||{})[es.SetSelectedIndex=0]="SetSelectedIndex",es[es.RegisterTab=1]="RegisterTab",es[es.UnregisterTab=2]="UnregisterTab",es[es.RegisterPanel=3]="RegisterPanel",es[es.UnregisterPanel=4]="UnregisterPanel",es);let eR={0(ee,en){var er;let ei=(0,ev.z2)(ee.tabs,ee=>ee.current),eo=(0,ev.z2)(ee.panels,ee=>ee.current),es=ei.filter(ee=>{var en;return!(null!=(en=ee.current)&&en.hasAttribute("disabled"))}),eu={...ee,tabs:ei,panels:eo};if(en.index<0||en.index>ei.length-1){let er=(0,eg.E)(Math.sign(en.index-ee.selectedIndex),{[-1]:()=>1,0:()=>(0,eg.E)(Math.sign(en.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===es.length)return eu;let eo=(0,eg.E)(er,{0:()=>ei.indexOf(es[0]),1:()=>ei.indexOf(es[es.length-1])});return{...eu,selectedIndex:-1===eo?ee.selectedIndex:eo}}let ec=ei.slice(0,en.index),ed=[...ei.slice(en.index),...ec].find(ee=>es.includes(ee));if(!ed)return eu;let eh=null!=(er=ei.indexOf(ed))?er:ee.selectedIndex;return -1===eh&&(eh=ee.selectedIndex),{...eu,selectedIndex:eh}},1(ee,en){var er;if(ee.tabs.includes(en.tab))return ee;let ei=ee.tabs[ee.selectedIndex],eo=(0,ev.z2)([...ee.tabs,en.tab],ee=>ee.current),es=null!=(er=eo.indexOf(ei))?er:ee.selectedIndex;return -1===es&&(es=ee.selectedIndex),{...ee,tabs:eo,selectedIndex:es}},2:(ee,en)=>({...ee,tabs:ee.tabs.filter(ee=>ee!==en.tab)}),3:(ee,en)=>ee.panels.includes(en.panel)?ee:{...ee,panels:(0,ev.z2)([...ee.panels,en.panel],ee=>ee.current)},4:(ee,en)=>({...ee,panels:ee.panels.filter(ee=>ee!==en.panel)})},eM=(0,ep.createContext)(null);function M(ee){let en=(0,ep.useContext)(eM);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,M),en}return en}eM.displayName="TabsDataContext";let eN=(0,ep.createContext)(null);function q(ee){let en=(0,ep.useContext)(eN);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,q),en}return en}function fe(ee,en){return(0,eg.E)(en.type,eR,ee,en)}eN.displayName="TabsActionsContext";let eA=ep.Fragment;function me(ee,en){let{defaultIndex:er=0,vertical:ei=!1,manual:eo=!1,onChange:es,selectedIndex:eu=null,...ec}=ee,ed=ei?"vertical":"horizontal",eh=eo?"manual":"auto",em=null!==eu,eg=(0,eb.T)(en),[ex,e_]=(0,ep.useReducer)(fe,{selectedIndex:null!=eu?eu:er,tabs:[],panels:[]}),ek=(0,ep.useMemo)(()=>({selectedIndex:ex.selectedIndex}),[ex.selectedIndex]),eC=(0,ew.E)(es||(()=>{})),eO=(0,ew.E)(ex.tabs),eT=(0,ep.useMemo)(()=>({orientation:ed,activation:eh,...ex}),[ed,eh,ex]),eP=(0,eE.z)(ee=>(e_({type:1,tab:ee}),()=>e_({type:2,tab:ee}))),eS=(0,eE.z)(ee=>(e_({type:3,panel:ee}),()=>e_({type:4,panel:ee}))),eI=(0,eE.z)(ee=>{ej.current!==ee&&eC.current(ee),em||e_({type:0,index:ee})}),ej=(0,ew.E)(em?ee.selectedIndex:ex.selectedIndex),eR=(0,ep.useMemo)(()=>({registerTab:eP,registerPanel:eS,change:eI}),[]);(0,ey.e)(()=>{e_({type:0,index:null!=eu?eu:er})},[eu]),(0,ey.e)(()=>{if(void 0===ej.current||ex.tabs.length<=0)return;let ee=(0,ev.z2)(ex.tabs,ee=>ee.current);ee.some((ee,en)=>ex.tabs[en]!==ee)&&eI(ee.indexOf(ex.tabs[ej.current]))});let eL={ref:eg};return ep.createElement(stable_collection_C,null,ep.createElement(eN.Provider,{value:eR},ep.createElement(eM.Provider,{value:eT},eT.tabs.length<=0&&ep.createElement(focus_sentinel_A,{onFocus:()=>{var ee,en;for(let er of eO.current)if((null==(ee=er.current)?void 0:ee.tabIndex)===0)return null==(en=er.current)||en.focus(),!0;return!1}}),(0,ef.sY)({ourProps:eL,theirProps:ec,slot:ek,defaultTag:eA,name:"Tabs"}))))}let eL="div";function xe(ee,en){let{orientation:er,selectedIndex:ei}=M("Tab.List"),eo=(0,eb.T)(en);return(0,ef.sY)({ourProps:{ref:eo,role:"tablist","aria-orientation":er},theirProps:ee,slot:{selectedIndex:ei},defaultTag:eL,name:"Tabs.List"})}let eZ="button";function ye(ee,en){var er,ei;let eo=(0,em.M)(),{id:es=`headlessui-tabs-tab-${eo}`,...eu}=ee,{orientation:ec,activation:ed,selectedIndex:eh,tabs:ew,panels:ek}=M("Tab"),eC=q("Tab"),eP=M("Tab"),eS=(0,ep.useRef)(null),eI=(0,eb.T)(eS,en);(0,ey.e)(()=>eC.registerTab(eS),[eC,eS]);let ej=stable_collection_d("tabs"),eR=ew.indexOf(eS);-1===eR&&(eR=ej);let eM=eR===eh,eN=(0,eE.z)(ee=>{var en;let er=ee();if(er===ev.fE.Success&&"auto"===ed){let ee=null==(en=(0,eT.r)(eS))?void 0:en.activeElement,er=eP.tabs.findIndex(en=>en.current===ee);-1!==er&&eC.change(er)}return er}),eA=(0,eE.z)(ee=>{let en=ew.map(ee=>ee.current).filter(Boolean);if(ee.key===ex.R.Space||ee.key===ex.R.Enter){ee.preventDefault(),ee.stopPropagation(),eC.change(eR);return}switch(ee.key){case ex.R.Home:case ex.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),eN(()=>(0,ev.jA)(en,ev.TO.First));case ex.R.End:case ex.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),eN(()=>(0,ev.jA)(en,ev.TO.Last))}if(eN(()=>(0,eg.E)(ec,{vertical:()=>ee.key===ex.R.ArrowUp?(0,ev.jA)(en,ev.TO.Previous|ev.TO.WrapAround):ee.key===ex.R.ArrowDown?(0,ev.jA)(en,ev.TO.Next|ev.TO.WrapAround):ev.fE.Error,horizontal:()=>ee.key===ex.R.ArrowLeft?(0,ev.jA)(en,ev.TO.Previous|ev.TO.WrapAround):ee.key===ex.R.ArrowRight?(0,ev.jA)(en,ev.TO.Next|ev.TO.WrapAround):ev.fE.Error}))===ev.fE.Success)return ee.preventDefault()}),eL=(0,ep.useRef)(!1),eF=(0,eE.z)(()=>{var ee;eL.current||(eL.current=!0,null==(ee=eS.current)||ee.focus({preventScroll:!0}),eC.change(eR),(0,eO.Y)(()=>{eL.current=!1}))}),eD=(0,eE.z)(ee=>{ee.preventDefault()}),eU=(0,ep.useMemo)(()=>({selected:eM}),[eM]),eV={ref:eI,onKeyDown:eA,onMouseDown:eD,onClick:eF,id:es,role:"tab",type:(0,e_.f)(ee,eS),"aria-controls":null==(ei=null==(er=ek[eR])?void 0:er.current)?void 0:ei.id,"aria-selected":eM,tabIndex:eM?0:-1};return(0,ef.sY)({ourProps:eV,theirProps:eu,slot:eU,defaultTag:eZ,name:"Tabs.Tab"})}let eF="div";function Ae(ee,en){let{selectedIndex:er}=M("Tab.Panels"),ei=(0,eb.T)(en),eo=(0,ep.useMemo)(()=>({selectedIndex:er}),[er]);return(0,ef.sY)({ourProps:{ref:ei},theirProps:ee,slot:eo,defaultTag:eF,name:"Tabs.Panels"})}let eD="div",eU=ef.AN.RenderStrategy|ef.AN.Static;function Se(ee,en){var er,ei,eo,es;let eu=(0,em.M)(),{id:ec=`headlessui-tabs-panel-${eu}`,tabIndex:ed=0,...eh}=ee,{selectedIndex:eg,tabs:ex,panels:ev}=M("Tab.Panel"),e_=q("Tab.Panel"),ew=(0,ep.useRef)(null),ek=(0,eb.T)(ew,en);(0,ey.e)(()=>e_.registerPanel(ew),[e_,ew]);let eE=stable_collection_d("panels"),eO=ev.indexOf(ew);-1===eO&&(eO=eE);let eT=eO===eg,eP=(0,ep.useMemo)(()=>({selected:eT}),[eT]),eS={ref:ek,id:ec,role:"tabpanel","aria-labelledby":null==(ei=null==(er=ex[eO])?void 0:er.current)?void 0:ei.id,tabIndex:eT?ed:-1};return eT||null!=(eo=eh.unmount)&&!eo||null!=(es=eh.static)&&es?(0,ef.sY)({ourProps:eS,theirProps:eh,slot:eP,defaultTag:eD,features:eU,visible:eT,name:"Tabs.Panel"}):ep.createElement(eC._,{as:"span",...eS})}let eV=Object.assign((0,ef.yV)(ye),{Group:(0,ef.yV)(me),List:(0,ef.yV)(xe),Panels:(0,ef.yV)(Ae),Panel:(0,ef.yV)(Se)});function isTabObjectItem(ee){return!!ee&&"object"==typeof ee&&"label"in ee}Object.assign(function({items:ee,selectedIndex:en,defaultIndex:er=0,onChange:ei,children:eo,storageKey:es}){let[ec,ed]=(0,ep.useState)(er);(0,ep.useEffect)(()=>{void 0!==en&&ed(en)},[en]),(0,ep.useEffect)(()=>{if(!es)return;function fn(ee){ee.key===es&&ed(Number(ee.newValue))}let ee=Number(localStorage.getItem(es));return ed(Number.isNaN(ee)?0:ee),window.addEventListener("storage",fn),()=>{window.removeEventListener("storage",fn)}},[]);let eh=(0,ep.useCallback)(ee=>{if(es){let en=String(ee);localStorage.setItem(es,en),window.dispatchEvent(new StorageEvent("storage",{key:es,newValue:en}));return}ed(ee),ei?.(ee)},[]);return(0,eu.jsxs)(eV.Group,{selectedIndex:ec,defaultIndex:er,onChange:eh,children:[(0,eu.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,eu.jsx)(eV.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:ee.map((ee,en)=>{let er=isTabObjectItem(ee)&&ee.disabled;return(0,eu.jsx)(eV,{disabled:er,className:({selected:ee})=>dist_clsx("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",ee?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",er&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:isTabObjectItem(ee)?ee.label:ee},en)})})}),(0,eu.jsx)(eV.Panels,{children:eo})]})},{displayName:"Tabs",Tab:function({children:ee,...en}){return(0,eu.jsx)(eV.Panel,{...en,className:"nx-rounded nx-pt-6",children:ee})}});var Td=({className:ee="",...en})=>(0,eu.jsx)("td",{className:dist_clsx("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",ee),...en}),Table=({className:ee="",...en})=>(0,eu.jsx)("table",{className:dist_clsx("nx-block nx-overflow-x-scroll",ee),...en}),Th=({className:ee="",...en})=>(0,eu.jsx)("th",{className:dist_clsx("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",ee),...en}),Tr=({className:ee="",...en})=>(0,eu.jsx)("tr",{className:dist_clsx("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",ee),...en}),ez=er(1664),eB=er.n(ez),eW={cards:dist_clsx("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:dist_clsx("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:dist_clsx("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},eH=(0,eu.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:ee,num:en=3,className:er,style:ei,...eo}){return(0,eu.jsx)("div",{className:dist_clsx(eW.cards,er),...eo,style:{...ei,"--rows":en},children:ee})},{displayName:"Cards",Card:function({children:ee,title:en,icon:er,image:ei,arrow:eo,href:es,...ec}){let ed=eo?eH:null;return ei?(0,eu.jsxs)(eB(),{href:es,className:dist_clsx(eW.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...ec,children:[ee,(0,eu.jsxs)("span",{className:dist_clsx(eW.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[er,(0,eu.jsxs)("span",{className:"nx-flex nx-gap-1",children:[en,ed]})]})]}):(0,eu.jsx)(eB(),{href:es,className:dist_clsx(eW.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...ec,children:(0,eu.jsxs)("span",{className:dist_clsx(eW.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[er,en,ed]})})}});var eq=(0,ep.createContext)(0);function useIndent(){return(0,ep.useContext)(eq)}function Tree({children:ee}){return(0,eu.jsx)("div",{className:dist_clsx("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,eu.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:ee})})}function Ident(){let ee=useIndent();return(0,eu.jsx)(eu.Fragment,{children:Array.from({length:ee},(ee,en)=>(0,eu.jsx)("span",{className:"nx-w-5"},en))})}var e$=(0,ep.memo)(({label:ee,name:en,open:er,children:ei,defaultOpen:eo=!1,onToggle:es})=>{let ec=useIndent(),[ed,eh]=(0,ep.useState)(eo),ef=(0,ep.useCallback)(()=>{es?.(!ed),eh(!ed)},[ed,es]),em=void 0===er?ed:er;return(0,eu.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,eu.jsxs)("button",{onClick:ef,title:en,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,eu.jsx)(Ident,{}),(0,eu.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:em?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,eu.jsx)("span",{className:"nx-ml-1",children:ee??en})]}),em&&(0,eu.jsx)("ul",{children:(0,eu.jsx)(eq.Provider,{value:ec+1,children:ei})})]})});e$.displayName="Folder";var eQ=(0,ep.memo)(({label:ee,name:en,active:er})=>(0,eu.jsx)("li",{className:dist_clsx("nx-flex nx-list-none",er&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,eu.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,eu.jsx)(Ident,{}),(0,eu.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,eu.jsx)("span",{className:"nx-ml-1",children:ee??en})]})}));eQ.displayName="File",Object.assign(Tree,{Folder:e$,File:eQ})},4861:function(ee,en,er){"use strict";er.d(en,{LZ:function(){return ArrowRightIcon},nQ:function(){return CheckIcon},TI:function(){return CopyIcon},D7:function(){return DiscordIcon},Qq:function(){return ExpandIcon},fy:function(){return GitHubIcon},n9:function(){return GlobeIcon},AV:function(){return InformationCircleIcon},Oq:function(){return MenuIcon},kL:function(){return MoonIcon},L4:function(){return SpinnerIcon},NW:function(){return SunIcon},NK:function(){return WordWrapIcon},b0:function(){return XIcon}});var ei=er(5893);function ArrowRightIcon({pathClassName:ee,...en}){return(0,ei.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...en,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:ee})})}function CheckIcon(ee){return(0,ei.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function CopyIcon(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...ee,children:[(0,ei.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ei.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DiscordIcon(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...ee,children:[(0,ei.jsx)("title",{children:"Discord"}),(0,ei.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function ExpandIcon({isOpen:ee,...en}){return(0,ei.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...en,children:[(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:ee?"":"nx-origin-[35%] nx-rotate-180"}),(0,ei.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function GitHubIcon(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...ee,children:[(0,ei.jsx)("title",{children:"GitHub"}),(0,ei.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function GlobeIcon(ee){return(0,ei.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function InformationCircleIcon(ee){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function MenuIcon(ee){return(0,ei.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...ee,children:[(0,ei.jsx)("g",{children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,ei.jsx)("g",{children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function MoonIcon(ee){return(0,ei.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function SpinnerIcon(ee){return(0,ei.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:[(0,ei.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,ei.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function SunIcon(ee){return(0,ei.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function WordWrapIcon(ee){return(0,ei.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function XIcon(ee){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},2643:function(ee,en,er){"use strict";er.d(en,{Z:function(){return MDXProvider},a:function(){return mdx_useMDXComponents}});var ei=er(7294);let eo=ei.createContext({});function useMDXComponents(ee){let en=ei.useContext(eo);return ei.useMemo(()=>"function"==typeof ee?ee(en):{...en,...ee},[en,ee])}let es={};function MDXProvider({components:ee,children:en,disableParentContext:er}){let eu;return eu=er?"function"==typeof ee?ee({}):ee||es:useMDXComponents(ee),ei.createElement(eo.Provider,{value:eu},en)}var eu=er(5675),ec=er.n(eu),ed={img:ee=>(0,ei.createElement)("object"==typeof ee.src?ec():"img",ee)},mdx_useMDXComponents=ee=>useMDXComponents({...ed,...ee})},6008:function(ee,en,er){"use strict";var ei=er(2337);function parsePath(ee){var en={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:ee,query:{},parse_failed:!1};try{var er=new URL(ee);en.protocols=ei(er),en.protocol=en.protocols[0],en.port=er.port,en.resource=er.hostname,en.host=er.host,en.user=er.username||"",en.password=er.password||"",en.pathname=er.pathname,en.hash=er.hash.slice(1),en.search=er.search.slice(1),en.href=er.href,en.query=Object.fromEntries(er.searchParams)}catch(er){en.protocols=["file"],en.protocol=en.protocols[0],en.port="",en.resource="",en.user="",en.pathname="",en.hash="",en.search="",en.href=ee,en.query={},en.parse_failed=!0}return en}ee.exports=parsePath},3905:function(ee,en,er){"use strict";var ei=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(er(6008));let eo="text/plain",es="us-ascii",testParameter=(ee,en)=>en.some(en=>en instanceof RegExp?en.test(ee):en===ee),normalizeDataURL=(ee,{stripHash:en})=>{let er=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(ee);if(!er)throw Error(`Invalid URL: ${ee}`);let{type:ei,data:eu,hash:ec}=er.groups,ed=ei.split(";");ec=en?"":ec;let eh=!1;"base64"===ed[ed.length-1]&&(ed.pop(),eh=!0);let ep=(ed.shift()||"").toLowerCase(),ef=ed.map(ee=>{let[en,er=""]=ee.split("=").map(ee=>ee.trim());return"charset"===en&&(er=er.toLowerCase())===es?"":`${en}${er?`=${er}`:""}`}).filter(Boolean),em=[...ef];return eh&&em.push("base64"),(em.length>0||ep&&ep!==eo)&&em.unshift(ep),`data:${em.join(";")},${eh?eu.trim():eu}${ec?`#${ec}`:""}`};function normalizeUrl(ee,en){if(en={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...en},ee=ee.trim(),/^data:/i.test(ee))return normalizeDataURL(ee,en);if(/^view-source:/i.test(ee))throw Error("`view-source:` is not supported as it is a non-standard protocol");let er=ee.startsWith("//"),ei=!er&&/^\.*\//.test(ee);ei||(ee=ee.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,en.defaultProtocol));let eo=new URL(ee);if(en.forceHttp&&en.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(en.forceHttp&&"https:"===eo.protocol&&(eo.protocol="http:"),en.forceHttps&&"http:"===eo.protocol&&(eo.protocol="https:"),en.stripAuthentication&&(eo.username="",eo.password=""),en.stripHash?eo.hash="":en.stripTextFragment&&(eo.hash=eo.hash.replace(/#?:~:text.*?$/i,"")),eo.pathname){let ee=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,en=0,er="";for(;;){let ei=ee.exec(eo.pathname);if(!ei)break;let es=ei[0],eu=ei.index,ec=eo.pathname.slice(en,eu);er+=ec.replace(/\/{2,}/g,"/")+es,en=eu+es.length}let ei=eo.pathname.slice(en,eo.pathname.length);er+=ei.replace(/\/{2,}/g,"/"),eo.pathname=er}if(eo.pathname)try{eo.pathname=decodeURI(eo.pathname)}catch{}if(!0===en.removeDirectoryIndex&&(en.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(en.removeDirectoryIndex)&&en.removeDirectoryIndex.length>0){let ee=eo.pathname.split("/"),er=ee[ee.length-1];testParameter(er,en.removeDirectoryIndex)&&(ee=ee.slice(0,-1),eo.pathname=ee.slice(1).join("/")+"/")}if(eo.hostname&&(eo.hostname=eo.hostname.replace(/\.$/,""),en.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(eo.hostname)&&(eo.hostname=eo.hostname.replace(/^www\./,""))),Array.isArray(en.removeQueryParameters))for(let ee of[...eo.searchParams.keys()])testParameter(ee,en.removeQueryParameters)&&eo.searchParams.delete(ee);if(!0===en.removeQueryParameters&&(eo.search=""),en.sortQueryParameters){eo.searchParams.sort();try{eo.search=decodeURIComponent(eo.search)}catch{}}en.removeTrailingSlash&&(eo.pathname=eo.pathname.replace(/\/$/,""));let es=ee;return ee=eo.toString(),en.removeSingleSlash||"/"!==eo.pathname||es.endsWith("/")||""!==eo.hash||(ee=ee.replace(/\/$/,"")),(en.removeTrailingSlash||"/"===eo.pathname)&&""===eo.hash&&en.removeSingleSlash&&(ee=ee.replace(/\/$/,"")),er&&!en.normalizeProtocol&&(ee=ee.replace(/^http:\/\//,"//")),en.stripProtocol&&(ee=ee.replace(/^(?:https?:)?\/\//,"")),ee}let parseUrl=(ee,en=!1)=>{let er=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,throwErr=en=>{let er=Error(en);throw er.subject_url=ee,er};"string"==typeof ee&&ee.trim()||throwErr("Invalid url."),ee.length>parseUrl.MAX_INPUT_LENGTH&&throwErr("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),en&&("object"!=typeof en&&(en={stripHash:!1}),ee=normalizeUrl(ee,en));let eo=ei.default(ee);if(eo.parse_failed){let ee=eo.href.match(er);ee?(eo.protocols=["ssh"],eo.protocol="ssh",eo.resource=ee[2],eo.host=ee[2],eo.user=ee[1],eo.pathname=`/${ee[3]}`,eo.parse_failed=!1):throwErr("URL parsing failed.")}return eo};parseUrl.MAX_INPUT_LENGTH=2048,ee.exports=parseUrl},2337:function(ee){"use strict";ee.exports=function(ee,en){!0===en&&(en=0);var er="";if("string"==typeof ee)try{er=new URL(ee).protocol}catch(ee){}else ee&&ee.constructor===URL&&(er=ee.protocol);var ei=er.split(/\:|\+/).filter(Boolean);return"number"==typeof en?ei[en]:ei}},6826:function(ee){var en={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},er=Object.keys(en).join("|"),ei=RegExp(er,"g"),eo=RegExp(er,""),removeAccents=function(ee){return ee.replace(ei,function(ee){return en[ee]})},hasAccents=function(ee){return!!ee.match(eo)};ee.exports=removeAccents,ee.exports.has=hasAccents,ee.exports.remove=removeAccents},3250:function(ee,en,er){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/_next/static/chunks/pages/apis/reference/builder/tx-builder/broadcast-91ee93ddd0106064.js b/_next/static/chunks/pages/apis/reference/builder/tx-builder/broadcast-07cddfbc6a05cda9.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/builder/tx-builder/broadcast-91ee93ddd0106064.js rename to _next/static/chunks/pages/apis/reference/builder/tx-builder/broadcast-07cddfbc6a05cda9.js index 033100ab..c01ec5e2 100644 --- a/_next/static/chunks/pages/apis/reference/builder/tx-builder/broadcast-91ee93ddd0106064.js +++ b/_next/static/chunks/pages/apis/reference/builder/tx-builder/broadcast-07cddfbc6a05cda9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7028],{7942:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/builder/tx-builder/broadcast",function(){return n(8681)}])},8681:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return t}});var r=n(5893),o=n(2673),l=n(2643),i=n(4482);let t=[{depth:2,value:"[POST] /v1/:network/tx-builder/broadcast",id:"post-v1networktx-builderbroadcast"},{depth:3,value:"Request",id:"request"},{depth:3,value:"Response",id:"response"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",strong:"strong",h3:"h3",pre:"pre",code:"code",span:"span"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Broadcast Transaction"}),"\n",(0,r.jsxs)(e.h2,{id:"post-v1networktx-builderbroadcast",children:[(0,r.jsx)(e.strong,{children:"[POST]"})," /v1/:network/tx-builder/broadcast"]}),"\n",(0,r.jsx)(e.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(e.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsxs)(e.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Content-Type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"application/json"})]})]})}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Original message of the tx from the result of the Build Transaction API Call"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" string"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Generated using the user’s private key and the tx from the result of the Build Transaction API Call."})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signature"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" string"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(e.h3,{id:"response",children:"Response"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx_response"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"txhash"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0EC95A21CCA0851D22DBE12A8A2E8E13F6F0AB430BB7DD935E9B98C862EB7414"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"codespace"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"code"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"data"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"raw_log"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"[]"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"logs"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" []"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"info"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"gas_wanted"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"gas_used"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"null"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"timestamp"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"events"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" []"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(i.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder/broadcast",body:{tx:"0x01ae010ca0010a372f636f736d6f732e64697374788f545e01802023a12cb",signature:"0x10d0688f545e01802023a12cba8d69be50ba6e504b20781d97e7"},useBearerAuthorization:!0,disabled:!0})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/apis/reference/builder/tx-builder/broadcast.mdx",route:"/apis/reference/builder/tx-builder/broadcast",timestamp:1699677327e3,title:"Broadcast Transaction",headings:t},pageNextRoute:"/apis/reference/builder/tx-builder/broadcast"})}},function(s){s.O(0,[2673,9659,3632,834,9774,2888,179],function(){return s(s.s=7942)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7028],{7942:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/builder/tx-builder/broadcast",function(){return n(8681)}])},8681:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return t}});var r=n(5893),o=n(2673),l=n(2643),i=n(4482);let t=[{depth:2,value:"[POST] /v1/:network/tx-builder/broadcast",id:"post-v1networktx-builderbroadcast"},{depth:3,value:"Request",id:"request"},{depth:3,value:"Response",id:"response"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",strong:"strong",h3:"h3",pre:"pre",code:"code",span:"span"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Broadcast Transaction"}),"\n",(0,r.jsxs)(e.h2,{id:"post-v1networktx-builderbroadcast",children:[(0,r.jsx)(e.strong,{children:"[POST]"})," /v1/:network/tx-builder/broadcast"]}),"\n",(0,r.jsx)(e.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(e.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsxs)(e.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Content-Type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"application/json"})]})]})}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Original message of the tx from the result of the Build Transaction API Call"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" string"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Generated using the user’s private key and the tx from the result of the Build Transaction API Call."})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signature"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" string"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(e.h3,{id:"response",children:"Response"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx_response"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"txhash"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0EC95A21CCA0851D22DBE12A8A2E8E13F6F0AB430BB7DD935E9B98C862EB7414"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"codespace"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"code"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"data"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"raw_log"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"[]"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"logs"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" []"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"info"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"gas_wanted"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"gas_used"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"null"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"timestamp"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"events"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" []"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(i.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder/broadcast",body:{tx:"0x01ae010ca0010a372f636f736d6f732e64697374788f545e01802023a12cb",signature:"0x10d0688f545e01802023a12cba8d69be50ba6e504b20781d97e7"},useBearerAuthorization:!0,disabled:!0})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/apis/reference/builder/tx-builder/broadcast.mdx",route:"/apis/reference/builder/tx-builder/broadcast",timestamp:1699677327e3,title:"Broadcast Transaction",headings:t},pageNextRoute:"/apis/reference/builder/tx-builder/broadcast"})}},function(s){s.O(0,[2673,9659,5369,834,9774,2888,179],function(){return s(s.s=7942)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/builder/tx-builder/build-d66b93276144fe18.js b/_next/static/chunks/pages/apis/reference/builder/tx-builder/build-fc05befe9f97c77b.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/builder/tx-builder/build-d66b93276144fe18.js rename to _next/static/chunks/pages/apis/reference/builder/tx-builder/build-fc05befe9f97c77b.js index 717a2de4..c7eb21ff 100644 --- a/_next/static/chunks/pages/apis/reference/builder/tx-builder/build-d66b93276144fe18.js +++ b/_next/static/chunks/pages/apis/reference/builder/tx-builder/build-fc05befe9f97c77b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[509],{7564:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/builder/tx-builder/build",function(){return n(9373)}])},9373:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return t}});var r=n(5893),o=n(2673),i=n(2643),l=n(4482);let t=[{depth:2,value:"[POST] /v1/:network/tx-builder",id:"post-v1networktx-builder"},{depth:3,value:"Request",id:"request"},{depth:3,value:"Response",id:"response"},{depth:3,value:"How to make a public key from private key",id:"how-to-make-a-public-key-from-private-key"},{depth:2,value:"Send Transaction",id:"send-transaction"},{depth:2,value:"Delegate Transaction",id:"delegate-transaction"},{depth:2,value:"Undelegate Transaction",id:"undelegate-transaction"},{depth:2,value:"Begin Redelegate Transaction",id:"begin-redelegate-transaction"},{depth:2,value:"Claim Delegate Rewards Transaction",id:"claim-delegate-rewards-transaction"},{depth:2,value:"Claim Validator Commissions Transaction",id:"claim-validator-commissions-transaction"},{depth:2,value:"Governance Vote Transaction",id:"governance-vote-transaction"},{depth:2,value:"Wasm Contract Execute Transaction",id:"wasm-contract-execute-transaction"},{depth:2,value:"Authz Grant Transaction",id:"authz-grant-transaction"},{depth:2,value:"Authz Execute Transaction",id:"authz-execute-transaction"},{depth:2,value:"Authz Revoke Transaction",id:"authz-revoke-transaction"},{depth:2,value:"Multiple Message Type of Transaction",id:"multiple-message-type-of-transaction"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",br:"br",h3:"h3",pre:"pre",code:"code",span:"span"},(0,i.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Build Transactions"}),"\n",(0,r.jsxs)(e.h2,{id:"post-v1networktx-builder",children:[(0,r.jsx)(e.strong,{children:"[POST]"})," /v1/:network/tx-builder"]}),"\n",(0,r.jsxs)(e.p,{children:["This API returns the SignDoc data for broadcasting transactions.",(0,r.jsx)(e.br,{}),"\n","The response includes tx for generating the signature, original messages used to create the SignDoc, fee value, and basic information of the account.",(0,r.jsx)(e.br,{}),"\n","Users can either generate the signature directly without 0x from the value and broadcast it, or use the provided broadcast API to send the tx."]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)("span",{style:{color:"var(--shiki-token-keyword)"},children:(0,r.jsx)(e.p,{children:"Multi sign account is not supported yet."})}),"\n",(0,r.jsx)(e.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(e.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsxs)(e.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Content-Type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"application/json"})]})]})}),"\n",(0,r.jsx)(e.h3,{id:"response",children:"Response"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SignDoc for generating the signature. Use the data without '0x'"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0x0aa6010a98010a232f636f736d6f732e7374616b696e612e763162657461312e4d736744656c656761746512710a2d636f736d6f73316772306533706a3379366671767a79666d3071787977396835647766727668387a76337839701234636f736d6f7376616c6f70657231636c707172346e726b346b68676b786a3738666377776836646c337577346570736c7566666e1a0a0a057561746f6d120131120974657374206d656d6f12660a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21034d09bdfbf996ebc038336238f20c6690d3592abbaafa0557c93ba6d76c0ea2d412040a020801185c12120a0c0a057561746f6d120337363010c7c5121a0b636f736d6f736875622d3420f1ca26"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Original data that user transfer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgDelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"osmovaloper1clpqr4nrc4khgkxj78fcwwh6dl3uw4epsluffn"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"uosmo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Transaction fee"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"fee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"uosmo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"760"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"gas"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"303815"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Account public key of signer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"publicKey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"@type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"/cosmos.crypto.secp256k1.PubKey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Account number of signer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"accountNumber"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"63277"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Account sequence of signer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"sequence"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"12"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(e.h3,{id:"how-to-make-a-public-key-from-private-key",children:"How to make a public key from private key"}),"\n",(0,r.jsx)(e.pre,{"data-language":"javascript","data-theme":"default",filename:"Make Public Key",children:(0,r.jsxs)(e.code,{"data-language":"javascript","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"privateKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'1acbcaf3fec7fcbe93afa3cafd8bacf8b1fbcaccc0accdb9ef896fd8eafc135a'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"pubKeyUint8Array"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"TinySecp256k1"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".pointFromScalar"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(privateKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"!"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"pubKeyUint8Array) {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"throw"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Invalid private key'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Use this publicKey when sending a transaction (tx) for the first time."})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"publicKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(pubKeyUint8Array)"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".toString"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'base64'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,r.jsx)(e.h2,{id:"send-transaction",children:"Send Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.bank.v1beta1.MsgSend"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"fromAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Receiver Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"toAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Send Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.bank.v1beta1.MsgSend",fromAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",toAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",amount:[{denom:"uosmo",amount:"1"}]}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"delegate-transaction",children:"Delegate Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgDelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to delegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Delegate Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.staking.v1beta1.MsgDelegate",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4",amount:{denom:"uosmo",amount:"1"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"undelegate-transaction",children:"Undelegate Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgUndelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to undelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Undelegate Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.staking.v1beta1.MsgUndelegate",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4",amount:{denom:"uosmo",amount:"1"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"begin-redelegate-transaction",children:"Begin Redelegate Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgBeginRedelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// From Validator Address to redelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorSrcAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// To Validator Address to redelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorDstAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1des8hpaqnxgdjahelvhgecctpnq7gm04344cdf",memo:"Begin Redelegate Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.staking.v1beta1.MsgBeginRedelegate",delegatorAddress:"osmo1des8hpaqnxgdjahelvhgecctpnq7gm04344cdf",validatorSrcAddress:"osmovaloper14lzvt4gdwh2q4ymyjqma0p4j4aykpn92l4warr",validatorDstAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4",amount:{denom:"uosmo",amount:"1"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"claim-delegate-rewards-transaction",children:"Claim Delegate Rewards Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to claim rewards"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Withdraw Delegate Reward Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"claim-validator-commissions-transaction",children:"Claim Validator Commissions Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to withdraw validator commission"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Withdraw Validator Commission Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"governance-vote-transaction",children:"Governance Vote Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.gov.v1beta1.MsgVote"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Proposal ID"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"proposalId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Voter"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"voter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Vote Option("VOTE_OPTION_UNSPECIFIED" | "VOTE_OPTION_YES" | "VOTE_OPTION_ABSTAIN" | "VOTE_OPTION_NO" | "VOTE_OPTION_NO_WITH_VETO")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"option"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Governance Vote Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.gov.v1beta1.MsgVote",proposalId:"565",voter:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",option:"VOTE_OPTION_YES"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"wasm-contract-execute-transaction",children:"Wasm Contract Execute Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmwasm.wasm.v1.MsgExecuteContract"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"sender"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Contract Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"contract"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Execute Messages"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msg"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Funds"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"funds"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" []"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"neutron1aaaaaaaaaaah3rrtmhmp5aymz808mn2vqpgu0l",memo:"Wasm Contract Execute Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmwasm.wasm.v1.MsgExecuteContract",sender:"neutron1aaaaaaaaaaah3rrtmhmp5aymz808mn2vqpgu0l",contract:"neutron1kkwp7pd4ts6gukm3e820kyftz4vv5jqtmal8pwqezrnq2ddycqasr87x9p",msg:{claim:{}},funds:[]}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"authz-grant-transaction",children:"Authz Grant Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// GeneraicAuthorization"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgGrant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Auth Type("GenericAuthorization" | "StakeAuthorization" | "SendAuthorization")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"GenericAuthorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msg"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"expiration"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"datetime"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// StakeAuthorization"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgGrant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Auth Type("GenericAuthorization" | "StakeAuthorization" | "SendAuthorization")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"StakeAuthorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"maxTokens"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// When used in conjunction with a denyList, the allowList is not applied"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"allowList"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denyList"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Authorization Type("AUTHORIZATION_TYPE_DELEGATE" | "AUTHORIZATION_TYPE_UNDELEGATE" | "AUTHORIZATION_TYPE_REDELEGATE")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorizationType"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"expiration"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"datetime"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SendAuthorization"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgGrant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Auth Type("GenericAuthorization" | "StakeAuthorization" | "SendAuthorization")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"SendAuthorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"spendLimit"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"expiration"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"datetime"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",memo:"Authz Grant Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.authz.v1beta1.MsgGrant",granter:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",grantee:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",grant:{authorization:{type:"GenericAuthorization",msg:"/cosmos.gov.v1beta1.MsgVote"},expiration:"2023-12-31 00:00:00"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"authz-execute-transaction",children:"Authz Execute Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgExec"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msgs"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// type_url excluding '/' (ex: cosmos.bank.v1beta1.MsgSend)"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// the values included in the corresponding type message"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",memo:"Authz Exec Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.authz.v1beta1.MsgExec",grantee:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",msgs:[{type:"cosmos.bank.v1beta1.MsgSend",fromAddress:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",toAddress:"osmo1cccccccccccccccccccccccccccccccccccccc",amount:[{denom:"uosmo",amount:"1"}]}]}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"authz-revoke-transaction",children:"Authz Revoke Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgRevoke"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// msgTypeUrl"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// GenericAuthorization, you can simply use the msg value of that authorization as it is"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SendAuthorization, you should use /cosmos.bank.v1beta1.MsgSend"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// StakeAuthorization, you should provide values based on the Authorization Type granted."})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// - AUTHORIZATION_TYPE_DELEGATE, use /cosmos.staking.v1beta1.MsgDelegate."})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// - AUTHORIZATION_TYPE_UNDELEGATE, use /cosmos.staking.v1beta1.MsgUndelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// - AUTHORIZATION_TYPE_REDELEGATE, use /cosmos.staking.v1beta1.MsgBeginRedelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msgTypeUrl"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",memo:"Authz Revoke Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.authz.v1beta1.MsgRevoke",granter:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",grantee:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",msgTypeUrl:"/cosmos.bank.v1beta1.MsgSend"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"multiple-message-type-of-transaction",children:"Multiple Message Type of Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// The message types within the messages defined above"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Withdraw Rewards And Commissions Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"},{type:"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"}]},useBearerAuthorization:!0})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/apis/reference/builder/tx-builder/build.mdx",route:"/apis/reference/builder/tx-builder/build",timestamp:1693993636e3,title:"Build Transactions",headings:t},pageNextRoute:"/apis/reference/builder/tx-builder/build"})}},function(s){s.O(0,[2673,9659,3632,834,9774,2888,179],function(){return s(s.s=7564)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[509],{7564:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/builder/tx-builder/build",function(){return n(9373)}])},9373:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return t}});var r=n(5893),o=n(2673),i=n(2643),l=n(4482);let t=[{depth:2,value:"[POST] /v1/:network/tx-builder",id:"post-v1networktx-builder"},{depth:3,value:"Request",id:"request"},{depth:3,value:"Response",id:"response"},{depth:3,value:"How to make a public key from private key",id:"how-to-make-a-public-key-from-private-key"},{depth:2,value:"Send Transaction",id:"send-transaction"},{depth:2,value:"Delegate Transaction",id:"delegate-transaction"},{depth:2,value:"Undelegate Transaction",id:"undelegate-transaction"},{depth:2,value:"Begin Redelegate Transaction",id:"begin-redelegate-transaction"},{depth:2,value:"Claim Delegate Rewards Transaction",id:"claim-delegate-rewards-transaction"},{depth:2,value:"Claim Validator Commissions Transaction",id:"claim-validator-commissions-transaction"},{depth:2,value:"Governance Vote Transaction",id:"governance-vote-transaction"},{depth:2,value:"Wasm Contract Execute Transaction",id:"wasm-contract-execute-transaction"},{depth:2,value:"Authz Grant Transaction",id:"authz-grant-transaction"},{depth:2,value:"Authz Execute Transaction",id:"authz-execute-transaction"},{depth:2,value:"Authz Revoke Transaction",id:"authz-revoke-transaction"},{depth:2,value:"Multiple Message Type of Transaction",id:"multiple-message-type-of-transaction"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",br:"br",h3:"h3",pre:"pre",code:"code",span:"span"},(0,i.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Build Transactions"}),"\n",(0,r.jsxs)(e.h2,{id:"post-v1networktx-builder",children:[(0,r.jsx)(e.strong,{children:"[POST]"})," /v1/:network/tx-builder"]}),"\n",(0,r.jsxs)(e.p,{children:["This API returns the SignDoc data for broadcasting transactions.",(0,r.jsx)(e.br,{}),"\n","The response includes tx for generating the signature, original messages used to create the SignDoc, fee value, and basic information of the account.",(0,r.jsx)(e.br,{}),"\n","Users can either generate the signature directly without 0x from the value and broadcast it, or use the provided broadcast API to send the tx."]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)("span",{style:{color:"var(--shiki-token-keyword)"},children:(0,r.jsx)(e.p,{children:"Multi sign account is not supported yet."})}),"\n",(0,r.jsx)(e.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(e.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsxs)(e.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Content-Type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"application/json"})]})]})}),"\n",(0,r.jsx)(e.h3,{id:"response",children:"Response"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SignDoc for generating the signature. Use the data without '0x'"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tx"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0x0aa6010a98010a232f636f736d6f732e7374616b696e612e763162657461312e4d736744656c656761746512710a2d636f736d6f73316772306533706a3379366671767a79666d3071787977396835647766727668387a76337839701234636f736d6f7376616c6f70657231636c707172346e726b346b68676b786a3738666377776836646c337577346570736c7566666e1a0a0a057561746f6d120131120974657374206d656d6f12660a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21034d09bdfbf996ebc038336238f20c6690d3592abbaafa0557c93ba6d76c0ea2d412040a020801185c12120a0c0a057561746f6d120337363010c7c5121a0b636f736d6f736875622d3420f1ca26"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Original data that user transfer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgDelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"osmovaloper1clpqr4nrc4khgkxj78fcwwh6dl3uw4epsluffn"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"uosmo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Transaction fee"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"fee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"uosmo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"760"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"gas"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"303815"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Account public key of signer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"publicKey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"@type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"/cosmos.crypto.secp256k1.PubKey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Account number of signer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"accountNumber"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"63277"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Account sequence of signer"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"sequence"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"12"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(e.h3,{id:"how-to-make-a-public-key-from-private-key",children:"How to make a public key from private key"}),"\n",(0,r.jsx)(e.pre,{"data-language":"javascript","data-theme":"default",filename:"Make Public Key",children:(0,r.jsxs)(e.code,{"data-language":"javascript","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"privateKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'1acbcaf3fec7fcbe93afa3cafd8bacf8b1fbcaccc0accdb9ef896fd8eafc135a'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"pubKeyUint8Array"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"TinySecp256k1"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".pointFromScalar"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(privateKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"!"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"pubKeyUint8Array) {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"throw"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Invalid private key'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Use this publicKey when sending a transaction (tx) for the first time."})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"publicKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(pubKeyUint8Array)"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".toString"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'base64'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,r.jsx)(e.h2,{id:"send-transaction",children:"Send Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.bank.v1beta1.MsgSend"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"fromAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Receiver Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"toAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Send Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.bank.v1beta1.MsgSend",fromAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",toAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",amount:[{denom:"uosmo",amount:"1"}]}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"delegate-transaction",children:"Delegate Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgDelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to delegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Delegate Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.staking.v1beta1.MsgDelegate",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4",amount:{denom:"uosmo",amount:"1"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"undelegate-transaction",children:"Undelegate Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgUndelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to undelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Undelegate Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.staking.v1beta1.MsgUndelegate",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4",amount:{denom:"uosmo",amount:"1"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"begin-redelegate-transaction",children:"Begin Redelegate Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.staking.v1beta1.MsgBeginRedelegate"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// From Validator Address to redelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorSrcAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// To Validator Address to redelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorDstAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Amount"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1des8hpaqnxgdjahelvhgecctpnq7gm04344cdf",memo:"Begin Redelegate Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.staking.v1beta1.MsgBeginRedelegate",delegatorAddress:"osmo1des8hpaqnxgdjahelvhgecctpnq7gm04344cdf",validatorSrcAddress:"osmovaloper14lzvt4gdwh2q4ymyjqma0p4j4aykpn92l4warr",validatorDstAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4",amount:{denom:"uosmo",amount:"1"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"claim-delegate-rewards-transaction",children:"Claim Delegate Rewards Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"delegatorAddress"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to claim rewards"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Withdraw Delegate Reward Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"claim-validator-commissions-transaction",children:"Claim Validator Commissions Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Validator Address to withdraw validator commission"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"validatorAddress"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Withdraw Validator Commission Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"governance-vote-transaction",children:"Governance Vote Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.gov.v1beta1.MsgVote"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Proposal ID"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"proposalId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Voter"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"voter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Vote Option("VOTE_OPTION_UNSPECIFIED" | "VOTE_OPTION_YES" | "VOTE_OPTION_ABSTAIN" | "VOTE_OPTION_NO" | "VOTE_OPTION_NO_WITH_VETO")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"option"": string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Governance Vote Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.gov.v1beta1.MsgVote",proposalId:"565",voter:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",option:"VOTE_OPTION_YES"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"wasm-contract-execute-transaction",children:"Wasm Contract Execute Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Type"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmwasm.wasm.v1.MsgExecuteContract"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Sender"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"sender"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Contract Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"contract"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Execute Messages"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msg"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Funds"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"funds"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" []"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"neutron1aaaaaaaaaaah3rrtmhmp5aymz808mn2vqpgu0l",memo:"Wasm Contract Execute Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmwasm.wasm.v1.MsgExecuteContract",sender:"neutron1aaaaaaaaaaah3rrtmhmp5aymz808mn2vqpgu0l",contract:"neutron1kkwp7pd4ts6gukm3e820kyftz4vv5jqtmal8pwqezrnq2ddycqasr87x9p",msg:{claim:{}},funds:[]}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"authz-grant-transaction",children:"Authz Grant Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// GeneraicAuthorization"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgGrant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Auth Type("GenericAuthorization" | "StakeAuthorization" | "SendAuthorization")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"GenericAuthorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msg"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"expiration"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"datetime"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// StakeAuthorization"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgGrant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Auth Type("GenericAuthorization" | "StakeAuthorization" | "SendAuthorization")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"StakeAuthorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"maxTokens"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// When used in conjunction with a denyList, the allowList is not applied"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"allowList"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denyList"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Authorization Type("AUTHORIZATION_TYPE_DELEGATE" | "AUTHORIZATION_TYPE_UNDELEGATE" | "AUTHORIZATION_TYPE_REDELEGATE")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorizationType"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"expiration"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"datetime"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SendAuthorization"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgGrant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grant"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"authorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// Auth Type("GenericAuthorization" | "StakeAuthorization" | "SendAuthorization")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"SendAuthorization"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"spendLimit"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"denom"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"amount"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"expiration"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"datetime"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",memo:"Authz Grant Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.authz.v1beta1.MsgGrant",granter:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",grantee:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",grant:{authorization:{type:"GenericAuthorization",msg:"/cosmos.gov.v1beta1.MsgVote"},expiration:"2023-12-31 00:00:00"}}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"authz-execute-transaction",children:"Authz Execute Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgExec"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msgs"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// type_url excluding '/' (ex: cosmos.bank.v1beta1.MsgSend)"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// the values included in the corresponding type message"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",memo:"Authz Exec Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.authz.v1beta1.MsgExec",grantee:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",msgs:[{type:"cosmos.bank.v1beta1.MsgSend",fromAddress:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",toAddress:"osmo1cccccccccccccccccccccccccccccccccccccc",amount:[{denom:"uosmo",amount:"1"}]}]}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"authz-revoke-transaction",children:"Authz Revoke Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos.authz.v1beta1.MsgRevoke"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"granter"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"grantee"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// msgTypeUrl"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// GenericAuthorization, you can simply use the msg value of that authorization as it is"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SendAuthorization, you should use /cosmos.bank.v1beta1.MsgSend"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// StakeAuthorization, you should provide values based on the Authorization Type granted."})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// - AUTHORIZATION_TYPE_DELEGATE, use /cosmos.staking.v1beta1.MsgDelegate."})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// - AUTHORIZATION_TYPE_UNDELEGATE, use /cosmos.staking.v1beta1.MsgUndelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// - AUTHORIZATION_TYPE_REDELEGATE, use /cosmos.staking.v1beta1.MsgBeginRedelegate"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msgTypeUrl"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",memo:"Authz Revoke Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.authz.v1beta1.MsgRevoke",granter:"osmo1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",grantee:"osmo1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",msgTypeUrl:"/cosmos.bank.v1beta1.MsgSend"}]},useBearerAuthorization:!0}),"\n",(0,r.jsx)(e.h2,{id:"multiple-message-type-of-transaction",children:"Multiple Message Type of Transaction"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",filename:"Body",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Signer Address"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"signer"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Tx Memo"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"memo"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// !!! When sending a transaction (tx) for the first time, must provide the public key"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// pubkey type ("tendermint/PubKeySecp256k1" | "ethermint/PubKeyEthSecp256k1" | "injective/PubKeyEthSecp256k1")'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"pubkey"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"string"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Message Array"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"messages"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// The message types within the messages defined above"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(l.j,{method:"POST",host:"https://apis.mintscan.io",url:"/v1/:network/tx-builder",body:{signer:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",memo:"Withdraw Rewards And Commissions Memo",pubkey:[{type:"tendermint/PubKeySecp256k1",key:"An0yrOygz23oiJQZg63gJSbg4nkrWmHBC02/6Am2oDrS"}],messages:[{type:"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",delegatorAddress:"osmo1clpqr4nrk4khgkxj78fcwwh6dl3uw4epasmvnj",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"},{type:"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",validatorAddress:"osmovaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep88n0y4"}]},useBearerAuthorization:!0})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/apis/reference/builder/tx-builder/build.mdx",route:"/apis/reference/builder/tx-builder/build",timestamp:1693993636e3,title:"Build Transactions",headings:t},pageNextRoute:"/apis/reference/builder/tx-builder/build"})}},function(s){s.O(0,[2673,9659,5369,834,9774,2888,179],function(){return s(s.s=7564)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/builder/tx-builder/make-signature-1149362f6549e12e.js b/_next/static/chunks/pages/apis/reference/builder/tx-builder/make-signature-35836d371338d25e.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/builder/tx-builder/make-signature-1149362f6549e12e.js rename to _next/static/chunks/pages/apis/reference/builder/tx-builder/make-signature-35836d371338d25e.js index 687cde39..c47f7645 100644 --- a/_next/static/chunks/pages/apis/reference/builder/tx-builder/make-signature-1149362f6549e12e.js +++ b/_next/static/chunks/pages/apis/reference/builder/tx-builder/make-signature-35836d371338d25e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6517],{6992:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/builder/tx-builder/make-signature",function(){return n(5775)}])},5775:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return l}});var r=n(5893),o=n(2673),i=n(2643);n(4482);let l=[];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",a:"a",br:"br",pre:"pre",code:"code",span:"span"},(0,i.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"How Make Signature"}),"\n",(0,r.jsxs)(e.p,{children:["This documentation page provides an example of generating a signature using the tx (SignDoc) produced in the ",(0,r.jsx)(e.a,{href:"/apis/reference/builder/tx-builder/build",children:"Build Transaction"})," process.",(0,r.jsx)(e.br,{}),"\n","The example code in this document is written in Node.js. Users can implement the sign logic based on their respective programming language."]}),"\n",(0,r.jsx)(e.pre,{"data-language":"javascript","data-theme":"default",filename:"Make Signature",children:(0,r.jsxs)(e.code,{"data-language":"javascript","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Import packages for sign"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" TinySecp256k1 "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'tiny-secp256k1'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" encHex "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'crypto-js/enc-hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" sha256 "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'crypto-js/sha256'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Define a custom function to execute the logic described on the Build Transaction page."})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Each user can implement their own version of this function and use it accordingly"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"buildResult"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"buildTx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/* Example of result"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" {"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "tx": "0x0aa6010a98010a232f636f736d6f732e7374616b696e612e763162657461312e4d736744656c656761746512710a2d636f736d6f73316772306533706a3379366671767a79666d3071787977396835647766727668387a76337839701234636f736d6f7376616c6f70657231636c707172346e726b346b68676b786a3738666377776836646c337577346570736c7566666e1a0a0a057561746f6d120131120974657374206d656d6f12660a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21034d09bdfbf996ebc038336238f20c6690d3592abbaafa0557c93ba6d76c0ea2d412040a020801185c12120a0c0a057561746f6d120337363010c7c5121a0b636f736d6f736875622d3420f1ca26",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "messages": ['})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" {"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "type": "cosmos.staking.v1beta1.MsgDelegate",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "delegatorAddress": "osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "validatorAddress": "osmovaloper1clpqr4nrc4khgkxj78fcwwh6dl3uw4epsluffn",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "amount": { "denom": "uosmo", "amount": "1" }'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" ],"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "fee": { "amount": [{ "denom": "uosmo", "amount": "760" }], "gas": "303815" },'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "publicKey": {'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "@type": "/cosmos.crypto.secp256k1.PubKey",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "key": "A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU"'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" },"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "accountNumber": "63277",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "sequence": "12"'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"}"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"*/"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Removes the '0x' string from the beginning of the tx."})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signDoc"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"buildResult"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".replace"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"/"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"^"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"0x(."}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:")/"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'$1'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SignDoc Example: 0aa6010a98010a232f636f736d6f732e7374616b696e612e763162657461312e4d736744656c656761746512710a2d636f736d6f73316772306533706a3379366671767a79666d3071787977396835647766727668387a76337839701234636f736d6f7376616c6f70657231636c707172346e726b346b68676b786a3738666377776836646c337577346570736c7566666e1a0a0a057561746f6d120131120974657374206d656d6f12660a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21034d09bdfbf996ebc038336238f20c6690d3592abbaafa0557c93ba6d76c0ea2d412040a020801185c12120a0c0a057561746f6d120337363010c7c5121a0b636f736d6f736875622d3420f1ca26"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// The part that creates a Buffer using the user's Private Key."})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// If the Private Key starts with '0x', the '0x' prefix is removed and the value is used."})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"privateKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'ca7e19f112f2a01aaccefba10840bdcbcc16344c310afff65397eaa940e51f1d'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"hashedSignDoc"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"sha256"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"encHex"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".parse"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(signDoc))"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".toString"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(encHex);"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signResult"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"TinySecp256k1"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".sign"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(hashedSignDoc"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" privateKey);"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signatureHex"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(signResult)"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".toString"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Use this to broadcast the transaction"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signature"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`0x"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"signatureHex"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Example: 0x10d0688f545e01802023a12cba8a69be50bd6e504b21781d97e7baaab61c4e8619753e64a377e85bf1488b4cdc34c87ce49c4d0d8fc0b52857129bf5aeccaed5"})})]})})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/apis/reference/builder/tx-builder/make-signature.mdx",route:"/apis/reference/builder/tx-builder/make-signature",timestamp:1693389556e3,title:"How Make Signature",headings:l},pageNextRoute:"/apis/reference/builder/tx-builder/make-signature"})}},function(s){s.O(0,[2673,9659,3632,834,9774,2888,179],function(){return s(s.s=6992)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6517],{6992:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/builder/tx-builder/make-signature",function(){return n(5775)}])},5775:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return l}});var r=n(5893),o=n(2673),i=n(2643);n(4482);let l=[];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",a:"a",br:"br",pre:"pre",code:"code",span:"span"},(0,i.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"How Make Signature"}),"\n",(0,r.jsxs)(e.p,{children:["This documentation page provides an example of generating a signature using the tx (SignDoc) produced in the ",(0,r.jsx)(e.a,{href:"/apis/reference/builder/tx-builder/build",children:"Build Transaction"})," process.",(0,r.jsx)(e.br,{}),"\n","The example code in this document is written in Node.js. Users can implement the sign logic based on their respective programming language."]}),"\n",(0,r.jsx)(e.pre,{"data-language":"javascript","data-theme":"default",filename:"Make Signature",children:(0,r.jsxs)(e.code,{"data-language":"javascript","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Import packages for sign"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" TinySecp256k1 "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'tiny-secp256k1'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" encHex "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'crypto-js/enc-hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" sha256 "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'crypto-js/sha256'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Define a custom function to execute the logic described on the Build Transaction page."})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Each user can implement their own version of this function and use it accordingly"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"buildResult"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"buildTx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/* Example of result"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" {"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "tx": "0x0aa6010a98010a232f636f736d6f732e7374616b696e612e763162657461312e4d736744656c656761746512710a2d636f736d6f73316772306533706a3379366671767a79666d3071787977396835647766727668387a76337839701234636f736d6f7376616c6f70657231636c707172346e726b346b68676b786a3738666377776836646c337577346570736c7566666e1a0a0a057561746f6d120131120974657374206d656d6f12660a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21034d09bdfbf996ebc038336238f20c6690d3592abbaafa0557c93ba6d76c0ea2d412040a020801185c12120a0c0a057561746f6d120337363010c7c5121a0b636f736d6f736875622d3420f1ca26",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "messages": ['})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" {"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "type": "cosmos.staking.v1beta1.MsgDelegate",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "delegatorAddress": "osmo1gr0e3pj3y6fqvzyam0qxyw9h5dwfrvh8zv3x9p",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "validatorAddress": "osmovaloper1clpqr4nrc4khgkxj78fcwwh6dl3uw4epsluffn",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "amount": { "denom": "uosmo", "amount": "1" }'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" ],"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "fee": { "amount": [{ "denom": "uosmo", "amount": "760" }], "gas": "303815" },'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "publicKey": {'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "@type": "/cosmos.crypto.secp256k1.PubKey",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "key": "A00Jvfv1luvAODaiOPIMZpDTWSq7qvoFV8k7ptdsDqLU"'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" },"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "accountNumber": "63277",'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:' "sequence": "12"'})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"}"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"*/"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Removes the '0x' string from the beginning of the tx."})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signDoc"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"buildResult"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".replace"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"/"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"^"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"0x(."}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:")/"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'$1'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// SignDoc Example: 0aa6010a98010a232f636f736d6f732e7374616b696e612e763162657461312e4d736744656c656761746512710a2d636f736d6f73316772306533706a3379366671767a79666d3071787977396835647766727668387a76337839701234636f736d6f7376616c6f70657231636c707172346e726b346b68676b786a3738666377776836646c337577346570736c7566666e1a0a0a057561746f6d120131120974657374206d656d6f12660a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21034d09bdfbf996ebc038336238f20c6690d3592abbaafa0557c93ba6d76c0ea2d412040a020801185c12120a0c0a057561746f6d120337363010c7c5121a0b636f736d6f736875622d3420f1ca26"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// The part that creates a Buffer using the user's Private Key."})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// If the Private Key starts with '0x', the '0x' prefix is removed and the value is used."})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"privateKey"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'ca7e19f112f2a01aaccefba10840bdcbcc16344c310afff65397eaa940e51f1d'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"hashedSignDoc"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"sha256"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"encHex"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".parse"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(signDoc))"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".toString"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(encHex);"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signResult"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"TinySecp256k1"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".sign"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(hashedSignDoc"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" privateKey);"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signatureHex"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Buffer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(signResult)"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".toString"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hex'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Use this to broadcast the transaction"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"signature"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`0x"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"signatureHex"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Example: 0x10d0688f545e01802023a12cba8a69be50bd6e504b21781d97e7baaab61c4e8619753e64a377e85bf1488b4cdc34c87ce49c4d0d8fc0b52857129bf5aeccaed5"})})]})})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/apis/reference/builder/tx-builder/make-signature.mdx",route:"/apis/reference/builder/tx-builder/make-signature",timestamp:1693389556e3,title:"How Make Signature",headings:l},pageNextRoute:"/apis/reference/builder/tx-builder/make-signature"})}},function(s){s.O(0,[2673,9659,5369,834,9774,2888,179],function(){return s(s.s=6992)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/custom/account-c542f338366e5eac.js b/_next/static/chunks/pages/apis/reference/custom/account-e6c18223ffedad54.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/custom/account-c542f338366e5eac.js rename to _next/static/chunks/pages/apis/reference/custom/account-e6c18223ffedad54.js index 9e669348..f462d0b2 100644 --- a/_next/static/chunks/pages/apis/reference/custom/account-c542f338366e5eac.js +++ b/_next/static/chunks/pages/apis/reference/custom/account-e6c18223ffedad54.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3754],{5377:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/custom/account",function(){return n(7711)}])},7711:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return c}});var t=n(5893),r=n(2673),a=n(2643),o=n(4482);let c=[{depth:2,value:"[GET] /v1/:network/accounts/:address",id:"get-v1networkaccountsaddress"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,a.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Account"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkaccountsaddress",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address"]}),"\n",(0,t.jsx)(s.p,{children:"Get account information with current balances"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,t.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address",useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,a.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/custom/account.mdx",route:"/apis/reference/custom/account",timestamp:1693389556e3,title:"Account",headings:c},pageNextRoute:"/apis/reference/custom/account"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=5377)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3754],{5377:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/custom/account",function(){return n(7711)}])},7711:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return c}});var t=n(5893),r=n(2673),a=n(2643),o=n(4482);let c=[{depth:2,value:"[GET] /v1/:network/accounts/:address",id:"get-v1networkaccountsaddress"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,a.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Account"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkaccountsaddress",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address"]}),"\n",(0,t.jsx)(s.p,{children:"Get account information with current balances"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,t.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address",useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,a.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/custom/account.mdx",route:"/apis/reference/custom/account",timestamp:1693389556e3,title:"Account",headings:c},pageNextRoute:"/apis/reference/custom/account"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=5377)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/account/account-balances-58c2ec5bb8d453a7.js b/_next/static/chunks/pages/apis/reference/historical/account/account-balances-21d46cb997316a69.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/historical/account/account-balances-58c2ec5bb8d453a7.js rename to _next/static/chunks/pages/apis/reference/historical/account/account-balances-21d46cb997316a69.js index 021f2841..19a22e56 100644 --- a/_next/static/chunks/pages/apis/reference/historical/account/account-balances-58c2ec5bb8d453a7.js +++ b/_next/static/chunks/pages/apis/reference/historical/account/account-balances-21d46cb997316a69.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3591],{7950:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-balances",function(){return n(3738)}])},3738:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return o}});var a=n(5893),r=n(2673),t=n(2643),l=n(4482);let o=[{depth:2,value:"[GET] /v1/:network/accounts/:address/balances",id:"get-v1networkaccountsaddressbalances"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Account Balance History"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaccountsaddressbalances",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address/balances"]}),"\n",(0,a.jsx)(s.p,{children:"Get balance history of an account"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search start datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: 30 days ago)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"fromDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(l.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address/balances",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="},{key:"fromDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-balances.mdx",route:"/apis/reference/historical/account/account-balances",timestamp:1695829013e3,title:"Account Balance History",headings:o},pageNextRoute:"/apis/reference/historical/account/account-balances"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=7950)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3591],{7950:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-balances",function(){return n(3738)}])},3738:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return o}});var a=n(5893),r=n(2673),t=n(2643),l=n(4482);let o=[{depth:2,value:"[GET] /v1/:network/accounts/:address/balances",id:"get-v1networkaccountsaddressbalances"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Account Balance History"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaccountsaddressbalances",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address/balances"]}),"\n",(0,a.jsx)(s.p,{children:"Get balance history of an account"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search start datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: 30 days ago)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"fromDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(l.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address/balances",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="},{key:"fromDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-balances.mdx",route:"/apis/reference/historical/account/account-balances",timestamp:1695829013e3,title:"Account Balance History",headings:o},pageNextRoute:"/apis/reference/historical/account/account-balances"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=7950)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/account/account-richlist-3e5521bdebd0551e.js b/_next/static/chunks/pages/apis/reference/historical/account/account-richlist-06e0127911b8d599.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/account/account-richlist-3e5521bdebd0551e.js rename to _next/static/chunks/pages/apis/reference/historical/account/account-richlist-06e0127911b8d599.js index 0e472681..133853e1 100644 --- a/_next/static/chunks/pages/apis/reference/historical/account/account-richlist-3e5521bdebd0551e.js +++ b/_next/static/chunks/pages/apis/reference/historical/account/account-richlist-06e0127911b8d599.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6552],{497:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-richlist",function(){return n(9754)}])},9754:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var a=n(5893),r=n(2673),t=n(2643),l=n(4482);let i=[{depth:2,value:"[GET] /v1/:network/accounts/richlist/:symbol",id:"get-v1networkaccountsrichlistsymbol"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Account Balance History"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaccountsrichlistsymbol",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/richlist/:symbol"]}),"\n",(0,a.jsx)(s.p,{children:"Get richlist for the given symbol"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# To display detailed information of the balance"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (boolean, optional, default: false)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"detail"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"})]})]})}),"\n",(0,a.jsx)(l.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/richlist/:symbol",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="},{key:"detail",type:"boolean",optional:!0,placeholder:"true"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-richlist.mdx",route:"/apis/reference/historical/account/account-richlist",timestamp:1695829035e3,title:"Account Balance History",headings:i},pageNextRoute:"/apis/reference/historical/account/account-richlist"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=497)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6552],{497:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-richlist",function(){return n(9754)}])},9754:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var a=n(5893),r=n(2673),t=n(2643),l=n(4482);let i=[{depth:2,value:"[GET] /v1/:network/accounts/richlist/:symbol",id:"get-v1networkaccountsrichlistsymbol"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Account Balance History"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaccountsrichlistsymbol",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/richlist/:symbol"]}),"\n",(0,a.jsx)(s.p,{children:"Get richlist for the given symbol"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# To display detailed information of the balance"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (boolean, optional, default: false)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"detail"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"})]})]})}),"\n",(0,a.jsx)(l.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/richlist/:symbol",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="},{key:"detail",type:"boolean",optional:!0,placeholder:"true"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-richlist.mdx",route:"/apis/reference/historical/account/account-richlist",timestamp:1695829035e3,title:"Account Balance History",headings:i},pageNextRoute:"/apis/reference/historical/account/account-richlist"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=497)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/account/account-transactions-5e30de5ff0d4048f.js b/_next/static/chunks/pages/apis/reference/historical/account/account-transactions-ea6047ca78e6a427.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/historical/account/account-transactions-5e30de5ff0d4048f.js rename to _next/static/chunks/pages/apis/reference/historical/account/account-transactions-ea6047ca78e6a427.js index 294d7b49..0cf5b9ad 100644 --- a/_next/static/chunks/pages/apis/reference/historical/account/account-transactions-5e30de5ff0d4048f.js +++ b/_next/static/chunks/pages/apis/reference/historical/account/account-transactions-ea6047ca78e6a427.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5770],{3165:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-transactions",function(){return n(2284)}])},2284:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var a=n(5893),t=n(2673),r=n(2643),o=n(4482);let i=[{depth:2,value:"[GET] /v1/:network/accounts/:address/transactions",id:"get-v1networkaccountsaddresstransactions"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Account Transactions"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaccountsaddresstransactions",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address/transactions"]}),"\n",(0,a.jsx)(s.p,{children:"Get transactions of an account"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Array of strings for filtering by message type"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (array of string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"messageTypes[]"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"/cosmos.staking.v1beta1.MsgDelegate"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search start datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"fromDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-21 23:59:59"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4MDUxNjI5NjAwMHwxNDczMjU5OQ=="})]})]})}),"\n",(0,a.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address/transactions",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4NjkxMzUyOTAwMHwxMDExMzc3M3w5MjY2RjQ1MENFNDVFM0NDMEIwMEM5OTgzQzZEM0Q1QzZCRkUxOTZENzFGODNFMEZFQThFQ0MwOTk4QUNBMTlD"},{key:"messageTypes[0]",type:"string",optional:!0,placeholder:"/cosmos.gov.v1beta1.MsgVote"},{key:"messageTypes[1]",type:"string",optional:!0,placeholder:"/cosmos.bank.v1beta1.MsgSend"},{key:"messageTypes[2]",type:"string",optional:!0,placeholder:"/cosmos.staking.v1beta1.MsgDelegate"},{key:"fromDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-transactions.mdx",route:"/apis/reference/historical/account/account-transactions",timestamp:169582906e4,title:"Account Transactions",headings:i},pageNextRoute:"/apis/reference/historical/account/account-transactions"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=3165)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5770],{3165:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-transactions",function(){return n(2284)}])},2284:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var a=n(5893),t=n(2673),r=n(2643),o=n(4482);let i=[{depth:2,value:"[GET] /v1/:network/accounts/:address/transactions",id:"get-v1networkaccountsaddresstransactions"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Account Transactions"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaccountsaddresstransactions",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address/transactions"]}),"\n",(0,a.jsx)(s.p,{children:"Get transactions of an account"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Array of strings for filtering by message type"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (array of string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"messageTypes[]"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"/cosmos.staking.v1beta1.MsgDelegate"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search start datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"fromDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-21 23:59:59"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4MDUxNjI5NjAwMHwxNDczMjU5OQ=="})]})]})}),"\n",(0,a.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address/transactions",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4NjkxMzUyOTAwMHwxMDExMzc3M3w5MjY2RjQ1MENFNDVFM0NDMEIwMEM5OTgzQzZEM0Q1QzZCRkUxOTZENzFGODNFMEZFQThFQ0MwOTk4QUNBMTlD"},{key:"messageTypes[0]",type:"string",optional:!0,placeholder:"/cosmos.gov.v1beta1.MsgVote"},{key:"messageTypes[1]",type:"string",optional:!0,placeholder:"/cosmos.bank.v1beta1.MsgSend"},{key:"messageTypes[2]",type:"string",optional:!0,placeholder:"/cosmos.staking.v1beta1.MsgDelegate"},{key:"fromDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-transactions.mdx",route:"/apis/reference/historical/account/account-transactions",timestamp:169582906e4,title:"Account Transactions",headings:i},pageNextRoute:"/apis/reference/historical/account/account-transactions"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=3165)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/account/account-votes-fbc86882013e9236.js b/_next/static/chunks/pages/apis/reference/historical/account/account-votes-fbc2972bc724ca3b.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/account/account-votes-fbc86882013e9236.js rename to _next/static/chunks/pages/apis/reference/historical/account/account-votes-fbc2972bc724ca3b.js index 5a4776af..541ae12b 100644 --- a/_next/static/chunks/pages/apis/reference/historical/account/account-votes-fbc86882013e9236.js +++ b/_next/static/chunks/pages/apis/reference/historical/account/account-votes-fbc2972bc724ca3b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{3117:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-votes",function(){return n(3763)}])},3763:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return c}});var t=n(5893),a=n(2673),r=n(2643),o=n(4482);let c=[{depth:2,value:"[GET] /v1/:network/accounts/:address/votes",id:"get-v1networkaccountsaddressvotes"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Account Votes"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkaccountsaddressvotes",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address/votes"]}),"\n",(0,t.jsx)(s.p,{children:"Get a list of votes of an account"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Whether to remove duplicates for the same proposal"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (boolean, optional, default: false)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"distinct"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"})]})]})}),"\n","\n",(0,t.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address/votes",query:[{key:"distinct",type:"boolean",optional:!0,placeholder:"true"}],useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-votes.mdx",route:"/apis/reference/historical/account/account-votes",timestamp:1699928425e3,title:"Account Votes",headings:c},pageNextRoute:"/apis/reference/historical/account/account-votes"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=3117)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{3117:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/account/account-votes",function(){return n(3763)}])},3763:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return c}});var t=n(5893),a=n(2673),r=n(2643),o=n(4482);let c=[{depth:2,value:"[GET] /v1/:network/accounts/:address/votes",id:"get-v1networkaccountsaddressvotes"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Account Votes"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkaccountsaddressvotes",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/accounts/:address/votes"]}),"\n",(0,t.jsx)(s.p,{children:"Get a list of votes of an account"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"address"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Whether to remove duplicates for the same proposal"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (boolean, optional, default: false)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"distinct"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"})]})]})}),"\n","\n",(0,t.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/accounts/:address/votes",query:[{key:"distinct",type:"boolean",optional:!0,placeholder:"true"}],useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/account/account-votes.mdx",route:"/apis/reference/historical/account/account-votes",timestamp:1699928425e3,title:"Account Votes",headings:c},pageNextRoute:"/apis/reference/historical/account/account-votes"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=3117)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/validator/validator-block-sign-3dc00c473b146d6d.js b/_next/static/chunks/pages/apis/reference/historical/validator/validator-block-sign-fc276d014bef47c7.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/validator/validator-block-sign-3dc00c473b146d6d.js rename to _next/static/chunks/pages/apis/reference/historical/validator/validator-block-sign-fc276d014bef47c7.js index c5abbeaf..0c63f37f 100644 --- a/_next/static/chunks/pages/apis/reference/historical/validator/validator-block-sign-3dc00c473b146d6d.js +++ b/_next/static/chunks/pages/apis/reference/historical/validator/validator-block-sign-fc276d014bef47c7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1504],{5238:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-block-sign",function(){return a(4580)}])},4580:function(e,s,a){"use strict";a.r(s),a.d(s,{__toc:function(){return l}});var t=a(5893),n=a(2673),r=a(2643),i=a(4482);let l=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/latestUptime",id:"get-v1networkvalidatorsvalidatoraddresslatestuptime"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Validator Latest Block Sign"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresslatestuptime",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/latestUptime"]}),"\n",(0,t.jsx)(s.p,{children:"Get latest blocks signature of validator"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,t.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/latestUptime",useBearerAuthorization:!0})]})}s.default=(0,n.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-block-sign.mdx",route:"/apis/reference/historical/validator/validator-block-sign",timestamp:1693389556e3,title:"Validator Latest Block Sign",headings:l},pageNextRoute:"/apis/reference/historical/validator/validator-block-sign"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=5238)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1504],{5238:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-block-sign",function(){return a(4580)}])},4580:function(e,s,a){"use strict";a.r(s),a.d(s,{__toc:function(){return l}});var t=a(5893),n=a(2673),r=a(2643),i=a(4482);let l=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/latestUptime",id:"get-v1networkvalidatorsvalidatoraddresslatestuptime"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Validator Latest Block Sign"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresslatestuptime",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/latestUptime"]}),"\n",(0,t.jsx)(s.p,{children:"Get latest blocks signature of validator"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,t.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/latestUptime",useBearerAuthorization:!0})]})}s.default=(0,n.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-block-sign.mdx",route:"/apis/reference/historical/validator/validator-block-sign",timestamp:1693389556e3,title:"Validator Latest Block Sign",headings:l},pageNextRoute:"/apis/reference/historical/validator/validator-block-sign"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=5238)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/validator/validator-commissions-2e52b858d095c3f1.js b/_next/static/chunks/pages/apis/reference/historical/validator/validator-commissions-348a55851d9c1978.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/historical/validator/validator-commissions-2e52b858d095c3f1.js rename to _next/static/chunks/pages/apis/reference/historical/validator/validator-commissions-348a55851d9c1978.js index 73d85e24..f92a9d5b 100644 --- a/_next/static/chunks/pages/apis/reference/historical/validator/validator-commissions-2e52b858d095c3f1.js +++ b/_next/static/chunks/pages/apis/reference/historical/validator/validator-commissions-348a55851d9c1978.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4124],{843:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-commissions",function(){return n(5993)}])},5993:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return t}});var a=n(5893),r=n(2673),i=n(2643),o=n(4482);let t=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/commissions",id:"get-v1networkvalidatorsvalidatoraddresscommissions"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,i.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Validator Commission Balance History"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresscommissions",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/commissions"]}),"\n",(0,a.jsx)(s.p,{children:"Get commission balance history of an account"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search start datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: 30 days ago)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"fromDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/commissions",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="},{key:"fromDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-commissions.mdx",route:"/apis/reference/historical/validator/validator-commissions",timestamp:1695829083e3,title:"Validator Commission Balance History",headings:t},pageNextRoute:"/apis/reference/historical/validator/validator-commissions"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=843)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4124],{843:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-commissions",function(){return n(5993)}])},5993:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return t}});var a=n(5893),r=n(2673),i=n(2643),o=n(4482);let t=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/commissions",id:"get-v1networkvalidatorsvalidatoraddresscommissions"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,i.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Validator Commission Balance History"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresscommissions",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/commissions"]}),"\n",(0,a.jsx)(s.p,{children:"Get commission balance history of an account"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search start datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: 30 days ago)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"fromDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-20"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/commissions",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="},{key:"fromDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-commissions.mdx",route:"/apis/reference/historical/validator/validator-commissions",timestamp:1695829083e3,title:"Validator Commission Balance History",headings:t},pageNextRoute:"/apis/reference/historical/validator/validator-commissions"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=843)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/validator/validator-delegators-a6e0155c021e0e95.js b/_next/static/chunks/pages/apis/reference/historical/validator/validator-delegators-0ff4f2f0d83683d3.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/validator/validator-delegators-a6e0155c021e0e95.js rename to _next/static/chunks/pages/apis/reference/historical/validator/validator-delegators-0ff4f2f0d83683d3.js index 1b83e8cf..61955ded 100644 --- a/_next/static/chunks/pages/apis/reference/historical/validator/validator-delegators-a6e0155c021e0e95.js +++ b/_next/static/chunks/pages/apis/reference/historical/validator/validator-delegators-0ff4f2f0d83683d3.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8762],{6618:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-delegators",function(){return a(1614)}])},1614:function(e,s,a){"use strict";a.r(s),a.d(s,{__toc:function(){return o}});var n=a(5893),r=a(2673),t=a(2643),l=a(4482);let o=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/delegators",id:"get-v1networkvalidatorsvalidatoraddressdelegators"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{children:"Validator Delegators"}),"\n",(0,n.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddressdelegators",children:[(0,n.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/delegators"]}),"\n",(0,n.jsx)(s.p,{children:"Get a list of richlist of a symbol"}),"\n",(0,n.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,n.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"10"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of skip amount for pagination"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 0)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]})]})}),"\n","\n",(0,n.jsx)(l.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/delegators",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"from",type:"number",optional:!0,placeholder:"0"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-delegators.mdx",route:"/apis/reference/historical/validator/validator-delegators",timestamp:1695829097e3,title:"Validator Delegators",headings:o},pageNextRoute:"/apis/reference/historical/validator/validator-delegators"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=6618)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8762],{6618:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-delegators",function(){return a(1614)}])},1614:function(e,s,a){"use strict";a.r(s),a.d(s,{__toc:function(){return o}});var n=a(5893),r=a(2673),t=a(2643),l=a(4482);let o=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/delegators",id:"get-v1networkvalidatorsvalidatoraddressdelegators"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{children:"Validator Delegators"}),"\n",(0,n.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddressdelegators",children:[(0,n.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/delegators"]}),"\n",(0,n.jsx)(s.p,{children:"Get a list of richlist of a symbol"}),"\n",(0,n.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,n.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"10"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of skip amount for pagination"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 0)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]})]})}),"\n","\n",(0,n.jsx)(l.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/delegators",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"from",type:"number",optional:!0,placeholder:"0"}],useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-delegators.mdx",route:"/apis/reference/historical/validator/validator-delegators",timestamp:1695829097e3,title:"Validator Delegators",headings:o},pageNextRoute:"/apis/reference/historical/validator/validator-delegators"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=6618)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/validator/validator-power-events-bad3d179114ae614.js b/_next/static/chunks/pages/apis/reference/historical/validator/validator-power-events-3bfca321ba3d8080.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/validator/validator-power-events-bad3d179114ae614.js rename to _next/static/chunks/pages/apis/reference/historical/validator/validator-power-events-3bfca321ba3d8080.js index f6375d83..0989c17c 100644 --- a/_next/static/chunks/pages/apis/reference/historical/validator/validator-power-events-bad3d179114ae614.js +++ b/_next/static/chunks/pages/apis/reference/historical/validator/validator-power-events-3bfca321ba3d8080.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[803],{7378:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-power-events",function(){return n(9410)}])},9410:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var r=n(5893),a=n(2673),t=n(2643),o=n(4482);let i=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/powerEvents",id:"get-v1networkvalidatorsvalidatoraddresspowerevents"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{children:"Validator Voting Power Events"}),"\n",(0,r.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresspowerevents",children:[(0,r.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/powerEvents"]}),"\n",(0,r.jsx)(s.p,{children:"Get voting power events of validator"}),"\n",(0,r.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,r.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,r.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,r.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,r.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]})]})}),"\n",(0,r.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/powerEvents",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="}],useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-power-events.mdx",route:"/apis/reference/historical/validator/validator-power-events",timestamp:169582911e4,title:"Validator Voting Power Events",headings:i},pageNextRoute:"/apis/reference/historical/validator/validator-power-events"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=7378)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[803],{7378:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-power-events",function(){return n(9410)}])},9410:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var r=n(5893),a=n(2673),t=n(2643),o=n(4482);let i=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/powerEvents",id:"get-v1networkvalidatorsvalidatoraddresspowerevents"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{children:"Validator Voting Power Events"}),"\n",(0,r.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresspowerevents",children:[(0,r.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/powerEvents"]}),"\n",(0,r.jsx)(s.p,{children:"Get voting power events of validator"}),"\n",(0,r.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,r.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,r.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,r.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,r.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]})]})}),"\n",(0,r.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/powerEvents",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="}],useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-power-events.mdx",route:"/apis/reference/historical/validator/validator-power-events",timestamp:169582911e4,title:"Validator Voting Power Events",headings:i},pageNextRoute:"/apis/reference/historical/validator/validator-power-events"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=7378)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-a8993996ba69126f.js b/_next/static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-86b62f5bd99837da.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-a8993996ba69126f.js rename to _next/static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-86b62f5bd99837da.js index a1712274..b0238523 100644 --- a/_next/static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-a8993996ba69126f.js +++ b/_next/static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-86b62f5bd99837da.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9876],{5511:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-proposed-blocks",function(){return r(3521)}])},3521:function(e,s,r){"use strict";r.r(s),r.d(s,{__toc:function(){return l}});var n=r(5893),a=r(2673),o=r(2643),t=r(4482);let l=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/proposed",id:"get-v1networkvalidatorsvalidatoraddressproposed"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,o.a)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{children:"Validator Voting Power Events"}),"\n",(0,n.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddressproposed",children:[(0,n.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/proposed"]}),"\n",(0,n.jsx)(s.p,{children:"Get blocks proposed by the validator"}),"\n",(0,n.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,n.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]})]})}),"\n",(0,n.jsx)(t.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/proposed",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="}],useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,o.a)(),e.components);return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-proposed-blocks.mdx",route:"/apis/reference/historical/validator/validator-proposed-blocks",timestamp:169582912e4,title:"Validator Voting Power Events",headings:l},pageNextRoute:"/apis/reference/historical/validator/validator-proposed-blocks"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=5511)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9876],{5511:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-proposed-blocks",function(){return r(3521)}])},3521:function(e,s,r){"use strict";r.r(s),r.d(s,{__toc:function(){return l}});var n=r(5893),a=r(2673),o=r(2643),t=r(4482);let l=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/proposed",id:"get-v1networkvalidatorsvalidatoraddressproposed"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,o.a)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{children:"Validator Voting Power Events"}),"\n",(0,n.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddressproposed",children:[(0,n.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/proposed"]}),"\n",(0,n.jsx)(s.p,{children:"Get blocks proposed by the validator"}),"\n",(0,n.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,n.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of account"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 20)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"take"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"20"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Value of `pagination.searchAfter` from previous request for pagination"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, optional)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"searchAfter"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"MTY4OTc1NTU4NjAwMA=="})]})]})}),"\n",(0,n.jsx)(t.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:validatorAddress/proposed",query:[{key:"take",type:"number",optional:!0,placeholder:"20"},{key:"searchAfter",type:"string",optional:!0,placeholder:"MTY4OTc1NTU4NjAwMA=="}],useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,o.a)(),e.components);return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-proposed-blocks.mdx",route:"/apis/reference/historical/validator/validator-proposed-blocks",timestamp:169582912e4,title:"Validator Voting Power Events",headings:l},pageNextRoute:"/apis/reference/historical/validator/validator-proposed-blocks"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=5511)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/historical/validator/validator-votes-ad29b502f525047f.js b/_next/static/chunks/pages/apis/reference/historical/validator/validator-votes-b42bd4c7ffb5b635.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/historical/validator/validator-votes-ad29b502f525047f.js rename to _next/static/chunks/pages/apis/reference/historical/validator/validator-votes-b42bd4c7ffb5b635.js index 1377045d..9fd13205 100644 --- a/_next/static/chunks/pages/apis/reference/historical/validator/validator-votes-ad29b502f525047f.js +++ b/_next/static/chunks/pages/apis/reference/historical/validator/validator-votes-b42bd4c7ffb5b635.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1955],{1362:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-votes",function(){return a(2802)}])},2802:function(e,s,a){"use strict";a.r(s),a.d(s,{__toc:function(){return i}});var n=a(5893),t=a(2673),r=a(2643),o=a(4482);let i=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/transactions",id:"get-v1networkvalidatorsvalidatoraddresstransactions"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{children:"Validator Votes"}),"\n",(0,n.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresstransactions",children:[(0,n.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/transactions"]}),"\n",(0,n.jsx)(s.p,{children:"Get a list of votes of a validator"}),"\n",(0,n.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,n.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of validator"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Whether to remove duplicates for the same proposal"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (boolean, optional, default: false)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"distinct"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"})]})]})}),"\n",(0,n.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:address/votes",query:[{key:"distinct",type:"boolean",optional:!0,placeholder:"true"}],useBearerAuthorization:!0})]})}s.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-votes.mdx",route:"/apis/reference/historical/validator/validator-votes",timestamp:1693389556e3,title:"Validator Votes",headings:i},pageNextRoute:"/apis/reference/historical/validator/validator-votes"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=1362)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1955],{1362:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/historical/validator/validator-votes",function(){return a(2802)}])},2802:function(e,s,a){"use strict";a.r(s),a.d(s,{__toc:function(){return i}});var n=a(5893),t=a(2673),r=a(2643),o=a(4482);let i=[{depth:2,value:"[GET] /v1/:network/validators/:validatorAddress/transactions",id:"get-v1networkvalidatorsvalidatoraddresstransactions"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{children:"Validator Votes"}),"\n",(0,n.jsxs)(s.h2,{id:"get-v1networkvalidatorsvalidatoraddresstransactions",children:[(0,n.jsx)(s.strong,{children:"[GET]"})," /v1/:network/validators/:validatorAddress/transactions"]}),"\n",(0,n.jsx)(s.p,{children:"Get a list of votes of a validator"}),"\n",(0,n.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,n.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The address of validator"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,n.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,n.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Whether to remove duplicates for the same proposal"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (boolean, optional, default: false)"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"distinct"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"})]})]})}),"\n",(0,n.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/validators/:address/votes",query:[{key:"distinct",type:"boolean",optional:!0,placeholder:"true"}],useBearerAuthorization:!0})]})}s.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/historical/validator/validator-votes.mdx",route:"/apis/reference/historical/validator/validator-votes",timestamp:1693389556e3,title:"Validator Votes",headings:i},pageNextRoute:"/apis/reference/historical/validator/validator-votes"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=1362)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/proxy/lcd-55d1221355474410.js b/_next/static/chunks/pages/apis/reference/proxy/lcd-e28c74d45ec77774.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/proxy/lcd-55d1221355474410.js rename to _next/static/chunks/pages/apis/reference/proxy/lcd-e28c74d45ec77774.js index f63cdc23..0d80d9f8 100644 --- a/_next/static/chunks/pages/apis/reference/proxy/lcd-55d1221355474410.js +++ b/_next/static/chunks/pages/apis/reference/proxy/lcd-e28c74d45ec77774.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5757],{3598:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/proxy/lcd",function(){return s(3382)}])},3382:function(e,n,s){"use strict";s.r(n),s.d(n,{__toc:function(){return l}});var r=s(5893),t=s(2673),a=s(2643),o=s(4482);let l=[{depth:2,value:"[GET][POST] /v1/:network/lcd/*",id:"getpost-v1networklcd"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",strong:"strong",br:"br",em:"em",h3:"h3",pre:"pre",code:"code",span:"span"},(0,a.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{children:"LCD Proxy"}),"\n",(0,r.jsx)(n.p,{children:"Proxy API for making LCD requests to BlockChain Node"}),"\n",(0,r.jsxs)(n.h2,{id:"getpost-v1networklcd",children:[(0,r.jsx)(n.strong,{children:"[GET][POST]"})," /v1/:network/lcd/*"]}),"\n",(0,r.jsxs)(n.p,{children:["You can directly access the Node LCD API by referring to the Swagger or document of the Network you want to make requests to.",(0,r.jsx)(n.br,{}),"\n",(0,r.jsx)(n.em,{children:"However, please note that certain requests are blocked as they may have a negative impact on the server."})]}),"\n",(0,r.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsx)(n.code,{"data-language":"yaml","data-theme":"default",children:(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,r.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,r.jsxs)(n.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The url of lcd API. See details in Swagger or document of the network"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:": "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"/cosmos/bank/v1beta1/balances/cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,r.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/:network/lcd/:url",useBearerAuthorization:!0})]})}n.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/proxy/lcd.mdx",route:"/apis/reference/proxy/lcd",timestamp:1693389556e3,title:"LCD Proxy",headings:l},pageNextRoute:"/apis/reference/proxy/lcd"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=3598)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5757],{3598:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/proxy/lcd",function(){return s(3382)}])},3382:function(e,n,s){"use strict";s.r(n),s.d(n,{__toc:function(){return l}});var r=s(5893),t=s(2673),a=s(2643),o=s(4482);let l=[{depth:2,value:"[GET][POST] /v1/:network/lcd/*",id:"getpost-v1networklcd"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",strong:"strong",br:"br",em:"em",h3:"h3",pre:"pre",code:"code",span:"span"},(0,a.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{children:"LCD Proxy"}),"\n",(0,r.jsx)(n.p,{children:"Proxy API for making LCD requests to BlockChain Node"}),"\n",(0,r.jsxs)(n.h2,{id:"getpost-v1networklcd",children:[(0,r.jsx)(n.strong,{children:"[GET][POST]"})," /v1/:network/lcd/*"]}),"\n",(0,r.jsxs)(n.p,{children:["You can directly access the Node LCD API by referring to the Swagger or document of the Network you want to make requests to.",(0,r.jsx)(n.br,{}),"\n",(0,r.jsx)(n.em,{children:"However, please note that certain requests are blocked as they may have a negative impact on the server."})]}),"\n",(0,r.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,r.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,r.jsx)(n.code,{"data-language":"yaml","data-theme":"default",children:(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,r.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,r.jsxs)(n.code,{"data-language":"yaml","data-theme":"default",children:[(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The url of lcd API. See details in Swagger or document of the network"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:": "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"/cosmos/bank/v1beta1/balances/cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"})]})]})}),"\n",(0,r.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/:network/lcd/:url",useBearerAuthorization:!0})]})}n.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/proxy/lcd.mdx",route:"/apis/reference/proxy/lcd",timestamp:1693389556e3,title:"LCD Proxy",headings:l},pageNextRoute:"/apis/reference/proxy/lcd"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=3598)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/statistics/messages-d02d979895ab431d.js b/_next/static/chunks/pages/apis/reference/statistics/messages-dd684c0f3bd00dd9.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/statistics/messages-d02d979895ab431d.js rename to _next/static/chunks/pages/apis/reference/statistics/messages-dd684c0f3bd00dd9.js index 25c8a61f..d6f47040 100644 --- a/_next/static/chunks/pages/apis/reference/statistics/messages-d02d979895ab431d.js +++ b/_next/static/chunks/pages/apis/reference/statistics/messages-dd684c0f3bd00dd9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3590],{8256:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/statistics/messages",function(){return t(4166)}])},4166:function(e,s,t){"use strict";t.r(s),t.d(s,{__toc:function(){return l}});var a=t(5893),n=t(2673),r=t(2643),i=t(4482);let l=[{depth:2,value:"[GET] /v1/:network/statistics/messages",id:"get-v1networkstatisticsmessages"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Message Counts"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticsmessages",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/messages"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions per each message type over the last 30 days"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/messages",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,n.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/statistics/messages.mdx",route:"/apis/reference/statistics/messages",timestamp:1699928425e3,title:"Message Counts",headings:l},pageNextRoute:"/apis/reference/statistics/messages"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=8256)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3590],{8256:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/statistics/messages",function(){return t(4166)}])},4166:function(e,s,t){"use strict";t.r(s),t.d(s,{__toc:function(){return l}});var a=t(5893),n=t(2673),r=t(2643),i=t(4482);let l=[{depth:2,value:"[GET] /v1/:network/statistics/messages",id:"get-v1networkstatisticsmessages"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Message Counts"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticsmessages",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/messages"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions per each message type over the last 30 days"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/messages",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,n.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/statistics/messages.mdx",route:"/apis/reference/statistics/messages",timestamp:1699928425e3,title:"Message Counts",headings:l},pageNextRoute:"/apis/reference/statistics/messages"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=8256)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/statistics/transactions-12f741319cbb32d1.js b/_next/static/chunks/pages/apis/reference/statistics/transactions-931dbbc3f3436972.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/statistics/transactions-12f741319cbb32d1.js rename to _next/static/chunks/pages/apis/reference/statistics/transactions-931dbbc3f3436972.js index 98c1af05..d760b53b 100644 --- a/_next/static/chunks/pages/apis/reference/statistics/transactions-12f741319cbb32d1.js +++ b/_next/static/chunks/pages/apis/reference/statistics/transactions-931dbbc3f3436972.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5621],{2461:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/statistics/transactions",function(){return t(4636)}])},4636:function(e,s,t){"use strict";t.r(s),t.d(s,{__toc:function(){return l}});var a=t(5893),n=t(2673),i=t(2643),r=t(4482);let l=[{depth:2,value:"[GET] /v1/:network/statistics/txs/hourly",id:"get-v1networkstatisticstxshourly"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/:network/statistics/txs/daily",id:"get-v1networkstatisticstxsdaily"},{depth:3,value:"Request",id:"request-1"},{depth:2,value:"[GET] /v1/:network/statistics/txs/weekly",id:"get-v1networkstatisticstxsweekly"},{depth:3,value:"Request",id:"request-2"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,i.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Transactions Counts"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticstxshourly",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/txs/hourly"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions Per Hour"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/txs/hourly",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticstxsdaily",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/txs/daily"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions Per Day"}),"\n",(0,a.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/txs/daily",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticstxsweekly",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/txs/weekly"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions Per Week"}),"\n",(0,a.jsx)(s.h3,{id:"request-2",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/txs/weekly",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,n.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/statistics/transactions.mdx",route:"/apis/reference/statistics/transactions",timestamp:1693389556e3,title:"Transactions Counts",headings:l},pageNextRoute:"/apis/reference/statistics/transactions"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=2461)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5621],{2461:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/statistics/transactions",function(){return t(4636)}])},4636:function(e,s,t){"use strict";t.r(s),t.d(s,{__toc:function(){return l}});var a=t(5893),n=t(2673),i=t(2643),r=t(4482);let l=[{depth:2,value:"[GET] /v1/:network/statistics/txs/hourly",id:"get-v1networkstatisticstxshourly"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/:network/statistics/txs/daily",id:"get-v1networkstatisticstxsdaily"},{depth:3,value:"Request",id:"request-1"},{depth:2,value:"[GET] /v1/:network/statistics/txs/weekly",id:"get-v1networkstatisticstxsweekly"},{depth:3,value:"Request",id:"request-2"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,i.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Transactions Counts"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticstxshourly",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/txs/hourly"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions Per Hour"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/txs/hourly",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticstxsdaily",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/txs/daily"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions Per Day"}),"\n",(0,a.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/txs/daily",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkstatisticstxsweekly",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/statistics/txs/weekly"]}),"\n",(0,a.jsx)(s.p,{children:"Get The Number of Transactions Per Week"}),"\n",(0,a.jsx)(s.h3,{id:"request-2",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Search end datetime"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-07-21 23:59:59"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/statistics/txs/weekly",query:[{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,n.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/statistics/transactions.mdx",route:"/apis/reference/statistics/transactions",timestamp:1693389556e3,title:"Transactions Counts",headings:l},pageNextRoute:"/apis/reference/statistics/transactions"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=2461)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/utilities/assets-5221a7cba4453d5d.js b/_next/static/chunks/pages/apis/reference/utilities/assets-e46eb592ac2b8727.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/utilities/assets-5221a7cba4453d5d.js rename to _next/static/chunks/pages/apis/reference/utilities/assets-e46eb592ac2b8727.js index 555b81a6..60e28179 100644 --- a/_next/static/chunks/pages/apis/reference/utilities/assets-5221a7cba4453d5d.js +++ b/_next/static/chunks/pages/apis/reference/utilities/assets-e46eb592ac2b8727.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{1098:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/assets",function(){return n(3281)}])},3281:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return l}});var t=n(5893),a=n(2673),r=n(2643),i=n(4482);let l=[{depth:2,value:"[GET] /v1/:network/assets",id:"get-v1networkassets"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/:network/assets/:symbol",id:"get-v1networkassetssymbol"},{depth:3,value:"Request",id:"request-1"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Assets"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkassets",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/assets"]}),"\n",(0,t.jsx)(s.p,{children:"Get all assets of the current chain"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,t.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/assets",useBearerAuthorization:!0}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkassetssymbol",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/assets/:symbol"]}),"\n",(0,t.jsx)(s.p,{children:"Get asset of specific symbol"}),"\n",(0,t.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,t.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/assets/:symbol",useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/assets.mdx",route:"/apis/reference/utilities/assets",timestamp:1693389556e3,title:"Assets",headings:l},pageNextRoute:"/apis/reference/utilities/assets"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=1098)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{1098:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/assets",function(){return n(3281)}])},3281:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return l}});var t=n(5893),a=n(2673),r=n(2643),i=n(4482);let l=[{depth:2,value:"[GET] /v1/:network/assets",id:"get-v1networkassets"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/:network/assets/:symbol",id:"get-v1networkassetssymbol"},{depth:3,value:"Request",id:"request-1"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Assets"}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkassets",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/assets"]}),"\n",(0,t.jsx)(s.p,{children:"Get all assets of the current chain"}),"\n",(0,t.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,t.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/assets",useBearerAuthorization:!0}),"\n",(0,t.jsxs)(s.h2,{id:"get-v1networkassetssymbol",children:[(0,t.jsx)(s.strong,{children:"[GET]"})," /v1/:network/assets/:symbol"]}),"\n",(0,t.jsx)(s.p,{children:"Get asset of specific symbol"}),"\n",(0,t.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,t.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,t.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/assets/:symbol",useBearerAuthorization:!0})]})}s.default=(0,a.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/assets.mdx",route:"/apis/reference/utilities/assets",timestamp:1693389556e3,title:"Assets",headings:l},pageNextRoute:"/apis/reference/utilities/assets"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=1098)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/utilities/inflation-6bd066fa5cde1437.js b/_next/static/chunks/pages/apis/reference/utilities/inflation-21c85c1e36d54829.js similarity index 97% rename from _next/static/chunks/pages/apis/reference/utilities/inflation-6bd066fa5cde1437.js rename to _next/static/chunks/pages/apis/reference/utilities/inflation-21c85c1e36d54829.js index 33502e42..be25a3e9 100644 --- a/_next/static/chunks/pages/apis/reference/utilities/inflation-6bd066fa5cde1437.js +++ b/_next/static/chunks/pages/apis/reference/utilities/inflation-21c85c1e36d54829.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6971],{709:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/inflation",function(){return t(792)}])},792:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return o}});var i=t(5893),s=t(2673),a=t(2643),r=t(4482);let o=[{depth:2,value:"[GET] /v1/:network/inflation",id:"get-v1networkinflation"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,a.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Chain Inflation"}),"\n",(0,i.jsxs)(n.h2,{id:"get-v1networkinflation",children:[(0,i.jsx)(n.strong,{children:"[GET]"})," /v1/:network/inflation"]}),"\n",(0,i.jsx)(n.p,{children:"Get inflation data from the chain"}),"\n",(0,i.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,i.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,i.jsx)(n.code,{"data-language":"yaml","data-theme":"default",children:(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,i.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,i.jsxs)(n.code,{"data-language":"yaml","data-theme":"default",children:[(0,i.jsx)(n.span,{className:"line",children:(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,i.jsx)(n.span,{className:"line",children:(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,i.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/inflation",useBearerAuthorization:!0})]})}n.default=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/inflation.mdx",route:"/apis/reference/utilities/inflation",timestamp:1693389556e3,title:"Chain Inflation",headings:o},pageNextRoute:"/apis/reference/utilities/inflation"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=709)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6971],{709:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/inflation",function(){return t(792)}])},792:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return o}});var i=t(5893),s=t(2673),a=t(2643),r=t(4482);let o=[{depth:2,value:"[GET] /v1/:network/inflation",id:"get-v1networkinflation"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,a.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Chain Inflation"}),"\n",(0,i.jsxs)(n.h2,{id:"get-v1networkinflation",children:[(0,i.jsx)(n.strong,{children:"[GET]"})," /v1/:network/inflation"]}),"\n",(0,i.jsx)(n.p,{children:"Get inflation data from the chain"}),"\n",(0,i.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,i.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,i.jsx)(n.code,{"data-language":"yaml","data-theme":"default",children:(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,i.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,i.jsxs)(n.code,{"data-language":"yaml","data-theme":"default",children:[(0,i.jsx)(n.span,{className:"line",children:(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,i.jsx)(n.span,{className:"line",children:(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,i.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/inflation",useBearerAuthorization:!0})]})}n.default=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/inflation.mdx",route:"/apis/reference/utilities/inflation",timestamp:1693389556e3,title:"Chain Inflation",headings:o},pageNextRoute:"/apis/reference/utilities/inflation"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=709)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/utilities/node-info-6f5ed00a0cc33d48.js b/_next/static/chunks/pages/apis/reference/utilities/node-info-e7589791aa51cf12.js similarity index 97% rename from _next/static/chunks/pages/apis/reference/utilities/node-info-6f5ed00a0cc33d48.js rename to _next/static/chunks/pages/apis/reference/utilities/node-info-e7589791aa51cf12.js index c5db8083..01580755 100644 --- a/_next/static/chunks/pages/apis/reference/utilities/node-info-6f5ed00a0cc33d48.js +++ b/_next/static/chunks/pages/apis/reference/utilities/node-info-e7589791aa51cf12.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[936],{9348:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/node-info",function(){return t(3647)}])},3647:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return a}});var s=t(5893),i=t(2673),r=t(2643),o=t(4482);let a=[{depth:2,value:"[GET] /v1/:network/node_info",id:"get-v1networknode_info"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{children:"Node Info"}),"\n",(0,s.jsxs)(n.h2,{id:"get-v1networknode_info",children:[(0,s.jsx)(n.strong,{children:"[GET]"})," /v1/:network/node_info"]}),"\n",(0,s.jsx)(n.p,{children:"Get node informations with chain parameters"}),"\n",(0,s.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,s.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,s.jsx)(n.code,{"data-language":"yaml","data-theme":"default",children:(0,s.jsxs)(n.span,{className:"line",children:[(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,s.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,s.jsxs)(n.code,{"data-language":"yaml","data-theme":"default",children:[(0,s.jsx)(n.span,{className:"line",children:(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,s.jsx)(n.span,{className:"line",children:(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,s.jsxs)(n.span,{className:"line",children:[(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n","\n",(0,s.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/node_info",useBearerAuthorization:!0})]})}n.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,r.a)(),e.components);return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/node-info.mdx",route:"/apis/reference/utilities/node-info",timestamp:1693389556e3,title:"Node Info",headings:a},pageNextRoute:"/apis/reference/utilities/node-info"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=9348)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[936],{9348:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/node-info",function(){return t(3647)}])},3647:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return a}});var s=t(5893),i=t(2673),r=t(2643),o=t(4482);let a=[{depth:2,value:"[GET] /v1/:network/node_info",id:"get-v1networknode_info"},{depth:3,value:"Request",id:"request"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,r.a)(),e.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{children:"Node Info"}),"\n",(0,s.jsxs)(n.h2,{id:"get-v1networknode_info",children:[(0,s.jsx)(n.strong,{children:"[GET]"})," /v1/:network/node_info"]}),"\n",(0,s.jsx)(n.p,{children:"Get node informations with chain parameters"}),"\n",(0,s.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,s.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,s.jsx)(n.code,{"data-language":"yaml","data-theme":"default",children:(0,s.jsxs)(n.span,{className:"line",children:[(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,s.jsx)(n.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,s.jsxs)(n.code,{"data-language":"yaml","data-theme":"default",children:[(0,s.jsx)(n.span,{className:"line",children:(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,s.jsx)(n.span,{className:"line",children:(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,s.jsxs)(n.span,{className:"line",children:[(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,s.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n","\n",(0,s.jsx)(o.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/node_info",useBearerAuthorization:!0})]})}n.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,r.a)(),e.components);return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/node-info.mdx",route:"/apis/reference/utilities/node-info",timestamp:1693389556e3,title:"Node Info",headings:a},pageNextRoute:"/apis/reference/utilities/node-info"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=9348)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/utilities/prices-d2176171bb4b9d50.js b/_next/static/chunks/pages/apis/reference/utilities/prices-1aead3ba9d7af381.js similarity index 99% rename from _next/static/chunks/pages/apis/reference/utilities/prices-d2176171bb4b9d50.js rename to _next/static/chunks/pages/apis/reference/utilities/prices-1aead3ba9d7af381.js index be96c194..cb83930d 100644 --- a/_next/static/chunks/pages/apis/reference/utilities/prices-d2176171bb4b9d50.js +++ b/_next/static/chunks/pages/apis/reference/utilities/prices-1aead3ba9d7af381.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3192],{3140:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/prices",function(){return n(8534)}])},8534:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return t}});var a=n(5893),i=n(2673),l=n(2643),r=n(4482);let t=[{depth:2,value:"[GET] /v1/prices/:symbol/coingeckoId",id:"get-v1pricessymbolcoingeckoid"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/prices/symbol/:symbol",id:"get-v1pricessymbolsymbol"},{depth:3,value:"Request",id:"request-1"},{depth:2,value:"[GET] /v1/prices/coingeckoId/:geckoId",id:"get-v1pricescoingeckoidgeckoid"},{depth:3,value:"Request",id:"request-2"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,l.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Prices"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1pricessymbolcoingeckoid",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/prices/:symbol/coingeckoId"]}),"\n",(0,a.jsx)(s.p,{children:"Get coingecko ID via symbol"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/prices/:symbol/coingeckoId",useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1pricessymbolsymbol",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/prices/symbol/:symbol"]}),"\n",(0,a.jsx)(s.p,{children:"Get hourly prices via symbol"}),"\n",(0,a.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# End datetime for obtaining prices"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-21 23:59:59"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:" "}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 24)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ticks"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"24"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/prices/symbol/:symbol",query:[{key:"ticks",type:"number",optional:!0,placeholder:"24"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1pricescoingeckoidgeckoid",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/prices/coingeckoId/:geckoId"]}),"\n",(0,a.jsx)(s.p,{children:"Get hourly prices via coingeckoId"}),"\n",(0,a.jsx)(s.h3,{id:"request-2",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# CoingeckoId of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"geckoId"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# End datetime for obtaining prices"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-21 23:59:59"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:" "}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 24)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ticks"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"24"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/prices/coingeckoId/:geckoId",query:[{key:"ticks",type:"number",optional:!0,placeholder:"24"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,l.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/prices.mdx",route:"/apis/reference/utilities/prices",timestamp:1695828955e3,title:"Prices",headings:t},pageNextRoute:"/apis/reference/utilities/prices"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=3140)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3192],{3140:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/prices",function(){return n(8534)}])},8534:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return t}});var a=n(5893),i=n(2673),l=n(2643),r=n(4482);let t=[{depth:2,value:"[GET] /v1/prices/:symbol/coingeckoId",id:"get-v1pricessymbolcoingeckoid"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/prices/symbol/:symbol",id:"get-v1pricessymbolsymbol"},{depth:3,value:"Request",id:"request-1"},{depth:2,value:"[GET] /v1/prices/coingeckoId/:geckoId",id:"get-v1pricescoingeckoidgeckoid"},{depth:3,value:"Request",id:"request-2"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,l.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Prices"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1pricessymbolcoingeckoid",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/prices/:symbol/coingeckoId"]}),"\n",(0,a.jsx)(s.p,{children:"Get coingecko ID via symbol"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/prices/:symbol/coingeckoId",useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1pricessymbolsymbol",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/prices/symbol/:symbol"]}),"\n",(0,a.jsx)(s.p,{children:"Get hourly prices via symbol"}),"\n",(0,a.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Symbol of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"symbol"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uatom"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# End datetime for obtaining prices"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-21 23:59:59"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:" "}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 24)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ticks"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"24"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/prices/symbol/:symbol",query:[{key:"ticks",type:"number",optional:!0,placeholder:"24"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1pricescoingeckoidgeckoid",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/prices/coingeckoId/:geckoId"]}),"\n",(0,a.jsx)(s.p,{children:"Get hourly prices via coingeckoId"}),"\n",(0,a.jsx)(s.h3,{id:"request-2",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# CoingeckoId of the asset to be queried"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"geckoId"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Queries",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# End datetime for obtaining prices"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (datetime, optional, default: CURRENT_TIMESTAMP)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toDateTime"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" 2023-04-21 23:59:59"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:" "}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Request per page"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (number, optional, default: 24)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ticks"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"24"})]})]})}),"\n",(0,a.jsx)(r.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/prices/coingeckoId/:geckoId",query:[{key:"ticks",type:"number",optional:!0,placeholder:"24"},{key:"toDateTime",type:"datetime",optional:!0,placeholder:"YYYY-MM-DD OR YYYY-MM-DD HH:mm:ii"}],useBearerAuthorization:!0})]})}s.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,l.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/prices.mdx",route:"/apis/reference/utilities/prices",timestamp:1695828955e3,title:"Prices",headings:t},pageNextRoute:"/apis/reference/utilities/prices"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=3140)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/apis/reference/utilities/staking-apr-e5e489afc06f7fde.js b/_next/static/chunks/pages/apis/reference/utilities/staking-apr-64762dc4d64ab662.js similarity index 98% rename from _next/static/chunks/pages/apis/reference/utilities/staking-apr-e5e489afc06f7fde.js rename to _next/static/chunks/pages/apis/reference/utilities/staking-apr-64762dc4d64ab662.js index 2ed1eac7..5a4ce3eb 100644 --- a/_next/static/chunks/pages/apis/reference/utilities/staking-apr-e5e489afc06f7fde.js +++ b/_next/static/chunks/pages/apis/reference/utilities/staking-apr-64762dc4d64ab662.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7862],{4675:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/staking-apr",function(){return n(851)}])},851:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return l}});var a=n(5893),r=n(2673),t=n(2643),i=n(4482);let l=[{depth:2,value:"[GET] /v1/:network/apr",id:"get-v1networkapr"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/:network/apr/:validatorAddress",id:"get-v1networkaprvalidatoraddress"},{depth:3,value:"Request",id:"request-1"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Chain Staking APR"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkapr",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/apr"]}),"\n",(0,a.jsx)(s.p,{children:"Get default staking APR of the chain"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/apr",useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaprvalidatoraddress",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/apr/:validatorAddress"]}),"\n",(0,a.jsx)(s.p,{children:"Get staking APR when delegating to a specific validator"}),"\n",(0,a.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Validator address to delegate"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,a.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/apr/:validatorAddress",useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/staking-apr.mdx",route:"/apis/reference/utilities/staking-apr",timestamp:1693389556e3,title:"Chain Staking APR",headings:l},pageNextRoute:"/apis/reference/utilities/staking-apr"})}},function(e){e.O(0,[2673,9659,3632,834,9774,2888,179],function(){return e(e.s=4675)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7862],{4675:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apis/reference/utilities/staking-apr",function(){return n(851)}])},851:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return l}});var a=n(5893),r=n(2673),t=n(2643),i=n(4482);let l=[{depth:2,value:"[GET] /v1/:network/apr",id:"get-v1networkapr"},{depth:3,value:"Request",id:"request"},{depth:2,value:"[GET] /v1/:network/apr/:validatorAddress",id:"get-v1networkaprvalidatoraddress"},{depth:3,value:"Request",id:"request-1"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",h2:"h2",strong:"strong",p:"p",h3:"h3",pre:"pre",code:"code",span:"span"},(0,t.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.h1,{children:"Chain Staking APR"}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkapr",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/apr"]}),"\n",(0,a.jsx)(s.p,{children:"Get default staking APR of the chain"}),"\n",(0,a.jsx)(s.h3,{id:"request",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]})]})}),"\n",(0,a.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/apr",useBearerAuthorization:!0}),"\n",(0,a.jsxs)(s.h2,{id:"get-v1networkaprvalidatoraddress",children:[(0,a.jsx)(s.strong,{children:"[GET]"})," /v1/:network/apr/:validatorAddress"]}),"\n",(0,a.jsx)(s.p,{children:"Get staking APR when delegating to a specific validator"}),"\n",(0,a.jsx)(s.h3,{id:"request-1",children:"Request"}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Headers",children:(0,a.jsx)(s.code,{"data-language":"yaml","data-theme":"default",children:(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Authorization"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"Bearer {access_token}"})]})})}),"\n",(0,a.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",filename:"Parameters",children:(0,a.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# The name of network"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"network"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmos"})]}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Validator address to delegate"})}),"\n",(0,a.jsx)(s.span,{className:"line",children:(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# (string, required)"})}),"\n",(0,a.jsxs)(s.span,{className:"line",children:[(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"validatorAddress"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"})]})]})}),"\n",(0,a.jsx)(i.j,{method:"GET",host:"https://apis.mintscan.io",url:"/v1/:network/apr/:validatorAddress",useBearerAuthorization:!0})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,t.a)(),e.components);return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/apis/reference/utilities/staking-apr.mdx",route:"/apis/reference/utilities/staking-apr",timestamp:1693389556e3,title:"Chain Staking APR",headings:l},pageNextRoute:"/apis/reference/utilities/staking-apr"})}},function(e){e.O(0,[2673,9659,5369,834,9774,2888,179],function(){return e(e.s=4675)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/account/add-account-d79068d0d3149100.js b/_next/static/chunks/pages/extension/guide/account/add-account-d79068d0d3149100.js deleted file mode 100644 index 03f32d05..00000000 --- a/_next/static/chunks/pages/extension/guide/account/add-account-d79068d0d3149100.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5235],{6646:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/account/add-account",function(){return n(4268)}])},4268:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return h},default:function(){return d}});var s=n(5893),o=n(2673),r=n(2643),i={src:"/_next/static/media/create.4434e2f8.png",height:3100,width:4380,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAM1BMVEUeICoeICoxMzwzLVkaHCUlJzInKjMhIy0hJCwiJTAvKk8tKVEqKT0nJTwnJzo5PEQfHjXNhXAlAAAAEXRSTlPlzO37+OX6/u/a6dr949P8ymd8JLcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA0SURBVHicFcpZEsAgCAXBQcEHLjH3P20q/d2IkW3jCPd2Y4BVrfUewqqeY/CfFBtFn6nZPx67ATLraVNSAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},a={src:"/_next/static/media/mnemonic.6a9f6ece.png",height:3100,width:3270,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEUoKjUcHycXGiEYGh4bHCYhIy8oKzczK18dHyguKFMrJk8gIi0nJzk+NGkrKEYGGDrGAAAAC3RSTlP82dv8udnU/PrY2bH3zUUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA4SURBVHicHcZBEsAgCATBYRExAfP/51qmT02Vgdz5Y3CzlgDTmHNIRNyYQQfY10C4q4u9n8w38wAlnwE1lfi5EAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},c={src:"/_next/static/media/privatekey.dcb75727.png",height:3100,width:3270,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEUoKTofICsgIiwcHicYGyIgJCwbHSczK18gIi0nKTclJzIsJ1AYHB8kJjA7M2oA8EKrAAAADXRSTlP+/vrb2Nq5/Nfc09n5z60bPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAADlJREFUeJwVxrcRwDAMALFnpgK1/7g+owIyrmoz6J8AREzVRDBL91yLjtw7o4EGA4a411HeO1Wn6gMqAAFNx7J29QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},l=n(1282);let h=[{depth:2,value:"Create wallet",id:"create-wallet"},{depth:2,value:"Restore wallet with a mnemonic phrase",id:"restore-wallet-with-a-mnemonic-phrase"},{depth:2,value:"Restore wallet with a private key",id:"restore-wallet-with-a-private-key"}];function _createMdxContent(e){let t=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",code:"code",strong:"strong",img:"img"},(0,r.a)(),e.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{children:"Add Account"}),"\n",(0,s.jsx)(t.p,{children:"Create a new wallet, restore with an existing mnemonic phrase, or restore with a private key."}),"\n",(0,s.jsx)(t.h2,{id:"create-wallet",children:"Create wallet"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"The following process is for users who do not have a wallet and wish to create a new wallet."}),"\n",(0,s.jsx)(t.p,{children:"'Create wallet' will import a new wallet with a mnemonic phrase."}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 1"})," Click 'Create wallet'"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 2"})," Enter 'Account name'. Account name will be used for users to easily distinguish wallets imported on the extension."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 3"})," Your mnemonic phrase will be displayed. Cosmostation Wallet Extension supports both 12 words and 24 words mnemonic phrases."]}),"\n",(0,s.jsxs)(l.UW,{type:"warning",children:[(0,s.jsx)(t.p,{children:"Please make sure to back up your mnemonic phrase and save it in a safe location only accessible by you. If the mnemonic phrase is lost, you will not be able to regain access to your account."}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"DO NOT share your Secret Recovery Phrase with anyone!"})," If someone has access to your secret phrase, they will have access to your wallet. Cosmostation support will NEVER ask you for your secret phrase or your private key."]})]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 4"})," (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 5"})," Enter your seed phrase in correct order. This process is to confirm that you have saved the correct mnemonic phrase."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 6"})," Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 7"})," Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Create wallet",placeholder:"blur",src:i})}),"\n",(0,s.jsx)(t.h2,{id:"restore-wallet-with-a-mnemonic-phrase",children:"Restore wallet with a mnemonic phrase"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"The following process is for users who already have a mnemonic phrase."}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 1"})," Click 'Restore with mnemonics'"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 2"})," Enter 'Account name' and 'Mnemonic phrases'. Account name will be used for you to easily distinguish wallets."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 3"})," (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 4"})," Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 5"})," Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Import mnemonic",placeholder:"blur",src:a})}),"\n",(0,s.jsx)(t.h2,{id:"restore-wallet-with-a-private-key",children:"Restore wallet with a private key"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"The following process is for users that already have a private key."}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 1"})," Click 'Import wallet'."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 2"})," Click 'Restore with private key'."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 3"})," Enter your 'Account name' and 'Private key'. (Private keys start with 0x and consists of a 66 digit string)"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 4"})," Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 5"})," Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Import private key",placeholder:"blur",src:c})})]})}var d=(0,o.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,r.a)(),e.components);return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/account/add-account.mdx",route:"/extension/guide/account/add-account",timestamp:1693389556e3,title:"Add Account",headings:h},pageNextRoute:"/extension/guide/account/add-account"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=6646)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/account/add-account-e97d63ab94a33e30.js b/_next/static/chunks/pages/extension/guide/account/add-account-e97d63ab94a33e30.js new file mode 100644 index 00000000..05d0afee --- /dev/null +++ b/_next/static/chunks/pages/extension/guide/account/add-account-e97d63ab94a33e30.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5235],{6646:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/account/add-account",function(){return n(4268)}])},4268:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return h},default:function(){return d}});var s=n(5893),o=n(2673),r=n(2643),i={src:"/_next/static/media/create.4434e2f8.png",height:3100,width:4380,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAOVBMVEUeICoqLDcqKzYdHyciJS8eICszLVcjJTAhIzAjJi4aHCQjIjcpJ0MtKFM2OkE5PEQkIjsfIiomJT6pLykZAAAAEnRSTlPm/Ojv/sz42eTz/M7h2u385v61e4GUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANElEQVR4nAXBiQHAIAgAsUNBwKeW7j9sE5TMJkyK2Z8bAuZ+znpp5r62BYVkr/jQGAPd4wcjrAFgcC4mngAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},a={src:"/_next/static/media/mnemonic.6a9f6ece.png",height:3100,width:3270,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUoKzUeISofISwYGiI2LmEYGh4bHCYoKzgrJ1AnJzkrKEbHz38lAAAACXRSTlP82f7b/fy51Nn6jPl3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAANUlEQVR4nB3KQQ4AIQzDQCehQPf/D14VyYc5GFuQKh4EAztAss/ZCdJAonuerwFVpc1a9/UDF7wA0S/nZZwAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},c={src:"/_next/static/media/privatekey.dcb75727.png",height:3100,width:3270,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEUhIy0aHCQcHiYnKjY1LmIfIioiJTAbHSclKDMsKFErJk4oKDsqJ0WypEQ7AAAAC3RSTlP82f39/dvaudXY2VHR0SAAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA5SURBVHicHcZBDsMwDAPBpShRTpz/v7dA5zSAYAz/xKZKoCpmVtockj1nE3xj67vgqdKF7qf77f4BGpgA9DONXEUAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},l=n(1282);let h=[{depth:2,value:"Create wallet",id:"create-wallet"},{depth:2,value:"Restore wallet with a mnemonic phrase",id:"restore-wallet-with-a-mnemonic-phrase"},{depth:2,value:"Restore wallet with a private key",id:"restore-wallet-with-a-private-key"}];function _createMdxContent(e){let t=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",code:"code",strong:"strong",img:"img"},(0,r.a)(),e.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{children:"Add Account"}),"\n",(0,s.jsx)(t.p,{children:"Create a new wallet, restore with an existing mnemonic phrase, or restore with a private key."}),"\n",(0,s.jsx)(t.h2,{id:"create-wallet",children:"Create wallet"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"The following process is for users who do not have a wallet and wish to create a new wallet."}),"\n",(0,s.jsx)(t.p,{children:"'Create wallet' will import a new wallet with a mnemonic phrase."}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 1"})," Click 'Create wallet'"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 2"})," Enter 'Account name'. Account name will be used for users to easily distinguish wallets imported on the extension."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 3"})," Your mnemonic phrase will be displayed. Cosmostation Wallet Extension supports both 12 words and 24 words mnemonic phrases."]}),"\n",(0,s.jsxs)(l.UW,{type:"warning",children:[(0,s.jsx)(t.p,{children:"Please make sure to back up your mnemonic phrase and save it in a safe location only accessible by you. If the mnemonic phrase is lost, you will not be able to regain access to your account."}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"DO NOT share your Secret Recovery Phrase with anyone!"})," If someone has access to your secret phrase, they will have access to your wallet. Cosmostation support will NEVER ask you for your secret phrase or your private key."]})]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 4"})," (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 5"})," Enter your seed phrase in correct order. This process is to confirm that you have saved the correct mnemonic phrase."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 6"})," Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 7"})," Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Create wallet",placeholder:"blur",src:i})}),"\n",(0,s.jsx)(t.h2,{id:"restore-wallet-with-a-mnemonic-phrase",children:"Restore wallet with a mnemonic phrase"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"The following process is for users who already have a mnemonic phrase."}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 1"})," Click 'Restore with mnemonics'"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 2"})," Enter 'Account name' and 'Mnemonic phrases'. Account name will be used for you to easily distinguish wallets."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 3"})," (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 4"})," Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 5"})," Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Import mnemonic",placeholder:"blur",src:a})}),"\n",(0,s.jsx)(t.h2,{id:"restore-wallet-with-a-private-key",children:"Restore wallet with a private key"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"The following process is for users that already have a private key."}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 1"})," Click 'Import wallet'."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 2"})," Click 'Restore with private key'."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 3"})," Enter your 'Account name' and 'Private key'. (Private keys start with 0x and consists of a 66 digit string)"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 4"})," Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Step 5"})," Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters."]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Import private key",placeholder:"blur",src:c})})]})}var d=(0,o.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,r.a)(),e.components);return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/account/add-account.mdx",route:"/extension/guide/account/add-account",timestamp:1693389556e3,title:"Add Account",headings:h},pageNextRoute:"/extension/guide/account/add-account"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=6646)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/account/intro-3404aabfd132926e.js b/_next/static/chunks/pages/extension/guide/account/intro-3404aabfd132926e.js deleted file mode 100644 index b4bda471..00000000 --- a/_next/static/chunks/pages/extension/guide/account/intro-3404aabfd132926e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8111],{8145:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/account/intro",function(){return t(292)}])},292:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return d},default:function(){return l}});var o=t(5893),c=t(2673),a=t(2643),i={src:"/_next/static/media/add.d6e793a4.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAIVBMVEUaHCQiJC4qLDczKl8bHSYfISwlKDMsLTcvMj06MG0XGh96yhozAAAABHRSTlPZ2djZ3Hm7UQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAC1JREFUeJwdxsERADAIAjC0Aur+A/favIK2Iy3CrciWfkIkSAaqCruLn5k5LxcaLwDvwTpO5gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},r={src:"/_next/static/media/manage.f79192d5.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAJ1BMVEUiJC0YGyIsLzgxKlwzLGAuLEosLjglKDIiJC4XGh89M3MaHCY0LGJ1rppbAAAABnRSTlPZ2djY/tnKOATjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAL0lEQVR4nAXBgRHAMAgDsSfJGRu6/7yVkMSRjNQctWkL3M2uqW2TpCoJ38y9M+8HHQkBLdMvmAgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},s=t(1282);let d=[{depth:2,value:"Add Account",id:"add-account"},{depth:2,value:"Manage keys",id:"manage-keys"},{depth:3,value:"Delete Account",id:"delete-account"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",strong:"strong",img:"img",code:"code",a:"a",em:"em",h3:"h3"},(0,a.a)(),e.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{children:"Introduction"}),"\n",(0,o.jsx)(n.p,{children:"Cosmostation Wallet Extension allows you to add and manage multiple accounts.\nSecurely manage your accounts in a convenient user interface."}),"\n",(0,o.jsx)(n.h2,{id:"add-account",children:"Add Account"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"'Add Account'"})," has three options. ",(0,o.jsx)(n.strong,{children:"[Creat a new account]"}),", ",(0,o.jsx)(n.strong,{children:"[Import mnemonics]"}),", and ",(0,o.jsx)(n.strong,{children:"[Import private key]"}),". Please refer to each page for detailed instructions."]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{alt:"Manage",placeholder:"blur",src:i})}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"Step 1"})," Click ",(0,o.jsx)(n.strong,{children:"'Add account'"})," under 'Account Management'."]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"Step 2"})," You will see three options to choose from. Please refer to the following ",(0,o.jsx)(n.a,{href:"/docs/User%20Guide/Cosmostation%20Extension/Account/add-account",children:"link"})," for detailed instructions."]}),"\n",(0,o.jsx)(n.h2,{id:"manage-keys",children:"Manage keys"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:["Under ",(0,o.jsx)(n.strong,{children:"'Account Management'"}),", you are able to see all the accounts that are registered on Cosmostation Extension."]}),"\n",(0,o.jsxs)(n.p,{children:["If you created a new account or restored a wallet with a mnemonic phrase, you will be able to see the option to ",(0,o.jsx)(n.strong,{children:"[View mnemonics]"}),", ",(0,o.jsx)(n.strong,{children:"[View private key]"}),", and ",(0,o.jsx)(n.strong,{children:"[Delete account]"}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["If you restored a wallet with a ",(0,o.jsx)(n.em,{children:"private key"}),", then you will only be able to choose ",(0,o.jsx)(n.strong,{children:"[View private key]"}),"."]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{alt:"Manage",placeholder:"blur",src:r})}),"\n",(0,o.jsx)(n.h3,{id:"delete-account",children:"Delete Account"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.p,{children:"You can delete accounts from Cosmostation Extension."}),"\n",(0,o.jsx)(n.p,{children:"Once deleted, you can restore your account again by importing the same mnemonic phrase or private key."}),"\n"]}),"\n",(0,o.jsxs)(s.UW,{type:"warning",children:[(0,o.jsx)(n.p,{children:"You are required to enter your password before deleting your account."}),(0,o.jsx)(n.p,{children:"Once deleted, if you lose your mnemonic phrase or private key you will not be able to gain access to the account again."})]})]})}var l=(0,c.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/account/intro.mdx",route:"/extension/guide/account/intro",timestamp:1693389556e3,title:"Introduction",headings:d},pageNextRoute:"/extension/guide/account/intro"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=8145)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/account/intro-80ade08395378562.js b/_next/static/chunks/pages/extension/guide/account/intro-80ade08395378562.js new file mode 100644 index 00000000..3b797c28 --- /dev/null +++ b/_next/static/chunks/pages/extension/guide/account/intro-80ade08395378562.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8111],{8145:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/account/intro",function(){return t(292)}])},292:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return d},default:function(){return l}});var o=t(5893),c=t(2673),a=t(2643),r={src:"/_next/static/media/add.d6e793a4.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAIVBMVEUZGyMjJS8qLjcfISszK2AaHCQfISwlKDMrLTcvMj06MW5ymVfSAAAABXRSTlPY2djZ2QzdtJQAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAtSURBVHicHcbJEQAwCMNAjmAb+i84Aw9p1lryEGFqZjS5cCdgANKq6rrNzFt8HWABBp3N2HMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},i={src:"/_next/static/media/manage.f79192d5.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAG1BMVEUiJC4YGyEsLzgxKl4jJTArLjgXGh47MW4aHCZ/Ws5MAAAABHRSTlPZ2djYq36LxwAAAAlwSFlzAAALEwAACxMBAJqcGAAAACtJREFUeJwlxjECACAMAjGqB/T/L3YwU2Rbx0Y/ILAEaBfNgpLMJFHbe9s+FDsA0vdcJGUAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},s=t(1282);let d=[{depth:2,value:"Add Account",id:"add-account"},{depth:2,value:"Manage keys",id:"manage-keys"},{depth:3,value:"Delete Account",id:"delete-account"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",strong:"strong",img:"img",code:"code",a:"a",em:"em",h3:"h3"},(0,a.a)(),e.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{children:"Introduction"}),"\n",(0,o.jsx)(n.p,{children:"Cosmostation Wallet Extension allows you to add and manage multiple accounts.\nSecurely manage your accounts in a convenient user interface."}),"\n",(0,o.jsx)(n.h2,{id:"add-account",children:"Add Account"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"'Add Account'"})," has three options. ",(0,o.jsx)(n.strong,{children:"[Creat a new account]"}),", ",(0,o.jsx)(n.strong,{children:"[Import mnemonics]"}),", and ",(0,o.jsx)(n.strong,{children:"[Import private key]"}),". Please refer to each page for detailed instructions."]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{alt:"Manage",placeholder:"blur",src:r})}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"Step 1"})," Click ",(0,o.jsx)(n.strong,{children:"'Add account'"})," under 'Account Management'."]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"Step 2"})," You will see three options to choose from. Please refer to the following ",(0,o.jsx)(n.a,{href:"/docs/User%20Guide/Cosmostation%20Extension/Account/add-account",children:"link"})," for detailed instructions."]}),"\n",(0,o.jsx)(n.h2,{id:"manage-keys",children:"Manage keys"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:["Under ",(0,o.jsx)(n.strong,{children:"'Account Management'"}),", you are able to see all the accounts that are registered on Cosmostation Extension."]}),"\n",(0,o.jsxs)(n.p,{children:["If you created a new account or restored a wallet with a mnemonic phrase, you will be able to see the option to ",(0,o.jsx)(n.strong,{children:"[View mnemonics]"}),", ",(0,o.jsx)(n.strong,{children:"[View private key]"}),", and ",(0,o.jsx)(n.strong,{children:"[Delete account]"}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["If you restored a wallet with a ",(0,o.jsx)(n.em,{children:"private key"}),", then you will only be able to choose ",(0,o.jsx)(n.strong,{children:"[View private key]"}),"."]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{alt:"Manage",placeholder:"blur",src:i})}),"\n",(0,o.jsx)(n.h3,{id:"delete-account",children:"Delete Account"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.p,{children:"You can delete accounts from Cosmostation Extension."}),"\n",(0,o.jsx)(n.p,{children:"Once deleted, you can restore your account again by importing the same mnemonic phrase or private key."}),"\n"]}),"\n",(0,o.jsxs)(s.UW,{type:"warning",children:[(0,o.jsx)(n.p,{children:"You are required to enter your password before deleting your account."}),(0,o.jsx)(n.p,{children:"Once deleted, if you lose your mnemonic phrase or private key you will not be able to gain access to the account again."})]})]})}var l=(0,c.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/account/intro.mdx",route:"/extension/guide/account/intro",timestamp:1693389556e3,title:"Introduction",headings:d},pageNextRoute:"/extension/guide/account/intro"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=8145)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/chains-95031716164c1cfb.js b/_next/static/chunks/pages/extension/guide/chains-fc7b17cae89775ba.js similarity index 82% rename from _next/static/chunks/pages/extension/guide/chains-95031716164c1cfb.js rename to _next/static/chunks/pages/extension/guide/chains-fc7b17cae89775ba.js index f94f2b3b..1bd12e3f 100644 --- a/_next/static/chunks/pages/extension/guide/chains-95031716164c1cfb.js +++ b/_next/static/chunks/pages/extension/guide/chains-fc7b17cae89775ba.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{5503:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/chains",function(){return t(9859)}])},9859:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return d},default:function(){return c}});var i=t(5893),s=t(2673),o=t(2643),a={src:"/_next/static/media/support.69970123.png",height:1500,width:2820,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAD1BMVEUoKjUgISsuLzgmJzgwLj8asVwtAAAABXRSTlP++djY2IxywNkAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAfSURBVHicY2BgYGFgYGJgZGBgYGFkZAYzmOAMBhADAAJgACHS5eSGAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4};let d=[{depth:2,value:"Add/Remove Chains",id:"addremove-chains"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",code:"code",strong:"strong",img:"img"},(0,o.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Chains"}),"\n",(0,i.jsx)(n.p,{children:"Cosmostation Wallet Extension supports various PoS networks."}),"\n",(0,i.jsx)(n.h2,{id:"addremove-chains",children:"Add/Remove Chains"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"Add/remove chains to efficiently manage your wallet."}),"\n",(0,i.jsx)(n.p,{children:"Select chains you want to display on the list. Only selected chains will be displayed on both the dashboard and wallet detail page."}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 1"})," View chains that are added to your list. Click ",(0,i.jsx)(n.strong,{children:"'Add chain'"})," to add/remove chains from the list."]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 2"})," By toggling on/off, you can choose chains that you want to display on Cosmostation Wallet Extension."]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 3"})," Selected chains are also visible on the top right side of wallet details."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Add & Remove chains",placeholder:"blur",src:a})})]})}var c=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,o.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/chains.mdx",route:"/extension/guide/chains",timestamp:1693389556e3,title:"Chains",headings:d},pageNextRoute:"/extension/guide/chains"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=5503)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{5503:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/chains",function(){return t(9859)}])},9859:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return c},default:function(){return d}});var i=t(5893),s=t(2673),o=t(2643),a={src:"/_next/static/media/support.69970123.png",height:1500,width:2820,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAD1BMVEUoKzUhIiwoKDouLzgyMD+Cg8/rAAAABXRSTlP++tjY2J7HbzcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAfSURBVHicPcaxEQAABASwPPaf2WmkCoZOMEm59MdlAQKMACKi+Ny0AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4};let c=[{depth:2,value:"Add/Remove Chains",id:"addremove-chains"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",code:"code",strong:"strong",img:"img"},(0,o.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Chains"}),"\n",(0,i.jsx)(n.p,{children:"Cosmostation Wallet Extension supports various PoS networks."}),"\n",(0,i.jsx)(n.h2,{id:"addremove-chains",children:"Add/Remove Chains"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"Add/remove chains to efficiently manage your wallet."}),"\n",(0,i.jsx)(n.p,{children:"Select chains you want to display on the list. Only selected chains will be displayed on both the dashboard and wallet detail page."}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 1"})," View chains that are added to your list. Click ",(0,i.jsx)(n.strong,{children:"'Add chain'"})," to add/remove chains from the list."]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 2"})," By toggling on/off, you can choose chains that you want to display on Cosmostation Wallet Extension."]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 3"})," Selected chains are also visible on the top right side of wallet details."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Add & Remove chains",placeholder:"blur",src:a})})]})}var d=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,o.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/chains.mdx",route:"/extension/guide/chains",timestamp:1693389556e3,title:"Chains",headings:c},pageNextRoute:"/extension/guide/chains"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=5503)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/dapps-f8e635e9da90310b.js b/_next/static/chunks/pages/extension/guide/dapps-7ce295d726b17279.js similarity index 61% rename from _next/static/chunks/pages/extension/guide/dapps-f8e635e9da90310b.js rename to _next/static/chunks/pages/extension/guide/dapps-7ce295d726b17279.js index aa3fa9d6..543d0d00 100644 --- a/_next/static/chunks/pages/extension/guide/dapps-f8e635e9da90310b.js +++ b/_next/static/chunks/pages/extension/guide/dapps-7ce295d726b17279.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4888],{1541:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/dapps",function(){return e(8692)}])},8692:function(n,t,e){"use strict";e.r(t),e.d(t,{__toc:function(){return u},default:function(){return d}});var s=e(5893),i=e(2673),c=e(2643),o={src:"/_next/static/media/connect.3e06c68f.png",height:1500,width:3780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAG1BMVEUWFx8wLk0rLTgsLjkVFh4dHisTFBswLk0gIDBdxRAZAAAABnRSTlPz7ur55utWb5MBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nAXBhwEAAAjCsIID/7/YhDK4eoklWeEG5nofA48AT2ZwI1IAAAAASUVORK5CYII=",blurWidth:8,blurHeight:3};let u=[{depth:2,value:"Connection status",id:"connection-status"},{depth:2,value:"Disconnect with just a click.",id:"disconnect-with-just-a-click"}];function _createMdxContent(n){let t=Object.assign({h1:"h1",p:"p",img:"img",h2:"h2",blockquote:"blockquote"},(0,c.a)(),n.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{children:"dApp"}),"\n",(0,s.jsx)(t.p,{children:"Cosmostation Wallet Exntension supports various dApps deployed on PoS networks."}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Support dApps",placeholder:"blur",src:o})}),"\n",(0,s.jsx)(t.h2,{id:"connection-status",children:"Connection status"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"Easily check if the wallet extension is connect to the dApp."}),"\n",(0,s.jsx)(t.p,{children:"If you wish to disconnect, click the connection status under your account name."}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"disconnect-with-just-a-click",children:"Disconnect with just a click."}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"Easily disconnect from dApps by clicking the connecting status under your account name."}),"\n"]})]})}var d=(0,i.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,c.a)(),n.components);return t?(0,s.jsx)(t,{...n,children:(0,s.jsx)(_createMdxContent,{...n})}):_createMdxContent(n)},pageOpts:{filePath:"pages/extension/guide/dapps.mdx",route:"/extension/guide/dapps",timestamp:1693389556e3,title:"dApp",headings:u},pageNextRoute:"/extension/guide/dapps"})}},function(n){n.O(0,[2673,9774,2888,179],function(){return n(n.s=1541)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4888],{1541:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/dapps",function(){return e(8692)}])},8692:function(n,t,e){"use strict";e.r(t),e.d(t,{__toc:function(){return u},default:function(){return A}});var i=e(5893),s=e(2673),c=e(2643),o={src:"/_next/static/media/connect.3e06c68f.png",height:1500,width:3780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAG1BMVEUWFx8wLk0rLTgrLjkWFh4dHisTFBswLk0gIDCtlnAEAAAABnRSTlPz7ur55utWb5MBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nAXBhwEAAAjCsIID/7/YhDK4eoklWeEG5nofA48AT2ZwI1IAAAAASUVORK5CYII=",blurWidth:8,blurHeight:3};let u=[{depth:2,value:"Connection status",id:"connection-status"},{depth:2,value:"Disconnect with just a click.",id:"disconnect-with-just-a-click"}];function _createMdxContent(n){let t=Object.assign({h1:"h1",p:"p",img:"img",h2:"h2",blockquote:"blockquote"},(0,c.a)(),n.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{children:"dApp"}),"\n",(0,i.jsx)(t.p,{children:"Cosmostation Wallet Exntension supports various dApps deployed on PoS networks."}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{alt:"Support dApps",placeholder:"blur",src:o})}),"\n",(0,i.jsx)(t.h2,{id:"connection-status",children:"Connection status"}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Easily check if the wallet extension is connect to the dApp."}),"\n",(0,i.jsx)(t.p,{children:"If you wish to disconnect, click the connection status under your account name."}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"disconnect-with-just-a-click",children:"Disconnect with just a click."}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Easily disconnect from dApps by clicking the connecting status under your account name."}),"\n"]})]})}var A=(0,s.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,c.a)(),n.components);return t?(0,i.jsx)(t,{...n,children:(0,i.jsx)(_createMdxContent,{...n})}):_createMdxContent(n)},pageOpts:{filePath:"pages/extension/guide/dapps.mdx",route:"/extension/guide/dapps",timestamp:1693389556e3,title:"dApp",headings:u},pageNextRoute:"/extension/guide/dapps"})}},function(n){n.O(0,[2673,9774,2888,179],function(){return n(n.s=1541)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/settings-9f404814af08ad3e.js b/_next/static/chunks/pages/extension/guide/settings-9f404814af08ad3e.js new file mode 100644 index 00000000..b25e2cc5 --- /dev/null +++ b/_next/static/chunks/pages/extension/guide/settings-9f404814af08ad3e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1403],{8443:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/settings",function(){return s(4922)}])},4922:function(e,n,s){"use strict";s.r(n),s.d(n,{__toc:function(){return A},default:function(){return h}});var t=s(5893),r=s(2673),i=s(2643),d={src:"/_next/static/media/darkmode.382aad31.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAASFBMVEUVFh3i4+T5+fn39/cpJkdIPYHo5fb29vcfHifr6+rRx/UqKzT///8bHyIXGh19foAiIDshJCyGhofu6fvKvvc0LGE5MGZ3dYU+HmCxAAAAC3RSTlPY/tn+/v7Z2dj+2UqO8iwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA4SURBVHicFcZbFkAwDEDBS5GSpG+6/532mK8hbyZRtZJvE1T9z071xBzjid/50nq/KEehBROS+wI4mwIm+P2vwQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},o={src:"/_next/static/media/address.ee7668e0.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAFVBMVEUcHygoKjcxL1EbHSYiJS8oKzYuMEDQc6+LAAAAA3RSTlPZ2NnOwO8GAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVR4nB2IQQ4AMAyC7BT//+SlPUAIIswQq/QpiVo0ENnWnYvVMi0fEb8AngGBfykAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},a={src:"/_next/static/media/currency.e2c7ad9f.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAElBMVEUbHCUhIy8pKzUlKDMbHSYdHyny6hE4AAAAA3RSTlPY2dihHoTmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJUlEQVR4nE3GuREAIADDsIDj/VfmeApUKcCYYF44ifam/aJmZwEOZwCMrpms5QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},c=s(1282);let A=[{depth:2,value:"Dark mode",id:"dark-mode"},{depth:2,value:"Address Book",id:"address-book"},{depth:2,value:"Change password",id:"change-password"},{depth:2,value:"Currency & Language",id:"currency--language"},{depth:2,value:"Lock screen",id:"lock-screen"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",img:"img",strong:"strong",code:"code",ul:"ul",li:"li"},(0,i.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:"Settings"}),"\n",(0,t.jsx)(n.p,{children:"Customize the wallet extension in wallet settings."}),"\n",(0,t.jsx)(n.h2,{id:"dark-mode",children:"Dark mode"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Toggle back and forth to choose between Dark or Light mode."}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Dark mode",placeholder:"blur",src:d})}),"\n",(0,t.jsx)(n.h2,{id:"address-book",children:"Address Book"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Create different address books for each chain. You can use the address book when using the ",(0,t.jsx)(n.strong,{children:"'Send'"})," function."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Step 1"})," View / Add addresses to the chain you selected."]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Step 2"})," Enter address information and click ",(0,t.jsx)(n.strong,{children:"'Save'"}),"."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Label your address to distinguish them from one another."}),"\n"]}),"\n",(0,t.jsx)(c.UW,{type:"warning",children:(0,t.jsx)(n.p,{children:"Memo is optional but required to transfer assets to centralized cryptocurrency\nexchanges. Centralized exchanges will ask you to enter a memo for\nidentification when you make a deposit."})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Address Book Detail",placeholder:"blur",src:o})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"If you add addresses in the address book, you can use the address book feature when sending assets."}),"\n"]}),"\n",(0,t.jsx)("img",{src:"/img/guide/extension/settings/address_send.png",width:"50%",height:"50%"}),"\n",(0,t.jsx)(n.h2,{id:"change-password",children:"Change password"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Enter your current password and to change it to a new password. Enter the new password once more to confirm."}),"\n"]}),"\n",(0,t.jsx)(c.UW,{type:"warning",children:(0,t.jsx)(n.p,{children:"Make sure that you enter more than 8 characters for the password."})}),"\n",(0,t.jsx)("img",{src:"/img/guide/extension/settings/password.png",width:"50%",height:"50%"}),"\n",(0,t.jsx)(n.h2,{id:"currency--language",children:"Currency & Language"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Cosmostation Wallet Extension supports 2 languages and 5 currencies.\nWe plan to support more currencies and languages in the near future."}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Currency & Language",placeholder:"blur",src:a})}),"\n",(0,t.jsx)(n.h2,{id:"lock-screen",children:"Lock screen"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Lock your screen to secure your wallet."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["!",(0,t.jsx)("img",{src:"/img/guide/extension/settings/lock.png",width:"50%",height:"50%"})]})]})}var h=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,i.a)(),e.components);return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/settings.mdx",route:"/extension/guide/settings",timestamp:1693389556e3,title:"Settings",headings:A},pageNextRoute:"/extension/guide/settings"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=8443)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/settings-cc827a06d6fa5e8d.js b/_next/static/chunks/pages/extension/guide/settings-cc827a06d6fa5e8d.js deleted file mode 100644 index 8f519053..00000000 --- a/_next/static/chunks/pages/extension/guide/settings-cc827a06d6fa5e8d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1403],{8443:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/settings",function(){return s(4922)}])},4922:function(e,n,s){"use strict";s.r(n),s.d(n,{__toc:function(){return c},default:function(){return l}});var t=s(5893),r=s(2673),i=s(2643),d={src:"/_next/static/media/darkmode.382aad31.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAS1BMVEUbGyLj4+Tz8/X5+flIPYDn4/YeHS4TExn39/jr7Or39/fRx/UlJjH///8ZHSIkIj99foAsLjcWGRw2LmMhJSXKvvft6fuGhod3dYWAbOH7AAAADHRSTlPY/tnZ/tnY2Nn+/tlnUKCBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAOUlEQVR4nBXGSRKAIAwEwEFRELOQsP7/pZZ9atTAB4wI9eEMMvlzonfHHuO9W2xYc15JVbEK5+QiHzxAAmrC4VHrAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},o={src:"/_next/static/media/address.ee7668e0.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAFVBMVEUcHygoKTcxLVEbHSYiJS8pKzcvMEFnot7DAAAAA3RSTlPZ2NnOwO8GAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVR4nB2IwQ0AQRCC9BT7L3kz94AQRLFpNPa5rTZkqJJId/44HR48EeUAnvfNiOQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},a={src:"/_next/static/media/currency.e2c7ad9f.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAElBMVEUbHCUhIy8oKzUlKDMbHSYdHylpT11XAAAAA3RSTlPY2dihHoTmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJUlEQVR4nE3GuREAIADDsIDj/VfmeApUKcCYYF44ifam/aJmZwEOZwCMrpms5QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},A=s(1282);let c=[{depth:2,value:"Dark mode",id:"dark-mode"},{depth:2,value:"Address Book",id:"address-book"},{depth:2,value:"Change password",id:"change-password"},{depth:2,value:"Currency & Language",id:"currency--language"},{depth:2,value:"Lock screen",id:"lock-screen"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",h2:"h2",blockquote:"blockquote",img:"img",strong:"strong",code:"code",ul:"ul",li:"li"},(0,i.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:"Settings"}),"\n",(0,t.jsx)(n.p,{children:"Customize the wallet extension in wallet settings."}),"\n",(0,t.jsx)(n.h2,{id:"dark-mode",children:"Dark mode"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Toggle back and forth to choose between Dark or Light mode."}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Dark mode",placeholder:"blur",src:d})}),"\n",(0,t.jsx)(n.h2,{id:"address-book",children:"Address Book"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Create different address books for each chain. You can use the address book when using the ",(0,t.jsx)(n.strong,{children:"'Send'"})," function."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Step 1"})," View / Add addresses to the chain you selected."]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Step 2"})," Enter address information and click ",(0,t.jsx)(n.strong,{children:"'Save'"}),"."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Label your address to distinguish them from one another."}),"\n"]}),"\n",(0,t.jsx)(A.UW,{type:"warning",children:(0,t.jsx)(n.p,{children:"Memo is optional but required to transfer assets to centralized cryptocurrency\nexchanges. Centralized exchanges will ask you to enter a memo for\nidentification when you make a deposit."})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Address Book Detail",placeholder:"blur",src:o})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"If you add addresses in the address book, you can use the address book feature when sending assets."}),"\n"]}),"\n",(0,t.jsx)("img",{src:"/img/guide/extension/settings/address_send.png",width:"50%",height:"50%"}),"\n",(0,t.jsx)(n.h2,{id:"change-password",children:"Change password"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Enter your current password and to change it to a new password. Enter the new password once more to confirm."}),"\n"]}),"\n",(0,t.jsx)(A.UW,{type:"warning",children:(0,t.jsx)(n.p,{children:"Make sure that you enter more than 8 characters for the password."})}),"\n",(0,t.jsx)("img",{src:"/img/guide/extension/settings/password.png",width:"50%",height:"50%"}),"\n",(0,t.jsx)(n.h2,{id:"currency--language",children:"Currency & Language"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Cosmostation Wallet Extension supports 2 languages and 5 currencies.\nWe plan to support more currencies and languages in the near future."}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Currency & Language",placeholder:"blur",src:a})}),"\n",(0,t.jsx)(n.h2,{id:"lock-screen",children:"Lock screen"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Lock your screen to secure your wallet."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["!",(0,t.jsx)("img",{src:"/img/guide/extension/settings/lock.png",width:"50%",height:"50%"})]})]})}var l=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,i.a)(),e.components);return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/settings.mdx",route:"/extension/guide/settings",timestamp:1693389556e3,title:"Settings",headings:c},pageNextRoute:"/extension/guide/settings"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=8443)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/guide/transfer-coins-393131e01ad52b9f.js b/_next/static/chunks/pages/extension/guide/transfer-coins-9cbf644ffd30d5e7.js similarity index 82% rename from _next/static/chunks/pages/extension/guide/transfer-coins-393131e01ad52b9f.js rename to _next/static/chunks/pages/extension/guide/transfer-coins-9cbf644ffd30d5e7.js index c05ecb6c..59630eed 100644 --- a/_next/static/chunks/pages/extension/guide/transfer-coins-393131e01ad52b9f.js +++ b/_next/static/chunks/pages/extension/guide/transfer-coins-9cbf644ffd30d5e7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6889],{2918:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/transfer-coins",function(){return t(5887)}])},5887:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return A},default:function(){return a}});var i=t(5893),s=t(2673),r=t(2643),c={src:"/_next/static/media/deposit.c42c4184.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAKlBMVEUuMDsaHCYkJzEqLDY3OUIjJTEXGSIpKzYyNEArLjs6NWRMTlSGh4deX2WQO03yAAAABXRSTlPZ2djY2SimrGUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAxSURBVHicFcbJEQAgDAJAEoUQj/7bddzXwiRGFWH3T6HZM+8trGXkOQbJyL0JSRGSHh+qASnv9hZkAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},o={src:"/_next/static/media/send.1fe1be6a.png",height:1500,width:2820,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEUnKTUkJjItMD4aHCU3MWAiJC82OEe04vfhAAAABXRSTlP92Pn3+bSmdrYAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAhSURBVHicBcGBAQAACIIwyOz/k9ugghRwxoPWxCuMWW8fBGMAS+Jw5E4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},d=t(1282);let A=[{depth:2,value:"Receive",id:"receive"},{depth:2,value:"Send",id:"send"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",strong:"strong",h2:"h2",blockquote:"blockquote",img:"img",code:"code"},(0,r.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Transfer coins"}),"\n",(0,i.jsx)(n.p,{children:"Transfer coins with just one click via Cosmostation Wallet Extension."}),"\n",(0,i.jsxs)(d.UW,{type:"warning",children:[(0,i.jsxs)(n.p,{children:["Cosmostation Wallet Extension currently ",(0,i.jsx)(n.strong,{children:"DOES NOT SUPPORT IBC TRANSFERS."})]}),(0,i.jsx)(n.p,{children:"If you are trying to send assets to a different chain, the send button will be deactivated."})]}),"\n",(0,i.jsx)(n.h2,{id:"receive",children:"Receive"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:["Click ",(0,i.jsx)(n.strong,{children:"'Deposit'"})," to copy the address to the clipboard or scan the QR code."]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Receive",placeholder:"blur",src:c})}),"\n",(0,i.jsx)(n.h2,{id:"send",children:"Send"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"The following process is for users sending assets to a different address."}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 1"})," Enter 'Recipient address', 'Amount,' and 'Memo.' The memo field is optional but required for sending to specific centralized cryptocurrency exchanges. Centralized exchanges will ask you to enter a memo for identification when you make a deposit."]}),"\n",(0,i.jsxs)(d.UW,{type:"warning",children:[(0,i.jsx)(n.p,{children:"Make sure that you enter the correct recipient address."}),(0,i.jsx)(n.p,{children:"Entering an incorrect address may result in loss of funds and responsibility of entering the correct address is on the user."})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 2, 3"})," Check the transaction information and confirm."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Send",placeholder:"blur",src:o})})]})}var a=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,r.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/transfer-coins.mdx",route:"/extension/guide/transfer-coins",timestamp:1693389556e3,title:"Transfer coins",headings:A},pageNextRoute:"/extension/guide/transfer-coins"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=2918)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6889],{2918:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/guide/transfer-coins",function(){return t(5887)}])},5887:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return A},default:function(){return a}});var i=t(5893),s=t(2673),r=t(2643),c={src:"/_next/static/media/deposit.c42c4184.png",height:1500,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAJ1BMVEUtMDolKDIaHCU3OUQqLDgjJTEyNEAZGyM7NWQUFiBMTlSGh4ddX2U0Ddj0AAAABHRSTlPZ2NnZxKDgJwAAAAlwSFlzAAALEwAACxMBAJqcGAAAADBJREFUeJwVxsERACAIA7CCbQF1/3k98wosAaRg+4eguOJeotuIcwxJGXsLVZU5Uw8XkQD54O9zDwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},o={src:"/_next/static/media/send.1fe1be6a.png",height:1500,width:2820,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEUkJjInKTYcHictLz44MWAiJC82OEgAKI3CAAAABXRSTlPY/vb5+a0BTJMAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAjSURBVHicJcSxAQAwDMIwA4H/T+5QDUJF4p8w0WKzouBj9wAEtABLA8VRYwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},d=t(1282);let A=[{depth:2,value:"Receive",id:"receive"},{depth:2,value:"Send",id:"send"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",strong:"strong",h2:"h2",blockquote:"blockquote",img:"img",code:"code"},(0,r.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Transfer coins"}),"\n",(0,i.jsx)(n.p,{children:"Transfer coins with just one click via Cosmostation Wallet Extension."}),"\n",(0,i.jsxs)(d.UW,{type:"warning",children:[(0,i.jsxs)(n.p,{children:["Cosmostation Wallet Extension currently ",(0,i.jsx)(n.strong,{children:"DOES NOT SUPPORT IBC TRANSFERS."})]}),(0,i.jsx)(n.p,{children:"If you are trying to send assets to a different chain, the send button will be deactivated."})]}),"\n",(0,i.jsx)(n.h2,{id:"receive",children:"Receive"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:["Click ",(0,i.jsx)(n.strong,{children:"'Deposit'"})," to copy the address to the clipboard or scan the QR code."]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Receive",placeholder:"blur",src:c})}),"\n",(0,i.jsx)(n.h2,{id:"send",children:"Send"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"The following process is for users sending assets to a different address."}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 1"})," Enter 'Recipient address', 'Amount,' and 'Memo.' The memo field is optional but required for sending to specific centralized cryptocurrency exchanges. Centralized exchanges will ask you to enter a memo for identification when you make a deposit."]}),"\n",(0,i.jsxs)(d.UW,{type:"warning",children:[(0,i.jsx)(n.p,{children:"Make sure that you enter the correct recipient address."}),(0,i.jsx)(n.p,{children:"Entering an incorrect address may result in loss of funds and responsibility of entering the correct address is on the user."})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Step 2, 3"})," Check the transaction information and confirm."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Send",placeholder:"blur",src:o})})]})}var a=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,r.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/extension/guide/transfer-coins.mdx",route:"/extension/guide/transfer-coins",timestamp:1693389556e3,title:"Transfer coins",headings:A},pageNextRoute:"/extension/guide/transfer-coins"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=2918)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-feff5be07a47c11d.js b/_next/static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-97beab31a0ba7704.js similarity index 99% rename from _next/static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-feff5be07a47c11d.js rename to _next/static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-97beab31a0ba7704.js index 2920d5e2..c353a724 100644 --- a/_next/static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-feff5be07a47c11d.js +++ b/_next/static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-97beab31a0ba7704.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9735],{1263:function(s,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/integration/cosmos/Deprecated/accounts",function(){return e(8625)}])},8625:function(s,n,e){"use strict";e.r(n),e.d(n,{__toc:function(){return t},default:function(){return c}});var o=e(5893),l=e(2673),i=e(2643),r={src:"/_next/static/media/2-provider-connected.c85008c1.png",height:196,width:710,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAD1BMVEUqLDY0OEQbHSYZGyRZW2NleOfhAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAGUlEQVR4nAXBgQEAIAzDIGL3/82Ciz2UTT4A0QAUEZrtcAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2};let t=[{depth:2,value:"Get Accounts",id:"get-accounts"},{depth:3,value:"Code using @cosmostation/extension-client",id:"code-using-cosmostationextension-client"},{depth:3,value:"Vanilla Code",id:"vanilla-code"},{depth:3,value:"If connected successfully, it will look like below.",id:"if-connected-successfully-it-will-look-like-below"},{depth:4,value:"Response",id:"response"},{depth:2,value:"Request Account (Popup)",id:"request-account-popup"},{depth:3,value:"Code using @cosmostation/extension-client",id:"code-using-cosmostationextension-client-1"},{depth:3,value:"Vanilla Code",id:"vanilla-code-1"},{depth:4,value:"Response",id:"response-1"}];function _createMdxContent(s){let n=Object.assign({h1:"h1",p:"p",h2:"h2",h3:"h3",pre:"pre",code:"code",span:"span",blockquote:"blockquote",img:"img",h4:"h4"},(0,i.a)(),s.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{children:"Accounts"}),"\n",(0,o.jsx)(n.p,{children:"Using Cosmostation Extension accounts."}),"\n",(0,o.jsx)(n.h2,{id:"get-accounts",children:"Get Accounts"}),"\n",(0,o.jsx)(n.h3,{id:"code-using-cosmostationextension-client",children:"Code using @cosmostation/extension-client"}),"\n",(0,o.jsx)(n.pre,{"data-language":"javascript","data-theme":"default",children:(0,o.jsx)(n.code,{"data-language":"javascript","data-theme":"default",children:(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"provider"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".getAccount"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,o.jsx)(n.h3,{id:"vanilla-code",children:"Vanilla Code"}),"\n",(0,o.jsx)(n.pre,{"data-language":"javascript","data-theme":"default",children:(0,o.jsxs)(n.code,{"data-language":"javascript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"window"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmos"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".request"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" method"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cos_account"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" params"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" { chainName"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.h3,{id:"if-connected-successfully-it-will-look-like-below",children:"If connected successfully, it will look like below."}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{alt:"Provider",placeholder:"blur",src:r})}),"\n"]}),"\n",(0,o.jsx)(n.h4,{id:"response",children:"Response"}),"\n",(0,o.jsx)(n.pre,{"data-language":"typescript","data-theme":"default",filename:"Model",children:(0,o.jsxs)(n.code,{"data-language":"typescript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"AccountResponse"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" address"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" publicKey"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"Uint8Array"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" isLedger"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"};"})})]})}),"\n",(0,o.jsx)(n.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,o.jsxs)(n.code,{"data-language":"json","data-theme":"default",children:[(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"account name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"publicKey"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"3"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"77"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"9"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"189"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"251"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"249"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"150"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"235"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"192"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"51"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"98"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"242"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"12"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"102"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"144"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"211"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"89"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"42"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"187"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"170"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"isLedger"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"false"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,o.jsx)(n.h2,{id:"request-account-popup",children:"Request Account (Popup)"}),"\n",(0,o.jsx)(n.h3,{id:"code-using-cosmostationextension-client-1",children:"Code using @cosmostation/extension-client"}),"\n",(0,o.jsx)(n.pre,{"data-language":"typescript","data-theme":"default",children:(0,o.jsxs)(n.code,{"data-language":"typescript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"try"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"// ..."})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"provider"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".requestAccount"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"catch"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" (e) {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" (e "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"instanceof"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"InstallError"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"not installed"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,o.jsx)(n.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"e"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:".code "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"==="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"4001"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"user rejected request"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,o.jsx)(n.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"// exception"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,o.jsx)(n.h3,{id:"vanilla-code-1",children:"Vanilla Code"}),"\n",(0,o.jsx)(n.pre,{"data-language":"javascript","data-theme":"default",children:(0,o.jsxs)(n.code,{"data-language":"javascript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"window"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmos"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".request"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" method"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cos_requestAccount"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" params"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" { chainName"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,o.jsx)(n.h4,{id:"response-1",children:"Response"}),"\n",(0,o.jsx)(n.pre,{"data-language":"typescript","data-theme":"default",filename:"Model",children:(0,o.jsxs)(n.code,{"data-language":"typescript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"RequestAccountResponse"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" address"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" publicKey"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"Uint8Array"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" isLedger"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"};"})})]})}),"\n",(0,o.jsx)(n.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,o.jsxs)(n.code,{"data-language":"json","data-theme":"default",children:[(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"account name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"publicKey"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"3"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"77"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"9"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"189"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"251"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"249"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"150"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"235"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"192"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"51"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"98"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"242"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"12"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"102"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"144"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"211"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"89"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"42"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"187"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"170"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"isLedger"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"false"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})]})}var c=(0,l.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,i.a)(),s.components);return n?(0,o.jsx)(n,{...s,children:(0,o.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/extension/integration/cosmos/Deprecated/accounts.mdx",route:"/extension/integration/cosmos/Deprecated/accounts",timestamp:1694514426e3,title:"Accounts",headings:t},pageNextRoute:"/extension/integration/cosmos/Deprecated/accounts"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=1263)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9735],{1263:function(s,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension/integration/cosmos/Deprecated/accounts",function(){return e(8625)}])},8625:function(s,n,e){"use strict";e.r(n),e.d(n,{__toc:function(){return t},default:function(){return c}});var o=e(5893),l=e(2673),i=e(2643),r={src:"/_next/static/media/2-provider-connected.c85008c1.png",height:196,width:710,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAD1BMVEUqLDY0OEQaHCQcHShZW2O8bTm+AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAGUlEQVR4nAXBgQEAIAzDINL5/82CFzuUTT4AxwAS2N+IzAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2};let t=[{depth:2,value:"Get Accounts",id:"get-accounts"},{depth:3,value:"Code using @cosmostation/extension-client",id:"code-using-cosmostationextension-client"},{depth:3,value:"Vanilla Code",id:"vanilla-code"},{depth:3,value:"If connected successfully, it will look like below.",id:"if-connected-successfully-it-will-look-like-below"},{depth:4,value:"Response",id:"response"},{depth:2,value:"Request Account (Popup)",id:"request-account-popup"},{depth:3,value:"Code using @cosmostation/extension-client",id:"code-using-cosmostationextension-client-1"},{depth:3,value:"Vanilla Code",id:"vanilla-code-1"},{depth:4,value:"Response",id:"response-1"}];function _createMdxContent(s){let n=Object.assign({h1:"h1",p:"p",h2:"h2",h3:"h3",pre:"pre",code:"code",span:"span",blockquote:"blockquote",img:"img",h4:"h4"},(0,i.a)(),s.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{children:"Accounts"}),"\n",(0,o.jsx)(n.p,{children:"Using Cosmostation Extension accounts."}),"\n",(0,o.jsx)(n.h2,{id:"get-accounts",children:"Get Accounts"}),"\n",(0,o.jsx)(n.h3,{id:"code-using-cosmostationextension-client",children:"Code using @cosmostation/extension-client"}),"\n",(0,o.jsx)(n.pre,{"data-language":"javascript","data-theme":"default",children:(0,o.jsx)(n.code,{"data-language":"javascript","data-theme":"default",children:(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"provider"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".getAccount"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,o.jsx)(n.h3,{id:"vanilla-code",children:"Vanilla Code"}),"\n",(0,o.jsx)(n.pre,{"data-language":"javascript","data-theme":"default",children:(0,o.jsxs)(n.code,{"data-language":"javascript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"window"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmos"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".request"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" method"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cos_account"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" params"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" { chainName"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.h3,{id:"if-connected-successfully-it-will-look-like-below",children:"If connected successfully, it will look like below."}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{alt:"Provider",placeholder:"blur",src:r})}),"\n"]}),"\n",(0,o.jsx)(n.h4,{id:"response",children:"Response"}),"\n",(0,o.jsx)(n.pre,{"data-language":"typescript","data-theme":"default",filename:"Model",children:(0,o.jsxs)(n.code,{"data-language":"typescript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"AccountResponse"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" address"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" publicKey"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"Uint8Array"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" isLedger"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"};"})})]})}),"\n",(0,o.jsx)(n.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,o.jsxs)(n.code,{"data-language":"json","data-theme":"default",children:[(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"account name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"publicKey"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"3"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"77"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"9"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"189"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"251"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"249"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"150"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"235"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"192"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"51"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"98"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"242"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"12"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"102"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"144"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"211"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"89"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"42"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"187"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"170"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"isLedger"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"false"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,o.jsx)(n.h2,{id:"request-account-popup",children:"Request Account (Popup)"}),"\n",(0,o.jsx)(n.h3,{id:"code-using-cosmostationextension-client-1",children:"Code using @cosmostation/extension-client"}),"\n",(0,o.jsx)(n.pre,{"data-language":"typescript","data-theme":"default",children:(0,o.jsxs)(n.code,{"data-language":"typescript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"try"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"// ..."})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"provider"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".requestAccount"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"catch"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" (e) {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" (e "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"instanceof"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"InstallError"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"not installed"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,o.jsx)(n.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"e"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:".code "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"==="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"4001"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"user rejected request"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,o.jsx)(n.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"// exception"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,o.jsx)(n.h3,{id:"vanilla-code-1",children:"Vanilla Code"}),"\n",(0,o.jsx)(n.pre,{"data-language":"javascript","data-theme":"default",children:(0,o.jsxs)(n.code,{"data-language":"javascript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"account"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"window"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"."}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmos"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:".request"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" method"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cos_requestAccount"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" params"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" { chainName"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmoshub-4"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,o.jsx)(n.h4,{id:"response-1",children:"Response"}),"\n",(0,o.jsx)(n.pre,{"data-language":"typescript","data-theme":"default",filename:"Model",children:(0,o.jsxs)(n.code,{"data-language":"typescript","data-theme":"default",children:[(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"RequestAccountResponse"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" address"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" publicKey"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"Uint8Array"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" isLedger"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"};"})})]})}),"\n",(0,o.jsx)(n.pre,{"data-language":"json","data-theme":"default",filename:"Example",children:(0,o.jsxs)(n.code,{"data-language":"json","data-theme":"default",children:[(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"account name"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cosmos1wgeoiheoighwoighwioeghoweghoiweghiow"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"publicKey"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"3"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"77"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"9"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"189"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"251"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"249"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"150"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"235"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"192"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"51"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"98"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"56"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"242"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"12"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"102"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"144"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"211"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"89"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"42"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"187"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"170"})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(n.span,{className:"line",children:[(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"isLedger"'}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"false"})]}),"\n",(0,o.jsx)(n.span,{className:"line",children:(0,o.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})]})}var c=(0,l.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,i.a)(),s.components);return n?(0,o.jsx)(n,{...s,children:(0,o.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/extension/integration/cosmos/Deprecated/accounts.mdx",route:"/extension/integration/cosmos/Deprecated/accounts",timestamp:1694514426e3,title:"Accounts",headings:t},pageNextRoute:"/extension/integration/cosmos/Deprecated/accounts"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=1263)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintscan/registry/cw20-a759924c4b27d4bc.js b/_next/static/chunks/pages/mintscan/registry/cw20-97e96e6544235088.js similarity index 99% rename from _next/static/chunks/pages/mintscan/registry/cw20-a759924c4b27d4bc.js rename to _next/static/chunks/pages/mintscan/registry/cw20-97e96e6544235088.js index c99722e6..028cfb21 100644 --- a/_next/static/chunks/pages/mintscan/registry/cw20-a759924c4b27d4bc.js +++ b/_next/static/chunks/pages/mintscan/registry/cw20-97e96e6544235088.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2242],{6364:function(s,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintscan/registry/cw20",function(){return e(6234)}])},6234:function(s,n,e){"use strict";e.r(n),e.d(n,{__toc:function(){return t},default:function(){return c}});var r=e(5893),i=e(2673),l=e(2643),o={src:"/_next/static/media/mintscan-cw.beb16ec8.png",height:821,width:1287,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEUdHikXGCJW1w2VAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgQABGMAAzGBhANDKDkYGRAQABYAARSql5hAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5};let t=[];function _createMdxContent(s){let n=Object.assign({h1:"h1",p:"p",blockquote:"blockquote",img:"img",a:"a",ol:"ol",li:"li",pre:"pre",code:"code",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",hr:"hr",ul:"ul"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{children:"How to add your CW20 token info"}),"\n",(0,r.jsx)(n.p,{children:"To add CW20 asset metadata on mintscan assets."}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{alt:"CW20",placeholder:"blur",src:o})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"https://github.com/cosmostation/chainlist/blob/main/chain/juno/contract.json",children:"Juno Cw20"})," list supporting"]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsx)(n.li,{children:"Fork this repo to your own github account\\"}),"\n",(0,r.jsx)(n.li,{children:"Clone fork and create new branch"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(n.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"clone"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"git@github.com:YOUR_ACCOUNT/chainlist.git"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"chainlist"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"checkout"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(n.ol,{start:"3",children:["\n",(0,r.jsx)(n.li,{children:"Add the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master"}),"\n"]}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"key"}),(0,r.jsx)(n.th,{children:"value"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"chainId"})}),(0,r.jsx)(n.td,{children:"-1"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"chainName"})}),(0,r.jsx)(n.td,{children:"Chain with the token"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"address"})}),(0,r.jsx)(n.td,{children:"Token's contract_address"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"symbol"})}),(0,r.jsx)(n.td,{children:"Name of token's symbol"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"description"})}),(0,r.jsx)(n.td,{children:"A brief summary of the token"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"decimals"})}),(0,r.jsx)(n.td,{children:"Decimal of the token"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"image"})}),(0,r.jsxs)(n.td,{children:["Image route of the token ",(0,r.jsx)("br",{})," ",(0,r.jsx)(n.code,{children:"/${targetChain}/asset"})," add image in the folder",(0,r.jsx)("br",{})," Make sure to upload a ",(0,r.jsx)(n.code,{children:"png"})," file"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"default"})}),(0,r.jsxs)(n.td,{children:["default value is ",(0,r.jsx)(n.code,{children:"false"})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"coinGeckoId"})}),(0,r.jsxs)(n.td,{children:["Coin gecko site's API ID",(0,r.jsx)("br",{})," Empty string if none"]})]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Cw20 Token\n",(0,r.jsx)(n.code,{children:"/${targetChain}/contract.json"})]}),"\n",(0,r.jsx)(n.pre,{"data-language":"json","data-theme":"default",children:(0,r.jsxs)(n.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"// example JUNO"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"["})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"-1"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno1pqht3pkhr5fpyre2tw3ltrzc0kvxknnsgt04thym9l7n2rmxgw0sgefues"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"DAO"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"DAO DAO"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"6"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno/asset/dao.png"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"-1"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno168ctmpyppk90d34p3jjy658zf5a5l3w8wk35wht6ccqj4mr0yv8s4j5awr"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"NETA"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"NETA"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"6"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno/asset/neta.png"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"neta"'})]}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"]"})})]})}),"\n",(0,r.jsxs)(n.ol,{start:"4",children:["\n",(0,r.jsx)(n.li,{children:"Commit and push to your fork"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(n.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-A"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"commit"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-m"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"“Add"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"YOUR"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"TOKEN"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"NAM"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"E"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"”"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"push"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"origin"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(n.ol,{start:"5",children:["\n",(0,r.jsx)(n.li,{children:"From your repository, make pull request (PR)"}),"\n"]}),"\n"]}),"\n"]})]})}var c=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,l.a)(),s.components);return n?(0,r.jsx)(n,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintscan/registry/cw20.mdx",route:"/mintscan/registry/cw20",timestamp:1693389556e3,title:"How to add your CW20 token info",headings:t},pageNextRoute:"/mintscan/registry/cw20"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=6364)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2242],{6364:function(s,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintscan/registry/cw20",function(){return e(6234)}])},6234:function(s,n,e){"use strict";e.r(n),e.d(n,{__toc:function(){return t},default:function(){return c}});var r=e(5893),i=e(2673),l=e(2643),o={src:"/_next/static/media/mintscan-cw.beb16ec8.png",height:821,width:1287,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEUdHigXGCLua2rwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgQABGMAAzGBhANDKDkYGRAQABYAARSql5hAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5};let t=[];function _createMdxContent(s){let n=Object.assign({h1:"h1",p:"p",blockquote:"blockquote",img:"img",a:"a",ol:"ol",li:"li",pre:"pre",code:"code",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",hr:"hr",ul:"ul"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{children:"How to add your CW20 token info"}),"\n",(0,r.jsx)(n.p,{children:"To add CW20 asset metadata on mintscan assets."}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{alt:"CW20",placeholder:"blur",src:o})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"https://github.com/cosmostation/chainlist/blob/main/chain/juno/contract.json",children:"Juno Cw20"})," list supporting"]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsx)(n.li,{children:"Fork this repo to your own github account\\"}),"\n",(0,r.jsx)(n.li,{children:"Clone fork and create new branch"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(n.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"clone"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"git@github.com:YOUR_ACCOUNT/chainlist.git"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"chainlist"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"checkout"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(n.ol,{start:"3",children:["\n",(0,r.jsx)(n.li,{children:"Add the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master"}),"\n"]}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"key"}),(0,r.jsx)(n.th,{children:"value"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"chainId"})}),(0,r.jsx)(n.td,{children:"-1"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"chainName"})}),(0,r.jsx)(n.td,{children:"Chain with the token"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"address"})}),(0,r.jsx)(n.td,{children:"Token's contract_address"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"symbol"})}),(0,r.jsx)(n.td,{children:"Name of token's symbol"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"description"})}),(0,r.jsx)(n.td,{children:"A brief summary of the token"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"decimals"})}),(0,r.jsx)(n.td,{children:"Decimal of the token"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"image"})}),(0,r.jsxs)(n.td,{children:["Image route of the token ",(0,r.jsx)("br",{})," ",(0,r.jsx)(n.code,{children:"/${targetChain}/asset"})," add image in the folder",(0,r.jsx)("br",{})," Make sure to upload a ",(0,r.jsx)(n.code,{children:"png"})," file"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"default"})}),(0,r.jsxs)(n.td,{children:["default value is ",(0,r.jsx)(n.code,{children:"false"})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"coinGeckoId"})}),(0,r.jsxs)(n.td,{children:["Coin gecko site's API ID",(0,r.jsx)("br",{})," Empty string if none"]})]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Cw20 Token\n",(0,r.jsx)(n.code,{children:"/${targetChain}/contract.json"})]}),"\n",(0,r.jsx)(n.pre,{"data-language":"json","data-theme":"default",children:(0,r.jsxs)(n.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"// example JUNO"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"["})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"-1"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno1pqht3pkhr5fpyre2tw3ltrzc0kvxknnsgt04thym9l7n2rmxgw0sgefues"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"DAO"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"DAO DAO"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"6"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno/asset/dao.png"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"-1"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno168ctmpyppk90d34p3jjy658zf5a5l3w8wk35wht6ccqj4mr0yv8s4j5awr"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"NETA"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"NETA"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"6"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"juno/asset/neta.png"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"neta"'})]}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(n.span,{className:"line",children:(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"]"})})]})}),"\n",(0,r.jsxs)(n.ol,{start:"4",children:["\n",(0,r.jsx)(n.li,{children:"Commit and push to your fork"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(n.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-A"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"commit"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-m"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"“Add"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"YOUR"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"TOKEN"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"NAM"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"E"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"”"})]}),"\n",(0,r.jsxs)(n.span,{className:"line",children:[(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"push"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"origin"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(n.ol,{start:"5",children:["\n",(0,r.jsx)(n.li,{children:"From your repository, make pull request (PR)"}),"\n"]}),"\n"]}),"\n"]})]})}var c=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,l.a)(),s.components);return n?(0,r.jsx)(n,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintscan/registry/cw20.mdx",route:"/mintscan/registry/cw20",timestamp:1693389556e3,title:"How to add your CW20 token info",headings:t},pageNextRoute:"/mintscan/registry/cw20"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=6364)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintscan/registry/ecosystem-24c84c5977164a60.js b/_next/static/chunks/pages/mintscan/registry/ecosystem-24c84c5977164a60.js new file mode 100644 index 00000000..1f084f83 --- /dev/null +++ b/_next/static/chunks/pages/mintscan/registry/ecosystem-24c84c5977164a60.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2260],{8006:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintscan/registry/ecosystem",function(){return t(9914)}])},9914:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return r},default:function(){return l}});var i=t(5893),s=t(2673),c=t(2643),o={src:"/_next/static/media/mintscan-eco.53e55643.png",height:923,width:1556,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAANlBMVEUaHit6LBYsPpsiMWlBISEZExoMDQ0fGCElKDIRG0vF+f+gxM57orCcSx+FRB4lISQVDTEqNEVtCVa9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAALklEQVR4nAXBiQHAIAgEwdUAByZ+/TebGRJwATKLpwK8teoVl8zEtcU3Xh2b6wcQ5QD/AmqiTQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5};let r=[];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",blockquote:"blockquote",img:"img",ul:"ul",li:"li"},(0,c.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"How to add your project on Ecosystem"}),"\n",(0,i.jsx)(n.p,{children:"To add ecosystem on mintscan."}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Ecosystem",placeholder:"blur",src:o})}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Please contact us and provide us with the information below."}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"Chain"}),"\n",(0,i.jsx)(n.li,{children:"Project name"}),"\n",(0,i.jsx)(n.li,{children:"Description"}),"\n",(0,i.jsx)(n.li,{children:"Url"}),"\n",(0,i.jsx)(n.li,{children:"Token(Optional)"}),"\n",(0,i.jsx)(n.li,{children:"Contact(Optional) : twitter, telegram, discord"}),"\n",(0,i.jsx)(n.li,{children:"Reference(Optional) : Docs, Github, Blog, Reddit"}),"\n",(0,i.jsx)(n.li,{children:"Type : Cosmwasm, EVM, Module"}),"\n",(0,i.jsx)(n.li,{children:"Banner : 1125 x 600 px"}),"\n"]})]})}var l=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,c.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintscan/registry/ecosystem.mdx",route:"/mintscan/registry/ecosystem",timestamp:1693389556e3,title:"How to add your project on Ecosystem",headings:r},pageNextRoute:"/mintscan/registry/ecosystem"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=8006)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintscan/registry/ecosystem-51d65237753fdeed.js b/_next/static/chunks/pages/mintscan/registry/ecosystem-51d65237753fdeed.js deleted file mode 100644 index 9a5e84ca..00000000 --- a/_next/static/chunks/pages/mintscan/registry/ecosystem-51d65237753fdeed.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2260],{8006:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintscan/registry/ecosystem",function(){return t(9914)}])},9914:function(e,n,t){"use strict";t.r(n),t.d(n,{__toc:function(){return c},default:function(){return l}});var i=t(5893),s=t(2673),o=t(2643),r={src:"/_next/static/media/mintscan-eco.53e55643.png",height:923,width:1556,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAANlBMVEUaHit4LBaQRx8iEiANDQ0ZFBs+HiElKDMfHSMRG0oiMWosPplIJSApNEUVDTDF+f+gxM57orCNDeTrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVR4nAXBhwEAIAjAsKIg4Pb/Z01wwAKos2lPBRPJkbpwdywieOfW3Ur5EiEA9xdmbhUAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5};let c=[];function _createMdxContent(e){let n=Object.assign({h1:"h1",p:"p",blockquote:"blockquote",img:"img",ul:"ul",li:"li"},(0,o.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"How to add your project on Ecosystem"}),"\n",(0,i.jsx)(n.p,{children:"To add ecosystem on mintscan."}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Ecosystem",placeholder:"blur",src:r})}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Please contact us and provide us with the information below."}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"Chain"}),"\n",(0,i.jsx)(n.li,{children:"Project name"}),"\n",(0,i.jsx)(n.li,{children:"Description"}),"\n",(0,i.jsx)(n.li,{children:"Url"}),"\n",(0,i.jsx)(n.li,{children:"Token(Optional)"}),"\n",(0,i.jsx)(n.li,{children:"Contact(Optional) : twitter, telegram, discord"}),"\n",(0,i.jsx)(n.li,{children:"Reference(Optional) : Docs, Github, Blog, Reddit"}),"\n",(0,i.jsx)(n.li,{children:"Type : Cosmwasm, EVM, Module"}),"\n",(0,i.jsx)(n.li,{children:"Banner : 1125 x 600 px"}),"\n"]})]})}var l=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,o.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintscan/registry/ecosystem.mdx",route:"/mintscan/registry/ecosystem",timestamp:1693389556e3,title:"How to add your project on Ecosystem",headings:c},pageNextRoute:"/mintscan/registry/ecosystem"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=8006)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintscan/registry/erc20-fe479e713f2bdb2d.js b/_next/static/chunks/pages/mintscan/registry/erc20-be025bec010c93e2.js similarity index 99% rename from _next/static/chunks/pages/mintscan/registry/erc20-fe479e713f2bdb2d.js rename to _next/static/chunks/pages/mintscan/registry/erc20-be025bec010c93e2.js index 2138da80..d040aa48 100644 --- a/_next/static/chunks/pages/mintscan/registry/erc20-fe479e713f2bdb2d.js +++ b/_next/static/chunks/pages/mintscan/registry/erc20-be025bec010c93e2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7972],{7616:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintscan/registry/erc20",function(){return n(3466)}])},3466:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return t},default:function(){return c}});var r=n(5893),i=n(2673),l=n(2643),o={src:"/_next/static/media/mintscan-erc.cfeca470.png",height:754,width:1283,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEUYGSMeHyqVzIUoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGElEQVR4nGNghAIGRgYoADEYQQiFARIEAAIIABLH0qQLAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5};let t=[];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",blockquote:"blockquote",img:"img",a:"a",ol:"ol",li:"li",pre:"pre",code:"code",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",hr:"hr",ul:"ul"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"How to add your ERC20 token info"}),"\n",(0,r.jsx)(e.p,{children:"To add erc20 asset metadata on mintscan assets."}),"\n",(0,r.jsxs)(e.blockquote,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.img,{alt:"Erc20",placeholder:"blur",src:o})}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.a,{href:"https://github.com/cosmostation/chainlist/blob/main/chain/evmos/contract.json",children:"Evmos Erc20"})," list supporting"]}),"\n",(0,r.jsxs)(e.ol,{children:["\n",(0,r.jsx)(e.li,{children:"Fork this repo to your own github account"}),"\n",(0,r.jsx)(e.li,{children:"Clone fork and create new branch"}),"\n"]}),"\n",(0,r.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"clone"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"git@github.com:YOUR_ACCOUNT/chainlist.git"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"chainlist"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"checkout"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(e.ol,{start:"3",children:["\n",(0,r.jsx)(e.li,{children:"Add the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master"}),"\n"]}),"\n",(0,r.jsxs)(e.table,{children:[(0,r.jsx)(e.thead,{children:(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.th,{children:"key"}),(0,r.jsx)(e.th,{children:"value"})]})}),(0,r.jsxs)(e.tbody,{children:[(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"chainId"})}),(0,r.jsx)(e.td,{children:"ChainId of the chain"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"address"})}),(0,r.jsx)(e.td,{children:"Token's contract_address"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"chainName"})}),(0,r.jsx)(e.td,{children:"Name of the displayed token"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"symbol"})}),(0,r.jsx)(e.td,{children:"Name of token's symbol"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"decimals"})}),(0,r.jsx)(e.td,{children:"Decimal of the token"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"image"})}),(0,r.jsxs)(e.td,{children:["Image route of the token",(0,r.jsx)("br",{}),(0,r.jsx)(e.code,{children:"/${targetChain}/asset"})," add image in the folder",(0,r.jsx)("br",{})," Make sure to upload a ",(0,r.jsx)(e.code,{children:"png"}),"file"]})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"default"})}),(0,r.jsxs)(e.td,{children:["default value is ",(0,r.jsx)(e.code,{children:"false"})]})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsxs)(e.td,{children:[(0,r.jsx)(e.code,{children:"coinGeckoId"})," (optional)"]}),(0,r.jsxs)(e.td,{children:["Coin gecko site's API ID",(0,r.jsx)("br",{})," Empty string if none"]})]})]})]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:["ERC20 Token\n",(0,r.jsx)(e.code,{children:"/${targetChain}/contract.json"})]}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"9001"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0xD4949664cD82660AaE99bEdc034a0deA8A0bd517"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"WEVMOS"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Wrapped Evmos"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"18"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos/asset/wevmos.png"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"9001"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0xb72A7567847abA28A2819B855D7fE679D4f59846"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ceUSDT"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Tether USD (Celer)"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"6"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ethereum/asset/usdt.png"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"tether"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})})]})}),"\n",(0,r.jsxs)(e.ol,{start:"4",children:["\n",(0,r.jsx)(e.li,{children:"Commit and push to your fork"}),"\n"]}),"\n",(0,r.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-A"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"commit"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-m"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"“Add"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"YOUR"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"TOKEN"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"NAM"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"E"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"”"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"push"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"origin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(e.ol,{start:"5",children:["\n",(0,r.jsx)(e.li,{children:"From your repository, make pull request (PR)"}),"\n"]}),"\n"]}),"\n"]})]})}var c=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintscan/registry/erc20.mdx",route:"/mintscan/registry/erc20",timestamp:1693389556e3,title:"How to add your ERC20 token info",headings:t},pageNextRoute:"/mintscan/registry/erc20"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=7616)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7972],{7616:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintscan/registry/erc20",function(){return n(3466)}])},3466:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return t},default:function(){return c}});var r=n(5893),i=n(2673),l=n(2643),o={src:"/_next/static/media/mintscan-erc.cfeca470.png",height:754,width:1283,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEUeHyoYGSOa1r+PAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAFklEQVR4nGNggANGCAAzGEA0CgMkAwAB1gAYAeTBVgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5};let t=[];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",blockquote:"blockquote",img:"img",a:"a",ol:"ol",li:"li",pre:"pre",code:"code",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",hr:"hr",ul:"ul"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"How to add your ERC20 token info"}),"\n",(0,r.jsx)(e.p,{children:"To add erc20 asset metadata on mintscan assets."}),"\n",(0,r.jsxs)(e.blockquote,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.img,{alt:"Erc20",placeholder:"blur",src:o})}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.a,{href:"https://github.com/cosmostation/chainlist/blob/main/chain/evmos/contract.json",children:"Evmos Erc20"})," list supporting"]}),"\n",(0,r.jsxs)(e.ol,{children:["\n",(0,r.jsx)(e.li,{children:"Fork this repo to your own github account"}),"\n",(0,r.jsx)(e.li,{children:"Clone fork and create new branch"}),"\n"]}),"\n",(0,r.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"clone"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"git@github.com:YOUR_ACCOUNT/chainlist.git"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"chainlist"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"checkout"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(e.ol,{start:"3",children:["\n",(0,r.jsx)(e.li,{children:"Add the info of your token in the chain that your token needs to be displayed\nIf there is no chain in the list, create a folder for the chain and add info in the folder\nThen add the name of the folder in: supports.json\nChanges will be updated within 24 hours after merged to master"}),"\n"]}),"\n",(0,r.jsxs)(e.table,{children:[(0,r.jsx)(e.thead,{children:(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.th,{children:"key"}),(0,r.jsx)(e.th,{children:"value"})]})}),(0,r.jsxs)(e.tbody,{children:[(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"chainId"})}),(0,r.jsx)(e.td,{children:"ChainId of the chain"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"address"})}),(0,r.jsx)(e.td,{children:"Token's contract_address"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"chainName"})}),(0,r.jsx)(e.td,{children:"Name of the displayed token"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"symbol"})}),(0,r.jsx)(e.td,{children:"Name of token's symbol"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"decimals"})}),(0,r.jsx)(e.td,{children:"Decimal of the token"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"image"})}),(0,r.jsxs)(e.td,{children:["Image route of the token",(0,r.jsx)("br",{}),(0,r.jsx)(e.code,{children:"/${targetChain}/asset"})," add image in the folder",(0,r.jsx)("br",{})," Make sure to upload a ",(0,r.jsx)(e.code,{children:"png"}),"file"]})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"default"})}),(0,r.jsxs)(e.td,{children:["default value is ",(0,r.jsx)(e.code,{children:"false"})]})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsxs)(e.td,{children:[(0,r.jsx)(e.code,{children:"coinGeckoId"})," (optional)"]}),(0,r.jsxs)(e.td,{children:["Coin gecko site's API ID",(0,r.jsx)("br",{})," Empty string if none"]})]})]})]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:["ERC20 Token\n",(0,r.jsx)(e.code,{children:"/${targetChain}/contract.json"})]}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"9001"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0xD4949664cD82660AaE99bEdc034a0deA8A0bd517"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"WEVMOS"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Wrapped Evmos"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"18"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos/asset/wevmos.png"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"9001"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"chainName"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"evmos"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"address"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0xb72A7567847abA28A2819B855D7fE679D4f59846"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"symbol"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ceUSDT"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Tether USD (Celer)"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"decimals"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"6"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ethereum/asset/usdt.png"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"default"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"coinGeckoId"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"tether"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})})]})}),"\n",(0,r.jsxs)(e.ol,{start:"4",children:["\n",(0,r.jsx)(e.li,{children:"Commit and push to your fork"}),"\n"]}),"\n",(0,r.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"shell","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-A"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"commit"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-m"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"“Add"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"YOUR"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"TOKEN"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"NAM"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"E"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"”"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"push"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"origin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"branch_nam"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,r.jsxs)(e.ol,{start:"5",children:["\n",(0,r.jsx)(e.li,{children:"From your repository, make pull request (PR)"}),"\n"]}),"\n"]}),"\n"]})]})}var c=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintscan/registry/erc20.mdx",route:"/mintscan/registry/erc20",timestamp:1693389556e3,title:"How to add your ERC20 token info",headings:t},pageNextRoute:"/mintscan/registry/erc20"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=7616)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation-5c009ce936af1e59.js b/_next/static/chunks/pages/mintstation-5c009ce936af1e59.js new file mode 100644 index 00000000..d9075563 --- /dev/null +++ b/_next/static/chunks/pages/mintstation-5c009ce936af1e59.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7797],{174:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation",function(){return n(3157)}])},3157:function(t,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var i=n(5893),o=n(2673),s=n(2643);let a=[];function _createMdxContent(t){let e=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li"},(0,s.a)(),t.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{children:"Introduction"}),"\n",(0,i.jsx)(e.p,{children:"Mintstation is a network designed for testing the Cosmos SDK. It provides access to the latest features of the Cosmos ecosystem, allowing users to leverage CosmWasm smart contracts."}),"\n",(0,i.jsx)(e.p,{children:"In this documentation, the following topics are covered:"}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsx)(e.li,{children:"Local network installation"}),"\n",(0,i.jsx)(e.li,{children:"CLI usage"}),"\n",(0,i.jsx)(e.li,{children:"Running a full node and participating as a validator"}),"\n",(0,i.jsx)(e.li,{children:"Utilizing Cosmwasm for smart contract development"}),"\n",(0,i.jsx)(e.li,{children:"Custom module development"}),"\n"]}),"\n",(0,i.jsx)(e.p,{children:"Mintstation offers a testing ground for developers and users to explore and experiment with the capabilities of the Cosmos SDK while having the ability to interact with CosmWasm smart contracts. The documentation provides comprehensive guidance on setting up a local network, utilizing the CLI, engaging as a validator, and leveraging Cosmwasm for smart contract deployment. Additionally, developers are encouraged to explore custom module development to tailor the network to their specific needs."}),"\n",(0,i.jsx)(e.p,{children:"By providing an environment that maintains the latest features of the Cosmos SDK and supports Cosmwasm smart contracts, Mintstation facilitates a dynamic and insightful experience for individuals and teams working within the Cosmos ecosystem."})]})}e.default=(0,o.j)({MDXContent:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,s.a)(),t.components);return e?(0,i.jsx)(e,{...t,children:(0,i.jsx)(_createMdxContent,{...t})}):_createMdxContent(t)},pageOpts:{filePath:"pages/mintstation/index.mdx",route:"/mintstation",timestamp:1700119354e3,title:"Introduction",headings:a},pageNextRoute:"/mintstation"})}},function(t){t.O(0,[2673,9774,2888,179],function(){return t(t.s=174)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation-e620e8a0f3354add.js b/_next/static/chunks/pages/mintstation-e620e8a0f3354add.js deleted file mode 100644 index 8be8b379..00000000 --- a/_next/static/chunks/pages/mintstation-e620e8a0f3354add.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7797],{174:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation",function(){return n(3157)}])},3157:function(t,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var i=n(5893),s=n(2673),o=n(2643);let a=[];function _createMdxContent(t){let e=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li"},(0,o.a)(),t.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{children:"Mintstation"}),"\n",(0,i.jsx)(e.p,{children:"Mintstation is a network designed for testing the Cosmos SDK. It provides access to the latest features of the Cosmos ecosystem, allowing users to leverage CosmWasm smart contracts."}),"\n",(0,i.jsx)(e.p,{children:"In this documentation, the following topics are covered:"}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsx)(e.li,{children:"Local network installation"}),"\n",(0,i.jsx)(e.li,{children:"CLI usage"}),"\n",(0,i.jsx)(e.li,{children:"Running a full node and participating as a validator"}),"\n",(0,i.jsx)(e.li,{children:"Utilizing Cosmwasm for smart contract development"}),"\n",(0,i.jsx)(e.li,{children:"Custom module development"}),"\n"]}),"\n",(0,i.jsx)(e.p,{children:"Mintstation offers a testing ground for developers and users to explore and experiment with the capabilities of the Cosmos SDK while having the ability to interact with CosmWasm smart contracts. The documentation provides comprehensive guidance on setting up a local network, utilizing the CLI, engaging as a validator, and leveraging Cosmwasm for smart contract deployment. Additionally, developers are encouraged to explore custom module development to tailor the network to their specific needs."}),"\n",(0,i.jsx)(e.p,{children:"By providing an environment that maintains the latest features of the Cosmos SDK and supports Cosmwasm smart contracts, Mintstation facilitates a dynamic and insightful experience for individuals and teams working within the Cosmos ecosystem."})]})}e.default=(0,s.j)({MDXContent:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),t.components);return e?(0,i.jsx)(e,{...t,children:(0,i.jsx)(_createMdxContent,{...t})}):_createMdxContent(t)},pageOpts:{filePath:"pages/mintstation/index.mdx",route:"/mintstation",timestamp:1698218973e3,title:"Mintstation",headings:a},pageNextRoute:"/mintstation"})}},function(t){t.O(0,[2673,9774,2888,179],function(){return t(t.s=174)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/cli-180ba86918d598a3.js b/_next/static/chunks/pages/mintstation/cli-eca5d973bc213845.js similarity index 50% rename from _next/static/chunks/pages/mintstation/cli-180ba86918d598a3.js rename to _next/static/chunks/pages/mintstation/cli-eca5d973bc213845.js index d9f259d7..8e741c87 100644 --- a/_next/static/chunks/pages/mintstation/cli-180ba86918d598a3.js +++ b/_next/static/chunks/pages/mintstation/cli-eca5d973bc213845.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4165],{1345:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/cli",function(){return e(7389)}])},7389:function(n,t,e){"use strict";e.r(t),e.d(t,{__toc:function(){return c}});var i=e(5893),o=e(2673),d=e(2643);let c=[{depth:2,value:"Introduction",id:"introduction"},{depth:3,value:'Working Directory ',id:"working-directory-a-hrefworking-directory-idworking-directorya"},{depth:3,value:"Connecting to a Full-Node",id:"connecting-to-a-full-node"}];function _createMdxContent(n){let t=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",a:"a",h3:"h3"},(0,d.a)(),n.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{children:"CLI Introduction"}),"\n",(0,i.jsx)(t.h2,{id:"introduction",children:"Introduction"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"mintstaiond"})," is a command line client for the Mintstation. Mintstation users can use ",(0,i.jsx)(t.code,{children:"mintstationd"})," to send transactions to the Mintstation network and query the blockchain data."]}),"\n",(0,i.jsxs)(t.p,{children:["See ",(0,i.jsx)(t.a,{href:"cli/setup",children:"here"})," for instructions on installing ",(0,i.jsx)(t.code,{children:"mintstationd"}),"."]}),"\n",(0,i.jsxs)(t.h3,{id:"working-directory-a-hrefworking-directory-idworking-directorya",children:["Working Directory ",(0,i.jsx)(t.a,{href:"#working-directory",id:"working-directory"})]}),"\n",(0,i.jsxs)(t.p,{children:["The default working directory for the ",(0,i.jsx)(t.code,{children:"mintstationd"})," is ",(0,i.jsx)(t.code,{children:"$HOME/.mintstationd"}),", which is mainly used to store configuration files and blockchain data. The Mintstation ",(0,i.jsx)(t.code,{children:"key"})," data is saved in the working directory of ",(0,i.jsx)(t.code,{children:"mintstationd"}),". You can also specify the ",(0,i.jsx)(t.code,{children:"mintstationd"})," working directory by using the ",(0,i.jsx)(t.code,{children:"--home"})," flag when executing ",(0,i.jsx)(t.code,{children:"mintstationd"}),"."]}),"\n",(0,i.jsx)(t.h3,{id:"connecting-to-a-full-node",children:"Connecting to a Full-Node"}),"\n",(0,i.jsxs)(t.p,{children:["By default, ",(0,i.jsx)(t.code,{children:"mintstationd"})," uses ",(0,i.jsx)(t.code,{children:"tcp://localhost:26657"})," as the RPC address to connect to the Mintstation network. This default configuration assumes that the machine executing ",(0,i.jsx)(t.code,{children:"mintstationd"})," is running as a full-node."]}),"\n",(0,i.jsxs)(t.p,{children:["The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the ",(0,i.jsx)(t.code,{children:"--node"})," flag when executing ",(0,i.jsx)(t.code,{children:"mintstationd"})]})]})}t.default=(0,o.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,d.a)(),n.components);return t?(0,i.jsx)(t,{...n,children:(0,i.jsx)(_createMdxContent,{...n})}):_createMdxContent(n)},pageOpts:{filePath:"pages/mintstation/cli/index.md",route:"/mintstation/cli",timestamp:1698720846e3,title:"CLI Introduction",headings:c},pageNextRoute:"/mintstation/cli"})}},function(n){n.O(0,[2673,9774,2888,179],function(){return n(n.s=1345)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4165],{1345:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/cli",function(){return e(7389)}])},7389:function(n,t,e){"use strict";e.r(t),e.d(t,{__toc:function(){return c}});var i=e(5893),o=e(2673),d=e(2643);let c=[{depth:2,value:"Introduction",id:"introduction"},{depth:3,value:'Working Directory ',id:"working-directory-a-hrefworking-directory-idworking-directorya"},{depth:3,value:"Connecting to a Full-Node",id:"connecting-to-a-full-node"}];function _createMdxContent(n){let t=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",a:"a",h3:"h3"},(0,d.a)(),n.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{children:"CLI Introduction"}),"\n",(0,i.jsx)(t.h2,{id:"introduction",children:"Introduction"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"mintstaiond"})," is a command line client for the Mintstation. Mintstation users can use ",(0,i.jsx)(t.code,{children:"mintstationd"})," to send transactions to the Mintstation network and query the blockchain data."]}),"\n",(0,i.jsxs)(t.p,{children:["See ",(0,i.jsx)(t.a,{href:"cli/setup",children:"here"})," for instructions on installing ",(0,i.jsx)(t.code,{children:"mintstationd"}),"."]}),"\n",(0,i.jsxs)(t.h3,{id:"working-directory-a-hrefworking-directory-idworking-directorya",children:["Working Directory ",(0,i.jsx)(t.a,{href:"#working-directory",id:"working-directory"})]}),"\n",(0,i.jsxs)(t.p,{children:["The default working directory for the ",(0,i.jsx)(t.code,{children:"mintstationd"})," is ",(0,i.jsx)(t.code,{children:"$HOME/.mintstation"}),", which is mainly used to store configuration files and blockchain data. The Mintstation ",(0,i.jsx)(t.code,{children:"key"})," data is saved in the working directory of ",(0,i.jsx)(t.code,{children:"mintstationd"}),". You can also specify the ",(0,i.jsx)(t.code,{children:"mintstationd"})," working directory by using the ",(0,i.jsx)(t.code,{children:"--home"})," flag when executing ",(0,i.jsx)(t.code,{children:"mintstationd"}),"."]}),"\n",(0,i.jsx)(t.h3,{id:"connecting-to-a-full-node",children:"Connecting to a Full-Node"}),"\n",(0,i.jsxs)(t.p,{children:["By default, ",(0,i.jsx)(t.code,{children:"mintstationd"})," uses ",(0,i.jsx)(t.code,{children:"tcp://localhost:26657"})," as the RPC address to connect to the Mintstation network. This default configuration assumes that the machine executing ",(0,i.jsx)(t.code,{children:"mintstationd"})," is running as a full-node."]}),"\n",(0,i.jsxs)(t.p,{children:["The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the ",(0,i.jsx)(t.code,{children:"--node"})," flag when executing ",(0,i.jsx)(t.code,{children:"mintstationd"})]})]})}t.default=(0,o.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,d.a)(),n.components);return t?(0,i.jsx)(t,{...n,children:(0,i.jsx)(_createMdxContent,{...n})}):_createMdxContent(n)},pageOpts:{filePath:"pages/mintstation/cli/index.md",route:"/mintstation/cli",timestamp:1700119354e3,title:"CLI Introduction",headings:c},pageNextRoute:"/mintstation/cli"})}},function(n){n.O(0,[2673,9774,2888,179],function(){return n(n.s=1345)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/cli/setup-6253e94d42d70b8e.js b/_next/static/chunks/pages/mintstation/cli/setup-6253e94d42d70b8e.js deleted file mode 100644 index 4d1dcd92..00000000 --- a/_next/static/chunks/pages/mintstation/cli/setup-6253e94d42d70b8e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6474],{5900:function(n,s,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/cli/setup",function(){return e(1776)}])},1776:function(n,s,e){"use strict";e.r(s),e.d(s,{__toc:function(){return a}});var t=e(5893),i=e(2673),l=e(2643);let a=[{depth:3,value:"Build",id:"build"},{depth:2,value:"Configure",id:"configure"}];function _createMdxContent(n){let s=Object.assign({h1:"h1",h3:"h3",p:"p",pre:"pre",code:"code",span:"span",h2:"h2"},(0,l.a)(),n.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"Setup Mintstation"}),"\n",(0,t.jsx)(s.h3,{id:"build",children:"Build"}),"\n",(0,t.jsx)(s.p,{children:"Clone source from repository:"}),"\n",(0,t.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"clone"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"https://github.com/cosmostation/mintstation"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"checkout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"v0.0.1"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"#SET_CURRENT_VERSION"})]})]})}),"\n",(0,t.jsx)(s.p,{children:"Once you're on the correct tag, you can build:"}),"\n",(0,t.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# from mint dir"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"make"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"install"})]})]})}),"\n",(0,t.jsx)(s.p,{children:"To confirm that the installation has succeeded, you can run:"}),"\n",(0,t.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"version"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:" "}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# v0.0.1"})})]})}),"\n",(0,t.jsx)(s.h2,{id:"configure",children:"Configure"}),"\n",(0,t.jsxs)(s.p,{children:["Set the ",(0,t.jsx)(s.code,{children:"chain-id"})," & ",(0,t.jsx)(s.code,{children:"node"})]}),"\n",(0,t.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"config"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"chain-id"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"config"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"node"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"{node_rpc_endpoint}"})]})]})})]})}s.default=(0,i.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,l.a)(),n.components);return s?(0,t.jsx)(s,{...n,children:(0,t.jsx)(_createMdxContent,{...n})}):_createMdxContent(n)},pageOpts:{filePath:"pages/mintstation/cli/setup.md",route:"/mintstation/cli/setup",timestamp:1698218973e3,title:"Setup Mintstation",headings:a},pageNextRoute:"/mintstation/cli/setup"})}},function(n){n.O(0,[2673,9774,2888,179],function(){return n(n.s=5900)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/cli/setup-cb6dc6c97dbd7d7b.js b/_next/static/chunks/pages/mintstation/cli/setup-cb6dc6c97dbd7d7b.js new file mode 100644 index 00000000..7cc3d0a1 --- /dev/null +++ b/_next/static/chunks/pages/mintstation/cli/setup-cb6dc6c97dbd7d7b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6474],{5900:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/cli/setup",function(){return s(1776)}])},1776:function(e,n,s){"use strict";s.r(n),s.d(n,{__toc:function(){return l}});var t=s(5893),i=s(2673),a=s(2643);let l=[{depth:3,value:"Build",id:"build"},{depth:2,value:"Configure",id:"configure"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h3:"h3",p:"p",pre:"pre",code:"code",span:"span",h2:"h2"},(0,a.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:"Setup CLI"}),"\n",(0,t.jsx)(n.h3,{id:"build",children:"Build"}),"\n",(0,t.jsx)(n.p,{children:"Build Requirements"}),"\n",(0,t.jsx)(n.pre,{"data-language":"text","data-theme":"default",children:(0,t.jsx)(n.code,{"data-language":"text","data-theme":"default",children:(0,t.jsx)(n.span,{className:"line",children:(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"Go 1.20.+"})})})}),"\n",(0,t.jsx)(n.p,{children:"Clone source from repository:"}),"\n",(0,t.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(n.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"clone"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"https://github.com/cosmostation/mintstation"})]}),"\n",(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation"})]}),"\n",(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"git"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"checkout"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"{SET_CURRENT_VERSION}"})]})]})}),"\n",(0,t.jsx)(n.p,{children:"Once you're on the correct tag, you can build:"}),"\n",(0,t.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(n.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsx)(n.span,{className:"line",children:(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"# from mintstation dir"})}),"\n",(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"make"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"install"})]})]})}),"\n",(0,t.jsx)(n.p,{children:"To confirm that the installation has succeeded, you can run:"}),"\n",(0,t.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(n.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"version"})]}),"\n",(0,t.jsx)(n.span,{className:"line",children:" "}),"\n",(0,t.jsx)(n.span,{className:"line",children:(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"#v0.0.1"})})]})}),"\n",(0,t.jsx)(n.h2,{id:"configure",children:"Configure"}),"\n",(0,t.jsxs)(n.p,{children:["Set the ",(0,t.jsx)(n.code,{children:"chain-id"})," & ",(0,t.jsx)(n.code,{children:"node"}),","]}),"\n",(0,t.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(n.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsx)(n.span,{className:"line",children:(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-comment)"},children:"#Update config.toml"})}),"\n",(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"config"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"chain-id"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"})]}),"\n",(0,t.jsxs)(n.span,{className:"line",children:[(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"config"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"node"}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"{NODE_RPC_ENDPOINT:PORT}"})]})]})})]})}n.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,a.a)(),e.components);return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/cli/setup.md",route:"/mintstation/cli/setup",timestamp:1700119354e3,title:"Setup CLI",headings:l},pageNextRoute:"/mintstation/cli/setup"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=5900)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/compile-8179bc7cb5d5c251.js b/_next/static/chunks/pages/mintstation/contracts/compile-8179bc7cb5d5c251.js deleted file mode 100644 index 6bcff8b6..00000000 --- a/_next/static/chunks/pages/mintstation/contracts/compile-8179bc7cb5d5c251.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8032],{9143:function(s,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/compile",function(){return r(4748)}])},4748:function(s,e,r){"use strict";r.r(e),r.d(e,{__toc:function(){return t}});var n=r(5893),o=r(2673),i=r(2643);let t=[{depth:2,value:"Single Contract Repository",id:"single-contract-repository"},{depth:2,value:"Multiple Contract Repository (Mono Repo)",id:"multiple-contract-repository-mono-repo"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2",code:"code",pre:"pre",span:"span",strong:"strong"},(0,i.a)(),s.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{children:"Compile a Contract"}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/rust-optimizer",children:"This guide is from the official CosmWasm/rust-optimizer repository"}),". This method of compiling the contract will optimize the final build so that it reduces gas consumption."]}),"\n",(0,n.jsxs)(e.p,{children:["Example contracts for this can be found at ",(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/cw-examples",children:"https://github.com/CosmWasm/cw-examples"}),". This repository ",(0,n.jsx)(e.a,{href:"compile-a-contract#multiple-contract-repository-mono-repo",children:"requires this section to compile"})," since multiple contracts are involved in a single repository."]}),"\n",(0,n.jsx)(e.h2,{id:"single-contract-repository",children:"Single Contract Repository"}),"\n",(0,n.jsxs)(e.p,{children:["The easiest way is to simply use the ",(0,n.jsx)(e.a,{href:"https://hub.docker.com/r/cosmwasm/rust-optimizer",children:"published docker image"}),". You must run this in the root of the smart contract repository you wish to compile. It will produce an ",(0,n.jsx)(e.code,{children:"artifacts"})," directory with ",(0,n.jsx)(e.code,{children:".wasm"})," and ",(0,n.jsx)(e.code,{children:"contracts.txt"})," containing the hashes. This is just one file."]}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/rust-optimizer:0.12.11"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# If you you use an ARM machine (Ex: Mac M1), you need to use the following"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# This is experimental and should not be used for production use"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/rust-optimizer-arm64:0.12.11"})]})]})}),"\n",(0,n.jsx)(e.p,{children:"By running this in the root of your project, it will compile your contract into an artifacts/ folder. From here you can upload it to chain, collect the store code, and interact with it as you design"}),"\n",(0,n.jsx)(e.h2,{id:"multiple-contract-repository-mono-repo",children:"Multiple Contract Repository (Mono Repo)"}),"\n",(0,n.jsxs)(e.p,{children:["Sometime you want many contracts to be related and import common functionality. This is exactly the case of ",(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/cosmwasm-plus",children:(0,n.jsx)(e.code,{children:"cosmwasm-plus"})}),". In such a case, we can often not just compile from root, as the compile order is not deterministic and there are feature flags shared among the repos. This has lead to ",(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/rust-optimizer/issues/21",children:"issues in the past"}),"."]}),"\n",(0,n.jsxs)(e.p,{children:["For this use-case there is second docker image, which will compile all the ",(0,n.jsx)(e.code,{children:"contracts/*"})," folders inside the workspace and do so one-by-one in alphabetical order. It will then add all the generated wasm files to an ",(0,n.jsx)(e.code,{children:"artifacts"})," directory with a checksum, just like the basic docker image (same output format)."]}),"\n",(0,n.jsx)(e.p,{children:"To compile all contracts in the workspace deterministically, you can run:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/workspace-optimizer:0.12.11"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# If you you use an ARM machine (Ex: Mac M1), you need to use the following"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# This is experimental and should not be used for production use"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/workspace-optimizer-arm64:0.12.11"})]})]})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"NOTE"}),": See the difference with ",(0,n.jsx)(e.strong,{children:"workspace-optimizer"})," vs ",(0,n.jsx)(e.strong,{children:"rust-optimizer"})," in the previous single contract example.\\"]})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.a)(),s.components);return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/compile.md",route:"/mintstation/contracts/compile",timestamp:1698218973e3,title:"Compile a Contract",headings:t},pageNextRoute:"/mintstation/contracts/compile"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=9143)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/compile-f669f7160d7bebd1.js b/_next/static/chunks/pages/mintstation/contracts/compile-f669f7160d7bebd1.js new file mode 100644 index 00000000..9b887980 --- /dev/null +++ b/_next/static/chunks/pages/mintstation/contracts/compile-f669f7160d7bebd1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8032],{9143:function(s,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/compile",function(){return r(4748)}])},4748:function(s,e,r){"use strict";r.r(e),r.d(e,{__toc:function(){return t}});var n=r(5893),o=r(2673),i=r(2643);let t=[{depth:2,value:"Single Contract Repository",id:"single-contract-repository"},{depth:2,value:"Multiple Contract Repository (Mono Repo)",id:"multiple-contract-repository-mono-repo"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2",code:"code",pre:"pre",span:"span",strong:"strong"},(0,i.a)(),s.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{children:"Compile Contracts"}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/rust-optimizer",children:"This guide is from the official CosmWasm/rust-optimizer repository"}),". This method of compiling the contract will optimize the final build so that it reduces gas consumption."]}),"\n",(0,n.jsxs)(e.p,{children:["Example contracts for this can be found at ",(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/cw-examples",children:"https://github.com/CosmWasm/cw-examples"}),". This repository ",(0,n.jsx)(e.a,{href:"compile-a-contract#multiple-contract-repository-mono-repo",children:"requires this section to compile"})," since multiple contracts are involved in a single repository."]}),"\n",(0,n.jsx)(e.h2,{id:"single-contract-repository",children:"Single Contract Repository"}),"\n",(0,n.jsxs)(e.p,{children:["The easiest way is to simply use the ",(0,n.jsx)(e.a,{href:"https://hub.docker.com/r/cosmwasm/rust-optimizer",children:"published docker image"}),". You must run this in the root of the smart contract repository you wish to compile. It will produce an ",(0,n.jsx)(e.code,{children:"artifacts"})," directory with ",(0,n.jsx)(e.code,{children:".wasm"})," and ",(0,n.jsx)(e.code,{children:"contracts.txt"})," containing the hashes. This is just one file."]}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/rust-optimizer:0.12.11"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# If you you use an ARM machine (Ex: Mac M1), you need to use the following"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# This is experimental and should not be used for production use"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/rust-optimizer-arm64:0.12.11"})]})]})}),"\n",(0,n.jsx)(e.p,{children:"By running this in the root of your project, it will compile your contract into an artifacts/ folder. From here you can upload it to chain, collect the store code, and interact with it as you design"}),"\n",(0,n.jsx)(e.h2,{id:"multiple-contract-repository-mono-repo",children:"Multiple Contract Repository (Mono Repo)"}),"\n",(0,n.jsxs)(e.p,{children:["Sometime you want many contracts to be related and import common functionality. This is exactly the case of ",(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/cosmwasm-plus",children:(0,n.jsx)(e.code,{children:"cosmwasm-plus"})}),". In such a case, we can often not just compile from root, as the compile order is not deterministic and there are feature flags shared among the repos. This has lead to ",(0,n.jsx)(e.a,{href:"https://github.com/CosmWasm/rust-optimizer/issues/21",children:"issues in the past"}),"."]}),"\n",(0,n.jsxs)(e.p,{children:["For this use-case there is second docker image, which will compile all the ",(0,n.jsx)(e.code,{children:"contracts/*"})," folders inside the workspace and do so one-by-one in alphabetical order. It will then add all the generated wasm files to an ",(0,n.jsx)(e.code,{children:"artifacts"})," directory with a checksum, just like the basic docker image (same output format)."]}),"\n",(0,n.jsx)(e.p,{children:"To compile all contracts in the workspace deterministically, you can run:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/workspace-optimizer:0.12.11"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# If you you use an ARM machine (Ex: Mac M1), you need to use the following"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# This is experimental and should not be used for production use"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"docker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"run"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--rm"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-v"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:":/code"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"basename"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$('}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pwd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:')")_cache"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:",target=/code/target"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--mount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"type=volume,source=registry_cache,target=/usr/local/cargo/registry"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"cosmwasm/workspace-optimizer-arm64:0.12.11"})]})]})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"NOTE"}),": See the difference with ",(0,n.jsx)(e.strong,{children:"workspace-optimizer"})," vs ",(0,n.jsx)(e.strong,{children:"rust-optimizer"})," in the previous single contract example.\\"]})]})}e.default=(0,o.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.a)(),s.components);return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/compile.md",route:"/mintstation/contracts/compile",timestamp:1700119354e3,title:"Compile Contracts",headings:t},pageNextRoute:"/mintstation/contracts/compile"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=9143)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/create-db64846f1dbf5803.js b/_next/static/chunks/pages/mintstation/contracts/create-db64846f1dbf5803.js deleted file mode 100644 index 763ea498..00000000 --- a/_next/static/chunks/pages/mintstation/contracts/create-db64846f1dbf5803.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8758],{7749:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/create",function(){return n(5581)}])},5581:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return r}});var o=n(5893),s=n(2673),a=n(2643);let r=[];function _createMdxContent(e){let t=Object.assign({h1:"h1",p:"p",a:"a"},(0,a.a)(),e.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{children:"Code a Contract"}),"\n",(0,o.jsx)(t.p,{children:"To implement a wasm smart contract, it is highly recommended to learn Rust first. Rust is the language commonly used for wasm development and is well-regarded for its stability and performance. You can begin your Rust learning journey by referring to the following link:"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"https://doc.rust-lang.org/beta/book/index.html",children:"Rust Language Learning Guide"})}),"\n",(0,o.jsx)(t.p,{children:"For smart contract development, you can follow the structure provided by CosmWasm's template. This template will help you understand the project's architecture and enable you to develop your contract more systematically. You can find the template at the following link:"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/cw-template",children:"CosmWasm Template"}),", ",(0,o.jsx)(t.a,{href:"https://book.cosmwasm.com",children:"book.cosmwasm.com"})]}),"\n",(0,o.jsx)(t.p,{children:"Among the popular smart contract samples, there are cw20 and cw721 implementations. cw20 represents a widely-used token contract, while cw721 implements a Non-Fungible Token (NFT) contract. These samples can be valuable references during your development process. You can explore the code for each sample through the links below:"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/cw-plus",children:"cw20"}),", ",(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/cw-nfts",children:"cw721"})]}),"\n",(0,o.jsxs)(t.p,{children:["For all great CosmWasm tools, ",(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/awesome-cosmwasm",children:"https://github.com/CosmWasm/awesome-cosmwasm"})]}),"\n",(0,o.jsx)(t.p,{children:"Although smart contract development can be complex, leveraging the provided resources will increase your chances of successfully completing your project. Additionally, make sure to actively engage with the community and online resources to continue your learning journey and receive ongoing support. Best of luck!"})]})}t.default=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,a.a)(),e.components);return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/contracts/create.md",route:"/mintstation/contracts/create",timestamp:1698218973e3,title:"Code a Contract",headings:r},pageNextRoute:"/mintstation/contracts/create"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=7749)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/create-ed4552aab8355038.js b/_next/static/chunks/pages/mintstation/contracts/create-ed4552aab8355038.js new file mode 100644 index 00000000..9ba29b9f --- /dev/null +++ b/_next/static/chunks/pages/mintstation/contracts/create-ed4552aab8355038.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8758],{7749:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/create",function(){return n(5581)}])},5581:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return r}});var o=n(5893),s=n(2673),a=n(2643);let r=[];function _createMdxContent(e){let t=Object.assign({h1:"h1",p:"p",a:"a"},(0,a.a)(),e.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{children:"Create Contracts"}),"\n",(0,o.jsx)(t.p,{children:"To implement a wasm smart contract, it is highly recommended to learn Rust first. Rust is the language commonly used for wasm development and is well-regarded for its stability and performance. You can begin your Rust learning journey by referring to the following link:"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"https://doc.rust-lang.org/beta/book/index.html",children:"Rust Language Learning Guide"})}),"\n",(0,o.jsx)(t.p,{children:"For smart contract development, you can follow the structure provided by CosmWasm's template. This template will help you understand the project's architecture and enable you to develop your contract more systematically. You can find the template at the following link:"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/cw-template",children:"CosmWasm Template"}),", ",(0,o.jsx)(t.a,{href:"https://book.cosmwasm.com",children:"book.cosmwasm.com"})]}),"\n",(0,o.jsx)(t.p,{children:"Among the popular smart contract samples, there are cw20 and cw721 implementations. cw20 represents a widely-used token contract, while cw721 implements a Non-Fungible Token (NFT) contract. These samples can be valuable references during your development process. You can explore the code for each sample through the links below:"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/cw-plus",children:"cw20"}),", ",(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/cw-nfts",children:"cw721"})]}),"\n",(0,o.jsxs)(t.p,{children:["For all great CosmWasm tools, ",(0,o.jsx)(t.a,{href:"https://github.com/CosmWasm/awesome-cosmwasm",children:"https://github.com/CosmWasm/awesome-cosmwasm"})]}),"\n",(0,o.jsx)(t.p,{children:"Although smart contract development can be complex, leveraging the provided resources will increase your chances of successfully completing your project. Additionally, make sure to actively engage with the community and online resources to continue your learning journey and receive ongoing support. Best of luck!"})]})}t.default=(0,s.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,a.a)(),e.components);return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/contracts/create.md",route:"/mintstation/contracts/create",timestamp:1700119354e3,title:"Create Contracts",headings:r},pageNextRoute:"/mintstation/contracts/create"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=7749)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/deploy-a1601c9a15a4ecf3.js b/_next/static/chunks/pages/mintstation/contracts/deploy-a1601c9a15a4ecf3.js new file mode 100644 index 00000000..9049bb11 --- /dev/null +++ b/_next/static/chunks/pages/mintstation/contracts/deploy-a1601c9a15a4ecf3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6699],{2090:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/deploy",function(){return n(2752)}])},2752:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return l}});var r=n(5893),i=n(2673),o=n(2643);let l=[{depth:2,value:"PreRequisite",id:"prerequisite"},{depth:2,value:"Upload",id:"upload"},{depth:2,value:"Instantiate",id:"instantiate"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",a:"a",pre:"pre",code:"code",span:"span"},(0,o.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Deploy Contracts"}),"\n",(0,r.jsx)(e.h2,{id:"prerequisite",children:"PreRequisite"}),"\n",(0,r.jsxs)(e.p,{children:["Make sure you follow the ",(0,r.jsx)(e.a,{href:"create",children:"create a contract"})," guide first for your project. Once you have a contract compiled in the artifacts/*.wasm directory, you are ready for this guide."]}),"\n",(0,r.jsx)(e.h2,{id:"upload",children:"Upload"}),"\n",(0,r.jsx)(e.p,{children:"You need to upload the contract via the CLI to chain. To do this, perform the following"}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"TXFLAGS"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"store"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"artifacts/CONRTACT_NAME.wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"KE"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $TXFLAGS "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--broadcast-mode=block"})]})]})}),"\n",(0,r.jsx)(e.p,{children:"This will then return a transaction hash. With this data, you need to query it to get the code id of the contract on chain"}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"38330"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"E909CD219B80927009DA37FD69D334D19B2AD4EC47456A24E85034F0085"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--output=json"})]})})}),"\n",(0,r.jsx)(e.p,{children:"This will return the data about the transaction, and give us the code id of our contract"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"294601"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"txhash"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"38330E909CD219B80927009DA37FD69D334D19B2AD4EC47456A24E85034F0085"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"codespace"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"code"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"data"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0A460A1E2F636F736D7761736D2E7761736D2E76312E4D736753746F7265436F64651224080D12203318E74E8C68DBCC6E0317C42B8DB0AB642B61AEFAD487DEDB6ECB54FFED4D72"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"raw_log"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"[{\\"events\\":[{\\"type\\":\\"message\\",\\"attributes\\":[{\\"key\\":\\"action\\",\\"value\\":\\"/cosmwasm.wasm.v1.MsgStoreCode\\"},{\\"key\\":\\"module\\",\\"value\\":\\"wasm\\"},{\\"key\\":\\"sender\\",\\"value\\":\\"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl\\"}]},{\\"type\\":\\"store_code\\",\\"attributes\\":[{\\"key\\":\\"code_checksum\\",\\"value\\":\\"3318e74e8c68dbcc6e0317c42b8db0ab642b61aefad487dedb6ecb54ffed4d72\\"},{\\"key\\":\\"code_id\\",\\"value\\":\\"13\\"}]}]}]"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"logs"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msg_index"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"log"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"events"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"message"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"attributes"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"action"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"/cosmwasm.wasm.v1.MsgStoreCode"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"module"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"wasm"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"sender"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"store_code"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"attributes"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"code_checksum"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"3318e74e8c68dbcc6e0317c42b8db0ab642b61aefad487dedb6ecb54ffed4d72"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"code_id"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"13"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(e.p,{children:"We can see both raw_log and also logs[0].events[1].store_code shows the code_id being 13. If you wish the automate this return code in bash to a variable, you can "}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# ensure jq is installed"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"UPLOAD_TX_HASH"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"38330"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"E909CD219B80927009DA37FD69D334D19B2AD4EC47456A24E85034F0085"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CODE_ID"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"$("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" $UPLOAD_TX_HASH "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--output"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"json"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"jq"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-r"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' \'.logs[0].events[] | select(.type == "store_code").attributes[] | select(.key == "code_id").value\')'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"&&"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"echo"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Code Id: $CODE_ID"'})]})]})}),"\n",(0,r.jsx)(e.h2,{id:"instantiate",children:"Instantiate"}),"\n",(0,r.jsxs)(e.p,{children:["With the code now being up on chain, we can now run logic to setup our own copy of the contract which we control. This will then give us a unique contract address for others to interact with in accordance with the contract logic. This example is from the ",(0,r.jsx)(e.a,{href:"https://github.com/CosmWasm/cw-template",children:"cosmwasm/cw-template"}),"."]}),"\n",(0,r.jsx)(e.p,{children:"Ensure you change CODE_ID to match your code id from the store code"}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"FLAGS"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"#Example1"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CODE_ID"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"instantiate"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$CODE_ID"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"count\":0}'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--label"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"contract"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $FLAGS "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--admin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"your-address-her"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"#cw20"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CODE_ID"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"INIT"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'{"name":"CW20","symbol":"TOKEN","decimals":2,"initial_balances":[{"amount":"1000000","address":
}]}\''})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"instantiate"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$CODE_ID"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$INIT"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"accoun"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"t"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--label"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cw-token"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $FLAGS "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--admin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"your-address-her"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})})]})}e.default=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/deploy.md",route:"/mintstation/contracts/deploy",timestamp:1700119354e3,title:"Deploy Contracts",headings:l},pageNextRoute:"/mintstation/contracts/deploy"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=2090)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/deploy-db968579f6b0dd31.js b/_next/static/chunks/pages/mintstation/contracts/deploy-db968579f6b0dd31.js deleted file mode 100644 index 9bab2109..00000000 --- a/_next/static/chunks/pages/mintstation/contracts/deploy-db968579f6b0dd31.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6699],{2090:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/deploy",function(){return n(2752)}])},2752:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return l}});var r=n(5893),i=n(2673),o=n(2643);let l=[{depth:2,value:"PreRequisite",id:"prerequisite"},{depth:2,value:"Upload",id:"upload"},{depth:2,value:"Instantiate",id:"instantiate"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",a:"a",pre:"pre",code:"code",span:"span"},(0,o.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Deploy a Contract"}),"\n",(0,r.jsx)(e.h2,{id:"prerequisite",children:"PreRequisite"}),"\n",(0,r.jsxs)(e.p,{children:["Make sure you follow the ",(0,r.jsx)(e.a,{href:"create",children:"create a contract"})," guide first for your project. Once you have a contract compiled in the artifacts/*.wasm directory, you are ready for this guide."]}),"\n",(0,r.jsx)(e.h2,{id:"upload",children:"Upload"}),"\n",(0,r.jsx)(e.p,{children:"You need to upload the contract via the CLI to chain. To do this, perform the following"}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"TXFLAGS"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"store"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"artifacts/CONRTACT_NAME.wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"KE"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $TXFLAGS "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--broadcast-mode=block"})]})]})}),"\n",(0,r.jsx)(e.p,{children:"This will then return a transaction hash. With this data, you need to query it to get the code id of the contract on chain"}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"38330"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"E909CD219B80927009DA37FD69D334D19B2AD4EC47456A24E85034F0085"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--output=json"})]})})}),"\n",(0,r.jsx)(e.p,{children:"This will return the data about the transaction, and give us the code id of our contract"}),"\n",(0,r.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"294601"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"txhash"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"38330E909CD219B80927009DA37FD69D334D19B2AD4EC47456A24E85034F0085"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"codespace"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"code"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"data"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0A460A1E2F636F736D7761736D2E7761736D2E76312E4D736753746F7265436F64651224080D12203318E74E8C68DBCC6E0317C42B8DB0AB642B61AEFAD487DEDB6ECB54FFED4D72"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"raw_log"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"[{\\"events\\":[{\\"type\\":\\"message\\",\\"attributes\\":[{\\"key\\":\\"action\\",\\"value\\":\\"/cosmwasm.wasm.v1.MsgStoreCode\\"},{\\"key\\":\\"module\\",\\"value\\":\\"wasm\\"},{\\"key\\":\\"sender\\",\\"value\\":\\"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl\\"}]},{\\"type\\":\\"store_code\\",\\"attributes\\":[{\\"key\\":\\"code_checksum\\",\\"value\\":\\"3318e74e8c68dbcc6e0317c42b8db0ab642b61aefad487dedb6ecb54ffed4d72\\"},{\\"key\\":\\"code_id\\",\\"value\\":\\"13\\"}]}]}]"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"logs"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"msg_index"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"log"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"events"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"message"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"attributes"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"action"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"/cosmwasm.wasm.v1.MsgStoreCode"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"module"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"wasm"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"sender"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"mint1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"store_code"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"attributes"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"code_checksum"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"3318e74e8c68dbcc6e0317c42b8db0ab642b61aefad487dedb6ecb54ffed4d72"'})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"key"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"code_id"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"value"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"13"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,r.jsx)(e.p,{children:"We can see both raw_log and also logs[0].events[1].store_code shows the code_id being 13. If you wish the automate this return code in bash to a variable, you can "}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# ensure jq is installed"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"UPLOAD_TX_HASH"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"38330"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"E909CD219B80927009DA37FD69D334D19B2AD4EC47456A24E85034F0085"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CODE_ID"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"$("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" $UPLOAD_TX_HASH "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--output"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"json"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"jq"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-r"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:' \'.logs[0].events[] | select(.type == "store_code").attributes[] | select(.key == "code_id").value\')'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"&&"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"echo"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Code Id: $CODE_ID"'})]})]})}),"\n",(0,r.jsx)(e.h2,{id:"instantiate",children:"Instantiate"}),"\n",(0,r.jsxs)(e.p,{children:["With the code now being up on chain, we can now run logic to setup our own copy of the contract which we control. This will then give us a unique contract address for others to interact with in accordance with the contract logic. This example is from the ",(0,r.jsx)(e.a,{href:"https://github.com/CosmWasm/cw-template",children:"cosmwasm/cw-template"}),"."]}),"\n",(0,r.jsx)(e.p,{children:"Ensure you change CODE_ID to match your code id from the store code"}),"\n",(0,r.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"FLAGS"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"--chain-id=mintstation-1 --gas-prices=0.025umint --gas=auto --gas-adjustment 1.3"'})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"#Example1"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CODE_ID"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"instantiate"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$CODE_ID"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"count\":0}'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--label"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"contract"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $FLAGS "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--admin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"your-address-her"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"#cw20"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CODE_ID"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"INIT"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'{"name":"CW20","symbol":"TOKEN","decimals":2,"initial_balances":[{"amount":"1000000","address":
}]}\''})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"instantiate"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$CODE_ID"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$INIT"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"accoun"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"t"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--label"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"cw-token"'}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $FLAGS "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-y"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--admin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"your-address-her"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})})]})}e.default=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/deploy.md",route:"/mintstation/contracts/deploy",timestamp:1698218973e3,title:"Deploy a Contract",headings:l},pageNextRoute:"/mintstation/contracts/deploy"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=2090)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/execute-94979a1420c0d6e1.js b/_next/static/chunks/pages/mintstation/contracts/execute-94979a1420c0d6e1.js new file mode 100644 index 00000000..d91feff3 --- /dev/null +++ b/_next/static/chunks/pages/mintstation/contracts/execute-94979a1420c0d6e1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6404],{938:function(s,e,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/execute",function(){return o(2043)}])},2043:function(s,e,o){"use strict";o.r(e),o.d(e,{__toc:function(){return i}});var r=o(5893),n=o(2673),l=o(2643);let i=[{depth:2,value:"Command Line Interface",id:"command-line-interface"},{depth:2,value:"Typescript",id:"typescript"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre",span:"span"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Execute Contracts"}),"\n",(0,r.jsx)(e.h2,{id:"command-line-interface",children:"Command Line Interface"}),"\n",(0,r.jsxs)(e.p,{children:["When you execute a message, a user can also pass through a flag which sends funds from their account to the contract to do logic. You can check if a user sends any funds in your contract's execute endpoint with the ",(0,r.jsx)(e.code,{children:"info.funds"})," array of Coins sent by the user. These funds then get added to the contracts balance just like any other account. So it is up to you as the developer to ensure to save how many funds each user has sent via a BTreeMap or other object storage in state (if they can redeem funds back at a later time)."]}),"\n",(0,r.jsxs)(e.p,{children:["To send funds to a contract with some arbitrary endpoint, you use the ",(0,r.jsx)(e.code,{children:"--amount"})," flag."]}),"\n",(0,r.jsx)(e.pre,{"data-language":"sh","data-theme":"default",children:(0,r.jsx)(e.code,{"data-language":"sh","data-theme":"default",children:(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"execute"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"CONTRACT"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"some_endpoint\":{}}'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1000000"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"})]})})}),"\n",(0,r.jsx)(e.p,{children:'If the "some_endpoint" execute errors on the contract, the funds will remain in the users account.'}),"\n",(0,r.jsx)(e.h2,{id:"typescript",children:"Typescript"}),"\n",(0,r.jsx)(e.pre,{"data-language":"typescript","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"typescript","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { Coin } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/stargate'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { SigningStargateClient"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" StargateClient"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" StdFee } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/stargate'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { OfflineAminoSigner } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/amino'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { OfflineDirectSigner } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/proto-signing'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { SigningCosmWasmClient } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/cosmwasm-stargate'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"RPC"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"''"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get_wallet_for_chain"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"async"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" chain_id"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"OfflineAminoSigner"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"OfflineDirectSigner"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"> "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// open keplr"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" window "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"CosmostationWindow"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (keplr "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"==="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"undefined"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"throw"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Cosmostation not found'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" signer "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".getOfflineSignerAuto;"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (signer "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"==="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"undefined"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"throw"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Cosmostation not found'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"signer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(chain_id);"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" wallet "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get_wallet_for_chain"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'mintstation-1'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" address "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"wallet"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".getAccounts"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"())["}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"].address;"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" from_client "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"SigningCosmWasmClient"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".connectWithSigner"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"RPC"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" wallet"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" prefix"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'mint'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"msg"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { some_endpoint"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {} };"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" fee"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"StdFee"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'5000'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" denom"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'umint'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" gas"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'500000'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" send_amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Coin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'100000'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" denom"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'umint'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" from_client"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".execute"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(address"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"REVIEWS_CONTRACT_ADDRESS"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" msg"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" fee"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'memo'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" send_amount)"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".then"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"((res) "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`Success @ height "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"res"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".height"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"\\n\\nTxHash: "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"res"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".transactionHash"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" });"})})]})})]})}e.default=(0,n.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/execute.md",route:"/mintstation/contracts/execute",timestamp:1700119354e3,title:"Execute Contracts",headings:i},pageNextRoute:"/mintstation/contracts/execute"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=938)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/execute-c6a17f12cac295a4.js b/_next/static/chunks/pages/mintstation/contracts/execute-c6a17f12cac295a4.js deleted file mode 100644 index c8821ef4..00000000 --- a/_next/static/chunks/pages/mintstation/contracts/execute-c6a17f12cac295a4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6404],{938:function(s,e,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/execute",function(){return o(2043)}])},2043:function(s,e,o){"use strict";o.r(e),o.d(e,{__toc:function(){return i}});var r=o(5893),n=o(2673),l=o(2643);let i=[{depth:2,value:"Command Line Interface",id:"command-line-interface"},{depth:2,value:"Typescript",id:"typescript"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre",span:"span"},(0,l.a)(),s.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{children:"Send Tokens to a Contract"}),"\n",(0,r.jsx)(e.h2,{id:"command-line-interface",children:"Command Line Interface"}),"\n",(0,r.jsxs)(e.p,{children:["When you execute a message, a user can also pass through a flag which sends funds from their account to the contract to do logic. You can check if a user sends any funds in your contract's execute endpoint with the ",(0,r.jsx)(e.code,{children:"info.funds"})," array of Coins sent by the user. These funds then get added to the contracts balance just like any other account. So it is up to you as the developer to ensure to save how many funds each user has sent via a BTreeMap or other object storage in state (if they can redeem funds back at a later time)."]}),"\n",(0,r.jsxs)(e.p,{children:["To send funds to a contract with some arbitrary endpoint, you use the ",(0,r.jsx)(e.code,{children:"--amount"})," flag."]}),"\n",(0,r.jsx)(e.pre,{"data-language":"sh","data-theme":"default",children:(0,r.jsx)(e.code,{"data-language":"sh","data-theme":"default",children:(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"execute"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"CONTRACT"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"some_endpoint\":{}}'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1000000"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"})]})})}),"\n",(0,r.jsx)(e.p,{children:'If the "some_endpoint" execute errors on the contract, the funds will remain in the users account.'}),"\n",(0,r.jsx)(e.h2,{id:"typescript",children:"Typescript"}),"\n",(0,r.jsx)(e.pre,{"data-language":"typescript","data-theme":"default",children:(0,r.jsxs)(e.code,{"data-language":"typescript","data-theme":"default",children:[(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { Coin } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/stargate'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { SigningStargateClient"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" StargateClient"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" StdFee } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/stargate'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { OfflineAminoSigner } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/amino'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { OfflineDirectSigner } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/proto-signing'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { SigningCosmWasmClient } "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@cosmjs/cosmwasm-stargate'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"RPC"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"''"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get_wallet_for_chain"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"async"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" chain_id"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"OfflineAminoSigner"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"OfflineDirectSigner"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"> "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// open keplr"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" window "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"CosmostationWindow"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (keplr "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"==="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"undefined"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"throw"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Cosmostation not found'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" signer "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"cosmostation"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".getOfflineSignerAuto;"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (signer "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"==="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"undefined"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"throw"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Cosmostation not found'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"signer"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(chain_id);"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" wallet "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get_wallet_for_chain"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'mintstation-1'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" address "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"wallet"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".getAccounts"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"())["}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"].address;"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" from_client "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"SigningCosmWasmClient"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".connectWithSigner"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"RPC"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" wallet"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" prefix"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'mint'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"msg"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { some_endpoint"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {} };"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" fee"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"StdFee"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [{ amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'5000'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" denom"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'umint'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }]"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" gas"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'500000'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" send_amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Coin"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" amount"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'100000'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" denom"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'umint'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,r.jsx)(e.span,{className:"line",children:" "}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" from_client"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".execute"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(address"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"REVIEWS_CONTRACT_ADDRESS"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" msg"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" fee"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'memo'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" send_amount)"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".then"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"((res) "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(e.span,{className:"line",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`Success @ height "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"res"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".height"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"\\n\\nTxHash: "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"res"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".transactionHash"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,r.jsx)(e.span,{className:"line",children:(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" });"})})]})})]})}e.default=(0,n.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,r.jsx)(e,{...s,children:(0,r.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/execute.md",route:"/mintstation/contracts/execute",timestamp:1698218973e3,title:"Send Tokens to a Contract",headings:i},pageNextRoute:"/mintstation/contracts/execute"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=938)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/query-c5a9ae0704eff889.js b/_next/static/chunks/pages/mintstation/contracts/query-c5a9ae0704eff889.js new file mode 100644 index 00000000..afb6cb52 --- /dev/null +++ b/_next/static/chunks/pages/mintstation/contracts/query-c5a9ae0704eff889.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7655],{9526:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/query",function(){return n(3388)}])},3388:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var t=n(5893),r=n(2673),o=n(2643);let a=[{depth:2,value:"Command Line Interface",id:"command-line-interface"},{depth:2,value:"Rest API Query",id:"rest-api-query"},{depth:2,value:"Cosmology Smart Contract Query",id:"cosmology-smart-contract-query"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre",span:"span",strong:"strong",br:"br",a:"a",ul:"ul",li:"li"},(0,o.a)(),s.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e.h1,{children:"Query Contracts"}),"\n",(0,t.jsx)(e.h2,{id:"command-line-interface",children:"Command Line Interface"}),"\n",(0,t.jsxs)(e.p,{children:["The most common way to query a cosmwasm smart contract is within the mintstationd wasm smart query command. This follows the following format where query is a JSON string with no spaces. By default, the least amount of data this can be is an empty JSON payload ",(0,t.jsx)(e.code,{children:"'{}'."})]}),"\n",(0,t.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,t.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"mintstationd query wasm contract-state smart [contract_bech32] [query] [flags]"})})})}),"\n",(0,t.jsx)(e.p,{children:"For this example, we are going to use a random NFT contract on the mint chain. This will show you how to brute force query a contract if you have no idea what the query schema of the contract is. At this time, there is no way to query the format of a contract's requests, but this is something many are actively working on."}),"\n",(0,t.jsx)(e.p,{children:"Now we attempt to query this contract address and extract some data from it and get which queries are allowed. As you can see, we pass through a random payload for abcde so that the contract will return actual valid query requests"}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.strong,{children:"NOTE"}),": A Query can never be empty such as ",(0,t.jsx)(e.code,{children:"'{}'"})," given you need to specify the path of data you want to reach."]}),"\n",(0,t.jsx)(e.pre,{className:"language-sh",children:(0,t.jsxs)(e.code,{className:"lang-sh",children:["CONTRACT=mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj\nmintstationd q wasm contract-state smart $CONTRACT '{\"abcde\":{}}'\n\n",(0,t.jsx)(e.strong,{children:"# Error parsing into type \n"}),(0,t.jsx)(e.strong,{children:"# cw721_base::msg::QueryMsg\n"}),"# unknown variant `abcde`, \n# expected one of `owner_of`, `approval`, `approvals`, `all_operators`, \n# `num_tokens`, `contract_info`, `nft_info`, `all_nft_info`, `tokens`, \n# `all_tokens`, `minter`, `extension`\n"]})}),"\n",(0,t.jsxs)(e.p,{children:['{% hint style="info" %}\nThe query shows CW721 Base is this contracts name. As this is a standard contract, all messages can be found in the CosmWasm/cw-nfts repository on github',(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/CosmWasm/cw-nfts/blob/main/contracts/cw721-base/src/msg.rs",children:"https://github.com/CosmWasm/cw-nfts/blob/main/contracts/cw721-base/src/msg.rs"}),"\n{% endhint %}"]}),"\n",(0,t.jsx)(e.p,{children:"From this, we now know all of the query endpoints and can requests something more specific from the contract for our usage. Let's get"}),"\n",(0,t.jsx)(e.pre,{"data-language":"sh","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"sh","data-theme":"default",children:[(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CONTRACT"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"contract-state"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"smart"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CONTRACT "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"all_tokens\":{}}'"})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"data:"})}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"tokens:"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"2"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"3"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"4"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"5"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"6"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"7"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"8"'})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# You can use --output=json to read it via JSON form"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# mintstationd q wasm contract-state smart $CONTRACT '{\"all_tokens\":{}}' --output=json | jq .data"})})]})}),"\n",(0,t.jsx)(e.p,{children:"Here we can see there are 8 tokens in this set. Lets query one of the NFTs information"}),"\n",(0,t.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CONTRACT"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"contract-state"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"smart"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CONTRACT "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"nft_info\":{}}'"})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# missing field `token_id`: query wasm contract failed"})})]})}),"\n",(0,t.jsx)(e.p,{children:"Just like the first query, we can see that the payload needs more information. It returned an error that we need to specify the token_id we want the nft_info for. Note, Uint128 sized numbers are read as a string"}),"\n",(0,t.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CONTRACT"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"contract-state"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"smart"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CONTRACT "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'{"nft_info":{"token_id":"8"}}\''})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# data:"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# extension: null"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# token_uri: ipfs://bafyreib42csdu7426ki7mxk6firvbz4uk3fo4dxpjy2kkskzdhtgj3rriq/metadata.json"})})]})}),"\n",(0,t.jsx)(e.h2,{id:"rest-api-query",children:"Rest API Query"}),"\n",(0,t.jsxs)(e.p,{children:["If you wish to query the data more programmatically with an application such as Python, you may be better suited to use the rest API. You can find these endpoints on ",(0,t.jsx)(e.a,{href:"https://cosmos.directory/mint/nodes",children:"https://cosmos.directory/mint/nodes"})," in the REST section."]}),"\n",(0,t.jsxs)(e.p,{children:["This query endpoint can be found via Mintstation's SwaggerUI. However, some modules you will not be able to easily find the endpoint. To do this, you will need to search through the proto files. Here we know we want to query the cosmwasm module, which is called wasmd on chain. This repo is found at ",(0,t.jsx)(e.a,{href:"https://github.com/cosmwasm/wasmd",children:"https://github.com/cosmwasm/wasmd"}),".",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\nIn this module, you can see the proto folder in the root of the repo. This will house the endpoints the module exposes so we can find the above path which. This is a query so we find the query proto file",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/CosmWasm/wasmd/blob/main/proto/cosmwasm/wasm/v1/query.proto",children:"https://github.com/CosmWasm/wasmd/blob/main/proto/cosmwasm/wasm/v1/query.proto"}),"\\"]}),"\n",(0,t.jsx)(e.pre,{"data-language":"protobuf","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"protobuf","data-theme":"default",children:[(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'option go_package = "github.com/CosmWasm/wasmd/x/wasm/types";'})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"option (gogoproto.goproto_getters_all) = false;"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"option (gogoproto.equal_all) = false;"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"// Query provides defines the gRPC querier service"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"service Query {"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" // SmartContractState get smart query result from the contract"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" rpc SmartContractState(QuerySmartContractStateRequest)"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" returns (QuerySmartContractStateResponse) {"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" option (google.api.http).get ="})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:' "/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}";'})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})})]})}),"\n",(0,t.jsxs)(e.p,{children:['{% hint style="info" %}\nYou must base64 encode the JSON payload for REST API Request. Just take your JSON payload and',(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\n- put it into ",(0,t.jsx)(e.a,{href:"https://www.base64encode.org/",children:"https://www.base64encode.org/"}),(0,t.jsx)(e.br,{}),"\n- or use Mac / Linux built in command",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\necho '{\"all_tokens\":{}}' | base64",(0,t.jsx)(e.br,{}),"\n# eyJhbGxfdG9rZW5zIjp7fX0K\n{% endhint %}"]}),"\n",(0,t.jsxs)(e.p,{children:["With this, we can now query the contract and gather the data. You can use your web browser, or a library like httpx / requests in Python for automated bots. Be aware that many API providers will late limit the number of requests you can make.",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.a,{href:"https://api.mint.strange.love/cosmwasm/wasm/v1/contract/mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj/smart/eyJhbGxfdG9rZW5zIjp7fX0K",children:"https://api.mint.strange.love/cosmwasm/wasm/v1/contract/mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj/smart/eyJhbGxfdG9rZW5zIjp7fX0K"})]}),"\n",(0,t.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"data"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tokens"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"2"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"3"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"4"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"5"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"6"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"7"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"8"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,t.jsx)(e.h2,{id:"cosmology-smart-contract-query",children:"Cosmology Smart Contract Query"}),"\n",(0,t.jsxs)(e.p,{children:["Using ",(0,t.jsx)(e.a,{href:"https://github.com/CosmWasm/ts-codegen",children:"CosmWasm/ts-codegen"}),", you can create an NPM module to make interactions and queries into dev-friendly Typescript classes to allow you to focus on shipping code."]}),"\n",(0,t.jsx)(e.p,{children:"Here are a few tutorials from cosmology:"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/overview-of-cosmwasm-ts-codegen",children:"ts-codegen overview for CosmWasm"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/turn-your-cosmwasm-smart-contracts-into-a-typescript-npm-module",children:"CosmWasm Contract to Typescript npm module"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/configuring-cosmwasm-ts-codegen-to-create-sdks-for-your-smart-contracts",children:"Configure CosmWasm ts-codegen in your Contracts repo"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/how-to-query-cosmwasm-smart-contracts",children:"Query a CosmWasm smart contract from ts-codegen"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/how-to-use-react-query-for-interacting-with-cosmwasm-smart-contracts",children:"Enable React Query"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/how-to-use-recoil-for-interacting-with-cosmwasm-smart-contracts",children:"Enable Recoil"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/integrating-telescope-and-cosmwasm-ts-codegen",children:"Integrate Telescope with ts-codegen"})}),"\n"]})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,t.jsx)(e,{...s,children:(0,t.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/query.md",route:"/mintstation/contracts/query",timestamp:1700119354e3,title:"Query Contracts",headings:a},pageNextRoute:"/mintstation/contracts/query"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=9526)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/contracts/query-c6bdf9aeb5a19e5c.js b/_next/static/chunks/pages/mintstation/contracts/query-c6bdf9aeb5a19e5c.js deleted file mode 100644 index dd25d247..00000000 --- a/_next/static/chunks/pages/mintstation/contracts/query-c6bdf9aeb5a19e5c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7655],{9526:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/contracts/query",function(){return n(3388)}])},3388:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var t=n(5893),r=n(2673),o=n(2643);let a=[{depth:2,value:"Command Line Interface",id:"command-line-interface"},{depth:2,value:"Rest API Query",id:"rest-api-query"},{depth:2,value:"Cosmology Smart Contract Query",id:"cosmology-smart-contract-query"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre",span:"span",strong:"strong",br:"br",a:"a",ul:"ul",li:"li"},(0,o.a)(),s.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e.h1,{children:"Query A Contract"}),"\n",(0,t.jsx)(e.h2,{id:"command-line-interface",children:"Command Line Interface"}),"\n",(0,t.jsxs)(e.p,{children:["The most common way to query a cosmwasm smart contract is within the mintstationd wasm smart query command. This follows the following format where query is a JSON string with no spaces. By default, the least amount of data this can be is an empty JSON payload ",(0,t.jsx)(e.code,{children:"'{}'."})]}),"\n",(0,t.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,t.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"mintstationd query wasm contract-state smart [contract_bech32] [query] [flags]"})})})}),"\n",(0,t.jsx)(e.p,{children:"For this example, we are going to use a random NFT contract on the mint chain. This will show you how to brute force query a contract if you have no idea what the query schema of the contract is. At this time, there is no way to query the format of a contract's requests, but this is something many are actively working on."}),"\n",(0,t.jsx)(e.p,{children:"Now we attempt to query this contract address and extract some data from it and get which queries are allowed. As you can see, we pass through a random payload for abcde so that the contract will return actual valid query requests"}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.strong,{children:"NOTE"}),": A Query can never be empty such as ",(0,t.jsx)(e.code,{children:"'{}'"})," given you need to specify the path of data you want to reach."]}),"\n",(0,t.jsx)(e.pre,{className:"language-sh",children:(0,t.jsxs)(e.code,{className:"lang-sh",children:["CONTRACT=mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj\nmintstationd q wasm contract-state smart $CONTRACT '{\"abcde\":{}}'\n\n",(0,t.jsx)(e.strong,{children:"# Error parsing into type \n"}),(0,t.jsx)(e.strong,{children:"# cw721_base::msg::QueryMsg\n"}),"# unknown variant `abcde`, \n# expected one of `owner_of`, `approval`, `approvals`, `all_operators`, \n# `num_tokens`, `contract_info`, `nft_info`, `all_nft_info`, `tokens`, \n# `all_tokens`, `minter`, `extension`\n"]})}),"\n",(0,t.jsxs)(e.p,{children:['{% hint style="info" %}\nThe query shows CW721 Base is this contracts name. As this is a standard contract, all messages can be found in the CosmWasm/cw-nfts repository on github',(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/CosmWasm/cw-nfts/blob/main/contracts/cw721-base/src/msg.rs",children:"https://github.com/CosmWasm/cw-nfts/blob/main/contracts/cw721-base/src/msg.rs"}),"\n{% endhint %}"]}),"\n",(0,t.jsx)(e.p,{children:"From this, we now know all of the query endpoints and can requests something more specific from the contract for our usage. Let's get"}),"\n",(0,t.jsx)(e.pre,{"data-language":"sh","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"sh","data-theme":"default",children:[(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CONTRACT"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"contract-state"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"smart"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CONTRACT "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"all_tokens\":{}}'"})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"data:"})}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"tokens:"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"2"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"3"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"4"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"5"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"6"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"7"'})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"-"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"8"'})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# You can use --output=json to read it via JSON form"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# mintstationd q wasm contract-state smart $CONTRACT '{\"all_tokens\":{}}' --output=json | jq .data"})})]})}),"\n",(0,t.jsx)(e.p,{children:"Here we can see there are 8 tokens in this set. Lets query one of the NFTs information"}),"\n",(0,t.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CONTRACT"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"contract-state"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"smart"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CONTRACT "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"nft_info\":{}}'"})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# missing field `token_id`: query wasm contract failed"})})]})}),"\n",(0,t.jsx)(e.p,{children:"Just like the first query, we can see that the payload needs more information. It returned an error that we need to specify the token_id we want the nft_info for. Note, Uint128 sized numbers are read as a string"}),"\n",(0,t.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"CONTRACT"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"q"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"wasm"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"contract-state"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"smart"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CONTRACT "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'{"nft_info":{"token_id":"8"}}\''})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:" "}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# data:"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# extension: null"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# token_uri: ipfs://bafyreib42csdu7426ki7mxk6firvbz4uk3fo4dxpjy2kkskzdhtgj3rriq/metadata.json"})})]})}),"\n",(0,t.jsx)(e.h2,{id:"rest-api-query",children:"Rest API Query"}),"\n",(0,t.jsxs)(e.p,{children:["If you wish to query the data more programmatically with an application such as Python, you may be better suited to use the rest API. You can find these endpoints on ",(0,t.jsx)(e.a,{href:"https://cosmos.directory/mint/nodes",children:"https://cosmos.directory/mint/nodes"})," in the REST section."]}),"\n",(0,t.jsxs)(e.p,{children:["This query endpoint can be found via Mintstation's SwaggerUI. However, some modules you will not be able to easily find the endpoint. To do this, you will need to search through the proto files. Here we know we want to query the cosmwasm module, which is called wasmd on chain. This repo is found at ",(0,t.jsx)(e.a,{href:"https://github.com/cosmwasm/wasmd",children:"https://github.com/cosmwasm/wasmd"}),".",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\nIn this module, you can see the proto folder in the root of the repo. This will house the endpoints the module exposes so we can find the above path which. This is a query so we find the query proto file",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/CosmWasm/wasmd/blob/main/proto/cosmwasm/wasm/v1/query.proto",children:"https://github.com/CosmWasm/wasmd/blob/main/proto/cosmwasm/wasm/v1/query.proto"}),"\\"]}),"\n",(0,t.jsx)(e.pre,{"data-language":"protobuf","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"protobuf","data-theme":"default",children:[(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'option go_package = "github.com/CosmWasm/wasmd/x/wasm/types";'})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"option (gogoproto.goproto_getters_all) = false;"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"option (gogoproto.equal_all) = false;"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"// Query provides defines the gRPC querier service"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"service Query {"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" // SmartContractState get smart query result from the contract"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" rpc SmartContractState(QuerySmartContractStateRequest)"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" returns (QuerySmartContractStateResponse) {"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" option (google.api.http).get ="})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:' "/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}";'})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})})]})}),"\n",(0,t.jsxs)(e.p,{children:['{% hint style="info" %}\nYou must base64 encode the JSON payload for REST API Request. Just take your JSON payload and',(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\n- put it into ",(0,t.jsx)(e.a,{href:"https://www.base64encode.org/",children:"https://www.base64encode.org/"}),(0,t.jsx)(e.br,{}),"\n- or use Mac / Linux built in command",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\necho '{\"all_tokens\":{}}' | base64",(0,t.jsx)(e.br,{}),"\n# eyJhbGxfdG9rZW5zIjp7fX0K\n{% endhint %}"]}),"\n",(0,t.jsxs)(e.p,{children:["With this, we can now query the contract and gather the data. You can use your web browser, or a library like httpx / requests in Python for automated bots. Be aware that many API providers will late limit the number of requests you can make.",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.br,{}),"\n",(0,t.jsx)(e.a,{href:"https://api.mint.strange.love/cosmwasm/wasm/v1/contract/mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj/smart/eyJhbGxfdG9rZW5zIjp7fX0K",children:"https://api.mint.strange.love/cosmwasm/wasm/v1/contract/mint1anh4pf98fe8uh64uuhaasqdmg89qe6kk5xsklxuvtjmu6rhpg53sj9uejj/smart/eyJhbGxfdG9rZW5zIjp7fX0K"})]}),"\n",(0,t.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,t.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"data"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,t.jsxs)(e.span,{className:"line",children:[(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"tokens"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"2"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"3"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"4"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"5"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"6"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"7"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"8"'}),(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})]}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,t.jsx)(e.span,{className:"line",children:(0,t.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,t.jsx)(e.h2,{id:"cosmology-smart-contract-query",children:"Cosmology Smart Contract Query"}),"\n",(0,t.jsxs)(e.p,{children:["Using ",(0,t.jsx)(e.a,{href:"https://github.com/CosmWasm/ts-codegen",children:"CosmWasm/ts-codegen"}),", you can create an NPM module to make interactions and queries into dev-friendly Typescript classes to allow you to focus on shipping code."]}),"\n",(0,t.jsx)(e.p,{children:"Here are a few tutorials from cosmology:"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/overview-of-cosmwasm-ts-codegen",children:"ts-codegen overview for CosmWasm"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/turn-your-cosmwasm-smart-contracts-into-a-typescript-npm-module",children:"CosmWasm Contract to Typescript npm module"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/configuring-cosmwasm-ts-codegen-to-create-sdks-for-your-smart-contracts",children:"Configure CosmWasm ts-codegen in your Contracts repo"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/how-to-query-cosmwasm-smart-contracts",children:"Query a CosmWasm smart contract from ts-codegen"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/how-to-use-react-query-for-interacting-with-cosmwasm-smart-contracts",children:"Enable React Query"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/how-to-use-recoil-for-interacting-with-cosmwasm-smart-contracts",children:"Enable Recoil"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"https://cosmology.tech/learn/video/integrating-telescope-and-cosmwasm-ts-codegen",children:"Integrate Telescope with ts-codegen"})}),"\n"]})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,t.jsx)(e,{...s,children:(0,t.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/contracts/query.md",route:"/mintstation/contracts/query",timestamp:1698218973e3,title:"Query A Contract",headings:a},pageNextRoute:"/mintstation/contracts/query"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=9526)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/command-bf77bf78efb863aa.js b/_next/static/chunks/pages/mintstation/validator/command-bf77bf78efb863aa.js new file mode 100644 index 00000000..172bbcbd --- /dev/null +++ b/_next/static/chunks/pages/mintstation/validator/command-bf77bf78efb863aa.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6940],{4435:function(s,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/command",function(){return r(181)}])},181:function(s,e,r){"use strict";r.r(e),r.d(e,{__toc:function(){return o}});var n=r(5893),i=r(2673),l=r(2643);let o=[{depth:2,value:"Upgrade to a validator",id:"upgrade-to-a-validator"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",strong:"strong",code:"code",pre:"pre",span:"span"},(0,l.a)(),s.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{children:"Useful commands"}),"\n",(0,n.jsx)(e.h2,{id:"upgrade-to-a-validator",children:"Upgrade to a validator"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step."})}),"\n",(0,n.jsxs)(e.p,{children:["To upgrade the node to a validator, you will need to submit a ",(0,n.jsx)(e.code,{children:"create-validator"})," transaction:"]}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"staking"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"create-validator"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--amount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1000000"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--commission-max-change-rate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0.1"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--commission-max-rate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0.20"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--commission-rate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0.1"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--min-self-delegation"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--details"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"validators write bios too"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--pubkey="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"$("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tendermint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"show-validator"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:")"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--moniker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$MONIKER_NAME"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CHAIN_ID \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--gas-prices"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0.025"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,n.jsx)(e.p,{children:"The above transaction is just an example. There are many more flags that can be set to customise your validator, such as your validator website, or keybase.io id, etc. To see a full list:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"staking"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"create-validator"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--help"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Unjail"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"stationed"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"slashing"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"unjail"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--fees"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"100"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"})]})})}),"\n",(0,n.jsx)(e.p,{children:"To track your validator's signing history, copy the validator public key:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tendermint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"show-validator"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Use your validators public key queried above as the validator-pubkey below:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"query"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"slashing"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"signing-info"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"validator-pubke"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"y"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Example:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"query"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"slashing"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"signing-info"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'{"@type":"/cosmos.crypto.ed25519.PubKey","key":"HlixoxNZBPq4pBOYEimtSq9Ak4peBISVsIbI5ZHrEAU="}\''})]})})})]})}e.default=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/validator/command.mdx",route:"/mintstation/validator/command",timestamp:1700119354e3,title:"Useful commands",headings:o},pageNextRoute:"/mintstation/validator/command"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=4435)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/command-fa460a7d233cbee0.js b/_next/static/chunks/pages/mintstation/validator/command-fa460a7d233cbee0.js deleted file mode 100644 index 436879bf..00000000 --- a/_next/static/chunks/pages/mintstation/validator/command-fa460a7d233cbee0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6940],{4435:function(s,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/command",function(){return r(181)}])},181:function(s,e,r){"use strict";r.r(e),r.d(e,{__toc:function(){return t}});var n=r(5893),i=r(2673),o=r(2643);let t=[{depth:2,value:"Upgrade to a validator",id:"upgrade-to-a-validator"},{depth:2,value:"Unjail",id:"unjail"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",h2:"h2",p:"p",strong:"strong",code:"code",pre:"pre",span:"span"},(0,o.a)(),s.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{children:"Useful command for Validators"}),"\n",(0,n.jsx)(e.h2,{id:"upgrade-to-a-validator",children:"Upgrade to a validator"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step."})}),"\n",(0,n.jsxs)(e.p,{children:["To upgrade the node to a validator, you will need to submit a ",(0,n.jsx)(e.code,{children:"create-validator"})," transaction:"]}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"staking"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"create-validator"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--amount"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1000000"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--commission-max-change-rate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0.1"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--commission-max-rate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0.20"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--commission-rate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0.1"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--min-self-delegation"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"1"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--details"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"validators write bios too"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--pubkey="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"$("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tendermint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"show-validator"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:")"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--moniker"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$MONIKER_NAME"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" $CHAIN_ID \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--gas-prices"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0.025"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),"\n",(0,n.jsx)(e.p,{children:"The above transaction is just an example. There are many more flags that can be set to customise your validator, such as your validator website, or keybase.io id, etc. To see a full list:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"staking"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"create-validator"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--help"})]})})}),"\n",(0,n.jsx)(e.h2,{id:"unjail",children:"Unjail"}),"\n",(0,n.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"stationed"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"tx"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"slashing"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"unjail"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"accoun"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"t"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--keyring-backend"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"test"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--fees"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"100"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"umint"})]})})})]})}e.default=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/validator/command.mdx",route:"/mintstation/validator/command",timestamp:1699677327e3,title:"Useful command for Validators",headings:t},pageNextRoute:"/mintstation/validator/command"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=4435)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/localnet-807f357eb62d5947.js b/_next/static/chunks/pages/mintstation/validator/localnet-807f357eb62d5947.js new file mode 100644 index 00000000..25e4bac4 --- /dev/null +++ b/_next/static/chunks/pages/mintstation/validator/localnet-807f357eb62d5947.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9370],{6477:function(s,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/localnet",function(){return e(6480)}])},6480:function(s,n,e){"use strict";e.r(n),e.d(n,{__toc:function(){return t}});var i=e(5893),r=e(2673),l=e(2643);let t=[{depth:2,value:"Setup Local Network",id:"setup-local-network"}];function _createMdxContent(s){let n=Object.assign({h2:"h2",p:"p",a:"a",pre:"pre",code:"code",span:"span"},(0,l.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"setup-local-network",children:"Setup Local Network"}),"\n",(0,i.jsx)(n.p,{children:"To set up a single local network easily, you can directly run the script below, and it will start working immediately:"}),"\n",(0,i.jsxs)(n.p,{children:["To get up and running with the mintstationd binary, please follow the instructions ",(0,i.jsx)(n.a,{href:"/mintstation/cli/setup",children:"here"}),"."]}),"\n",(0,i.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(n.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"APP_HOME"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$HOME/.mintstation"'})]}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"RPC"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://localhost:26657"'})]}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_ID"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"localnet-1"'})]}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"MONIKER"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Moniker"'})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"init"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${MONIKER} "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${CHAIN_ID} "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--home"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-i"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-r"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'s/minimum-gas-prices = "0stake"/minimum-gas-prices = "0.0001umint"/\''}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"/config/app.toml"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-i"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-e"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'s/\\"stake\\"/\\"umint\\"/g\''}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"/config/genesis.json"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"validator"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--keyring-backend"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"test"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"MY_VALIDATOR_ADDRESS"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:"$("}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"show"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"validator"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--keyring-backend"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"test"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-a"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:")"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"add-genesis-account"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" $MY_VALIDATOR_ADDRESS "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"10000000000"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"umint"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"gentx"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"validator"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-constant)"},children:"10000000"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"umint"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"localnet-1"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--keyring-backend"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"test"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"collect-gentxs"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"start"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--home"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"})]})]})})]})}n.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,l.a)(),s.components);return n?(0,i.jsx)(n,{...s,children:(0,i.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/validator/localnet.md",route:"/mintstation/validator/localnet",timestamp:1700119354e3,title:"Localnet",headings:t},pageNextRoute:"/mintstation/validator/localnet"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=6477)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/localnet-e28a22e3ef900df8.js b/_next/static/chunks/pages/mintstation/validator/localnet-e28a22e3ef900df8.js deleted file mode 100644 index 3a78251d..00000000 --- a/_next/static/chunks/pages/mintstation/validator/localnet-e28a22e3ef900df8.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9370],{6477:function(s,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/localnet",function(){return e(6480)}])},6480:function(s,n,e){"use strict";e.r(n),e.d(n,{__toc:function(){return r}});var i=e(5893),t=e(2673),l=e(2643);let r=[{depth:2,value:"Setup signle local network",id:"setup-signle-local-network"}];function _createMdxContent(s){let n=Object.assign({h2:"h2",p:"p",a:"a",pre:"pre",code:"code",span:"span"},(0,l.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"setup-signle-local-network",children:"Setup signle local network"}),"\n",(0,i.jsx)(n.p,{children:"To set up a single local network easily, you can directly run the script below, and it will start working immediately:"}),"\n",(0,i.jsxs)(n.p,{children:["To get up and running with the mintstationd binary, please follow the instructions ",(0,i.jsx)(n.a,{href:"/mintstation/cli/setup",children:"here"}),"."]}),"\n",(0,i.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(n.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"APP_HOME"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$HOME/.mintstationd"'})]}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"RPC"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://localhost:26657"'})]}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_ID"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"localnet-1"'})]}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:"MONIKER"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Moniker"'})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"init"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${MONIKER} "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${CHAIN_ID} "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--home"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-i"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-r"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'s/minimum-gas-prices = ""/minimum-gas-prices = "0.0001umint"/\''}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"/config/app.toml"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-i"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-e"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'s/\\"stake\\"/\\"umint\\"/g\''}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"/config/genesis.json"})]}),"\n",(0,i.jsx)(n.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"start"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--home"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" ${APP_HOME}"})]})]})})]})}n.default=(0,t.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,l.a)(),s.components);return n?(0,i.jsx)(n,{...s,children:(0,i.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/mintstation/validator/localnet.md",route:"/mintstation/validator/localnet",timestamp:1698720846e3,title:"Localnet",headings:r},pageNextRoute:"/mintstation/validator/localnet"})}},function(s){s.O(0,[2673,9774,2888,179],function(){return s(s.s=6477)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/mainnet-77c8b6a4d8b83a07.js b/_next/static/chunks/pages/mintstation/validator/mainnet-77c8b6a4d8b83a07.js deleted file mode 100644 index 1a91e47b..00000000 --- a/_next/static/chunks/pages/mintstation/validator/mainnet-77c8b6a4d8b83a07.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5191],{1512:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/mainnet",function(){return n(1441)}])},1441:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return o}});var i=n(5893),t=n(2673),r=n(2643);let o=[{depth:2,value:"Setting up the Node",id:"setting-up-the-node"},{depth:3,value:"Initialize the chain",id:"initialize-the-chain"},{depth:3,value:"Download the genesis file",id:"download-the-genesis-file"},{depth:3,value:"Set seeds",id:"set-seeds"},{depth:3,value:"Set minimum gas prices",id:"set-minimum-gas-prices"},{depth:3,value:"Create (or restore) a local key pair",id:"create-or-restore-a-local-key-pair"},{depth:3,value:"Get some tokens",id:"get-some-tokens"},{depth:2,value:"Syncing the node",id:"syncing-the-node"},{depth:3,value:"From genesis",id:"from-genesis"},{depth:2,value:"Backup critical files",id:"backup-critical-files"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2",h3:"h3",strong:"strong",pre:"pre",code:"code",span:"span",ul:"ul",li:"li"},(0,r.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.h1,{children:"Joining Mainnet"}),"\n",(0,i.jsxs)(s.p,{children:["To get up and running with the mintstationd binary, please follow the instructions ",(0,i.jsx)(s.a,{href:"/mintstation/cli/setup",children:"here"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"setting-up-the-node",children:"Setting up the Node"}),"\n",(0,i.jsx)(s.p,{children:"These instructions will direct you on how to initialize your node, synchronize to the network and upgrade your node to a validator."}),"\n",(0,i.jsx)(s.h3,{id:"initialize-the-chain",children:(0,i.jsx)(s.strong,{children:"Initialize the chain"})}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_ID"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"MONIKER_NAME"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"=<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"moniker-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"init"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$MONIKER_NAME"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" $CHAIN_ID"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["This will generate the following files in ",(0,i.jsx)(s.code,{children:"~/.mintstationd/config/"})]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"genesis.json"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"node_key.json"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"priv_validator_key.json"})}),"\n"]}),"\n",(0,i.jsx)(s.h3,{id:"download-the-genesis-file",children:"Download the genesis file"}),"\n",(0,i.jsx)(s.p,{children:"Download the the geneis file."}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Download genesis.json file (https://github.com/cosmostation/mintstation)"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"rm"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"~/.mintstationd/config/genesis.json"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mv"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"genesis.json"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" $HOME"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"/.mintstationd/config/genesis.json"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["This will replace the genesis file created using ",(0,i.jsx)(s.code,{children:"mintstationd init"})," command with the mainnet ",(0,i.jsx)(s.code,{children:"genesis.json"}),"."]}),"\n",(0,i.jsx)(s.h3,{id:"set-seeds",children:(0,i.jsx)(s.strong,{children:"Set seeds"})}),"\n",(0,i.jsxs)(s.p,{children:["We can set the ",(0,i.jsx)(s.code,{children:"seeds"})," by retrieving the list of seeds from the mintstation repo and using ",(0,i.jsx)(s.code,{children:"sed"})," to inject into ",(0,i.jsx)(s.code,{children:"~/.mintstationd/config/config.toml"}),":"]}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Set the base repo URL for mainnet & retrieve seeds"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_REPO"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://raw.githubusercontent.com/cosmostation/mintstation/main/$CHAIN_ID"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:"&&"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" SEEDS"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"curl"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-sL"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$CHAIN_REPO/seeds.txt")"'})]}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Add seeds to config.toml"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-i.bak"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"s/^seeds *=.*/seeds = \\"$SEEDS\\"/"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"~/.mintstationd/config/config.toml"})]})]})}),"\n",(0,i.jsx)(s.h3,{id:"set-minimum-gas-prices",children:"Set minimum gas prices"}),"\n",(0,i.jsxs)(s.p,{children:["For RPC nodes and Validator nodes we recommend setting the following ",(0,i.jsx)(s.code,{children:"minimum-gas-prices"}),". As we are a permissionless wasm chain, this setting will help protect against contract spam and potential wasm contract attack vectors."]}),"\n",(0,i.jsxs)(s.p,{children:["In ",(0,i.jsx)(s.code,{children:"$HOME/.mintstationd/config/app.toml"}),", set minimum gas prices:"]}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(s.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-i.bak"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"s/^minimum-gas-prices *=.*/minimum-gas-prices = \\"0.0025umint\\"/"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"~/.mintstationd/config/app.toml"})]})})}),"\n",(0,i.jsx)(s.h3,{id:"create-or-restore-a-local-key-pair",children:(0,i.jsx)(s.strong,{children:"Create (or restore) a local key pair"})}),"\n",(0,i.jsx)(s.p,{children:"Either create a new key pair, or restore an existing wallet for your validator:"}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# OR"})}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Restore existing mint wallet with mnemonic seed phrase."})}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# You will be prompted to enter mnemonic seed."})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"--recover"})]}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Query the keystore for your public address"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"show"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-a"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["Replace ",(0,i.jsx)(s.code,{children:""})," with a key name of your choosing."]}),"\n",(0,i.jsx)(s.p,{children:"After creating a new key, the key information and seed phrase will be shown. It is essential to write this seed phrase down and keep it in a safe place. The seed phrase is the only way to restore your keys."}),"\n",(0,i.jsx)(s.h3,{id:"get-some-tokens",children:(0,i.jsx)(s.strong,{children:"Get some tokens"})}),"\n",(0,i.jsxs)(s.p,{children:["Delegations ",(0,i.jsx)(s.a,{href:"delegations",children:"here"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"syncing-the-node",children:"Syncing the node"}),"\n",(0,i.jsx)(s.p,{children:"There are methods to sync a node to the network:"}),"\n",(0,i.jsx)(s.h3,{id:"from-genesis",children:"From genesis"}),"\n",(0,i.jsxs)(s.p,{children:["After starting the ",(0,i.jsx)(s.code,{children:"mintstationd"})," daemon, the chain will begin to sync to the network. The time to sync to the network will vary depending on your setup and the current size of the blockchain, but could take a very long time. To query the status of your node:"]}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Query via the RPC (default port: 26657)"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"curl"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"http://localhost:26657/status"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"jq"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:".result.sync_info.catching_up"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["If this command returns ",(0,i.jsx)(s.code,{children:"true"})," then your node is still catching up. If it returns ",(0,i.jsx)(s.code,{children:"false"})," then your node has caught up to the network current block and you are safe to proceed to upgrade to a validator node."]}),"\n",(0,i.jsxs)(s.p,{children:["When syncing from genesis, you will need to perform upgrades while catching up to the head. ",(0,i.jsx)(s.code,{children:"mintstation-1"})," upgrades are detailed in ",(0,i.jsx)(s.a,{href:"upgrade",children:"node-upgrade.md"})," along with a description of each type of upgrade."]}),"\n",(0,i.jsx)(s.h2,{id:"backup-critical-files",children:"Backup critical files"}),"\n",(0,i.jsxs)(s.p,{children:["There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ",(0,i.jsx)(s.code,{children:"~/.mintstationd/config/"}),":"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"priv_validator_key.json"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"node_key.json"})}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"It is recommended that you encrypt the backup of these files."})]})}s.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/validator/mainnet.mdx",route:"/mintstation/validator/mainnet",timestamp:1698720846e3,title:"Joining Mainnet",headings:o},pageNextRoute:"/mintstation/validator/mainnet"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=1512)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/mainnet-a8558d5a7cb1f976.js b/_next/static/chunks/pages/mintstation/validator/mainnet-a8558d5a7cb1f976.js new file mode 100644 index 00000000..d63e528e --- /dev/null +++ b/_next/static/chunks/pages/mintstation/validator/mainnet-a8558d5a7cb1f976.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5191],{1512:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/mainnet",function(){return n(1441)}])},1441:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return o}});var i=n(5893),t=n(2673),r=n(2643);let o=[{depth:2,value:"Setting up the Node",id:"setting-up-the-node"},{depth:3,value:"Initialize the chain",id:"initialize-the-chain"},{depth:3,value:"Download the genesis file",id:"download-the-genesis-file"},{depth:3,value:"Set seeds",id:"set-seeds"},{depth:3,value:"Set minimum gas prices",id:"set-minimum-gas-prices"},{depth:3,value:"Create (or restore) a local key pair",id:"create-or-restore-a-local-key-pair"},{depth:3,value:"Get some tokens",id:"get-some-tokens"},{depth:2,value:"Syncing the node",id:"syncing-the-node"},{depth:3,value:"From genesis",id:"from-genesis"},{depth:2,value:"Backup critical files",id:"backup-critical-files"}];function _createMdxContent(e){let s=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2",h3:"h3",strong:"strong",pre:"pre",code:"code",span:"span",ul:"ul",li:"li"},(0,r.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.h1,{children:"Joining Mainnet"}),"\n",(0,i.jsxs)(s.p,{children:["To get up and running with the mintstationd binary, please follow the instructions ",(0,i.jsx)(s.a,{href:"/mintstation/cli/setup",children:"here"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"setting-up-the-node",children:"Setting up the Node"}),"\n",(0,i.jsx)(s.p,{children:"These instructions will direct you on how to initialize your node, synchronize to the network and upgrade your node to a validator."}),"\n",(0,i.jsx)(s.h3,{id:"initialize-the-chain",children:(0,i.jsx)(s.strong,{children:"Initialize the chain"})}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_ID"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"MONIKER_NAME"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"=<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"moniker-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"init"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$MONIKER_NAME"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"--chain-id"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" $CHAIN_ID"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["This will generate the following files in ",(0,i.jsx)(s.code,{children:"~/.mintstation/config/"})]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"genesis.json"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"node_key.json"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"priv_validator_key.json"})}),"\n"]}),"\n",(0,i.jsx)(s.h3,{id:"download-the-genesis-file",children:"Download the genesis file"}),"\n",(0,i.jsx)(s.p,{children:"Download the the geneis file."}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Download genesis.json file (https://github.com/cosmostation/mintstation)"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"rm"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"~/.mintstation/config/genesis.json"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mv"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"genesis.json"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" $HOME"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"/.mintstation/config/genesis.json"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["This will replace the genesis file created using ",(0,i.jsx)(s.code,{children:"mintstationd init"})," command with the mainnet ",(0,i.jsx)(s.code,{children:"genesis.json"}),"."]}),"\n",(0,i.jsx)(s.h3,{id:"set-seeds",children:(0,i.jsx)(s.strong,{children:"Set seeds"})}),"\n",(0,i.jsxs)(s.p,{children:["We can set the ",(0,i.jsx)(s.code,{children:"seeds"})," by retrieving the list of seeds from the mintstation repo and using ",(0,i.jsx)(s.code,{children:"sed"})," to inject into ",(0,i.jsx)(s.code,{children:"~/.mintstation/config/config.toml"}),":"]}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Set the base repo URL for mainnet & retrieve seeds"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_ID"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"mintstation-1"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"CHAIN_REPO"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://raw.githubusercontent.com/cosmostation/mintstation/main/$CHAIN_ID"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:"&&"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" SEEDS"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"$('}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"curl"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-sL"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:' "$CHAIN_REPO/seeds.txt")"'})]}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Add seeds to config.toml"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-i.bak"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"s/^seeds *=.*/seeds = \\"$SEEDS\\"/"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"~/.mintstation/config/config.toml"})]})]})}),"\n",(0,i.jsx)(s.h3,{id:"set-minimum-gas-prices",children:"Set minimum gas prices"}),"\n",(0,i.jsxs)(s.p,{children:["For RPC nodes and Validator nodes we recommend setting the following ",(0,i.jsx)(s.code,{children:"minimum-gas-prices"}),". As we are a permissionless wasm chain, this setting will help protect against contract spam and potential wasm contract attack vectors."]}),"\n",(0,i.jsxs)(s.p,{children:["In ",(0,i.jsx)(s.code,{children:"$HOME/.mintstation/config/app.toml"}),", set minimum gas prices:"]}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(s.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"sed"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-i.bak"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"s/^minimum-gas-prices *=.*/minimum-gas-prices = \\"0.0025umint\\"/"'}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"~/.mintstation/config/app.toml"})]})})}),"\n",(0,i.jsx)(s.h3,{id:"create-or-restore-a-local-key-pair",children:(0,i.jsx)(s.strong,{children:"Create (or restore) a local key pair"})}),"\n",(0,i.jsx)(s.p,{children:"Either create a new key pair, or restore an existing wallet for your validator:"}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# OR"})}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Restore existing mint wallet with mnemonic seed phrase."})}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# You will be prompted to enter mnemonic seed."})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"--recover"})]}),"\n",(0,i.jsx)(s.span,{className:"line",children:" "}),"\n",(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Query the keystore for your public address"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"mintstationd"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"keys"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"show"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"key-nam"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"e"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"--bech"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"val"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"-a"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["Replace ",(0,i.jsx)(s.code,{children:""})," with a key name of your choosing."]}),"\n",(0,i.jsx)(s.p,{children:"After creating a new key, the key information and seed phrase will be shown. It is essential to write this seed phrase down and keep it in a safe place. The seed phrase is the only way to restore your keys."}),"\n",(0,i.jsx)(s.h3,{id:"get-some-tokens",children:(0,i.jsx)(s.strong,{children:"Get some tokens"})}),"\n",(0,i.jsxs)(s.p,{children:["Delegations ",(0,i.jsx)(s.a,{href:"delegations",children:"here"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"syncing-the-node",children:"Syncing the node"}),"\n",(0,i.jsx)(s.p,{children:"There are methods to sync a node to the network:"}),"\n",(0,i.jsx)(s.h3,{id:"from-genesis",children:"From genesis"}),"\n",(0,i.jsxs)(s.p,{children:["After starting the ",(0,i.jsx)(s.code,{children:"mintstationd"})," daemon, the chain will begin to sync to the network. The time to sync to the network will vary depending on your setup and the current size of the blockchain, but could take a very long time. To query the status of your node:"]}),"\n",(0,i.jsx)(s.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(s.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsx)(s.span,{className:"line",children:(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"# Query via the RPC (default port: 26657)"})}),"\n",(0,i.jsxs)(s.span,{className:"line",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"curl"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:"http://localhost:26657/status"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"jq"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:".result.sync_info.catching_up"})]})]})}),"\n",(0,i.jsxs)(s.p,{children:["If this command returns ",(0,i.jsx)(s.code,{children:"true"})," then your node is still catching up. If it returns ",(0,i.jsx)(s.code,{children:"false"})," then your node has caught up to the network current block and you are safe to proceed to upgrade to a validator node."]}),"\n",(0,i.jsxs)(s.p,{children:["When syncing from genesis, you will need to perform upgrades while catching up to the head. ",(0,i.jsx)(s.code,{children:"mintstation-1"})," upgrades are detailed in ",(0,i.jsx)(s.a,{href:"upgrade",children:"node-upgrade.md"})," along with a description of each type of upgrade."]}),"\n",(0,i.jsx)(s.h2,{id:"backup-critical-files",children:"Backup critical files"}),"\n",(0,i.jsxs)(s.p,{children:["There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ",(0,i.jsx)(s.code,{children:"~/.mintstation/config/"}),":"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"priv_validator_key.json"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.code,{children:"node_key.json"})}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"It is recommended that you encrypt the backup of these files."})]})}s.default=(0,t.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.a)(),e.components);return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/validator/mainnet.mdx",route:"/mintstation/validator/mainnet",timestamp:1700119354e3,title:"Joining Mainnet",headings:o},pageNextRoute:"/mintstation/validator/mainnet"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=1512)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/upgrade-75eaa905f500cc15.js b/_next/static/chunks/pages/mintstation/validator/upgrade-75eaa905f500cc15.js new file mode 100644 index 00000000..b8c550ec --- /dev/null +++ b/_next/static/chunks/pages/mintstation/validator/upgrade-75eaa905f500cc15.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8800],{2109:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/upgrade",function(){return a(2715)}])},2715:function(e,n,a){"use strict";a.r(n),a.d(n,{__toc:function(){return s}});var t=a(5893),r=a(2673),d=a(2643);let s=[{depth:2,value:"Upgrades",id:"upgrades"},{depth:3,value:"Upgrade types",id:"upgrade-types"},{depth:4,value:"Planned upgrade (via governance)",id:"planned-upgrade-via-governance"},{depth:4,value:"Unplanned upgrade",id:"unplanned-upgrade"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",p:"p",a:"a",h3:"h3",ol:"ol",li:"li",strong:"strong",h4:"h4"},(0,d.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:"Node Upgrades"}),"\n",(0,t.jsx)(n.h2,{id:"upgrades",children:"Upgrades"}),"\n",(0,t.jsxs)(n.p,{children:["Release procedures for validators and node operators are explained ",(0,t.jsx)(n.a,{href:"https://github.com/cosmostation/mintstation",children:"here"}),"."]}),"\n",(0,t.jsx)(n.h3,{id:"upgrade-types",children:"Upgrade types"}),"\n",(0,t.jsx)(n.p,{children:"There are two types of upgrades that happen on Mintstation Network. They are:"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Planned"})," feature upgrades or planned patches"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Unplanned"})," security upgrades."]}),"\n"]}),"\n",(0,t.jsx)(n.h4,{id:"planned-upgrade-via-governance",children:"Planned upgrade (via governance)"}),"\n",(0,t.jsx)(n.p,{children:"Planned upgrades, as the name suggests, are upgrades that are developed and proposed via governance. If approved by the community, these upgrades are undertaken by the chain automatically halting at the planned upgrade height."}),"\n",(0,t.jsx)(n.p,{children:"Node operators are then required to swap the binary for the planned upgrade binary. After all node operators have upgraded and started their nodes the network will continue in the upgraded state."}),"\n",(0,t.jsx)(n.h4,{id:"unplanned-upgrade",children:"Unplanned upgrade"}),"\n",(0,t.jsx)(n.p,{children:"Where emergency security patches are required node operators will be required to halt their nodes manually at the required upgrade height, swap the patched binary and restart their nodes. After all node operators have upgraded and started their nodes the network will continue in the upgraded state."})]})}n.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,d.a)(),e.components);return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/validator/upgrade.md",route:"/mintstation/validator/upgrade",timestamp:1700119354e3,title:"Node Upgrades",headings:s},pageNextRoute:"/mintstation/validator/upgrade"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=2109)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/mintstation/validator/upgrade-915d5b43ba380866.js b/_next/static/chunks/pages/mintstation/validator/upgrade-915d5b43ba380866.js deleted file mode 100644 index d74b77bd..00000000 --- a/_next/static/chunks/pages/mintstation/validator/upgrade-915d5b43ba380866.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8800],{2109:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mintstation/validator/upgrade",function(){return a(2715)}])},2715:function(e,n,a){"use strict";a.r(n),a.d(n,{__toc:function(){return s}});var t=a(5893),r=a(2673),d=a(2643);let s=[{depth:2,value:"Upgrades",id:"upgrades"},{depth:3,value:"Upgrade types",id:"upgrade-types"},{depth:4,value:"Planned upgrade (via governance)",id:"planned-upgrade-via-governance"},{depth:4,value:"Unplanned upgrade",id:"unplanned-upgrade"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",p:"p",a:"a",h3:"h3",ol:"ol",li:"li",strong:"strong",h4:"h4"},(0,d.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:"Upgrades"}),"\n",(0,t.jsx)(n.h2,{id:"upgrades",children:"Upgrades"}),"\n",(0,t.jsxs)(n.p,{children:["Release procedures for validators and node operators are explained ",(0,t.jsx)(n.a,{href:"https://github.com/cosmostation/mintstation",children:"here"}),"."]}),"\n",(0,t.jsx)(n.h3,{id:"upgrade-types",children:"Upgrade types"}),"\n",(0,t.jsx)(n.p,{children:"There are two types of upgrades that happen on Mintstation Network. They are:"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Planned"})," feature upgrades or planned patches"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Unplanned"})," security upgrades."]}),"\n"]}),"\n",(0,t.jsx)(n.h4,{id:"planned-upgrade-via-governance",children:"Planned upgrade (via governance)"}),"\n",(0,t.jsx)(n.p,{children:"Planned upgrades, as the name suggests, are upgrades that are developed and proposed via governance. If approved by the community, these upgrades are undertaken by the chain automatically halting at the planned upgrade height."}),"\n",(0,t.jsx)(n.p,{children:"Node operators are then required to swap the binary for the planned upgrade binary. After all node operators have upgraded and started their nodes the network will continue in the upgraded state."}),"\n",(0,t.jsx)(n.h4,{id:"unplanned-upgrade",children:"Unplanned upgrade"}),"\n",(0,t.jsx)(n.p,{children:"Where emergency security patches are required node operators will be required to halt their nodes manually at the required upgrade height, swap the patched binary and restart their nodes. After all node operators have upgraded and started their nodes the network will continue in the upgraded state."})]})}n.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,d.a)(),e.components);return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/mintstation/validator/upgrade.md",route:"/mintstation/validator/upgrade",timestamp:1698218973e3,title:"Upgrades",headings:s},pageNextRoute:"/mintstation/validator/upgrade"})}},function(e){e.O(0,[2673,9774,2888,179],function(){return e(e.s=2109)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/s4NzmK6cppjKJW4YpxN0m/_buildManifest.js b/_next/static/ecNbfZJR6fZMgeYV_KEka/_buildManifest.js similarity index 77% rename from _next/static/s4NzmK6cppjKJW4YpxN0m/_buildManifest.js rename to _next/static/ecNbfZJR6fZMgeYV_KEka/_buildManifest.js index a7d6f4a0..db0c348a 100644 --- a/_next/static/s4NzmK6cppjKJW4YpxN0m/_buildManifest.js +++ b/_next/static/ecNbfZJR6fZMgeYV_KEka/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(e,t,s,i,n,a){return{__rewrites:{afterFiles:[{has:void 0,source:"/:path*/_meta",destination:"/404"}],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-8799e515fca95f3d.js"],"/_error":["static/chunks/pages/_error-f2769d6921702be7.js"],"/apis":[e,"static/chunks/pages/apis-1935f10935a3cd18.js"],"/apis/reference/builder/tx-builder/broadcast":[e,t,s,i,n,"static/chunks/pages/apis/reference/builder/tx-builder/broadcast-91ee93ddd0106064.js"],"/apis/reference/builder/tx-builder/build":[e,t,s,i,n,"static/chunks/pages/apis/reference/builder/tx-builder/build-d66b93276144fe18.js"],"/apis/reference/builder/tx-builder/make-signature":[e,t,s,i,n,"static/chunks/pages/apis/reference/builder/tx-builder/make-signature-1149362f6549e12e.js"],"/apis/reference/custom/account":[e,t,s,i,n,"static/chunks/pages/apis/reference/custom/account-c542f338366e5eac.js"],"/apis/reference/historical/account/account-balances":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-balances-58c2ec5bb8d453a7.js"],"/apis/reference/historical/account/account-richlist":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-richlist-3e5521bdebd0551e.js"],"/apis/reference/historical/account/account-transactions":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-transactions-5e30de5ff0d4048f.js"],"/apis/reference/historical/account/account-votes":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-votes-fbc86882013e9236.js"],"/apis/reference/historical/validator/validator-block-sign":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-block-sign-3dc00c473b146d6d.js"],"/apis/reference/historical/validator/validator-commissions":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-commissions-2e52b858d095c3f1.js"],"/apis/reference/historical/validator/validator-delegators":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-delegators-a6e0155c021e0e95.js"],"/apis/reference/historical/validator/validator-power-events":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-power-events-bad3d179114ae614.js"],"/apis/reference/historical/validator/validator-proposed-blocks":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-a8993996ba69126f.js"],"/apis/reference/historical/validator/validator-votes":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-votes-ad29b502f525047f.js"],"/apis/reference/proxy/lcd":[e,t,s,i,n,"static/chunks/pages/apis/reference/proxy/lcd-55d1221355474410.js"],"/apis/reference/statistics/messages":[e,t,s,i,n,"static/chunks/pages/apis/reference/statistics/messages-d02d979895ab431d.js"],"/apis/reference/statistics/transactions":[e,t,s,i,n,"static/chunks/pages/apis/reference/statistics/transactions-12f741319cbb32d1.js"],"/apis/reference/utilities/assets":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/assets-5221a7cba4453d5d.js"],"/apis/reference/utilities/inflation":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/inflation-6bd066fa5cde1437.js"],"/apis/reference/utilities/node-info":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/node-info-6f5ed00a0cc33d48.js"],"/apis/reference/utilities/prices":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/prices-d2176171bb4b9d50.js"],"/apis/reference/utilities/staking-apr":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/staking-apr-e5e489afc06f7fde.js"],"/extension":[e,"static/chunks/pages/extension-b19ac24e40025ea0.js"],"/extension/guide/account/add-account":[e,"static/chunks/pages/extension/guide/account/add-account-d79068d0d3149100.js"],"/extension/guide/account/add-ledger-account":[e,"static/chunks/pages/extension/guide/account/add-ledger-account-32eff735973ba70b.js"],"/extension/guide/account/intro":[e,"static/chunks/pages/extension/guide/account/intro-3404aabfd132926e.js"],"/extension/guide/chains":[e,"static/chunks/pages/extension/guide/chains-95031716164c1cfb.js"],"/extension/guide/dapps":[e,"static/chunks/pages/extension/guide/dapps-f8e635e9da90310b.js"],"/extension/guide/settings":[e,"static/chunks/pages/extension/guide/settings-cc827a06d6fa5e8d.js"],"/extension/guide/transfer-coins":[e,"static/chunks/pages/extension/guide/transfer-coins-393131e01ad52b9f.js"],"/extension/integration/aptos/connect-and-account":[e,"static/chunks/pages/extension/integration/aptos/connect-and-account-87fb48bb2b2808cd.js"],"/extension/integration/aptos/event":[e,"static/chunks/pages/extension/integration/aptos/event-db717b33b7586d5b.js"],"/extension/integration/aptos/network":[e,"static/chunks/pages/extension/integration/aptos/network-cfeac72c7d6476de.js"],"/extension/integration/aptos/provider":[e,"static/chunks/pages/extension/integration/aptos/provider-ceddebe64f3aa1e8.js"],"/extension/integration/aptos/sign-and-submit-transaction":[e,"static/chunks/pages/extension/integration/aptos/sign-and-submit-transaction-f483fc53084aea4e.js"],"/extension/integration/cosmos/Deprecated/accounts":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-feff5be07a47c11d.js"],"/extension/integration/cosmos/Deprecated/chains":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/chains-4c85a4ea5cab60e5.js"],"/extension/integration/cosmos/Deprecated/cw20-token":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/cw20-token-b2a3c9c33a70a1f5.js"],"/extension/integration/cosmos/Deprecated/disconnect":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/disconnect-282124a859b46846.js"],"/extension/integration/cosmos/Deprecated/error":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/error-f7c196e668dd4c11.js"],"/extension/integration/cosmos/Deprecated/event":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/event-11916b8b0954dfbd.js"],"/extension/integration/cosmos/Deprecated/provider":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/provider-63cba436373b62ae.js"],"/extension/integration/cosmos/Deprecated/send-tx":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/send-tx-b5bd1870281af392.js"],"/extension/integration/cosmos/Deprecated/sign-message":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/sign-message-28eef63429caa033.js"],"/extension/integration/cosmos/Deprecated/sign-tx":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/sign-tx-e989564af8d65c7b.js"],"/extension/integration/cosmos/integrate-cosmjs":[e,"static/chunks/pages/extension/integration/cosmos/integrate-cosmjs-0b4adc5cce99abcb.js"],"/extension/integration/cosmos/integrate-keplr":[e,"static/chunks/pages/extension/integration/cosmos/integrate-keplr-7b17397d69eac51a.js"],"/extension/integration/cosmos/proto":["static/chunks/4ad82c5e-f0169a323ec17e27.js",e,"static/chunks/3248-e09cad96680fcef2.js","static/css/452d35adf31273a3.css","static/chunks/pages/extension/integration/cosmos/proto-67afe08431eceee5.js"],"/extension/integration/cosmos/react-hook":[e,"static/css/395a9d5eab9ca9fe.css","static/chunks/pages/extension/integration/cosmos/react-hook-7a12628b3f8be016.js"],"/extension/integration/cosmos/typescript":[e,t,a,"static/chunks/pages/extension/integration/cosmos/typescript-c37756cc5e6d2716.js"],"/extension/integration/cosmos/vanilla":[e,a,"static/chunks/pages/extension/integration/cosmos/vanilla-18ca85ff1e27b4a3.js"],"/extension/integration/cosmos/wallet":[e,t,"static/css/ca123d28da23ee56.css","static/chunks/pages/extension/integration/cosmos/wallet-1aaa84b0b3e41194.js"],"/extension/integration/evm/event":[e,"static/chunks/pages/extension/integration/evm/event-2b680ad131bc11d7.js"],"/extension/integration/evm/provider":[e,"static/chunks/pages/extension/integration/evm/provider-9e0d58d3e2cf944f.js"],"/extension/integration/evm/supported-rpc-methods":[e,"static/chunks/pages/extension/integration/evm/supported-rpc-methods-0077b8458e939640.js"],"/extension/integration/evm/use-ethers":[e,"static/chunks/pages/extension/integration/evm/use-ethers-cf10004e421b12db.js"],"/extension/integration/evm/use-web3-js":[e,"static/chunks/pages/extension/integration/evm/use-web3-js-9856175021add6a3.js"],"/extension/integration/sui/connect-and-get-accounts":[e,"static/chunks/pages/extension/integration/sui/connect-and-get-accounts-714b6228893187d2.js"],"/extension/integration/sui/execute-move-call":[e,"static/chunks/pages/extension/integration/sui/execute-move-call-0d20dae09e329454.js"],"/extension/integration/sui/provider":[e,"static/chunks/pages/extension/integration/sui/provider-b0ca14f25d513e5e.js"],"/extension/integration/sui/sign-and-execute-transaction":[e,"static/chunks/pages/extension/integration/sui/sign-and-execute-transaction-69d594a6afb078d6.js"],"/mintscan":[e,"static/chunks/pages/mintscan-f41605ff4f1258d9.js"],"/mintscan/registry/assets":[e,"static/chunks/pages/mintscan/registry/assets-ef8f7929e5d77052.js"],"/mintscan/registry/cw20":[e,"static/chunks/pages/mintscan/registry/cw20-a759924c4b27d4bc.js"],"/mintscan/registry/ecosystem":[e,"static/chunks/pages/mintscan/registry/ecosystem-51d65237753fdeed.js"],"/mintscan/registry/erc20":[e,"static/chunks/pages/mintscan/registry/erc20-fe479e713f2bdb2d.js"],"/mintscan/registry/moniker":[e,"static/chunks/pages/mintscan/registry/moniker-74789a4ca3f4dd83.js"],"/mintstation":[e,"static/chunks/pages/mintstation-e620e8a0f3354add.js"],"/mintstation/cli":[e,"static/chunks/pages/mintstation/cli-180ba86918d598a3.js"],"/mintstation/cli/command":[e,"static/chunks/pages/mintstation/cli/command-51ed23a14d8f8ad3.js"],"/mintstation/cli/setup":[e,"static/chunks/pages/mintstation/cli/setup-6253e94d42d70b8e.js"],"/mintstation/contracts/compile":[e,"static/chunks/pages/mintstation/contracts/compile-8179bc7cb5d5c251.js"],"/mintstation/contracts/create":[e,"static/chunks/pages/mintstation/contracts/create-db64846f1dbf5803.js"],"/mintstation/contracts/deploy":[e,"static/chunks/pages/mintstation/contracts/deploy-db968579f6b0dd31.js"],"/mintstation/contracts/execute":[e,"static/chunks/pages/mintstation/contracts/execute-c6a17f12cac295a4.js"],"/mintstation/contracts/query":[e,"static/chunks/pages/mintstation/contracts/query-c6bdf9aeb5a19e5c.js"],"/mintstation/module":[e,"static/chunks/pages/mintstation/module-2046048363f0c382.js"],"/mintstation/validator/command":[e,"static/chunks/pages/mintstation/validator/command-fa460a7d233cbee0.js"],"/mintstation/validator/delegations":[e,"static/chunks/pages/mintstation/validator/delegations-2ac7d436da64796d.js"],"/mintstation/validator/localnet":[e,"static/chunks/pages/mintstation/validator/localnet-e28a22e3ef900df8.js"],"/mintstation/validator/mainnet":[e,"static/chunks/pages/mintstation/validator/mainnet-77c8b6a4d8b83a07.js"],"/mintstation/validator/upgrade":[e,"static/chunks/pages/mintstation/validator/upgrade-915d5b43ba380866.js"],"/mobile":[e,"static/chunks/pages/mobile-dbeed056e2b07b53.js"],"/mobile/article":[e,"static/chunks/pages/mobile/article-bf04bfcc91995743.js"],"/mobile/integration/cosmjs":[e,"static/chunks/pages/mobile/integration/cosmjs-5cefdc1c4766d459.js"],"/mobile/integration/cosmostation":[e,"static/chunks/pages/mobile/integration/cosmostation-00a7b446a0e6983f.js"],"/mobile/integration/walletconnect/accounts":[e,"static/chunks/pages/mobile/integration/walletconnect/accounts-f898a3ff0bf2e2a5.js"],"/mobile/integration/walletconnect/connect":[e,"static/chunks/pages/mobile/integration/walletconnect/connect-da5469542e66a288.js"],"/mobile/integration/walletconnect/sign-tx":[e,"static/chunks/pages/mobile/integration/walletconnect/sign-tx-138b3666c566e2af.js"],"/mobile/integration/walletconnect2":[e,"static/chunks/pages/mobile/integration/walletconnect2-670a166e5a6ae087.js"],"/mobile/listing":[e,"static/chunks/pages/mobile/listing-119c2953957e9446.js"],sortedPages:["/","/_app","/_error","/apis","/apis/reference/builder/tx-builder/broadcast","/apis/reference/builder/tx-builder/build","/apis/reference/builder/tx-builder/make-signature","/apis/reference/custom/account","/apis/reference/historical/account/account-balances","/apis/reference/historical/account/account-richlist","/apis/reference/historical/account/account-transactions","/apis/reference/historical/account/account-votes","/apis/reference/historical/validator/validator-block-sign","/apis/reference/historical/validator/validator-commissions","/apis/reference/historical/validator/validator-delegators","/apis/reference/historical/validator/validator-power-events","/apis/reference/historical/validator/validator-proposed-blocks","/apis/reference/historical/validator/validator-votes","/apis/reference/proxy/lcd","/apis/reference/statistics/messages","/apis/reference/statistics/transactions","/apis/reference/utilities/assets","/apis/reference/utilities/inflation","/apis/reference/utilities/node-info","/apis/reference/utilities/prices","/apis/reference/utilities/staking-apr","/extension","/extension/guide/account/add-account","/extension/guide/account/add-ledger-account","/extension/guide/account/intro","/extension/guide/chains","/extension/guide/dapps","/extension/guide/settings","/extension/guide/transfer-coins","/extension/integration/aptos/connect-and-account","/extension/integration/aptos/event","/extension/integration/aptos/network","/extension/integration/aptos/provider","/extension/integration/aptos/sign-and-submit-transaction","/extension/integration/cosmos/Deprecated/accounts","/extension/integration/cosmos/Deprecated/chains","/extension/integration/cosmos/Deprecated/cw20-token","/extension/integration/cosmos/Deprecated/disconnect","/extension/integration/cosmos/Deprecated/error","/extension/integration/cosmos/Deprecated/event","/extension/integration/cosmos/Deprecated/provider","/extension/integration/cosmos/Deprecated/send-tx","/extension/integration/cosmos/Deprecated/sign-message","/extension/integration/cosmos/Deprecated/sign-tx","/extension/integration/cosmos/integrate-cosmjs","/extension/integration/cosmos/integrate-keplr","/extension/integration/cosmos/proto","/extension/integration/cosmos/react-hook","/extension/integration/cosmos/typescript","/extension/integration/cosmos/vanilla","/extension/integration/cosmos/wallet","/extension/integration/evm/event","/extension/integration/evm/provider","/extension/integration/evm/supported-rpc-methods","/extension/integration/evm/use-ethers","/extension/integration/evm/use-web3-js","/extension/integration/sui/connect-and-get-accounts","/extension/integration/sui/execute-move-call","/extension/integration/sui/provider","/extension/integration/sui/sign-and-execute-transaction","/mintscan","/mintscan/registry/assets","/mintscan/registry/cw20","/mintscan/registry/ecosystem","/mintscan/registry/erc20","/mintscan/registry/moniker","/mintstation","/mintstation/cli","/mintstation/cli/command","/mintstation/cli/setup","/mintstation/contracts/compile","/mintstation/contracts/create","/mintstation/contracts/deploy","/mintstation/contracts/execute","/mintstation/contracts/query","/mintstation/module","/mintstation/validator/command","/mintstation/validator/delegations","/mintstation/validator/localnet","/mintstation/validator/mainnet","/mintstation/validator/upgrade","/mobile","/mobile/article","/mobile/integration/cosmjs","/mobile/integration/cosmostation","/mobile/integration/walletconnect/accounts","/mobile/integration/walletconnect/connect","/mobile/integration/walletconnect/sign-tx","/mobile/integration/walletconnect2","/mobile/listing"]}}("static/chunks/2673-94a48fd42354951f.js","static/chunks/9659-7e42213312290ae3.js","static/chunks/3632-f92d3273fa10a691.js","static/chunks/834-db3d8814d266a32e.js","static/css/bbaf5783f9f9157b.css","static/css/184a94d79f54225f.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(e,t,s,i,n,a){return{__rewrites:{afterFiles:[{has:void 0,source:"/:path*/_meta",destination:"/404"}],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-8799e515fca95f3d.js"],"/_error":["static/chunks/pages/_error-f2769d6921702be7.js"],"/apis":[e,"static/chunks/pages/apis-1935f10935a3cd18.js"],"/apis/reference/builder/tx-builder/broadcast":[e,t,s,i,n,"static/chunks/pages/apis/reference/builder/tx-builder/broadcast-07cddfbc6a05cda9.js"],"/apis/reference/builder/tx-builder/build":[e,t,s,i,n,"static/chunks/pages/apis/reference/builder/tx-builder/build-fc05befe9f97c77b.js"],"/apis/reference/builder/tx-builder/make-signature":[e,t,s,i,n,"static/chunks/pages/apis/reference/builder/tx-builder/make-signature-35836d371338d25e.js"],"/apis/reference/custom/account":[e,t,s,i,n,"static/chunks/pages/apis/reference/custom/account-e6c18223ffedad54.js"],"/apis/reference/historical/account/account-balances":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-balances-21d46cb997316a69.js"],"/apis/reference/historical/account/account-richlist":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-richlist-06e0127911b8d599.js"],"/apis/reference/historical/account/account-transactions":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-transactions-ea6047ca78e6a427.js"],"/apis/reference/historical/account/account-votes":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/account/account-votes-fbc2972bc724ca3b.js"],"/apis/reference/historical/validator/validator-block-sign":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-block-sign-fc276d014bef47c7.js"],"/apis/reference/historical/validator/validator-commissions":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-commissions-348a55851d9c1978.js"],"/apis/reference/historical/validator/validator-delegators":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-delegators-0ff4f2f0d83683d3.js"],"/apis/reference/historical/validator/validator-power-events":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-power-events-3bfca321ba3d8080.js"],"/apis/reference/historical/validator/validator-proposed-blocks":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-proposed-blocks-86b62f5bd99837da.js"],"/apis/reference/historical/validator/validator-votes":[e,t,s,i,n,"static/chunks/pages/apis/reference/historical/validator/validator-votes-b42bd4c7ffb5b635.js"],"/apis/reference/proxy/lcd":[e,t,s,i,n,"static/chunks/pages/apis/reference/proxy/lcd-e28c74d45ec77774.js"],"/apis/reference/statistics/messages":[e,t,s,i,n,"static/chunks/pages/apis/reference/statistics/messages-dd684c0f3bd00dd9.js"],"/apis/reference/statistics/transactions":[e,t,s,i,n,"static/chunks/pages/apis/reference/statistics/transactions-931dbbc3f3436972.js"],"/apis/reference/utilities/assets":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/assets-e46eb592ac2b8727.js"],"/apis/reference/utilities/inflation":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/inflation-21c85c1e36d54829.js"],"/apis/reference/utilities/node-info":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/node-info-e7589791aa51cf12.js"],"/apis/reference/utilities/prices":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/prices-1aead3ba9d7af381.js"],"/apis/reference/utilities/staking-apr":[e,t,s,i,n,"static/chunks/pages/apis/reference/utilities/staking-apr-64762dc4d64ab662.js"],"/extension":[e,"static/chunks/pages/extension-b19ac24e40025ea0.js"],"/extension/guide/account/add-account":[e,"static/chunks/pages/extension/guide/account/add-account-e97d63ab94a33e30.js"],"/extension/guide/account/add-ledger-account":[e,"static/chunks/pages/extension/guide/account/add-ledger-account-32eff735973ba70b.js"],"/extension/guide/account/intro":[e,"static/chunks/pages/extension/guide/account/intro-80ade08395378562.js"],"/extension/guide/chains":[e,"static/chunks/pages/extension/guide/chains-fc7b17cae89775ba.js"],"/extension/guide/dapps":[e,"static/chunks/pages/extension/guide/dapps-7ce295d726b17279.js"],"/extension/guide/settings":[e,"static/chunks/pages/extension/guide/settings-9f404814af08ad3e.js"],"/extension/guide/transfer-coins":[e,"static/chunks/pages/extension/guide/transfer-coins-9cbf644ffd30d5e7.js"],"/extension/integration/aptos/connect-and-account":[e,"static/chunks/pages/extension/integration/aptos/connect-and-account-87fb48bb2b2808cd.js"],"/extension/integration/aptos/event":[e,"static/chunks/pages/extension/integration/aptos/event-db717b33b7586d5b.js"],"/extension/integration/aptos/network":[e,"static/chunks/pages/extension/integration/aptos/network-cfeac72c7d6476de.js"],"/extension/integration/aptos/provider":[e,"static/chunks/pages/extension/integration/aptos/provider-ceddebe64f3aa1e8.js"],"/extension/integration/aptos/sign-and-submit-transaction":[e,"static/chunks/pages/extension/integration/aptos/sign-and-submit-transaction-f483fc53084aea4e.js"],"/extension/integration/cosmos/Deprecated/accounts":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/accounts-97beab31a0ba7704.js"],"/extension/integration/cosmos/Deprecated/chains":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/chains-4c85a4ea5cab60e5.js"],"/extension/integration/cosmos/Deprecated/cw20-token":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/cw20-token-b2a3c9c33a70a1f5.js"],"/extension/integration/cosmos/Deprecated/disconnect":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/disconnect-282124a859b46846.js"],"/extension/integration/cosmos/Deprecated/error":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/error-f7c196e668dd4c11.js"],"/extension/integration/cosmos/Deprecated/event":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/event-11916b8b0954dfbd.js"],"/extension/integration/cosmos/Deprecated/provider":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/provider-63cba436373b62ae.js"],"/extension/integration/cosmos/Deprecated/send-tx":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/send-tx-b5bd1870281af392.js"],"/extension/integration/cosmos/Deprecated/sign-message":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/sign-message-28eef63429caa033.js"],"/extension/integration/cosmos/Deprecated/sign-tx":[e,"static/chunks/pages/extension/integration/cosmos/Deprecated/sign-tx-e989564af8d65c7b.js"],"/extension/integration/cosmos/integrate-cosmjs":[e,"static/chunks/pages/extension/integration/cosmos/integrate-cosmjs-0b4adc5cce99abcb.js"],"/extension/integration/cosmos/integrate-keplr":[e,"static/chunks/pages/extension/integration/cosmos/integrate-keplr-7b17397d69eac51a.js"],"/extension/integration/cosmos/proto":["static/chunks/4ad82c5e-41a8269e9a9413de.js",e,"static/chunks/3248-b7e8af1a14065f4e.js","static/css/452d35adf31273a3.css","static/chunks/pages/extension/integration/cosmos/proto-67afe08431eceee5.js"],"/extension/integration/cosmos/react-hook":[e,"static/css/395a9d5eab9ca9fe.css","static/chunks/pages/extension/integration/cosmos/react-hook-7a12628b3f8be016.js"],"/extension/integration/cosmos/typescript":[e,t,a,"static/chunks/pages/extension/integration/cosmos/typescript-c37756cc5e6d2716.js"],"/extension/integration/cosmos/vanilla":[e,a,"static/chunks/pages/extension/integration/cosmos/vanilla-18ca85ff1e27b4a3.js"],"/extension/integration/cosmos/wallet":[e,t,"static/css/ca123d28da23ee56.css","static/chunks/pages/extension/integration/cosmos/wallet-1aaa84b0b3e41194.js"],"/extension/integration/evm/event":[e,"static/chunks/pages/extension/integration/evm/event-2b680ad131bc11d7.js"],"/extension/integration/evm/provider":[e,"static/chunks/pages/extension/integration/evm/provider-9e0d58d3e2cf944f.js"],"/extension/integration/evm/supported-rpc-methods":[e,"static/chunks/pages/extension/integration/evm/supported-rpc-methods-0077b8458e939640.js"],"/extension/integration/evm/use-ethers":[e,"static/chunks/pages/extension/integration/evm/use-ethers-cf10004e421b12db.js"],"/extension/integration/evm/use-web3-js":[e,"static/chunks/pages/extension/integration/evm/use-web3-js-9856175021add6a3.js"],"/extension/integration/sui/connect-and-get-accounts":[e,"static/chunks/pages/extension/integration/sui/connect-and-get-accounts-714b6228893187d2.js"],"/extension/integration/sui/execute-move-call":[e,"static/chunks/pages/extension/integration/sui/execute-move-call-0d20dae09e329454.js"],"/extension/integration/sui/provider":[e,"static/chunks/pages/extension/integration/sui/provider-b0ca14f25d513e5e.js"],"/extension/integration/sui/sign-and-execute-transaction":[e,"static/chunks/pages/extension/integration/sui/sign-and-execute-transaction-69d594a6afb078d6.js"],"/mintscan":[e,"static/chunks/pages/mintscan-f41605ff4f1258d9.js"],"/mintscan/registry/assets":[e,"static/chunks/pages/mintscan/registry/assets-ef8f7929e5d77052.js"],"/mintscan/registry/cw20":[e,"static/chunks/pages/mintscan/registry/cw20-97e96e6544235088.js"],"/mintscan/registry/ecosystem":[e,"static/chunks/pages/mintscan/registry/ecosystem-24c84c5977164a60.js"],"/mintscan/registry/erc20":[e,"static/chunks/pages/mintscan/registry/erc20-be025bec010c93e2.js"],"/mintscan/registry/moniker":[e,"static/chunks/pages/mintscan/registry/moniker-74789a4ca3f4dd83.js"],"/mintstation":[e,"static/chunks/pages/mintstation-5c009ce936af1e59.js"],"/mintstation/cli":[e,"static/chunks/pages/mintstation/cli-eca5d973bc213845.js"],"/mintstation/cli/command":[e,"static/chunks/pages/mintstation/cli/command-51ed23a14d8f8ad3.js"],"/mintstation/cli/setup":[e,"static/chunks/pages/mintstation/cli/setup-cb6dc6c97dbd7d7b.js"],"/mintstation/contracts/compile":[e,"static/chunks/pages/mintstation/contracts/compile-f669f7160d7bebd1.js"],"/mintstation/contracts/create":[e,"static/chunks/pages/mintstation/contracts/create-ed4552aab8355038.js"],"/mintstation/contracts/deploy":[e,"static/chunks/pages/mintstation/contracts/deploy-a1601c9a15a4ecf3.js"],"/mintstation/contracts/execute":[e,"static/chunks/pages/mintstation/contracts/execute-94979a1420c0d6e1.js"],"/mintstation/contracts/query":[e,"static/chunks/pages/mintstation/contracts/query-c5a9ae0704eff889.js"],"/mintstation/module":[e,"static/chunks/pages/mintstation/module-2046048363f0c382.js"],"/mintstation/validator/command":[e,"static/chunks/pages/mintstation/validator/command-bf77bf78efb863aa.js"],"/mintstation/validator/delegations":[e,"static/chunks/pages/mintstation/validator/delegations-2ac7d436da64796d.js"],"/mintstation/validator/localnet":[e,"static/chunks/pages/mintstation/validator/localnet-807f357eb62d5947.js"],"/mintstation/validator/mainnet":[e,"static/chunks/pages/mintstation/validator/mainnet-a8558d5a7cb1f976.js"],"/mintstation/validator/upgrade":[e,"static/chunks/pages/mintstation/validator/upgrade-75eaa905f500cc15.js"],"/mobile":[e,"static/chunks/pages/mobile-dbeed056e2b07b53.js"],"/mobile/article":[e,"static/chunks/pages/mobile/article-bf04bfcc91995743.js"],"/mobile/integration/cosmjs":[e,"static/chunks/pages/mobile/integration/cosmjs-5cefdc1c4766d459.js"],"/mobile/integration/cosmostation":[e,"static/chunks/pages/mobile/integration/cosmostation-00a7b446a0e6983f.js"],"/mobile/integration/walletconnect/accounts":[e,"static/chunks/pages/mobile/integration/walletconnect/accounts-f898a3ff0bf2e2a5.js"],"/mobile/integration/walletconnect/connect":[e,"static/chunks/pages/mobile/integration/walletconnect/connect-da5469542e66a288.js"],"/mobile/integration/walletconnect/sign-tx":[e,"static/chunks/pages/mobile/integration/walletconnect/sign-tx-138b3666c566e2af.js"],"/mobile/integration/walletconnect2":[e,"static/chunks/pages/mobile/integration/walletconnect2-670a166e5a6ae087.js"],"/mobile/listing":[e,"static/chunks/pages/mobile/listing-119c2953957e9446.js"],sortedPages:["/","/_app","/_error","/apis","/apis/reference/builder/tx-builder/broadcast","/apis/reference/builder/tx-builder/build","/apis/reference/builder/tx-builder/make-signature","/apis/reference/custom/account","/apis/reference/historical/account/account-balances","/apis/reference/historical/account/account-richlist","/apis/reference/historical/account/account-transactions","/apis/reference/historical/account/account-votes","/apis/reference/historical/validator/validator-block-sign","/apis/reference/historical/validator/validator-commissions","/apis/reference/historical/validator/validator-delegators","/apis/reference/historical/validator/validator-power-events","/apis/reference/historical/validator/validator-proposed-blocks","/apis/reference/historical/validator/validator-votes","/apis/reference/proxy/lcd","/apis/reference/statistics/messages","/apis/reference/statistics/transactions","/apis/reference/utilities/assets","/apis/reference/utilities/inflation","/apis/reference/utilities/node-info","/apis/reference/utilities/prices","/apis/reference/utilities/staking-apr","/extension","/extension/guide/account/add-account","/extension/guide/account/add-ledger-account","/extension/guide/account/intro","/extension/guide/chains","/extension/guide/dapps","/extension/guide/settings","/extension/guide/transfer-coins","/extension/integration/aptos/connect-and-account","/extension/integration/aptos/event","/extension/integration/aptos/network","/extension/integration/aptos/provider","/extension/integration/aptos/sign-and-submit-transaction","/extension/integration/cosmos/Deprecated/accounts","/extension/integration/cosmos/Deprecated/chains","/extension/integration/cosmos/Deprecated/cw20-token","/extension/integration/cosmos/Deprecated/disconnect","/extension/integration/cosmos/Deprecated/error","/extension/integration/cosmos/Deprecated/event","/extension/integration/cosmos/Deprecated/provider","/extension/integration/cosmos/Deprecated/send-tx","/extension/integration/cosmos/Deprecated/sign-message","/extension/integration/cosmos/Deprecated/sign-tx","/extension/integration/cosmos/integrate-cosmjs","/extension/integration/cosmos/integrate-keplr","/extension/integration/cosmos/proto","/extension/integration/cosmos/react-hook","/extension/integration/cosmos/typescript","/extension/integration/cosmos/vanilla","/extension/integration/cosmos/wallet","/extension/integration/evm/event","/extension/integration/evm/provider","/extension/integration/evm/supported-rpc-methods","/extension/integration/evm/use-ethers","/extension/integration/evm/use-web3-js","/extension/integration/sui/connect-and-get-accounts","/extension/integration/sui/execute-move-call","/extension/integration/sui/provider","/extension/integration/sui/sign-and-execute-transaction","/mintscan","/mintscan/registry/assets","/mintscan/registry/cw20","/mintscan/registry/ecosystem","/mintscan/registry/erc20","/mintscan/registry/moniker","/mintstation","/mintstation/cli","/mintstation/cli/command","/mintstation/cli/setup","/mintstation/contracts/compile","/mintstation/contracts/create","/mintstation/contracts/deploy","/mintstation/contracts/execute","/mintstation/contracts/query","/mintstation/module","/mintstation/validator/command","/mintstation/validator/delegations","/mintstation/validator/localnet","/mintstation/validator/mainnet","/mintstation/validator/upgrade","/mobile","/mobile/article","/mobile/integration/cosmjs","/mobile/integration/cosmostation","/mobile/integration/walletconnect/accounts","/mobile/integration/walletconnect/connect","/mobile/integration/walletconnect/sign-tx","/mobile/integration/walletconnect2","/mobile/listing"]}}("static/chunks/2673-94a48fd42354951f.js","static/chunks/9659-7e42213312290ae3.js","static/chunks/5369-d81cbd2830bbc3d6.js","static/chunks/834-cb5fbe4e5053a4fc.js","static/css/bbaf5783f9f9157b.css","static/css/184a94d79f54225f.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/s4NzmK6cppjKJW4YpxN0m/_ssgManifest.js b/_next/static/ecNbfZJR6fZMgeYV_KEka/_ssgManifest.js similarity index 100% rename from _next/static/s4NzmK6cppjKJW4YpxN0m/_ssgManifest.js rename to _next/static/ecNbfZJR6fZMgeYV_KEka/_ssgManifest.js diff --git a/apis.html b/apis.html index 058a1547..a5ba9fff 100644 --- a/apis.html +++ b/apis.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
Introduction

Introduction

+
API
Introduction

Introduction

Mintscan API (opens in a new tab), integral to Mintscan 2.0, stems from enterprise-grade onchain data indexing. Through features like tx builder and historical statistics APIs, it offers easy access to dynamic onchain data, including account balances and staking APR. Streamlining raw data processing, Mintscan API simplifies Interchain dapp development, positioning itself as a key piece in the Interchain infrastructure puzzle.

For inquery, please contact us api@cosmostation.io

How to get API Key?

@@ -40,4 +40,4 @@

Stride

API Reference

-
TypeAPICredit
Proxy APILCD Proxy1
Custom APIAccount5
Statistics APITransaction Statistics3
Message Statistics3
Builder APITransaction Builder5 ~ 10
Historical APIAccount Transactions5
Account Votes5
Account Balance History7
Richlist10
Validator Votes5
Validator Commission History5
Validator Delegators10
Validator Block Sign1
Validator Voting Power1
Validator Proposed Blocks1
Utility APINode Info5
Inflation3
Staking APR5
Assets3
Prices3 ~ 5

MIT 2023 © Nextra.
\ No newline at end of file +
TypeAPICredit
Proxy APILCD Proxy1
Custom APIAccount5
Statistics APITransaction Statistics3
Message Statistics3
Builder APITransaction Builder5 ~ 10
Historical APIAccount Transactions5
Account Votes5
Account Balance History7
Richlist10
Validator Votes5
Validator Commission History5
Validator Delegators10
Validator Block Sign1
Validator Voting Power1
Validator Proposed Blocks1
Utility APINode Info5
Inflation3
Staking APR5
Assets3
Prices3 ~ 5

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/builder/tx-builder/broadcast.html b/apis/reference/builder/tx-builder/broadcast.html index 5dbd24be..53e41e10 100644 --- a/apis/reference/builder/tx-builder/broadcast.html +++ b/apis/reference/builder/tx-builder/broadcast.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Builder API
Transaction Builder
Broadcast Transaction

Broadcast Transaction

+
API
API Reference
Builder API
Transaction Builder
Broadcast Transaction

Broadcast Transaction

[POST] /v1/:network/tx-builder/broadcast

Request

Headers
Authorization: Bearer {access_token}
@@ -40,4 +40,4 @@ 

"events": [] } }

-

Try API

You are unable to try executing API from this page.
Method : POST
URL
/v1/:network/tx-builder/broadcast
CallURL
https://apis.mintscan.io/v1/:network/tx-builder/broadcast
Header
Bear Token*
Parameters
network*
Body

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

You are unable to try executing API from this page.
Method : POST
URL
/v1/:network/tx-builder/broadcast
CallURL
https://apis.mintscan.io/v1/:network/tx-builder/broadcast
Header
Bear Token*
Parameters
network*
Body

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/builder/tx-builder/build.html b/apis/reference/builder/tx-builder/build.html index 67b5779a..81140794 100644 --- a/apis/reference/builder/tx-builder/build.html +++ b/apis/reference/builder/tx-builder/build.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Builder API
Transaction Builder
Build Transaction

Build Transactions

+
-

Try API

Method : POST
URL
/v1/:network/tx-builder
CallURL
https://apis.mintscan.io/v1/:network/tx-builder
Header
Bear Token*
Parameters
network*
Body

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : POST
URL
/v1/:network/tx-builder
CallURL
https://apis.mintscan.io/v1/:network/tx-builder
Header
Bear Token*
Parameters
network*
Body

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/builder/tx-builder/make-signature.html b/apis/reference/builder/tx-builder/make-signature.html index 508547b1..cea6bead 100644 --- a/apis/reference/builder/tx-builder/make-signature.html +++ b/apis/reference/builder/tx-builder/make-signature.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Builder API
Transaction Builder
Sign Transaction

How Make Signature

+
API
API Reference
Builder API
Transaction Builder
Sign Transaction

How Make Signature

This documentation page provides an example of generating a signature using the tx (SignDoc) produced in the Build Transaction process.
The example code in this document is written in Node.js. Users can implement the sign logic based on their respective programming language.

Make Signature
// Import packages for sign
@@ -60,4 +60,4 @@
  
 // Use this to broadcast the transaction
 const signature = `0x${signatureHex}`;
-// Example: 0x10d0688f545e01802023a12cba8a69be50bd6e504b21781d97e7baaab61c4e8619753e64a377e85bf1488b4cdc34c87ce49c4d0d8fc0b52857129bf5aeccaed5

MIT 2023 © Nextra.
\ No newline at end of file +// Example: 0x10d0688f545e01802023a12cba8a69be50bd6e504b21781d97e7baaab61c4e8619753e64a377e85bf1488b4cdc34c87ce49c4d0d8fc0b52857129bf5aeccaed5

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/custom/account.html b/apis/reference/custom/account.html index 8af68db6..055d75d7 100644 --- a/apis/reference/custom/account.html +++ b/apis/reference/custom/account.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Custom API
Account

Account

+
API
API Reference
Custom API
Account

Account

[GET] /v1/:network/accounts/:address

Get account information with current balances

Request

@@ -22,4 +22,4 @@

# The address of account # (string, required) address: cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q

-

Try API

Method : GET
URL
/v1/:network/accounts/:address
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address
Header
Bear Token*
Parameters
network*
address*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/accounts/:address
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address
Header
Bear Token*
Parameters
network*
address*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/account/account-balances.html b/apis/reference/historical/account/account-balances.html index 07c35c41..58814d2e 100644 --- a/apis/reference/historical/account/account-balances.html +++ b/apis/reference/historical/account/account-balances.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Account
Account Balance History

Account Balance History

+
API
API Reference
Historical API
Account
Account Balance History

Account Balance History

[GET] /v1/:network/accounts/:address/balances

Get balance history of an account

Request

@@ -34,4 +34,4 @@

# Search end datetime # (datetime, optional, default: CURRENT_TIMESTAMP) toDateTime: 2023-07-21 23:59:59

-

Try API

Method : GET
URL
/v1/:network/accounts/:address/balances
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address/balances
Header
Bear Token*
Parameters
network*
address*
Queries
take
searchAfter
fromDateTime
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/accounts/:address/balances
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address/balances
Header
Bear Token*
Parameters
network*
address*
Queries
take
searchAfter
fromDateTime
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/account/account-richlist.html b/apis/reference/historical/account/account-richlist.html index 3a844a51..7f10e28b 100644 --- a/apis/reference/historical/account/account-richlist.html +++ b/apis/reference/historical/account/account-richlist.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Account
Account Richlist

Account Balance History

+
API
API Reference
Historical API
Account
Account Richlist

Account Balance History

[GET] /v1/:network/accounts/richlist/:symbol

Get richlist for the given symbol

Request

@@ -31,4 +31,4 @@

# To display detailed information of the balance # (boolean, optional, default: false) detail: true

-

Try API

Method : GET
URL
/v1/:network/accounts/richlist/:symbol
CallURL
https://apis.mintscan.io/v1/:network/accounts/richlist/:symbol
Header
Bear Token*
Parameters
network*
symbol*
Queries
take
searchAfter
detail

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/accounts/richlist/:symbol
CallURL
https://apis.mintscan.io/v1/:network/accounts/richlist/:symbol
Header
Bear Token*
Parameters
network*
symbol*
Queries
take
searchAfter
detail

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/account/account-transactions.html b/apis/reference/historical/account/account-transactions.html index de8ef8e4..1af4a973 100644 --- a/apis/reference/historical/account/account-transactions.html +++ b/apis/reference/historical/account/account-transactions.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Account
Account Transactions

Account Transactions

+
API
API Reference
Historical API
Account
Account Transactions

Account Transactions

[GET] /v1/:network/accounts/:address/transactions

Get transactions of an account

Request

@@ -37,4 +37,4 @@

# Value of `pagination.searchAfter` from previous request for pagination # (string, optional) searchAfter: MTY4MDUxNjI5NjAwMHwxNDczMjU5OQ==

-

Try API

Method : GET
URL
/v1/:network/accounts/:address/transactions
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address/transactions
Header
Bear Token*
Parameters
network*
address*
Queries
take
searchAfter
messageTypes[0]
messageTypes[1]
messageTypes[2]
fromDateTime
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/accounts/:address/transactions
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address/transactions
Header
Bear Token*
Parameters
network*
address*
Queries
take
searchAfter
messageTypes[0]
messageTypes[1]
messageTypes[2]
fromDateTime
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/account/account-votes.html b/apis/reference/historical/account/account-votes.html index 320ef81d..11eaccf5 100644 --- a/apis/reference/historical/account/account-votes.html +++ b/apis/reference/historical/account/account-votes.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Account
Account Votes

Account Votes

+
API
API Reference
Historical API
Account
Account Votes

Account Votes

[GET] /v1/:network/accounts/:address/votes

Get a list of votes of an account

Request

@@ -26,4 +26,4 @@

# (boolean, optional, default: false) distinct: true

-

Try API

Method : GET
URL
/v1/:network/accounts/:address/votes
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address/votes
Header
Bear Token*
Parameters
network*
address*
Queries
distinct

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/accounts/:address/votes
CallURL
https://apis.mintscan.io/v1/:network/accounts/:address/votes
Header
Bear Token*
Parameters
network*
address*
Queries
distinct

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/validator/validator-block-sign.html b/apis/reference/historical/validator/validator-block-sign.html index b630d15d..c95c0e45 100644 --- a/apis/reference/historical/validator/validator-block-sign.html +++ b/apis/reference/historical/validator/validator-block-sign.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Validator
Validator Block Sign

Validator Latest Block Sign

+
API
API Reference
Historical API
Validator
Validator Block Sign

Validator Latest Block Sign

[GET] /v1/:network/validators/:validatorAddress/latestUptime

Get latest blocks signature of validator

Request

@@ -22,4 +22,4 @@

# The address of account # (string, required) validatorAddress: cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn

-

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/latestUptime
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/latestUptime
Header
Bear Token*
Parameters
network*
validatorAddress*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/latestUptime
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/latestUptime
Header
Bear Token*
Parameters
network*
validatorAddress*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/validator/validator-commissions.html b/apis/reference/historical/validator/validator-commissions.html index 1be18da7..895d0331 100644 --- a/apis/reference/historical/validator/validator-commissions.html +++ b/apis/reference/historical/validator/validator-commissions.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Validator
Validator Commission Balance History

Validator Commission Balance History

+
API
API Reference
Historical API
Validator
Validator Commission Balance History

Validator Commission Balance History

[GET] /v1/:network/validators/:validatorAddress/commissions

Get commission balance history of an account

Request

@@ -34,4 +34,4 @@

# Search end datetime # (datetime, optional, default: CURRENT_TIMESTAMP) toDateTime: 2023-07-21 23:59:59

-

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/commissions
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/commissions
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
searchAfter
fromDateTime
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/commissions
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/commissions
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
searchAfter
fromDateTime
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/validator/validator-delegators.html b/apis/reference/historical/validator/validator-delegators.html index 59fe5a25..7ea11ef2 100644 --- a/apis/reference/historical/validator/validator-delegators.html +++ b/apis/reference/historical/validator/validator-delegators.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Validator
Validator Delegators

Validator Delegators

+
API
API Reference
Historical API
Validator
Validator Delegators

Validator Delegators

[GET] /v1/:network/validators/:validatorAddress/delegators

Get a list of richlist of a symbol

Request

@@ -29,4 +29,4 @@

# (number, optional, default: 0) from: 20

-

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/delegators
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/delegators
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
from

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/delegators
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/delegators
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
from

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/validator/validator-power-events.html b/apis/reference/historical/validator/validator-power-events.html index b00642e1..87fd36ef 100644 --- a/apis/reference/historical/validator/validator-power-events.html +++ b/apis/reference/historical/validator/validator-power-events.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Validator
Validator Voting Power Events

Validator Voting Power Events

+
API
API Reference
Historical API
Validator
Validator Voting Power Events

Validator Voting Power Events

[GET] /v1/:network/validators/:validatorAddress/powerEvents

Get voting power events of validator

Request

@@ -28,4 +28,4 @@

# Value of `pagination.searchAfter` from previous request for pagination # (string, optional) searchAfter: MTY4OTc1NTU4NjAwMA==

-

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/powerEvents
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/powerEvents
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
searchAfter

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/powerEvents
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/powerEvents
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
searchAfter

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/validator/validator-proposed-blocks.html b/apis/reference/historical/validator/validator-proposed-blocks.html index a56d88a5..3f160c87 100644 --- a/apis/reference/historical/validator/validator-proposed-blocks.html +++ b/apis/reference/historical/validator/validator-proposed-blocks.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Validator
Validator Proposed Blocks

Validator Voting Power Events

+
API
API Reference
Historical API
Validator
Validator Proposed Blocks

Validator Voting Power Events

[GET] /v1/:network/validators/:validatorAddress/proposed

Get blocks proposed by the validator

Request

@@ -28,4 +28,4 @@

# Value of `pagination.searchAfter` from previous request for pagination # (string, optional) searchAfter: MTY4OTc1NTU4NjAwMA==

-

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/proposed
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/proposed
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
searchAfter

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/validators/:validatorAddress/proposed
CallURL
https://apis.mintscan.io/v1/:network/validators/:validatorAddress/proposed
Header
Bear Token*
Parameters
network*
validatorAddress*
Queries
take
searchAfter

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/historical/validator/validator-votes.html b/apis/reference/historical/validator/validator-votes.html index 20479bef..a0cdf7b5 100644 --- a/apis/reference/historical/validator/validator-votes.html +++ b/apis/reference/historical/validator/validator-votes.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Historical API
Validator
Validator Votes

Validator Votes

+
API
API Reference
Historical API
Validator
Validator Votes

Validator Votes

[GET] /v1/:network/validators/:validatorAddress/transactions

Get a list of votes of a validator

Request

@@ -25,4 +25,4 @@

Queries
# Whether to remove duplicates for the same proposal
 # (boolean, optional, default: false)
 distinct: true

-

Try API

Method : GET
URL
/v1/:network/validators/:address/votes
CallURL
https://apis.mintscan.io/v1/:network/validators/:address/votes
Header
Bear Token*
Parameters
network*
address*
Queries
distinct

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/validators/:address/votes
CallURL
https://apis.mintscan.io/v1/:network/validators/:address/votes
Header
Bear Token*
Parameters
network*
address*
Queries
distinct

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/proxy/lcd.html b/apis/reference/proxy/lcd.html index ca29cc41..05c01156 100644 --- a/apis/reference/proxy/lcd.html +++ b/apis/reference/proxy/lcd.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Proxy
LCD Proxy

LCD Proxy

+
API
API Reference
Proxy
LCD Proxy

LCD Proxy

Proxy API for making LCD requests to BlockChain Node

[GET][POST] /v1/:network/lcd/*

You can directly access the Node LCD API by referring to the Swagger or document of the Network you want to make requests to.
@@ -24,4 +24,4 @@

# The url of lcd API. See details in Swagger or document of the network # (string, required) *: /cosmos/bank/v1beta1/balances/cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q

-

Try API

Method : GET
URL
/:network/lcd/:url
CallURL
https://apis.mintscan.io/:network/lcd/:url
Header
Bear Token*
Parameters
network*
url*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/:network/lcd/:url
CallURL
https://apis.mintscan.io/:network/lcd/:url
Header
Bear Token*
Parameters
network*
url*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/statistics/messages.html b/apis/reference/statistics/messages.html index d5eeaa61..106fd551 100644 --- a/apis/reference/statistics/messages.html +++ b/apis/reference/statistics/messages.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Statistics API
Message Types

Message Counts

+
API
API Reference
Statistics API
Message Types

Message Counts

[GET] /v1/:network/statistics/messages

Get The Number of Transactions per each message type over the last 30 days

Request

@@ -22,4 +22,4 @@

Queries
# Search end datetime
 # (datetime, optional, default: CURRENT_TIMESTAMP)
 toDateTime: 2023-07-21 23:59:59

-

Try API

Method : GET
URL
/v1/:network/statistics/messages
CallURL
https://apis.mintscan.io/v1/:network/statistics/messages
Header
Bear Token*
Parameters
network*
Queries
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/statistics/messages
CallURL
https://apis.mintscan.io/v1/:network/statistics/messages
Header
Bear Token*
Parameters
network*
Queries
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/statistics/transactions.html b/apis/reference/statistics/transactions.html index c992a9b2..5f29285f 100644 --- a/apis/reference/statistics/transactions.html +++ b/apis/reference/statistics/transactions.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Statistics API
Transactions

Transactions Counts

+
API
API Reference
Statistics API
Transactions

Transactions Counts

[GET] /v1/:network/statistics/txs/hourly

Get The Number of Transactions Per Hour

Request

@@ -44,4 +44,4 @@

Queries
# Search end datetime
 # (datetime, optional, default: CURRENT_TIMESTAMP)
 toDateTime: 2023-07-21 23:59:59

-

Try API

Method : GET
URL
/v1/:network/statistics/txs/weekly
CallURL
https://apis.mintscan.io/v1/:network/statistics/txs/weekly
Header
Bear Token*
Parameters
network*
Queries
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/statistics/txs/weekly
CallURL
https://apis.mintscan.io/v1/:network/statistics/txs/weekly
Header
Bear Token*
Parameters
network*
Queries
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/utilities/assets.html b/apis/reference/utilities/assets.html index a412b2ca..ca17a29c 100644 --- a/apis/reference/utilities/assets.html +++ b/apis/reference/utilities/assets.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Utility API
Assets

Assets

+
-

Try API

Method : GET
URL
/v1/:network/assets/:symbol
CallURL
https://apis.mintscan.io/v1/:network/assets/:symbol
Header
Bear Token*
Parameters
network*
symbol*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/assets/:symbol
CallURL
https://apis.mintscan.io/v1/:network/assets/:symbol
Header
Bear Token*
Parameters
network*
symbol*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/utilities/inflation.html b/apis/reference/utilities/inflation.html index bc4e6c17..04934886 100644 --- a/apis/reference/utilities/inflation.html +++ b/apis/reference/utilities/inflation.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Utility API
Inflation

Chain Inflation

+
API
API Reference
Utility API
Inflation

Chain Inflation

[GET] /v1/:network/inflation

Get inflation data from the chain

Request

@@ -19,4 +19,4 @@

Parameters
# The name of network
 # (string, required)
 network: cosmos

-

Try API

Method : GET
URL
/v1/:network/inflation
CallURL
https://apis.mintscan.io/v1/:network/inflation
Header
Bear Token*
Parameters
network*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/inflation
CallURL
https://apis.mintscan.io/v1/:network/inflation
Header
Bear Token*
Parameters
network*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/utilities/node-info.html b/apis/reference/utilities/node-info.html index a7a771cc..340c7a8d 100644 --- a/apis/reference/utilities/node-info.html +++ b/apis/reference/utilities/node-info.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Utility API
Node Info

Node Info

+
API
API Reference
Utility API
Node Info

Node Info

[GET] /v1/:network/node_info

Get node informations with chain parameters

Request

@@ -20,4 +20,4 @@

# (string, required) network: cosmos

-

Try API

Method : GET
URL
/v1/:network/node_info
CallURL
https://apis.mintscan.io/v1/:network/node_info
Header
Bear Token*
Parameters
network*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/node_info
CallURL
https://apis.mintscan.io/v1/:network/node_info
Header
Bear Token*
Parameters
network*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/utilities/prices.html b/apis/reference/utilities/prices.html index 4ffc1c37..4a8b51bf 100644 --- a/apis/reference/utilities/prices.html +++ b/apis/reference/utilities/prices.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Utility API
Prices

Prices

+
-

Try API

Method : GET
URL
/v1/prices/coingeckoId/:geckoId
CallURL
https://apis.mintscan.io/v1/prices/coingeckoId/:geckoId
Header
Bear Token*
Parameters
geckoId*
Queries
ticks
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/prices/coingeckoId/:geckoId
CallURL
https://apis.mintscan.io/v1/prices/coingeckoId/:geckoId
Header
Bear Token*
Parameters
geckoId*
Queries
ticks
toDateTime

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/apis/reference/utilities/staking-apr.html b/apis/reference/utilities/staking-apr.html index 4656ae7e..8fc1df05 100644 --- a/apis/reference/utilities/staking-apr.html +++ b/apis/reference/utilities/staking-apr.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
API
API Reference
Utility API
Staking APR

Chain Staking APR

+
API
API Reference
Utility API
Staking APR

Chain Staking APR

[GET] /v1/:network/apr

Get default staking APR of the chain

Request

@@ -30,4 +30,4 @@

# Validator address to delegate # (string, required) validatorAddress: cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn

-

Try API

Method : GET
URL
/v1/:network/apr/:validatorAddress
CallURL
https://apis.mintscan.io/v1/:network/apr/:validatorAddress
Header
Bear Token*
Parameters
network*
validatorAddress*

MIT 2023 © Nextra.
\ No newline at end of file +

Try API

Method : GET
URL
/v1/:network/apr/:validatorAddress
CallURL
https://apis.mintscan.io/v1/:network/apr/:validatorAddress
Header
Bear Token*
Parameters
network*
validatorAddress*

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension.html b/extension.html index 1550e50b..266dcbed 100644 --- a/extension.html +++ b/extension.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Introduction

Introduction

+
Extension Wallet
Introduction

Introduction

Cosmostation Wallet Extension is a non-custodial chrome extension wallet that supports multiple sovereign networks and inter-blockchain bridges. The wallet extension allows users to easily interact with networks and decentralized applications with just a few clicks.

To download Cosmostation Wallet Extension, click this link (opens in a new tab) to download from the chrome webstore.

Wallet

@@ -21,4 +21,4 @@

Dashboard

-

MIT 2023 © Nextra.
\ No newline at end of file +

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/account/add-account.html b/extension/guide/account/add-account.html index d22319c5..c427afbf 100644 --- a/extension/guide/account/add-account.html +++ b/extension/guide/account/add-account.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Account
Add Account

Add Account

+
Extension Wallet
User guide
Account
Add Account

Add Account

Create a new wallet, restore with an existing mnemonic phrase, or restore with a private key.

Create wallet

@@ -26,7 +26,7 @@

Step 5 Enter your seed phrase in correct order. This process is to confirm that you have saved the correct mnemonic phrase.

Step 6 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.

Step 7 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.

-

Create wallet

+

Create wallet

Restore wallet with a mnemonic phrase

The following process is for users who already have a mnemonic phrase.

@@ -36,7 +36,7 @@

Step 3 (Optional) Choose the HD path you wish to import. Cosmostation Wallet Extension supports HD paths designated/unique to each network by default.

Step 4 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.

Step 5 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.

-

Import mnemonic

+

Import mnemonic

Restore wallet with a private key

The following process is for users that already have a private key.

@@ -46,4 +46,4 @@

Step 3 Enter your 'Account name' and 'Private key'. (Private keys start with 0x and consists of a 66 digit string)

Step 4 Choose networks to display in your Cosmostation Wallet Extension. You must select at least 1 chain in order to proceed.

Step 5 Enter your password for Cosmostation Wallet Extension. Password must be more than 8 characters.

-

Import private key


MIT 2023 © Nextra.
\ No newline at end of file +

Import private key


MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/account/add-ledger-account.html b/extension/guide/account/add-ledger-account.html index 569289ce..8b479b24 100644 --- a/extension/guide/account/add-ledger-account.html +++ b/extension/guide/account/add-ledger-account.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Account
Add Ledger Account

Add Ledger Account

+

MIT 2023 © Nextra.
\ No newline at end of file +

All the EVM chains' transactions can be signed from the Ethereum app.


MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/account/intro.html b/extension/guide/account/intro.html index cc95c79e..a328876b 100644 --- a/extension/guide/account/intro.html +++ b/extension/guide/account/intro.html @@ -11,14 +11,14 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Account
Introduction

Introduction

+
Extension Wallet
User guide
Account
Introduction

Introduction

Cosmostation Wallet Extension allows you to add and manage multiple accounts. Securely manage your accounts in a convenient user interface.

Add Account

'Add Account' has three options. [Creat a new account], [Import mnemonics], and [Import private key]. Please refer to each page for detailed instructions.

-

Manage

+

Manage

Step 1 Click 'Add account' under 'Account Management'.

Step 2 You will see three options to choose from. Please refer to the following link for detailed instructions.

Manage keys

@@ -27,10 +27,10 @@

If you created a new account or restored a wallet with a mnemonic phrase, you will be able to see the option to [View mnemonics], [View private key], and [Delete account].

If you restored a wallet with a private key, then you will only be able to choose [View private key].

-

Manage

+

Manage

Delete Account

You can delete accounts from Cosmostation Extension.

Once deleted, you can restore your account again by importing the same mnemonic phrase or private key.

-
⚠️

You are required to enter your password before deleting your account.

Once deleted, if you lose your mnemonic phrase or private key you will not be able to gain access to the account again.


MIT 2023 © Nextra.
\ No newline at end of file +
⚠️

You are required to enter your password before deleting your account.

Once deleted, if you lose your mnemonic phrase or private key you will not be able to gain access to the account again.


MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/chains.html b/extension/guide/chains.html index 275c6572..333383ae 100644 --- a/extension/guide/chains.html +++ b/extension/guide/chains.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Chains

Chains

+
Extension Wallet
User guide
Chains

Chains

Cosmostation Wallet Extension supports various PoS networks.

Add/Remove Chains

@@ -21,4 +21,4 @@

Step 1 View chains that are added to your list. Click 'Add chain' to add/remove chains from the list.

Step 2 By toggling on/off, you can choose chains that you want to display on Cosmostation Wallet Extension.

Step 3 Selected chains are also visible on the top right side of wallet details.

-

Add & Remove chains


MIT 2023 © Nextra.
\ No newline at end of file +

Add & Remove chains


MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/dapps.html b/extension/guide/dapps.html index 00bc22bf..fbe95291 100644 --- a/extension/guide/dapps.html +++ b/extension/guide/dapps.html @@ -11,9 +11,9 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Dapps

dApp

+
Extension Wallet
User guide
Dapps

dApp

Cosmostation Wallet Exntension supports various dApps deployed on PoS networks.

-

Support dApps

+

Support dApps

Connection status

Easily check if the wallet extension is connect to the dApp.

@@ -22,4 +22,4 @@

Disconnect with just a click.

Easily disconnect from dApps by clicking the connecting status under your account name.

-

MIT 2023 © Nextra.
\ No newline at end of file +

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/settings.html b/extension/guide/settings.html index 0ba611c8..88b6706a 100644 --- a/extension/guide/settings.html +++ b/extension/guide/settings.html @@ -11,13 +11,13 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Settings

Settings

+
Extension Wallet
User guide
Settings

Settings

Customize the wallet extension in wallet settings.

Dark mode

Toggle back and forth to choose between Dark or Light mode.

-

Dark mode

+

Dark mode

Address Book

Create different address books for each chain. You can use the address book when using the 'Send' function.

@@ -30,7 +30,7 @@

⚠️

Memo is optional but required to transfer assets to centralized cryptocurrency exchanges. Centralized exchanges will ask you to enter a memo for identification when you make a deposit.

-

Address Book Detail

+

Address Book Detail

If you add addresses in the address book, you can use the address book feature when sending assets.

@@ -46,9 +46,9 @@

Cosmostation Wallet Extension supports 2 languages and 5 currencies. We plan to support more currencies and languages in the near future.

-

Currency & Language

+

Currency & Language

Lock screen

Lock your screen to secure your wallet.

-

!


MIT 2023 © Nextra.
\ No newline at end of file +

!


MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/guide/transfer-coins.html b/extension/guide/transfer-coins.html index 7eba546e..1afe4919 100644 --- a/extension/guide/transfer-coins.html +++ b/extension/guide/transfer-coins.html @@ -11,14 +11,14 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
User guide
Transfer Coins

Transfer coins

+
Extension Wallet
User guide
Transfer Coins

Transfer coins

Transfer coins with just one click via Cosmostation Wallet Extension.

⚠️

Cosmostation Wallet Extension currently DOES NOT SUPPORT IBC TRANSFERS.

If you are trying to send assets to a different chain, the send button will be deactivated.

Receive

Click 'Deposit' to copy the address to the clipboard or scan the QR code.

-

Receive

+

Receive

Send

The following process is for users sending assets to a different address.

@@ -26,4 +26,4 @@

Step 1 Enter 'Recipient address', 'Amount,' and 'Memo.' The memo field is optional but required for sending to specific centralized cryptocurrency exchanges. Centralized exchanges will ask you to enter a memo for identification when you make a deposit.

⚠️

Make sure that you enter the correct recipient address.

Entering an incorrect address may result in loss of funds and responsibility of entering the correct address is on the user.

Step 2, 3 Check the transaction information and confirm.

-

Send


MIT 2023 © Nextra.
\ No newline at end of file +

Send


MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/aptos/connect-and-account.html b/extension/integration/aptos/connect-and-account.html index 1d9bae64..be5c49bc 100644 --- a/extension/integration/aptos/connect-and-account.html +++ b/extension/integration/aptos/connect-and-account.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
APTOS Network
Connect & Account

Connect, Account

+
Extension Wallet
Integration
APTOS Network
Connect & Account

Connect, Account

connect and get Account via Cosmostation Extension

Connect

Code using @cosmostation/extension-client

@@ -83,4 +83,4 @@

Example
{
   "address": "0x9d8a438fe580db4f7b9e108a4bce46ad6647905495903f295d06458625913644",
   "publicKey": "0x503603cb3ea1801805b952d9d4c6a7302dddfa78cc15042e78132ee907e6b48f"
-}


MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/aptos/event.html b/extension/integration/aptos/event.html index e8bffedd..2ca1d66e 100644 --- a/extension/integration/aptos/event.html +++ b/extension/integration/aptos/event.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
APTOS Network
Event

Event

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/aptos/network.html b/extension/integration/aptos/network.html index 128c04dc..1605fd5b 100644 --- a/extension/integration/aptos/network.html +++ b/extension/integration/aptos/network.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
APTOS Network
Network

Network

+

Response

Model
export type AptosNetworkResponse = string;
-
Example
"Mainnet"

MIT 2023 © Nextra.
\ No newline at end of file +
Example
"Mainnet"

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/aptos/provider.html b/extension/integration/aptos/provider.html index 229af365..ebf15db6 100644 --- a/extension/integration/aptos/provider.html +++ b/extension/integration/aptos/provider.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
APTOS Network
Provider

Provider

+

MIT 2023 © Nextra.
\ No newline at end of file +const provider = aptos();

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/aptos/sign-and-submit-transaction.html b/extension/integration/aptos/sign-and-submit-transaction.html index 8592f732..ed3e5984 100644 --- a/extension/integration/aptos/sign-and-submit-transaction.html +++ b/extension/integration/aptos/sign-and-submit-transaction.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
APTOS Network
Sign & Submit Transaction

Sign And Submit Transaction

+

Response

Model
export type AptosSignTransactionResponse = string;
-
Example
"0x9d8a438fe580db4f7b9e108a4bce46ad6647905495903f295d06458625913644100000000000000002000000000000000000000000000000000000000000000000000000000000000104636f696e087472616e73666572010700000000000000000000000000000000000000000000000000000000000000010a6170746f735f636f696e094170746f73436f696e00022084b0d6b75cd160f1e46a7d18b567e79d79898e1a6487795a83e60d29291d94d60840420f0000000000f8030000000000006400000000000000ccc36d6300000000010020503603cb3ea1801805b952d9d4c6a7302dddfa78cc15042e78132ee907e6b48f40a58ef2b76eec70a2a538cd7e2faa97def87576ba766feeeb4cd884e9d848fad93cd2c262235b00915be049edcba0046aed6bbd6823a76051fb1bd83791949508"

MIT 2023 © Nextra.
\ No newline at end of file +
Example
"0x9d8a438fe580db4f7b9e108a4bce46ad6647905495903f295d06458625913644100000000000000002000000000000000000000000000000000000000000000000000000000000000104636f696e087472616e73666572010700000000000000000000000000000000000000000000000000000000000000010a6170746f735f636f696e094170746f73436f696e00022084b0d6b75cd160f1e46a7d18b567e79d79898e1a6487795a83e60d29291d94d60840420f0000000000f8030000000000006400000000000000ccc36d6300000000010020503603cb3ea1801805b952d9d4c6a7302dddfa78cc15042e78132ee907e6b48f40a58ef2b76eec70a2a538cd7e2faa97def87576ba766feeeb4cd884e9d848fad93cd2c262235b00915be049edcba0046aed6bbd6823a76051fb1bd83791949508"

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/accounts.html b/extension/integration/cosmos/Deprecated/accounts.html index f2e9ac57..b30c141a 100644 --- a/extension/integration/cosmos/Deprecated/accounts.html +++ b/extension/integration/cosmos/Deprecated/accounts.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Accounts

Accounts

+

If connected successfully, it will look like below.

-

Provider

+

Provider

Response

Model
type AccountResponse = {
@@ -77,4 +77,4 @@ 

211, 89, 42, 187, 170 ], "isLedger": false -}


MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/chains.html b/extension/integration/cosmos/Deprecated/chains.html index bd1d11a0..2d9dec5b 100644 --- a/extension/integration/cosmos/Deprecated/chains.html +++ b/extension/integration/cosmos/Deprecated/chains.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Chains

Chains

+

Response

Model
type ActivatedChainIdsResponse = string[];
-
Example
["cosmoshub-4", "gravity-bridge-3"]

MIT 2023 © Nextra.
\ No newline at end of file +
Example
["cosmoshub-4", "gravity-bridge-3"]

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/cw20-token.html b/extension/integration/cosmos/Deprecated/cw20-token.html index 30242015..bbeea8f1 100644 --- a/extension/integration/cosmos/Deprecated/cw20-token.html +++ b/extension/integration/cosmos/Deprecated/cw20-token.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
CW20 Tokens

CW20 token

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/disconnect.html b/extension/integration/cosmos/Deprecated/disconnect.html index b501832b..8655ee16 100644 --- a/extension/integration/cosmos/Deprecated/disconnect.html +++ b/extension/integration/cosmos/Deprecated/disconnect.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Disconnect

Disconnect

+

Response

Model
type DisconnectResponse = null;
-
Example
null

MIT 2023 © Nextra.
\ No newline at end of file +
Example
null

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/error.html b/extension/integration/cosmos/Deprecated/error.html index 90f7f760..7d60e652 100644 --- a/extension/integration/cosmos/Deprecated/error.html +++ b/extension/integration/cosmos/Deprecated/error.html @@ -11,6 +11,6 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Error

Error

+
Extension Wallet
Integration
Cosmos Chains
Deprecated
Error

Error

Error description

-
CodeModelDescription
4001-User rejected request
4100-The requested account and/or method has not been authorized by the user.
4200-The requested method is not supported
-32000-Invalid input.
-32600-The JSON sent is not a valid Request object.
-32602-Invalid method parameter(s).
-32603-Internal JSON-RPC error.

MIT 2023 © Nextra.
\ No newline at end of file +
CodeModelDescription
4001-User rejected request
4100-The requested account and/or method has not been authorized by the user.
4200-The requested method is not supported
-32000-Invalid input.
-32600-The JSON sent is not a valid Request object.
-32602-Invalid method parameter(s).
-32603-Internal JSON-RPC error.

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/event.html b/extension/integration/cosmos/Deprecated/event.html index a03d9f92..c20ee5ff 100644 --- a/extension/integration/cosmos/Deprecated/event.html +++ b/extension/integration/cosmos/Deprecated/event.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Event

Event

+

Vanilla Code

-
window.removeEventListener("cosmostation_keystorechange", handler)

MIT 2023 © Nextra.
\ No newline at end of file +
window.removeEventListener("cosmostation_keystorechange", handler)

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/provider.html b/extension/integration/cosmos/Deprecated/provider.html index 711ebc9f..f3334823 100644 --- a/extension/integration/cosmos/Deprecated/provider.html +++ b/extension/integration/cosmos/Deprecated/provider.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Provider

Provider

+

MIT 2023 © Nextra.
\ No newline at end of file +};

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/send-tx.html b/extension/integration/cosmos/Deprecated/send-tx.html index 374f871a..e1c08fe0 100644 --- a/extension/integration/cosmos/Deprecated/send-tx.html +++ b/extension/integration/cosmos/Deprecated/send-tx.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Send Transaction

Send Transcation

+
Extension Wallet
Integration
Cosmos Chains
Deprecated
Send Transaction

Send Transcation

Send transcation via Cosmostation Extension

Code using @cosmostation/extension-client

import { SEND_TRANSACTION_MODE } from "@cosmostation/extension-client/cosmos";
@@ -71,4 +71,4 @@ 

"tx": null, "txhash": "4CC689A1E8CF89E1CF1E98D523BC171FEC749DCF8CFED296FA441AF1E0C47C4C" } -}


MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/sign-message.html b/extension/integration/cosmos/Deprecated/sign-message.html index a991b3d7..d6ae4701 100644 --- a/extension/integration/cosmos/Deprecated/sign-message.html +++ b/extension/integration/cosmos/Deprecated/sign-message.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Sign Message

Sign Message

+

Response

Model
export type VerifyMessageResponse = boolean;
-
Example
true

MIT 2023 © Nextra.
\ No newline at end of file +
Example
true

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/Deprecated/sign-tx.html b/extension/integration/cosmos/Deprecated/sign-tx.html index 9b53cd30..4cd52cdb 100644 --- a/extension/integration/cosmos/Deprecated/sign-tx.html +++ b/extension/integration/cosmos/Deprecated/sign-tx.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Deprecated
Sign Transaction

Sign Transactions

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/integrate-cosmjs.html b/extension/integration/cosmos/integrate-cosmjs.html index ed69dcca..b7657abb 100644 --- a/extension/integration/cosmos/integrate-cosmjs.html +++ b/extension/integration/cosmos/integrate-cosmjs.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Integrate Cosmjs

Integrate cosmjs

+

MIT 2023 © Nextra.
\ No newline at end of file +);

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/integrate-keplr.html b/extension/integration/cosmos/integrate-keplr.html index 0f792d97..8f6b2a60 100644 --- a/extension/integration/cosmos/integrate-keplr.html +++ b/extension/integration/cosmos/integrate-keplr.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Integrate Keplr

Use Cosmostation with Keplr Interface

+
Extension Wallet
Integration
Cosmos Chains
Integrate Keplr

Use Cosmostation with Keplr Interface

Cosmostation is providing Keplr's interface. The purpose is to make it easier for the developers to integrate Cosmostation to dApps that have Keplr integrated already.

Supported functions/variables are as belows:

    @@ -80,4 +80,4 @@

    Event

    window.addEventListener("cosmostation_keystorechange", () => {
         console.log("Key store in Cosmostation is changed. You may need to refetch the account info.")
    -})

MIT 2023 © Nextra.
\ No newline at end of file +})

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/proto.html b/extension/integration/cosmos/proto.html index dd4fdbae..42dc88b1 100644 --- a/extension/integration/cosmos/proto.html +++ b/extension/integration/cosmos/proto.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Protobuf json

Protobuf JSON

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/react-hook.html b/extension/integration/cosmos/react-hook.html index 599ce290..e3740401 100644 --- a/extension/integration/cosmos/react-hook.html +++ b/extension/integration/cosmos/react-hook.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
React Hook

React hook

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/typescript.html b/extension/integration/cosmos/typescript.html index 76d45011..26337f03 100644 --- a/extension/integration/cosmos/typescript.html +++ b/extension/integration/cosmos/typescript.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Typescript

Typescript

+

removeEventListener

-
example
window.removeEventListener('cosmostation_keystorechange', handler);

MIT 2023 © Nextra.
\ No newline at end of file +
example
window.removeEventListener('cosmostation_keystorechange', handler);

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/vanilla.html b/extension/integration/cosmos/vanilla.html index 063142b9..1d436ead 100644 --- a/extension/integration/cosmos/vanilla.html +++ b/extension/integration/cosmos/vanilla.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Vanilla

Vanilla

+

removeEventListener

-
example
window.removeEventListener('cosmostation_keystorechange', handler);

MIT 2023 © Nextra.
\ No newline at end of file +
example
window.removeEventListener('cosmostation_keystorechange', handler);

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/cosmos/wallet.html b/extension/integration/cosmos/wallet.html index 13a979bb..88362e0a 100644 --- a/extension/integration/cosmos/wallet.html +++ b/extension/integration/cosmos/wallet.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
Cosmos Chains
Wallet

Wallet

+
Extension Wallet
Integration
Cosmos Chains
Wallet

Wallet

The interface of each Cosmos wallet is different, and in order to solve the problem of having to manually attach each wallet to the Dapp, it was developed to automatically add the same interface and wallet.

Installation

npm install @cosmostation/wallets
@@ -402,4 +402,4 @@

}} > Register Leap Wallet -</button>;


MIT 2023 © Nextra.
\ No newline at end of file +</button>;

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/evm/event.html b/extension/integration/evm/event.html index caefd3ea..e47a149b 100644 --- a/extension/integration/evm/event.html +++ b/extension/integration/evm/event.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
EVM Network
Event

Event

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/evm/provider.html b/extension/integration/evm/provider.html index a9aa3907..c6feef41 100644 --- a/extension/integration/evm/provider.html +++ b/extension/integration/evm/provider.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
EVM Network
Provider

Provider

+

MIT 2023 © Nextra.
\ No newline at end of file +const provider = ethereum();

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/evm/supported-rpc-methods.html b/extension/integration/evm/supported-rpc-methods.html index 0bd2b4d6..3b8adc08 100644 --- a/extension/integration/evm/supported-rpc-methods.html +++ b/extension/integration/evm/supported-rpc-methods.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
EVM Network
Supported RPC Methods

Supported RPC methods

+

MIT 2023 © Nextra.
\ No newline at end of file +});

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/evm/use-ethers.html b/extension/integration/evm/use-ethers.html index 13119b15..f3cc7ed0 100644 --- a/extension/integration/evm/use-ethers.html +++ b/extension/integration/evm/use-ethers.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
EVM Network
Use ethers

Use ethers

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/evm/use-web3-js.html b/extension/integration/evm/use-web3-js.html index b089841e..0172b54b 100644 --- a/extension/integration/evm/use-web3-js.html +++ b/extension/integration/evm/use-web3-js.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
EVM Network
Use web3.js

Use web3.js

+

MIT 2023 © Nextra.
\ No newline at end of file +});

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/sui/connect-and-get-accounts.html b/extension/integration/sui/connect-and-get-accounts.html index 23b8e330..4e7db6c7 100644 --- a/extension/integration/sui/connect-and-get-accounts.html +++ b/extension/integration/sui/connect-and-get-accounts.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
SUI Network
Connect & Get Accounts

Connect And Get Accounts

+
Extension Wallet
Integration
SUI Network
Connect & Get Accounts

Connect And Get Accounts

connect and get Account via Cosmostation Extension

const response = await window.cosmostation.sui.connect();
  
@@ -33,4 +33,4 @@ 

const publicKey = await window.cosmostation.sui.getPublicKey();

Response

Model
export type SuiAccountResponse = string[];
-
Example
["0xd2d030d4339531d9cb442caf4be7bb954fddedb4"]

MIT 2023 © Nextra.
\ No newline at end of file +
Example
["0xd2d030d4339531d9cb442caf4be7bb954fddedb4"]

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/sui/execute-move-call.html b/extension/integration/sui/execute-move-call.html index dd0db562..5a77a9d4 100644 --- a/extension/integration/sui/execute-move-call.html +++ b/extension/integration/sui/execute-move-call.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
SUI Network
Execute Move Call

Execute Move Call

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/sui/provider.html b/extension/integration/sui/provider.html index b2ec6bef..4cd137a0 100644 --- a/extension/integration/sui/provider.html +++ b/extension/integration/sui/provider.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
SUI Network
Provider

Provider

+

MIT 2023 © Nextra.
\ No newline at end of file +const provider = sui();

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/extension/integration/sui/sign-and-execute-transaction.html b/extension/integration/sui/sign-and-execute-transaction.html index 228fb232..3908e1c6 100644 --- a/extension/integration/sui/sign-and-execute-transaction.html +++ b/extension/integration/sui/sign-and-execute-transaction.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Extension Wallet
Integration
SUI Network
Sign & Execute Transaction

Sign And Execute Transaction

+

MIT 2023 © Nextra.
\ No newline at end of file +}

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/index.html b/index.html index 1cc399a8..f0ece552 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -

Cosmostation

+

Cosmostation

Cosmostation is a committed interchain service provider in the Cosmos ecosystem, established since its genesis in 2019. Our array of tools, including Mintscan, Mintscan API, and Cosmostation wallets showcases our dedication to the community. This developer documentation is your guide to understanding and utilizing our offerings for enhanced protocol development.


@@ -49,4 +49,4 @@

Industry leading non-custodial mobile wallet supporting 50+ interchain networks. Enjoy native staking, IBC send, voting, and token swap on mobile.

-


MIT 2023 © Nextra.
\ No newline at end of file +

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/mintscan.html b/mintscan.html index 3a34851a..821ff9f6 100644 --- a/mintscan.html +++ b/mintscan.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Mintscan
Introduction

Introduction

+
\ No newline at end of file +

MIT 2023 © Nextra.
\ No newline at end of file diff --git a/mintscan/registry/assets.html b/mintscan/registry/assets.html index 58910216..43a56b1a 100644 --- a/mintscan/registry/assets.html +++ b/mintscan/registry/assets.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
Mintscan
Registry
Asset Metadata

How to add your token info

+
Mintscan
Registry
Asset Metadata

How to add your token info

To add asset metadata on mintscan.

Assets

@@ -201,4 +201,4 @@
  • From your repository, make pull request (PR)

  • -

    MIT 2023 © Nextra.
    \ No newline at end of file +

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintscan/registry/cw20.html b/mintscan/registry/cw20.html index 2e944301..238eb505 100644 --- a/mintscan/registry/cw20.html +++ b/mintscan/registry/cw20.html @@ -11,10 +11,10 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintscan
    Registry
    CW20 Metadata

    How to add your CW20 token info

    +

    MIT 2023 © Nextra.
    \ No newline at end of file +

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintscan/registry/ecosystem.html b/mintscan/registry/ecosystem.html index 1e993f7a..0bab9d35 100644 --- a/mintscan/registry/ecosystem.html +++ b/mintscan/registry/ecosystem.html @@ -11,10 +11,10 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintscan
    Registry
    Ecosystem

    How to add your project on Ecosystem

    +
    Mintscan
    Registry
    Ecosystem

    How to add your project on Ecosystem

    To add ecosystem on mintscan.

    -

    Ecosystem

    +

    Ecosystem

    Please contact us and provide us with the information below.

      @@ -27,4 +27,4 @@
    • Reference(Optional) : Docs, Github, Blog, Reddit
    • Type : Cosmwasm, EVM, Module
    • Banner : 1125 x 600 px
    • -

    MIT 2023 © Nextra.
    \ No newline at end of file +

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintscan/registry/erc20.html b/mintscan/registry/erc20.html index 9d7d8cb5..120ba663 100644 --- a/mintscan/registry/erc20.html +++ b/mintscan/registry/erc20.html @@ -11,10 +11,10 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintscan
    Registry
    ERC20 Metadata

    How to add your ERC20 token info

    +

    MIT 2023 © Nextra.
    \ No newline at end of file +

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintscan/registry/moniker.html b/mintscan/registry/moniker.html index b16f5d50..59618430 100644 --- a/mintscan/registry/moniker.html +++ b/mintscan/registry/moniker.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintscan
    Registry
    Validator moniker

    How to add your validator moniker image

    +
    Mintscan
    Registry
    Validator moniker

    How to add your validator moniker image

    To add moniker image on mintscan validator tab.

    Moniker

    @@ -20,4 +20,4 @@
  • Add your image to ${targetchain}/moniker folder
  • Image with png format and validator address name
  • Example will display cosmostation validator moniker logo for cosmos
  • -

    MIT 2023 © Nextra.
    \ No newline at end of file +

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation.html b/mintstation.html index da77b30e..4fa32c69 100644 --- a/mintstation.html +++ b/mintstation.html @@ -1,4 +1,4 @@ -Mintstation – Cosmostation Docs
    Mintstation
    Introduction

    Mintstation

    +
    Mintstation
    Introduction

    Introduction

    Mintstation is a network designed for testing the Cosmos SDK. It provides access to the latest features of the Cosmos ecosystem, allowing users to leverage CosmWasm smart contracts.

    In this documentation, the following topics are covered:

      @@ -22,4 +22,4 @@
    • Custom module development

    Mintstation offers a testing ground for developers and users to explore and experiment with the capabilities of the Cosmos SDK while having the ability to interact with CosmWasm smart contracts. The documentation provides comprehensive guidance on setting up a local network, utilizing the CLI, engaging as a validator, and leveraging Cosmwasm for smart contract deployment. Additionally, developers are encouraged to explore custom module development to tailor the network to their specific needs.

    -

    By providing an environment that maintains the latest features of the Cosmos SDK and supports Cosmwasm smart contracts, Mintstation facilitates a dynamic and insightful experience for individuals and teams working within the Cosmos ecosystem.


    MIT 2023 © Nextra.
    \ No newline at end of file +

    By providing an environment that maintains the latest features of the Cosmos SDK and supports Cosmwasm smart contracts, Mintstation facilitates a dynamic and insightful experience for individuals and teams working within the Cosmos ecosystem.


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/cli.html b/mintstation/cli.html index 6625b544..5a5f80c9 100644 --- a/mintstation/cli.html +++ b/mintstation/cli.html @@ -11,12 +11,12 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintstation
    CLI
    Introduction

    CLI Introduction

    +
    Mintstation
    CLI
    CLI Introduction

    CLI Introduction

    Introduction

    mintstaiond is a command line client for the Mintstation. Mintstation users can use mintstationd to send transactions to the Mintstation network and query the blockchain data.

    See here for instructions on installing mintstationd.

    Working Directory

    -

    The default working directory for the mintstationd is $HOME/.mintstationd, which is mainly used to store configuration files and blockchain data. The Mintstation key data is saved in the working directory of mintstationd. You can also specify the mintstationd working directory by using the --home flag when executing mintstationd.

    +

    The default working directory for the mintstationd is $HOME/.mintstation, which is mainly used to store configuration files and blockchain data. The Mintstation key data is saved in the working directory of mintstationd. You can also specify the mintstationd working directory by using the --home flag when executing mintstationd.

    Connecting to a Full-Node

    By default, mintstationd uses tcp://localhost:26657 as the RPC address to connect to the Mintstation network. This default configuration assumes that the machine executing mintstationd is running as a full-node.

    -

    The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the --node flag when executing mintstationd


    MIT 2023 © Nextra.
    \ No newline at end of file +

    The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the --node flag when executing mintstationd


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/cli/command.html b/mintstation/cli/command.html index 69bff1ee..80fae8b3 100644 --- a/mintstation/cli/command.html +++ b/mintstation/cli/command.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintstation
    CLI
    Useful CLI Commands

    Useful CLI Commands

    +
    Mintstation
    CLI
    Useful CLI Commands

    Useful CLI Commands

    Get standard debug info from the mint daemon:

    mintstationd status

    Check if your node is catching up:

    @@ -44,4 +44,4 @@

    Query the validator set (and jailed status) via CLI:

    mintstationd query staking validators --limit 1000 -o json | jq -r '.validators[] | [.operator_address, (.tokens|tonumber / pow(10; 6)), .description.moniker, .jail, .status] | @csv' | column -t -s"," | sort -k2 -n -r | nl

    Get contract state:

    -
    mintstationd q wasm contract-state all <contract-address>

    MIT 2023 © Nextra.
    \ No newline at end of file +
    mintstationd q wasm contract-state all <contract-address>

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/cli/setup.html b/mintstation/cli/setup.html index b32bc8a8..698d54e9 100644 --- a/mintstation/cli/setup.html +++ b/mintstation/cli/setup.html @@ -1,4 +1,4 @@ -Setup Mintstation – Cosmostation Docs
    Mintstation
    CLI
    Setup CLI

    Setup Mintstation

    +
    Mintstation
    CLI
    Setup CLI

    Setup CLI

    Build

    +

    Build Requirements

    +
    Go 1.20.+

    Clone source from repository:

    git clone https://github.com/cosmostation/mintstation
     cd mintstation
    -git checkout v0.0.1 #SET_CURRENT_VERSION
    +git checkout {SET_CURRENT_VERSION}

    Once you're on the correct tag, you can build:

    -
    # from mint dir
    +
    # from mintstation dir
     make install

    To confirm that the installation has succeeded, you can run:

    mintstationd version
      
    -# v0.0.1
    +#v0.0.1

    Configure

    -

    Set the chain-id & node

    -
    mintstationd config chain-id mintstation-1
    -mintstationd config node {node_rpc_endpoint}

    MIT 2023 © Nextra.
    \ No newline at end of file +

    Set the chain-id & node,

    +
    #Update config.toml
    +mintstationd config chain-id mintstation-1
    +mintstationd config node {NODE_RPC_ENDPOINT:PORT}

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/contracts/compile.html b/mintstation/contracts/compile.html index 39f63fe0..b7e1be0c 100644 --- a/mintstation/contracts/compile.html +++ b/mintstation/contracts/compile.html @@ -1,4 +1,4 @@ -Compile a Contract – Cosmostation Docs
    Mintstation
    Smart Contracts
    Compile Contract

    Compile a Contract

    +
    Mintstation
    Smart Contracts
    Compile Contracts

    Compile Contracts

    This guide is from the official CosmWasm/rust-optimizer repository (opens in a new tab). This method of compiling the contract will optimize the final build so that it reduces gas consumption.

    Example contracts for this can be found at https://github.com/CosmWasm/cw-examples (opens in a new tab). This repository requires this section to compile since multiple contracts are involved in a single repository.

    Single Contract Repository

    @@ -45,4 +45,4 @@

    --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ cosmwasm/workspace-optimizer-arm64:0.12.11

    -

    NOTE: See the difference with workspace-optimizer vs rust-optimizer in the previous single contract example.\


    MIT 2023 © Nextra.
    \ No newline at end of file +

    NOTE: See the difference with workspace-optimizer vs rust-optimizer in the previous single contract example.\


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/contracts/create.html b/mintstation/contracts/create.html index 812fb2f6..690e99a5 100644 --- a/mintstation/contracts/create.html +++ b/mintstation/contracts/create.html @@ -1,4 +1,4 @@ -Code a Contract – Cosmostation Docs
    Mintstation
    Smart Contracts
    Create Contract

    Code a Contract

    +
    Mintstation
    Smart Contracts
    Create Contracts

    Create Contracts

    To implement a wasm smart contract, it is highly recommended to learn Rust first. Rust is the language commonly used for wasm development and is well-regarded for its stability and performance. You can begin your Rust learning journey by referring to the following link:

    Rust Language Learning Guide (opens in a new tab)

    For smart contract development, you can follow the structure provided by CosmWasm's template. This template will help you understand the project's architecture and enable you to develop your contract more systematically. You can find the template at the following link:

    @@ -19,4 +19,4 @@

    Among the popular smart contract samples, there are cw20 and cw721 implementations. cw20 represents a widely-used token contract, while cw721 implements a Non-Fungible Token (NFT) contract. These samples can be valuable references during your development process. You can explore the code for each sample through the links below:

    cw20 (opens in a new tab), cw721 (opens in a new tab)

    For all great CosmWasm tools, https://github.com/CosmWasm/awesome-cosmwasm (opens in a new tab)

    -

    Although smart contract development can be complex, leveraging the provided resources will increase your chances of successfully completing your project. Additionally, make sure to actively engage with the community and online resources to continue your learning journey and receive ongoing support. Best of luck!


    MIT 2023 © Nextra.
    \ No newline at end of file +

    Although smart contract development can be complex, leveraging the provided resources will increase your chances of successfully completing your project. Additionally, make sure to actively engage with the community and online resources to continue your learning journey and receive ongoing support. Best of luck!


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/contracts/deploy.html b/mintstation/contracts/deploy.html index fbae2dd0..58fe33b0 100644 --- a/mintstation/contracts/deploy.html +++ b/mintstation/contracts/deploy.html @@ -1,4 +1,4 @@ -Deploy a Contract – Cosmostation Docs
    Mintstation
    Smart Contracts
    Store Code

    Deploy a Contract

    +
    Mintstation
    Smart Contracts
    Store Codes

    Deploy Contracts

    PreRequisite

    Make sure you follow the create a contract guide first for your project. Once you have a contract compiled in the artifacts/*.wasm directory, you are ready for this guide.

    Upload

    @@ -85,4 +85,4 @@

    #cw20 CODE_ID=2 INIT='{"name":"CW20","symbol":"TOKEN","decimals":2,"initial_balances":[{"amount":"1000000","address":<address>}]}' -mintstationd tx wasm instantiate "$CODE_ID" "$INIT" --from <account> --label "cw-token" $FLAGS -y --admin <your-address-here>


    MIT 2023 © Nextra.
    \ No newline at end of file +mintstationd tx wasm instantiate "$CODE_ID" "$INIT" --from <account> --label "cw-token" $FLAGS -y --admin <your-address-here>

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/contracts/execute.html b/mintstation/contracts/execute.html index 3d727b9e..0b56df80 100644 --- a/mintstation/contracts/execute.html +++ b/mintstation/contracts/execute.html @@ -1,4 +1,4 @@ -Send Tokens to a Contract – Cosmostation Docs
    Mintstation
    Smart Contracts
    Execute with Contract

    Send Tokens to a Contract

    +
    Mintstation
    Smart Contracts
    Execute Contracts

    Execute Contracts

    Command Line Interface

    When you execute a message, a user can also pass through a flag which sends funds from their account to the contract to do logic. You can check if a user sends any funds in your contract's execute endpoint with the info.funds array of Coins sent by the user. These funds then get added to the contracts balance just like any other account. So it is up to you as the developer to ensure to save how many funds each user has sent via a BTreeMap or other object storage in state (if they can redeem funds back at a later time).

    To send funds to a contract with some arbitrary endpoint, you use the --amount flag.

    @@ -66,4 +66,4 @@

    .execute(address, REVIEWS_CONTRACT_ADDRESS, msg, fee, 'memo', send_amount) .then((res) => { console.log(`Success @ height ${res.height}\n\nTxHash: ${res.transactionHash}`); - });


    MIT 2023 © Nextra.
    \ No newline at end of file + });

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/contracts/query.html b/mintstation/contracts/query.html index 0ea68160..36077f43 100644 --- a/mintstation/contracts/query.html +++ b/mintstation/contracts/query.html @@ -1,4 +1,4 @@ -Query A Contract – Cosmostation Docs
    Mintstation
    Smart Contracts
    Query to Contract

    Query A Contract

    +
    Mintstation
    Smart Contracts
    Query Contracts

    Query Contracts

    Command Line Interface

    The most common way to query a cosmwasm smart contract is within the mintstationd wasm smart query command. This follows the following format where query is a JSON string with no spaces. By default, the least amount of data this can be is an empty JSON payload '{}'.

    mintstationd query wasm contract-state smart [contract_bech32] [query] [flags]
    @@ -111,4 +111,4 @@

    Enable React Query (opens in a new tab)
  • Enable Recoil (opens in a new tab)
  • Integrate Telescope with ts-codegen (opens in a new tab)
  • -


    MIT 2023 © Nextra.
    \ No newline at end of file +

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/module.html b/mintstation/module.html index 951e8248..fccfc766 100644 --- a/mintstation/module.html +++ b/mintstation/module.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintstation
    Custom Module

    Building Modules

    +
    Mintstation
    Building Modules

    Building Modules

    In this tutorial we will be going over building a module in Mintstation to show how easy it is to build on top of the Mintstation ecosystem. This module will be simple in nature but will show how to set up and connect a module to Mintstation and can be used as a starting point for more complex modules.

    Set up

    git clone https://github.com/cosmostation/mintstation.git
    @@ -711,4 +711,4 @@

    greeting:
       id: "0"
       message: hello world from mintstation chain
    -  owner: mintstation173w2zz287s36ewnnkf4mjansnthnnsz7rtrxqc


    MIT 2023 © Nextra.
    \ No newline at end of file + owner: mintstation173w2zz287s36ewnnkf4mjansnthnnsz7rtrxqc

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/validator/command.html b/mintstation/validator/command.html index abc08868..86d68e33 100644 --- a/mintstation/validator/command.html +++ b/mintstation/validator/command.html @@ -1,4 +1,4 @@ -Useful command for Validators – Cosmostation Docs
    Mintstation
    Node & Validator
    Useful Commands

    Useful command for Validators

    +
    Mintstation
    Node & Validator
    Useful Commands

    Useful commands

    Upgrade to a validator

    Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step.

    To upgrade the node to a validator, you will need to submit a create-validator transaction:

    @@ -29,5 +29,11 @@

    --from <key-name>

    The above transaction is just an example. There are many more flags that can be set to customise your validator, such as your validator website, or keybase.io id, etc. To see a full list:

    mintstationd tx staking create-validator --help
    -

    Unjail

    -
    stationed tx slashing unjail --from <account> --keyring-backend test  --chain-id mintstation-1 --fees 100umint

    MIT 2023 © Nextra.
    \ No newline at end of file +

    Unjail

    +
    stationed tx slashing unjail --from <key-name> --chain-id mintstation-1 --fees 100umint
    +

    To track your validator's signing history, copy the validator public key:

    +
    mintstationd tendermint show-validator
    +

    Use your validators public key queried above as the validator-pubkey below:

    +
    mintstationd query slashing signing-info <validator-pubkey>
    +

    Example:

    +
    mintstationd query slashing signing-info '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"HlixoxNZBPq4pBOYEimtSq9Ak4peBISVsIbI5ZHrEAU="}'

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/validator/delegations.html b/mintstation/validator/delegations.html index 30a1e49e..d8e7aa72 100644 --- a/mintstation/validator/delegations.html +++ b/mintstation/validator/delegations.html @@ -11,8 +11,8 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintstation
    Node & Validator
    Delegations

    Delegations

    +
    Mintstation
    Node & Validator
    Delegations

    Delegations

    If you wish to perform more extensive testing and require additional delegations, please don't hesitate to get in touch with us at mintstation@cosmostation.io.

    We are more than happy to provide you with the necessary delegations to support your testing efforts. Our delegation services aim to help you thoroughly evaluate and explore the features and capabilities of our platform.

    By reaching out to us, you can access a wide range of resources and support to make the most out of your testing experience. Whether you are testing staking, governance, or any other aspects of our system, we want to ensure that you have a beautiful and seamless experience.

    -

    Feel free to contact us with any specific requirements or questions you may have. Our team at mintstation@cosmostation.io is ready to assist you, and we look forward to supporting your testing journey!


    MIT 2023 © Nextra.
    \ No newline at end of file +

    Feel free to contact us with any specific requirements or questions you may have. Our team at mintstation@cosmostation.io is ready to assist you, and we look forward to supporting your testing journey!


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/validator/localnet.html b/mintstation/validator/localnet.html index 69177ece..95a8eea9 100644 --- a/mintstation/validator/localnet.html +++ b/mintstation/validator/localnet.html @@ -11,18 +11,28 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintstation
    Node & Validator
    Setup Local network

    Setup signle local network

    +
    Mintstation
    Node & Validator
    Setup Local Network

    Setup Local Network

    To set up a single local network easily, you can directly run the script below, and it will start working immediately:

    To get up and running with the mintstationd binary, please follow the instructions here.

    -
    APP_HOME="$HOME/.mintstationd"
    +
    APP_HOME="$HOME/.mintstation"
     RPC="http://localhost:26657"
     CHAIN_ID="localnet-1"
     MONIKER="Moniker"
      
     mintstationd init ${MONIKER} --chain-id ${CHAIN_ID} --home ${APP_HOME}
      
    -sed -i -r 's/minimum-gas-prices = ""/minimum-gas-prices = "0.0001umint"/' ${APP_HOME}/config/app.toml
    +sed -i -r 's/minimum-gas-prices = "0stake"/minimum-gas-prices = "0.0001umint"/' ${APP_HOME}/config/app.toml
      
     sed -i -e 's/\"stake\"/\"umint\"/g' ${APP_HOME}/config/genesis.json
      
    -mintstationd start --home ${APP_HOME}

    MIT 2023 © Nextra.
    \ No newline at end of file +mintstationd keys add validator --keyring-backend test + +MY_VALIDATOR_ADDRESS=$(mintstationd keys show validator --keyring-backend test -a) + +mintstationd add-genesis-account $MY_VALIDATOR_ADDRESS 10000000000umint + +mintstationd gentx validator 10000000umint --chain-id localnet-1 --keyring-backend test + +mintstationd collect-gentxs + +mintstationd start --home ${APP_HOME}

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/validator/mainnet.html b/mintstation/validator/mainnet.html index 9bffa965..c29176d1 100644 --- a/mintstation/validator/mainnet.html +++ b/mintstation/validator/mainnet.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mintstation
    Node & Validator
    Setup Fullnode

    Joining Mainnet

    +
    Mintstation
    Node & Validator
    Joining Mainnet

    Joining Mainnet

    To get up and running with the mintstationd binary, please follow the instructions here.

    Setting up the Node

    These instructions will direct you on how to initialize your node, synchronize to the network and upgrade your node to a validator.

    @@ -19,7 +19,7 @@

    CHAIN_ID=mintstation-1
     MONIKER_NAME=<moniker-name>
     mintstationd init "$MONIKER_NAME" --chain-id $CHAIN_ID

    -

    This will generate the following files in ~/.mintstationd/config/

    +

    This will generate the following files in ~/.mintstation/config/

    • genesis.json
    • node_key.json
    • @@ -28,21 +28,22 @@

      Download the genesis file

      Download the the geneis file.

      # Download genesis.json file (https://github.com/cosmostation/mintstation)
      -rm ~/.mintstationd/config/genesis.json
      -mv genesis.json $HOME/.mintstationd/config/genesis.json
      +rm ~/.mintstation/config/genesis.json +mv genesis.json $HOME/.mintstation/config/genesis.json

    This will replace the genesis file created using mintstationd init command with the mainnet genesis.json.

    Set seeds

    -

    We can set the seeds by retrieving the list of seeds from the mintstation repo and using sed to inject into ~/.mintstationd/config/config.toml:

    +

    We can set the seeds by retrieving the list of seeds from the mintstation repo and using sed to inject into ~/.mintstation/config/config.toml:

    # Set the base repo URL for mainnet & retrieve seeds
    +CHAIN_ID=mintstation-1
     CHAIN_REPO="https://raw.githubusercontent.com/cosmostation/mintstation/main/$CHAIN_ID" && \
     export SEEDS="$(curl -sL "$CHAIN_REPO/seeds.txt")"
      
     # Add seeds to config.toml
    -sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" ~/.mintstationd/config/config.toml
    +sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" ~/.mintstation/config/config.toml

    Set minimum gas prices

    For RPC nodes and Validator nodes we recommend setting the following minimum-gas-prices. As we are a permissionless wasm chain, this setting will help protect against contract spam and potential wasm contract attack vectors.

    -

    In $HOME/.mintstationd/config/app.toml, set minimum gas prices:

    -
    sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025umint\"/" ~/.mintstationd/config/app.toml
    +

    In $HOME/.mintstation/config/app.toml, set minimum gas prices:

    +
    sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025umint\"/" ~/.mintstation/config/app.toml

    Create (or restore) a local key pair

    Either create a new key pair, or restore an existing wallet for your validator:

    mintstationd keys add <key-name>
    @@ -54,7 +55,7 @@ 

    mintstationd keys add <key-name> --recover # Query the keystore for your public address -mintstationd keys show <key-name> -a

    +mintstationd keys show <key-name> --bech val -a

    Replace <key-name> with a key name of your choosing.

    After creating a new key, the key information and seed phrase will be shown. It is essential to write this seed phrase down and keep it in a safe place. The seed phrase is the only way to restore your keys.

    Get some tokens

    @@ -68,9 +69,9 @@

    If this command returns true then your node is still catching up. If it returns false then your node has caught up to the network current block and you are safe to proceed to upgrade to a validator node.

    When syncing from genesis, you will need to perform upgrades while catching up to the head. mintstation-1 upgrades are detailed in node-upgrade.md along with a description of each type of upgrade.

    Backup critical files

    -

    There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.mintstationd/config/:

    +

    There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.mintstation/config/:

    • priv_validator_key.json
    • node_key.json
    -

    It is recommended that you encrypt the backup of these files.


    MIT 2023 © Nextra.
    \ No newline at end of file +

    It is recommended that you encrypt the backup of these files.


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mintstation/validator/upgrade.html b/mintstation/validator/upgrade.html index d656510f..4d6b2695 100644 --- a/mintstation/validator/upgrade.html +++ b/mintstation/validator/upgrade.html @@ -1,4 +1,4 @@ -Upgrades – Cosmostation Docs
    Mintstation
    Node & Validator
    Node Upgrade

    Upgrades

    +
    Mintstation
    Node & Validator
    Node Upgrades

    Node Upgrades

    Upgrades

    Release procedures for validators and node operators are explained here (opens in a new tab).

    Upgrade types

    @@ -24,4 +24,4 @@

    Planned upgrades, as the name suggests, are upgrades that are developed and proposed via governance. If approved by the community, these upgrades are undertaken by the chain automatically halting at the planned upgrade height.

    Node operators are then required to swap the binary for the planned upgrade binary. After all node operators have upgraded and started their nodes the network will continue in the upgraded state.

    Unplanned upgrade

    -

    Where emergency security patches are required node operators will be required to halt their nodes manually at the required upgrade height, swap the patched binary and restart their nodes. After all node operators have upgraded and started their nodes the network will continue in the upgraded state.


    MIT 2023 © Nextra.
    \ No newline at end of file +

    Where emergency security patches are required node operators will be required to halt their nodes manually at the required upgrade height, swap the patched binary and restart their nodes. After all node operators have upgraded and started their nodes the network will continue in the upgraded state.


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile.html b/mobile.html index e9e12621..8868f984 100644 --- a/mobile.html +++ b/mobile.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Introduction

    Introduction

    +
    Mobile Wallets
    Introduction

    Introduction

    Mobile wallets support various types of services.

    -

    Connections using Cosmostation and WalletConnect also implement the Keplr and Web3j specifications.


    MIT 2023 © Nextra.
    \ No newline at end of file +

    Connections using Cosmostation and WalletConnect also implement the Keplr and Web3j specifications.


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/article.html b/mobile/article.html index d0b9e081..baa5abe7 100644 --- a/mobile/article.html +++ b/mobile/article.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Article

    Articles

    +

    MIT 2023 © Nextra.
    \ No newline at end of file +

    Starname Service (opens in a new tab)


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/integration/cosmjs.html b/mobile/integration/cosmjs.html index 5d8425fe..7fc107a8 100644 --- a/mobile/integration/cosmjs.html +++ b/mobile/integration/cosmjs.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Integration
    Cosmjs

    Integrate cosmjs

    +

    MIT 2023 © Nextra.
    \ No newline at end of file +);

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/integration/cosmostation.html b/mobile/integration/cosmostation.html index 1406c119..e83748e8 100644 --- a/mobile/integration/cosmostation.html +++ b/mobile/integration/cosmostation.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Integration
    Cosmostation Specs

    Cosmostation

    +
    Mobile Wallets
    Integration
    Cosmostation Specs

    Cosmostation

    Using @cosmostation/extension-client to support both Mobile and PC in the same way as extensions.

    💡

    If your project's dApp works well in Cosmostation Extension, it will work well in mobile too.

    -

    For more detailed explanation, please refer to the Cosmostation Extension Guide.


    MIT 2023 © Nextra.
    \ No newline at end of file +

    For more detailed explanation, please refer to the Cosmostation Extension Guide.


    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/integration/walletconnect/accounts.html b/mobile/integration/walletconnect/accounts.html index b8ea7d8d..6fa65d81 100644 --- a/mobile/integration/walletconnect/accounts.html +++ b/mobile/integration/walletconnect/accounts.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Integration
    WalletConnect 1.0(Deprecated)
    Accounts

    Accounts

    +
    Mobile Wallets
    Integration
    WalletConnect 1.0(Deprecated)
    Accounts

    Accounts

    Use account on Cosmostation Mobile Wallet via WalletConnect.

    Get Accounts

    @@ -42,4 +42,4 @@

    address: Uint8Array; pubKey: string; bech32Address: string; -};


    MIT 2023 © Nextra.
    \ No newline at end of file +};

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/integration/walletconnect/connect.html b/mobile/integration/walletconnect/connect.html index 45e44a8d..5afc31c8 100644 --- a/mobile/integration/walletconnect/connect.html +++ b/mobile/integration/walletconnect/connect.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Integration
    WalletConnect 1.0(Deprecated)
    Connect

    Connect

    +

    MIT 2023 © Nextra.
    \ No newline at end of file +});

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/integration/walletconnect/sign-tx.html b/mobile/integration/walletconnect/sign-tx.html index 885d6263..c27dbaad 100644 --- a/mobile/integration/walletconnect/sign-tx.html +++ b/mobile/integration/walletconnect/sign-tx.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Integration
    WalletConnect 1.0(Deprecated)
    Sign Transaction

    Sign Transactions

    +
    Mobile Wallets
    Integration
    WalletConnect 1.0(Deprecated)
    Sign Transaction

    Sign Transactions

    Sign transcation using Cosmostation Mobile Wallet via WalletConnect.

    export function getSignTxRequest(chainId, signer, signDoc) {
       return {
    @@ -52,4 +52,4 @@
     
    Model
    type SignTxResponse = {
       signed: StdSignDoc;
       signature: { signature: string; pub_key: { type: string; value: string } };
    -};

    MIT 2023 © Nextra.
    \ No newline at end of file +};

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/integration/walletconnect2.html b/mobile/integration/walletconnect2.html index a4d4823e..82359286 100644 --- a/mobile/integration/walletconnect2.html +++ b/mobile/integration/walletconnect2.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Integration
    WalletConnect 2.0

    WalletConnect 2.0

    +

    MIT 2023 © Nextra.
    \ No newline at end of file +}

    MIT 2023 © Nextra.
    \ No newline at end of file diff --git a/mobile/listing.html b/mobile/listing.html index 6cff79c9..fae892ce 100644 --- a/mobile/listing.html +++ b/mobile/listing.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
    Mobile Wallets
    Listing on mobile

    How to dApp listing?

    +
    \ No newline at end of file +

    https://github.com/cosmostation/chainlist/blob/main/dapp/README.md (opens in a new tab)


    MIT 2023 © Nextra.
    \ No newline at end of file