@bsv/wallet-toolbox
Version:
BRC100 conforming wallet, wallet storage and wallet signer components
38 lines (36 loc) • 3.61 MB
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<base href=".">
<meta charset="utf-8"/>
<link rel="icon" href="https://editor.jsight.io/favicon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
<meta name="description" content="Welcome to JSight"/>
<link rel="apple-touch-icon-precomposed" sizes="512x512" href="https://editor.jsight.io/apple-touch-icon-512x512.png"/>
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="https://editor.jsight.io/apple-touch-icon-152x152.png"/>
<meta name="application-name" content=" "/>
<meta name="msapplication-TileColor" content="#FFFFFF"/>
<meta name="msapplication-TileImage" content="https://editor.jsight.io/mstile-144x144.png"/>
<meta property="og:title" content="JSight — the Best API documentation language and tool"/>
<meta property="og:description" content="Are you fed up of OpenAPI? JSight is the simplest, user-friendly, compact language for description of REST API. Feel the difference compared to Swagger!"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://editor.jsight.io"/>
<meta property="og:image" content="https://editor.jsight.io/oggImage.png"/>
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="720">
<meta property="og:site_name" content="JSight.io">
<meta property="fb:app_id" content="609425093466922">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@jsightapi">
<meta name="twitter:creator" content="@jsightapi">
<link rel="manifest" href="https://editor.jsight.io/manifest.json"/>
<title>Wallet Storage Client JSON-RPC Docs</title>
<script>
window.isExport = true;
var jdoc = {"tags":{"@_":{"name":"@_","title":"/","interactionGroups":[{"protocol":"json-rpc-2.0","interactions":["json-rpc-2.0 abortAction /","json-rpc-2.0 createAction /","json-rpc-2.0 destroy /","json-rpc-2.0 findCertificatesAuth /","json-rpc-2.0 findOrInsertSyncStateAuth /","json-rpc-2.0 findOrInsertUser /","json-rpc-2.0 findOutputBasketsAuth /","json-rpc-2.0 findOutputsAuth /","json-rpc-2.0 findProvenTxReqs /","json-rpc-2.0 getServices /","json-rpc-2.0 getSettings /","json-rpc-2.0 getSyncChunk /","json-rpc-2.0 insertCertificateAuth /","json-rpc-2.0 internalizeAction /","json-rpc-2.0 isAvailable /","json-rpc-2.0 isStorageProvider /","json-rpc-2.0 listActions /","json-rpc-2.0 listCertificates /","json-rpc-2.0 listOutputs /","json-rpc-2.0 makeAvailable /","json-rpc-2.0 migrate /","json-rpc-2.0 processAction /","json-rpc-2.0 processSyncChunk /","json-rpc-2.0 relinquishCertificate /","json-rpc-2.0 relinquishOutput /","json-rpc-2.0 setActive /","json-rpc-2.0 setServices /","json-rpc-2.0 updateProvenTxReqWithNewProvenTx /"]}]}},"userTypes":{"@AuthId":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"note":"User's identity key.","key":"identityKey","tokenType":"string","type":"string","scalarValue":"user-123","optional":false},{"note":"Active storage identity key.","key":"storageIdentityKey","tokenType":"string","type":"string","scalarValue":"storage-456","optional":false}],"optional":false},"example":"{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"}","notation":"jsight"}},"@AbortActionArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"note":"Reference for the action.","key":"actionRef","tokenType":"string","type":"string","scalarValue":"action-789","optional":false}],"optional":false},"example":"{\"actionRef\":\"action-789\"}","notation":"jsight"}},"@AbortActionResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"note":"Indicates if the action was aborted.","key":"success","tokenType":"boolean","type":"boolean","scalarValue":"true","optional":false}],"optional":false},"example":"{\"success\":true}","notation":"jsight"}},"@ValidCreateActionArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"actionData","tokenType":"object","type":"object","note":"Data for createAction.","children":[],"optional":false}],"optional":false},"example":"{\"actionData\":{}}","notation":"jsight"}},"@StorageCreateActionResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"note":"Created action ID.","key":"actionId","tokenType":"string","type":"string","scalarValue":"action-101","optional":false}],"optional":false},"example":"{\"actionId\":\"action-101\"}","notation":"jsight"}},"@FindCertificatesArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"filter","tokenType":"object","type":"object","note":"Filtering criteria.","children":[],"optional":false}],"optional":false},"example":"{\"filter\":{}}","notation":"jsight"}},"@TableCertificateX":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"id","tokenType":"number","type":"integer","scalarValue":"1","optional":false},{"key":"name","tokenType":"string","type":"string","scalarValue":"Certificate Name","optional":false}],"optional":false},"example":"{\"id\":1,\"name\":\"Certificate Name\"}","notation":"jsight"}},"@TableSyncState":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"note":"Sync state.","key":"state","tokenType":"string","type":"string","scalarValue":"synced","optional":false}],"optional":false},"example":"{\"state\":\"synced\"}","notation":"jsight"}},"@TableUser":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"id","tokenType":"string","type":"string","scalarValue":"user-123","optional":false},{"key":"name","tokenType":"string","type":"string","scalarValue":"John Doe","optional":false}],"optional":false},"example":"{\"id\":\"user-123\",\"name\":\"John Doe\"}","notation":"jsight"}},"@FindOutputBasketsArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"criteria","tokenType":"object","type":"object","note":"Criteria for output baskets.","children":[],"optional":false}],"optional":false},"example":"{\"criteria\":{}}","notation":"jsight"}},"@TableOutputBasket":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"id","tokenType":"number","type":"integer","scalarValue":"1","optional":false},{"key":"description","tokenType":"string","type":"string","scalarValue":"Basket description","optional":false}],"optional":false},"example":"{\"id\":1,\"description\":\"Basket description\"}","notation":"jsight"}},"@FindOutputsArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"criteria","tokenType":"object","type":"object","note":"Criteria for outputs.","children":[],"optional":false}],"optional":false},"example":"{\"criteria\":{}}","notation":"jsight"}},"@TableOutput":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"id","tokenType":"number","type":"integer","scalarValue":"1","optional":false},{"key":"value","tokenType":"number","type":"integer","scalarValue":"100","optional":false}],"optional":false},"example":"{\"id\":1,\"value\":100}","notation":"jsight"}},"@FindProvenTxReqsArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"criteria","tokenType":"object","type":"object","note":"Criteria for transaction proof requests.","children":[],"optional":false}],"optional":false},"example":"{\"criteria\":{}}","notation":"jsight"}},"@TableProvenTxReq":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"id","tokenType":"number","type":"integer","scalarValue":"1","optional":false},{"key":"status","tokenType":"string","type":"string","scalarValue":"pending","optional":false}],"optional":false},"example":"{\"id\":1,\"status\":\"pending\"}","notation":"jsight"}},"@WalletServices":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"service","tokenType":"string","type":"string","scalarValue":"example","optional":false}],"optional":false},"example":"{\"service\":\"example\"}","notation":"jsight"}},"@TableSettings":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"setting","tokenType":"string","type":"string","scalarValue":"value","optional":false}],"optional":false},"example":"{\"setting\":\"value\"}","notation":"jsight"}},"@RequestSyncChunkArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"userId","tokenType":"string","type":"string","scalarValue":"user-123","optional":false},{"key":"storage","tokenType":"string","type":"string","scalarValue":"storage-456","optional":false}],"optional":false},"example":"{\"userId\":\"user-123\",\"storage\":\"storage-456\"}","notation":"jsight"}},"@SyncChunk":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"chunkId","tokenType":"number","type":"integer","scalarValue":"1","optional":false},{"key":"data","tokenType":"array","type":"array","children":[],"optional":false}],"optional":false},"example":"{\"chunkId\":1,\"data\":[]}","notation":"jsight"}},"@InternalizeActionArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"transactionId","tokenType":"string","type":"string","scalarValue":"tx-001","optional":false}],"optional":false},"example":"{\"transactionId\":\"tx-001\"}","notation":"jsight"}},"@InternalizeActionResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"status","tokenType":"string","type":"string","scalarValue":"internalized","optional":false}],"optional":false},"example":"{\"status\":\"internalized\"}","notation":"jsight"}},"@ValidListActionsArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"filter","tokenType":"object","type":"object","note":"Filter for actions.","children":[],"optional":false}],"optional":false},"example":"{\"filter\":{}}","notation":"jsight"}},"@ListActionsResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"actions","tokenType":"array","type":"array","note":"Array of actions.","children":[],"optional":false}],"optional":false},"example":"{\"actions\":[]}","notation":"jsight"}},"@ValidListCertificatesArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"filter","tokenType":"object","type":"object","note":"Filter for certificates.","children":[],"optional":false}],"optional":false},"example":"{\"filter\":{}}","notation":"jsight"}},"@ListCertificatesResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"certificates","tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@TableCertificateX","scalarValue":"@TableCertificateX","optional":true}],"optional":false}],"optional":false},"example":"{\"certificates\":[{\"id\":1,\"name\":\"Certificate Name\"}]}","notation":"jsight","usedUserTypes":["@TableCertificateX"]}},"@ValidListOutputsArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"filter","tokenType":"object","type":"object","note":"Filter for outputs.","children":[],"optional":false}],"optional":false},"example":"{\"filter\":{}}","notation":"jsight"}},"@ListOutputsResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"outputs","tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@TableOutput","scalarValue":"@TableOutput","optional":true}],"optional":false}],"optional":false},"example":"{\"outputs\":[{\"id\":1,\"value\":100}]}","notation":"jsight","usedUserTypes":["@TableOutput"]}},"@StorageProcessActionArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"signedTransaction","tokenType":"object","type":"object","note":"Completed signed transaction.","children":[],"optional":false}],"optional":false},"example":"{\"signedTransaction\":{}}","notation":"jsight"}},"@StorageProcessActionResults":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"processed","tokenType":"boolean","type":"boolean","scalarValue":"true","optional":false}],"optional":false},"example":"{\"processed\":true}","notation":"jsight"}},"@ProcessSyncChunkResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"done","tokenType":"boolean","type":"boolean","scalarValue":"false","optional":false},{"key":"insertCount","tokenType":"number","type":"integer","scalarValue":"0","optional":false},{"key":"updateCount","tokenType":"number","type":"integer","scalarValue":"0","optional":false}],"optional":false},"example":"{\"done\":false,\"insertCount\":0,\"updateCount\":0}","notation":"jsight"}},"@RelinquishCertificateArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"certificateId","tokenType":"number","type":"integer","scalarValue":"1","optional":false}],"optional":false},"example":"{\"certificateId\":1}","notation":"jsight"}},"@RelinquishOutputArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"outputId","tokenType":"number","type":"integer","scalarValue":"1","optional":false}],"optional":false},"example":"{\"outputId\":1}","notation":"jsight"}},"@UpdateProvenTxReqWithNewProvenTxArgs":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"requestId","tokenType":"number","type":"integer","scalarValue":"1","optional":false},{"key":"newProof","tokenType":"object","type":"object","children":[],"optional":false}],"optional":false},"example":"{\"requestId\":1,\"newProof\":{}}","notation":"jsight"}},"@UpdateProvenTxReqWithNewProvenTxResult":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"updated","tokenType":"boolean","type":"boolean","scalarValue":"true","optional":false}],"optional":false},"example":"{\"updated\":true}","notation":"jsight"}}},"interactions":{"json-rpc-2.0 abortAction /":{"id":"json-rpc-2.0 abortAction /","protocol":"json-rpc-2.0","path":"/","method":"abortAction","tags":["@_"],"annotation":"Aborts an action by reference string.","description":"Aborts an action by reference string.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@AbortActionArgs","scalarValue":"@AbortActionArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"actionRef\":\"action-789\"}]","notation":"jsight","usedUserTypes":["@AuthId","@AbortActionArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@AbortActionResult","scalarValue":"@AbortActionResult","optional":false},"example":"{\"success\":true}","notation":"jsight","usedUserTypes":["@AbortActionResult"]}}},"json-rpc-2.0 createAction /":{"id":"json-rpc-2.0 createAction /","protocol":"json-rpc-2.0","path":"/","method":"createAction","tags":["@_"],"annotation":"Process wallet createAction.","description":"Storage level processing for wallet createAction.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@ValidCreateActionArgs","scalarValue":"@ValidCreateActionArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"actionData\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@ValidCreateActionArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@StorageCreateActionResult","scalarValue":"@StorageCreateActionResult","optional":false},"example":"{\"actionId\":\"action-101\"}","notation":"jsight","usedUserTypes":["@StorageCreateActionResult"]}}},"json-rpc-2.0 destroy /":{"id":"json-rpc-2.0 destroy /","protocol":"json-rpc-2.0","path":"/","method":"destroy","tags":["@_"],"annotation":"Clean up resources.","description":"Called to cleanup resources when no further use of this object will occur.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[],"optional":false},"example":"[]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"null","type":"null","scalarValue":"null","optional":false},"example":"null","notation":"jsight"}}},"json-rpc-2.0 findCertificatesAuth /":{"id":"json-rpc-2.0 findCertificatesAuth /","protocol":"json-rpc-2.0","path":"/","method":"findCertificatesAuth","tags":["@_"],"annotation":"Find user certificates.","description":"Retrieve certificates with optional fields; values stored encrypted.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@FindCertificatesArgs","scalarValue":"@FindCertificatesArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"filter\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@FindCertificatesArgs"]}},"result":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@TableCertificateX","scalarValue":"@TableCertificateX","optional":true}],"optional":false},"example":"[{\"id\":1,\"name\":\"Certificate Name\"}]","notation":"jsight","usedUserTypes":["@TableCertificateX"]}}},"json-rpc-2.0 findOrInsertSyncStateAuth /":{"id":"json-rpc-2.0 findOrInsertSyncStateAuth /","protocol":"json-rpc-2.0","path":"/","method":"findOrInsertSyncStateAuth","tags":["@_"],"annotation":"Find or insert sync state.","description":"Finds or inserts a sync state record for tracking wallet data replication.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"string","type":"string","scalarValue":"storage-456","optional":true},{"tokenType":"string","type":"string","scalarValue":"MyStorage","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},\"storage-456\",\"MyStorage\"]","notation":"jsight","usedUserTypes":["@AuthId"]}},"result":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"syncState","tokenType":"reference","type":"@TableSyncState","scalarValue":"@TableSyncState","optional":false},{"key":"isNew","tokenType":"boolean","type":"boolean","scalarValue":"true","optional":false}],"optional":false},"example":"{\"syncState\":{\"state\":\"synced\"},\"isNew\":true}","notation":"jsight","usedUserTypes":["@TableSyncState"]}}},"json-rpc-2.0 findOrInsertUser /":{"id":"json-rpc-2.0 findOrInsertUser /","protocol":"json-rpc-2.0","path":"/","method":"findOrInsertUser","tags":["@_"],"annotation":"Find or initialize a new user.","description":"Finds and possibly creates a new user by identity key.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"string","type":"string","scalarValue":"user-123","optional":true}],"optional":false},"example":"[\"user-123\"]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"object","type":"object","children":[{"key":"user","tokenType":"reference","type":"@TableUser","scalarValue":"@TableUser","optional":false},{"key":"isNew","tokenType":"boolean","type":"boolean","scalarValue":"true","optional":false}],"optional":false},"example":"{\"user\":{\"id\":\"user-123\",\"name\":\"John Doe\"},\"isNew\":true}","notation":"jsight","usedUserTypes":["@TableUser"]}}},"json-rpc-2.0 findOutputBasketsAuth /":{"id":"json-rpc-2.0 findOutputBasketsAuth /","protocol":"json-rpc-2.0","path":"/","method":"findOutputBasketsAuth","tags":["@_"],"annotation":"Find output baskets.","description":"Retrieve output baskets matching criteria.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@FindOutputBasketsArgs","scalarValue":"@FindOutputBasketsArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"criteria\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@FindOutputBasketsArgs"]}},"result":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@TableOutputBasket","scalarValue":"@TableOutputBasket","optional":true}],"optional":false},"example":"[{\"id\":1,\"description\":\"Basket description\"}]","notation":"jsight","usedUserTypes":["@TableOutputBasket"]}}},"json-rpc-2.0 findOutputsAuth /":{"id":"json-rpc-2.0 findOutputsAuth /","protocol":"json-rpc-2.0","path":"/","method":"findOutputsAuth","tags":["@_"],"annotation":"Find outputs.","description":"Retrieve outputs matching criteria.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@FindOutputsArgs","scalarValue":"@FindOutputsArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"criteria\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@FindOutputsArgs"]}},"result":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@TableOutput","scalarValue":"@TableOutput","optional":true}],"optional":false},"example":"[{\"id\":1,\"value\":100}]","notation":"jsight","usedUserTypes":["@TableOutput"]}}},"json-rpc-2.0 findProvenTxReqs /":{"id":"json-rpc-2.0 findProvenTxReqs /","protocol":"json-rpc-2.0","path":"/","method":"findProvenTxReqs","tags":["@_"],"annotation":"Find transaction proof requests.","description":"Retrieve proof requests matching criteria.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@FindProvenTxReqsArgs","scalarValue":"@FindProvenTxReqsArgs","optional":true}],"optional":false},"example":"[{\"criteria\":{}}]","notation":"jsight","usedUserTypes":["@FindProvenTxReqsArgs"]}},"result":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@TableProvenTxReq","scalarValue":"@TableProvenTxReq","optional":true}],"optional":false},"example":"[{\"id\":1,\"status\":\"pending\"}]","notation":"jsight","usedUserTypes":["@TableProvenTxReq"]}}},"json-rpc-2.0 getServices /":{"id":"json-rpc-2.0 getServices /","protocol":"json-rpc-2.0","path":"/","method":"getServices","tags":["@_"],"annotation":"Get wallet services.","description":"Remote storage does not offer services; throws error.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[],"optional":false},"example":"[]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"reference","type":"@WalletServices","scalarValue":"@WalletServices","optional":false},"example":"{\"service\":\"example\"}","notation":"jsight","usedUserTypes":["@WalletServices"]}}},"json-rpc-2.0 getSettings /":{"id":"json-rpc-2.0 getSettings /","protocol":"json-rpc-2.0","path":"/","method":"getSettings","tags":["@_"],"annotation":"Get remote storage settings.","description":"Returns remote storage TableSettings if available.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[],"optional":false},"example":"[]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"reference","type":"@TableSettings","scalarValue":"@TableSettings","optional":false},"example":"{\"setting\":\"value\"}","notation":"jsight","usedUserTypes":["@TableSettings"]}}},"json-rpc-2.0 getSyncChunk /":{"id":"json-rpc-2.0 getSyncChunk /","protocol":"json-rpc-2.0","path":"/","method":"getSyncChunk","tags":["@_"],"annotation":"Request a sync chunk.","description":"Retrieve a chunk of replication data.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@RequestSyncChunkArgs","scalarValue":"@RequestSyncChunkArgs","optional":true}],"optional":false},"example":"[{\"userId\":\"user-123\",\"storage\":\"storage-456\"}]","notation":"jsight","usedUserTypes":["@RequestSyncChunkArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@SyncChunk","scalarValue":"@SyncChunk","optional":false},"example":"{\"chunkId\":1,\"data\":[]}","notation":"jsight","usedUserTypes":["@SyncChunk"]}}},"json-rpc-2.0 insertCertificateAuth /":{"id":"json-rpc-2.0 insertCertificateAuth /","protocol":"json-rpc-2.0","path":"/","method":"insertCertificateAuth","tags":["@_"],"annotation":"Insert a new certificate.","description":"Inserts a certificate with fields and keyring.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@TableCertificateX","scalarValue":"@TableCertificateX","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"id\":1,\"name\":\"Certificate Name\"}]","notation":"jsight","usedUserTypes":["@AuthId","@TableCertificateX"]}},"result":{"schema":{"content":{"tokenType":"number","type":"integer","scalarValue":"1","optional":false},"example":"1","notation":"jsight"}}},"json-rpc-2.0 internalizeAction /":{"id":"json-rpc-2.0 internalizeAction /","protocol":"json-rpc-2.0","path":"/","method":"internalizeAction","tags":["@_"],"annotation":"Process internalize action.","description":"Processes internalize action, updates outputs and triggers proof validation.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@InternalizeActionArgs","scalarValue":"@InternalizeActionArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"transactionId\":\"tx-001\"}]","notation":"jsight","usedUserTypes":["@AuthId","@InternalizeActionArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@InternalizeActionResult","scalarValue":"@InternalizeActionResult","optional":false},"example":"{\"status\":\"internalized\"}","notation":"jsight","usedUserTypes":["@InternalizeActionResult"]}}},"json-rpc-2.0 isAvailable /":{"id":"json-rpc-2.0 isAvailable /","protocol":"json-rpc-2.0","path":"/","method":"isAvailable","tags":["@_"],"annotation":"Check if storage settings are available.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[],"optional":false},"example":"[]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"boolean","type":"boolean","scalarValue":"true","optional":false},"example":"true","notation":"jsight"}}},"json-rpc-2.0 isStorageProvider /":{"id":"json-rpc-2.0 isStorageProvider /","protocol":"json-rpc-2.0","path":"/","method":"isStorageProvider","tags":["@_"],"annotation":"Check storage provider status.","description":"Returns false indicating this is not a lower level storage provider.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[],"optional":false},"example":"[]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"boolean","type":"boolean","scalarValue":"false","optional":false},"example":"false","notation":"jsight"}}},"json-rpc-2.0 listActions /":{"id":"json-rpc-2.0 listActions /","protocol":"json-rpc-2.0","path":"/","method":"listActions","tags":["@_"],"annotation":"List wallet actions.","description":"Retrieves a list of wallet actions.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@ValidListActionsArgs","scalarValue":"@ValidListActionsArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"filter\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@ValidListActionsArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@ListActionsResult","scalarValue":"@ListActionsResult","optional":false},"example":"{\"actions\":[]}","notation":"jsight","usedUserTypes":["@ListActionsResult"]}}},"json-rpc-2.0 listCertificates /":{"id":"json-rpc-2.0 listCertificates /","protocol":"json-rpc-2.0","path":"/","method":"listCertificates","tags":["@_"],"annotation":"List wallet certificates.","description":"Retrieves a list of wallet certificates.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@ValidListCertificatesArgs","scalarValue":"@ValidListCertificatesArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"filter\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@ValidListCertificatesArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@ListCertificatesResult","scalarValue":"@ListCertificatesResult","optional":false},"example":"{\"certificates\":[{\"id\":1,\"name\":\"Certificate Name\"}]}","notation":"jsight","usedUserTypes":["@ListCertificatesResult"]}}},"json-rpc-2.0 listOutputs /":{"id":"json-rpc-2.0 listOutputs /","protocol":"json-rpc-2.0","path":"/","method":"listOutputs","tags":["@_"],"annotation":"List wallet outputs.","description":"Retrieves a list of wallet outputs.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@ValidListOutputsArgs","scalarValue":"@ValidListOutputsArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"filter\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@ValidListOutputsArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@ListOutputsResult","scalarValue":"@ListOutputsResult","optional":false},"example":"{\"outputs\":[{\"id\":1,\"value\":100}]}","notation":"jsight","usedUserTypes":["@ListOutputsResult"]}}},"json-rpc-2.0 makeAvailable /":{"id":"json-rpc-2.0 makeAvailable /","protocol":"json-rpc-2.0","path":"/","method":"makeAvailable","tags":["@_"],"annotation":"Retrieve storage settings.","description":"Must be called prior to use; retrieves TableSettings.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[],"optional":false},"example":"[]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"reference","type":"@TableSettings","scalarValue":"@TableSettings","optional":false},"example":"{\"setting\":\"value\"}","notation":"jsight","usedUserTypes":["@TableSettings"]}}},"json-rpc-2.0 migrate /":{"id":"json-rpc-2.0 migrate /","protocol":"json-rpc-2.0","path":"/","method":"migrate","tags":["@_"],"annotation":"Request schema migration.","description":"It requests schema migration; typically ignored.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"string","type":"string","scalarValue":"MyStorage","optional":true},{"tokenType":"string","type":"string","scalarValue":"storage-456","optional":true}],"optional":false},"example":"[\"MyStorage\",\"storage-456\"]","notation":"jsight"}},"result":{"schema":{"content":{"tokenType":"string","type":"string","scalarValue":"migration-identifier","optional":false},"example":"\"migration-identifier\"","notation":"jsight"}}},"json-rpc-2.0 processAction /":{"id":"json-rpc-2.0 processAction /","protocol":"json-rpc-2.0","path":"/","method":"processAction","tags":["@_"],"annotation":"Process wallet action.","description":"Processes createAction or signAction with completed transaction.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@StorageProcessActionArgs","scalarValue":"@StorageProcessActionArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"signedTransaction\":{}}]","notation":"jsight","usedUserTypes":["@AuthId","@StorageProcessActionArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@StorageProcessActionResults","scalarValue":"@StorageProcessActionResults","optional":false},"example":"{\"processed\":true}","notation":"jsight","usedUserTypes":["@StorageProcessActionResults"]}}},"json-rpc-2.0 processSyncChunk /":{"id":"json-rpc-2.0 processSyncChunk /","protocol":"json-rpc-2.0","path":"/","method":"processSyncChunk","tags":["@_"],"annotation":"Process a sync chunk.","description":"Processes a chunk of replication data.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@RequestSyncChunkArgs","scalarValue":"@RequestSyncChunkArgs","optional":true},{"tokenType":"reference","type":"@SyncChunk","scalarValue":"@SyncChunk","optional":true}],"optional":false},"example":"[{\"userId\":\"user-123\",\"storage\":\"storage-456\"},{\"chunkId\":1,\"data\":[]}]","notation":"jsight","usedUserTypes":["@RequestSyncChunkArgs","@SyncChunk"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@ProcessSyncChunkResult","scalarValue":"@ProcessSyncChunkResult","optional":false},"example":"{\"done\":false,\"insertCount\":0,\"updateCount\":0}","notation":"jsight","usedUserTypes":["@ProcessSyncChunkResult"]}}},"json-rpc-2.0 relinquishCertificate /":{"id":"json-rpc-2.0 relinquishCertificate /","protocol":"json-rpc-2.0","path":"/","method":"relinquishCertificate","tags":["@_"],"annotation":"Relinquish a certificate.","description":"Marks a certificate as deleted.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@RelinquishCertificateArgs","scalarValue":"@RelinquishCertificateArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"certificateId\":1}]","notation":"jsight","usedUserTypes":["@AuthId","@RelinquishCertificateArgs"]}},"result":{"schema":{"content":{"tokenType":"number","type":"integer","scalarValue":"1","optional":false},"example":"1","notation":"jsight"}}},"json-rpc-2.0 relinquishOutput /":{"id":"json-rpc-2.0 relinquishOutput /","protocol":"json-rpc-2.0","path":"/","method":"relinquishOutput","tags":["@_"],"annotation":"Relinquish an output.","description":"Removes an output from its tracking basket.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"reference","type":"@RelinquishOutputArgs","scalarValue":"@RelinquishOutputArgs","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},{\"outputId\":1}]","notation":"jsight","usedUserTypes":["@AuthId","@RelinquishOutputArgs"]}},"result":{"schema":{"content":{"tokenType":"number","type":"integer","scalarValue":"1","optional":false},"example":"1","notation":"jsight"}}},"json-rpc-2.0 setActive /":{"id":"json-rpc-2.0 setActive /","protocol":"json-rpc-2.0","path":"/","method":"setActive","tags":["@_"],"annotation":"Promote a backup to active.","description":"Promotes a backup storage provider to active.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@AuthId","scalarValue":"@AuthId","optional":true},{"tokenType":"string","type":"string","scalarValue":"backup-storage-key","optional":true}],"optional":false},"example":"[{\"identityKey\":\"user-123\",\"storageIdentityKey\":\"storage-456\"},\"backup-storage-key\"]","notation":"jsight","usedUserTypes":["@AuthId"]}},"result":{"schema":{"content":{"tokenType":"number","type":"integer","scalarValue":"1","optional":false},"example":"1","notation":"jsight"}}},"json-rpc-2.0 setServices /":{"id":"json-rpc-2.0 setServices /","protocol":"json-rpc-2.0","path":"/","method":"setServices","tags":["@_"],"annotation":"Set wallet services.","description":"Ignored. Remote storage cannot share services.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@WalletServices","scalarValue":"@WalletServices","optional":true}],"optional":false},"example":"[{\"service\":\"example\"}]","notation":"jsight","usedUserTypes":["@WalletServices"]}},"result":{"schema":{"content":{"tokenType":"null","type":"null","scalarValue":"null","optional":false},"example":"null","notation":"jsight"}}},"json-rpc-2.0 updateProvenTxReqWithNewProvenTx /":{"id":"json-rpc-2.0 updateProvenTxReqWithNewProvenTx /","protocol":"json-rpc-2.0","path":"/","method":"updateProvenTxReqWithNewProvenTx","tags":["@_"],"annotation":"Update proof request.","description":"Updates a proof request with new transaction proof data.","params":{"schema":{"content":{"tokenType":"array","type":"array","children":[{"tokenType":"reference","type":"@UpdateProvenTxReqWithNewProvenTxArgs","scalarValue":"@UpdateProvenTxReqWithNewProvenTxArgs","optional":true}],"optional":false},"example":"[{\"requestId\":1,\"newProof\":{}}]","notation":"jsight","usedUserTypes":["@UpdateProvenTxReqWithNewProvenTxArgs"]}},"result":{"schema":{"content":{"tokenType":"reference","type":"@UpdateProvenTxReqWithNewProvenTxResult","scalarValue":"@UpdateProvenTxReqWithNewProvenTxResult","optional":false},"example":"{\"updated\":true}","notation":"jsight","usedUserTypes":["@UpdateProvenTxReqWithNewProvenTxResult"]}}}},"jsight":"0.3","jdocExchangeVersion":"2.0.0"}
</script>
<script type="module">
/*! For license information please see export-main.js.LICENSE.txt */
(()=>{var e={72414:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function o(e,t,i){return e.concat(t).map((function(e){return n(e,i)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function r(e,t){try{return t in e}catch(i){return!1}}function a(e,t,i){var o={};return i.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=n(e[t],i)})),s(t).forEach((function(s){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(r(e,s)&&i.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return l;var i=t.customMerge(e);return"function"===typeof i?i:l}(s,i)(e[s],t[s],i):o[s]=n(t[s],i))})),o}function l(e,i,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var r=Array.isArray(i);return r===Array.isArray(e)?r?s.arrayMerge(e,i,s):a(e,i,s):n(i,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return l(e,i,t)}),{})};var c=l;e.exports=c},32154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},65232:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&o(t,e,i);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(84251)),l=i(64824),c=i(32154),d=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var u=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var i=("length"in e?e:[e]),n="",o=0;o<i.length;o++)n+=g(i[o],t);return n}function g(e,t){switch(e.type){case a.Root:return h(e.children,t);case a.Directive:case a.Doctype:return"<"+e.data+">";case a.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case a.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case a.Script:case a.Style:case a.Tag:return function(e,t){var i;"foreign"===t.xmlMode&&(e.name=null!==(i=c.elementNames.get(e.name))&&void 0!==i?i:e.name,e.parent&&p.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1})));!t.xmlMode&&f.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var o="<"+e.name,s=function(e,t){if(e)return Object.keys(e).map((function(i){var n,o,s=null!==(n=e[i])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(i=null!==(o=c.attributeNames.get(i))&&void 0!==o?o:i),t.emptyAttrs||t.xmlMode||""!==s?i+'="'+(!1!==t.decodeEntities?l.encodeXML(s):s.replace(/"/g,"""))+'"':i})).join(" ")}(e.attribs,t);s&&(o+=" "+s);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&u.has(e.name))?(t.xmlMode||(o+=" "),o+="/>"):(o+=">",e.children.length>0&&(o+=h(e.children,t)),!t.xmlMode&&u.has(e.name)||(o+="</"+e.name+">"));return o}(e,t);case a.Text:return function(e,t){var i=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&d.has(e.parent.name)||(i=l.encodeXML(i));return i}(e,t)}}t.default=h;var p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=new Set(["svg","math"])},84251:(e,t)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(i=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style},t.Root=i.Root,t.Text=i.Text,t.Directive=i.Directive,t.Comment=i.Comment,t.Script=i.Script,t.Style=i.Style,t.Tag=i.Tag,t.CDATA=i.CDATA,t.Doctype=i.Doctype},44719:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var s=i(84251),r=i(11103);o(i(11103),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,i){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"===typeof t&&(i=t,t=l),"object"===typeof e&&(t=e,e=void 0),this.callback=null!==e&&void 0!==e?e:null,this.options=null!==t&&void 0!==t?t:l,this.elementCB=null!==i&&void 0!==i?i:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var i=this.options.xmlMode?s.ElementType.Tag:void 0,n=new r.Element(e,t,void 0,i);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,i=this.lastNode;if(i&&i.type===s.ElementType.Text)t?i.data=(i.data+e).replace(a," "):i.data+=e,this.options.withEndIndices&&(i.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new r.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment)this.lastNode.data+=e;else{var t=new r.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new r.Text(""),t=new r.NodeWithChildren(s.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var i=new r.ProcessingInstruction(e,t);this.addNode(i)},e.prototype.handleCallback=function(e){if("function"===typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],i=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),i&&(e.prev=i,i.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},11103:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=nu