From 9652484dc5ce1f17a1a43e90e1d5c555b72aaa3b Mon Sep 17 00:00:00 2001 From: Github Deployment Date: Fri, 17 May 2024 15:56:27 +0000 Subject: [PATCH] deploy latest main --- .vocs/search-index-2bb7e19a.json | 1 + assets/{apis-ByRr4L1P.js => apis-Cz6Otmp9.js} | 2 +- ...{client-0QvmPwMR.js => client-BgaL9RwG.js} | 2 +- ...odegen-C-E0Y6vn.js => codegen-BYKrWVlU.js} | 2 +- ...ants-D427w9L6.js => constants-waEoK2Pg.js} | 2 +- ...tMjqxRV.js => getting-started-L-jvfI-a.js} | 2 +- .../{index-CnBJmQ_B.js => index-CnhgBks4.js} | 24 +++++++++---------- .../{index-D1SFmwZ8.js => index-D1EFUyQH.js} | 2 +- ...ders-BHA-cFIZ.js => providers-Cv3d4kKp.js} | 2 +- ...ueries-DpMx1Ps6.js => queries-CbKGZF_c.js} | 2 +- ...igners-Bxi6oa_D.js => signers-oNd0Cq5s.js} | 2 +- .../{typed--Mgjkvy4.js => typed-D4g5AJsN.js} | 2 +- .../{types-BY_Dv84a.js => types-BqJWXfAw.js} | 2 +- ...pgrade-D1A4fshp.js => upgrade-DGR_r9bB.js} | 8 +++---- client/index.html | 2 +- codegen/index.html | 2 +- getting-started/index.html | 2 +- index.html | 2 +- providers/index.html | 2 +- recipes/upgrade/index.html | 2 +- signers/index.html | 2 +- typed/apis/index.html | 2 +- typed/constants/index.html | 2 +- typed/index.html | 2 +- typed/queries/index.html | 2 +- types/index.html | 2 +- 26 files changed, 40 insertions(+), 39 deletions(-) create mode 100644 .vocs/search-index-2bb7e19a.json rename assets/{apis-ByRr4L1P.js => apis-Cz6Otmp9.js} (99%) rename assets/{client-0QvmPwMR.js => client-BgaL9RwG.js} (99%) rename assets/{codegen-C-E0Y6vn.js => codegen-BYKrWVlU.js} (99%) rename assets/{constants-D427w9L6.js => constants-waEoK2Pg.js} (98%) rename assets/{getting-started-CtMjqxRV.js => getting-started-L-jvfI-a.js} (99%) rename assets/{index-CnBJmQ_B.js => index-CnhgBks4.js} (83%) rename assets/{index-D1SFmwZ8.js => index-D1EFUyQH.js} (98%) rename assets/{providers-BHA-cFIZ.js => providers-Cv3d4kKp.js} (99%) rename assets/{queries-DpMx1Ps6.js => queries-CbKGZF_c.js} (99%) rename assets/{signers-Bxi6oa_D.js => signers-oNd0Cq5s.js} (99%) rename assets/{typed--Mgjkvy4.js => typed-D4g5AJsN.js} (99%) rename assets/{types-BY_Dv84a.js => types-BqJWXfAw.js} (99%) rename assets/{upgrade-D1A4fshp.js => upgrade-DGR_r9bB.js} (96%) diff --git a/.vocs/search-index-2bb7e19a.json b/.vocs/search-index-2bb7e19a.json new file mode 100644 index 00000000..d31bfbe0 --- /dev/null +++ b/.vocs/search-index-2bb7e19a.json @@ -0,0 +1 @@ +{"documentCount":25,"nextId":25,"documentIds":{"0":"docs/pages/client.md#polkadotclient","1":"docs/pages/codegen.md#codegen","2":"docs/pages/codegen.md#contents","3":"docs/pages/codegen.md#usage","4":"docs/pages/providers.md#providers","5":"docs/pages/providers.md#logs-provider","6":"docs/pages/signers.md#signers","7":"docs/pages/signers.md#polkadotsigner-from-a-browser-extension","8":"docs/pages/signers.md#polkadotsigner-from-generic-signing-function","9":"docs/pages/typed.md#typedapi","10":"docs/pages/typed.md#iscompatible","11":"docs/pages/types.mdx#types","12":"docs/pages/types.mdx#ss58string","13":"docs/pages/types.mdx#hexstring","14":"docs/pages/types.mdx#enum","15":"docs/pages/types.mdx#binary","16":"docs/pages/types.mdx#fixedsizebinaryl","17":"docs/pages/types.mdx#fixedsizearrayl-t","18":"docs/pages/types.mdx#interface-types","19":"docs/pages/recipes/upgrade.md#preparing-for-a-runtime-upgrade","20":"docs/pages/typed/apis.md#runtime-apis","21":"docs/pages/typed/constants.md#constants","22":"docs/pages/typed/queries.md#storage-queries","23":"docs/pages/typed/queries.md#entries-without-keys","24":"docs/pages/typed/queries.md#entries-with-keys"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,240],"1":[1,1,166],"2":[1,1,105],"3":[1,1,68],"4":[1,1,99],"5":[2,1,79],"6":[1,1,70],"7":[5,1,57],"8":[5,1,66],"9":[1,1,116],"10":[1,1,128],"11":[1,1,29],"12":[1,1,84],"13":[1,1,27],"14":[1,1,167],"15":[1,1,42],"16":[5,1,19],"17":[6,1,32],"18":[2,1,67],"19":[5,1,204],"20":[2,1,95],"21":[1,1,78],"22":[2,1,20],"23":[3,2,76],"24":[3,2,126]},"averageFieldLength":[2.16,1.08,90.4],"storedFields":{"0":{"href":"/client#polkadotclient","html":"\n

PolkadotClient interface shapes the top-level API for polkadot-api. Once we get a client using createClient function, we'll find the following:

\n
interface PolkadotClient {\n  /**\n   * Retrieve the ChainSpecData as it comes from the\n   * [JSON-RPC spec](https://paritytech.github.io/json-rpc-interface-spec/api/chainSpec.html)\n   */\n  getChainSpecData: () => Promise<ChainSpecData>\n \n  /**\n   * Observable that emits `BlockInfo` from the latest known finalized block.\n   * It's a multicast and stateful observable, that will synchronously replay\n   * its latest known state.\n   */\n  finalizedBlock$: Observable<BlockInfo>\n  /**\n   * @returns Latest known finalized block.\n   */\n  getFinalizedBlock: () => Promise<BlockInfo>\n \n  /**\n   * Observable that emits an Array of `BlockInfo`, being the first element the\n   * latest known best block, and the last element the latest known finalized\n   * block. It's a multicast and stateful observable, that will synchronously\n   * replay its latest known state. This array is an immutable data structure;\n   * i.e. a new array is emitted at every event but the reference to its\n   * children are stable if the children didn't change.\n   *\n   * Note that subscribing to this observable already supersedes the need of\n   * subscribing to `finalizedBlock$`, since the last element of the array will\n   * be the latest known finalized block.\n   */\n  bestBlocks$: Observable<BlockInfo[]>\n  /**\n   * @returns Array of `BlockInfo`, being the first element the latest\n   *          known best block, and the last element the latest known\n   *          finalized block.\n   */\n  getBestBlocks: () => Promise<BlockInfo[]>\n \n  /**\n   * Observable to watch Block Body.\n   *\n   * @param hash  It can be a block hash, `"finalized"`, or `"best"`\n   * @returns Observable to watch a block body. There'll be just one event\n   *          with the payload and the observable will complete.\n   */\n  watchBlockBody: (hash: string) => Observable<HexString[]>\n  /**\n   * Get Block Body (Promise-based)\n   *\n   * @param hash  It can be a block hash, `"finalized"`, or `"best"`\n   * @returns Block body.\n   */\n  getBlockBody: (hash: string) => Promise<HexString[]>\n \n  /**\n   * Get Block Header (Promise-based)\n   *\n   * @param hash  It can be a block hash, `"finalized"` (default), or\n   *              `"best"`\n   * @returns Block hash.\n   */\n  getBlockHeader: (hash?: string) => Promise<BlockHeader>\n \n  /**\n   * Broadcast a transaction (Promise-based)\n   *\n   * @param transaction  SCALE-encoded tx to broadcast.\n   * @param at           It can be a block hash, `"finalized"`, or `"best"`.\n   *                     That block will be used to verify the validity of\n   *                     the tx, retrieve the next nonce,\n   *                     and create the mortality taking that block into\n   *                     account.\n   */\n  submit: (\n    transaction: HexString,\n    at?: HexString,\n  ) => Promise<TxFinalizedPayload>\n  /**\n   * Broadcast a transaction and returns an Observable. The observable will\n   * complete as soon as the transaction is in a finalized block.\n   *\n   * @param transaction  SCALE-encoded tx to broadcast.\n   * @param at           It can be a block hash, `"finalized"`, or `"best"`.\n   *                     That block will be used to verify the validity of\n   *                     the tx, retrieve the next nonce,\n   *                     and create the mortality taking that block into\n   *                     account.\n   */\n  submitAndWatch: (\n    transaction: HexString,\n    at?: HexString,\n  ) => Observable<TxBroadcastEvent>\n \n  /**\n   * Returns an instance of a `TypedApi`\n   *\n   * @param descriptors  Pass descriptors from `@polkadot-api/descriptors`\n   *                     generated by `papi` CLI.\n   */\n  getTypedApi: <D extends Descriptors>(descriptors: D) => TypedApi<D>\n \n  /**\n   * This will `unfollow` the provider, disconnect and error every subscription.\n   * After calling it nothing can be done with the client.\n   */\n  destroy: () => void\n \n  /**\n   * This API is meant as an "escape hatch" to allow access to debug endpoints\n   * such as `system_version`, and other useful endpoints that are not spec\n   * compliant.\n   *\n   * @example\n   *\n   *   const systemVersion = await client._request<string>("system_version", [])\n   *   const myFancyThhing = await client._request<\n   *     { value: string },\n   *     [id: number]\n   *   >("very_fancy", [1714])\n   *\n   */\n  _request: <Reply = any, Params extends Array<any> = any[]>(\n    method: string,\n    params: Params,\n  ) => Promise<Reply>\n}
\n

As one can note, PolkadotClient heavily relies on rxjs' Observable, used as well under the hood of Promise-based methods. Every method is fairly straight-forward and already documented exhaustively, except for getTypedApi. Let's dive into it.

","isPage":true,"text":"\nPolkadotClient interface shapes the top-level API for polkadot-api. Once we get a client using createClient function, we'll find the following:\ninterface PolkadotClient {\n /**\n * Retrieve the ChainSpecData as it comes from the\n * [JSON-RPC spec](https://paritytech.github.io/json-rpc-interface-spec/api/chainSpec.html)\n */\n getChainSpecData: () => Promise<ChainSpecData>\n \n /**\n * Observable that emits `BlockInfo` from the latest known finalized block.\n * It's a multicast and stateful observable, that will synchronously replay\n * its latest known state.\n */\n finalizedBlock$: Observable<BlockInfo>\n /**\n * @returns Latest known finalized block.\n */\n getFinalizedBlock: () => Promise<BlockInfo>\n \n /**\n * Observable that emits an Array of `BlockInfo`, being the first element the\n * latest known best block, and the last element the latest known finalized\n * block. It's a multicast and stateful observable, that will synchronously\n * replay its latest known state. This array is an immutable data structure;\n * i.e. a new array is emitted at every event but the reference to its\n * children are stable if the children didn't change.\n *\n * Note that subscribing to this observable already supersedes the need of\n * subscribing to `finalizedBlock$`, since the last element of the array will\n * be the latest known finalized block.\n */\n bestBlocks$: Observable<BlockInfo[]>\n /**\n * @returns Array of `BlockInfo`, being the first element the latest\n * known best block, and the last element the latest known\n * finalized block.\n */\n getBestBlocks: () => Promise<BlockInfo[]>\n \n /**\n * Observable to watch Block Body.\n *\n * @param hash It can be a block hash, `"finalized"`, or `"best"`\n * @returns Observable to watch a block body. There'll be just one event\n * with the payload and the observable will complete.\n */\n watchBlockBody: (hash: string) => Observable<HexString[]>\n /**\n * Get Block Body (Promise-based)\n *\n * @param hash It can be a block hash, `"finalized"`, or `"best"`\n * @returns Block body.\n */\n getBlockBody: (hash: string) => Promise<HexString[]>\n \n /**\n * Get Block Header (Promise-based)\n *\n * @param hash It can be a block hash, `"finalized"` (default), or\n * `"best"`\n * @returns Block hash.\n */\n getBlockHeader: (hash?: string) => Promise<BlockHeader>\n \n /**\n * Broadcast a transaction (Promise-based)\n *\n * @param transaction SCALE-encoded tx to broadcast.\n * @param at It can be a block hash, `"finalized"`, or `"best"`.\n * That block will be used to verify the validity of\n * the tx, retrieve the next nonce,\n * and create the mortality taking that block into\n * account.\n */\n submit: (\n transaction: HexString,\n at?: HexString,\n ) => Promise<TxFinalizedPayload>\n /**\n * Broadcast a transaction and returns an Observable. The observable will\n * complete as soon as the transaction is in a finalized block.\n *\n * @param transaction SCALE-encoded tx to broadcast.\n * @param at It can be a block hash, `"finalized"`, or `"best"`.\n * That block will be used to verify the validity of\n * the tx, retrieve the next nonce,\n * and create the mortality taking that block into\n * account.\n */\n submitAndWatch: (\n transaction: HexString,\n at?: HexString,\n ) => Observable<TxBroadcastEvent>\n \n /**\n * Returns an instance of a `TypedApi`\n *\n * @param descriptors Pass descriptors from `@polkadot-api/descriptors`\n * generated by `papi` CLI.\n */\n getTypedApi: <D extends Descriptors>(descriptors: D) => TypedApi<D>\n \n /**\n * This will `unfollow` the provider, disconnect and error every subscription.\n * After calling it nothing can be done with the client.\n */\n destroy: () => void\n \n /**\n * This API is meant as an "escape hatch" to allow access to debug endpoints\n * such as `system_version`, and other useful endpoints that are not spec\n * compliant.\n *\n * @example\n *\n * const systemVersion = await client._request<string>("system_version", [])\n * const myFancyThhing = await client._request<\n * { value: string },\n * [id: number]\n * >("very_fancy", [1714])\n *\n */\n _request: <Reply = any, Params extends Array<any> = any[]>(\n method: string,\n params: Params,\n ) => Promise<Reply>\n}\nAs one can note, PolkadotClient heavily relies on rxjs' Observable, used as well under the hood of Promise-based methods. Every method is fairly straight-forward and already documented exhaustively, except for getTypedApi. Let's dive into it.","title":"PolkadotClient","titles":[]},"1":{"href":"/codegen#codegen","html":"\n

Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types.

\n

During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand.

\n

Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors.

\n
> npx papi add --help\nUsage: polkadot-api add [options] <key>\n \nAdd a new chain spec to the list\n \nArguments:\n  key                         Key identifier for the chain spec\n \nOptions:\n  --config <filename>         Source for the config file\n  -f, --file <filename>       Source from metadata encoded file\n  -w, --wsUrl <URL>           Source from websocket URL\n  -c, --chainSpec <filename>  Source from chain spec file\n  -n, --name <name>           Source from a well-known chain (choices: "polkadot", "ksmcc3", "rococo_v2_2", "westend2")\n  --no-persist                Do not persist the metadata as a file\n  -h, --help                  display help for command
\n

papi add registers a new chain. It requires a key, which is the JS variable name the codegen will create, and a source (-f, -w, -c, or -n). The command stores this information for later use into a configuration file polkadot-api.json and then downloads the fresh metadata into a file ${key}.scale.

\n

You can add as many chains as you want, but each has to have a unique key (which must be a valid JS variable name).

\n

The CLI can then be used to generate the type descriptors for all of the added chains through the generate command.

\n
npx papi generate\n# `generate` is the default command, so you can just run\nnpx papi
\n

It's recommended to add papi to the postinstall script in package.json to have it automatically generate the code after installation:

\n
{\n  // ...\n  "scripts": {\n    // ...\n    "postinstall": "papi"\n  }\n}
\n

The code is generated into the @polkadot-api/descriptors node modules package

\n\n","isPage":true,"text":"\nTechnically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types.\nDuring runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand.\nPolkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors.\n> npx papi add --help\nUsage: polkadot-api add [options] <key>\n \nAdd a new chain spec to the list\n \nArguments:\n key Key identifier for the chain spec\n \nOptions:\n --config <filename> Source for the config file\n -f, --file <filename> Source from metadata encoded file\n -w, --wsUrl <URL> Source from websocket URL\n -c, --chainSpec <filename> Source from chain spec file\n -n, --name <name> Source from a well-known chain (choices: "polkadot", "ksmcc3", "rococo_v2_2", "westend2")\n --no-persist Do not persist the metadata as a file\n -h, --help display help for command\npapi add registers a new chain. It requires a key, which is the JS variable name the codegen will create, and a source (-f, -w, -c, or -n). The command stores this information for later use into a configuration file polkadot-api.json and then downloads the fresh metadata into a file ${key}.scale.\nYou can add as many chains as you want, but each has to have a unique key (which must be a valid JS variable name).\nThe CLI can then be used to generate the type descriptors for all of the added chains through the generate command.\nnpx papi generate\n# `generate` is the default command, so you can just run\nnpx papi\nIt's recommended to add papi to the postinstall script in package.json to have it automatically generate the code after installation:\n{\n // ...\n "scripts": {\n // ...\n "postinstall": "papi"\n }\n}\nThe code is generated into the @polkadot-api/descriptors node modules package\nSome package managers clean the node_modules folder after installing or removing dependencies. When that happens, run the codegen again.\n","title":"Codegen","titles":[]},"2":{"href":"/codegen#contents","html":"\n

The generated code contains all of the types extracted from the metadata of all chains:

\n\n

These are consumed by getTypedApi(), which allows the IDE to reference any of these calls with autocompletion, etc. At runtime, it also contains the checksum of each of these calls, so that it can detect incompatibilities with the chain it's connected to.

\n

The types are anonymous (they don't have a name in the metadata), but PolkadotAPI has a directory of well-known types for some of the most widely used Enums. If a chain is using one of these well-known types, it's also generated and exported.

\n

In the event that there are two chains with the two well-known types that have the same name but they are different, then the key is appended at the beginning of the type. For instance, if two chains dot and ksm might have a slightly different PreimageRequestStatus, in that case, the codegen exports DotPreimageRequestStatus and KsmPreimageRequestStatus.

\n","isPage":false,"text":"\nThe generated code contains all of the types extracted from the metadata of all chains:\n\nFor every pallet:\n\nStorage queries\nTransactions\nEvents\nErrors\nConstants\n\n\nEvery runtime call\n\nThese are consumed by getTypedApi(), which allows the IDE to reference any of these calls with autocompletion, etc. At runtime, it also contains the checksum of each of these calls, so that it can detect incompatibilities with the chain it's connected to.\nThe types are anonymous (they don't have a name in the metadata), but PolkadotAPI has a directory of well-known types for some of the most widely used Enums. If a chain is using one of these well-known types, it's also generated and exported.\nIn the event that there are two chains with the two well-known types that have the same name but they are different, then the key is appended at the beginning of the type. For instance, if two chains dot and ksm might have a slightly different PreimageRequestStatus, in that case, the codegen exports DotPreimageRequestStatus and KsmPreimageRequestStatus.\n","title":"Contents","titles":["Codegen"]},"3":{"href":"/codegen#usage","html":"\n

Import from @polkadot-api/descriptors every chain and type that you need, then use it through getTypedApi().

\n
import {\n  dot,\n  ksm,\n  XcmVersionedMultiLocation,\n  XcmVersionedXcm,\n  XcmV2Instruction,\n  XcmV2MultilocationJunctions,\n} from "@polkadot-api/descriptors"\n \n// ...\n \nconst dotClient = createClient(scProvider(WellKnownChain.polkadot).relayChain)\nconst ksmClient = createClient(scProvider(WellKnownChain.ksmcc3).relayChain)\n \nconst dotApi = dotClient.getTypedApi(dot)\nconst ksmApi = ksmClient.getTypedApi(ksm)\n \nconst xcmSendTx = dotApi.tx.XcmPallet.send({\n  dest: XcmVersionedMultiLocation.V2({\n    parents: 0,\n    interior: XcmV2MultilocationJunctions.Here(),\n  }),\n  message: XcmVersionedXcm.V2([XcmV2Instruction.ClearOrigin()]),\n})\n \nconst encodedData = await xcmSendTx.getEncodedData()\n \nconst finalizedCall = await xcmSendTx.signAndSubmit(signer)
\n","isPage":false,"text":"\nImport from @polkadot-api/descriptors every chain and type that you need, then use it through getTypedApi().\nimport {\n dot,\n ksm,\n XcmVersionedMultiLocation,\n XcmVersionedXcm,\n XcmV2Instruction,\n XcmV2MultilocationJunctions,\n} from "@polkadot-api/descriptors"\n \n// ...\n \nconst dotClient = createClient(scProvider(WellKnownChain.polkadot).relayChain)\nconst ksmClient = createClient(scProvider(WellKnownChain.ksmcc3).relayChain)\n \nconst dotApi = dotClient.getTypedApi(dot)\nconst ksmApi = ksmClient.getTypedApi(ksm)\n \nconst xcmSendTx = dotApi.tx.XcmPallet.send({\n dest: XcmVersionedMultiLocation.V2({\n parents: 0,\n interior: XcmV2MultilocationJunctions.Here(),\n }),\n message: XcmVersionedXcm.V2([XcmV2Instruction.ClearOrigin()]),\n})\n \nconst encodedData = await xcmSendTx.getEncodedData()\n \nconst finalizedCall = await xcmSendTx.signAndSubmit(signer)\ngetTypedApi has nearly no cost at runtime, so it can be safely called many times.","title":"Usage","titles":["Codegen"]},"4":{"href":"/providers#providers","html":"\n

The entry point of Polkadot-API, createClient(provider) requires one JsonRpcProvider, which lets Polkadot-API communicate with a node. It's a function with the following shape:

\n
interface JsonRpcProvider {\n    (onMessage: (message: string) => void) => JsonRpcConnection;\n}\n \ninterface JsonRpcConnection {\n    send: (message: string) => void;\n    disconnect: () => void;\n}
\n

Calling it will initiate a connection. Messages coming from the service will come through the onMessage call, and the returned connection handle can be used to send messages or terminate the connection.

\n

Polkadot-API offers a couple of providers for some of the most used ways of connecting to a chain:

\n\n

The JsonRpcProvider interface is designed so that it can be easily enhanced: You can wrap any JsonRpcProvider with another one that adds in more features, such as logging, statistics, or error recovery.

\n","isPage":true,"text":"\nThe entry point of Polkadot-API, createClient(provider) requires one JsonRpcProvider, which lets Polkadot-API communicate with a node. It's a function with the following shape:\ninterface JsonRpcProvider {\n (onMessage: (message: string) => void) => JsonRpcConnection;\n}\n \ninterface JsonRpcConnection {\n send: (message: string) => void;\n disconnect: () => void;\n}\nCalling it will initiate a connection. Messages coming from the service will come through the onMessage call, and the returned connection handle can be used to send messages or terminate the connection.\nPolkadot-API offers a couple of providers for some of the most used ways of connecting to a chain:\n\nWebSocketProvider(uri: string) from polkadot-api/ws-provider/web or polkadot-api/ws-provider/node to connect through WebSocket.\ngetSmProvider(chain: smoldot.Chain) from polkadot-api/sm-provider to connect through Smoldot.\n\nThe JsonRpcProvider interface is designed so that it can be easily enhanced: You can wrap any JsonRpcProvider with another one that adds in more features, such as logging, statistics, or error recovery.\n","title":"Providers","titles":[]},"5":{"href":"/providers#logs-provider","html":"\n

Polkadot-API has a subpackage polkadot-api/logs-provider that can be used to create a provider that will replay node messages from a log file (logsProvider), along with a provider enhancer that can be used to generate the logs consumed by logsProvider: withLogsRecorder.

\n
// 1. recording logs\nimport { createClient } from "polkadot-api"\nimport { withLogsRecorder } from "polkadot-api/logs-provider"\nimport { WebSocketProvider } from "polkadot-api/ws-provider/node"\n \nconst wsProvider = WebSocketProvider("wss://example.url")\n// Using console.log to output each line, but you could e.g. write it directly to a\n// file or push into an array\nconst provider = withLogsRecorder((line) => console.log(line), wsProvider)\nconst client = createClient(provider)
\n
// 2. replaying logs\nimport { createClient } from "polkadot-api"\nimport { logsProvider } from "polkadot-api/logs-provider"\nimport logs from "./readLogs"\n \nconst provider = logsProvider(logs)\nconst client = createClient(provider)
\n

This can be useful to debug specific scenarios without needing to depend on an external source.

","isPage":false,"text":"\nPolkadot-API has a subpackage polkadot-api/logs-provider that can be used to create a provider that will replay node messages from a log file (logsProvider), along with a provider enhancer that can be used to generate the logs consumed by logsProvider: withLogsRecorder.\n// 1. recording logs\nimport { createClient } from "polkadot-api"\nimport { withLogsRecorder } from "polkadot-api/logs-provider"\nimport { WebSocketProvider } from "polkadot-api/ws-provider/node"\n \nconst wsProvider = WebSocketProvider("wss://example.url")\n// Using console.log to output each line, but you could e.g. write it directly to a\n// file or push into an array\nconst provider = withLogsRecorder((line) => console.log(line), wsProvider)\nconst client = createClient(provider)\n// 2. replaying logs\nimport { createClient } from "polkadot-api"\nimport { logsProvider } from "polkadot-api/logs-provider"\nimport logs from "./readLogs"\n \nconst provider = logsProvider(logs)\nconst client = createClient(provider)\nThis can be useful to debug specific scenarios without needing to depend on an external source.","title":"Logs provider","titles":["Providers"]},"6":{"href":"/signers#signers","html":"\n

For transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it.

\n

Every method on Polkadot-API that needs to sign something, takes in a signer with the following interface:

\n
interface PolkadotSigner {\n  publicKey: Uint8Array\n  sign: (\n    callData: Uint8Array,\n    signedExtensions: Record<\n      string,\n      {\n        identifier: string\n        value: Uint8Array\n        additionalSigned: Uint8Array\n      }\n    >,\n    metadata: Uint8Array,\n    atBlockNumber: number,\n    hasher?: (data: Uint8Array) => Uint8Array,\n  ) => Promise<Uint8Array>\n}
\n

This interface is generic to signing transactions for the chain.

\n","isPage":true,"text":"\nFor transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it.\nEvery method on Polkadot-API that needs to sign something, takes in a signer with the following interface:\ninterface PolkadotSigner {\n publicKey: Uint8Array\n sign: (\n callData: Uint8Array,\n signedExtensions: Record<\n string,\n {\n identifier: string\n value: Uint8Array\n additionalSigned: Uint8Array\n }\n >,\n metadata: Uint8Array,\n atBlockNumber: number,\n hasher?: (data: Uint8Array) => Uint8Array,\n ) => Promise<Uint8Array>\n}\nThis interface is generic to signing transactions for the chain.\n","title":"Signers","titles":[]},"7":{"href":"/signers#polkadotsigner-from-a-browser-extension","html":"\n

If you want to use a compatible extension as a signer, Polkadot-API has a subpath with a couple of utilities to help with this: polkadot-api/pjs-signer.

\n
import {\n  getInjectedExtensions,\n  connectInjectedExtension,\n} from "polkadot-api/pjs-signer"\n \n// Get the list of installed extensions\nconst extensions: string[] = getInjectedExtensions()\n \n// Connect to an extension\nconst selectedExtension: InjectedExtension = await connectInjectedExtension(\n  extensions[0],\n)\n \n// Get accounts registered in the extension\nconst accounts: InjectedPolkadotAccount[] = selectedExtension.getAccounts()\n \n// The signer for each account is in the `polkadotSigner` property of `InjectedPolkadotAccount`\nconst polkadotSigner = accounts[0].polkadotSigner
\n","isPage":false,"text":"\nIf you want to use a compatible extension as a signer, Polkadot-API has a subpath with a couple of utilities to help with this: polkadot-api/pjs-signer.\nimport {\n getInjectedExtensions,\n connectInjectedExtension,\n} from "polkadot-api/pjs-signer"\n \n// Get the list of installed extensions\nconst extensions: string[] = getInjectedExtensions()\n \n// Connect to an extension\nconst selectedExtension: InjectedExtension = await connectInjectedExtension(\n extensions[0],\n)\n \n// Get accounts registered in the extension\nconst accounts: InjectedPolkadotAccount[] = selectedExtension.getAccounts()\n \n// The signer for each account is in the `polkadotSigner` property of `InjectedPolkadotAccount`\nconst polkadotSigner = accounts[0].polkadotSigner\n","title":"PolkadotSigner from a browser extension","titles":["Signers"]},"8":{"href":"/signers#polkadotsigner-from-generic-signing-function","html":"\n

If you have a signer which takes some arbitrary data and just signs it with one of the supported algorithms, you can create a PolkadotSigner with the function getPolkadotSigner from polkadot-api/signer:

\n
export function getPolkadotSigner(\n  publicKey: Uint8Array,\n  signingType: "Ecdsa" | "Ed25519" | "Sr25519",\n  sign: (input: Uint8Array) => Promise<Uint8Array> | Uint8Array,\n): PolkadotSigner
\n

For example, using hdkd from @polkadot-labs:

\n
import { sr25519CreateDerive } from "@polkadot-labs/hdkd"\nimport {\n  sr25519,\n  DEV_PHRASE,\n  entropyToMiniSecret,\n  mnemonicToEntropy,\n} from "@polkadot-labs/hdkd-helpers"\n \nconst entropy = mnemonicToEntropy(MNEMONIC)\nconst miniSecret = entropyToMiniSecret(entropy)\nconst derive = sr25519CreateDerive(miniSecret)\nconst keypair = derive("//Alice")\n \nconst polkadotSigner = getPolkadotSigner(\n  hdkdKeyPair.publicKey,\n  "Sr25519",\n  hdkdKeyPair.sign,\n)
","isPage":false,"text":"\nIf you have a signer which takes some arbitrary data and just signs it with one of the supported algorithms, you can create a PolkadotSigner with the function getPolkadotSigner from polkadot-api/signer:\nexport function getPolkadotSigner(\n publicKey: Uint8Array,\n signingType: "Ecdsa" | "Ed25519" | "Sr25519",\n sign: (input: Uint8Array) => Promise<Uint8Array> | Uint8Array,\n): PolkadotSigner\nFor example, using hdkd from @polkadot-labs:\nimport { sr25519CreateDerive } from "@polkadot-labs/hdkd"\nimport {\n sr25519,\n DEV_PHRASE,\n entropyToMiniSecret,\n mnemonicToEntropy,\n} from "@polkadot-labs/hdkd-helpers"\n \nconst entropy = mnemonicToEntropy(MNEMONIC)\nconst miniSecret = entropyToMiniSecret(entropy)\nconst derive = sr25519CreateDerive(miniSecret)\nconst keypair = derive("//Alice")\n \nconst polkadotSigner = getPolkadotSigner(\n hdkdKeyPair.publicKey,\n "Sr25519",\n hdkdKeyPair.sign,\n)","title":"PolkadotSigner from generic signing function","titles":["Signers"]},"9":{"href":"/typed#typedapi","html":"\n

The TypedApi allows to interact with the runtime metadata easily and with a great developer experience. It'll allow to make storage calls, create transactions, etc. It uses the descriptors generated by PAPI CLI (see Codegen section for a deeper explanation) to generate the types used at devel time. TypedApi object looks like:

\n
type TypedApi = {\n  query: StorageApi\n  tx: TxApi\n  event: EvApi\n  apis: RuntimeCallsApi\n  constants: ConstApi\n  runtime: RuntimeApi\n}
\n

Let's start with the simplest one, runtime field. It's just:

\n
type RuntimeApi = Observable<Runtime> & {\n  latest: () => Promise<Runtime>\n}
\n

It's an observable that holds the current runtime information for that specific client, with a latest function to be able to wait for the runtime to load (it'll be helpful for some functions that need a Runtime, see this recipe).

\n

All the other fields are a Record<string, Record<string, ???>>. The first index defines the pallet that we're looking for, and the second one defines which query/tx/event/api/constant are we looking for inside that pallet. Let's see, one by one, what do we find inside of it!

\n","isPage":true,"text":"\nThe TypedApi allows to interact with the runtime metadata easily and with a great developer experience. It'll allow to make storage calls, create transactions, etc. It uses the descriptors generated by PAPI CLI (see Codegen section for a deeper explanation) to generate the types used at devel time. TypedApi object looks like:\ntype TypedApi = {\n query: StorageApi\n tx: TxApi\n event: EvApi\n apis: RuntimeCallsApi\n constants: ConstApi\n runtime: RuntimeApi\n}\nLet's start with the simplest one, runtime field. It's just:\ntype RuntimeApi = Observable<Runtime> & {\n latest: () => Promise<Runtime>\n}\nIt's an observable that holds the current runtime information for that specific client, with a latest function to be able to wait for the runtime to load (it'll be helpful for some functions that need a Runtime, see this recipe).\nAll the other fields are a Record<string, Record<string, ???>>. The first index defines the pallet that we're looking for, and the second one defines which query/tx/event/api/constant are we looking for inside that pallet. Let's see, one by one, what do we find inside of it!\n","title":"TypedApi","titles":[]},"10":{"href":"/typed#iscompatible","html":"\n

First of all, let's understand isCompatible field. It's under each query/tx/event/api/constant in any runtime. After generating the descriptors (see Codegen section), we have a typed interface to every interaction with the chain. Nevertheless, breaking runtime upgrades might hit the runtime between developing and the runtime execution of your app. isCompatible enables you to check on runtime if there was a breaking upgrade that hit your particular method.

\n

Let's see its interface, and an example.

\n
interface IsCompatible {\n  (): Promise<boolean>\n  (runtime: Runtime): boolean\n}
\n

For example, let's use typedApi.query.System.Number. It's a simple query, we'll see in the next pages how to interact with it. We're only interested on isCompatible.

\n
const query = typedApi.query.System.Number\nconst runtime = await typedApi.runtime.latest() // we already learnt about it!\n \n// in this case `isCompatible` returns a Promise<boolean>\nif (await query.isCompatible()) {\n  // do your stuff, the query is compatible\n} else {\n  // the call is not compatible!\n  // keep an eye on what you do\n}\n \n// another option would be to use the already loaded runtime\n// in this case, `isCompatible` is sync, and returns a boolean\nif (query.isCompatible(runtime)) {\n  // do your stuff, the query is compatible\n} else {\n  // the call is not compatible!\n  // keep an eye on what you do\n}
\n

As you can see, isCompatible is really powerful since we can prepare for runtime upgrades seamlessly using PAPI. See this recipe for an example!

\n

Let's continue with the rest of the fields!

","isPage":false,"text":"\nFirst of all, let's understand isCompatible field. It's under each query/tx/event/api/constant in any runtime. After generating the descriptors (see Codegen section), we have a typed interface to every interaction with the chain. Nevertheless, breaking runtime upgrades might hit the runtime between developing and the runtime execution of your app. isCompatible enables you to check on runtime if there was a breaking upgrade that hit your particular method.\nLet's see its interface, and an example.\ninterface IsCompatible {\n (): Promise<boolean>\n (runtime: Runtime): boolean\n}\nFor example, let's use typedApi.query.System.Number. It's a simple query, we'll see in the next pages how to interact with it. We're only interested on isCompatible.\nconst query = typedApi.query.System.Number\nconst runtime = await typedApi.runtime.latest() // we already learnt about it!\n \n// in this case `isCompatible` returns a Promise<boolean>\nif (await query.isCompatible()) {\n // do your stuff, the query is compatible\n} else {\n // the call is not compatible!\n // keep an eye on what you do\n}\n \n// another option would be to use the already loaded runtime\n// in this case, `isCompatible` is sync, and returns a boolean\nif (query.isCompatible(runtime)) {\n // do your stuff, the query is compatible\n} else {\n // the call is not compatible!\n // keep an eye on what you do\n}\nAs you can see, isCompatible is really powerful since we can prepare for runtime upgrades seamlessly using PAPI. See this recipe for an example!\nLet's continue with the rest of the fields!","title":"isCompatible","titles":["TypedApi"]},"11":{"href":"/types#types","html":"\n

All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types.

\n

Polkadot-API has some types defined that make it easier working with chain data.

\n","isPage":true,"text":"\nAll the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types.\nPolkadot-API has some types defined that make it easier working with chain data.\n","title":"Types","titles":[]},"12":{"href":"/types#ss58string","html":"\n

Binary values tagged as a accounts are abstracted as SS58String. The type SS58String exported by Polkadot-API is an alias of string, but it's indicative that the string that it expects is an SS58-formatted string. The value will be encoded to the public address in binary.

\n

When PolkadotAPI receives an SS58String as a parameter, it can be in any valid format. But the SS58String returned from any of the methods will always be in the format declared by the chain's metadata.

\n
const dotApi = client.getTypedApi(dot)\n \nconst [proxies, deposit] = await dotApi.query.Proxy.Proxies.getValue(\n  // HDX format (for demo purposes that it accepts any SS58 string, regardless of the chain)\n  "7LE64AxmGixNsxFs1rdsDkER5nuuQ28MbrSS7JtHwRmdcdam",\n)\n \nconsole.log(proxies[0].delegate)\n// "12R1XCdgkHysv8Y4ntiXguo4eUYHXjQTmfRjL8FbmezsG71j", which is polkadot's format
\n","isPage":false,"text":"\nBinary values tagged as a accounts are abstracted as SS58String. The type SS58String exported by Polkadot-API is an alias of string, but it's indicative that the string that it expects is an SS58-formatted string. The value will be encoded to the public address in binary.\nWhen PolkadotAPI receives an SS58String as a parameter, it can be in any valid format. But the SS58String returned from any of the methods will always be in the format declared by the chain's metadata.\nconst dotApi = client.getTypedApi(dot)\n \nconst [proxies, deposit] = await dotApi.query.Proxy.Proxies.getValue(\n // HDX format (for demo purposes that it accepts any SS58 string, regardless of the chain)\n "7LE64AxmGixNsxFs1rdsDkER5nuuQ28MbrSS7JtHwRmdcdam",\n)\n \nconsole.log(proxies[0].delegate)\n// "12R1XCdgkHysv8Y4ntiXguo4eUYHXjQTmfRjL8FbmezsG71j", which is polkadot's format\n","title":"SS58String","titles":["Types"]},"13":{"href":"/types#hexstring","html":"\n

Another alias of string, but indicates that the value is a valid hexadecimal string. It accepts the string with or without the 0x prefix, but HexString returned from methods always have 0x.

\n","isPage":false,"text":"\nAnother alias of string, but indicates that the value is a valid hexadecimal string. It accepts the string with or without the 0x prefix, but HexString returned from methods always have 0x.\n","title":"HexString","titles":["Types"]},"14":{"href":"/types#enum","html":"\n

Enums in the chain are represented as { type: string, value: T }. As many of the types have nested enums that would make it hard to work with (both creating these types and also reading them), Polkadot-API helps through a set of utilites.

\n

First of all, the Enums that are widely used across multiple chains are in a directory of well-known types, and they are represented with a descriptive name. A few examples: MultiAddress, BalanceStatus, IdentityJudgement, and many of the XCM pallet types: XcmV3Junction, XcmV3MultiassetFungibility, etc.

\n

For these types, you can import them directly from the generated code and use them by calling their type. The call signature shown by an IDE will tell you exactly which enum types you should use to write your value. The following video shows how it might look like:

\n\n

The enums that are not well-known types, they are anonymous. In that case, you will find something like the following in the call signature:

\n
(value: IEnum<{\n    transfer_allow_death: {\n        dest: MultiAddress;\n        value: bigint;\n    };\n    force_transfer: {\n        dest: MultiAddress;\n        value: bigint;\n        source: MultiAddress;\n    };\n    ... 4 more ...;\n    force_set_balance: {\n        ...;\n    };\n}>) => PolkadotRuntimeRuntimeCall
\n

This indicates that the parameter value is an enum, whose key will be either one of the keys of the object type (i.e. transfer_allow_death, force_transfer, ..., force_set_balance), and the type will be the value for that particular key.

\n

For these cases, you should use the function Enum(type, value), imported from polkadot-api. This has full type inference support, and creates an Enum object that can be used as a parameter of a call:

\n
dotApi.apis.TransactionPaymentCallApi.query_call_info(\n  PolkadotRuntimeRuntimeCall.Balances(\n    Enum("transfer_allow_death", { dest: MultiAddress.Id(address), value: 3n }),\n  ),\n  10,\n)
\n

When reading from Enums, these are objects with { type: string, value: unknown } with discriminated types based on the type (so if you do switch (enum.type) { you will have the correct value for the type).

\n","isPage":false,"text":"\nEnums in the chain are represented as { type: string, value: T }. As many of the types have nested enums that would make it hard to work with (both creating these types and also reading them), Polkadot-API helps through a set of utilites.\nFirst of all, the Enums that are widely used across multiple chains are in a directory of well-known types, and they are represented with a descriptive name. A few examples: MultiAddress, BalanceStatus, IdentityJudgement, and many of the XCM pallet types: XcmV3Junction, XcmV3MultiassetFungibility, etc.\nFor these types, you can import them directly from the generated code and use them by calling their type. The call signature shown by an IDE will tell you exactly which enum types you should use to write your value. The following video shows how it might look like:\n\nThe enums that are not well-known types, they are anonymous. In that case, you will find something like the following in the call signature:\n(value: IEnum<{\n transfer_allow_death: {\n dest: MultiAddress;\n value: bigint;\n };\n force_transfer: {\n dest: MultiAddress;\n value: bigint;\n source: MultiAddress;\n };\n ... 4 more ...;\n force_set_balance: {\n ...;\n };\n}>) => PolkadotRuntimeRuntimeCall\nThis indicates that the parameter value is an enum, whose key will be either one of the keys of the object type (i.e. transfer_allow_death, force_transfer, ..., force_set_balance), and the type will be the value for that particular key.\nFor these cases, you should use the function Enum(type, value), imported from polkadot-api. This has full type inference support, and creates an Enum object that can be used as a parameter of a call:\ndotApi.apis.TransactionPaymentCallApi.query_call_info(\n PolkadotRuntimeRuntimeCall.Balances(\n Enum("transfer_allow_death", { dest: MultiAddress.Id(address), value: 3n }),\n ),\n 10,\n)\nWhen reading from Enums, these are objects with { type: string, value: unknown } with discriminated types based on the type (so if you do switch (enum.type) { you will have the correct value for the type).\n","title":"Enum","titles":["Types"]},"15":{"href":"/types#binary","html":"\n

Any array of u8's is represented as Binary. This is a utility type that has a few functions to easily create binary data:

\n
Binary.fromBytes(new Uint8Array())\nBinary.fromHex("0b187a23c4f65d86c9a324b56f7e81aa")\nconst binary = Binary.fromText("Text that will be turned into binary")\n \nbinary.asBytes() // Uint8Array\nbinary.asHex() // "0x5465787420746861742077696c6c206265207475726e656420696e746f2062696e617279"\nbinary.asText() // "Text that will be turned into binary"
\n","isPage":false,"text":"\nAny array of u8's is represented as Binary. This is a utility type that has a few functions to easily create binary data:\nBinary.fromBytes(new Uint8Array())\nBinary.fromHex("0b187a23c4f65d86c9a324b56f7e81aa")\nconst binary = Binary.fromText("Text that will be turned into binary")\n \nbinary.asBytes() // Uint8Array\nbinary.asHex() // "0x5465787420746861742077696c6c206265207475726e656420696e746f2062696e617279"\nbinary.asText() // "Text that will be turned into binary"\n","title":"Binary","titles":["Types"]},"16":{"href":"/types#fixedsizebinaryl","html":"\n

Same as Binary, but when the chain metadata specifies a length. The length is shown as a type parameter, for reference.

\n","isPage":false,"text":"\nSame as Binary, but when the chain metadata specifies a length. The length is shown as a type parameter, for reference.\n","title":"FixedSizeBinary<L>","titles":["Types"]},"17":{"href":"/types#fixedsizearrayl-t","html":"\n

When the metadata has a type that's an array of a specific length, that's also shown as a FixedSizeArray<L, T>, which is a superset of Array<T>, except that it checks that the length must be L.

\n","isPage":false,"text":"\nWhen the metadata has a type that's an array of a specific length, that's also shown as a FixedSizeArray<L, T>, which is a superset of Array<T>, except that it checks that the length must be L.\n","title":"FixedSizeArray<L, T>","titles":["Types"]},"18":{"href":"/types#interface-types","html":"\n

The types returned from any call are available through the top-level exports

\n
import {\n  dot,\n  DotQueries,\n  DotCalls,\n  DotConstants,\n  DotErrors,\n  DotEvents,\n} from "@polkadot-api/descriptors"\n \n// Storage queries\nfunction processAccount(account: DotQueries["System"]["Account"]["Value"]) {\n  // ...\n}\nprocessAccount(await dotApi.query.System.Account.getValue("SS58Account"))\n \n// Constants\nfunction formatSS58Account(\n  value: DotConstants["System"]["SS58Prefix"],\n  account: Uint8Array,\n) {\n  // ...\n}\nformatSS58Account(await dotApi.constants.System.SS58Prefix(), new Uint8Array())\n \n// Transactions\nfunction performTransfer(\n  transfer: DotCalls["Balances"]["transfer_allow_death"],\n) {\n  return dotApi.tx.Balances.transfer_allow_death(transfer).signAndSubmit(signer)\n}\nperformTransfer({\n  dest: MultiAddress.Id("SS58Account"),\n  value: 100n,\n})\n \n// Events\nfunction reactToNewAccount(event: DotEvents["System"]["NewAccount"]) {\n  // ...\n}\n \n// Errors\nfunction logError(error: DotErrors["System"]["InvalidSpecName"]) {\n  // ...\n}
","isPage":false,"text":"\nThe types returned from any call are available through the top-level exports\nimport {\n dot,\n DotQueries,\n DotCalls,\n DotConstants,\n DotErrors,\n DotEvents,\n} from "@polkadot-api/descriptors"\n \n// Storage queries\nfunction processAccount(account: DotQueries["System"]["Account"]["Value"]) {\n // ...\n}\nprocessAccount(await dotApi.query.System.Account.getValue("SS58Account"))\n \n// Constants\nfunction formatSS58Account(\n value: DotConstants["System"]["SS58Prefix"],\n account: Uint8Array,\n) {\n // ...\n}\nformatSS58Account(await dotApi.constants.System.SS58Prefix(), new Uint8Array())\n \n// Transactions\nfunction performTransfer(\n transfer: DotCalls["Balances"]["transfer_allow_death"],\n) {\n return dotApi.tx.Balances.transfer_allow_death(transfer).signAndSubmit(signer)\n}\nperformTransfer({\n dest: MultiAddress.Id("SS58Account"),\n value: 100n,\n})\n \n// Events\nfunction reactToNewAccount(event: DotEvents["System"]["NewAccount"]) {\n // ...\n}\n \n// Errors\nfunction logError(error: DotErrors["System"]["InvalidSpecName"]) {\n // ...\n}","title":"Interface types","titles":["Types"]},"19":{"href":"/recipes/upgrade#preparing-for-a-runtime-upgrade","html":"\n

With Polkadot-API's support for multiple chains, you can make your dApp prepare for an upcoming runtime upgrade on a chain as long as you can get the metadata for that upgrade.

\n

As an example, let's imagine we have already set up the polkadot relay chain for our dApp

\n
npx papi add dot -n polkadot
\n

You can directly compile (or download from a GitHub CI, for example) your WASM runtime and PAPI will get the metadata from it and will be able to generate the descriptors.

\n
npx papi add nextDot --wasm polkadot_next_runtime.compressed.wasm\nnpx papi generate
\n\n

Now on the code you can create two typed APIs for the same chain, and then use the compatibility check to use one or the other.

\n

To make it clear, the client is connected to one chain that's using one specific version of the runtime. You can create multiple typedApis for that connection, which just give you the types for each possible version of the runtime. Then you can use runtime compatibility checks to perform the operation on the correct descriptor.

\n
import { createClient } from "polkadot-api"\nimport { dot, nextDot, MultiAddress } from "@polkadot-api/descriptors"\nimport { chainSpec } from "polkadot-api/chains/polkadot"\nimport { startFromWorker } from "polkadot-api/smoldot/from-worker"\nimport SmWorker from "polkadot-api/smoldot/worker?worker"\n \nconst smoldot = startFromWorker(new SmWorker())\nconst chain = await smoldot.addChain({ chainSpec })\nconst client = createClient(getSmProvider(chain))\n \nconst dotApi = client.getTypedApi(dot)\nconst nextApi = client.getTypedApi(nextDot)\n \nfunction performTransfer() {\n  // check if we're running on the next version to run that first\n  if (await nextApi.tx.Balances.new_fancy_transfer.isCompatible()) {\n    nextApi.tx.Balances.new_fancy_transfer({\n      dest: MultiAddress.Id("addr"),\n      value: 5n,\n    })\n  } else {\n    // Otherwise perform the transfer the old way with the old descriptors\n    dotApi.tx.Balances.transfer_keep_alive({\n      dest: MultiAddress.Id("addr"),\n      value: 5n,\n    })\n  }\n}
\n

Furthermore, the runtime upgrade might happen while the dApp is running, and this will still work without needing to redo the connection. As soon as the upgrade is received, the compatible check will work as expected and the dApp will start using the next runtime.

\n

As a note, isCompatible is a function available on every interaction on the typedApi (queries, apis, constants, events, transactions). If used without any parameter it will return a Promise<boolean>, because it needs to wait for the runtime to be loaded before it can tell whether it's compatible or not.

\n

If you have multiple isCompatible checks that you don't want to wait for each one of them, you can first wait for the runtime to be loaded with await dotApi.runtime.latest(), and then pass this to isCompatible as a paramter. This will make isCompatible return synchronously.

","isPage":true,"text":"\nWith Polkadot-API's support for multiple chains, you can make your dApp prepare for an upcoming runtime upgrade on a chain as long as you can get the metadata for that upgrade.\nAs an example, let's imagine we have already set up the polkadot relay chain for our dApp\nnpx papi add dot -n polkadot\nYou can directly compile (or download from a GitHub CI, for example) your WASM runtime and PAPI will get the metadata from it and will be able to generate the descriptors.\nnpx papi add nextDot --wasm polkadot_next_runtime.compressed.wasm\nnpx papi generate\nWe have in our roadmap to support downloading an upcoming metadata from a referenda link\nNow on the code you can create two typed APIs for the same chain, and then use the compatibility check to use one or the other.\nTo make it clear, the client is connected to one chain that's using one specific version of the runtime. You can create multiple typedApis for that connection, which just give you the types for each possible version of the runtime. Then you can use runtime compatibility checks to perform the operation on the correct descriptor.\nimport { createClient } from "polkadot-api"\nimport { dot, nextDot, MultiAddress } from "@polkadot-api/descriptors"\nimport { chainSpec } from "polkadot-api/chains/polkadot"\nimport { startFromWorker } from "polkadot-api/smoldot/from-worker"\nimport SmWorker from "polkadot-api/smoldot/worker?worker"\n \nconst smoldot = startFromWorker(new SmWorker())\nconst chain = await smoldot.addChain({ chainSpec })\nconst client = createClient(getSmProvider(chain))\n \nconst dotApi = client.getTypedApi(dot)\nconst nextApi = client.getTypedApi(nextDot)\n \nfunction performTransfer() {\n // check if we're running on the next version to run that first\n if (await nextApi.tx.Balances.new_fancy_transfer.isCompatible()) {\n nextApi.tx.Balances.new_fancy_transfer({\n dest: MultiAddress.Id("addr"),\n value: 5n,\n })\n } else {\n // Otherwise perform the transfer the old way with the old descriptors\n dotApi.tx.Balances.transfer_keep_alive({\n dest: MultiAddress.Id("addr"),\n value: 5n,\n })\n }\n}\nFurthermore, the runtime upgrade might happen while the dApp is running, and this will still work without needing to redo the connection. As soon as the upgrade is received, the compatible check will work as expected and the dApp will start using the next runtime.\nAs a note, isCompatible is a function available on every interaction on the typedApi (queries, apis, constants, events, transactions). If used without any parameter it will return a Promise<boolean>, because it needs to wait for the runtime to be loaded before it can tell whether it's compatible or not.\nIf you have multiple isCompatible checks that you don't want to wait for each one of them, you can first wait for the runtime to be loaded with await dotApi.runtime.latest(), and then pass this to isCompatible as a paramter. This will make isCompatible return synchronously.","title":"Preparing for a runtime upgrade","titles":[]},"20":{"href":"/typed/apis#runtime-apis","html":"\n

Runtime APIs (aka Runtime calls in other frameworks) directly query the wasm runtime to get some information. In PAPI they're under typedApi.apis. Let's see its interface:

\n
type CallOptions = Partial<{\n  at: string\n  signal: AbortSignal\n}>\ninterface RuntimeCall<Args, Payload> {\n  (...args: [...Args, options?: CallOptions]): Promise<Payload>\n  isCompatible: IsCompatible\n}
\n

They're fairly straight-forward, let's see it with some examples:

\n

With callOptions.at we can control which block to query. It can be a blockHash, "finalized" (the default), or "best"

\n
// there are some APIs that do not take arguments!\nconst metadata = await typedApi.apis.Metadata.metadata()\n \n// we can pass as well callOptions\nconst metadataAtBest = await typedApi.apis.Metadata.metadata({ at: "best" })\n \n// this one takes a number as argument\nconst metadataV15 = await typedApi.apis.Metadata.metadata_at_version(15, {\n  at: "best",\n})
","isPage":true,"text":"\nRuntime APIs (aka Runtime calls in other frameworks) directly query the wasm runtime to get some information. In PAPI they're under typedApi.apis. Let's see its interface:\ntype CallOptions = Partial<{\n at: string\n signal: AbortSignal\n}>\ninterface RuntimeCall<Args, Payload> {\n (...args: [...Args, options?: CallOptions]): Promise<Payload>\n isCompatible: IsCompatible\n}\nThey're fairly straight-forward, let's see it with some examples:\nWith callOptions.at we can control which block to query. It can be a blockHash, "finalized" (the default), or "best"\n// there are some APIs that do not take arguments!\nconst metadata = await typedApi.apis.Metadata.metadata()\n \n// we can pass as well callOptions\nconst metadataAtBest = await typedApi.apis.Metadata.metadata({ at: "best" })\n \n// this one takes a number as argument\nconst metadataV15 = await typedApi.apis.Metadata.metadata_at_version(15, {\n at: "best",\n})","title":"Runtime APIs","titles":[]},"21":{"href":"/typed/constants#constants","html":"\n

Constants are the simplest structure that we find inside the TypedApi. Constants are hard-coded key-value pairs that are embedded in the runtime metadata. In PAPI their structure is just a simple function that return its decoded value, with two alternatives. As explained in the previous section for isCompatible, we have two options to get the value:

\n\n

Let's use typedApi.constants.System.Version. See in this example how it's used:

\n
// in this case the function is asynchronous\nconst versionAsync = await typedApi.constants.System.Version()\n \nconst runtime = await typedApi.runtime.latest() // we already learnt about it!\n// in this case it's sync\nconst versionSync = typedApi.constants.System.Version(runtime)
","isPage":true,"text":"\nConstants are the simplest structure that we find inside the TypedApi. Constants are hard-coded key-value pairs that are embedded in the runtime metadata. In PAPI their structure is just a simple function that return its decoded value, with two alternatives. As explained in the previous section for isCompatible, we have two options to get the value:\n\nPromise-based call, without passing the runtime\nSynchronous return, passing the runtime previously awaited for\n\nLet's use typedApi.constants.System.Version. See in this example how it's used:\n// in this case the function is asynchronous\nconst versionAsync = await typedApi.constants.System.Version()\n \nconst runtime = await typedApi.runtime.latest() // we already learnt about it!\n// in this case it's sync\nconst versionSync = typedApi.constants.System.Version(runtime)","title":"Constants","titles":[]},"22":{"href":"/typed/queries#storage-queries","html":"\n

For query we have mainly two different situations. There're two kinds of storage entries: entries with and without keys.

\n","isPage":true,"text":"\nFor query we have mainly two different situations. There're two kinds of storage entries: entries with and without keys.\n","title":"Storage queries","titles":[]},"23":{"href":"/typed/queries#entries-without-keys","html":"\n

For example, System.Number query (it returns the block number) has no keys to index it with. Therefore, under typedApi.System.Number we have the following structure:

\n
type CallOptions = Partial<{\n  at: string\n  signal: AbortSignal\n}>\n \ntype StorageEntryWithoutKeys<Payload> = {\n  isCompatible: IsCompatible\n  getValue: (options?: CallOptions) => Promise<Payload>\n  watchValue: (bestOrFinalized?: "best" | "finalized") => Observable<Payload>\n}
\n

As you might expect, getValue returns you the Payload for that particular query, allowing you to choose which block to query (at can be a blockHash, "finalized" (the default), or "best").

\n

On the other hand, watchValue function returns an Observable allows you to check the changes of a particular storage entry in "best" or "finalized" (the default) block.

\n","isPage":false,"text":"\nFor example, System.Number query (it returns the block number) has no keys to index it with. Therefore, under typedApi.System.Number we have the following structure:\ntype CallOptions = Partial<{\n at: string\n signal: AbortSignal\n}>\n \ntype StorageEntryWithoutKeys<Payload> = {\n isCompatible: IsCompatible\n getValue: (options?: CallOptions) => Promise<Payload>\n watchValue: (bestOrFinalized?: "best" | "finalized") => Observable<Payload>\n}\nAs you might expect, getValue returns you the Payload for that particular query, allowing you to choose which block to query (at can be a blockHash, "finalized" (the default), or "best").\nOn the other hand, watchValue function returns an Observable allows you to check the changes of a particular storage entry in "best" or "finalized" (the default) block.\n","title":"Entries without keys","titles":["Storage queries"]},"24":{"href":"/typed/queries#entries-with-keys","html":"\n

Similarely, we'll use the example of System.Account query (it returns the information of a particular Account). In this case, this storage query has a key to index it with, and therefore we find the following structure:

\n
type StorageEntryWithKeys<Args, Payload> = {\n  isCompatible: IsCompatible\n  getValue: (...args: [...Args, options?: CallOptions]) => Promise<Payload>\n  watchValue: (\n    ...args: [...Args, bestOrFinalized?: "best" | "finalized"]\n  ) => Observable<Payload>\n  getValues: (\n    keys: Array<[...Args]>,\n    options?: CallOptions,\n  ) => Promise<Array<Payload>>\n  getEntries: (\n    ...args: [PossibleParents<Args>, options?: CallOptions]\n  ) => Promise<\n    Array<{\n      keyArgs: Args\n      value: NonNullable<Payload>\n    }>\n  >\n}
\n

Both getValue and watchValue have the same behaviour as in the previous case, but they require you to pass all keys required for that storage query (in our example, an address). The same function arguments that are found in the no-keys situation can be passed at the end of the call to modify which block to query, etc. For example, a query with 3 args:

\n
typedApi.query.Pallet.Query.getValue(arg1, arg2, arg3, { at: "best" })
\n

getValues, instead, allows you to pass several keys (addresses in this case) to get a bunch of entries at the same time.

\n

getEntries allows you to get all entries without passing the keys. It has also the option to pass a subset of them. For example, imagine a query with 3 keys. You would have three options to call it:

\n
typedApi.query.Pallet.Query.getEntries({ at: "best" }) // no keys\ntypedApi.query.Pallet.Query.getEntries(arg1, { at: "finalized" }) // 1/3 keys\ntypedApi.query.Pallet.Query.getEntries(arg1, arg2, { at: "0x12345678" }) // 2/3 keys
","isPage":false,"text":"\nSimilarely, we'll use the example of System.Account query (it returns the information of a particular Account). In this case, this storage query has a key to index it with, and therefore we find the following structure:\ntype StorageEntryWithKeys<Args, Payload> = {\n isCompatible: IsCompatible\n getValue: (...args: [...Args, options?: CallOptions]) => Promise<Payload>\n watchValue: (\n ...args: [...Args, bestOrFinalized?: "best" | "finalized"]\n ) => Observable<Payload>\n getValues: (\n keys: Array<[...Args]>,\n options?: CallOptions,\n ) => Promise<Array<Payload>>\n getEntries: (\n ...args: [PossibleParents<Args>, options?: CallOptions]\n ) => Promise<\n Array<{\n keyArgs: Args\n value: NonNullable<Payload>\n }>\n >\n}\nBoth getValue and watchValue have the same behaviour as in the previous case, but they require you to pass all keys required for that storage query (in our example, an address). The same function arguments that are found in the no-keys situation can be passed at the end of the call to modify which block to query, etc. For example, a query with 3 args:\ntypedApi.query.Pallet.Query.getValue(arg1, arg2, arg3, { at: "best" })\ngetValues, instead, allows you to pass several keys (addresses in this case) to get a bunch of entries at the same time.\ngetEntries allows you to get all entries without passing the keys. It has also the option to pass a subset of them. For example, imagine a query with 3 keys. You would have three options to call it:\ntypedApi.query.Pallet.Query.getEntries({ at: "best" }) // no keys\ntypedApi.query.Pallet.Query.getEntries(arg1, { at: "finalized" }) // 1/3 keys\ntypedApi.query.Pallet.Query.getEntries(arg1, arg2, { at: "0x12345678" }) // 2/3 keys","title":"Entries with keys","titles":["Storage queries"]}},"dirtCount":0,"index":[["3",{"2":{"24":4}}],["3n",{"2":{"14":1}}],["5n",{"2":{"19":2}}],["4",{"2":{"14":1}}],["7le64axmgixnsxfs1rdsdker5nuuq28mbrss7jthwrmdcdam",{"2":{"12":1}}],["|",{"2":{"8":3,"23":1,"24":1}}],["15",{"2":{"20":1}}],["100n",{"2":{"18":1}}],["10",{"2":{"14":1}}],["12r1xcdgkhysv8y4ntixguo4euyhxjqtmfrjl8fbmezsg71j",{"2":{"12":1}}],["1",{"2":{"5":1,"24":1}}],["1714",{"2":{"0":1}}],["0b187a23c4f65d86c9a324b56f7e81aa",{"2":{"15":1}}],["0x12345678",{"2":{"24":1}}],["0x5465787420746861742077696c6c206265207475726e656420696e746f2062696e617279",{"2":{"15":1}}],["0x",{"2":{"13":2}}],["0",{"2":{"3":1,"7":2,"12":1}}],["xcm",{"2":{"14":1}}],["xcmpallet",{"2":{"3":1}}],["xcmsendtx",{"2":{"3":3}}],["xcmv3multiassetfungibility",{"2":{"14":1}}],["xcmv3junction",{"2":{"14":1}}],["xcmv2multilocationjunctions",{"2":{"3":2}}],["xcmv2instruction",{"2":{"3":2}}],["xcmversionedxcm",{"2":{"3":2}}],["xcmversionedmultilocation",{"2":{"3":2}}],["x27",{"2":{"0":7,"1":2,"2":3,"4":1,"9":7,"10":8,"12":3,"15":1,"17":2,"19":6,"20":4,"21":3,"22":1,"24":1}}],["query",{"2":{"9":2,"10":9,"12":1,"14":1,"18":1,"20":2,"22":1,"23":3,"24":14}}],["queries",{"0":{"22":1},"1":{"23":1,"24":1},"2":{"2":1,"18":1,"19":1}}],["quot",{"2":{"0":26,"1":14,"3":2,"5":14,"7":2,"8":14,"12":4,"14":2,"15":8,"18":28,"19":14,"20":8,"23":12,"24":12}}],["$",{"2":{"1":1}}],["2",{"2":{"1":1,"5":1,"24":1}}],["kinds",{"2":{"22":1}}],["keep",{"2":{"10":2,"19":1}}],["keyargs",{"2":{"24":1}}],["keys",{"0":{"23":1,"24":1},"2":{"14":1,"22":1,"23":1,"24":9}}],["keypair",{"2":{"8":1}}],["key",{"2":{"1":6,"2":1,"14":2,"21":1,"24":1}}],["ksmapi",{"2":{"3":1}}],["ksmclient",{"2":{"3":2}}],["ksmcc3",{"2":{"1":1,"3":1}}],["ksmpreimagerequeststatus",{"2":{"2":1}}],["ksm",{"2":{"2":1,"3":2}}],["know",{"2":{"1":1}}],["known",{"2":{"0":9,"1":1,"2":3,"14":2}}],["your",{"2":{"10":4,"14":1,"19":2}}],["you",{"2":{"1":6,"3":1,"4":1,"5":1,"7":1,"8":2,"10":4,"14":7,"19":10,"23":4,"24":4}}],["up",{"2":{"19":1}}],["upcoming",{"2":{"19":2}}],["upgrade",{"0":{"19":1},"2":{"10":1,"19":4}}],["upgrades",{"2":{"10":2}}],["u8",{"2":{"15":1}}],["utility",{"2":{"15":1}}],["utilites",{"2":{"14":1}}],["utilities",{"2":{"7":1}}],["uint8array",{"2":{"6":8,"8":4,"15":2,"18":2}}],["uri",{"2":{"4":1}}],["url",{"2":{"1":2,"5":1}}],["unknown",{"2":{"14":1}}],["unique",{"2":{"1":1}}],["understand",{"2":{"10":1}}],["under",{"2":{"0":1,"10":1,"20":1,"23":1}}],["usage",{"0":{"3":1},"2":{"1":1}}],["use",{"2":{"1":1,"3":1,"7":1,"10":2,"14":3,"19":3,"21":1,"24":1}}],["uses",{"2":{"1":1,"9":1}}],["useful",{"2":{"0":1,"5":1}}],["used",{"2":{"0":3,"1":1,"2":1,"4":2,"5":2,"9":1,"14":2,"19":1,"21":1}}],["using",{"2":{"0":1,"2":1,"5":1,"8":1,"10":1,"19":2}}],["mainly",{"2":{"22":1}}],["make",{"2":{"9":1,"11":1,"14":1,"19":3}}],["managers",{"2":{"1":1}}],["many",{"2":{"1":1,"3":1,"14":2}}],["minisecret",{"2":{"8":2}}],["might",{"2":{"2":1,"10":1,"14":1,"19":1,"23":1}}],["mnemonic",{"2":{"8":1}}],["mnemonictoentropy",{"2":{"8":2}}],["modify",{"2":{"24":1}}],["modules",{"2":{"1":2}}],["more",{"2":{"4":1,"14":1}}],["mortality",{"2":{"0":2}}],["most",{"2":{"2":1,"4":1}}],["multiaddress",{"2":{"14":5,"18":1,"19":3}}],["multiple",{"2":{"14":1,"19":3}}],["multicast",{"2":{"0":2}}],["must",{"2":{"1":1,"17":1}}],["messages",{"2":{"4":2,"5":1}}],["message",{"2":{"3":1,"4":2}}],["metadatav15",{"2":{"20":1}}],["metadataatbest",{"2":{"20":1}}],["metadata",{"2":{"1":6,"2":2,"6":1,"9":1,"11":1,"12":1,"16":1,"17":1,"19":3,"20":7,"21":1}}],["methods",{"2":{"0":1,"12":1,"13":1}}],["method",{"2":{"0":2,"6":1,"10":1}}],["meant",{"2":{"0":1}}],["myfancythhing",{"2":{"0":1}}],["video",{"2":{"14":1}}],["variable",{"2":{"1":2}}],["valid",{"2":{"1":1,"12":1,"13":1}}],["validity",{"2":{"0":2}}],["values",{"2":{"12":1}}],["value",{"2":{"0":1,"6":1,"12":1,"13":1,"14":11,"18":3,"19":2,"21":3,"24":1}}],["v2",{"2":{"1":1,"3":2}}],["very",{"2":{"0":1}}],["versionsync",{"2":{"21":1}}],["versionasync",{"2":{"21":1}}],["version",{"2":{"0":1,"19":3,"20":1,"21":3}}],["version`",{"2":{"0":1}}],["verify",{"2":{"0":2}}],["void",{"2":{"0":1,"4":3}}],["js",{"2":{"1":2}}],["jsonrpcconnection",{"2":{"4":2}}],["jsonrpcprovider",{"2":{"4":4}}],["json",{"2":{"0":2,"1":2}}],["just",{"2":{"0":1,"1":2,"8":1,"9":1,"19":1,"21":1}}],["hdx",{"2":{"12":1}}],["hdkdkeypair",{"2":{"8":2}}],["hdkd",{"2":{"8":3}}],["hit",{"2":{"10":2}}],["how",{"2":{"10":1,"14":1,"21":1}}],["holds",{"2":{"9":1}}],["hood",{"2":{"0":1}}],["h",{"2":{"1":1}}],["hand",{"2":{"23":1}}],["handle",{"2":{"4":1}}],["happen",{"2":{"19":1}}],["happens",{"2":{"1":1}}],["hard",{"2":{"14":1,"21":1}}],["have",{"2":{"1":2,"2":3,"8":1,"10":1,"13":1,"14":2,"19":3,"21":1,"22":1,"23":1,"24":2}}],["has",{"2":{"1":2,"2":1,"3":1,"5":1,"7":1,"11":1,"14":1,"15":1,"17":1,"23":1,"24":2}}],["hasher",{"2":{"6":1}}],["hash",{"2":{"0":12}}],["hatch",{"2":{"0":1}}],["hexadecimal",{"2":{"13":1}}],["hexstring",{"0":{"13":1},"2":{"0":6,"13":1}}],["here",{"2":{"3":1}}],["helps",{"2":{"14":1}}],["helpful",{"2":{"9":1}}],["helpers",{"2":{"8":1}}],["help",{"2":{"1":3,"7":1}}],["heavily",{"2":{"0":1}}],["header",{"2":{"0":1}}],["html",{"2":{"0":1}}],["https",{"2":{"0":1}}],["`iscompatible`",{"2":{"10":2}}],["`injectedpolkadotaccount`",{"2":{"7":1}}],["`polkadotsigner`",{"2":{"7":1}}],["`papi`",{"2":{"0":1}}],["`generate`",{"2":{"1":1}}],["`system",{"2":{"0":1}}],["`unfollow`",{"2":{"0":1}}],["`typedapi`",{"2":{"0":1}}],["`",{"2":{"0":21}}],["`finalizedblock$`",{"2":{"0":1}}],["`blockinfo`",{"2":{"0":3}}],["name",{"2":{"1":4,"2":2,"14":1}}],["n",{"2":{"1":2,"19":1}}],["npx",{"2":{"1":3,"19":3}}],["number",{"2":{"0":1,"6":1,"10":2,"20":1,"23":3}}],["nonnullable",{"2":{"24":1}}],["nonce",{"2":{"0":2}}],["now",{"2":{"19":1}}],["node",{"2":{"1":2,"4":2,"5":2}}],["no",{"2":{"1":1,"3":1,"23":1,"24":2}}],["not",{"2":{"0":1,"1":1,"10":2,"14":1,"19":1,"20":1}}],["nothing",{"2":{"0":1}}],["note",{"2":{"0":2,"19":1}}],["nested",{"2":{"14":1}}],["nevertheless",{"2":{"10":1}}],["nearly",{"2":{"3":1}}],["nextapi",{"2":{"19":3}}],["nextdot",{"2":{"19":3}}],["next",{"2":{"0":2,"10":1,"19":3}}],["needs",{"2":{"6":1,"19":1}}],["needed",{"2":{"6":1}}],["needing",{"2":{"5":1,"19":1}}],["need",{"2":{"0":1,"1":3,"3":1,"6":1,"9":1}}],["newaccount",{"2":{"18":1}}],["new",{"2":{"0":1,"1":2,"15":1,"18":1,"19":3}}],["dapp",{"2":{"19":4}}],["data",{"2":{"0":1,"6":2,"8":1,"11":2,"15":1}}],["during",{"2":{"1":1}}],["downloading",{"2":{"19":1}}],["download",{"2":{"19":1}}],["downloads",{"2":{"1":2}}],["down",{"2":{"11":1}}],["dotevents",{"2":{"18":2}}],["doterrors",{"2":{"18":2}}],["dotconstants",{"2":{"18":2}}],["dotcalls",{"2":{"18":2}}],["dotclient",{"2":{"3":2}}],["dotqueries",{"2":{"18":2}}],["dotapi",{"2":{"3":2,"12":2,"14":1,"18":3,"19":3}}],["dotpreimagerequeststatus",{"2":{"2":1}}],["dot",{"2":{"2":1,"3":2,"12":1,"18":1,"19":3}}],["don",{"2":{"2":1,"19":1}}],["done",{"2":{"0":1}}],["do",{"2":{"1":1,"9":1,"10":4,"14":1,"20":1}}],["documented",{"2":{"0":1}}],["directly",{"2":{"5":1,"14":1,"19":1,"20":1}}],["directory",{"2":{"2":1,"14":1}}],["different",{"2":{"2":2,"22":1}}],["discriminated",{"2":{"14":1}}],["disconnect",{"2":{"0":1,"4":1}}],["display",{"2":{"1":1}}],["dive",{"2":{"0":1}}],["didn",{"2":{"0":1}}],["d",{"2":{"0":3}}],["decoded",{"2":{"21":1}}],["declared",{"2":{"12":1}}],["death",{"2":{"14":3,"18":2}}],["delegate",{"2":{"12":1}}],["demo",{"2":{"12":1}}],["deposit",{"2":{"12":1}}],["depend",{"2":{"5":1}}],["dependencies",{"2":{"1":1}}],["defined",{"2":{"11":2}}],["defines",{"2":{"9":2}}],["default",{"2":{"0":1,"1":1,"20":1,"23":2}}],["deeper",{"2":{"9":1}}],["derive",{"2":{"8":2}}],["developing",{"2":{"10":1}}],["developer",{"2":{"1":1,"9":1}}],["devel",{"2":{"9":1}}],["dev",{"2":{"8":1}}],["detect",{"2":{"2":1}}],["debug",{"2":{"0":1,"5":1}}],["descriptor",{"2":{"19":1}}],["descriptors`",{"2":{"0":1}}],["descriptors",{"2":{"0":4,"1":3,"3":2,"6":1,"9":1,"10":1,"18":1,"19":3}}],["descriptive",{"2":{"14":1}}],["designed",{"2":{"4":1}}],["dest",{"2":{"3":1,"14":3,"18":1,"19":2}}],["destroy",{"2":{"0":1}}],["embedded",{"2":{"21":1}}],["emitted",{"2":{"0":1}}],["emits",{"2":{"0":2}}],["either",{"2":{"14":1}}],["eye",{"2":{"10":2}}],["else",{"2":{"10":2,"19":1}}],["element",{"2":{"0":5}}],["evapi",{"2":{"9":1}}],["events",{"2":{"2":1,"18":1,"19":1}}],["event",{"2":{"0":2,"2":1,"9":2,"10":1,"18":1}}],["every",{"2":{"0":3,"2":2,"3":1,"6":1,"10":1,"19":1}}],["ed25519",{"2":{"8":1}}],["ecdsa",{"2":{"8":1}}],["easier",{"2":{"11":1}}],["easily",{"2":{"4":1,"9":1,"15":1}}],["each",{"2":{"1":1,"2":1,"5":1,"7":1,"10":1,"19":2}}],["etc",{"2":{"2":1,"9":1,"14":1,"24":1}}],["exactly",{"2":{"14":1}}],["examples",{"2":{"14":1,"20":1}}],["example",{"2":{"0":1,"5":1,"8":1,"10":3,"19":2,"21":1,"23":1,"24":4}}],["execution",{"2":{"10":1}}],["explained",{"2":{"21":1}}],["explanation",{"2":{"9":1}}],["expect",{"2":{"23":1}}],["expected",{"2":{"19":1}}],["expects",{"2":{"12":1}}],["experience",{"2":{"9":1}}],["export",{"2":{"8":1}}],["exports",{"2":{"2":1,"18":1}}],["exported",{"2":{"2":1,"12":1}}],["extrinsics",{"2":{"6":1}}],["extracted",{"2":{"2":1}}],["extensions",{"2":{"7":3}}],["extension",{"0":{"7":1},"2":{"7":3}}],["extends",{"2":{"0":2}}],["external",{"2":{"5":1}}],["except",{"2":{"0":1,"17":1}}],["exhaustively",{"2":{"0":1}}],["end",{"2":{"24":1}}],["endpoints",{"2":{"0":2}}],["enum",{"0":{"14":1},"2":{"14":6}}],["enums",{"2":{"2":1,"14":5}}],["enables",{"2":{"10":1}}],["entries",{"0":{"23":1,"24":1},"2":{"22":2,"24":2}}],["entropy",{"2":{"8":2}}],["entropytominisecret",{"2":{"8":2}}],["entry",{"2":{"4":1,"23":1}}],["enhancer",{"2":{"5":1}}],["enhanced",{"2":{"4":1}}],["encodeddata",{"2":{"3":1}}],["encoded",{"2":{"0":2,"1":1,"12":1}}],["escape",{"2":{"0":1}}],["errors",{"2":{"2":1,"18":1}}],["error",{"2":{"0":1,"4":1,"18":1}}],["e",{"2":{"0":1,"5":1,"14":1}}],["bunch",{"2":{"24":1}}],["but",{"2":{"0":1,"1":3,"2":2,"5":1,"6":1,"12":2,"13":2,"16":1,"24":1}}],["bigint",{"2":{"14":2}}],["binary",{"0":{"15":1},"2":{"12":2,"15":11,"16":1}}],["balances",{"2":{"14":1,"18":2,"19":3}}],["balancestatus",{"2":{"14":1}}],["balance",{"2":{"14":2}}],["based",{"2":{"0":4,"14":1,"21":1}}],["both",{"2":{"14":1,"24":1}}],["boolean",{"2":{"10":4,"19":1}}],["body",{"2":{"0":4}}],["breaking",{"2":{"10":2}}],["browser",{"0":{"7":1}}],["broadcast",{"2":{"0":4}}],["by",{"2":{"0":1,"2":1,"5":1,"9":2,"12":2,"14":2}}],["behaviour",{"2":{"24":1}}],["before",{"2":{"19":1}}],["beforehand",{"2":{"1":1}}],["because",{"2":{"19":1}}],["between",{"2":{"10":1}}],["beginning",{"2":{"2":1}}],["be",{"2":{"0":10,"1":2,"3":1,"4":2,"5":3,"6":1,"9":2,"10":1,"12":3,"14":3,"15":2,"17":1,"19":3,"20":1,"23":1,"24":1}}],["bestorfinalized",{"2":{"23":1,"24":1}}],["bestblocks$",{"2":{"0":1}}],["best",{"2":{"0":7,"20":3,"23":3,"24":3}}],["being",{"2":{"0":2}}],["blockhash",{"2":{"20":1,"23":1}}],["blockheader",{"2":{"0":1}}],["blockinfo",{"2":{"0":4}}],["block",{"2":{"0":23,"20":1,"23":3,"24":1}}],["worker",{"2":{"19":3}}],["work",{"2":{"14":1,"19":2}}],["working",{"2":{"11":1}}],["would",{"2":{"10":1,"14":1,"24":1}}],["write",{"2":{"5":1,"14":1}}],["wrap",{"2":{"4":1}}],["wss",{"2":{"5":1}}],["wsprovider",{"2":{"5":2}}],["ws",{"2":{"4":2,"5":1}}],["wsurl",{"2":{"1":1}}],["whether",{"2":{"19":1}}],["when",{"2":{"1":1,"12":1,"14":1,"16":1,"17":1}}],["while",{"2":{"19":1}}],["which",{"2":{"1":2,"2":1,"4":1,"6":1,"8":1,"9":1,"12":1,"14":1,"17":1,"19":1,"20":1,"23":1,"24":1}}],["whose",{"2":{"14":1}}],["what",{"2":{"9":1,"10":2}}],["way",{"2":{"19":1}}],["ways",{"2":{"4":1}}],["wasm",{"2":{"19":3,"20":1}}],["was",{"2":{"10":1}}],["wait",{"2":{"9":1,"19":3}}],["want",{"2":{"1":1,"7":1,"19":1}}],["watchvalue",{"2":{"23":2,"24":2}}],["watchblockbody",{"2":{"0":1}}],["watch",{"2":{"0":2}}],["w",{"2":{"1":2}}],["widely",{"2":{"2":1,"14":1}}],["without",{"0":{"23":1},"2":{"5":1,"13":1,"19":2,"21":1,"22":1,"24":1}}],["withlogsrecorder",{"2":{"5":3}}],["with",{"0":{"24":1},"2":{"0":2,"1":2,"2":3,"4":3,"5":1,"6":1,"7":2,"8":2,"9":4,"10":3,"11":1,"13":1,"14":4,"19":3,"20":2,"21":1,"22":1,"23":1,"24":3}}],["will",{"2":{"0":8,"1":1,"4":2,"5":1,"12":2,"14":5,"15":2,"19":7}}],["web",{"2":{"4":1}}],["websocketprovider",{"2":{"4":1,"5":2}}],["websocket",{"2":{"1":1,"4":1}}],["westend2",{"2":{"1":1}}],["wellknownchain",{"2":{"3":2}}],["well",{"2":{"0":1,"1":1,"2":3,"14":2,"20":1}}],["we",{"2":{"0":2,"6":1,"9":3,"10":5,"19":3,"20":2,"21":3,"22":1,"23":1,"24":2}}],["old",{"2":{"19":2}}],["operation",{"2":{"19":1}}],["option",{"2":{"10":1,"24":1}}],["options",{"2":{"1":2,"20":1,"21":1,"23":1,"24":4}}],["our",{"2":{"19":2,"24":1}}],["output",{"2":{"5":1}}],["objects",{"2":{"14":1}}],["object",{"2":{"9":1,"14":2}}],["observable",{"2":{"0":15,"9":2,"23":2,"24":1}}],["otherwise",{"2":{"19":1}}],["other",{"2":{"0":1,"9":1,"19":1,"20":1,"23":1}}],["only",{"2":{"10":1}}],["onmessage",{"2":{"4":2}}],["on",{"2":{"0":1,"5":1,"6":1,"10":4,"14":1,"19":6,"23":1}}],["one",{"2":{"0":2,"2":1,"4":2,"8":1,"9":4,"14":1,"19":4,"20":1}}],["once",{"2":{"0":1}}],["or",{"2":{"0":5,"1":2,"4":3,"5":1,"13":1,"19":3,"20":1,"23":2}}],["offers",{"2":{"4":1}}],["of",{"2":{"0":8,"1":2,"2":9,"4":4,"6":1,"7":3,"8":1,"9":1,"10":3,"11":2,"12":3,"13":1,"14":8,"15":1,"17":2,"19":3,"22":1,"23":1,"24":5}}],["=",{"2":{"0":15,"3":7,"4":4,"5":6,"6":2,"7":4,"8":6,"9":3,"10":2,"12":2,"14":1,"15":1,"19":5,"20":4,"21":3,"23":4,"24":5}}],["give",{"2":{"19":1}}],["github",{"2":{"0":1,"19":1}}],["great",{"2":{"9":1}}],["g",{"2":{"5":1}}],["generating",{"2":{"10":1}}],["generate",{"2":{"1":5,"5":1,"9":1,"19":2}}],["generates",{"2":{"1":1}}],["generated",{"2":{"0":1,"1":1,"2":2,"6":1,"9":1,"14":1}}],["generic",{"0":{"8":1},"2":{"6":1}}],["getentries",{"2":{"24":5}}],["getencodeddata",{"2":{"3":1}}],["getvalues",{"2":{"24":2}}],["getvalue",{"2":{"12":1,"18":1,"23":2,"24":3}}],["getpolkadotsigner",{"2":{"8":3}}],["getaccounts",{"2":{"7":1}}],["getinjectedextensions",{"2":{"7":2}}],["getsmprovider",{"2":{"4":1,"19":1}}],["gettypedapi",{"2":{"0":2,"2":1,"3":4,"12":1,"19":2}}],["getblockheader",{"2":{"0":1}}],["getblockbody",{"2":{"0":1}}],["getbestblocks",{"2":{"0":1}}],["getfinalizedblock",{"2":{"0":1}}],["getchainspecdata",{"2":{"0":1}}],["get",{"2":{"0":3,"1":1,"7":2,"19":2,"20":1,"21":1,"24":2}}],["gt",{"0":{"16":1,"17":1},"2":{"0":28,"1":7,"4":4,"5":1,"6":4,"8":2,"9":5,"10":2,"14":2,"17":2,"19":1,"20":3,"23":6,"24":14}}],["perform",{"2":{"19":2}}],["performtransfer",{"2":{"18":2,"19":1}}],["persist",{"2":{"1":2}}],["phrase",{"2":{"8":1}}],["pjs",{"2":{"7":2}}],["purposes",{"2":{"12":1}}],["public",{"2":{"12":1}}],["publickey",{"2":{"6":1,"8":2}}],["push",{"2":{"5":1}}],["primitive",{"2":{"11":1}}],["previously",{"2":{"21":1}}],["previous",{"2":{"21":1,"24":1}}],["preparing",{"0":{"19":1}}],["prepare",{"2":{"10":1,"19":1}}],["prefix",{"2":{"13":1}}],["preimagerequeststatus",{"2":{"2":1}}],["processaccount",{"2":{"18":2}}],["proxy",{"2":{"12":1}}],["proxies",{"2":{"12":3}}],["property",{"2":{"7":1}}],["providers",{"0":{"4":1},"1":{"5":1},"2":{"4":1}}],["provider",{"0":{"5":1},"2":{"0":1,"1":1,"4":4,"5":10}}],["promise",{"2":{"0":11,"6":1,"8":1,"9":1,"10":2,"19":1,"20":1,"21":1,"23":1,"24":3}}],["possibleparents",{"2":{"24":1}}],["possible",{"2":{"19":1}}],["postinstall",{"2":{"1":2}}],["powerful",{"2":{"10":1}}],["point",{"2":{"4":1}}],["polkadotruntimeruntimecall",{"2":{"14":2}}],["polkadotsigner",{"0":{"7":1,"8":1},"2":{"6":1,"7":2,"8":3}}],["polkadotapi",{"2":{"2":1,"12":1}}],["polkadot",{"2":{"0":2,"1":5,"3":3,"4":6,"5":7,"6":1,"7":3,"8":4,"11":1,"12":2,"14":2,"18":1,"19":10}}],["polkadotclient",{"0":{"0":1},"2":{"0":3}}],["pairs",{"2":{"21":1}}],["pages",{"2":{"10":1}}],["pallet",{"2":{"2":1,"9":2,"14":1,"24":4}}],["package",{"2":{"1":3}}],["papi",{"2":{"1":6,"9":1,"10":1,"19":4,"20":1,"21":1}}],["passed",{"2":{"24":1}}],["passing",{"2":{"21":2,"24":1}}],["pass",{"2":{"0":1,"19":1,"20":1,"24":3}}],["payload",{"2":{"0":1,"20":2,"23":4,"24":5}}],["partial",{"2":{"20":1,"23":1}}],["particular",{"2":{"10":1,"14":1,"23":2,"24":1}}],["parents",{"2":{"3":1}}],["paramter",{"2":{"19":1}}],["parameter",{"2":{"12":1,"14":2,"16":1,"19":1}}],["params",{"2":{"0":3}}],["param",{"2":{"0":8}}],["paritytech",{"2":{"0":1}}],["switch",{"2":{"14":1}}],["shows",{"2":{"14":1}}],["shown",{"2":{"14":1,"16":1,"17":1}}],["should",{"2":{"14":2}}],["shape",{"2":{"4":1}}],["shapes",{"2":{"0":1}}],["ss58prefix",{"2":{"18":2}}],["ss58account",{"2":{"18":2}}],["ss58",{"2":{"12":2}}],["ss58string",{"0":{"12":1},"2":{"12":4}}],["sr25519createderive",{"2":{"8":2}}],["sr25519",{"2":{"8":3}}],["smworker",{"2":{"19":2}}],["sm",{"2":{"4":1}}],["smoldot",{"2":{"4":2,"19":4}}],["several",{"2":{"24":1}}],["set",{"2":{"14":3,"19":1}}],["seamlessly",{"2":{"10":1}}],["second",{"2":{"9":1}}],["section",{"2":{"9":1,"10":1,"21":1}}],["see",{"2":{"9":3,"10":5,"20":2,"21":1}}],["selectedextension",{"2":{"7":2}}],["service",{"2":{"4":1}}],["send",{"2":{"3":1,"4":2}}],["safely",{"2":{"3":1}}],["same",{"2":{"2":1,"16":1,"19":1,"24":3}}],["situation",{"2":{"24":1}}],["situations",{"2":{"22":1}}],["similarely",{"2":{"24":1}}],["simple",{"2":{"10":1,"21":1}}],["simplest",{"2":{"9":1,"21":1}}],["signal",{"2":{"20":1,"23":1}}],["signature",{"2":{"14":2}}],["signandsubmit",{"2":{"3":1,"18":1}}],["signs",{"2":{"8":1}}],["sign",{"2":{"6":2,"8":2}}],["signingtype",{"2":{"8":1}}],["signing",{"0":{"8":1},"2":{"6":2}}],["signedextensions",{"2":{"6":1}}],["signed",{"2":{"6":1}}],["signers",{"0":{"6":1},"1":{"7":1,"8":1}}],["signer",{"2":{"3":1,"6":2,"7":4,"8":2,"18":1}}],["since",{"2":{"0":1,"10":1}}],["slightly",{"2":{"2":1}}],["scenarios",{"2":{"5":1}}],["scprovider",{"2":{"3":2}}],["scripts",{"2":{"1":1}}],["script",{"2":{"1":1}}],["scale",{"2":{"0":2,"1":1}}],["something",{"2":{"6":1,"14":1}}],["some",{"2":{"1":1,"2":1,"4":1,"8":1,"9":1,"11":1,"20":3}}],["so",{"2":{"1":1,"2":1,"3":1,"4":1,"14":1}}],["source",{"2":{"1":6,"5":1,"14":1}}],["soon",{"2":{"0":1,"19":1}}],["synchronous",{"2":{"21":1}}],["synchronously",{"2":{"0":2,"19":1}}],["sync",{"2":{"10":1,"21":1}}],["system",{"2":{"0":1,"10":2,"18":6,"21":3,"23":2,"24":1}}],["systemversion",{"2":{"0":1}}],["superset",{"2":{"17":1}}],["supersedes",{"2":{"0":1}}],["support",{"2":{"14":1,"19":2}}],["supported",{"2":{"8":1}}],["such",{"2":{"0":1,"4":1}}],["subset",{"2":{"24":1}}],["subscription",{"2":{"0":1}}],["subscribing",{"2":{"0":2}}],["subpath",{"2":{"7":1}}],["subpackage",{"2":{"5":1}}],["submitandwatch",{"2":{"0":1}}],["submit",{"2":{"0":1}}],["still",{"2":{"19":1}}],["stuff",{"2":{"10":2}}],["stores",{"2":{"1":1}}],["storageentrywithkeys",{"2":{"24":1}}],["storageentrywithoutkeys",{"2":{"23":1}}],["storageapi",{"2":{"9":1}}],["storage",{"0":{"22":1},"1":{"23":1,"24":1},"2":{"1":1,"2":1,"9":1,"18":1,"22":1,"23":1,"24":2}}],["straight",{"2":{"0":1,"20":1}}],["string",{"2":{"0":6,"4":3,"6":2,"7":1,"9":2,"12":4,"13":3,"14":2,"20":1,"23":1}}],["structure",{"2":{"0":1,"11":1,"21":2,"23":1,"24":1}}],["startfromworker",{"2":{"19":2}}],["start",{"2":{"9":1,"19":1}}],["statistics",{"2":{"4":1}}],["state",{"2":{"0":2}}],["stateful",{"2":{"0":2}}],["stable",{"2":{"0":1}}],["s",{"2":{"0":3,"1":2,"2":2,"4":1,"9":4,"10":6,"12":3,"15":1,"17":2,"19":4,"20":2,"21":3}}],["specifies",{"2":{"16":1}}],["specific",{"2":{"5":1,"9":1,"17":1,"19":1}}],["spec",{"2":{"0":3,"1":3}}],["roadmap",{"2":{"19":1}}],["rococo",{"2":{"1":1}}],["running",{"2":{"19":2}}],["run",{"2":{"1":2,"19":1}}],["runtimecall",{"2":{"20":1}}],["runtimecallsapi",{"2":{"9":1}}],["runtimeapi",{"2":{"9":2}}],["runtime",{"0":{"19":1,"20":1},"2":{"1":2,"2":2,"3":1,"9":8,"10":12,"19":11,"20":3,"21":6}}],["rxjs",{"2":{"0":1}}],["redo",{"2":{"19":1}}],["referenda",{"2":{"19":1}}],["reference",{"2":{"0":1,"2":1,"16":1}}],["regardless",{"2":{"12":1}}],["registered",{"2":{"7":1}}],["registers",{"2":{"1":1}}],["represented",{"2":{"14":2,"15":1}}],["represent",{"2":{"11":1}}],["reply",{"2":{"0":2}}],["replaying",{"2":{"5":1}}],["replay",{"2":{"0":2,"5":1}}],["rest",{"2":{"10":1}}],["responsible",{"2":{"6":1}}],["reacttonewaccount",{"2":{"18":1}}],["reading",{"2":{"14":2}}],["readlogs",{"2":{"5":1}}],["really",{"2":{"10":1}}],["re",{"2":{"9":1,"10":1,"19":1,"20":2,"22":1}}],["received",{"2":{"19":1}}],["receives",{"2":{"12":1}}],["recipe",{"2":{"9":1,"10":1}}],["record",{"2":{"6":1,"9":2}}],["recording",{"2":{"5":1}}],["recovery",{"2":{"4":1}}],["recommended",{"2":{"1":1}}],["relay",{"2":{"19":1}}],["relaychain",{"2":{"3":2}}],["relies",{"2":{"0":1}}],["removing",{"2":{"1":1}}],["required",{"2":{"24":1}}],["require",{"2":{"24":1}}],["requires",{"2":{"1":1,"4":1}}],["request",{"2":{"0":3,"1":1}}],["return",{"2":{"18":1,"19":2,"21":2}}],["returned",{"2":{"4":1,"12":1,"13":1,"18":1}}],["returns",{"2":{"0":7,"10":2,"23":3,"24":1}}],["retrieve",{"2":{"0":3}}],["rpc",{"2":{"0":2}}],["ienum",{"2":{"14":1}}],["imagine",{"2":{"19":1,"24":1}}],["imported",{"2":{"14":1}}],["import",{"2":{"3":2,"5":6,"7":1,"8":2,"14":1,"18":1,"19":5}}],["immutable",{"2":{"0":1}}],["identityjudgement",{"2":{"14":1}}],["identifier",{"2":{"1":1,"6":1}}],["ide",{"2":{"2":1,"14":1}}],["id",{"2":{"0":1,"14":1,"18":1,"19":2}}],["invalidspecname",{"2":{"18":1}}],["info",{"2":{"14":1}}],["information",{"2":{"1":2,"9":1,"20":1,"24":1}}],["inference",{"2":{"14":1}}],["indicates",{"2":{"13":1,"14":1}}],["indicative",{"2":{"12":1}}],["index",{"2":{"9":1,"23":1,"24":1}}],["instead",{"2":{"24":1}}],["installed",{"2":{"7":1}}],["installing",{"2":{"1":1}}],["installation",{"2":{"1":1}}],["instance",{"2":{"0":1,"2":1}}],["inside",{"2":{"9":2,"21":1}}],["input",{"2":{"8":1}}],["injectedpolkadotaccount",{"2":{"7":1}}],["injectedextension",{"2":{"7":1}}],["initiate",{"2":{"4":1}}],["incompatibilities",{"2":{"2":1}}],["in",{"2":{"0":1,"1":1,"2":3,"4":1,"6":1,"7":2,"10":4,"11":1,"12":3,"14":4,"19":1,"20":2,"21":6,"23":1,"24":5}}],["interested",{"2":{"10":1}}],["interior",{"2":{"3":1}}],["interaction",{"2":{"10":1,"19":1}}],["interact",{"2":{"1":2,"9":1,"10":1}}],["interface",{"0":{"18":1},"2":{"0":3,"4":3,"6":3,"10":3,"20":2}}],["into",{"2":{"0":3,"1":3,"5":1,"15":2}}],["if",{"2":{"0":1,"2":2,"7":1,"8":1,"10":3,"14":1,"19":4}}],["i",{"2":{"0":1,"14":1}}],["iscompatible",{"0":{"10":1},"2":{"10":7,"19":5,"20":2,"21":1,"23":2,"24":2}}],["is",{"2":{"0":5,"1":4,"2":2,"4":1,"6":2,"7":1,"10":6,"12":3,"13":1,"14":1,"15":2,"16":1,"17":1,"19":4,"21":2}}],["io",{"2":{"0":1}}],["its",{"2":{"0":3,"6":1,"10":1,"20":1,"21":1}}],["it",{"2":{"0":10,"1":7,"2":4,"3":2,"4":3,"5":1,"6":2,"8":1,"9":6,"10":4,"11":1,"12":4,"13":1,"14":2,"17":1,"19":6,"20":2,"21":3,"23":2,"24":4}}],["l",{"0":{"16":1,"17":1},"2":{"17":2}}],["long",{"2":{"19":1}}],["look",{"2":{"14":1}}],["looking",{"2":{"9":2}}],["looks",{"2":{"9":1}}],["loaded",{"2":{"10":1,"19":2}}],["load",{"2":{"9":1}}],["logerror",{"2":{"18":1}}],["log",{"2":{"5":3,"12":1}}],["logsprovider",{"2":{"5":4}}],["logs",{"0":{"5":1},"2":{"5":8}}],["logging",{"2":{"4":1}}],["link",{"2":{"19":1}}],["line",{"2":{"5":3}}],["like",{"2":{"9":1,"14":2}}],["library",{"2":{"1":1}}],["list",{"2":{"1":2,"7":1}}],["length",{"2":{"16":2,"17":2}}],["learnt",{"2":{"10":1,"21":1}}],["lets",{"2":{"4":1}}],["let",{"2":{"0":1,"9":2,"10":4,"19":1,"20":2,"21":1}}],["level",{"2":{"0":1,"18":1}}],["labs",{"2":{"8":3}}],["later",{"2":{"1":1}}],["latest",{"2":{"0":9,"9":2,"10":1,"19":1,"21":1}}],["last",{"2":{"0":3}}],["lt",{"0":{"16":1,"17":1},"2":{"0":17,"1":6,"6":2,"8":1,"9":4,"10":2,"14":1,"17":2,"19":1,"20":3,"23":4,"24":10}}],["ll",{"2":{"0":2,"9":2,"10":1,"24":1}}],["furthermore",{"2":{"19":1}}],["full",{"2":{"14":1}}],["functions",{"2":{"9":1,"15":1}}],["function",{"0":{"8":1},"2":{"0":1,"4":1,"8":2,"9":1,"14":1,"18":5,"19":2,"21":2,"23":1,"24":1}}],["few",{"2":{"14":1,"15":1}}],["features",{"2":{"4":1}}],["frameworks",{"2":{"20":1}}],["fresh",{"2":{"1":1}}],["fromtext",{"2":{"15":1}}],["fromhex",{"2":{"15":1}}],["frombytes",{"2":{"15":1}}],["from",{"0":{"7":1,"8":1},"2":{"0":3,"1":5,"2":1,"3":2,"4":3,"5":7,"7":1,"8":4,"12":1,"13":1,"14":3,"18":2,"19":9}}],["f",{"2":{"1":2}}],["fairly",{"2":{"0":1,"20":1}}],["fancy",{"2":{"0":1,"19":2}}],["fixedsizearray",{"0":{"17":1},"2":{"17":1}}],["fixedsizebinary",{"0":{"16":1}}],["fields",{"2":{"9":1,"10":1}}],["field",{"2":{"9":1,"10":1}}],["file",{"2":{"1":7,"5":2}}],["filename",{"2":{"1":3}}],["first",{"2":{"0":2,"9":1,"10":1,"14":1,"19":2}}],["finalizedcall",{"2":{"3":1}}],["finalizedblock$",{"2":{"0":1}}],["finalized",{"2":{"0":11,"20":1,"23":3,"24":2}}],["find",{"2":{"0":1,"9":1,"14":1,"21":1,"24":1}}],["found",{"2":{"24":1}}],["folder",{"2":{"1":1}}],["following",{"2":{"0":1,"4":1,"6":1,"14":2,"23":1,"24":1}}],["force",{"2":{"14":4}}],["formatss58account",{"2":{"18":2}}],["format",{"2":{"12":4}}],["formatted",{"2":{"12":1}}],["forward",{"2":{"0":1,"20":1}}],["for",{"0":{"19":1},"2":{"0":2,"1":7,"2":3,"4":1,"6":3,"7":1,"8":1,"9":6,"10":3,"12":1,"14":4,"16":1,"19":11,"21":2,"22":1,"23":2,"24":3}}],["ci",{"2":{"19":1}}],["creating",{"2":{"14":1}}],["creates",{"2":{"14":1}}],["create",{"2":{"0":2,"1":1,"5":1,"6":1,"8":1,"9":1,"15":1,"19":2}}],["createclient",{"2":{"0":1,"3":2,"4":1,"5":4,"19":2}}],["current",{"2":{"9":1}}],["clear",{"2":{"19":1}}],["clearorigin",{"2":{"3":1}}],["clean",{"2":{"1":1}}],["cli",{"2":{"0":1,"1":2,"9":1}}],["client",{"2":{"0":4,"5":2,"9":1,"12":1,"19":4}}],["c",{"2":{"1":2}}],["correct",{"2":{"14":1,"19":1}}],["corresponding",{"2":{"6":1}}],["could",{"2":{"5":1}}],["couple",{"2":{"4":1,"7":1}}],["cost",{"2":{"3":1}}],["coded",{"2":{"21":1}}],["code",{"2":{"1":2,"2":1,"14":1,"19":1}}],["codecs",{"2":{"1":1}}],["codegen",{"0":{"1":1},"1":{"2":1,"3":1},"2":{"1":2,"2":1,"9":1,"10":1}}],["console",{"2":{"5":2,"12":1}}],["consumed",{"2":{"2":1,"5":1}}],["constant",{"2":{"9":1,"10":1}}],["constants",{"0":{"21":1},"2":{"2":1,"9":1,"18":2,"19":1,"21":5}}],["constapi",{"2":{"9":1}}],["const",{"2":{"0":2,"3":7,"5":5,"7":4,"8":5,"10":2,"12":2,"15":1,"19":5,"20":3,"21":3}}],["control",{"2":{"20":1}}],["continue",{"2":{"10":1}}],["contains",{"2":{"2":2}}],["contents",{"0":{"2":1}}],["configuration",{"2":{"1":1}}],["config",{"2":{"1":2}}],["connectinjectedextension",{"2":{"7":2}}],["connecting",{"2":{"4":1}}],["connection",{"2":{"4":3,"19":2}}],["connected",{"2":{"1":1,"2":1,"19":1}}],["connect",{"2":{"1":1,"4":2,"7":1}}],["compatibility",{"2":{"19":2}}],["compatible",{"2":{"7":1,"10":4,"19":2}}],["compressed",{"2":{"19":1}}],["compile",{"2":{"19":1}}],["compliant",{"2":{"0":1}}],["complete",{"2":{"0":2}}],["come",{"2":{"4":1}}],["comes",{"2":{"0":1}}],["coming",{"2":{"4":1}}],["communicate",{"2":{"4":1}}],["command",{"2":{"1":4}}],["cases",{"2":{"14":1}}],["case",{"2":{"2":1,"10":2,"14":1,"21":2,"24":3}}],["calloptions",{"2":{"20":4,"23":2,"24":3}}],["calldata",{"2":{"6":1}}],["called",{"2":{"3":1}}],["call",{"2":{"2":1,"4":1,"6":1,"10":2,"14":4,"18":1,"21":1,"24":2}}],["calls",{"2":{"1":1,"2":2,"9":1,"20":1}}],["calling",{"2":{"0":1,"4":1,"14":1}}],["can",{"2":{"0":7,"1":4,"2":1,"3":1,"4":3,"5":3,"8":1,"10":2,"12":1,"14":2,"19":8,"20":3,"23":1,"24":1}}],["choose",{"2":{"23":1}}],["choices",{"2":{"1":1}}],["checks",{"2":{"17":1,"19":2}}],["checksum",{"2":{"2":1}}],["check",{"2":{"10":1,"19":3,"23":1}}],["chains",{"2":{"1":2,"2":3,"14":1,"19":2}}],["chainspec",{"2":{"0":1,"1":1,"19":2}}],["chainspecdata",{"2":{"0":2}}],["chain",{"2":{"1":8,"2":2,"3":1,"4":3,"6":1,"10":1,"11":2,"12":2,"14":1,"16":1,"19":6}}],["changes",{"2":{"23":1}}],["change",{"2":{"0":1}}],["children",{"2":{"0":2}}],["aka",{"2":{"20":1}}],["available",{"2":{"18":1,"19":1}}],["across",{"2":{"14":1}}],["accepts",{"2":{"12":1,"13":1}}],["access",{"2":{"0":1}}],["accounts",{"2":{"7":3,"12":1}}],["account",{"2":{"0":2,"7":1,"18":4,"24":2}}],["abortsignal",{"2":{"20":1,"23":1}}],["about",{"2":{"10":1,"21":1}}],["abstracted",{"2":{"12":1}}],["able",{"2":{"9":1,"19":1}}],["amp",{"2":{"9":1}}],["app",{"2":{"10":1}}],["appended",{"2":{"2":1}}],["apis",{"0":{"20":1},"2":{"9":1,"14":1,"19":2,"20":6}}],["api",{"2":{"0":5,"1":4,"3":2,"4":6,"5":7,"6":2,"7":3,"8":1,"9":1,"10":1,"11":1,"12":1,"14":2,"18":1,"19":6}}],["autocompletion",{"2":{"2":1}}],["automatically",{"2":{"1":1}}],["again",{"2":{"1":1}}],["addr",{"2":{"19":2}}],["addresses",{"2":{"24":1}}],["address",{"2":{"12":1,"14":1,"24":1}}],["addchain",{"2":{"19":1}}],["additionalsigned",{"2":{"6":1}}],["adds",{"2":{"4":1}}],["added",{"2":{"1":1}}],["add",{"2":{"1":6,"19":2}}],["awaited",{"2":{"21":1}}],["await",{"2":{"0":2,"3":2,"7":1,"10":2,"12":1,"18":2,"19":3,"20":3,"21":2}}],["alternatives",{"2":{"21":1}}],["always",{"2":{"12":1,"13":1}}],["alive",{"2":{"19":1}}],["alias",{"2":{"12":1,"13":1}}],["alice",{"2":{"8":1}}],["algorithms",{"2":{"8":1}}],["along",{"2":{"5":1}}],["also",{"2":{"2":2,"6":1,"14":1,"17":1,"24":1}}],["all",{"2":{"1":4,"2":2,"9":1,"10":1,"11":1,"14":1,"24":2}}],["allowing",{"2":{"23":1}}],["allows",{"2":{"2":1,"9":1,"23":1,"24":2}}],["allow",{"2":{"0":1,"9":1,"14":3,"18":2}}],["already",{"2":{"0":2,"10":2,"19":1,"21":1}}],["after",{"2":{"0":1,"1":2,"10":1}}],["arg3",{"2":{"24":1}}],["arg2",{"2":{"24":2}}],["arg1",{"2":{"24":3}}],["argument",{"2":{"20":1}}],["arguments",{"2":{"1":1,"20":1,"24":1}}],["args",{"2":{"20":3,"24":10}}],["arbitrary",{"2":{"8":1}}],["are",{"2":{"0":2,"2":4,"6":1,"9":2,"11":1,"12":1,"14":7,"18":1,"20":1,"21":3,"24":1}}],["array",{"2":{"0":6,"5":1,"15":1,"17":2,"24":3}}],["atblocknumber",{"2":{"6":1}}],["at",{"2":{"0":5,"2":2,"3":1,"9":1,"20":5,"23":2,"24":6}}],["another",{"2":{"4":1,"10":1,"13":1}}],["anonymous",{"2":{"2":1,"11":1,"14":1}}],["any",{"2":{"0":3,"2":1,"4":1,"10":1,"12":3,"15":1,"18":1,"19":1}}],["an",{"2":{"0":5,"5":2,"7":1,"9":1,"10":4,"12":3,"14":3,"17":1,"19":3,"23":1,"24":1}}],["and",{"2":{"0":11,"1":6,"2":3,"3":1,"4":1,"6":2,"8":1,"9":2,"10":3,"14":6,"19":6,"22":1,"24":2}}],["asynchronous",{"2":{"21":1}}],["astext",{"2":{"15":1}}],["ashex",{"2":{"15":1}}],["asbytes",{"2":{"15":1}}],["as",{"2":{"0":7,"1":4,"4":1,"7":1,"10":1,"12":3,"14":3,"15":1,"16":2,"17":1,"19":8,"20":2,"21":1,"23":1,"24":1}}],["a",{"0":{"7":1,"19":1},"2":{"0":14,"1":14,"2":4,"4":5,"5":5,"6":2,"7":4,"8":2,"9":5,"10":5,"11":1,"12":2,"13":1,"14":6,"15":2,"16":2,"17":4,"19":7,"20":2,"21":1,"23":2,"24":6}}],["turned",{"2":{"15":2}}],["transfer",{"2":{"14":5,"18":4,"19":4}}],["transactionpaymentcallapi",{"2":{"14":1}}],["transactions",{"2":{"2":1,"6":3,"9":1,"18":1,"19":1}}],["transaction",{"2":{"0":7,"1":1,"6":1}}],["tagged",{"2":{"12":1}}],["take",{"2":{"20":1}}],["takes",{"2":{"6":1,"8":1,"20":1}}],["taking",{"2":{"0":2,"6":1}}],["time",{"2":{"9":1,"24":1}}],["times",{"2":{"3":1}}],["text",{"2":{"15":2}}],["tell",{"2":{"14":1,"19":1}}],["terminate",{"2":{"4":1}}],["technically",{"2":{"1":1}}],["two",{"2":{"2":3,"19":1,"21":2,"22":2}}],["typed",{"2":{"6":1,"10":1,"19":1}}],["typedapis",{"2":{"19":1}}],["typedapi",{"0":{"9":1},"1":{"10":1},"2":{"0":1,"9":3,"10":3,"19":1,"20":4,"21":5,"23":1,"24":4}}],["type",{"2":{"1":2,"2":1,"3":1,"9":2,"12":1,"14":10,"15":1,"16":1,"17":1,"20":1,"23":2,"24":1}}],["types",{"0":{"11":1,"18":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1},"2":{"1":1,"2":5,"9":1,"11":3,"14":8,"18":1,"19":1}}],["txapi",{"2":{"9":1}}],["txbroadcastevent",{"2":{"0":1}}],["txfinalizedpayload",{"2":{"0":1}}],["tx",{"2":{"0":4,"3":1,"9":2,"10":1,"18":1,"19":3}}],["t",{"0":{"17":1},"2":{"0":1,"2":1,"14":1,"17":2,"19":1}}],["to",{"2":{"0":11,"1":14,"2":2,"4":4,"5":6,"6":4,"7":3,"9":6,"10":4,"11":1,"12":1,"14":2,"15":1,"19":13,"20":2,"21":1,"23":4,"24":9}}],["top",{"2":{"0":1,"18":1}}],["three",{"2":{"24":1}}],["through",{"2":{"1":1,"3":1,"4":3,"14":1,"18":1}}],["this",{"2":{"0":4,"1":2,"5":1,"6":1,"7":1,"9":1,"10":3,"14":2,"15":1,"19":3,"20":1,"21":3,"24":3}}],["that",{"2":{"0":10,"1":4,"2":4,"3":1,"4":2,"5":3,"6":1,"9":5,"10":1,"11":1,"12":3,"13":1,"14":7,"15":3,"17":4,"19":5,"20":1,"21":3,"23":1,"24":2}}],["them",{"2":{"14":3,"19":1,"24":1}}],["they",{"2":{"2":2,"11":1,"14":2,"20":2,"24":1}}],["these",{"2":{"2":4,"6":1,"14":4}}],["then",{"2":{"1":3,"2":1,"3":1,"19":3}}],["their",{"2":{"1":1,"14":1,"21":1}}],["therefore",{"2":{"23":1,"24":1}}],["there",{"2":{"0":1,"2":1,"10":1,"20":1,"22":1}}],["the",{"2":{"0":34,"1":27,"2":16,"4":8,"5":1,"6":6,"7":4,"8":2,"9":11,"10":12,"11":5,"12":9,"13":3,"14":19,"16":2,"17":2,"18":2,"19":28,"20":2,"21":8,"23":7,"24":12}}]],"serializationVersion":2} diff --git a/assets/apis-ByRr4L1P.js b/assets/apis-Cz6Otmp9.js similarity index 99% rename from assets/apis-ByRr4L1P.js rename to assets/apis-Cz6Otmp9.js index 5791a7e0..6c24b24d 100644 --- a/assets/apis-ByRr4L1P.js +++ b/assets/apis-Cz6Otmp9.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-CnBJmQ_B.js";const n={title:"Runtime APIs",description:"undefined"};function a(e){const i={a:"a",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...l(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"runtime-apis",children:["Runtime APIs",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#runtime-apis",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-CnhgBks4.js";const n={title:"Runtime APIs",description:"undefined"};function a(e){const i={a:"a",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...l(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"runtime-apis",children:["Runtime APIs",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#runtime-apis",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(i.p,{children:["Runtime APIs (aka Runtime calls in other frameworks) directly query the wasm runtime to get some information. In PAPI they're under ",s.jsx(i.code,{children:"typedApi.apis"}),". Let's see its interface:"]}),` `,s.jsx(i.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(i.code,{children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" CallOptions"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Partial"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),` `,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" at"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"})]}),` diff --git a/assets/client-0QvmPwMR.js b/assets/client-BgaL9RwG.js similarity index 99% rename from assets/client-0QvmPwMR.js rename to assets/client-BgaL9RwG.js index 9cb88c48..1e2e627f 100644 --- a/assets/client-0QvmPwMR.js +++ b/assets/client-BgaL9RwG.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-CnBJmQ_B.js";const r={title:"PolkadotClient",description:"undefined"};function i(e){const l={a:"a",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(l.header,{children:s.jsxs(l.h1,{id:"polkadotclient",children:["PolkadotClient",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadotclient",children:s.jsx(l.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-CnhgBks4.js";const r={title:"PolkadotClient",description:"undefined"};function i(e){const l={a:"a",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(l.header,{children:s.jsxs(l.h1,{id:"polkadotclient",children:["PolkadotClient",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadotclient",children:s.jsx(l.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(l.p,{children:[s.jsx(l.code,{children:"PolkadotClient"})," interface shapes the top-level API for ",s.jsx(l.code,{children:"polkadot-api"}),". Once we get a client using ",s.jsx(l.code,{children:"createClient"})," function, we'll find the following:"]}),` `,s.jsx(l.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(l.code,{children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PolkadotClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` diff --git a/assets/codegen-C-E0Y6vn.js b/assets/codegen-BYKrWVlU.js similarity index 99% rename from assets/codegen-C-E0Y6vn.js rename to assets/codegen-BYKrWVlU.js index babf5af0..22de350e 100644 --- a/assets/codegen-C-E0Y6vn.js +++ b/assets/codegen-BYKrWVlU.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-CnBJmQ_B.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-CnhgBks4.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types."}),` `,s.jsx(e.p,{children:"During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand."}),` `,s.jsx(e.p,{children:"Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors."}),` diff --git a/assets/constants-D427w9L6.js b/assets/constants-waEoK2Pg.js similarity index 98% rename from assets/constants-D427w9L6.js rename to assets/constants-waEoK2Pg.js index 89ee9d87..9f4fdbd3 100644 --- a/assets/constants-D427w9L6.js +++ b/assets/constants-waEoK2Pg.js @@ -1,4 +1,4 @@ -import{u as r,j as s}from"./index-CnBJmQ_B.js";const a={title:"Constants",description:"undefined"};function i(n){const e={a:"a",code:"code",div:"div",h1:"h1",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...r(),...n.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"constants",children:["Constants",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#constants",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as s}from"./index-CnhgBks4.js";const a={title:"Constants",description:"undefined"};function i(n){const e={a:"a",code:"code",div:"div",h1:"h1",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...r(),...n.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"constants",children:["Constants",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#constants",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["Constants are the simplest structure that we find inside the ",s.jsx(e.code,{children:"TypedApi"}),". Constants are hard-coded key-value pairs that are embedded in the runtime metadata. In PAPI their structure is just a simple function that return its decoded value, with two alternatives. As explained in ",s.jsx(e.a,{href:"/typed",children:"the previous section"})," for ",s.jsx(e.code,{children:"isCompatible"}),", we have two options to get the value:"]}),` `,s.jsxs(e.ul,{children:[` `,s.jsx(e.li,{children:"Promise-based call, without passing the runtime"}),` diff --git a/assets/getting-started-CtMjqxRV.js b/assets/getting-started-L-jvfI-a.js similarity index 99% rename from assets/getting-started-CtMjqxRV.js rename to assets/getting-started-L-jvfI-a.js index c88f1612..ff6a302a 100644 --- a/assets/getting-started-CtMjqxRV.js +++ b/assets/getting-started-L-jvfI-a.js @@ -1,4 +1,4 @@ -import{j as s,$ as h,a as t,b as k,c as p,u as o}from"./index-CnBJmQ_B.js";const a=({options:i,children:e})=>s.jsxs(h,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(t,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{j as s,$ as h,a as t,b as k,c as p,u as o}from"./index-CnhgBks4.js";const a=({options:i,children:e})=>s.jsxs(h,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(t,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["Start by installing ",s.jsx(e.code,{children:"polkadot-api"})," and ",s.jsx(e.code,{children:"@polkadot-api/descriptors"})]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npm"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" i"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot-api"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @polkadot-api/descriptors"})]})})}),` `,s.jsx(e.p,{children:"Next, download the latest metadata from the chain you want to connect to and generate the types:"}),` diff --git a/assets/index-CnBJmQ_B.js b/assets/index-CnhgBks4.js similarity index 83% rename from assets/index-CnBJmQ_B.js rename to assets/index-CnhgBks4.js index 73c35b93..e71bb7bf 100644 --- a/assets/index-CnBJmQ_B.js +++ b/assets/index-CnhgBks4.js @@ -22,7 +22,7 @@ function Fu(e,t){for(var n=0;n>>1,ae=L[oe];if(0>>1;oeo(ge,K))yeo(Pe,ge)?(L[oe]=Pe,L[ye]=K,oe=ye):(L[oe]=ge,L[Me]=K,oe=Me);else if(yeo(Pe,K))L[oe]=Pe,L[ye]=K,oe=ye;else break e}}return U}function o(L,U){var K=L.sortIndex-U.sortIndex;return K!==0?K:L.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],f=1,c=null,d=3,h=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(L){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=L)r(u),U.sortIndex=U.expirationTime,t(s,U);else break;U=n(u)}}function E(L){if(v=!1,w(L),!y)if(n(s)!==null)y=!0,G(S);else{var U=n(u);U!==null&&z(E,U.startTime-L)}}function S(L,U){y=!1,v&&(v=!1,m(b),b=-1),h=!0;var K=d;try{for(w(U),c=n(s);c!==null&&(!(c.expirationTime>U)||L&&!M());){var oe=c.callback;if(typeof oe=="function"){c.callback=null,d=c.priorityLevel;var ae=oe(c.expirationTime<=U);U=e.unstable_now(),typeof ae=="function"?c.callback=ae:c===n(s)&&r(s),w(U)}else r(s);c=n(s)}if(c!==null)var Fe=!0;else{var Me=n(u);Me!==null&&z(E,Me.startTime-U),Fe=!1}return Fe}finally{c=null,d=K,h=!1}}var $=!1,_=null,b=-1,k=5,N=-1;function M(){return!(e.unstable_now()-NL||125oe?(L.sortIndex=K,t(u,L),n(s)===null&&L===n(u)&&(v?(m(b),b=-1):v=!0,z(E,K-oe))):(L.sortIndex=ae,t(s,L),y||h||(y=!0,G(S))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var U=d;return function(){var K=d;d=U;try{return L.apply(this,arguments)}finally{d=K}}}})(Rv);kv.exports=Rv;var Zy=kv.exports;/** + */(function(e){function t(L,U){var K=L.length;L.push(U);e:for(;0>>1,ae=L[oe];if(0>>1;oeo(ge,K))yeo(Pe,ge)?(L[oe]=Pe,L[ye]=K,oe=ye):(L[oe]=ge,L[Me]=K,oe=Me);else if(yeo(Pe,K))L[oe]=Pe,L[ye]=K,oe=ye;else break e}}return U}function o(L,U){var K=L.sortIndex-U.sortIndex;return K!==0?K:L.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],f=1,c=null,d=3,h=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(L){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=L)r(u),U.sortIndex=U.expirationTime,t(s,U);else break;U=n(u)}}function E(L){if(v=!1,w(L),!y)if(n(s)!==null)y=!0,G(S);else{var U=n(u);U!==null&&z(E,U.startTime-L)}}function S(L,U){y=!1,v&&(v=!1,m(b),b=-1),h=!0;var K=d;try{for(w(U),c=n(s);c!==null&&(!(c.expirationTime>U)||L&&!O());){var oe=c.callback;if(typeof oe=="function"){c.callback=null,d=c.priorityLevel;var ae=oe(c.expirationTime<=U);U=e.unstable_now(),typeof ae=="function"?c.callback=ae:c===n(s)&&r(s),w(U)}else r(s);c=n(s)}if(c!==null)var Fe=!0;else{var Me=n(u);Me!==null&&z(E,Me.startTime-U),Fe=!1}return Fe}finally{c=null,d=K,h=!1}}var $=!1,_=null,b=-1,k=5,N=-1;function O(){return!(e.unstable_now()-NL||125oe?(L.sortIndex=K,t(u,L),n(s)===null&&L===n(u)&&(v?(m(b),b=-1):v=!0,z(E,K-oe))):(L.sortIndex=ae,t(s,L),y||h||(y=!0,G(S))),L},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(L){var U=d;return function(){var K=d;d=U;try{return L.apply(this,arguments)}finally{d=K}}}})(Rv);kv.exports=Rv;var Zy=kv.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function Fu(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=Object.prototype.hasOwnProperty,Jy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nd={},Ad={};function qy(e){return sc.call(Ad,e)?!0:sc.call(Nd,e)?!1:Jy.test(e)?Ad[e]=!0:(Nd[e]=!0,!1)}function e2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t2(e,t,n,r){if(t===null||typeof t>"u"||e2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wu=/[\-:]([a-z])/g;function Ku(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wu,Ku);et[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wu,Ku);et[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wu,Ku);et[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yu(e,t,n,r){var o=et.hasOwnProperty(t)?et[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=Object.prototype.hasOwnProperty,Jy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nd={},Ad={};function qy(e){return sc.call(Ad,e)?!0:sc.call(Nd,e)?!1:Jy.test(e)?Ad[e]=!0:(Nd[e]=!0,!1)}function e2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t2(e,t,n,r){if(t===null||typeof t>"u"||e2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wu=/[\-:]([a-z])/g;function Ku(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wu,Ku);et[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wu,Ku);et[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wu,Ku);et[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yu(e,t,n,r){var o=et.hasOwnProperty(t)?et[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{cs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ri(e):""}function n2(e){switch(e.tag){case 5:return ri(e.type);case 16:return ri("Lazy");case 13:return ri("Suspense");case 19:return ri("SuspenseList");case 0:case 2:case 15:return e=us(e.type,!1),e;case 11:return e=us(e.type.render,!1),e;case 1:return e=us(e.type,!0),e;default:return""}}function dc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Kr:return"Fragment";case Wr:return"Portal";case cc:return"Profiler";case Gu:return"StrictMode";case uc:return"Suspense";case fc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Av:return(e.displayName||"Context")+".Consumer";case Nv:return(e._context.displayName||"Context")+".Provider";case Qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zu:return t=e.displayName||null,t!==null?t:dc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return dc(e(t))}catch{}}return null}function r2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dc(t);case 8:return t===Gu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Iv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o2(e){var t=Iv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oa(e){e._valueTracker||(e._valueTracker=o2(e))}function Ov(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Iv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hc(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Mv(e,t){t=t.checked,t!=null&&Yu(e,"checked",t,!1)}function pc(e,t){Mv(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vc(e,t.type,n):t.hasOwnProperty("defaultValue")&&vc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vc(e,t,n){(t!=="number"||Za(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i2=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(e){i2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),si[t]=si[e]})});function zv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||si.hasOwnProperty(e)&&si[e]?(""+t).trim():t+"px"}function Bv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var a2=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yc(e,t){if(t){if(a2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function wc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xc=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cc=null,io=null,ao=null;function jd(e){if(e=Vi(e)){if(typeof Cc!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ol(t),Cc(e.stateNode,e.type,t))}}function Uv(e){io?ao?ao.push(e):ao=[e]:io=e}function Hv(){if(io){var e=io,t=ao;if(ao=io=null,jd(e),t)for(e=0;e>>=0,e===0?32:31-(g2(e)/y2|0)|0}var aa=64,la=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ii(l):(i&=a,i!==0&&(r=ii(i)))}else a=n&~o,a!==0?r=ii(a):i!==0&&(r=ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function E2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ui),Yd=" ",Gd=!1;function cm(e,t){switch(e){case"keyup":return Z2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function um(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function J2(e,t){switch(e){case"compositionend":return um(t);case"keypress":return t.which!==32?null:(Gd=!0,Yd);case"textInput":return e=t.data,e===Yd&&Gd?null:e;default:return null}}function q2(e,t){if(Yr)return e==="compositionend"||!af&&cm(e,t)?(e=lm(),Oa=nf=Mn=null,Yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jd(n)}}function pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vm(){for(var e=window,t=Za();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Za(e.document)}return t}function lf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function s3(e){var t=vm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pm(n.ownerDocument.documentElement,n)){if(r!==null&&lf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=qd(n,i);var a=qd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gr=null,Tc=null,di=null,kc=!1;function eh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Gr==null||Gr!==Za(r)||(r=Gr,"selectionStart"in r&&lf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&bi(di,r)||(di=r,r=rl(Tc,"onSelect"),0Xr||(e.current=Ic[Xr],Ic[Xr]=null,Xr--)}function pe(e,t){Xr++,Ic[Xr]=e.current,e.current=t}var Yn={},ot=er(Yn),vt=er(!1),yr=Yn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return e=e.childContextTypes,e!=null}function il(){me(vt),me(ot)}function lh(e,t,n){if(ot.current!==Yn)throw Error(j(168));pe(ot,t),pe(vt,n)}function Sm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,r2(e)||"Unknown",o));return Re({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,yr=ot.current,pe(ot,e),pe(vt,vt.current),!0}function sh(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Sm(e,t,yr),r.__reactInternalMemoizedMergedChildContext=e,me(vt),me(ot),pe(ot,e)):me(vt),pe(vt,n)}var cn=null,Ml=!1,Ss=!1;function bm(e){cn===null?cn=[e]:cn.push(e)}function x3(e){Ml=!0,bm(e)}function tr(){if(!Ss&&cn!==null){Ss=!0;var e=0,t=ue;try{var n=cn;for(ue=1;e>=a,o-=a,un=1<<32-Vt(t)+o|n<b?(k=_,_=null):k=_.sibling;var N=d(m,_,w[b],E);if(N===null){_===null&&(_=k);break}e&&_&&N.alternate===null&&t(m,_),g=i(N,g,b),$===null?S=N:$.sibling=N,$=N,_=k}if(b===w.length)return n(m,_),_e&&lr(m,b),S;if(_===null){for(;bb?(k=_,_=null):k=_.sibling;var M=d(m,_,N.value,E);if(M===null){_===null&&(_=k);break}e&&_&&M.alternate===null&&t(m,_),g=i(M,g,b),$===null?S=M:$.sibling=M,$=M,_=k}if(N.done)return n(m,_),_e&&lr(m,b),S;if(_===null){for(;!N.done;b++,N=w.next())N=c(m,N.value,E),N!==null&&(g=i(N,g,b),$===null?S=N:$.sibling=N,$=N);return _e&&lr(m,b),S}for(_=r(m,_);!N.done;b++,N=w.next())N=h(_,m,b,N.value,E),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?b:N.key),g=i(N,g,b),$===null?S=N:$.sibling=N,$=N);return e&&_.forEach(function(D){return t(m,D)}),_e&&lr(m,b),S}function C(m,g,w,E){if(typeof w=="object"&&w!==null&&w.type===Kr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ra:e:{for(var S=w.key,$=g;$!==null;){if($.key===S){if(S=w.type,S===Kr){if($.tag===7){n(m,$.sibling),g=o($,w.props.children),g.return=m,m=g;break e}}else if($.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&fh(S)===$.type){n(m,$.sibling),g=o($,w.props),g.ref=Yo(m,$,w),g.return=m,m=g;break e}n(m,$);break}else t(m,$);$=$.sibling}w.type===Kr?(g=mr(w.props.children,m.mode,E,w.key),g.return=m,m=g):(E=Ha(w.type,w.key,w.props,null,m.mode,E),E.ref=Yo(m,g,w),E.return=m,m=E)}return a(m);case Wr:e:{for($=w.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(m,g.sibling),g=o(g,w.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=As(w,m.mode,E),g.return=m,m=g}return a(m);case An:return $=w._init,C(m,g,$(w._payload),E)}if(oi(w))return y(m,g,w,E);if(Uo(w))return v(m,g,w,E);pa(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,w),g.return=m,m=g):(n(m,g),g=Ns(w,m.mode,E),g.return=m,m=g),a(m)):n(m,g)}return C}var go=Rm(!0),Pm=Rm(!1),cl=er(null),ul=null,eo=null,ff=null;function df(){ff=eo=ul=null}function hf(e){var t=cl.current;me(cl),e._currentValue=t}function Dc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function so(e,t){ul=e,ff=eo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(ff!==e)if(e={context:e,memoizedValue:t,next:null},eo===null){if(ul===null)throw Error(j(308));eo=e,ul.dependencies={lanes:0,firstContext:e}}else eo=eo.next=e;return t}var ur=null;function pf(e){ur===null?ur=[e]:ur.push(e)}function Nm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,pf(t)):(n.next=o.next,o.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ln=!1;function vf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Am(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,mn(e,n)}return o=r.interleaved,o===null?(t.next=t,pf(r)):(t.next=o.next,o.next=t),r.interleaved=t,mn(e,n)}function Da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qu(e,n)}}function dh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,r){var o=e.updateQueue;Ln=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=o.baseState;a=0,f=u=s=null,l=i;do{var d=l.lane,h=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,v=l;switch(d=t,h=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){c=y.call(h,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(h,c,d):y,d==null)break e;c=Re({},c,d);break e;case 2:Ln=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,a|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(s=c),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Cr|=a,e.lanes=a,e.memoizedState=c}}function hh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{ue=n,$s.transition=r}}function Qm(){return It().memoizedState}function S3(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zm(e))Xm(t,n);else if(n=Nm(e,t,n,r),n!==null){var o=st();Wt(n,e,r,o),Jm(n,t,r)}}function b3(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zm(e))Xm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Kt(l,a)){var s=t.interleaved;s===null?(o.next=o,pf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Nm(e,t,o,r),n!==null&&(o=st(),Wt(n,e,r,o),Jm(n,t,r))}}function Zm(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Xm(e,t){hi=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qu(e,n)}}var pl={readContext:Lt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},$3={readContext:Lt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:vh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4194308,4,Vm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=S3.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:ph,useDebugValue:_f,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=ph(!1),t=e[0];return e=_3.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=Jt();if(_e){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),We===null)throw Error(j(349));xr&30||Mm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,vh(jm.bind(null,r,i,e),[e]),r.flags|=2048,Li(9,Dm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=We.identifierPrefix;if(_e){var n=fn,r=un;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ni++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{cs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ri(e):""}function n2(e){switch(e.tag){case 5:return ri(e.type);case 16:return ri("Lazy");case 13:return ri("Suspense");case 19:return ri("SuspenseList");case 0:case 2:case 15:return e=us(e.type,!1),e;case 11:return e=us(e.type.render,!1),e;case 1:return e=us(e.type,!0),e;default:return""}}function dc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Kr:return"Fragment";case Wr:return"Portal";case cc:return"Profiler";case Gu:return"StrictMode";case uc:return"Suspense";case fc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Av:return(e.displayName||"Context")+".Consumer";case Nv:return(e._context.displayName||"Context")+".Provider";case Qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zu:return t=e.displayName||null,t!==null?t:dc(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return dc(e(t))}catch{}}return null}function r2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dc(t);case 8:return t===Gu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Iv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o2(e){var t=Iv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oa(e){e._valueTracker||(e._valueTracker=o2(e))}function Ov(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Iv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hc(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Mv(e,t){t=t.checked,t!=null&&Yu(e,"checked",t,!1)}function pc(e,t){Mv(e,t);var n=Yn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vc(e,t.type,n):t.hasOwnProperty("defaultValue")&&vc(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vc(e,t,n){(t!=="number"||Za(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i2=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(e){i2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),si[t]=si[e]})});function zv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||si.hasOwnProperty(e)&&si[e]?(""+t).trim():t+"px"}function Bv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var a2=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yc(e,t){if(t){if(a2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function wc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xc=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cc=null,io=null,ao=null;function jd(e){if(e=Vi(e)){if(typeof Cc!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ol(t),Cc(e.stateNode,e.type,t))}}function Uv(e){io?ao?ao.push(e):ao=[e]:io=e}function Hv(){if(io){var e=io,t=ao;if(ao=io=null,jd(e),t)for(e=0;e>>=0,e===0?32:31-(g2(e)/y2|0)|0}var aa=64,la=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ii(l):(i&=a,i!==0&&(r=ii(i)))}else a=n&~o,a!==0?r=ii(a):i!==0&&(r=ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function E2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ui),Yd=" ",Gd=!1;function cm(e,t){switch(e){case"keyup":return Z2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function um(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function J2(e,t){switch(e){case"compositionend":return um(t);case"keypress":return t.which!==32?null:(Gd=!0,Yd);case"textInput":return e=t.data,e===Yd&&Gd?null:e;default:return null}}function q2(e,t){if(Yr)return e==="compositionend"||!af&&cm(e,t)?(e=lm(),Oa=nf=Dn=null,Yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jd(n)}}function pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vm(){for(var e=window,t=Za();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Za(e.document)}return t}function lf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function s3(e){var t=vm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pm(n.ownerDocument.documentElement,n)){if(r!==null&&lf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=qd(n,i);var a=qd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gr=null,Tc=null,di=null,kc=!1;function eh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Gr==null||Gr!==Za(r)||(r=Gr,"selectionStart"in r&&lf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&bi(di,r)||(di=r,r=rl(Tc,"onSelect"),0Xr||(e.current=Ic[Xr],Ic[Xr]=null,Xr--)}function pe(e,t){Xr++,Ic[Xr]=e.current,e.current=t}var Gn={},ot=er(Gn),vt=er(!1),yr=Gn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return e=e.childContextTypes,e!=null}function il(){me(vt),me(ot)}function lh(e,t,n){if(ot.current!==Gn)throw Error(j(168));pe(ot,t),pe(vt,n)}function Sm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,r2(e)||"Unknown",o));return Re({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,yr=ot.current,pe(ot,e),pe(vt,vt.current),!0}function sh(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Sm(e,t,yr),r.__reactInternalMemoizedMergedChildContext=e,me(vt),me(ot),pe(ot,e)):me(vt),pe(vt,n)}var un=null,Ml=!1,Ss=!1;function bm(e){un===null?un=[e]:un.push(e)}function x3(e){Ml=!0,bm(e)}function tr(){if(!Ss&&un!==null){Ss=!0;var e=0,t=ue;try{var n=un;for(ue=1;e>=a,o-=a,fn=1<<32-Vt(t)+o|n<b?(k=_,_=null):k=_.sibling;var N=d(m,_,w[b],E);if(N===null){_===null&&(_=k);break}e&&_&&N.alternate===null&&t(m,_),g=i(N,g,b),$===null?S=N:$.sibling=N,$=N,_=k}if(b===w.length)return n(m,_),_e&&lr(m,b),S;if(_===null){for(;bb?(k=_,_=null):k=_.sibling;var O=d(m,_,N.value,E);if(O===null){_===null&&(_=k);break}e&&_&&O.alternate===null&&t(m,_),g=i(O,g,b),$===null?S=O:$.sibling=O,$=O,_=k}if(N.done)return n(m,_),_e&&lr(m,b),S;if(_===null){for(;!N.done;b++,N=w.next())N=c(m,N.value,E),N!==null&&(g=i(N,g,b),$===null?S=N:$.sibling=N,$=N);return _e&&lr(m,b),S}for(_=r(m,_);!N.done;b++,N=w.next())N=h(_,m,b,N.value,E),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?b:N.key),g=i(N,g,b),$===null?S=N:$.sibling=N,$=N);return e&&_.forEach(function(D){return t(m,D)}),_e&&lr(m,b),S}function C(m,g,w,E){if(typeof w=="object"&&w!==null&&w.type===Kr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ra:e:{for(var S=w.key,$=g;$!==null;){if($.key===S){if(S=w.type,S===Kr){if($.tag===7){n(m,$.sibling),g=o($,w.props.children),g.return=m,m=g;break e}}else if($.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ln&&fh(S)===$.type){n(m,$.sibling),g=o($,w.props),g.ref=Yo(m,$,w),g.return=m,m=g;break e}n(m,$);break}else t(m,$);$=$.sibling}w.type===Kr?(g=mr(w.props.children,m.mode,E,w.key),g.return=m,m=g):(E=Ha(w.type,w.key,w.props,null,m.mode,E),E.ref=Yo(m,g,w),E.return=m,m=E)}return a(m);case Wr:e:{for($=w.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(m,g.sibling),g=o(g,w.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=As(w,m.mode,E),g.return=m,m=g}return a(m);case Ln:return $=w._init,C(m,g,$(w._payload),E)}if(oi(w))return y(m,g,w,E);if(Uo(w))return v(m,g,w,E);pa(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,w),g.return=m,m=g):(n(m,g),g=Ns(w,m.mode,E),g.return=m,m=g),a(m)):n(m,g)}return C}var go=Rm(!0),Pm=Rm(!1),cl=er(null),ul=null,eo=null,ff=null;function df(){ff=eo=ul=null}function hf(e){var t=cl.current;me(cl),e._currentValue=t}function Dc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function so(e,t){ul=e,ff=eo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(ff!==e)if(e={context:e,memoizedValue:t,next:null},eo===null){if(ul===null)throw Error(j(308));eo=e,ul.dependencies={lanes:0,firstContext:e}}else eo=eo.next=e;return t}var ur=null;function pf(e){ur===null?ur=[e]:ur.push(e)}function Nm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,pf(t)):(n.next=o.next,o.next=n),t.interleaved=n,gn(e,r)}function gn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var In=!1;function vf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Am(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,gn(e,n)}return o=r.interleaved,o===null?(t.next=t,pf(r)):(t.next=o.next,o.next=t),r.interleaved=t,gn(e,n)}function Da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qu(e,n)}}function dh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,r){var o=e.updateQueue;In=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=o.baseState;a=0,f=u=s=null,l=i;do{var d=l.lane,h=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,v=l;switch(d=t,h=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){c=y.call(h,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(h,c,d):y,d==null)break e;c=Re({},c,d);break e;case 2:In=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,a|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(s=c),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Cr|=a,e.lanes=a,e.memoizedState=c}}function hh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{ue=n,$s.transition=r}}function Qm(){return It().memoizedState}function S3(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zm(e))Xm(t,n);else if(n=Nm(e,t,n,r),n!==null){var o=st();Wt(n,e,r,o),Jm(n,t,r)}}function b3(e,t,n){var r=Wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zm(e))Xm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Kt(l,a)){var s=t.interleaved;s===null?(o.next=o,pf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Nm(e,t,o,r),n!==null&&(o=st(),Wt(n,e,r,o),Jm(n,t,r))}}function Zm(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Xm(e,t){hi=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qu(e,n)}}var pl={readContext:Lt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},$3={readContext:Lt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:vh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4194308,4,Vm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=S3.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:ph,useDebugValue:_f,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=ph(!1),t=e[0];return e=_3.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=Jt();if(_e){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),We===null)throw Error(j(349));xr&30||Mm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,vh(jm.bind(null,r,i,e),[e]),r.flags|=2048,Li(9,Dm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=We.identifierPrefix;if(_e){var n=dn,r=fn;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ni++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qt]=t,e[ki]=r,s0(e,t,!1,!1),t.stateNode=e;e:{switch(a=wc(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;oxo&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return nt(t),null}else 2*Ie()-i.renderingStartTime>xo&&n!==1073741824&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ie(),t.sibling=null,n=Te.current,pe(Te,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return Rf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function I3(e,t){switch(cf(t),t.tag){case 1:return mt(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),me(vt),me(ot),yf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gf(t),null;case 13:if(me(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Te),null;case 4:return yo(),null;case 10:return hf(t.type._context),null;case 22:case 23:return Rf(),null;case 24:return null;default:return null}}var ma=!1,rt=!1,O3=typeof WeakSet=="function"?WeakSet:Set,H=null;function to(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Kc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var $h=!1;function M3(e,t){if(Rc=tl,e=vm(),lf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(s=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(s=a),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={focusedElem:e,selectionRange:n},tl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,C=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:jt(t.type,v),C);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=$h,$h=!1,y}function pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Kc(t,n,i)}o=o.next}while(o!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function f0(e){var t=e.alternate;t!==null&&(e.alternate=null,f0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[ki],delete t[Lc],delete t[y3],delete t[w3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function d0(e){return e.tag===5||e.tag===3||e.tag===4}function Th(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ol));else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}var Ze=null,Ft=!1;function Rn(e,t,n){for(n=n.child;n!==null;)h0(e,t,n),n=n.sibling}function h0(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:rt||to(n,t);case 6:var r=Ze,o=Ft;Ze=null,Rn(e,t,n),Ze=r,Ft=o,Ze!==null&&(Ft?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(Ft?(e=Ze,n=n.stateNode,e.nodeType===8?_s(e.parentNode,n):e.nodeType===1&&_s(e,n),_i(e)):_s(Ze,n.stateNode));break;case 4:r=Ze,o=Ft,Ze=n.stateNode.containerInfo,Ft=!0,Rn(e,t,n),Ze=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Kc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!rt&&(to(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,Rn(e,t,n),rt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function kh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new O3),t.forEach(function(r){var o=W3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j3(r/1960))-r,10e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,gl=0,ce&6)throw Error(j(331));var o=ce;for(ce|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sIe()-Tf?vr(e,0):$f|=n),gt(e,t)}function C0(e,t){t===0&&(e.mode&1?(t=la,la<<=1,!(la&130023424)&&(la=4194304)):t=1);var n=st();e=mn(e,t),e!==null&&(Ui(e,t,n),gt(e,n))}function V3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),C0(e,n)}function W3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),C0(e,n)}var E0;E0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vt.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,A3(e,t,n);pt=!!(e.flags&131072)}else pt=!1,_e&&t.flags&1048576&&$m(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=vo(t,ot.current);so(t,n),o=xf(null,t,r,e,o,n);var i=Cf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vf(t),o.updater=jl,t.stateNode=o,o._reactInternals=t,Fc(t,r,e,n),t=Uc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&sf(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Y3(r),e=jt(r,e),o){case 0:t=Bc(null,t,r,e,n);break e;case 1:t=_h(null,t,r,e,n);break e;case 11:t=Ch(null,t,r,e,n);break e;case 14:t=Eh(null,t,r,jt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Bc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),_h(e,t,r,o,n);case 3:e:{if(i0(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Am(e,t),fl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wo(Error(j(423)),t),t=Sh(e,t,r,n,o);break e}else if(r!==o){o=wo(Error(j(424)),t),t=Sh(e,t,r,n,o);break e}else for(xt=Bn(t.stateNode.containerInfo.firstChild),Ct=t,_e=!0,Bt=null,n=Pm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mo(),r===o){t=gn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return Lm(t),e===null&&Mc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nc(r,o)?a=null:i!==null&&Nc(r,i)&&(t.flags|=32),o0(e,t),at(e,t,a,n),t.child;case 6:return e===null&&Mc(t),null;case 13:return a0(e,t,n);case 4:return mf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Ch(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,pe(cl,r._currentValue),r._currentValue=a,i!==null)if(Kt(i.value,a)){if(i.children===o.children&&!vt.current){t=gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=dn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Dc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(j(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Dc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,so(t,n),o=Lt(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),Eh(e,t,r,o,n);case 15:return n0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),za(e,t),t.tag=1,mt(r)?(e=!0,al(t)):e=!1,so(t,n),qm(t,r,o),Fc(t,r,o,n),Uc(null,t,r,!0,e,n);case 19:return l0(e,t,n);case 22:return r0(e,t,n)}throw Error(j(156,t.tag))};function _0(e,t){return Zv(e,t)}function K3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,r){return new K3(e,t,n,r)}function Nf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y3(e){if(typeof e=="function")return Nf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===Zu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ha(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Nf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Kr:return mr(n.children,o,i,t);case Gu:a=8,o|=8;break;case cc:return e=Nt(12,n,t,o|2),e.elementType=cc,e.lanes=i,e;case uc:return e=Nt(13,n,t,o),e.elementType=uc,e.lanes=i,e;case fc:return e=Nt(19,n,t,o),e.elementType=fc,e.lanes=i,e;case Lv:return Bl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nv:a=10;break e;case Av:a=9;break e;case Qu:a=11;break e;case Zu:a=14;break e;case An:a=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Nt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function mr(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=Lv,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function As(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ds(0),this.expirationTimes=ds(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Af(e,t,n,r,o,i,a,l,s){return e=new G3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Nt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vf(i),e}function Q3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T0)}catch(e){console.error(e)}}T0(),Tv.exports=St;var Po=Tv.exports;const k0=Jn(Po),ew=Fu({__proto__:null,default:k0},[Po]);var R0,Mh=Po;Mh.createRoot,R0=Mh.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Rs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R3=typeof WeakMap=="function"?WeakMap:Map;function e0(e,t,n){n=hn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ml||(ml=!0,Zc=r),zc(e,t)},n}function t0(e,t,n){n=hn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){zc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){zc(e,t),typeof r!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function yh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new R3;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=H3.bind(null,e,t,n),t.then(e,e))}function wh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=hn(-1,1),t.tag=2,Hn(n,t,1))),n.lanes|=1),e)}var P3=En.ReactCurrentOwner,pt=!1;function at(e,t,n,r){t.child=e===null?Pm(t,null,n,r):go(t,e.child,n,r)}function Ch(e,t,n,r,o){n=n.render;var i=t.ref;return so(t,o),r=xf(e,t,n,r,i,o),n=Cf(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yn(e,t,o)):(_e&&n&&sf(t),t.flags|=1,at(e,t,r,o),t.child)}function Eh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Nf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,n0(e,t,i,r,o)):(e=Ha(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(a,r)&&e.ref===t.ref)return yn(e,t,o)}return t.flags|=1,e=Kn(i,r),e.ref=t.ref,e.return=t,t.child=e}function n0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(bi(i,r)&&e.ref===t.ref)if(pt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(pt=!0);else return t.lanes=e.lanes,yn(e,t,o)}return Bc(e,t,n,r,o)}function r0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(no,yt),yt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(no,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(no,yt),yt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(no,yt),yt|=r;return at(e,t,o,n),t.child}function o0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bc(e,t,n,r,o){var i=mt(n)?yr:ot.current;return i=vo(t,i),so(t,o),n=xf(e,t,n,r,i,o),r=Cf(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yn(e,t,o)):(_e&&r&&sf(t),t.flags|=1,at(e,t,n,o),t.child)}function _h(e,t,n,r,o){if(mt(n)){var i=!0;al(t)}else i=!1;if(so(t,o),t.stateNode===null)za(e,t),qm(t,n,r),Fc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Lt(u):(u=mt(n)?yr:ot.current,u=vo(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&gh(t,a,r,u),In=!1;var d=t.memoizedState;a.state=d,fl(t,r,a,o),s=t.memoizedState,l!==r||d!==s||vt.current||In?(typeof f=="function"&&(jc(t,n,f,r),s=t.memoizedState),(l=In||mh(t,n,l,r,d,s,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Am(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:jt(t.type,l),a.props=u,c=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Lt(s):(s=mt(n)?yr:ot.current,s=vo(t,s));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==c||d!==s)&&gh(t,a,r,s),In=!1,d=t.memoizedState,a.state=d,fl(t,r,a,o);var y=t.memoizedState;l!==c||d!==y||vt.current||In?(typeof h=="function"&&(jc(t,n,h,r),y=t.memoizedState),(u=In||mh(t,n,u,r,d,y,s)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Uc(e,t,n,r,i,o)}function Uc(e,t,n,r,o,i){o0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&sh(t,n,!1),yn(e,t,i);r=t.stateNode,P3.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=go(t,e.child,null,i),t.child=go(t,null,l,i)):at(e,t,l,i),t.memoizedState=r.state,o&&sh(t,n,!0),t.child}function i0(e){var t=e.stateNode;t.pendingContext?lh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lh(e,t.context,!1),mf(e,t.containerInfo)}function Sh(e,t,n,r,o){return mo(),uf(o),t.flags|=256,at(e,t,n,r),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0};function Vc(e){return{baseLanes:e,cachePool:null,transitions:null}}function a0(e,t,n){var r=t.pendingProps,o=Te.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),pe(Te,o&1),e===null)return Mc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Bl(a,r,0,null),e=mr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Vc(n),t.memoizedState=Hc,e):Sf(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return N3(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Kn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Kn(l,i):(i=mr(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Vc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Hc,r}return i=e.child,e=i.sibling,r=Kn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Sf(e,t){return t=Bl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function va(e,t,n,r){return r!==null&&uf(r),go(t,e.child,null,n),e=Sf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N3(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Rs(Error(j(422))),va(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bl({mode:"visible",children:r.children},o,0,null),i=mr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&go(t,e.child,null,a),t.child.memoizedState=Vc(a),t.memoizedState=Hc,i);if(!(t.mode&1))return va(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(j(419)),r=Rs(i,r,void 0),va(e,t,a,r)}if(l=(a&e.childLanes)!==0,pt||l){if(r=We,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,gn(e,o),Wt(r,e,o,-1))}return Pf(),r=Rs(Error(j(421))),va(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=V3.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xt=Un(o.nextSibling),Ct=t,_e=!0,Bt=null,e!==null&&(kt[Rt++]=fn,kt[Rt++]=dn,kt[Rt++]=wr,fn=e.id,dn=e.overflow,wr=t),t=Sf(t,r.children),t.flags|=4096,t)}function bh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dc(e.return,t,n)}function Ps(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function l0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(at(e,t,r.children,n),r=Te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bh(e,n,t);else if(e.tag===19)bh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pe(Te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ps(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ps(t,!0,n,null,i);break;case"together":Ps(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function za(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function A3(e,t,n){switch(t.tag){case 3:i0(t),mo();break;case 5:Lm(t);break;case 1:mt(t.type)&&al(t);break;case 4:mf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;pe(cl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?a0(e,t,n):(pe(Te,Te.current&1),e=yn(e,t,n),e!==null?e.sibling:null);pe(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return l0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),pe(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,r0(e,t,n)}return yn(e,t,n)}var s0,Wc,c0,u0;s0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Wc=function(){};c0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fr(rn.current);var i=null;switch(n){case"input":o=hc(e,o),r=hc(e,r),i=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),i=[];break;case"textarea":o=mc(e,o),r=mc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ol)}yc(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(yi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(yi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&ve("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};u0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Go(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function L3(e,t,n){var r=t.pendingProps;switch(cf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return mt(t.type)&&il(),nt(t),null;case 3:return r=t.stateNode,yo(),me(vt),me(ot),yf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ha(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(qc(Bt),Bt=null))),Wc(e,t),nt(t),null;case 5:gf(t);var o=fr(Pi.current);if(n=t.type,e!==null&&t.stateNode!=null)c0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return nt(t),null}if(e=fr(rn.current),ha(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qt]=t,r[ki]=i,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qt]=t,e[ki]=r,s0(e,t,!1,!1),t.stateNode=e;e:{switch(a=wc(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;oxo&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return nt(t),null}else 2*Ie()-i.renderingStartTime>xo&&n!==1073741824&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ie(),t.sibling=null,n=Te.current,pe(Te,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return Rf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function I3(e,t){switch(cf(t),t.tag){case 1:return mt(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),me(vt),me(ot),yf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gf(t),null;case 13:if(me(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Te),null;case 4:return yo(),null;case 10:return hf(t.type._context),null;case 22:case 23:return Rf(),null;case 24:return null;default:return null}}var ma=!1,rt=!1,O3=typeof WeakSet=="function"?WeakSet:Set,H=null;function to(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Kc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var $h=!1;function M3(e,t){if(Rc=tl,e=vm(),lf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(s=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(s=a),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={focusedElem:e,selectionRange:n},tl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,C=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:jt(t.type,v),C);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=$h,$h=!1,y}function pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Kc(t,n,i)}o=o.next}while(o!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function f0(e){var t=e.alternate;t!==null&&(e.alternate=null,f0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[ki],delete t[Lc],delete t[y3],delete t[w3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function d0(e){return e.tag===5||e.tag===3||e.tag===4}function Th(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ol));else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}var Ze=null,Ft=!1;function Pn(e,t,n){for(n=n.child;n!==null;)h0(e,t,n),n=n.sibling}function h0(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:rt||to(n,t);case 6:var r=Ze,o=Ft;Ze=null,Pn(e,t,n),Ze=r,Ft=o,Ze!==null&&(Ft?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(Ft?(e=Ze,n=n.stateNode,e.nodeType===8?_s(e.parentNode,n):e.nodeType===1&&_s(e,n),_i(e)):_s(Ze,n.stateNode));break;case 4:r=Ze,o=Ft,Ze=n.stateNode.containerInfo,Ft=!0,Pn(e,t,n),Ze=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Kc(n,t,a),o=o.next}while(o!==r)}Pn(e,t,n);break;case 1:if(!rt&&(to(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,Pn(e,t,n),rt=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function kh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new O3),t.forEach(function(r){var o=W3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j3(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,gl=0,ce&6)throw Error(j(331));var o=ce;for(ce|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sIe()-Tf?vr(e,0):$f|=n),gt(e,t)}function C0(e,t){t===0&&(e.mode&1?(t=la,la<<=1,!(la&130023424)&&(la=4194304)):t=1);var n=st();e=gn(e,t),e!==null&&(Ui(e,t,n),gt(e,n))}function V3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),C0(e,n)}function W3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),C0(e,n)}var E0;E0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vt.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,A3(e,t,n);pt=!!(e.flags&131072)}else pt=!1,_e&&t.flags&1048576&&$m(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=vo(t,ot.current);so(t,n),o=xf(null,t,r,e,o,n);var i=Cf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vf(t),o.updater=jl,t.stateNode=o,o._reactInternals=t,Fc(t,r,e,n),t=Uc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&sf(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Y3(r),e=jt(r,e),o){case 0:t=Bc(null,t,r,e,n);break e;case 1:t=_h(null,t,r,e,n);break e;case 11:t=Ch(null,t,r,e,n);break e;case 14:t=Eh(null,t,r,jt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Bc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),_h(e,t,r,o,n);case 3:e:{if(i0(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Am(e,t),fl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wo(Error(j(423)),t),t=Sh(e,t,r,n,o);break e}else if(r!==o){o=wo(Error(j(424)),t),t=Sh(e,t,r,n,o);break e}else for(xt=Un(t.stateNode.containerInfo.firstChild),Ct=t,_e=!0,Bt=null,n=Pm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mo(),r===o){t=yn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return Lm(t),e===null&&Mc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nc(r,o)?a=null:i!==null&&Nc(r,i)&&(t.flags|=32),o0(e,t),at(e,t,a,n),t.child;case 6:return e===null&&Mc(t),null;case 13:return a0(e,t,n);case 4:return mf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Ch(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,pe(cl,r._currentValue),r._currentValue=a,i!==null)if(Kt(i.value,a)){if(i.children===o.children&&!vt.current){t=yn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=hn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Dc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(j(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Dc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,so(t,n),o=Lt(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),Eh(e,t,r,o,n);case 15:return n0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),za(e,t),t.tag=1,mt(r)?(e=!0,al(t)):e=!1,so(t,n),qm(t,r,o),Fc(t,r,o,n),Uc(null,t,r,!0,e,n);case 19:return l0(e,t,n);case 22:return r0(e,t,n)}throw Error(j(156,t.tag))};function _0(e,t){return Zv(e,t)}function K3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,r){return new K3(e,t,n,r)}function Nf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y3(e){if(typeof e=="function")return Nf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===Zu)return 14}return 2}function Kn(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ha(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Nf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Kr:return mr(n.children,o,i,t);case Gu:a=8,o|=8;break;case cc:return e=Nt(12,n,t,o|2),e.elementType=cc,e.lanes=i,e;case uc:return e=Nt(13,n,t,o),e.elementType=uc,e.lanes=i,e;case fc:return e=Nt(19,n,t,o),e.elementType=fc,e.lanes=i,e;case Lv:return Bl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nv:a=10;break e;case Av:a=9;break e;case Qu:a=11;break e;case Zu:a=14;break e;case Ln:a=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Nt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function mr(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=Lv,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function As(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ds(0),this.expirationTimes=ds(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Af(e,t,n,r,o,i,a,l,s){return e=new G3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Nt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vf(i),e}function Q3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T0)}catch(e){console.error(e)}}T0(),Tv.exports=St;var Po=Tv.exports;const k0=Jn(Po),ew=Fu({__proto__:null,default:k0},[Po]);var R0,Mh=Po;Mh.createRoot,R0=Mh.hydrateRoot;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Co(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nw(){return Math.random().toString(36).substr(2,8)}function jh(e,t){return{usr:e.state,key:e.key,idx:t}}function Oi(e,t,n,r){return n===void 0&&(n=null),$e({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||nw()})}function _r(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=De.Pop,s=null,u=f();u==null&&(u=0,a.replaceState($e({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=De.Pop;let C=f(),m=C==null?null:C-u;u=C,s&&s({action:l,location:v.location,delta:m})}function d(C,m){l=De.Push;let g=Oi(v.location,C,m);u=f()+1;let w=jh(g,u),E=v.createHref(g);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function h(C,m){l=De.Replace;let g=Oi(v.location,C,m);u=f();let w=jh(g,u),E=v.createHref(g);a.replaceState(w,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function y(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:_r(C);return g=g.replace(/ $/,"%20"),ne(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Dh,c),s=C,()=>{o.removeEventListener(Dh,c),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let m=y(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(C){return a.go(C)}};return v}var Ee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ee||(Ee={}));const ow=new Set(["lazy","caseSensitive","path","id","index","children"]);function iw(e){return e.index===!0}function eu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(ne(o.index!==!0||!o.children,"Cannot specify children on an index route"),ne(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),iw(o)){let s=$e({},o,t(o),{id:l});return r[l]=s,s}else{let s=$e({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=eu(o.children,t,a,r)),s}})}function dr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,o=Tr(r.pathname||"/",n);if(o==null)return null;let i=N0(e);aw(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ne(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=hn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(ne(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),N0(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:hw(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of A0(i.path))o(i,a,s)}),t}function A0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=A0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function aw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lw=/^:[\w-]+$/,sw=3,cw=2,uw=1,fw=10,dw=-2,Fh=e=>e==="*";function hw(e,t){let n=e.split("/"),r=n.length;return n.some(Fh)&&(r+=dw),t&&(r+=cw),n.filter(o=>!Fh(o)).reduce((o,i)=>o+(lw.test(i)?sw:i===""?uw:fw),r)}function pw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function vw(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:h}=f;if(d==="*"){let v=l[c]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[c];return h&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function mw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Co(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function gw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Co(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Tr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function yw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:ww(n,t):t,search:Cw(r),hash:Ew(o)}}function ww(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ls(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function L0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mf(e,t){let n=L0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Df(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=nr(e):(o=$e({},e),ne(!o.pathname||!o.pathname.includes("?"),Ls("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),Ls("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),Ls("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;o.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=yw(o,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const hn=e=>e.join("/").replace(/\/\/+/g,"/"),xw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ew=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ff(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I0=["post","put","patch","delete"],_w=new Set(I0),Sw=["get",...I0],bw=new Set(Sw),$w=new Set([301,302,303,307,308]),Tw=new Set([307,308]),Is={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},zf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),O0="remix-router-transitions";function Pw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ne(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let T=e.detectErrorBoundary;o=P=>({hasErrorBoundary:T(P)})}else o=Rw;let i={},a=eu(e.routes,o,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||Iw,f=$e({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),c=null,d=new Set,h=null,y=null,v=null,C=e.hydrationData!=null,m=dr(a,e.history.location,s),g=null;if(m==null){let T=Tt(404,{pathname:e.history.location.pathname}),{matches:P,route:A}=Qh(a);m=P,g={[A.id]:T}}let w,E=m.some(T=>T.route.lazy),S=m.some(T=>T.route.loader);if(E)w=!1;else if(!S)w=!0;else if(f.v7_partialHydration){let T=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null,A=F=>F.route.loader?typeof F.route.loader=="function"&&F.route.loader.hydrate===!0?!1:T&&T[F.route.id]!==void 0||P&&P[F.route.id]!==void 0:!0;if(P){let F=m.findIndex(V=>P[V.route.id]!==void 0);w=m.slice(0,F+1).every(A)}else w=m.every(A)}else w=e.hydrationData!=null;let $,_={historyAction:e.history.action,location:e.history.location,matches:m,initialized:w,navigation:Is,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},b=De.Pop,k=!1,N,M=!1,D=new Map,I=null,R=!1,B=!1,G=[],z=[],L=new Map,U=0,K=-1,oe=new Map,ae=new Set,Fe=new Map,Me=new Map,ge=new Set,ye=new Map,Pe=new Map,de=!1;function Se(){if(c=e.history.listen(T=>{let{action:P,location:A,delta:F}=T;if(de){de=!1;return}Co(Pe.size===0||F!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=Sd({currentLocation:_.location,nextLocation:A,historyAction:P});if(V&&F!=null){de=!0,e.history.go(F*-1),Ji(V,{state:"blocked",location:A,proceed(){Ji(V,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go(F)},reset(){let ee=new Map(_.blockers);ee.set(V,Zo),Ne({blockers:ee})}});return}return Qt(P,A)}),n){Kw(t,D);let T=()=>Yw(t,D);t.addEventListener("pagehide",T),I=()=>t.removeEventListener("pagehide",T)}return _.initialized||Qt(De.Pop,_.location,{initialHydration:!0}),$}function Ot(){c&&c(),I&&I(),d.clear(),N&&N.abort(),_.fetchers.forEach((T,P)=>Xi(P)),_.blockers.forEach((T,P)=>_d(P))}function Mt(T){return d.add(T),()=>d.delete(T)}function Ne(T,P){P===void 0&&(P={}),_=$e({},_,T);let A=[],F=[];f.v7_fetcherPersist&&_.fetchers.forEach((V,ee)=>{V.state==="idle"&&(ge.has(ee)?F.push(ee):A.push(ee))}),[...d].forEach(V=>V(_,{deletedFetchers:F,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),f.v7_fetcherPersist&&(A.forEach(V=>_.fetchers.delete(V)),F.forEach(V=>Xi(V)))}function ir(T,P,A){var F,V;let{flushSync:ee}=A===void 0?{}:A,Q=_.actionData!=null&&_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((F=T.state)==null?void 0:F._isRedirect)!==!0,W;P.actionData?Object.keys(P.actionData).length>0?W=P.actionData:W=null:Q?W=_.actionData:W=null;let te=P.loaderData?Yh(_.loaderData,P.loaderData,P.matches||[],P.errors):_.loaderData,J=_.blockers;J.size>0&&(J=new Map(J),J.forEach((X,we)=>J.set(we,Zo)));let Ye=k===!0||_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&((V=T.state)==null?void 0:V._isRedirect)!==!0;l&&(a=l,l=void 0),R||b===De.Pop||(b===De.Push?e.history.push(T,T.state):b===De.Replace&&e.history.replace(T,T.state));let Ge;if(b===De.Pop){let X=D.get(_.location.pathname);X&&X.has(T.pathname)?Ge={currentLocation:_.location,nextLocation:T}:D.has(T.pathname)&&(Ge={currentLocation:T,nextLocation:_.location})}else if(M){let X=D.get(_.location.pathname);X?X.add(T.pathname):(X=new Set([T.pathname]),D.set(_.location.pathname,X)),Ge={currentLocation:_.location,nextLocation:T}}Ne($e({},P,{actionData:W,loaderData:te,historyAction:b,location:T,initialized:!0,navigation:Is,revalidation:"idle",restoreScrollPosition:$d(T,P.matches||_.matches),preventScrollReset:Ye,blockers:J}),{viewTransitionOpts:Ge,flushSync:ee===!0}),b=De.Pop,k=!1,M=!1,R=!1,B=!1,G=[],z=[]}async function Zi(T,P){if(typeof T=="number"){e.history.go(T);return}let A=tu(_.location,_.matches,s,f.v7_prependBasename,T,f.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:F,submission:V,error:ee}=zh(f.v7_normalizeFormMethod,!1,A,P),Q=_.location,W=Oi(_.location,F,P&&P.state);W=$e({},W,e.history.encodeLocation(W));let te=P&&P.replace!=null?P.replace:void 0,J=De.Push;te===!0?J=De.Replace:te===!1||V!=null&&zt(V.formMethod)&&V.formAction===_.location.pathname+_.location.search&&(J=De.Replace);let Ye=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Ge=(P&&P.unstable_flushSync)===!0,X=Sd({currentLocation:Q,nextLocation:W,historyAction:J});if(X){Ji(X,{state:"blocked",location:W,proceed(){Ji(X,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),Zi(T,P)},reset(){let we=new Map(_.blockers);we.set(X,Zo),Ne({blockers:we})}});return}return await Qt(J,W,{submission:V,pendingError:ee,preventScrollReset:Ye,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:Ge})}function ar(){if(is(),Ne({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Qt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Qt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function Qt(T,P,A){N&&N.abort(),N=null,b=T,R=(A&&A.startUninterruptedRevalidation)===!0,_y(_.location,_.matches),k=(A&&A.preventScrollReset)===!0,M=(A&&A.enableViewTransition)===!0;let F=l||a,V=A&&A.overrideNavigation,ee=dr(F,P,s),Q=(A&&A.flushSync)===!0;if(!ee){let X=Tt(404,{pathname:P.pathname}),{matches:we,route:He}=Qh(F);as(),ir(P,{matches:we,loaderData:{},errors:{[He.id]:X}},{flushSync:Q});return}if(_.initialized&&!B&&zw(_.location,P)&&!(A&&A.submission&&zt(A.submission.formMethod))){ir(P,{matches:ee},{flushSync:Q});return}N=new AbortController;let W=Fr(e.history,P,N.signal,A&&A.submission),te;if(A&&A.pendingError)te=[gi(ee).route.id,{type:Ee.error,error:A.pendingError}];else if(A&&A.submission&&zt(A.submission.formMethod)){let X=await ts(W,P,A.submission,ee,{replace:A.replace,flushSync:Q});if(X.shortCircuited)return;te=X.pendingActionResult,V=Os(P,A.submission),Q=!1,W=Fr(e.history,W.url,W.signal)}let{shortCircuited:J,loaderData:Ye,errors:Ge}=await ns(W,P,ee,V,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,Q,te);J||(N=null,ir(P,$e({matches:ee},Gh(te),{loaderData:Ye,errors:Ge})))}async function ts(T,P,A,F,V){V===void 0&&(V={}),is();let ee=Vw(P,A);Ne({navigation:ee},{flushSync:V.flushSync===!0});let Q,W=ru(F,P);if(!W.route.action&&!W.route.lazy)Q={type:Ee.error,error:Tt(405,{method:T.method,pathname:P.pathname,routeId:W.route.id})};else if(Q=(await jo("action",T,[W],F))[0],T.signal.aborted)return{shortCircuited:!0};if(pr(Q)){let te;return V&&V.replace!=null?te=V.replace:te=Vh(Q.response.headers.get("Location"),new URL(T.url),s)===_.location.pathname+_.location.search,await Do(T,Q,{submission:A,replace:te}),{shortCircuited:!0}}if(hr(Q))throw Tt(400,{type:"defer-action"});if(Pt(Q)){let te=gi(F,W.route.id);return(V&&V.replace)!==!0&&(b=De.Push),{pendingActionResult:[te.route.id,Q]}}return{pendingActionResult:[W.route.id,Q]}}async function ns(T,P,A,F,V,ee,Q,W,te,J){let Ye=F||Os(P,V),Ge=V||ee||Jh(Ye),X=l||a,[we,He]=Bh(e.history,_,A,Ge,P,f.v7_partialHydration&&W===!0,f.unstable_skipActionErrorRevalidation,B,G,z,ge,Fe,ae,X,s,J);if(as(se=>!(A&&A.some(it=>it.route.id===se))||we&&we.some(it=>it.route.id===se)),K=++U,we.length===0&&He.length===0){let se=Cd();return ir(P,$e({matches:A,loaderData:{},errors:J&&Pt(J[1])?{[J[0]]:J[1].error}:null},Gh(J),se?{fetchers:new Map(_.fetchers)}:{}),{flushSync:te}),{shortCircuited:!0}}if(!R&&(!f.v7_partialHydration||!W)){He.forEach(it=>{let $t=_.fetchers.get(it.key),Qe=Xo(void 0,$t?$t.data:void 0);_.fetchers.set(it.key,Qe)});let se;J&&!Pt(J[1])?se={[J[0]]:J[1].data}:_.actionData&&(Object.keys(_.actionData).length===0?se=null:se=_.actionData),Ne($e({navigation:Ye},se!==void 0?{actionData:se}:{},He.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:te})}He.forEach(se=>{L.has(se.key)&&Tn(se.key),se.controller&&L.set(se.key,se.controller)});let zo=()=>He.forEach(se=>Tn(se.key));N&&N.signal.addEventListener("abort",zo);let{loaderResults:kn,fetcherResults:Or}=await yd(_.matches,A,we,He,T);if(T.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",zo),He.forEach(se=>L.delete(se.key));let Mr=Zh([...kn,...Or]);if(Mr){if(Mr.idx>=we.length){let se=He[Mr.idx-we.length].key;ae.add(se)}return await Do(T,Mr.result,{replace:Q}),{shortCircuited:!0}}let{loaderData:Dr,errors:Zt}=Kh(_,A,we,kn,J,He,Or,ye);ye.forEach((se,it)=>{se.subscribe($t=>{($t||se.done)&&ye.delete(it)})}),f.v7_partialHydration&&W&&_.errors&&Object.entries(_.errors).filter(se=>{let[it]=se;return!we.some($t=>$t.route.id===it)}).forEach(se=>{let[it,$t]=se;Zt=Object.assign(Zt||{},{[it]:$t})});let qi=Cd(),ea=Ed(K),ta=qi||ea||He.length>0;return $e({loaderData:Dr,errors:Zt},ta?{fetchers:new Map(_.fetchers)}:{})}function rs(T,P,A,F){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(T)&&Tn(T);let V=(F&&F.unstable_flushSync)===!0,ee=l||a,Q=tu(_.location,_.matches,s,f.v7_prependBasename,A,f.v7_relativeSplatPath,P,F==null?void 0:F.relative),W=dr(ee,Q,s);if(!W){Fo(T,P,Tt(404,{pathname:Q}),{flushSync:V});return}let{path:te,submission:J,error:Ye}=zh(f.v7_normalizeFormMethod,!0,Q,F);if(Ye){Fo(T,P,Ye,{flushSync:V});return}let Ge=ru(W,te);if(k=(F&&F.preventScrollReset)===!0,J&&zt(J.formMethod)){os(T,P,te,Ge,W,V,J);return}Fe.set(T,{routeId:P,path:te}),Ir(T,P,te,Ge,W,V,J)}async function os(T,P,A,F,V,ee,Q){if(is(),Fe.delete(T),!F.route.action&&!F.route.lazy){let Qe=Tt(405,{method:Q.formMethod,pathname:A,routeId:P});Fo(T,P,Qe,{flushSync:ee});return}let W=_.fetchers.get(T);$n(T,Ww(Q,W),{flushSync:ee});let te=new AbortController,J=Fr(e.history,A,te.signal,Q);L.set(T,te);let Ye=U,X=(await jo("action",J,[F],V))[0];if(J.signal.aborted){L.get(T)===te&&L.delete(T);return}if(f.v7_fetcherPersist&&ge.has(T)){if(pr(X)||Pt(X)){$n(T,Pn(void 0));return}}else{if(pr(X))if(L.delete(T),K>Ye){$n(T,Pn(void 0));return}else return ae.add(T),$n(T,Xo(Q)),Do(J,X,{fetcherSubmission:Q});if(Pt(X)){Fo(T,P,X.error);return}}if(hr(X))throw Tt(400,{type:"defer-action"});let we=_.navigation.location||_.location,He=Fr(e.history,we,te.signal),zo=l||a,kn=_.navigation.state!=="idle"?dr(zo,_.navigation.location,s):_.matches;ne(kn,"Didn't find any matches after fetcher action");let Or=++U;oe.set(T,Or);let Mr=Xo(Q,X.data);_.fetchers.set(T,Mr);let[Dr,Zt]=Bh(e.history,_,kn,Q,we,!1,f.unstable_skipActionErrorRevalidation,B,G,z,ge,Fe,ae,zo,s,[F.route.id,X]);Zt.filter(Qe=>Qe.key!==T).forEach(Qe=>{let Bo=Qe.key,Td=_.fetchers.get(Bo),by=Xo(void 0,Td?Td.data:void 0);_.fetchers.set(Bo,by),L.has(Bo)&&Tn(Bo),Qe.controller&&L.set(Bo,Qe.controller)}),Ne({fetchers:new Map(_.fetchers)});let qi=()=>Zt.forEach(Qe=>Tn(Qe.key));te.signal.addEventListener("abort",qi);let{loaderResults:ea,fetcherResults:ta}=await yd(_.matches,kn,Dr,Zt,He);if(te.signal.aborted)return;te.signal.removeEventListener("abort",qi),oe.delete(T),L.delete(T),Zt.forEach(Qe=>L.delete(Qe.key));let se=Zh([...ea,...ta]);if(se){if(se.idx>=Dr.length){let Qe=Zt[se.idx-Dr.length].key;ae.add(Qe)}return Do(He,se.result)}let{loaderData:it,errors:$t}=Kh(_,_.matches,Dr,ea,void 0,Zt,ta,ye);if(_.fetchers.has(T)){let Qe=Pn(X.data);_.fetchers.set(T,Qe)}Ed(Or),_.navigation.state==="loading"&&Or>K?(ne(b,"Expected pending action"),N&&N.abort(),ir(_.navigation.location,{matches:kn,loaderData:it,errors:$t,fetchers:new Map(_.fetchers)})):(Ne({errors:$t,loaderData:Yh(_.loaderData,it,kn,$t),fetchers:new Map(_.fetchers)}),B=!1)}async function Ir(T,P,A,F,V,ee,Q){let W=_.fetchers.get(T);$n(T,Xo(Q,W?W.data:void 0),{flushSync:ee});let te=new AbortController,J=Fr(e.history,A,te.signal);L.set(T,te);let Ye=U,X=(await jo("loader",J,[F],V))[0];if(hr(X)&&(X=await F0(X,J.signal,!0)||X),L.get(T)===te&&L.delete(T),!J.signal.aborted){if(ge.has(T)){$n(T,Pn(void 0));return}if(pr(X))if(K>Ye){$n(T,Pn(void 0));return}else{ae.add(T),await Do(J,X);return}if(Pt(X)){Fo(T,P,X.error);return}ne(!hr(X),"Unhandled fetcher deferred data"),$n(T,Pn(X.data))}}async function Do(T,P,A){let{submission:F,fetcherSubmission:V,replace:ee}=A===void 0?{}:A;P.response.headers.has("X-Remix-Revalidate")&&(B=!0);let Q=P.response.headers.get("Location");ne(Q,"Expected a Location header on the redirect Response"),Q=Vh(Q,new URL(T.url),s);let W=Oi(_.location,Q,{_isRedirect:!0});if(n){let we=!1;if(P.response.headers.has("X-Remix-Reload-Document"))we=!0;else if(zf.test(Q)){const He=e.history.createURL(Q);we=He.origin!==t.location.origin||Tr(He.pathname,s)==null}if(we){ee?t.location.replace(Q):t.location.assign(Q);return}}N=null;let te=ee===!0?De.Replace:De.Push,{formMethod:J,formAction:Ye,formEncType:Ge}=_.navigation;!F&&!V&&J&&Ye&&Ge&&(F=Jh(_.navigation));let X=F||V;if(Tw.has(P.response.status)&&X&&zt(X.formMethod))await Qt(te,W,{submission:$e({},X,{formAction:Q}),preventScrollReset:k});else{let we=Os(W,F);await Qt(te,W,{overrideNavigation:we,fetcherSubmission:V,preventScrollReset:k})}}async function jo(T,P,A,F){try{let V=await Ow(u,T,P,A,F,i,o);return await Promise.all(V.map((ee,Q)=>{if(Bw(ee)){let W=ee.result;return{type:Ee.redirect,response:jw(W,P,A[Q].route.id,F,s,f.v7_relativeSplatPath)}}return Dw(ee)}))}catch(V){return A.map(()=>({type:Ee.error,error:V}))}}async function yd(T,P,A,F,V){let[ee,...Q]=await Promise.all([A.length?jo("loader",V,A,P):[],...F.map(W=>{if(W.matches&&W.match&&W.controller){let te=Fr(e.history,W.path,W.controller.signal);return jo("loader",te,[W.match],W.matches).then(J=>J[0])}else return Promise.resolve({type:Ee.error,error:Tt(404,{pathname:W.path})})})]);return await Promise.all([Xh(T,A,ee,ee.map(()=>V.signal),!1,_.loaderData),Xh(T,F.map(W=>W.match),Q,F.map(W=>W.controller?W.controller.signal:null),!0)]),{loaderResults:ee,fetcherResults:Q}}function is(){B=!0,G.push(...as()),Fe.forEach((T,P)=>{L.has(P)&&(z.push(P),Tn(P))})}function $n(T,P,A){A===void 0&&(A={}),_.fetchers.set(T,P),Ne({fetchers:new Map(_.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Fo(T,P,A,F){F===void 0&&(F={});let V=gi(_.matches,P);Xi(T),Ne({errors:{[V.route.id]:A},fetchers:new Map(_.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function wd(T){return f.v7_fetcherPersist&&(Me.set(T,(Me.get(T)||0)+1),ge.has(T)&&ge.delete(T)),_.fetchers.get(T)||kw}function Xi(T){let P=_.fetchers.get(T);L.has(T)&&!(P&&P.state==="loading"&&oe.has(T))&&Tn(T),Fe.delete(T),oe.delete(T),ae.delete(T),ge.delete(T),_.fetchers.delete(T)}function xy(T){if(f.v7_fetcherPersist){let P=(Me.get(T)||0)-1;P<=0?(Me.delete(T),ge.add(T)):Me.set(T,P)}else Xi(T);Ne({fetchers:new Map(_.fetchers)})}function Tn(T){let P=L.get(T);ne(P,"Expected fetch controller: "+T),P.abort(),L.delete(T)}function xd(T){for(let P of T){let A=wd(P),F=Pn(A.data);_.fetchers.set(P,F)}}function Cd(){let T=[],P=!1;for(let A of ae){let F=_.fetchers.get(A);ne(F,"Expected fetcher: "+A),F.state==="loading"&&(ae.delete(A),T.push(A),P=!0)}return xd(T),P}function Ed(T){let P=[];for(let[A,F]of oe)if(F0}function Cy(T,P){let A=_.blockers.get(T)||Zo;return Pe.get(T)!==P&&Pe.set(T,P),A}function _d(T){_.blockers.delete(T),Pe.delete(T)}function Ji(T,P){let A=_.blockers.get(T)||Zo;ne(A.state==="unblocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="proceeding"||A.state==="blocked"&&P.state==="unblocked"||A.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+P.state);let F=new Map(_.blockers);F.set(T,P),Ne({blockers:F})}function Sd(T){let{currentLocation:P,nextLocation:A,historyAction:F}=T;if(Pe.size===0)return;Pe.size>1&&Co(!1,"A router only supports one blocker at a time");let V=Array.from(Pe.entries()),[ee,Q]=V[V.length-1],W=_.blockers.get(ee);if(!(W&&W.state==="proceeding")&&Q({currentLocation:P,nextLocation:A,historyAction:F}))return ee}function as(T){let P=[];return ye.forEach((A,F)=>{(!T||T(F))&&(A.cancel(),P.push(F),ye.delete(F))}),P}function Ey(T,P,A){if(h=T,v=P,y=A||null,!C&&_.navigation===Is){C=!0;let F=$d(_.location,_.matches);F!=null&&Ne({restoreScrollPosition:F})}return()=>{h=null,v=null,y=null}}function bd(T,P){return y&&y(T,P.map(F=>P0(F,_.loaderData)))||T.key}function _y(T,P){if(h&&v){let A=bd(T,P);h[A]=v()}}function $d(T,P){if(h){let A=bd(T,P),F=h[A];if(typeof F=="number")return F}return null}function Sy(T){i={},l=eu(T,o,void 0,i)}return $={get basename(){return s},get future(){return f},get state(){return _},get routes(){return a},get window(){return t},initialize:Se,subscribe:Mt,enableScrollRestoration:Ey,navigate:Zi,fetch:rs,revalidate:ar,createHref:T=>e.history.createHref(T),encodeLocation:T=>e.history.encodeLocation(T),getFetcher:wd,deleteFetcher:xy,dispose:Ot,getBlocker:Cy,deleteBlocker:_d,_internalFetchControllers:L,_internalActiveDeferreds:ye,_internalSetRoutes:Sy},$}function Nw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tu(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){u=c;break}}else s=t,u=t[t.length-1];let f=Df(o||".",Mf(s,i),Tr(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Bf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:hn([n,f.pathname])),_r(f)}function zh(e,t,n,r){if(!r||!Nw(r))return{path:n};if(r.formMethod&&!Hw(r.formMethod))return{path:n,error:Tt(405,{method:r.formMethod})};let o=()=>({path:n,error:Tt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=D0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,y)=>{let[v,C]=y;return""+h+v+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!zt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}ne(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=nu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=nu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Wh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Wh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(zt(f.formMethod))return{path:n,submission:f};let c=nr(n);return t&&c.search&&Bf(c.search)&&s.append("index",""),c.search="?"+s,{path:_r(c),submission:f}}function Aw(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Bh(e,t,n,r,o,i,a,l,s,u,f,c,d,h,y,v){let C=v?Pt(v[1])?v[1].error:v[1].data:void 0,m=e.createURL(t.location),g=e.createURL(o),w=v&&Pt(v[1])?v[0]:void 0,E=w?Aw(n,w):n,S=v?v[1].statusCode:void 0,$=a&&S&&S>=400,_=E.filter((k,N)=>{let{route:M}=k;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return typeof M.loader!="function"||M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(Lw(t.loaderData,t.matches[N],k)||s.some(R=>R===k.route.id))return!0;let D=t.matches[N],I=k;return Uh(k,$e({currentUrl:m,currentParams:D.params,nextUrl:g,nextParams:I.params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||M0(D,I)}))}),b=[];return c.forEach((k,N)=>{if(i||!n.some(B=>B.route.id===k.routeId)||f.has(N))return;let M=dr(h,k.path,y);if(!M){b.push({key:N,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(N),I=ru(M,k.path),R=!1;d.has(N)?R=!1:u.includes(N)?R=!0:D&&D.state!=="idle"&&D.data===void 0?R=l:R=Uh(I,$e({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l})),R&&b.push({key:N,routeId:k.routeId,path:k.path,matches:M,match:I,controller:new AbortController})}),[_,b]}function Lw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function M0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Uh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Hh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ne(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Co(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!ow.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,$e({},t(o),{lazy:void 0}))}function Iw(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Ow(e,t,n,r,o,i,a,l){let s=r.reduce((c,d)=>c.add(d.route.id),new Set),u=new Set,f=await e({matches:o.map(c=>{let d=s.has(c.route.id);return $e({},c,{shouldLoad:d,resolve:y=>(u.add(c.route.id),d?Mw(t,n,c,i,a,y,l):Promise.resolve({type:Ee.data,result:void 0}))})}),request:n,params:o[0].params,context:l});return o.forEach(c=>ne(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((c,d)=>s.has(o[d].route.id))}async function Mw(e,t,n,r,o,i,a){let l,s,u=f=>{let c,d=new Promise((v,C)=>c=C);s=()=>c(),t.signal.addEventListener("abort",s);let h=v=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):f({request:t,params:n.params,context:a},...v!==void 0?[v]:[]),y;return i?y=i(v=>h(v)):y=(async()=>{try{return{type:"data",result:await h()}}catch(v){return{type:"error",result:v}}})(),Promise.race([y,d])};try{let f=n.route[e];if(n.route.lazy)if(f){let c,[d]=await Promise.all([u(f).catch(h=>{c=h}),Hh(n.route,o,r)]);if(c!==void 0)throw c;l=d}else if(await Hh(n.route,o,r),f=n.route[e],f)l=await u(f);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw Tt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Ee.data,result:void 0};else if(f)l=await u(f);else{let c=new URL(t.url),d=c.pathname+c.search;throw Tt(404,{pathname:d})}ne(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:Ee.error,result:f}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function Dw(e){let{result:t,type:n,status:r}=e;if(j0(t)){let a;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(l){return{type:Ee.error,error:l}}return n===Ee.error?{type:Ee.error,error:new jf(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Ee.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Ee.error)return{type:Ee.error,error:t,statusCode:Ff(t)?t.status:r};if(Uw(t)){var o,i;return{type:Ee.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Ee.data,data:t,statusCode:r}}function jw(e,t,n,r,o,i){let a=e.headers.get("Location");if(ne(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!zf.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=tu(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Vh(e,t,n){if(zf.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Tr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Fr(e,t,n,r){let o=e.createURL(D0(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=nu(r.formData):i.body=r.formData}return new Request(o,i)}function nu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Wh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Fw(e,t,n,r,o,i){let a={},l=null,s,u=!1,f={},c=r&&Pt(r[1])?r[1].error:void 0;return n.forEach((d,h)=>{let y=t[h].route.id;if(ne(!pr(d),"Cannot handle redirect results in processLoaderData"),Pt(d)){let v=d.error;c!==void 0&&(v=c,c=void 0),l=l||{};{let C=gi(e,y);l[C.route.id]==null&&(l[C.route.id]=v)}a[y]=void 0,u||(u=!0,s=Ff(d.error)?d.error.status:500),d.headers&&(f[y]=d.headers)}else hr(d)?(o.set(y,d.deferredData),a[y]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[y]=d.headers)):(a[y]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[y]=d.headers))}),c!==void 0&&r&&(l={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:l,statusCode:s||200,loaderHeaders:f}}function Kh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Fw(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Qh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new jf(e||500,a,new Error(l),!0)}function Zh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pr(n))return{result:n,idx:t}}}function D0(e){let t=typeof e=="string"?nr(e):e;return _r($e({},t,{hash:""}))}function zw(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bw(e){return j0(e.result)&&$w.has(e.result.status)}function hr(e){return e.type===Ee.deferred}function Pt(e){return e.type===Ee.error}function pr(e){return(e&&e.type)===Ee.redirect}function Uw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function j0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Hw(e){return bw.has(e.toLowerCase())}function zt(e){return _w.has(e.toLowerCase())}async function Xh(e,t,n,r,o,i){for(let a=0;ac.route.id===s.route.id),f=u!=null&&!M0(u,s)&&(i&&i[s.route.id])!==void 0;if(hr(l)&&(o||f)){let c=r[a];ne(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await F0(l,c,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function F0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ee.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ee.error,error:o}}return{type:Ee.data,data:e.deferredData.data}}}function Bf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ru(e,t){let n=typeof t=="string"?nr(t).search:t.search;if(e[e.length-1].route.index&&Bf(n||""))return e[e.length-1];let r=L0(e);return r[r.length-1]}function Jh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Os(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Xo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ww(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Pn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Kw(e,t){try{let n=e.sessionStorage.getItem(O0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Yw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(O0,JSON.stringify(n))}catch(r){Co(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Co(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nw(){return Math.random().toString(36).substr(2,8)}function jh(e,t){return{usr:e.state,key:e.key,idx:t}}function Oi(e,t,n,r){return n===void 0&&(n=null),$e({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||nw()})}function _r(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=De.Pop,s=null,u=f();u==null&&(u=0,a.replaceState($e({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=De.Pop;let C=f(),m=C==null?null:C-u;u=C,s&&s({action:l,location:v.location,delta:m})}function d(C,m){l=De.Push;let g=Oi(v.location,C,m);u=f()+1;let w=jh(g,u),E=v.createHref(g);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function h(C,m){l=De.Replace;let g=Oi(v.location,C,m);u=f();let w=jh(g,u),E=v.createHref(g);a.replaceState(w,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function y(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:_r(C);return g=g.replace(/ $/,"%20"),ne(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Dh,c),s=C,()=>{o.removeEventListener(Dh,c),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let m=y(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(C){return a.go(C)}};return v}var Ee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ee||(Ee={}));const ow=new Set(["lazy","caseSensitive","path","id","index","children"]);function iw(e){return e.index===!0}function eu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(ne(o.index!==!0||!o.children,"Cannot specify children on an index route"),ne(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),iw(o)){let s=$e({},o,t(o),{id:l});return r[l]=s,s}else{let s=$e({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=eu(o.children,t,a,r)),s}})}function dr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,o=Tr(r.pathname||"/",n);if(o==null)return null;let i=N0(e);aw(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ne(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=pn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(ne(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),N0(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:hw(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of A0(i.path))o(i,a,s)}),t}function A0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=A0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function aw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lw=/^:[\w-]+$/,sw=3,cw=2,uw=1,fw=10,dw=-2,Fh=e=>e==="*";function hw(e,t){let n=e.split("/"),r=n.length;return n.some(Fh)&&(r+=dw),t&&(r+=cw),n.filter(o=>!Fh(o)).reduce((o,i)=>o+(lw.test(i)?sw:i===""?uw:fw),r)}function pw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function vw(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:h}=f;if(d==="*"){let v=l[c]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[c];return h&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function mw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Co(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function gw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Co(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Tr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function yw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:ww(n,t):t,search:Cw(r),hash:Ew(o)}}function ww(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ls(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function L0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mf(e,t){let n=L0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Df(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=nr(e):(o=$e({},e),ne(!o.pathname||!o.pathname.includes("?"),Ls("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),Ls("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),Ls("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;o.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=yw(o,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const pn=e=>e.join("/").replace(/\/\/+/g,"/"),xw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ew=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ff(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I0=["post","put","patch","delete"],_w=new Set(I0),Sw=["get",...I0],bw=new Set(Sw),$w=new Set([301,302,303,307,308]),Tw=new Set([307,308]),Is={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},zf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),O0="remix-router-transitions";function Pw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ne(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let T=e.detectErrorBoundary;o=P=>({hasErrorBoundary:T(P)})}else o=Rw;let i={},a=eu(e.routes,o,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||Iw,f=$e({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),c=null,d=new Set,h=null,y=null,v=null,C=e.hydrationData!=null,m=dr(a,e.history.location,s),g=null;if(m==null){let T=Tt(404,{pathname:e.history.location.pathname}),{matches:P,route:A}=Qh(a);m=P,g={[A.id]:T}}let w,E=m.some(T=>T.route.lazy),S=m.some(T=>T.route.loader);if(E)w=!1;else if(!S)w=!0;else if(f.v7_partialHydration){let T=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null,A=F=>F.route.loader?typeof F.route.loader=="function"&&F.route.loader.hydrate===!0?!1:T&&T[F.route.id]!==void 0||P&&P[F.route.id]!==void 0:!0;if(P){let F=m.findIndex(V=>P[V.route.id]!==void 0);w=m.slice(0,F+1).every(A)}else w=m.every(A)}else w=e.hydrationData!=null;let $,_={historyAction:e.history.action,location:e.history.location,matches:m,initialized:w,navigation:Is,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},b=De.Pop,k=!1,N,O=!1,D=new Map,I=null,R=!1,B=!1,G=[],z=[],L=new Map,U=0,K=-1,oe=new Map,ae=new Set,Fe=new Map,Me=new Map,ge=new Set,ye=new Map,Pe=new Map,de=!1;function Se(){if(c=e.history.listen(T=>{let{action:P,location:A,delta:F}=T;if(de){de=!1;return}Co(Pe.size===0||F!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=Sd({currentLocation:_.location,nextLocation:A,historyAction:P});if(V&&F!=null){de=!0,e.history.go(F*-1),Ji(V,{state:"blocked",location:A,proceed(){Ji(V,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go(F)},reset(){let ee=new Map(_.blockers);ee.set(V,Zo),Ne({blockers:ee})}});return}return Qt(P,A)}),n){Kw(t,D);let T=()=>Yw(t,D);t.addEventListener("pagehide",T),I=()=>t.removeEventListener("pagehide",T)}return _.initialized||Qt(De.Pop,_.location,{initialHydration:!0}),$}function Ot(){c&&c(),I&&I(),d.clear(),N&&N.abort(),_.fetchers.forEach((T,P)=>Xi(P)),_.blockers.forEach((T,P)=>_d(P))}function Mt(T){return d.add(T),()=>d.delete(T)}function Ne(T,P){P===void 0&&(P={}),_=$e({},_,T);let A=[],F=[];f.v7_fetcherPersist&&_.fetchers.forEach((V,ee)=>{V.state==="idle"&&(ge.has(ee)?F.push(ee):A.push(ee))}),[...d].forEach(V=>V(_,{deletedFetchers:F,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),f.v7_fetcherPersist&&(A.forEach(V=>_.fetchers.delete(V)),F.forEach(V=>Xi(V)))}function ir(T,P,A){var F,V;let{flushSync:ee}=A===void 0?{}:A,Q=_.actionData!=null&&_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((F=T.state)==null?void 0:F._isRedirect)!==!0,W;P.actionData?Object.keys(P.actionData).length>0?W=P.actionData:W=null:Q?W=_.actionData:W=null;let te=P.loaderData?Yh(_.loaderData,P.loaderData,P.matches||[],P.errors):_.loaderData,J=_.blockers;J.size>0&&(J=new Map(J),J.forEach((X,we)=>J.set(we,Zo)));let Ye=k===!0||_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&((V=T.state)==null?void 0:V._isRedirect)!==!0;l&&(a=l,l=void 0),R||b===De.Pop||(b===De.Push?e.history.push(T,T.state):b===De.Replace&&e.history.replace(T,T.state));let Ge;if(b===De.Pop){let X=D.get(_.location.pathname);X&&X.has(T.pathname)?Ge={currentLocation:_.location,nextLocation:T}:D.has(T.pathname)&&(Ge={currentLocation:T,nextLocation:_.location})}else if(O){let X=D.get(_.location.pathname);X?X.add(T.pathname):(X=new Set([T.pathname]),D.set(_.location.pathname,X)),Ge={currentLocation:_.location,nextLocation:T}}Ne($e({},P,{actionData:W,loaderData:te,historyAction:b,location:T,initialized:!0,navigation:Is,revalidation:"idle",restoreScrollPosition:$d(T,P.matches||_.matches),preventScrollReset:Ye,blockers:J}),{viewTransitionOpts:Ge,flushSync:ee===!0}),b=De.Pop,k=!1,O=!1,R=!1,B=!1,G=[],z=[]}async function Zi(T,P){if(typeof T=="number"){e.history.go(T);return}let A=tu(_.location,_.matches,s,f.v7_prependBasename,T,f.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:F,submission:V,error:ee}=zh(f.v7_normalizeFormMethod,!1,A,P),Q=_.location,W=Oi(_.location,F,P&&P.state);W=$e({},W,e.history.encodeLocation(W));let te=P&&P.replace!=null?P.replace:void 0,J=De.Push;te===!0?J=De.Replace:te===!1||V!=null&&zt(V.formMethod)&&V.formAction===_.location.pathname+_.location.search&&(J=De.Replace);let Ye=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Ge=(P&&P.unstable_flushSync)===!0,X=Sd({currentLocation:Q,nextLocation:W,historyAction:J});if(X){Ji(X,{state:"blocked",location:W,proceed(){Ji(X,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),Zi(T,P)},reset(){let we=new Map(_.blockers);we.set(X,Zo),Ne({blockers:we})}});return}return await Qt(J,W,{submission:V,pendingError:ee,preventScrollReset:Ye,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:Ge})}function ar(){if(is(),Ne({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Qt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Qt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function Qt(T,P,A){N&&N.abort(),N=null,b=T,R=(A&&A.startUninterruptedRevalidation)===!0,_y(_.location,_.matches),k=(A&&A.preventScrollReset)===!0,O=(A&&A.enableViewTransition)===!0;let F=l||a,V=A&&A.overrideNavigation,ee=dr(F,P,s),Q=(A&&A.flushSync)===!0;if(!ee){let X=Tt(404,{pathname:P.pathname}),{matches:we,route:He}=Qh(F);as(),ir(P,{matches:we,loaderData:{},errors:{[He.id]:X}},{flushSync:Q});return}if(_.initialized&&!B&&zw(_.location,P)&&!(A&&A.submission&&zt(A.submission.formMethod))){ir(P,{matches:ee},{flushSync:Q});return}N=new AbortController;let W=Fr(e.history,P,N.signal,A&&A.submission),te;if(A&&A.pendingError)te=[gi(ee).route.id,{type:Ee.error,error:A.pendingError}];else if(A&&A.submission&&zt(A.submission.formMethod)){let X=await ts(W,P,A.submission,ee,{replace:A.replace,flushSync:Q});if(X.shortCircuited)return;te=X.pendingActionResult,V=Os(P,A.submission),Q=!1,W=Fr(e.history,W.url,W.signal)}let{shortCircuited:J,loaderData:Ye,errors:Ge}=await ns(W,P,ee,V,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,Q,te);J||(N=null,ir(P,$e({matches:ee},Gh(te),{loaderData:Ye,errors:Ge})))}async function ts(T,P,A,F,V){V===void 0&&(V={}),is();let ee=Vw(P,A);Ne({navigation:ee},{flushSync:V.flushSync===!0});let Q,W=ru(F,P);if(!W.route.action&&!W.route.lazy)Q={type:Ee.error,error:Tt(405,{method:T.method,pathname:P.pathname,routeId:W.route.id})};else if(Q=(await jo("action",T,[W],F))[0],T.signal.aborted)return{shortCircuited:!0};if(pr(Q)){let te;return V&&V.replace!=null?te=V.replace:te=Vh(Q.response.headers.get("Location"),new URL(T.url),s)===_.location.pathname+_.location.search,await Do(T,Q,{submission:A,replace:te}),{shortCircuited:!0}}if(hr(Q))throw Tt(400,{type:"defer-action"});if(Pt(Q)){let te=gi(F,W.route.id);return(V&&V.replace)!==!0&&(b=De.Push),{pendingActionResult:[te.route.id,Q]}}return{pendingActionResult:[W.route.id,Q]}}async function ns(T,P,A,F,V,ee,Q,W,te,J){let Ye=F||Os(P,V),Ge=V||ee||Jh(Ye),X=l||a,[we,He]=Bh(e.history,_,A,Ge,P,f.v7_partialHydration&&W===!0,f.unstable_skipActionErrorRevalidation,B,G,z,ge,Fe,ae,X,s,J);if(as(se=>!(A&&A.some(it=>it.route.id===se))||we&&we.some(it=>it.route.id===se)),K=++U,we.length===0&&He.length===0){let se=Cd();return ir(P,$e({matches:A,loaderData:{},errors:J&&Pt(J[1])?{[J[0]]:J[1].error}:null},Gh(J),se?{fetchers:new Map(_.fetchers)}:{}),{flushSync:te}),{shortCircuited:!0}}if(!R&&(!f.v7_partialHydration||!W)){He.forEach(it=>{let $t=_.fetchers.get(it.key),Qe=Xo(void 0,$t?$t.data:void 0);_.fetchers.set(it.key,Qe)});let se;J&&!Pt(J[1])?se={[J[0]]:J[1].data}:_.actionData&&(Object.keys(_.actionData).length===0?se=null:se=_.actionData),Ne($e({navigation:Ye},se!==void 0?{actionData:se}:{},He.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:te})}He.forEach(se=>{L.has(se.key)&&kn(se.key),se.controller&&L.set(se.key,se.controller)});let zo=()=>He.forEach(se=>kn(se.key));N&&N.signal.addEventListener("abort",zo);let{loaderResults:Rn,fetcherResults:Or}=await yd(_.matches,A,we,He,T);if(T.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",zo),He.forEach(se=>L.delete(se.key));let Mr=Zh([...Rn,...Or]);if(Mr){if(Mr.idx>=we.length){let se=He[Mr.idx-we.length].key;ae.add(se)}return await Do(T,Mr.result,{replace:Q}),{shortCircuited:!0}}let{loaderData:Dr,errors:Zt}=Kh(_,A,we,Rn,J,He,Or,ye);ye.forEach((se,it)=>{se.subscribe($t=>{($t||se.done)&&ye.delete(it)})}),f.v7_partialHydration&&W&&_.errors&&Object.entries(_.errors).filter(se=>{let[it]=se;return!we.some($t=>$t.route.id===it)}).forEach(se=>{let[it,$t]=se;Zt=Object.assign(Zt||{},{[it]:$t})});let qi=Cd(),ea=Ed(K),ta=qi||ea||He.length>0;return $e({loaderData:Dr,errors:Zt},ta?{fetchers:new Map(_.fetchers)}:{})}function rs(T,P,A,F){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(T)&&kn(T);let V=(F&&F.unstable_flushSync)===!0,ee=l||a,Q=tu(_.location,_.matches,s,f.v7_prependBasename,A,f.v7_relativeSplatPath,P,F==null?void 0:F.relative),W=dr(ee,Q,s);if(!W){Fo(T,P,Tt(404,{pathname:Q}),{flushSync:V});return}let{path:te,submission:J,error:Ye}=zh(f.v7_normalizeFormMethod,!0,Q,F);if(Ye){Fo(T,P,Ye,{flushSync:V});return}let Ge=ru(W,te);if(k=(F&&F.preventScrollReset)===!0,J&&zt(J.formMethod)){os(T,P,te,Ge,W,V,J);return}Fe.set(T,{routeId:P,path:te}),Ir(T,P,te,Ge,W,V,J)}async function os(T,P,A,F,V,ee,Q){if(is(),Fe.delete(T),!F.route.action&&!F.route.lazy){let Qe=Tt(405,{method:Q.formMethod,pathname:A,routeId:P});Fo(T,P,Qe,{flushSync:ee});return}let W=_.fetchers.get(T);Tn(T,Ww(Q,W),{flushSync:ee});let te=new AbortController,J=Fr(e.history,A,te.signal,Q);L.set(T,te);let Ye=U,X=(await jo("action",J,[F],V))[0];if(J.signal.aborted){L.get(T)===te&&L.delete(T);return}if(f.v7_fetcherPersist&&ge.has(T)){if(pr(X)||Pt(X)){Tn(T,Nn(void 0));return}}else{if(pr(X))if(L.delete(T),K>Ye){Tn(T,Nn(void 0));return}else return ae.add(T),Tn(T,Xo(Q)),Do(J,X,{fetcherSubmission:Q});if(Pt(X)){Fo(T,P,X.error);return}}if(hr(X))throw Tt(400,{type:"defer-action"});let we=_.navigation.location||_.location,He=Fr(e.history,we,te.signal),zo=l||a,Rn=_.navigation.state!=="idle"?dr(zo,_.navigation.location,s):_.matches;ne(Rn,"Didn't find any matches after fetcher action");let Or=++U;oe.set(T,Or);let Mr=Xo(Q,X.data);_.fetchers.set(T,Mr);let[Dr,Zt]=Bh(e.history,_,Rn,Q,we,!1,f.unstable_skipActionErrorRevalidation,B,G,z,ge,Fe,ae,zo,s,[F.route.id,X]);Zt.filter(Qe=>Qe.key!==T).forEach(Qe=>{let Bo=Qe.key,Td=_.fetchers.get(Bo),by=Xo(void 0,Td?Td.data:void 0);_.fetchers.set(Bo,by),L.has(Bo)&&kn(Bo),Qe.controller&&L.set(Bo,Qe.controller)}),Ne({fetchers:new Map(_.fetchers)});let qi=()=>Zt.forEach(Qe=>kn(Qe.key));te.signal.addEventListener("abort",qi);let{loaderResults:ea,fetcherResults:ta}=await yd(_.matches,Rn,Dr,Zt,He);if(te.signal.aborted)return;te.signal.removeEventListener("abort",qi),oe.delete(T),L.delete(T),Zt.forEach(Qe=>L.delete(Qe.key));let se=Zh([...ea,...ta]);if(se){if(se.idx>=Dr.length){let Qe=Zt[se.idx-Dr.length].key;ae.add(Qe)}return Do(He,se.result)}let{loaderData:it,errors:$t}=Kh(_,_.matches,Dr,ea,void 0,Zt,ta,ye);if(_.fetchers.has(T)){let Qe=Nn(X.data);_.fetchers.set(T,Qe)}Ed(Or),_.navigation.state==="loading"&&Or>K?(ne(b,"Expected pending action"),N&&N.abort(),ir(_.navigation.location,{matches:Rn,loaderData:it,errors:$t,fetchers:new Map(_.fetchers)})):(Ne({errors:$t,loaderData:Yh(_.loaderData,it,Rn,$t),fetchers:new Map(_.fetchers)}),B=!1)}async function Ir(T,P,A,F,V,ee,Q){let W=_.fetchers.get(T);Tn(T,Xo(Q,W?W.data:void 0),{flushSync:ee});let te=new AbortController,J=Fr(e.history,A,te.signal);L.set(T,te);let Ye=U,X=(await jo("loader",J,[F],V))[0];if(hr(X)&&(X=await F0(X,J.signal,!0)||X),L.get(T)===te&&L.delete(T),!J.signal.aborted){if(ge.has(T)){Tn(T,Nn(void 0));return}if(pr(X))if(K>Ye){Tn(T,Nn(void 0));return}else{ae.add(T),await Do(J,X);return}if(Pt(X)){Fo(T,P,X.error);return}ne(!hr(X),"Unhandled fetcher deferred data"),Tn(T,Nn(X.data))}}async function Do(T,P,A){let{submission:F,fetcherSubmission:V,replace:ee}=A===void 0?{}:A;P.response.headers.has("X-Remix-Revalidate")&&(B=!0);let Q=P.response.headers.get("Location");ne(Q,"Expected a Location header on the redirect Response"),Q=Vh(Q,new URL(T.url),s);let W=Oi(_.location,Q,{_isRedirect:!0});if(n){let we=!1;if(P.response.headers.has("X-Remix-Reload-Document"))we=!0;else if(zf.test(Q)){const He=e.history.createURL(Q);we=He.origin!==t.location.origin||Tr(He.pathname,s)==null}if(we){ee?t.location.replace(Q):t.location.assign(Q);return}}N=null;let te=ee===!0?De.Replace:De.Push,{formMethod:J,formAction:Ye,formEncType:Ge}=_.navigation;!F&&!V&&J&&Ye&&Ge&&(F=Jh(_.navigation));let X=F||V;if(Tw.has(P.response.status)&&X&&zt(X.formMethod))await Qt(te,W,{submission:$e({},X,{formAction:Q}),preventScrollReset:k});else{let we=Os(W,F);await Qt(te,W,{overrideNavigation:we,fetcherSubmission:V,preventScrollReset:k})}}async function jo(T,P,A,F){try{let V=await Ow(u,T,P,A,F,i,o);return await Promise.all(V.map((ee,Q)=>{if(Bw(ee)){let W=ee.result;return{type:Ee.redirect,response:jw(W,P,A[Q].route.id,F,s,f.v7_relativeSplatPath)}}return Dw(ee)}))}catch(V){return A.map(()=>({type:Ee.error,error:V}))}}async function yd(T,P,A,F,V){let[ee,...Q]=await Promise.all([A.length?jo("loader",V,A,P):[],...F.map(W=>{if(W.matches&&W.match&&W.controller){let te=Fr(e.history,W.path,W.controller.signal);return jo("loader",te,[W.match],W.matches).then(J=>J[0])}else return Promise.resolve({type:Ee.error,error:Tt(404,{pathname:W.path})})})]);return await Promise.all([Xh(T,A,ee,ee.map(()=>V.signal),!1,_.loaderData),Xh(T,F.map(W=>W.match),Q,F.map(W=>W.controller?W.controller.signal:null),!0)]),{loaderResults:ee,fetcherResults:Q}}function is(){B=!0,G.push(...as()),Fe.forEach((T,P)=>{L.has(P)&&(z.push(P),kn(P))})}function Tn(T,P,A){A===void 0&&(A={}),_.fetchers.set(T,P),Ne({fetchers:new Map(_.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Fo(T,P,A,F){F===void 0&&(F={});let V=gi(_.matches,P);Xi(T),Ne({errors:{[V.route.id]:A},fetchers:new Map(_.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function wd(T){return f.v7_fetcherPersist&&(Me.set(T,(Me.get(T)||0)+1),ge.has(T)&&ge.delete(T)),_.fetchers.get(T)||kw}function Xi(T){let P=_.fetchers.get(T);L.has(T)&&!(P&&P.state==="loading"&&oe.has(T))&&kn(T),Fe.delete(T),oe.delete(T),ae.delete(T),ge.delete(T),_.fetchers.delete(T)}function xy(T){if(f.v7_fetcherPersist){let P=(Me.get(T)||0)-1;P<=0?(Me.delete(T),ge.add(T)):Me.set(T,P)}else Xi(T);Ne({fetchers:new Map(_.fetchers)})}function kn(T){let P=L.get(T);ne(P,"Expected fetch controller: "+T),P.abort(),L.delete(T)}function xd(T){for(let P of T){let A=wd(P),F=Nn(A.data);_.fetchers.set(P,F)}}function Cd(){let T=[],P=!1;for(let A of ae){let F=_.fetchers.get(A);ne(F,"Expected fetcher: "+A),F.state==="loading"&&(ae.delete(A),T.push(A),P=!0)}return xd(T),P}function Ed(T){let P=[];for(let[A,F]of oe)if(F0}function Cy(T,P){let A=_.blockers.get(T)||Zo;return Pe.get(T)!==P&&Pe.set(T,P),A}function _d(T){_.blockers.delete(T),Pe.delete(T)}function Ji(T,P){let A=_.blockers.get(T)||Zo;ne(A.state==="unblocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="proceeding"||A.state==="blocked"&&P.state==="unblocked"||A.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+P.state);let F=new Map(_.blockers);F.set(T,P),Ne({blockers:F})}function Sd(T){let{currentLocation:P,nextLocation:A,historyAction:F}=T;if(Pe.size===0)return;Pe.size>1&&Co(!1,"A router only supports one blocker at a time");let V=Array.from(Pe.entries()),[ee,Q]=V[V.length-1],W=_.blockers.get(ee);if(!(W&&W.state==="proceeding")&&Q({currentLocation:P,nextLocation:A,historyAction:F}))return ee}function as(T){let P=[];return ye.forEach((A,F)=>{(!T||T(F))&&(A.cancel(),P.push(F),ye.delete(F))}),P}function Ey(T,P,A){if(h=T,v=P,y=A||null,!C&&_.navigation===Is){C=!0;let F=$d(_.location,_.matches);F!=null&&Ne({restoreScrollPosition:F})}return()=>{h=null,v=null,y=null}}function bd(T,P){return y&&y(T,P.map(F=>P0(F,_.loaderData)))||T.key}function _y(T,P){if(h&&v){let A=bd(T,P);h[A]=v()}}function $d(T,P){if(h){let A=bd(T,P),F=h[A];if(typeof F=="number")return F}return null}function Sy(T){i={},l=eu(T,o,void 0,i)}return $={get basename(){return s},get future(){return f},get state(){return _},get routes(){return a},get window(){return t},initialize:Se,subscribe:Mt,enableScrollRestoration:Ey,navigate:Zi,fetch:rs,revalidate:ar,createHref:T=>e.history.createHref(T),encodeLocation:T=>e.history.encodeLocation(T),getFetcher:wd,deleteFetcher:xy,dispose:Ot,getBlocker:Cy,deleteBlocker:_d,_internalFetchControllers:L,_internalActiveDeferreds:ye,_internalSetRoutes:Sy},$}function Nw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tu(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){u=c;break}}else s=t,u=t[t.length-1];let f=Df(o||".",Mf(s,i),Tr(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Bf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:pn([n,f.pathname])),_r(f)}function zh(e,t,n,r){if(!r||!Nw(r))return{path:n};if(r.formMethod&&!Hw(r.formMethod))return{path:n,error:Tt(405,{method:r.formMethod})};let o=()=>({path:n,error:Tt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=D0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,y)=>{let[v,C]=y;return""+h+v+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!zt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}ne(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=nu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=nu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Wh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Wh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(zt(f.formMethod))return{path:n,submission:f};let c=nr(n);return t&&c.search&&Bf(c.search)&&s.append("index",""),c.search="?"+s,{path:_r(c),submission:f}}function Aw(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Bh(e,t,n,r,o,i,a,l,s,u,f,c,d,h,y,v){let C=v?Pt(v[1])?v[1].error:v[1].data:void 0,m=e.createURL(t.location),g=e.createURL(o),w=v&&Pt(v[1])?v[0]:void 0,E=w?Aw(n,w):n,S=v?v[1].statusCode:void 0,$=a&&S&&S>=400,_=E.filter((k,N)=>{let{route:O}=k;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return typeof O.loader!="function"||O.loader.hydrate?!0:t.loaderData[O.id]===void 0&&(!t.errors||t.errors[O.id]===void 0);if(Lw(t.loaderData,t.matches[N],k)||s.some(R=>R===k.route.id))return!0;let D=t.matches[N],I=k;return Uh(k,$e({currentUrl:m,currentParams:D.params,nextUrl:g,nextParams:I.params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||M0(D,I)}))}),b=[];return c.forEach((k,N)=>{if(i||!n.some(B=>B.route.id===k.routeId)||f.has(N))return;let O=dr(h,k.path,y);if(!O){b.push({key:N,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(N),I=ru(O,k.path),R=!1;d.has(N)?R=!1:u.includes(N)?R=!0:D&&D.state!=="idle"&&D.data===void 0?R=l:R=Uh(I,$e({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l})),R&&b.push({key:N,routeId:k.routeId,path:k.path,matches:O,match:I,controller:new AbortController})}),[_,b]}function Lw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function M0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Uh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Hh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ne(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Co(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!ow.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,$e({},t(o),{lazy:void 0}))}function Iw(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Ow(e,t,n,r,o,i,a,l){let s=r.reduce((c,d)=>c.add(d.route.id),new Set),u=new Set,f=await e({matches:o.map(c=>{let d=s.has(c.route.id);return $e({},c,{shouldLoad:d,resolve:y=>(u.add(c.route.id),d?Mw(t,n,c,i,a,y,l):Promise.resolve({type:Ee.data,result:void 0}))})}),request:n,params:o[0].params,context:l});return o.forEach(c=>ne(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((c,d)=>s.has(o[d].route.id))}async function Mw(e,t,n,r,o,i,a){let l,s,u=f=>{let c,d=new Promise((v,C)=>c=C);s=()=>c(),t.signal.addEventListener("abort",s);let h=v=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):f({request:t,params:n.params,context:a},...v!==void 0?[v]:[]),y;return i?y=i(v=>h(v)):y=(async()=>{try{return{type:"data",result:await h()}}catch(v){return{type:"error",result:v}}})(),Promise.race([y,d])};try{let f=n.route[e];if(n.route.lazy)if(f){let c,[d]=await Promise.all([u(f).catch(h=>{c=h}),Hh(n.route,o,r)]);if(c!==void 0)throw c;l=d}else if(await Hh(n.route,o,r),f=n.route[e],f)l=await u(f);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw Tt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Ee.data,result:void 0};else if(f)l=await u(f);else{let c=new URL(t.url),d=c.pathname+c.search;throw Tt(404,{pathname:d})}ne(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:Ee.error,result:f}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function Dw(e){let{result:t,type:n,status:r}=e;if(j0(t)){let a;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(l){return{type:Ee.error,error:l}}return n===Ee.error?{type:Ee.error,error:new jf(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Ee.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Ee.error)return{type:Ee.error,error:t,statusCode:Ff(t)?t.status:r};if(Uw(t)){var o,i;return{type:Ee.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Ee.data,data:t,statusCode:r}}function jw(e,t,n,r,o,i){let a=e.headers.get("Location");if(ne(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!zf.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=tu(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Vh(e,t,n){if(zf.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Tr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Fr(e,t,n,r){let o=e.createURL(D0(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=nu(r.formData):i.body=r.formData}return new Request(o,i)}function nu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Wh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Fw(e,t,n,r,o,i){let a={},l=null,s,u=!1,f={},c=r&&Pt(r[1])?r[1].error:void 0;return n.forEach((d,h)=>{let y=t[h].route.id;if(ne(!pr(d),"Cannot handle redirect results in processLoaderData"),Pt(d)){let v=d.error;c!==void 0&&(v=c,c=void 0),l=l||{};{let C=gi(e,y);l[C.route.id]==null&&(l[C.route.id]=v)}a[y]=void 0,u||(u=!0,s=Ff(d.error)?d.error.status:500),d.headers&&(f[y]=d.headers)}else hr(d)?(o.set(y,d.deferredData),a[y]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[y]=d.headers)):(a[y]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[y]=d.headers))}),c!==void 0&&r&&(l={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:l,statusCode:s||200,loaderHeaders:f}}function Kh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Fw(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Qh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new jf(e||500,a,new Error(l),!0)}function Zh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pr(n))return{result:n,idx:t}}}function D0(e){let t=typeof e=="string"?nr(e):e;return _r($e({},t,{hash:""}))}function zw(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bw(e){return j0(e.result)&&$w.has(e.result.status)}function hr(e){return e.type===Ee.deferred}function Pt(e){return e.type===Ee.error}function pr(e){return(e&&e.type)===Ee.redirect}function Uw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function j0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Hw(e){return bw.has(e.toLowerCase())}function zt(e){return _w.has(e.toLowerCase())}async function Xh(e,t,n,r,o,i){for(let a=0;ac.route.id===s.route.id),f=u!=null&&!M0(u,s)&&(i&&i[s.route.id])!==void 0;if(hr(l)&&(o||f)){let c=r[a];ne(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await F0(l,c,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function F0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ee.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ee.error,error:o}}return{type:Ee.data,data:e.deferredData.data}}}function Bf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ru(e,t){let n=typeof t=="string"?nr(t).search:t.search;if(e[e.length-1].route.index&&Bf(n||""))return e[e.length-1];let r=L0(e);return r[r.length-1]}function Jh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Os(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Xo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ww(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Kw(e,t){try{let n=e.sessionStorage.getItem(O0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Yw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(O0,JSON.stringify(n))}catch(r){Co(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;tKl(e,t),[t,e])}function B0(e){p.useContext(rr).static||p.useLayoutEffect(e)}function Vf(){let{isDataRoute:e}=p.useContext(kr);return e?sx():Zw()}function Zw(){No()||ne(!1);let e=p.useContext(Ki),{basename:t,future:n,navigator:r}=p.useContext(rr),{matches:o}=p.useContext(kr),{pathname:i}=Oe(),a=JSON.stringify(Mf(o,n.v7_relativeSplatPath)),l=p.useRef(!1);return B0(()=>{l.current=!0}),p.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=Df(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:hn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,i,e])}function U0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(rr),{matches:o}=p.useContext(kr),{pathname:i}=Oe(),a=JSON.stringify(Mf(o,r.v7_relativeSplatPath));return p.useMemo(()=>Df(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Xw(e,t,n,r){No()||ne(!1);let{navigator:o}=p.useContext(rr),{matches:i}=p.useContext(kr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Oe(),f;f=u;let c=f.pathname||"/",d=c;if(s!=="/"){let v=s.replace(/^\//,"").split("/");d="/"+c.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=dr(e,{pathname:d});return nx(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:hn([s,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:hn([s,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function Jw(){let e=lx(),t=Ff(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const qw=p.createElement(Jw,null);class ex extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(kr.Provider,{value:this.props.routeContext},p.createElement(z0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tx(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Ki);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(kr.Provider,{value:t},r)}function nx(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);f>=0||ne(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let h,y=!1,v=null,C=null;n&&(h=l&&c.route.id?l[c.route.id]:void 0,v=c.route.errorElement||qw,s&&(u<0&&d===0?(y=!0,C=null):u===d&&(y=!0,C=c.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,d+1)),g=()=>{let w;return h?w=v:y?w=C:c.route.Component?w=p.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=f,p.createElement(tx,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?p.createElement(ex,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var H0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(H0||{}),Eo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eo||{});function rx(e){let t=p.useContext(Ki);return t||ne(!1),t}function Wf(e){let t=p.useContext(Uf);return t||ne(!1),t}function ox(e){let t=p.useContext(kr);return t||ne(!1),t}function V0(e){let t=ox(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function ix(){return Wf(Eo.UseNavigation).navigation}function ax(){let{matches:e,loaderData:t}=Wf(Eo.UseMatches);return p.useMemo(()=>e.map(n=>P0(n,t)),[e,t])}function lx(){var e;let t=p.useContext(z0),n=Wf(Eo.UseRouteError),r=V0(Eo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sx(){let{router:e}=rx(H0.UseNavigateStable),t=V0(Eo.UseNavigateStable),n=p.useRef(!1);return B0(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}function cx(e){let{basename:t="/",children:n=null,location:r,navigationType:o=De.Pop,navigator:i,static:a=!1,future:l}=e;No()&&ne(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=nr(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:y="default"}=r,v=p.useMemo(()=>{let C=Tr(f,s);return C==null?null:{location:{pathname:C,search:c,hash:d,state:h,key:y},navigationType:o}},[s,f,c,d,h,y,o]);return v==null?null:p.createElement(rr.Provider,{value:u},p.createElement(Hf.Provider,{children:n,value:v}))}new Promise(()=>{});function ux(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;tKl(e,t),[t,e])}function B0(e){p.useContext(rr).static||p.useLayoutEffect(e)}function Vf(){let{isDataRoute:e}=p.useContext(kr);return e?sx():Zw()}function Zw(){No()||ne(!1);let e=p.useContext(Ki),{basename:t,future:n,navigator:r}=p.useContext(rr),{matches:o}=p.useContext(kr),{pathname:i}=Oe(),a=JSON.stringify(Mf(o,n.v7_relativeSplatPath)),l=p.useRef(!1);return B0(()=>{l.current=!0}),p.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=Df(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:pn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,i,e])}function U0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(rr),{matches:o}=p.useContext(kr),{pathname:i}=Oe(),a=JSON.stringify(Mf(o,r.v7_relativeSplatPath));return p.useMemo(()=>Df(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Xw(e,t,n,r){No()||ne(!1);let{navigator:o}=p.useContext(rr),{matches:i}=p.useContext(kr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Oe(),f;f=u;let c=f.pathname||"/",d=c;if(s!=="/"){let v=s.replace(/^\//,"").split("/");d="/"+c.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=dr(e,{pathname:d});return nx(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:pn([s,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:pn([s,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function Jw(){let e=lx(),t=Ff(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const qw=p.createElement(Jw,null);class ex extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(kr.Provider,{value:this.props.routeContext},p.createElement(z0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tx(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Ki);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(kr.Provider,{value:t},r)}function nx(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);f>=0||ne(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let h,y=!1,v=null,C=null;n&&(h=l&&c.route.id?l[c.route.id]:void 0,v=c.route.errorElement||qw,s&&(u<0&&d===0?(y=!0,C=null):u===d&&(y=!0,C=c.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,d+1)),g=()=>{let w;return h?w=v:y?w=C:c.route.Component?w=p.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=f,p.createElement(tx,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?p.createElement(ex,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var H0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(H0||{}),Eo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eo||{});function rx(e){let t=p.useContext(Ki);return t||ne(!1),t}function Wf(e){let t=p.useContext(Uf);return t||ne(!1),t}function ox(e){let t=p.useContext(kr);return t||ne(!1),t}function V0(e){let t=ox(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function ix(){return Wf(Eo.UseNavigation).navigation}function ax(){let{matches:e,loaderData:t}=Wf(Eo.UseMatches);return p.useMemo(()=>e.map(n=>P0(n,t)),[e,t])}function lx(){var e;let t=p.useContext(z0),n=Wf(Eo.UseRouteError),r=V0(Eo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sx(){let{router:e}=rx(H0.UseNavigateStable),t=V0(Eo.UseNavigateStable),n=p.useRef(!1);return B0(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}function cx(e){let{basename:t="/",children:n=null,location:r,navigationType:o=De.Pop,navigator:i,static:a=!1,future:l}=e;No()&&ne(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=nr(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:y="default"}=r,v=p.useMemo(()=>{let C=Tr(f,s);return C==null?null:{location:{pathname:C,search:c,hash:d,state:h,key:y},navigationType:o}},[s,f,c,d,h,y,o]);return v==null?null:p.createElement(rr.Provider,{value:u},p.createElement(Hf.Provider,{children:n,value:v}))}new Promise(()=>{});function ux(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function dx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hx(e,t){return e.button===0&&(!t||t==="_self")&&!dx(e)}const px=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],vx="6";try{window.__reactRouterVersion=vx}catch{}function mx(e,t){return Pw({basename:t==null?void 0:t.basename,future:_o({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:tw({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||gx(),routes:e,mapRouteProperties:ux,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function gx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_o({},t,{errors:yx(t.errors)})),t}function yx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new jf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const wx=p.createContext({isTransitioning:!1}),xx=p.createContext(new Map),Cx="startTransition",qh=Vu[Cx],Ex="flushSync",ep=ew[Ex];function _x(e){qh?qh(e):e()}function Jo(e){ep?ep(e):e()}class Sx{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function bx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[a,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[f,c]=p.useState(),[d,h]=p.useState(),[y,v]=p.useState(),C=p.useRef(new Map),{v7_startTransition:m}=r||{},g=p.useCallback(_=>{m?_x(_):_()},[m]),w=p.useCallback((_,b)=>{let{deletedFetchers:k,unstable_flushSync:N,unstable_viewTransitionOpts:M}=b;k.forEach(I=>C.current.delete(I)),_.fetchers.forEach((I,R)=>{I.data!==void 0&&C.current.set(R,I.data)});let D=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||D){N?Jo(()=>i(_)):g(()=>i(_));return}if(N){Jo(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let I=n.window.document.startViewTransition(()=>{Jo(()=>i(_))});I.finished.finally(()=>{Jo(()=>{c(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),Jo(()=>h(I));return}d?(f&&f.resolve(),d.skipTransition(),v({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(_),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,d,f,C,g]);p.useLayoutEffect(()=>n.subscribe(w),[n,w]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new Sx)},[s]),p.useEffect(()=>{if(f&&a&&n.window){let _=a,b=f.promise,k=n.window.document.startViewTransition(async()=>{g(()=>i(_)),await b});k.finished.finally(()=>{c(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(k)}},[g,a,f,n.window]),p.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),p.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[s.isTransitioning,y]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,b,k)=>n.navigate(_,{state:b,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(_,b,k)=>n.navigate(_,{replace:!0,state:b,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),S=n.basename||"/",$=p.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return p.createElement(p.Fragment,null,p.createElement(Ki.Provider,{value:$},p.createElement(Uf.Provider,{value:o},p.createElement(xx.Provider,{value:C.current},p.createElement(wx.Provider,{value:s},p.createElement(cx,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?p.createElement($x,{routes:n.routes,future:n.future,state:o}):t))))),null)}function $x(e){let{routes:t,future:n,state:r}=e;return Xw(t,void 0,r,n)}const Tx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yl=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=fx(t,px),{basename:h}=p.useContext(rr),y,v=!1;if(typeof u=="string"&&kx.test(u)&&(y=u,Tx))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=Tr(E.pathname,h);E.origin===w.origin&&S!=null?u=S+E.search+E.hash:v=!0}catch{}let C=Gw(u,{relative:o}),m=Ax(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:c});function g(w){r&&r(w),w.defaultPrevented||m(w)}return p.createElement("a",_o({},d,{href:y||C,onClick:v||i?r:g,ref:n,target:s}))});function Rx(e){let{getKey:t,storageKey:n}=e;return Lx({getKey:t,storageKey:n}),null}var ou;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ou||(ou={}));var iu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(iu||(iu={}));function Px(e){let t=p.useContext(Ki);return t||ne(!1),t}function Nx(e){let t=p.useContext(Uf);return t||ne(!1),t}function Ax(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Vf(),u=Oe(),f=U0(e,{relative:a});return p.useCallback(c=>{if(hx(c,n)){c.preventDefault();let d=r!==void 0?r:_r(u)===_r(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,f,r,o,n,e,i,a,l])}const tp="react-router-scroll-positions";let wa={};function Lx(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=Px(ou.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Nx(iu.UseScrollRestoration),{basename:a}=p.useContext(rr),l=Oe(),s=ax(),u=ix();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Ix(p.useCallback(()=>{if(u.state==="idle"){let f=(t?t(l,s):null)||l.key;wa[f]=window.scrollY}try{sessionStorage.setItem(n||tp,JSON.stringify(wa))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(p.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||tp);f&&(wa=JSON.parse(f))}catch{}},[n]),p.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,h)=>t(_o({},d,{pathname:Tr(d.pathname,a)||d.pathname}),h):t,c=r==null?void 0:r.enableScrollRestoration(wa,()=>window.scrollY,f);return()=>c&&c()},[r,a,t]),p.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function Ix(e,t){let{capture:n}={};p.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const Ox="modulepreload",Mx=function(e){return"/polkadot-api-docs/"+e},np={},be=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=Mx(l),l in np)return;np[l]=!0;const s=l.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":Ox,s||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),s)return new Promise((c,d)=>{f.addEventListener("load",c),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};function au(e){return Array.isArray(e)?e.map(au):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=au(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const W0=au({blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",topNav:[{text:"Guide",link:"/getting-started",id:20,items:[]}],sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Top-level client",items:[{text:"PolkadotClient",link:"/client"},{text:"Typed API",link:"/typed",items:[{text:"Constants",link:"/typed/constants"},{text:"Runtime APIs",link:"/typed/apis"},{text:"Storage queries",link:"/typed/queries"}]}]},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"Recipes",items:[{text:"Prepare for runtime upgrade",link:"/recipes/upgrade"}]},{text:"Examples",items:[{text:"Teleport across chains",link:"https://github.com/polkadot-api/react-teleport-example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],font:{},markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},theme:{},vite:{base:"/polkadot-api-docs"}}),K0=p.createContext(W0);function Y0(){return typeof window<"u",W0}function Dx({children:e,config:t}){const[n,r]=p.useState(()=>t||Y0());return p.useEffect(()=>{},[]),p.useEffect(()=>{typeof window<"u"},[n]),x.jsx(K0.Provider,{value:n,children:e})}function Ke(){return p.useContext(K0)}const Kf=[{lazy:()=>be(()=>import("./client-0QvmPwMR.js"),[]),path:"/client",type:"mdx",filePath:"client.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./client-0QvmPwMR.js"),[]),path:"/client.html",type:"mdx",filePath:"client.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./codegen-C-E0Y6vn.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./codegen-C-E0Y6vn.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./getting-started-CtMjqxRV.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./getting-started-CtMjqxRV.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./index-D1SFmwZ8.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./providers-BHA-cFIZ.js"),[]),path:"/providers",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./providers-BHA-cFIZ.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./signers-Bxi6oa_D.js"),[]),path:"/signers",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./signers-Bxi6oa_D.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./typed--Mgjkvy4.js"),[]),path:"/typed",type:"mdx",filePath:"typed.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./typed--Mgjkvy4.js"),[]),path:"/typed.html",type:"mdx",filePath:"typed.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./types-BY_Dv84a.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./types-BY_Dv84a.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./upgrade-D1A4fshp.js"),[]),path:"/recipes/upgrade",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./upgrade-D1A4fshp.js"),[]),path:"/recipes/upgrade.html",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./apis-ByRr4L1P.js"),[]),path:"/typed/apis",type:"mdx",filePath:"typed/apis.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./apis-ByRr4L1P.js"),[]),path:"/typed/apis.html",type:"mdx",filePath:"typed/apis.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./constants-D427w9L6.js"),[]),path:"/typed/constants",type:"mdx",filePath:"typed/constants.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./constants-D427w9L6.js"),[]),path:"/typed/constants.html",type:"mdx",filePath:"typed/constants.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./queries-DpMx1Ps6.js"),[]),path:"/typed/queries",type:"mdx",filePath:"typed/queries.md",lastUpdatedAt:1715675643e3},{lazy:()=>be(()=>import("./queries-DpMx1Ps6.js"),[]),path:"/typed/queries.html",type:"mdx",filePath:"typed/queries.md",lastUpdatedAt:1715675643e3}];var Ms={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},rp={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},op={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},ip={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},Ds={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function G0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"".concat(l,":").concat(this[l])).join(";")},writable:!1}),n}var Fx="var(--vocs_ExternalLink_iconUrl)",zx="vocs_ExternalLink";const Bx=p.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Ke(),l=a;return x.jsx("a",{ref:i,className:O(e,n||typeof t!="string"?void 0:zx),href:r,target:"_blank",rel:"noopener noreferrer",style:Yt({[Fx]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var ap="vocs_Link_accent_underlined",lp="vocs_Link",sp="vocs_Link_styleless",lu=new Map,xa=new WeakMap,cp=0,Ux=void 0;function Hx(e){return e?(xa.has(e)||(cp+=1,xa.set(e,cp.toString())),xa.get(e)):"0"}function Vx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Hx(e.root):e[t]}`).toString()}function Wx(e){const t=Vx(e);let n=lu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const u=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=u),(s=r.get(l.target))==null||s.forEach(f=>{f(u,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},lu.set(t,n)}return n}function Kx(e,t,n={},r=Ux){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=Wx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),lu.delete(o))}}function Q0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:u}={}){var f;const[c,d]=p.useState(null),h=p.useRef(),[y,v]=p.useState({inView:!!l,entry:void 0});h.current=u,p.useEffect(()=>{if(a||!c)return;let w;return w=Kx(c,(E,S)=>{v({inView:E,entry:S}),h.current&&h.current(E,S),S.isIntersecting&&i&&w&&(w(),w=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,m=p.useRef();!c&&C&&!i&&!a&&m.current!==C&&(m.current=C,v({inView:!!l,entry:void 0}));const g=[d,y.inView,y.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}function Yx(...e){return t=>{Gx(t,...e)}}function Gx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=p.forwardRef((e,t)=>{const n=()=>{var i;return(i=Kf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=Q0();return p.useEffect(()=>{o&&n()},[o,n]),x.jsx(Yl,{ref:Yx(t,r),...e})}),rn=p.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Oe();if(n!=null&&n.match(/^(www|https?)/))return x.jsx(Bx,{...e,ref:t,className:O(e.className,lp,r==="accent underlined"&&ap,r==="styleless"&&sp),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return x.jsx(Gn,{...e,ref:t,className:O(e.className,lp,r==="accent underlined"&&ap,r==="styleless"&&sp),to:l})});var Qx="vocs_NotFound_divider",Zx="vocs_NotFound",Xx="vocs_H1",Z0="vocs_Heading",X0="vocs_Heading_slugTarget";function Ao({level:e,...t}){const n=`h${e}`;return x.jsxs(n,{...t,id:void 0,className:O(t.className,Z0),children:[x.jsx("div",{id:t.id,className:X0}),t.children]})}function J0(e){return x.jsx(Ao,{...e,className:O(e.className,Xx),level:1})}var Jx="vocs_Paragraph";function q0(e){return x.jsx("p",{...e,className:O(e.className,Jx)})}function qx(){return x.jsxs("div",{className:Zx,children:[x.jsx(J0,{children:"Page Not Found"}),x.jsx("div",{style:{height:Ds[24]}}),x.jsx("hr",{className:Qx}),x.jsx("div",{style:{height:Ds[24]}}),x.jsx(q0,{children:"The page you were looking for could not be found."}),x.jsx("div",{style:{height:Ds[8]}}),x.jsx(rn,{href:"/",children:"Go to Home Page"})]})}var e5="var(--vocs_Banner_bannerBackgroundColor)",t5="var(--vocs_Banner_bannerHeight)",n5="var(--vocs_Banner_bannerTextColor)",r5="vocs_Banner_closeButton",o5="vocs_Banner_content",i5="vocs_Banner_inner",a5="vocs_Banner";const l5=Object.getPrototypeOf(s5).constructor;async function s5(e,t){return new l5(String(e))(t)}function c5(e,t){return new Function(String(e))(t)}function Rr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var u5=["color"],f5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,u5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],h5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,d5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p5=["color"],v5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,p5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),m5=["color"],g5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,m5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),y5=["color"],w5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,y5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),x5=["color"],Yf=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,x5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),C5=["color"],E5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,C5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Cl(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>Cl(r,o));const n=e.props.children?{...e.props,children:Cl(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function _5({hide:e}){const{banner:t}=Ke(),n=p.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>Cl(r);const{default:o}=c5(r,{...Qy,Fragment:p.Fragment});return o},[t]);return n?x.jsx("div",{className:O(a5),style:Yt({[e5]:t==null?void 0:t.backgroundColor,[n5]:t==null?void 0:t.textColor}),children:x.jsxs("div",{className:O(i5),children:[x.jsx("div",{className:O(o5),children:x.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&x.jsx("button",{className:O(r5),onClick:e,type:"button",children:x.jsx(v5,{width:14,height:14})})]})}):null}var S5="vocs_Content";function eg({children:e,className:t}){return x.jsx("article",{className:O(t,S5),children:e})}function tg({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&tg({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Yi({items:e,pathname:t}){return p.useMemo(()=>tg({items:e,pathname:t}),[e,t])}function Pr(){const e=p.useContext(ng);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const ng=p.createContext(void 0);function Gl(){const{pathname:e}=Oe(),t=Ke(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=p.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Nr(){const e=Gl(),{frontmatter:t}=Pr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function b5(){const[e,t]=p.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return p.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var $5="vocs_utils_visibleDark",T5="vocs_utils_visibleLight",rg="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>k5(n,t))}function Ue(...e){return p.useCallback(og(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=p.createContext(a),s=n.length;n=[...n,a];function u(c){const{scope:d,children:h,...y}=c,v=(d==null?void 0:d[e][s])||l,C=p.useMemo(()=>y,Object.values(y));return p.createElement(v.Provider,{value:C},h)}function f(c,d){const h=(d==null?void 0:d[e][s])||l,y=p.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>p.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,R5(o,...t)]}function R5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const c=s(i)[`__scope${u}`];return{...l,...c}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const yn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},P5=Vu.useId||(()=>{});let N5=0;function on(e){const[t,n]=p.useState(P5());return yn(()=>{n(r=>r??String(N5++))},[e]),t?`radix-${t}`:""}function lt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function or({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=A5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=lt(n),s=p.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&l(c)}else o(u)},[i,e,o,l]);return[a,s]}function A5({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),i=lt(t);return p.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const So=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),i=o.find(I5);if(i){const a=i.props.children,l=o.map(s=>s===i?p.Children.count(a)>1?p.Children.only(null):p.isValidElement(a)?a.props.children:null:s);return p.createElement(su,Y({},r,{ref:t}),p.isValidElement(a)?p.cloneElement(a,void 0,l):null)}return p.createElement(su,Y({},r,{ref:t}),n)});So.displayName="Slot";const su=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...O5(r,n.props),ref:t?og(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});su.displayName="SlotClone";const L5=({children:e})=>p.createElement(p.Fragment,null,e);function I5(e){return p.isValidElement(e)&&e.type===L5}function O5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const M5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=M5.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?So:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cu(e,t){e&&Po.flushSync(()=>e.dispatchEvent(t))}function D5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uu="dismissableLayer.update",j5="dismissableLayer.pointerDownOutside",F5="dismissableLayer.focusOutside";let up;const z5=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gf=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=p.useContext(z5),[c,d]=p.useState(null),h=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=p.useState({}),v=Ue(t,b=>d(b)),C=Array.from(f.layers),[m]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),g=C.indexOf(m),w=c?C.indexOf(c):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=w>=g,$=B5(b=>{const k=b.target,N=[...f.branches].some(M=>M.contains(k));!S||N||(i==null||i(b),l==null||l(b),b.defaultPrevented||s==null||s())},h),_=U5(b=>{const k=b.target;[...f.branches].some(M=>M.contains(k))||(a==null||a(b),l==null||l(b),b.defaultPrevented||s==null||s())},h);return D5(b=>{w===f.layers.size-1&&(o==null||o(b),!b.defaultPrevented&&s&&(b.preventDefault(),s()))},h),p.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(up=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),fp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=up)}},[c,h,r,f]),p.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),fp())},[c,f]),p.useEffect(()=>{const b=()=>y({});return document.addEventListener(uu,b),()=>document.removeEventListener(uu,b)},[]),p.createElement(fe.div,Y({},u,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,_.onFocusCapture),onBlurCapture:le(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,$.onPointerDownCapture)}))});function B5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){ig(j5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function U5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!r.current&&ig(F5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fp(){const e=new CustomEvent(uu);document.dispatchEvent(e)}function ig(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?cu(o,i):o.dispatchEvent(i)}const js="focusScope.autoFocusOnMount",Fs="focusScope.autoFocusOnUnmount",dp={bubbles:!1,cancelable:!0},ag=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=p.useState(null),u=lt(o),f=lt(i),c=p.useRef(null),d=Ue(t,v=>s(v)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let v=function(w){if(h.paused||!l)return;const E=w.target;l.contains(E)?c.current=E:Nn(c.current,{select:!0})},C=function(w){if(h.paused||!l)return;const E=w.relatedTarget;E!==null&&(l.contains(E)||Nn(c.current,{select:!0}))},m=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Nn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",C);const g=new MutationObserver(m);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",C),g.disconnect()}}},[r,l,h.paused]),p.useEffect(()=>{if(l){pp.add(h);const v=document.activeElement;if(!l.contains(v)){const m=new CustomEvent(js,dp);l.addEventListener(js,u),l.dispatchEvent(m),m.defaultPrevented||(H5(G5(lg(l)),{select:!0}),document.activeElement===v&&Nn(l))}return()=>{l.removeEventListener(js,u),setTimeout(()=>{const m=new CustomEvent(Fs,dp);l.addEventListener(Fs,f),l.dispatchEvent(m),m.defaultPrevented||Nn(v??document.body,{select:!0}),l.removeEventListener(Fs,f),pp.remove(h)},0)}}},[l,u,f,h]);const y=p.useCallback(v=>{if(!n&&!r||h.paused)return;const C=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(C&&m){const g=v.currentTarget,[w,E]=V5(g);w&&E?!v.shiftKey&&m===E?(v.preventDefault(),n&&Nn(w,{select:!0})):v.shiftKey&&m===w&&(v.preventDefault(),n&&Nn(E,{select:!0})):m===g&&v.preventDefault()}},[n,r,h.paused]);return p.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:y}))});function H5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function V5(e){const t=lg(e),n=hp(t,e),r=hp(t.reverse(),e);return[n,r]}function lg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hp(e,t){for(const n of e)if(!W5(n,{upTo:t}))return n}function W5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function K5(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&K5(e)&&t&&e.select()}}const pp=Y5();function Y5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vp(e,t),e.unshift(t)},remove(t){var n;e=vp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function vp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function G5(e){return e.filter(t=>t.tagName!=="A")}const sg=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?k0.createPortal(p.createElement(fe.div,Y({},o,{ref:t})),r):null});function Q5(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=Z5(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Ue(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function Z5(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[l,s]=Q5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Ca(r.current);i.current=l==="mounted"?u:"none"},[l]),yn(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,h=Ca(u);e?s("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),yn(()=>{if(t){const u=c=>{const h=Ca(r.current).includes(c.animationName);c.target===t&&h&&Po.flushSync(()=>s("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=Ca(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ca(e){return(e==null?void 0:e.animationName)||"none"}let zs=0;function cg(){p.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:mp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:mp()),zs++,()=>{zs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),zs--}},[])}function mp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var en=function(){return en=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return h4;var t=p4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},m4=hg(),uo="data-scroll-locked",g4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + */function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function dx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hx(e,t){return e.button===0&&(!t||t==="_self")&&!dx(e)}const px=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],vx="6";try{window.__reactRouterVersion=vx}catch{}function mx(e,t){return Pw({basename:t==null?void 0:t.basename,future:_o({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:tw({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||gx(),routes:e,mapRouteProperties:ux,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function gx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_o({},t,{errors:yx(t.errors)})),t}function yx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new jf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const wx=p.createContext({isTransitioning:!1}),xx=p.createContext(new Map),Cx="startTransition",qh=Vu[Cx],Ex="flushSync",ep=ew[Ex];function _x(e){qh?qh(e):e()}function Jo(e){ep?ep(e):e()}class Sx{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function bx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[a,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[f,c]=p.useState(),[d,h]=p.useState(),[y,v]=p.useState(),C=p.useRef(new Map),{v7_startTransition:m}=r||{},g=p.useCallback(_=>{m?_x(_):_()},[m]),w=p.useCallback((_,b)=>{let{deletedFetchers:k,unstable_flushSync:N,unstable_viewTransitionOpts:O}=b;k.forEach(I=>C.current.delete(I)),_.fetchers.forEach((I,R)=>{I.data!==void 0&&C.current.set(R,I.data)});let D=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!O||D){N?Jo(()=>i(_)):g(()=>i(_));return}if(N){Jo(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let I=n.window.document.startViewTransition(()=>{Jo(()=>i(_))});I.finished.finally(()=>{Jo(()=>{c(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),Jo(()=>h(I));return}d?(f&&f.resolve(),d.skipTransition(),v({state:_,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(l(_),u({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[n.window,d,f,C,g]);p.useLayoutEffect(()=>n.subscribe(w),[n,w]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new Sx)},[s]),p.useEffect(()=>{if(f&&a&&n.window){let _=a,b=f.promise,k=n.window.document.startViewTransition(async()=>{g(()=>i(_)),await b});k.finished.finally(()=>{c(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(k)}},[g,a,f,n.window]),p.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),p.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[s.isTransitioning,y]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,b,k)=>n.navigate(_,{state:b,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(_,b,k)=>n.navigate(_,{replace:!0,state:b,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),S=n.basename||"/",$=p.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return p.createElement(p.Fragment,null,p.createElement(Ki.Provider,{value:$},p.createElement(Uf.Provider,{value:o},p.createElement(xx.Provider,{value:C.current},p.createElement(wx.Provider,{value:s},p.createElement(cx,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?p.createElement($x,{routes:n.routes,future:n.future,state:o}):t))))),null)}function $x(e){let{routes:t,future:n,state:r}=e;return Xw(t,void 0,r,n)}const Tx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yl=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=fx(t,px),{basename:h}=p.useContext(rr),y,v=!1;if(typeof u=="string"&&kx.test(u)&&(y=u,Tx))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=Tr(E.pathname,h);E.origin===w.origin&&S!=null?u=S+E.search+E.hash:v=!0}catch{}let C=Gw(u,{relative:o}),m=Ax(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:c});function g(w){r&&r(w),w.defaultPrevented||m(w)}return p.createElement("a",_o({},d,{href:y||C,onClick:v||i?r:g,ref:n,target:s}))});function Rx(e){let{getKey:t,storageKey:n}=e;return Lx({getKey:t,storageKey:n}),null}var ou;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ou||(ou={}));var iu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(iu||(iu={}));function Px(e){let t=p.useContext(Ki);return t||ne(!1),t}function Nx(e){let t=p.useContext(Uf);return t||ne(!1),t}function Ax(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Vf(),u=Oe(),f=U0(e,{relative:a});return p.useCallback(c=>{if(hx(c,n)){c.preventDefault();let d=r!==void 0?r:_r(u)===_r(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,f,r,o,n,e,i,a,l])}const tp="react-router-scroll-positions";let wa={};function Lx(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=Px(ou.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Nx(iu.UseScrollRestoration),{basename:a}=p.useContext(rr),l=Oe(),s=ax(),u=ix();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Ix(p.useCallback(()=>{if(u.state==="idle"){let f=(t?t(l,s):null)||l.key;wa[f]=window.scrollY}try{sessionStorage.setItem(n||tp,JSON.stringify(wa))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(p.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||tp);f&&(wa=JSON.parse(f))}catch{}},[n]),p.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,h)=>t(_o({},d,{pathname:Tr(d.pathname,a)||d.pathname}),h):t,c=r==null?void 0:r.enableScrollRestoration(wa,()=>window.scrollY,f);return()=>c&&c()},[r,a,t]),p.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function Ix(e,t){let{capture:n}={};p.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const Ox="modulepreload",Mx=function(e){return"/polkadot-api-docs/"+e},np={},be=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=Mx(l),l in np)return;np[l]=!0;const s=l.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":Ox,s||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),s)return new Promise((c,d)=>{f.addEventListener("load",c),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};function au(e){return Array.isArray(e)?e.map(au):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=au(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const W0=au({blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",topNav:[{text:"Guide",link:"/getting-started",id:20,items:[]}],sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Top-level client",items:[{text:"PolkadotClient",link:"/client"},{text:"Typed API",link:"/typed",items:[{text:"Constants",link:"/typed/constants"},{text:"Runtime APIs",link:"/typed/apis"},{text:"Storage queries",link:"/typed/queries"}]}]},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"Recipes",items:[{text:"Prepare for runtime upgrade",link:"/recipes/upgrade"}]},{text:"Examples",items:[{text:"Teleport across chains",link:"https://github.com/polkadot-api/react-teleport-example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],font:{},markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},theme:{},vite:{base:"/polkadot-api-docs"}}),K0=p.createContext(W0);function Y0(){return typeof window<"u",W0}function Dx({children:e,config:t}){const[n,r]=p.useState(()=>t||Y0());return p.useEffect(()=>{},[]),p.useEffect(()=>{typeof window<"u"},[n]),x.jsx(K0.Provider,{value:n,children:e})}function Ke(){return p.useContext(K0)}const Kf=[{lazy:()=>be(()=>import("./client-BgaL9RwG.js"),[]),path:"/client",type:"mdx",filePath:"client.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./client-BgaL9RwG.js"),[]),path:"/client.html",type:"mdx",filePath:"client.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./codegen-BYKrWVlU.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./codegen-BYKrWVlU.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./getting-started-L-jvfI-a.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./getting-started-L-jvfI-a.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./index-D1EFUyQH.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./providers-Cv3d4kKp.js"),[]),path:"/providers",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./providers-Cv3d4kKp.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./signers-oNd0Cq5s.js"),[]),path:"/signers",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./signers-oNd0Cq5s.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./typed-D4g5AJsN.js"),[]),path:"/typed",type:"mdx",filePath:"typed.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./typed-D4g5AJsN.js"),[]),path:"/typed.html",type:"mdx",filePath:"typed.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./types-BqJWXfAw.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./types-BqJWXfAw.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./upgrade-DGR_r9bB.js"),[]),path:"/recipes/upgrade",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./upgrade-DGR_r9bB.js"),[]),path:"/recipes/upgrade.html",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./apis-Cz6Otmp9.js"),[]),path:"/typed/apis",type:"mdx",filePath:"typed/apis.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./apis-Cz6Otmp9.js"),[]),path:"/typed/apis.html",type:"mdx",filePath:"typed/apis.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./constants-waEoK2Pg.js"),[]),path:"/typed/constants",type:"mdx",filePath:"typed/constants.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./constants-waEoK2Pg.js"),[]),path:"/typed/constants.html",type:"mdx",filePath:"typed/constants.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./queries-CbKGZF_c.js"),[]),path:"/typed/queries",type:"mdx",filePath:"typed/queries.md",lastUpdatedAt:1715961329e3},{lazy:()=>be(()=>import("./queries-CbKGZF_c.js"),[]),path:"/typed/queries.html",type:"mdx",filePath:"typed/queries.md",lastUpdatedAt:1715961329e3}];var Ms={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},rp={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},op={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},ip={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},Ds={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function G0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"".concat(l,":").concat(this[l])).join(";")},writable:!1}),n}var Fx="var(--vocs_ExternalLink_iconUrl)",zx="vocs_ExternalLink";const Bx=p.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Ke(),l=a;return x.jsx("a",{ref:i,className:M(e,n||typeof t!="string"?void 0:zx),href:r,target:"_blank",rel:"noopener noreferrer",style:Yt({[Fx]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var ap="vocs_Link_accent_underlined",lp="vocs_Link",sp="vocs_Link_styleless",lu=new Map,xa=new WeakMap,cp=0,Ux=void 0;function Hx(e){return e?(xa.has(e)||(cp+=1,xa.set(e,cp.toString())),xa.get(e)):"0"}function Vx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Hx(e.root):e[t]}`).toString()}function Wx(e){const t=Vx(e);let n=lu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const u=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=u),(s=r.get(l.target))==null||s.forEach(f=>{f(u,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},lu.set(t,n)}return n}function Kx(e,t,n={},r=Ux){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=Wx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),lu.delete(o))}}function Q0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:u}={}){var f;const[c,d]=p.useState(null),h=p.useRef(),[y,v]=p.useState({inView:!!l,entry:void 0});h.current=u,p.useEffect(()=>{if(a||!c)return;let w;return w=Kx(c,(E,S)=>{v({inView:E,entry:S}),h.current&&h.current(E,S),S.isIntersecting&&i&&w&&(w(),w=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,m=p.useRef();!c&&C&&!i&&!a&&m.current!==C&&(m.current=C,v({inView:!!l,entry:void 0}));const g=[d,y.inView,y.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}function Yx(...e){return t=>{Gx(t,...e)}}function Gx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Qn=p.forwardRef((e,t)=>{const n=()=>{var i;return(i=Kf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=Q0();return p.useEffect(()=>{o&&n()},[o,n]),x.jsx(Yl,{ref:Yx(t,r),...e})}),on=p.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Oe();if(n!=null&&n.match(/^(www|https?)/))return x.jsx(Bx,{...e,ref:t,className:M(e.className,lp,r==="accent underlined"&&ap,r==="styleless"&&sp),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return x.jsx(Qn,{...e,ref:t,className:M(e.className,lp,r==="accent underlined"&&ap,r==="styleless"&&sp),to:l})});var Qx="vocs_NotFound_divider",Zx="vocs_NotFound",Xx="vocs_H1",Z0="vocs_Heading",X0="vocs_Heading_slugTarget";function Ao({level:e,...t}){const n=`h${e}`;return x.jsxs(n,{...t,id:void 0,className:M(t.className,Z0),children:[x.jsx("div",{id:t.id,className:X0}),t.children]})}function J0(e){return x.jsx(Ao,{...e,className:M(e.className,Xx),level:1})}var Jx="vocs_Paragraph";function q0(e){return x.jsx("p",{...e,className:M(e.className,Jx)})}function qx(){return x.jsxs("div",{className:Zx,children:[x.jsx(J0,{children:"Page Not Found"}),x.jsx("div",{style:{height:Ds[24]}}),x.jsx("hr",{className:Qx}),x.jsx("div",{style:{height:Ds[24]}}),x.jsx(q0,{children:"The page you were looking for could not be found."}),x.jsx("div",{style:{height:Ds[8]}}),x.jsx(on,{href:"/",children:"Go to Home Page"})]})}var e5="var(--vocs_Banner_bannerBackgroundColor)",t5="var(--vocs_Banner_bannerHeight)",n5="var(--vocs_Banner_bannerTextColor)",r5="vocs_Banner_closeButton",o5="vocs_Banner_content",i5="vocs_Banner_inner",a5="vocs_Banner";const l5=Object.getPrototypeOf(s5).constructor;async function s5(e,t){return new l5(String(e))(t)}function c5(e,t){return new Function(String(e))(t)}function Rr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var u5=["color"],f5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,u5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],h5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,d5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p5=["color"],v5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,p5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),m5=["color"],g5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,m5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),y5=["color"],w5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,y5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),x5=["color"],Yf=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,x5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),C5=["color"],E5=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,C5);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),p.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Cl(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>Cl(r,o));const n=e.props.children?{...e.props,children:Cl(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function _5({hide:e}){const{banner:t}=Ke(),n=p.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>Cl(r);const{default:o}=c5(r,{...Qy,Fragment:p.Fragment});return o},[t]);return n?x.jsx("div",{className:M(a5),style:Yt({[e5]:t==null?void 0:t.backgroundColor,[n5]:t==null?void 0:t.textColor}),children:x.jsxs("div",{className:M(i5),children:[x.jsx("div",{className:M(o5),children:x.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&x.jsx("button",{className:M(r5),onClick:e,type:"button",children:x.jsx(v5,{width:14,height:14})})]})}):null}var S5="vocs_Content";function eg({children:e,className:t}){return x.jsx("article",{className:M(t,S5),children:e})}function tg({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&tg({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Yi({items:e,pathname:t}){return p.useMemo(()=>tg({items:e,pathname:t}),[e,t])}function Pr(){const e=p.useContext(ng);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const ng=p.createContext(void 0);function Gl(){const{pathname:e}=Oe(),t=Ke(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=p.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Nr(){const e=Gl(),{frontmatter:t}=Pr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function b5(){const[e,t]=p.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return p.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var $5="vocs_utils_visibleDark",T5="vocs_utils_visibleLight",rg="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>k5(n,t))}function Ue(...e){return p.useCallback(og(...e),e)}function _n(e,t=[]){let n=[];function r(i,a){const l=p.createContext(a),s=n.length;n=[...n,a];function u(c){const{scope:d,children:h,...y}=c,v=(d==null?void 0:d[e][s])||l,C=p.useMemo(()=>y,Object.values(y));return p.createElement(v.Provider,{value:C},h)}function f(c,d){const h=(d==null?void 0:d[e][s])||l,y=p.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>p.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,R5(o,...t)]}function R5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const c=s(i)[`__scope${u}`];return{...l,...c}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const wn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},P5=Vu.useId||(()=>{});let N5=0;function an(e){const[t,n]=p.useState(P5());return wn(()=>{n(r=>r??String(N5++))},[e]),t?`radix-${t}`:""}function lt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function or({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=A5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=lt(n),s=p.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&l(c)}else o(u)},[i,e,o,l]);return[a,s]}function A5({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),i=lt(t);return p.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const So=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),i=o.find(I5);if(i){const a=i.props.children,l=o.map(s=>s===i?p.Children.count(a)>1?p.Children.only(null):p.isValidElement(a)?a.props.children:null:s);return p.createElement(su,Y({},r,{ref:t}),p.isValidElement(a)?p.cloneElement(a,void 0,l):null)}return p.createElement(su,Y({},r,{ref:t}),n)});So.displayName="Slot";const su=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...O5(r,n.props),ref:t?og(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});su.displayName="SlotClone";const L5=({children:e})=>p.createElement(p.Fragment,null,e);function I5(e){return p.isValidElement(e)&&e.type===L5}function O5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const M5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=M5.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?So:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cu(e,t){e&&Po.flushSync(()=>e.dispatchEvent(t))}function D5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uu="dismissableLayer.update",j5="dismissableLayer.pointerDownOutside",F5="dismissableLayer.focusOutside";let up;const z5=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gf=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=p.useContext(z5),[c,d]=p.useState(null),h=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=p.useState({}),v=Ue(t,b=>d(b)),C=Array.from(f.layers),[m]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),g=C.indexOf(m),w=c?C.indexOf(c):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=w>=g,$=B5(b=>{const k=b.target,N=[...f.branches].some(O=>O.contains(k));!S||N||(i==null||i(b),l==null||l(b),b.defaultPrevented||s==null||s())},h),_=U5(b=>{const k=b.target;[...f.branches].some(O=>O.contains(k))||(a==null||a(b),l==null||l(b),b.defaultPrevented||s==null||s())},h);return D5(b=>{w===f.layers.size-1&&(o==null||o(b),!b.defaultPrevented&&s&&(b.preventDefault(),s()))},h),p.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(up=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),fp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=up)}},[c,h,r,f]),p.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),fp())},[c,f]),p.useEffect(()=>{const b=()=>y({});return document.addEventListener(uu,b),()=>document.removeEventListener(uu,b)},[]),p.createElement(fe.div,Y({},u,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,_.onFocusCapture),onBlurCapture:le(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,$.onPointerDownCapture)}))});function B5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){ig(j5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function U5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!r.current&&ig(F5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fp(){const e=new CustomEvent(uu);document.dispatchEvent(e)}function ig(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?cu(o,i):o.dispatchEvent(i)}const js="focusScope.autoFocusOnMount",Fs="focusScope.autoFocusOnUnmount",dp={bubbles:!1,cancelable:!0},ag=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=p.useState(null),u=lt(o),f=lt(i),c=p.useRef(null),d=Ue(t,v=>s(v)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let v=function(w){if(h.paused||!l)return;const E=w.target;l.contains(E)?c.current=E:An(c.current,{select:!0})},C=function(w){if(h.paused||!l)return;const E=w.relatedTarget;E!==null&&(l.contains(E)||An(c.current,{select:!0}))},m=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&An(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",C);const g=new MutationObserver(m);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",C),g.disconnect()}}},[r,l,h.paused]),p.useEffect(()=>{if(l){pp.add(h);const v=document.activeElement;if(!l.contains(v)){const m=new CustomEvent(js,dp);l.addEventListener(js,u),l.dispatchEvent(m),m.defaultPrevented||(H5(G5(lg(l)),{select:!0}),document.activeElement===v&&An(l))}return()=>{l.removeEventListener(js,u),setTimeout(()=>{const m=new CustomEvent(Fs,dp);l.addEventListener(Fs,f),l.dispatchEvent(m),m.defaultPrevented||An(v??document.body,{select:!0}),l.removeEventListener(Fs,f),pp.remove(h)},0)}}},[l,u,f,h]);const y=p.useCallback(v=>{if(!n&&!r||h.paused)return;const C=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(C&&m){const g=v.currentTarget,[w,E]=V5(g);w&&E?!v.shiftKey&&m===E?(v.preventDefault(),n&&An(w,{select:!0})):v.shiftKey&&m===w&&(v.preventDefault(),n&&An(E,{select:!0})):m===g&&v.preventDefault()}},[n,r,h.paused]);return p.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:y}))});function H5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(An(r,{select:t}),document.activeElement!==n)return}function V5(e){const t=lg(e),n=hp(t,e),r=hp(t.reverse(),e);return[n,r]}function lg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hp(e,t){for(const n of e)if(!W5(n,{upTo:t}))return n}function W5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function K5(e){return e instanceof HTMLInputElement&&"select"in e}function An(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&K5(e)&&t&&e.select()}}const pp=Y5();function Y5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vp(e,t),e.unshift(t)},remove(t){var n;e=vp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function vp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function G5(e){return e.filter(t=>t.tagName!=="A")}const sg=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?k0.createPortal(p.createElement(fe.div,Y({},o,{ref:t})),r):null});function Q5(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Sn=e=>{const{present:t,children:n}=e,r=Z5(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Ue(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:i}):null};Sn.displayName="Presence";function Z5(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[l,s]=Q5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Ca(r.current);i.current=l==="mounted"?u:"none"},[l]),wn(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,h=Ca(u);e?s("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),wn(()=>{if(t){const u=c=>{const h=Ca(r.current).includes(c.animationName);c.target===t&&h&&Po.flushSync(()=>s("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=Ca(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ca(e){return(e==null?void 0:e.animationName)||"none"}let zs=0;function cg(){p.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:mp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:mp()),zs++,()=>{zs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),zs--}},[])}function mp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var en=function(){return en=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return h4;var t=p4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},m4=hg(),uo="data-scroll-locked",g4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(J5,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -105,13 +105,13 @@ Error generating stack: `+i.message+` `)},yp=function(){var e=parseInt(document.body.getAttribute(uo)||"0",10);return isFinite(e)?e:0},y4=function(){p.useEffect(function(){return document.body.setAttribute(uo,(yp()+1).toString()),function(){var e=yp()-1;e<=0?document.body.removeAttribute(uo):document.body.setAttribute(uo,e.toString())}},[])},w4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;y4();var i=p.useMemo(function(){return v4(o)},[o]);return p.createElement(m4,{styles:g4(i,!t,o,n?"":"!important")})},fu=!1;if(typeof window<"u")try{var Ea=Object.defineProperty({},"passive",{get:function(){return fu=!0,!0}});window.addEventListener("test",Ea,Ea),window.removeEventListener("test",Ea,Ea)}catch{fu=!1}var zr=fu?{passive:!1}:!1,x4=function(e){return e.tagName==="TEXTAREA"},pg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!x4(e)&&n[t]==="visible")},C4=function(e){return pg(e,"overflowY")},E4=function(e){return pg(e,"overflowX")},wp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=vg(e,n);if(r){var o=mg(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},_4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},S4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vg=function(e,t){return e==="v"?C4(t):E4(t)},mg=function(e,t){return e==="v"?_4(t):S4(t)},b4=function(e,t){return e==="h"&&t==="rtl"?-1:1},$4=function(e,t,n,r,o){var i=b4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,f=a>0,c=0,d=0;do{var h=mg(e,l),y=h[0],v=h[1],C=h[2],m=v-C-i*y;(y||m)&&vg(e,l)&&(c+=m,d+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(c===0||!o)||!f&&(d===0||!o))&&(u=!0),u},_a=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xp=function(e){return[e.deltaX,e.deltaY]},Cp=function(e){return e&&"current"in e?e.current:e},T4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},k4=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},R4=0,Br=[];function P4(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(R4++)[0],i=p.useState(function(){return hg()})[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=X5([e.lockRef.current],(e.shards||[]).map(Cp),!0).filter(Boolean);return v.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(v,C){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var m=_a(v),g=n.current,w="deltaX"in v?v.deltaX:g[0]-m[0],E="deltaY"in v?v.deltaY:g[1]-m[1],S,$=v.target,_=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in v&&_==="h"&&$.type==="range")return!1;var b=wp(_,$);if(!b)return!0;if(b?S=_:(S=_==="v"?"h":"v",b=wp(_,$)),!b)return!1;if(!r.current&&"changedTouches"in v&&(w||E)&&(r.current=S),!S)return!0;var k=r.current||S;return $4(k,C,v,k==="h"?w:E,!0)},[]),s=p.useCallback(function(v){var C=v;if(!(!Br.length||Br[Br.length-1]!==i)){var m="deltaY"in C?xp(C):_a(C),g=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&T4(S.delta,m)})[0];if(g&&g.should){C.cancelable&&C.preventDefault();return}if(!g){var w=(a.current.shards||[]).map(Cp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=w.length>0?l(C,w[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),u=p.useCallback(function(v,C,m,g){var w={name:v,delta:C,target:m,should:g};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=p.useCallback(function(v){n.current=_a(v),r.current=void 0},[]),c=p.useCallback(function(v){u(v.type,xp(v),v.target,l(v,e.lockRef.current))},[]),d=p.useCallback(function(v){u(v.type,_a(v),v.target,l(v,e.lockRef.current))},[]);p.useEffect(function(){return Br.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,zr),document.addEventListener("touchmove",s,zr),document.addEventListener("touchstart",f,zr),function(){Br=Br.filter(function(v){return v!==i}),document.removeEventListener("wheel",s,zr),document.removeEventListener("touchmove",s,zr),document.removeEventListener("touchstart",f,zr)}},[]);var h=e.removeScrollBar,y=e.inert;return p.createElement(p.Fragment,null,y?p.createElement(i,{styles:k4(o)}):null,h?p.createElement(w4,{gapMode:"margin"}):null)}const N4=a4(dg,P4);var Qf=p.forwardRef(function(e,t){return p.createElement(Ql,en({},e,{ref:t,sideCar:N4}))});Qf.classNames=Ql.classNames;var A4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Sa=new WeakMap,ba={},Vs=0,gg=function(e){return e&&(e.host||gg(e.parentNode))},L4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=gg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},I4=function(e,t,n,r){var o=L4(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var i=ba[n],a=[],l=new Set,s=new Set(o),u=function(c){!c||l.has(c)||(l.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(d){if(l.has(d))f(d);else try{var h=d.getAttribute(r),y=h!==null&&h!=="false",v=(Ur.get(d)||0)+1,C=(i.get(d)||0)+1;Ur.set(d,v),i.set(d,C),a.push(d),v===1&&y&&Sa.set(d,!0),C===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return f(t),l.clear(),Vs++,function(){a.forEach(function(c){var d=Ur.get(c)-1,h=i.get(c)-1;Ur.set(c,d),i.set(c,h),d||(Sa.has(c)||c.removeAttribute(r),Sa.delete(c)),h||c.removeAttribute(n)}),Vs--,Vs||(Ur=new WeakMap,Ur=new WeakMap,Sa=new WeakMap,ba={})}},yg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=A4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),I4(r,o,n,"aria-hidden")):function(){return null}};const wg="Dialog",[xg,s$]=En(wg),[O4,Sn]=xg(wg),M4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=p.useRef(null),s=p.useRef(null),[u=!1,f]=or({prop:r,defaultProp:o,onChange:i});return p.createElement(O4,{scope:t,triggerRef:l,contentRef:s,contentId:on(),titleId:on(),descriptionId:on(),open:u,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(c=>!c),[f]),modal:a},n)},D4="DialogTrigger",j4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(D4,n),i=Ue(t,o.triggerRef);return p.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Zf(o.open)},r,{ref:i,onClick:le(e.onClick,o.onOpenToggle)}))}),Cg="DialogPortal",[F4,Eg]=xg(Cg,{forceMount:void 0}),z4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(Cg,t);return p.createElement(F4,{scope:t,forceMount:n},p.Children.map(r,a=>p.createElement(_n,{present:n||i.open},p.createElement(sg,{asChild:!0,container:o},a))))},du="DialogOverlay",B4=p.forwardRef((e,t)=>{const n=Eg(du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(du,e.__scopeDialog);return i.modal?p.createElement(_n,{present:r||i.open},p.createElement(U4,Y({},o,{ref:t}))):null}),U4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(du,n);return p.createElement(Qf,{as:So,allowPinchZoom:!0,shards:[o.contentRef]},p.createElement(fe.div,Y({"data-state":Zf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Mi="DialogContent",H4=p.forwardRef((e,t)=>{const n=Eg(Mi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Mi,e.__scopeDialog);return p.createElement(_n,{present:r||i.open},i.modal?p.createElement(V4,Y({},o,{ref:t})):p.createElement(W4,Y({},o,{ref:t})))}),V4=p.forwardRef((e,t)=>{const n=Sn(Mi,e.__scopeDialog),r=p.useRef(null),o=Ue(t,n.contentRef,r);return p.useEffect(()=>{const i=r.current;if(i)return yg(i)},[]),p.createElement(_g,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault())}))}),W4=p.forwardRef((e,t)=>{const n=Sn(Mi,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return p.createElement(_g,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),_g=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Mi,n),s=p.useRef(null),u=Ue(t,s);return cg(),p.createElement(p.Fragment,null,p.createElement(ag,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},p.createElement(Gf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Zf(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),K4="DialogTitle",Y4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(K4,n);return p.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Zf(e){return e?"open":"closed"}const Sg=M4,bg=j4,G4=z4,Q4=B4,Z4=H4,X4=Y4;var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var e6="ENTRIES",$g="KEYS",Tg="VALUES",Xe="",Ws=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Hr(this._path),n=t.node,r=t.keys;if(Hr(r)===Xe)return{done:!1,value:this.result()};var o=n.get(Hr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Hr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Hr(n)}).filter(function(t){return t!==Xe}).join("")},e.prototype.value=function(){return Hr(this._path).node.get(Xe)},e.prototype.result=function(){switch(this._type){case Tg:return this.value();case $g:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Hr=function(e){return e[e.length-1]},t6=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}kg(e.get(h),t,n,r,o,v,a,l+h)}}}catch(I){s={error:I}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}},Ks=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(El(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Xf(a),2),s=l[0],u=l[1];try{for(var f=re(s.keys()),c=f.next();!c.done;c=f.next()){var d=c.value;if(d!==Xe&&d.startsWith(u)){var h=new Map;return h.set(d.slice(u.length),s.get(d)),new e(h,t)}}}catch(y){n={error:y}}finally{try{c&&!c.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,n6(this._tree,t)},e.prototype.entries=function(){return new Ws(this,e6)},e.prototype.forEach=function(t){var n,r;try{for(var o=re(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return t6(this._tree,t,n)},e.prototype.get=function(t){var n=hu(this._tree,t);return n!==void 0?n.get(Xe):void 0},e.prototype.has=function(t){var n=hu(this._tree,t);return n!==void 0&&n.has(Xe)},e.prototype.keys=function(){return new Ws(this,$g)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Xe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Xe,n(r.get(Xe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t),o=r.get(Xe);return o===void 0&&r.set(Xe,o=n()),o},e.prototype.values=function(){return new Ws(this,Tg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=re(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],u=l[1];o.set(s,u)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),El=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=re(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Xe&&t.startsWith(l))return n.push([e,l]),El(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),El(void 0,"",n)},hu=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=re(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Xe&&t.startsWith(a))return hu(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Ys=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ks,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=re(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=vu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return J4(this,void 0,void 0,function(){var r,o,i,a,l,s,u,f,c,d,h,y,v,C,m,g,w,E,S,$,_,b,k,N,M;return q4(this,function(D){switch(D.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||pu.batchSize,i=t.batchWait||pu.batchWait,a=1,D.label=1;case 1:D.trys.push([1,7,8,9]),l=re(this._index),s=l.next(),D.label=2;case 2:if(s.done)return[3,6];u=Le(s.value,2),f=u[0],c=u[1];try{for(d=(b=void 0,re(c)),h=d.next();!h.done;h=d.next()){y=Le(h.value,2),v=y[0],C=y[1];try{for(m=(N=void 0,re(C)),g=m.next();!g.done;g=m.next())w=Le(g.value,1),E=w[0],!this._documentIds.has(E)&&(C.size<=1?c.delete(v):C.delete(E))}catch(I){N={error:I}}finally{try{g&&!g.done&&(M=m.return)&&M.call(m)}finally{if(N)throw N.error}}}}catch(I){b={error:I}}finally{try{h&&!h.done&&(k=d.return)&&k.call(d)}finally{if(b)throw b.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(I){return setTimeout(I,i)})];case 3:D.sent(),D.label=4;case 4:a+=1,D.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=D.sent(),$={error:S},[3,9];case 8:try{s&&!s.done&&(_=l.return)&&_.call(l)}finally{if($)throw $.error}return[7];case 9:this._dirtCount-=r,D.label=10;case 10:return[4,null];case 11:return D.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Zs.minDirtCount,r=r||Zs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=re(i),s=l.next();!s.done;s=l.next()){var u=Le(s.value,2),f=u[0],c=u[1],d=c.score,h=c.terms,y=c.match,v=h.length||1,C={id:this._documentIds.get(f),score:d*v,terms:Object.keys(y),queryTerms:h,match:y};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(m){r={error:m}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(Sp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=he(he({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=re(this.search(t,n)),u=s.next();!u.done;u=s.next()){var f=u.value,c=f.score,d=f.terms,h=d.join(" "),y=l.get(h);y!=null?(y.score+=c,y.count+=1):l.set(h,{score:c,terms:d,count:1})}}catch(S){r={error:S}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var v=[];try{for(var C=re(l),m=C.next();!m.done;m=C.next()){var g=Le(m.value,2),y=g[0],w=g[1],c=w.score,d=w.terms,E=w.count;v.push({suggestion:y,terms:d,score:c/E})}}catch(S){i={error:S}}finally{try{m&&!m.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return v.sort(Sp),v},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Qs.hasOwnProperty(t))return Gs(Qs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,u=t.index,f=t.documentCount,c=t.nextId,d=t.documentIds,h=t.fieldIds,y=t.fieldLength,v=t.averageFieldLength,C=t.storedFields,m=t.dirtCount,g=t.serializationVersion;if(g!==1&&g!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var w=new e(n);w._documentCount=f,w._nextId=c,w._documentIds=$a(d),w._idToShortId=new Map,w._fieldIds=h,w._fieldLength=$a(y),w._avgFieldLength=v,w._storedFields=$a(C),w._dirtCount=m||0,w._index=new Ks;try{for(var E=re(w._documentIds),S=E.next();!S.done;S=E.next()){var $=Le(S.value,2),_=$[0],b=$[1];w._idToShortId.set(b,_)}}catch(U){r={error:U}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=re(u),N=k.next();!N.done;N=k.next()){var M=Le(N.value,2),D=M[0],I=M[1],R=new Map;try{for(var B=(l=void 0,re(Object.keys(I))),G=B.next();!G.done;G=B.next()){var z=G.value,L=I[z];g===1&&(L=L.ds),R.set(parseInt(z,10),$a(L))}}catch(U){l={error:U}}finally{try{G&&!G.done&&(s=B.return)&&s.call(B)}finally{if(l)throw l.error}}w._index.set(D,R)}}catch(U){i={error:U}}finally{try{N&&!N.done&&(a=k.return)&&a.call(k)}finally{if(i)throw i.error}}return w},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=he(he(he({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,u=a.searchOptions,f=he(he({tokenize:l,processTerm:s},u),n),c=f.tokenize,d=f.processTerm,h=c(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=h.map(s6(f)),v=y.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(v,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=he(he({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(z,L){var U;return he(he({},z),(U={},U[L]=Gs(l.boost,L)||1,U))},{}),u=l.boostDocument,f=l.weights,c=l.maxFuzzy,d=l.bm25,h=he(he({},Ep.weights),f),y=h.fuzzy,v=h.prefix,C=this._index.get(t.term),m=this.termResults(t.term,t.term,1,C,s,u,d),g,w;if(t.prefix&&(g=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(c,Math.round(t.term.length*E)):E;S&&(w=this._index.fuzzyGet(t.term,S))}if(g)try{for(var $=re(g),_=$.next();!_.done;_=$.next()){var b=Le(_.value,2),k=b[0],N=b[1],M=k.length-t.term.length;if(M){w==null||w.delete(k);var D=v*k.length/(k.length+.3*M);this.termResults(t.term,k,D,N,s,u,d,m)}}}catch(z){r={error:z}}finally{try{_&&!_.done&&(o=$.return)&&o.call($)}finally{if(r)throw r.error}}if(w)try{for(var I=re(w.keys()),R=I.next();!R.done;R=I.next()){var k=R.value,B=Le(w.get(k),2),G=B[0],M=B[1];if(M){var D=y*k.length/(k.length+M);this.termResults(t.term,k,D,G,s,u,d,m)}}}catch(z){i={error:z}}finally{try{R&&!R.done&&(a=I.return)&&a.call(I)}finally{if(i)throw i.error}}return m},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=he(he({},this._options.searchOptions),t);try{for(var a=re(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(u)):1;o.set(u,{score:c,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Jf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(i6[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=re(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c={};try{for(var d=(r=void 0,re(f)),h=d.next();!h.done;h=d.next()){var y=Le(h.value,2),v=y[0],C=y[1];c[v]=Object.fromEntries(C)}}catch(m){r={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([u,c])}}catch(m){t={error:m}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var u,f,c,d,h;if(s===void 0&&(s=new Map),o==null)return s;try{for(var y=re(Object.keys(i)),v=y.next();!v.done;v=y.next()){var C=v.value,m=i[C],g=this._fieldIds[C],w=o.get(g);if(w!=null){var E=w.size,S=this._avgFieldLength[g];try{for(var $=(c=void 0,re(w.keys())),_=$.next();!_.done;_=$.next()){var b=_.value;if(!this._documentIds.has(b)){this.removeTerm(g,b,n),E-=1;continue}var k=a?a(this._documentIds.get(b),n,this._storedFields.get(b)):1;if(k){var N=w.get(b),M=this._fieldLength.get(b)[g],D=l6(N,E,this._documentCount,M,S,l),I=r*m*k*D,R=s.get(b);if(R){R.score+=I,u6(R.terms,t);var B=Gs(R.match,n);B?B.push(C):R.match[n]=[C]}else s.set(b,{score:I,terms:[t],match:(h={},h[n]=[C],h)})}}}catch(G){c={error:G}}finally{try{_&&!_.done&&(d=$.return)&&d.call($)}finally{if(c)throw c.error}}}}}catch(G){u={error:G}}finally{try{v&&!v.done&&(f=y.return)&&f.call(y)}finally{if(u)throw u.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,bp),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,bp),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=re(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-6b888e0d.json")).json());let Xs;function Ag(){const[e,t]=p.useState();return p.useEffect(()=>{(async()=>{Xs||(Xs=d6());const n=await Xs,r=o6.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),p.useEffect(()=>{},[]),e}var h6="vocs_DesktopSearch_search",p6="vocs_DesktopSearch_searchCommand";const v6=p.forwardRef((e,t)=>p.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),m6=v6;var Lg={exports:{}};/*!*************************************************** +`)},R4=0,Br=[];function P4(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(R4++)[0],i=p.useState(function(){return hg()})[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=X5([e.lockRef.current],(e.shards||[]).map(Cp),!0).filter(Boolean);return v.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(v,C){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var m=_a(v),g=n.current,w="deltaX"in v?v.deltaX:g[0]-m[0],E="deltaY"in v?v.deltaY:g[1]-m[1],S,$=v.target,_=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in v&&_==="h"&&$.type==="range")return!1;var b=wp(_,$);if(!b)return!0;if(b?S=_:(S=_==="v"?"h":"v",b=wp(_,$)),!b)return!1;if(!r.current&&"changedTouches"in v&&(w||E)&&(r.current=S),!S)return!0;var k=r.current||S;return $4(k,C,v,k==="h"?w:E,!0)},[]),s=p.useCallback(function(v){var C=v;if(!(!Br.length||Br[Br.length-1]!==i)){var m="deltaY"in C?xp(C):_a(C),g=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&T4(S.delta,m)})[0];if(g&&g.should){C.cancelable&&C.preventDefault();return}if(!g){var w=(a.current.shards||[]).map(Cp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=w.length>0?l(C,w[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),u=p.useCallback(function(v,C,m,g){var w={name:v,delta:C,target:m,should:g};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=p.useCallback(function(v){n.current=_a(v),r.current=void 0},[]),c=p.useCallback(function(v){u(v.type,xp(v),v.target,l(v,e.lockRef.current))},[]),d=p.useCallback(function(v){u(v.type,_a(v),v.target,l(v,e.lockRef.current))},[]);p.useEffect(function(){return Br.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,zr),document.addEventListener("touchmove",s,zr),document.addEventListener("touchstart",f,zr),function(){Br=Br.filter(function(v){return v!==i}),document.removeEventListener("wheel",s,zr),document.removeEventListener("touchmove",s,zr),document.removeEventListener("touchstart",f,zr)}},[]);var h=e.removeScrollBar,y=e.inert;return p.createElement(p.Fragment,null,y?p.createElement(i,{styles:k4(o)}):null,h?p.createElement(w4,{gapMode:"margin"}):null)}const N4=a4(dg,P4);var Qf=p.forwardRef(function(e,t){return p.createElement(Ql,en({},e,{ref:t,sideCar:N4}))});Qf.classNames=Ql.classNames;var A4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Sa=new WeakMap,ba={},Vs=0,gg=function(e){return e&&(e.host||gg(e.parentNode))},L4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=gg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},I4=function(e,t,n,r){var o=L4(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var i=ba[n],a=[],l=new Set,s=new Set(o),u=function(c){!c||l.has(c)||(l.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(d){if(l.has(d))f(d);else try{var h=d.getAttribute(r),y=h!==null&&h!=="false",v=(Ur.get(d)||0)+1,C=(i.get(d)||0)+1;Ur.set(d,v),i.set(d,C),a.push(d),v===1&&y&&Sa.set(d,!0),C===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return f(t),l.clear(),Vs++,function(){a.forEach(function(c){var d=Ur.get(c)-1,h=i.get(c)-1;Ur.set(c,d),i.set(c,h),d||(Sa.has(c)||c.removeAttribute(r),Sa.delete(c)),h||c.removeAttribute(n)}),Vs--,Vs||(Ur=new WeakMap,Ur=new WeakMap,Sa=new WeakMap,ba={})}},yg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=A4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),I4(r,o,n,"aria-hidden")):function(){return null}};const wg="Dialog",[xg,s$]=_n(wg),[O4,bn]=xg(wg),M4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=p.useRef(null),s=p.useRef(null),[u=!1,f]=or({prop:r,defaultProp:o,onChange:i});return p.createElement(O4,{scope:t,triggerRef:l,contentRef:s,contentId:an(),titleId:an(),descriptionId:an(),open:u,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(c=>!c),[f]),modal:a},n)},D4="DialogTrigger",j4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(D4,n),i=Ue(t,o.triggerRef);return p.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Zf(o.open)},r,{ref:i,onClick:le(e.onClick,o.onOpenToggle)}))}),Cg="DialogPortal",[F4,Eg]=xg(Cg,{forceMount:void 0}),z4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=bn(Cg,t);return p.createElement(F4,{scope:t,forceMount:n},p.Children.map(r,a=>p.createElement(Sn,{present:n||i.open},p.createElement(sg,{asChild:!0,container:o},a))))},du="DialogOverlay",B4=p.forwardRef((e,t)=>{const n=Eg(du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bn(du,e.__scopeDialog);return i.modal?p.createElement(Sn,{present:r||i.open},p.createElement(U4,Y({},o,{ref:t}))):null}),U4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(du,n);return p.createElement(Qf,{as:So,allowPinchZoom:!0,shards:[o.contentRef]},p.createElement(fe.div,Y({"data-state":Zf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Mi="DialogContent",H4=p.forwardRef((e,t)=>{const n=Eg(Mi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bn(Mi,e.__scopeDialog);return p.createElement(Sn,{present:r||i.open},i.modal?p.createElement(V4,Y({},o,{ref:t})):p.createElement(W4,Y({},o,{ref:t})))}),V4=p.forwardRef((e,t)=>{const n=bn(Mi,e.__scopeDialog),r=p.useRef(null),o=Ue(t,n.contentRef,r);return p.useEffect(()=>{const i=r.current;if(i)return yg(i)},[]),p.createElement(_g,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault())}))}),W4=p.forwardRef((e,t)=>{const n=bn(Mi,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return p.createElement(_g,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),_g=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=bn(Mi,n),s=p.useRef(null),u=Ue(t,s);return cg(),p.createElement(p.Fragment,null,p.createElement(ag,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},p.createElement(Gf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Zf(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),K4="DialogTitle",Y4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(K4,n);return p.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Zf(e){return e?"open":"closed"}const Sg=M4,bg=j4,G4=z4,Q4=B4,Z4=H4,X4=Y4;var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var e6="ENTRIES",$g="KEYS",Tg="VALUES",Xe="",Ws=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Hr(this._path),n=t.node,r=t.keys;if(Hr(r)===Xe)return{done:!1,value:this.result()};var o=n.get(Hr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Hr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Hr(n)}).filter(function(t){return t!==Xe}).join("")},e.prototype.value=function(){return Hr(this._path).node.get(Xe)},e.prototype.result=function(){switch(this._type){case Tg:return this.value();case $g:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Hr=function(e){return e[e.length-1]},t6=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}kg(e.get(h),t,n,r,o,v,a,l+h)}}}catch(I){s={error:I}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}},Ks=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(El(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Xf(a),2),s=l[0],u=l[1];try{for(var f=re(s.keys()),c=f.next();!c.done;c=f.next()){var d=c.value;if(d!==Xe&&d.startsWith(u)){var h=new Map;return h.set(d.slice(u.length),s.get(d)),new e(h,t)}}}catch(y){n={error:y}}finally{try{c&&!c.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,n6(this._tree,t)},e.prototype.entries=function(){return new Ws(this,e6)},e.prototype.forEach=function(t){var n,r;try{for(var o=re(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return t6(this._tree,t,n)},e.prototype.get=function(t){var n=hu(this._tree,t);return n!==void 0?n.get(Xe):void 0},e.prototype.has=function(t){var n=hu(this._tree,t);return n!==void 0&&n.has(Xe)},e.prototype.keys=function(){return new Ws(this,$g)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Xe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Xe,n(r.get(Xe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t),o=r.get(Xe);return o===void 0&&r.set(Xe,o=n()),o},e.prototype.values=function(){return new Ws(this,Tg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=re(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],u=l[1];o.set(s,u)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),El=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=re(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Xe&&t.startsWith(l))return n.push([e,l]),El(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),El(void 0,"",n)},hu=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=re(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Xe&&t.startsWith(a))return hu(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Ys=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ks,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=re(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=vu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return J4(this,void 0,void 0,function(){var r,o,i,a,l,s,u,f,c,d,h,y,v,C,m,g,w,E,S,$,_,b,k,N,O;return q4(this,function(D){switch(D.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||pu.batchSize,i=t.batchWait||pu.batchWait,a=1,D.label=1;case 1:D.trys.push([1,7,8,9]),l=re(this._index),s=l.next(),D.label=2;case 2:if(s.done)return[3,6];u=Le(s.value,2),f=u[0],c=u[1];try{for(d=(b=void 0,re(c)),h=d.next();!h.done;h=d.next()){y=Le(h.value,2),v=y[0],C=y[1];try{for(m=(N=void 0,re(C)),g=m.next();!g.done;g=m.next())w=Le(g.value,1),E=w[0],!this._documentIds.has(E)&&(C.size<=1?c.delete(v):C.delete(E))}catch(I){N={error:I}}finally{try{g&&!g.done&&(O=m.return)&&O.call(m)}finally{if(N)throw N.error}}}}catch(I){b={error:I}}finally{try{h&&!h.done&&(k=d.return)&&k.call(d)}finally{if(b)throw b.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(I){return setTimeout(I,i)})];case 3:D.sent(),D.label=4;case 4:a+=1,D.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=D.sent(),$={error:S},[3,9];case 8:try{s&&!s.done&&(_=l.return)&&_.call(l)}finally{if($)throw $.error}return[7];case 9:this._dirtCount-=r,D.label=10;case 10:return[4,null];case 11:return D.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Zs.minDirtCount,r=r||Zs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=re(i),s=l.next();!s.done;s=l.next()){var u=Le(s.value,2),f=u[0],c=u[1],d=c.score,h=c.terms,y=c.match,v=h.length||1,C={id:this._documentIds.get(f),score:d*v,terms:Object.keys(y),queryTerms:h,match:y};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(m){r={error:m}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(Sp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=he(he({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=re(this.search(t,n)),u=s.next();!u.done;u=s.next()){var f=u.value,c=f.score,d=f.terms,h=d.join(" "),y=l.get(h);y!=null?(y.score+=c,y.count+=1):l.set(h,{score:c,terms:d,count:1})}}catch(S){r={error:S}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var v=[];try{for(var C=re(l),m=C.next();!m.done;m=C.next()){var g=Le(m.value,2),y=g[0],w=g[1],c=w.score,d=w.terms,E=w.count;v.push({suggestion:y,terms:d,score:c/E})}}catch(S){i={error:S}}finally{try{m&&!m.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return v.sort(Sp),v},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Qs.hasOwnProperty(t))return Gs(Qs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,u=t.index,f=t.documentCount,c=t.nextId,d=t.documentIds,h=t.fieldIds,y=t.fieldLength,v=t.averageFieldLength,C=t.storedFields,m=t.dirtCount,g=t.serializationVersion;if(g!==1&&g!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var w=new e(n);w._documentCount=f,w._nextId=c,w._documentIds=$a(d),w._idToShortId=new Map,w._fieldIds=h,w._fieldLength=$a(y),w._avgFieldLength=v,w._storedFields=$a(C),w._dirtCount=m||0,w._index=new Ks;try{for(var E=re(w._documentIds),S=E.next();!S.done;S=E.next()){var $=Le(S.value,2),_=$[0],b=$[1];w._idToShortId.set(b,_)}}catch(U){r={error:U}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=re(u),N=k.next();!N.done;N=k.next()){var O=Le(N.value,2),D=O[0],I=O[1],R=new Map;try{for(var B=(l=void 0,re(Object.keys(I))),G=B.next();!G.done;G=B.next()){var z=G.value,L=I[z];g===1&&(L=L.ds),R.set(parseInt(z,10),$a(L))}}catch(U){l={error:U}}finally{try{G&&!G.done&&(s=B.return)&&s.call(B)}finally{if(l)throw l.error}}w._index.set(D,R)}}catch(U){i={error:U}}finally{try{N&&!N.done&&(a=k.return)&&a.call(k)}finally{if(i)throw i.error}}return w},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=he(he(he({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,u=a.searchOptions,f=he(he({tokenize:l,processTerm:s},u),n),c=f.tokenize,d=f.processTerm,h=c(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=h.map(s6(f)),v=y.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(v,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=he(he({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(z,L){var U;return he(he({},z),(U={},U[L]=Gs(l.boost,L)||1,U))},{}),u=l.boostDocument,f=l.weights,c=l.maxFuzzy,d=l.bm25,h=he(he({},Ep.weights),f),y=h.fuzzy,v=h.prefix,C=this._index.get(t.term),m=this.termResults(t.term,t.term,1,C,s,u,d),g,w;if(t.prefix&&(g=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(c,Math.round(t.term.length*E)):E;S&&(w=this._index.fuzzyGet(t.term,S))}if(g)try{for(var $=re(g),_=$.next();!_.done;_=$.next()){var b=Le(_.value,2),k=b[0],N=b[1],O=k.length-t.term.length;if(O){w==null||w.delete(k);var D=v*k.length/(k.length+.3*O);this.termResults(t.term,k,D,N,s,u,d,m)}}}catch(z){r={error:z}}finally{try{_&&!_.done&&(o=$.return)&&o.call($)}finally{if(r)throw r.error}}if(w)try{for(var I=re(w.keys()),R=I.next();!R.done;R=I.next()){var k=R.value,B=Le(w.get(k),2),G=B[0],O=B[1];if(O){var D=y*k.length/(k.length+O);this.termResults(t.term,k,D,G,s,u,d,m)}}}catch(z){i={error:z}}finally{try{R&&!R.done&&(a=I.return)&&a.call(I)}finally{if(i)throw i.error}}return m},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=he(he({},this._options.searchOptions),t);try{for(var a=re(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(u)):1;o.set(u,{score:c,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Jf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(i6[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=re(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c={};try{for(var d=(r=void 0,re(f)),h=d.next();!h.done;h=d.next()){var y=Le(h.value,2),v=y[0],C=y[1];c[v]=Object.fromEntries(C)}}catch(m){r={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([u,c])}}catch(m){t={error:m}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var u,f,c,d,h;if(s===void 0&&(s=new Map),o==null)return s;try{for(var y=re(Object.keys(i)),v=y.next();!v.done;v=y.next()){var C=v.value,m=i[C],g=this._fieldIds[C],w=o.get(g);if(w!=null){var E=w.size,S=this._avgFieldLength[g];try{for(var $=(c=void 0,re(w.keys())),_=$.next();!_.done;_=$.next()){var b=_.value;if(!this._documentIds.has(b)){this.removeTerm(g,b,n),E-=1;continue}var k=a?a(this._documentIds.get(b),n,this._storedFields.get(b)):1;if(k){var N=w.get(b),O=this._fieldLength.get(b)[g],D=l6(N,E,this._documentCount,O,S,l),I=r*m*k*D,R=s.get(b);if(R){R.score+=I,u6(R.terms,t);var B=Gs(R.match,n);B?B.push(C):R.match[n]=[C]}else s.set(b,{score:I,terms:[t],match:(h={},h[n]=[C],h)})}}}catch(G){c={error:G}}finally{try{_&&!_.done&&(d=$.return)&&d.call($)}finally{if(c)throw c.error}}}}}catch(G){u={error:G}}finally{try{v&&!v.done&&(f=y.return)&&f.call(y)}finally{if(u)throw u.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,bp),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,bp),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=re(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-2bb7e19a.json")).json());let Xs;function Ag(){const[e,t]=p.useState();return p.useEffect(()=>{(async()=>{Xs||(Xs=d6());const n=await Xs,r=o6.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),p.useEffect(()=>{},[]),e}var h6="vocs_DesktopSearch_search",p6="vocs_DesktopSearch_searchCommand";const v6=p.forwardRef((e,t)=>p.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),m6=v6;var Lg={exports:{}};/*!*************************************************** * mark.js v8.11.1 * https://markjs.io/ * Copyright (c) 2014–2018, Julian Kühnel * Released under the MIT license https://git.io/vwTVl -*****************************************************/(function(e,t){(function(n,r){e.exports=r()})($y,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function u(f,c){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,u),this.ctx=f,this.iframes=c,this.exclude=d,this.iframesTimeout=h}return o(u,[{key:"getContexts",value:function(){var c=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(h){var y=d.filter(function(v){return v.contains(h)}).length>0;d.indexOf(h)===-1&&!y&&d.push(h)}),d}},{key:"getIframeContents",value:function(c,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var v=c.contentWindow;if(y=v.document,!v||!y)throw new Error("iframe inaccessible")}catch{h()}y&&d(y)}},{key:"isIframeBlank",value:function(c){var d="about:blank",h=c.getAttribute("src").trim(),y=c.contentWindow.location.href;return y===d&&h!==d&&h}},{key:"observeIframeLoad",value:function(c,d,h){var y=this,v=!1,C=null,m=function g(){if(!v){v=!0,clearTimeout(C);try{y.isIframeBlank(c)||(c.removeEventListener("load",g),y.getIframeContents(c,d,h))}catch{h()}}};c.addEventListener("load",m),C=setTimeout(m,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,d,h){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,d,h):this.getIframeContents(c,d,h):this.observeIframeLoad(c,d,h)}catch{h()}}},{key:"waitForIframes",value:function(c,d){var h=this,y=0;this.forEachIframe(c,function(){return!0},function(v){y++,h.waitForIframes(v.querySelector("html"),function(){--y||d()})},function(v){v||d()})}},{key:"forEachIframe",value:function(c,d,h){var y=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=c.querySelectorAll("iframe"),m=C.length,g=0;C=Array.prototype.slice.call(C);var w=function(){--m<=0&&v(g)};m||w(),C.forEach(function(E){u.matches(E,y.exclude)?w():y.onIframeReady(E,function(S){d(E)&&(g++,h(S)),w()},w)})}},{key:"createIterator",value:function(c,d,h){return document.createNodeIterator(c,d,h,!1)}},{key:"createInstanceOnIframe",value:function(c){return new u(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,d,h){var y=c.compareDocumentPosition(h),v=Node.DOCUMENT_POSITION_PRECEDING;if(y&v)if(d!==null){var C=d.compareDocumentPosition(h),m=Node.DOCUMENT_POSITION_FOLLOWING;if(C&m)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var d=c.previousNode(),h=void 0;return d===null?h=c.nextNode():h=c.nextNode()&&c.nextNode(),{prevNode:d,node:h}}},{key:"checkIframeFilter",value:function(c,d,h,y){var v=!1,C=!1;return y.forEach(function(m,g){m.val===h&&(v=g,C=m.handled)}),this.compareNodeIframe(c,d,h)?(v===!1&&!C?y.push({val:h,handled:!0}):v!==!1&&!C&&(y[v].handled=!0),!0):(v===!1&&y.push({val:h,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,d,h,y){var v=this;c.forEach(function(C){C.handled||v.getIframeContents(C.val,function(m){v.createInstanceOnIframe(m).forEachNode(d,h,y)})})}},{key:"iterateThroughNodes",value:function(c,d,h,y,v){for(var C=this,m=this.createIterator(d,c,y),g=[],w=[],E=void 0,S=void 0,$=function(){var b=C.getIteratorNode(m);return S=b.prevNode,E=b.node,E};$();)this.iframes&&this.forEachIframe(d,function(_){return C.checkIframeFilter(E,S,_,g)},function(_){C.createInstanceOnIframe(_).forEachNode(c,function(b){return w.push(b)},y)}),w.push(E);w.forEach(function(_){h(_)}),this.iframes&&this.handleOpenIframes(g,c,h,y),v()}},{key:"forEachNode",value:function(c,d,h){var y=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),m=C.length;m||v(),C.forEach(function(g){var w=function(){y.iterateThroughNodes(c,g,d,h,function(){--m<=0&&v()})};y.iframes?y.waitForIframes(g,w):w()})}}],[{key:"matches",value:function(c,d){var h=typeof d=="string"?[d]:d,y=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(y){var v=!1;return h.every(function(C){return y.call(c,C)?(v=!0,!1):!0}),v}else return!1}}]),u}(),l=function(){function u(f){r(this,u),this.ctx=f,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return o(u,[{key:"log",value:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",h=this.opt.log;this.opt.debug&&(typeof h>"u"?"undefined":n(h))==="object"&&typeof h[d]=="function"&&h[d]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var d=this.opt.synonyms,h=this.opt.caseSensitive?"":"i",y=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var v in d)if(d.hasOwnProperty(v)){var C=d[v],m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);m!==""&&g!==""&&(c=c.replace(new RegExp("("+this.escapeStr(m)+"|"+this.escapeStr(g)+")","gm"+h),y+("("+this.processSynomyms(m)+"|")+(this.processSynomyms(g)+")")+y))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var d=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(d,h,y){var v=y.charAt(h+1);return/[(|)\\]/.test(v)||v===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(c){var d=[],h=this.opt.ignorePunctuation;return Array.isArray(h)&&h.length&&d.push(this.escapeStr(h.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?c.split(/\u0000+/).join("["+d.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var d=this.opt.caseSensitive?"":"i",h=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],y=[];return c.split("").forEach(function(v){h.every(function(C){if(C.indexOf(v)!==-1){if(y.indexOf(C)>-1)return!1;c=c.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var d=this,h="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",y=this.opt.accuracy,v=typeof y=="string"?y:y.value,C=typeof y=="string"?[]:y.limiters,m="";switch(C.forEach(function(g){m+="|"+d.escapeStr(g)}),v){case"partially":default:return"()("+c+")";case"complementary":return m="\\s"+(m||this.escapeStr(h)),"()([^"+m+"]*"+c+"[^"+m+"]*)";case"exactly":return"(^|\\s"+m+")("+c+")(?=$|\\s"+m+")"}}},{key:"getSeparatedKeywords",value:function(c){var d=this,h=[];return c.forEach(function(y){d.opt.separateWordSearch?y.split(" ").forEach(function(v){v.trim()&&h.indexOf(v)===-1&&h.push(v)}):y.trim()&&h.indexOf(y)===-1&&h.push(y)}),{keywords:h.sort(function(y,v){return v.length-y.length}),length:h.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var d=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var h=[],y=0;return c.sort(function(v,C){return v.start-C.start}).forEach(function(v){var C=d.callNoMatchOnInvalidRanges(v,y),m=C.start,g=C.end,w=C.valid;w&&(v.start=m,v.length=g-m,h.push(v),y=g)}),h}},{key:"callNoMatchOnInvalidRanges",value:function(c,d){var h=void 0,y=void 0,v=!1;return c&&typeof c.start<"u"?(h=parseInt(c.start,10),y=h+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&y-d>0&&y-h>0?v=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:h,end:y,valid:v}}},{key:"checkWhitespaceRanges",value:function(c,d,h){var y=void 0,v=!0,C=h.length,m=d-C,g=parseInt(c.start,10)-m;return g=g>C?C:g,y=g+parseInt(c.length,10),y>C&&(y=C,this.log("End range automatically set to the max value of "+C)),g<0||y-g<0||g>C||y>C?(v=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):h.substring(g,y).replace(/\s+/g,"")===""&&(v=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:g,end:y,valid:v}}},{key:"getTextNodes",value:function(c){var d=this,h="",y=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(v){y.push({start:h.length,end:(h+=v.textContent).length,node:v})},function(v){return d.matchesExclude(v.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:h,nodes:y})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,d,h){var y=this.opt.element?this.opt.element:"mark",v=c.splitText(d),C=v.splitText(h-d),m=document.createElement(y);return m.setAttribute("data-markjs","true"),this.opt.className&&m.setAttribute("class",this.opt.className),m.textContent=v.textContent,v.parentNode.replaceChild(m,v),C}},{key:"wrapRangeInMappedTextNode",value:function(c,d,h,y,v){var C=this;c.nodes.every(function(m,g){var w=c.nodes[g+1];if(typeof w>"u"||w.start>d){if(!y(m.node))return!1;var E=d-m.start,S=(h>m.end?m.end:h)-m.start,$=c.value.substr(0,m.start),_=c.value.substr(S+m.start);if(m.node=C.wrapRangeInTextNode(m.node,E,S),c.value=$+_,c.nodes.forEach(function(b,k){k>=g&&(c.nodes[k].start>0&&k!==g&&(c.nodes[k].start-=S),c.nodes[k].end-=S)}),h-=S,v(m.node.previousSibling,m.start),h>m.end)d=m.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,d,h,y,v){var C=this,m=d===0?0:d+1;this.getTextNodes(function(g){g.nodes.forEach(function(w){w=w.node;for(var E=void 0;(E=c.exec(w.textContent))!==null&&E[m]!=="";)if(h(E[m],w)){var S=E.index;if(m!==0)for(var $=1;${const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function mu(e,t){const[n,r]=p.useState();p.useEffect(()=>{const i=x6(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=p.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function x6(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var C6="vocs_Kbd";function Ig(e){return x.jsx("kbd",{...e,className:O(e.className,C6)})}var E6="vocs_KeyboardShortcut_kbdGroup",_6="vocs_KeyboardShortcut";function ro(e){const{description:t,keys:n}=e;return x.jsxs("span",{className:_6,children:[t,x.jsx("span",{className:E6,children:n.map(r=>x.jsx(Ig,{children:r},r))})]})}var S6="vocs_SearchDialog_content",$p="vocs_SearchDialog_excerpt",b6="vocs_SearchDialog_overlay",$6="vocs_SearchDialog_result",Tp="vocs_SearchDialog_resultIcon",T6="vocs_SearchDialog_resultSelected",k6="vocs_SearchDialog_results",R6="vocs_SearchDialog",P6="vocs_SearchDialog_searchBox",N6="vocs_SearchDialog_searchInput",Ta="vocs_SearchDialog_searchInputIcon",A6="vocs_SearchDialog_searchInputIconDesktop",L6="vocs_SearchDialog_searchInputIconMobile",I6="vocs_SearchDialog_searchShortcuts",kp="vocs_SearchDialog_title",O6="vocs_SearchDialog_titleIcon",M6="vocs_SearchDialog_titles";function Og(e){const{search:t}=Ke(),n=Vf(),r=p.useRef(null),o=p.useRef(null),[i,a]=mu("filterText",""),l=w6(i,200),s=Ag(),[u,f]=p.useState(-1),[c,d]=p.useState(!1),[h,y]=mu("showDetailView",!0),v=p.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=v.length,m=v[u],g=p.useCallback(()=>{var $,_,b;if(!o.current)return;const w=new Set;for(const k of v)for(const N in k.match)w.add(N);const E=new y6(o.current);E.unmark({done(){E==null||E.markRegExp(D6(w))}});const S=o.current.querySelectorAll(`.${$p}`);for(const k of S)($=k.querySelector('mark[data-markjs="true"]'))==null||$.scrollIntoView({block:"center"});(b=(_=o.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[v]);return p.useEffect(()=>{if(!e.open)return;function w(E){var S;switch(E.key){case"ArrowDown":{E.preventDefault(),f($=>{var k;let _=$+1;_>=C&&(_=0);const b=(k=o.current)==null?void 0:k.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"ArrowUp":{E.preventDefault(),f($=>{var k;let _=$-1;_<0&&(_=C-1);const b=(k=o.current)==null?void 0:k.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"Backspace":{if(!E.metaKey)return;E.preventDefault(),a(""),(S=r.current)==null||S.focus();break}case"Enter":{if(E.target instanceof HTMLButtonElement&&E.target.type!=="submit"||!m)return;E.preventDefault(),n(m.href),e.onClose();break}}}return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[n,C,a,m,e.open,e.onClose]),p.useEffect(()=>{l!==""&&o.current&&g()},[g,l]),x.jsxs(G4,{children:[x.jsx(Q4,{className:b6}),x.jsxs(Z4,{onOpenAutoFocus:w=>{r.current&&(w.preventDefault(),r.current.focus()),g()},onCloseAutoFocus:()=>{f(0)},className:R6,"aria-describedby":void 0,children:[x.jsx(X4,{className:rg,children:"Search"}),x.jsxs("form",{className:P6,children:[x.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:L6,children:x.jsx(f5,{className:Ta,height:20,width:20})}),x.jsx(m6,{htmlFor:"search-input",children:x.jsx(Yf,{"aria-label":"Search",className:O(Ta,A6),height:20,width:20})}),x.jsx("input",{ref:r,tabIndex:0,className:N6,id:"search-input",onChange:w=>a(w.target.value),placeholder:"Search",type:"search",value:i}),x.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>y(w=>!w),children:x.jsx(w5,{className:Ta,height:20,width:20})}),x.jsx("button",{"aria-label":"Reset search",type:"button",className:Ta,onClick:()=>{var w;a(""),(w=r.current)==null||w.focus()},children:"⌫"})]}),x.jsxs("ul",{className:k6,role:v.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&v.length===0&&x.jsxs("li",{children:['No results for "',x.jsx("span",{children:l}),'"']}),v.map((w,E)=>{var S;return x.jsx("li",{role:"option",className:O($6,E===u&&T6),"aria-selected":E===u,"aria-label":[...w.titles.filter($=>!!$),w.title].join(" > "),children:x.jsxs(Yl,{to:w.href,onClick:$=>{$.metaKey||e.onClose()},onMouseEnter:()=>!c&&f(E),onFocus:()=>f(E),children:[x.jsxs("div",{className:M6,children:[w.isPage?x.jsx(g5,{className:Tp}):x.jsx("span",{className:Tp,children:"#"}),w.titles.filter($=>!!$).map($=>x.jsxs("span",{className:kp,children:[x.jsx("span",{dangerouslySetInnerHTML:{__html:$}}),x.jsx(h5,{className:O6})]},$)),x.jsx("span",{className:kp,children:x.jsx("span",{dangerouslySetInnerHTML:{__html:w.title}})})]}),h&&((S=w.text)==null?void 0:S.trim())&&x.jsx("div",{className:$p,children:x.jsx(eg,{className:S6,children:x.jsx("div",{dangerouslySetInnerHTML:{__html:w.html}})})})]})},w.id)})]}),x.jsxs("div",{className:I6,children:[x.jsx(ro,{description:"Navigate",keys:["↑","↓"]}),x.jsx(ro,{description:"Select",keys:["enter"]}),x.jsx(ro,{description:"Close",keys:["esc"]}),x.jsx(ro,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function D6(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function j6(){Ag();const[e,t]=p.useState(!1);return p.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),x.jsxs(Sg,{open:e,onOpenChange:t,children:[x.jsx(bg,{asChild:!0,children:x.jsxs("button",{className:h6,type:"button",children:[x.jsx(Yf,{style:{marginTop:2}}),"Search",x.jsx("div",{className:p6,children:x.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),x.jsx(Og,{open:e,onClose:()=>t(!1)})]})}var Mg="vocs_DesktopTopNav_button",F6="vocs_DesktopTopNav_content",z6="vocs_DesktopTopNav_curtain",Rp="vocs_DesktopTopNav_divider",Js="vocs_DesktopTopNav_group",ka="vocs_DesktopTopNav_hideCompact",gu="vocs_DesktopTopNav_icon",_l="vocs_DesktopTopNav_item",B6="vocs_DesktopTopNav_logo",U6="vocs_DesktopTopNav_logoWrapper",H6="vocs_DesktopTopNav",Pp="vocs_DesktopTopNav_section",V6="vocs_DesktopTopNav_withLogo",W6="vocs_Icon",yu="var(--vocs_Icon_size)";function ct({className:e,label:t,icon:n,size:r,style:o}){return x.jsx("div",{"aria-label":t,className:O(W6,e),role:"img",style:{...o,...Yt({[yu]:r})},children:x.jsx(n,{height:r,width:r})})}var K6="vocs_Logo_logoDark",Y6="vocs_Logo_logoLight",qs="vocs_Logo";function G6({className:e}){const{logoUrl:t}=Ke();return t?x.jsx(x.Fragment,{children:typeof t=="string"?x.jsx("img",{alt:"Logo",className:O(e,qs),src:t}):x.jsxs(x.Fragment,{children:[x.jsx("img",{alt:"Logo",className:O(e,qs,K6),src:t.dark}),x.jsx("img",{alt:"Logo",className:O(e,qs,Y6),src:t.light})]})}):null}var Q6="vocs_NavLogo_logoImage",Z6="vocs_NavLogo_title";function qf(){const e=Ke();return e.logoUrl?x.jsx(G6,{className:Q6}):x.jsx("div",{className:Z6,children:e.title})}const X6=p.createContext(void 0);function Zl(e){const t=p.useContext(X6);return e||t||"ltr"}function Xl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:y,children:v}=h,C=Z.useRef(null),m=Z.useRef(new Map).current;return Z.createElement(o,{scope:y,itemMap:m,collectionRef:C},v)},l=e+"CollectionSlot",s=Z.forwardRef((h,y)=>{const{scope:v,children:C}=h,m=i(l,v),g=Ue(y,m.collectionRef);return Z.createElement(So,{ref:g},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=Z.forwardRef((h,y)=>{const{scope:v,children:C,...m}=h,g=Z.useRef(null),w=Ue(y,g),E=i(u,v);return Z.useEffect(()=>(E.itemMap.set(g,{ref:g,...m}),()=>void E.itemMap.delete(g))),Z.createElement(So,{[f]:"",ref:w},C)});function d(h){const y=i(e+"CollectionConsumer",h);return Z.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,S)=>m.indexOf(E.ref.current)-m.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:c},d,r]}function J6(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const q6=p.forwardRef((e,t)=>p.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),e7=q6,Gi="NavigationMenu",[ed,t7,n7]=Xl(Gi),[wu,r7,o7]=Xl(Gi),[td,c$]=En(Gi,[n7,o7]),[i7,Ar]=td(Gi),[a7,u$]=td(Gi),l7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[c,d]=p.useState(null),h=Ue(t,k=>d(k)),y=Zl(u),v=p.useRef(0),C=p.useRef(0),m=p.useRef(0),[g,w]=p.useState(!0),[E="",S]=or({prop:r,onChange:k=>{const N=k!=="",M=l>0;N?(window.clearTimeout(m.current),M&&w(!1)):(window.clearTimeout(m.current),m.current=window.setTimeout(()=>w(!0),l)),o==null||o(k)},defaultProp:i}),$=p.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),_=p.useCallback(k=>{window.clearTimeout(C.current),S(k)},[S]),b=p.useCallback(k=>{E===k?window.clearTimeout(C.current):v.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(k)},a)},[E,S,a]);return p.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(C.current),window.clearTimeout(m.current)},[]),p.createElement(s7,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:c,onTriggerEnter:k=>{window.clearTimeout(v.current),g?b(k):_(k)},onTriggerLeave:()=>{window.clearTimeout(v.current),$()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:$,onItemSelect:k=>{S(N=>N===k?"":k)},onItemDismiss:()=>S("")},p.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:h})))}),s7=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:d,onContentLeave:h}=e,[y,v]=p.useState(null),[C,m]=p.useState(new Map),[g,w]=p.useState(null);return p.createElement(i7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:J6(l),baseId:on(),dir:o,orientation:i,viewport:y,onViewportChange:v,indicatorTrack:g,onIndicatorTrackChange:w,onTriggerEnter:lt(f),onTriggerLeave:lt(c),onContentEnter:lt(d),onContentLeave:lt(h),onItemSelect:lt(s),onItemDismiss:lt(u),onViewportContentChange:p.useCallback((E,S)=>{m($=>($.set(E,S),new Map($)))},[]),onViewportContentRemove:p.useCallback(E=>{m(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},p.createElement(ed.Provider,{scope:t},p.createElement(a7,{scope:t,items:C},a)))},c7="NavigationMenuList",u7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(c7,n),i=p.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return p.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},p.createElement(ed.Slot,{scope:n},o.isRootMenu?p.createElement(jg,{asChild:!0},i):i))}),f7="NavigationMenuItem",[d7,Dg]=td(f7),h7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=on(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=p.useRef(null),s=p.useRef(null),u=p.useRef(null),f=p.useRef(()=>{}),c=p.useRef(!1),d=p.useCallback((y="start")=>{if(l.current){f.current();const v=xu(l.current);v.length&&nd(y==="start"?v:v.reverse())}},[]),h=p.useCallback(()=>{if(l.current){const y=xu(l.current);y.length&&(f.current=C7(y))}},[]);return p.createElement(d7,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:h,onContentFocusOutside:h},p.createElement(fe.li,Y({},o,{ref:t})))}),Np="NavigationMenuTrigger",p7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Ar(Np,e.__scopeNavigationMenu),a=Dg(Np,e.__scopeNavigationMenu),l=p.useRef(null),s=Ue(l,a.triggerRef,t),u=Bg(i.baseId,a.value),f=Ug(i.baseId,a.value),c=p.useRef(!1),d=p.useRef(!1),h=a.value===i.value;return p.createElement(p.Fragment,null,p.createElement(ed.ItemSlot,{scope:n,value:a.value},p.createElement(Fg,{asChild:!0},p.createElement(fe.button,Y({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":zg(h),"aria-expanded":h,"aria-controls":f},o,{ref:s,onPointerEnter:le(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:le(e.onPointerMove,Cu(()=>{r||d.current||a.wasEscapeCloseRef.current||c.current||(i.onTriggerEnter(a.value),c.current=!0)})),onPointerLeave:le(e.onPointerLeave,Cu(()=>{r||(i.onTriggerLeave(),c.current=!1)})),onClick:le(e.onClick,()=>{i.onItemSelect(a.value),d.current=h}),onKeyDown:le(e.onKeyDown,y=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&y.key===C&&(a.onEntryKeyDown(),y.preventDefault())})})))),h&&p.createElement(p.Fragment,null,p.createElement(e7,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:y=>{const v=a.contentRef.current,C=y.relatedTarget,m=C===l.current,g=v==null?void 0:v.contains(C);(m||!g)&&a.onFocusProxyEnter(m?"start":"end")}}),i.viewport&&p.createElement("span",{"aria-owns":f})))}),Ap="navigationMenu.linkSelect",v7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return p.createElement(Fg,{asChild:!0},p.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:le(e.onClick,a=>{const l=a.target,s=new CustomEvent(Ap,{bubbles:!0,cancelable:!0});if(l.addEventListener(Ap,u=>o==null?void 0:o(u),{once:!0}),cu(l,s),!s.defaultPrevented&&!a.metaKey){const u=new CustomEvent(Ka,{bubbles:!0,cancelable:!0});cu(l,u)}},{checkForDefaultPrevented:!1})})))}),Sl="NavigationMenuContent",m7=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ar(Sl,e.__scopeNavigationMenu),i=Dg(Sl,e.__scopeNavigationMenu),a=Ue(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?p.createElement(g7,Y({forceMount:n},s,{ref:a})):p.createElement(_n,{present:n||l},p.createElement(y7,Y({"data-state":zg(l)},s,{ref:a,onPointerEnter:le(e.onPointerEnter,o.onContentEnter),onPointerLeave:le(e.onPointerLeave,Cu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),g7=p.forwardRef((e,t)=>{const n=Ar(Sl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return yn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),yn(()=>()=>o(e.value),[e.value,o]),null}),Ka="navigationMenu.rootContentDismiss",y7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=Ar(Sl,n),c=p.useRef(null),d=Ue(c,t),h=Bg(f.baseId,r),y=Ug(f.baseId,r),v=t7(n),C=p.useRef(null),{onItemDismiss:m}=f;p.useEffect(()=>{const w=c.current;if(f.isRootMenu&&w){const E=()=>{var S;m(),l(),w.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return w.addEventListener(Ka,E),()=>w.removeEventListener(Ka,E)}},[f.isRootMenu,e.value,o,m,l]);const g=p.useMemo(()=>{const E=v().map(N=>N.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),$=E.indexOf(f.previousValue),_=r===f.value,b=$===E.indexOf(r);if(!_&&!b)return C.current;const k=(()=>{if(S!==$){if(_&&$!==-1)return S>$?"from-end":"from-start";if(b&&S!==-1)return S>$?"to-start":"to-end"}return null})();return C.current=k,k},[f.previousValue,f.value,f.dir,v,r]);return p.createElement(jg,{asChild:!0},p.createElement(Gf,Y({id:y,"aria-labelledby":h,"data-motion":g,"data-orientation":f.orientation},u,{ref:d,onDismiss:()=>{var w;const E=new Event(Ka,{bubbles:!0,cancelable:!0});(w=c.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:le(e.onFocusOutside,w=>{var E;s();const S=w.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&w.preventDefault()}),onPointerDownOutside:le(e.onPointerDownOutside,w=>{var E;const S=w.target,$=v().some(b=>{var k;return(k=b.ref.current)===null||k===void 0?void 0:k.contains(S)}),_=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));($||_||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:le(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const _=xu(w.currentTarget),b=document.activeElement,k=_.findIndex(D=>D===b),M=w.shiftKey?_.slice(0,k).reverse():_.slice(k+1,_.length);if(nd(M))w.preventDefault();else{var $;($=i.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:le(e.onEscapeKeyDown,w=>{a.current=!0})})))}),w7="FocusGroup",jg=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(w7,n);return p.createElement(wu.Provider,{scope:n},p.createElement(wu.Slot,{scope:n},p.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Lp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],x7="FocusGroupItem",Fg=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=r7(n),i=Ar(x7,n);return p.createElement(wu.ItemSlot,{scope:n},p.createElement(fe.button,Y({},r,{ref:t,onKeyDown:le(e.onKeyDown,a=>{if(["Home","End",...Lp].includes(a.key)){let s=o().map(c=>c.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Lp.includes(a.key)){const c=s.indexOf(a.currentTarget);s=s.slice(c+1)}setTimeout(()=>nd(s)),a.preventDefault()}})})))});function xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function C7(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function zg(e){return e?"open":"closed"}function Bg(e,t){return`${e}-trigger-${t}`}function Ug(e,t){return`${e}-content-${t}`}function Cu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const E7=l7,_7=u7,S7=h7,b7=p7,$7=v7,T7=m7;var k7="var(--vocs_NavigationMenu_chevronDownIcon)",R7="vocs_NavigationMenu_content",P7="vocs_NavigationMenu_item",N7="vocs_NavigationMenu_link",A7="vocs_NavigationMenu_list",L7="vocs_NavigationMenu",I7="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Hg=e=>x.jsx(E7,{...e,className:O(e.className,L7)}),Vg=e=>x.jsx(_7,{...e,className:O(e.className,A7)}),Jl=({active:e,children:t,className:n,href:r})=>x.jsx($7,{asChild:!0,children:x.jsx(rn,{"data-active":e,className:O(n,N7),href:r,variant:"styleless",children:t})}),Wg=e=>x.jsx(S7,{...e,className:O(e.className,P7)}),Kg=({active:e,className:t,...n})=>{const{basePath:r}=Ke(),o=r;return x.jsx(b7,{...n,"data-active":e,className:O(t,I7),style:Yt({[k7]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Yg=e=>x.jsx(T7,{...e,className:O(e.className,R7)});function Gg(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[x.jsx("title",{children:"Discord"}),x.jsx("g",{id:"图层_2","data-name":"图层 2",children:x.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:x.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:x.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Qg(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"GitHub"}),x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function O7(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Moon"}),x.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),x.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function M7(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Sun"}),x.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),x.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Zg(){return x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[x.jsx("title",{children:"Telegram"}),x.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Xg(){return x.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Warpcast"}),x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Jg(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"X"}),x.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}Eu.Curtain=D7;function Eu(){var r,o,i,a,l,s;const e=Ke(),{showLogo:t,showSidebar:n}=Nr();return x.jsxs("div",{className:O(H6,t&&!n&&V6),children:[x.jsx(j6,{}),t&&x.jsx("div",{className:U6,children:x.jsx("div",{className:B6,children:x.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:x.jsx(qf,{})})})}),x.jsx("div",{className:Pp}),x.jsxs("div",{className:Pp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:Js,children:x.jsx(j7,{})}),x.jsx("div",{className:O(Rp,(((o=e.topNav)==null?void 0:o.length)||0)>3?ka:null)})]}),e.socials&&((i=e.socials)==null?void 0:i.length)>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:O(Js,(((a=e.topNav)==null?void 0:a.length)||0)>3?ka:null),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((u,f)=>x.jsx("div",{className:_l,children:x.jsx(H7,{...u})},f))}),!((l=e.theme)!=null&&l.colorScheme)&&x.jsx("div",{className:O(Rp,ka)})]}),!((s=e.theme)!=null&&s.colorScheme)&&x.jsx("div",{className:O(Js,ka),style:{marginLeft:"-8px",marginRight:"-8px"},children:x.jsx("div",{className:_l,children:x.jsx(z7,{})})})]})]})}function D7(){return x.jsx("div",{className:z6})}function j7(){const{topNav:e}=Ke();if(!e)return null;const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx(Hg,{delayDuration:0,children:x.jsx(Vg,{children:e.map((r,o)=>r.link?x.jsx(Jl,{active:n.includes(r.id),className:_l,href:r.link,children:r.text},o):r.items?x.jsxs(Wg,{className:_l,children:[x.jsx(Kg,{active:n.includes(r.id),children:r.text}),x.jsx(Yg,{className:F6,children:x.jsx(F7,{items:r.items})})]},o):null)})})}function F7({items:e}){const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx("ul",{children:e==null?void 0:e.map((r,o)=>x.jsx(Jl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function z7(){const{toggle:e}=b5();return x.jsxs("button",{className:Mg,onClick:e,type:"button",children:[x.jsx(ct,{className:O(gu,$5),size:"20px",label:"Light",icon:M7}),x.jsx(ct,{className:O(gu,T5),size:"20px",label:"Dark",icon:O7,style:{marginTop:"-2px"}})]})}const B7={discord:Gg,github:Qg,telegram:Zg,warpcast:Xg,x:Jg},U7={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function H7({icon:e,label:t,link:n}){return x.jsx("a",{className:Mg,href:n,target:"_blank",rel:"noopener noreferrer",children:x.jsx(ct,{className:gu,label:t,icon:B7[e],size:U7[e]||"20px"})})}const V7=({children:e})=>e,W7=({children:e})=>e;function K7(){const e=Pr(),t=Ke();return p.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function qg(){const[e,t]=p.useState(!1);return p.useEffect(()=>{t(!0)},[]),e}var Y7="vocs_Footer_container",G7="vocs_Footer_editLink",Q7="vocs_Footer_lastUpdated",Z7="vocs_Footer_navigation",Ip="vocs_Footer_navigationIcon",X7="vocs_Footer_navigationIcon_left",J7="vocs_Footer_navigationIcon_right",Op="vocs_Footer_navigationItem",q7="vocs_Footer_navigationItem_left",e8="vocs_Footer_navigationItem_right",Mp="vocs_Footer_navigationText",Dp="vocs_Footer_navigationTextInner",t8="vocs_Footer";function n8(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Arrow Left"}),x.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function r8(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Arrow Right"}),x.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function o8(){const{layout:e}=Nr(),t=qg(),n=Pr(),r=p.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=p.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return x.jsxs("footer",{className:t8,children:[e==="docs"&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:Y7,children:[x.jsx(i8,{}),t&&n.lastUpdatedAt&&x.jsxs("div",{className:Q7,children:["Last updated:"," ",x.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),x.jsx(a8,{})]}),x.jsx(W7,{})]})}function i8(){const e=K7();return e.url?x.jsx("div",{children:x.jsxs(rn,{className:G7,href:e.url,children:[x.jsx(E5,{})," ",e.text]})}):null}function a8(){const e=qg(),t=Gl(),{pathname:n}=Oe(),r=p.useMemo(()=>e1(t.items||[]).filter(s=>s.link),[t]),o=p.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=p.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Vf();return p.useEffect(()=>{let s=o,u=!1;const f=d=>{if(d.code==="ShiftLeft"&&(u=!0),u){const h=r[s+1],y=r[s-1];d.code==="ArrowRight"&&(h!=null&&h.link)&&(l(h.link),s++),d.code==="ArrowLeft"&&(y!=null&&y.link)&&(l(y.link),s--)}},c=d=>{d.code==="ShiftLeft"&&(u=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",c),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",c)}},[]),e?x.jsxs("div",{className:Z7,children:[i?x.jsxs(rn,{className:O(Op,q7),href:i.link,variant:"styleless",children:[x.jsxs("div",{className:Mp,children:[x.jsx("div",{className:O(Ip,X7),style:Yt({[yu]:"0.75em"}),children:x.jsx(ct,{label:"Previous",icon:n8})}),x.jsx("div",{className:Dp,children:i.text})]}),x.jsx(ro,{description:"Previous",keys:["shift","←"]})]}):x.jsx("div",{}),a?x.jsxs(rn,{className:O(Op,e8),href:a.link,variant:"styleless",children:[x.jsxs("div",{className:Mp,children:[x.jsx("div",{className:Dp,style:{textAlign:"right"},children:a.text}),x.jsx("div",{className:O(Ip,J7),style:Yt({[yu]:"0.75em"}),children:x.jsx(ct,{label:"Next",icon:r8})})]}),x.jsx(ro,{description:"Next",keys:["shift","→"]})]}):x.jsx("div",{})]}):null}function e1(e){const t=[];for(const n of e){if(n.items){t.push(...e1(n.items));continue}t.push(n)}return t}const t1="Collapsible",[l8,n1]=En(t1),[s8,rd]=l8(t1),c8=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=or({prop:r,defaultProp:o,onChange:a});return p.createElement(s8,{scope:n,disabled:i,contentId:on(),open:s,onOpenToggle:p.useCallback(()=>u(f=>!f),[u])},p.createElement(fe.div,Y({"data-state":od(s),"data-disabled":i?"":void 0},l,{ref:t})))}),u8="CollapsibleTrigger",f8=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=rd(u8,n);return p.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":od(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:le(e.onClick,o.onOpenToggle)}))}),r1="CollapsibleContent",d8=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=rd(r1,e.__scopeCollapsible);return p.createElement(_n,{present:n||o.open},({present:i})=>p.createElement(h8,Y({},r,{ref:t,present:i})))}),h8=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=rd(r1,n),[l,s]=p.useState(r),u=p.useRef(null),f=Ue(t,u),c=p.useRef(0),d=c.current,h=p.useRef(0),y=h.current,v=a.open||l,C=p.useRef(v),m=p.useRef();return p.useEffect(()=>{const g=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(g)},[]),yn(()=>{const g=u.current;if(g){m.current=m.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const w=g.getBoundingClientRect();c.current=w.height,h.current=w.width,C.current||(g.style.transitionDuration=m.current.transitionDuration,g.style.animationName=m.current.animationName),s(r)}},[a.open,r]),p.createElement(fe.div,Y({"data-state":od(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),v&&o)});function od(e){return e?"open":"closed"}const p8=c8,v8=f8,m8=d8,Lr="Accordion",g8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[id,y8,w8]=Xl(Lr),[ql,f$]=En(Lr,[w8,n1]),ad=n1(),o1=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(id.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(_8,Y({},i,{ref:t})):Z.createElement(E8,Y({},o,{ref:t})))});o1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[i1,x8]=ql(Lr),[a1,C8]=ql(Lr,{collapsible:!1}),E8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=or({prop:n,defaultProp:r,onChange:o});return Z.createElement(i1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(a1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(l1,Y({},a,{ref:t}))))}),_8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=or({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((c=[])=>[...c,f]),[l]),u=Z.useCallback(f=>l((c=[])=>c.filter(d=>d!==f)),[l]);return Z.createElement(i1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u},Z.createElement(a1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(l1,Y({},i,{ref:t}))))}),[S8,ld]=ql(Lr),l1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=Ue(l,t),u=y8(n),c=Zl(o)==="ltr",d=le(e.onKeyDown,h=>{var y;if(!g8.includes(h.key))return;const v=h.target,C=u().filter(k=>{var N;return!((N=k.ref.current)!==null&&N!==void 0&&N.disabled)}),m=C.findIndex(k=>k.ref.current===v),g=C.length;if(m===-1)return;h.preventDefault();let w=m;const E=0,S=g-1,$=()=>{w=m+1,w>S&&(w=E)},_=()=>{w=m-1,w{const{__scopeAccordion:n,value:r,...o}=e,i=ld(_u,n),a=x8(_u,n),l=ad(n),s=on(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(b8,{scope:n,open:u,disabled:f,triggerId:s},Z.createElement(p8,Y({"data-orientation":i.orientation,"data-state":P8(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})))}),jp="AccordionTrigger",T8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ld(Lr,n),i=s1(jp,n),a=C8(jp,n),l=ad(n);return Z.createElement(id.ItemSlot,{scope:n},Z.createElement(v8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),k8="AccordionContent",R8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ld(Lr,n),i=s1(k8,n),a=ad(n);return Z.createElement(m8,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function P8(e){return e?"open":"closed"}const N8=o1,A8=$8,L8=T8,I8=R8;var O8="vocs_MobileSearch_searchButton";function M8(){const[e,t]=p.useState(!1);return x.jsxs(Sg,{open:e,onOpenChange:t,children:[x.jsx(bg,{asChild:!0,children:x.jsx("button",{className:O8,type:"button","aria-label":"Search",children:x.jsx(Yf,{height:21,width:21})})}),x.jsx(Og,{open:e,onClose:()=>t(!1)})]})}var D8="vocs_MobileTopNav_button",j8="var(--vocs_MobileTopNav_chevronDownIcon)",F8="var(--vocs_MobileTopNav_chevronUpIcon)",z8="vocs_MobileTopNav_content",B8="vocs_MobileTopNav_curtain",Fp="vocs_MobileTopNav_curtainGroup",ec="vocs_MobileTopNav_curtainItem",U8="vocs_MobileTopNav_divider",Ra="vocs_MobileTopNav_group",H8="vocs_MobileTopNav_icon",V8="vocs_MobileTopNav_item",W8="vocs_MobileTopNav_logo",K8="vocs_MobileTopNav_menuTitle",c1="vocs_MobileTopNav_menuTrigger",u1="vocs_MobileTopNav_navigation",Y8="vocs_MobileTopNav_navigationContent",ei="vocs_MobileTopNav_navigationItem",G8="vocs_MobileTopNav_trigger",Q8="vocs_MobileTopNav_navigation_compact",Z8="vocs_MobileTopNav_outlinePopover",zp="vocs_MobileTopNav_outlineTrigger",X8="vocs_MobileTopNav",Bp="vocs_MobileTopNav_section",J8="vocs_MobileTopNav_separator",q8="vocs_MobileTopNav_sidebarPopover",eC="vocs_MobileTopNav_topNavPopover";function tC(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var nC="vocs_Outline_heading",rC="vocs_Outline_item",oC="vocs_Outline_items",iC="vocs_Outline_link",aC="vocs_Outline_nav",lC="vocs_Outline";function f1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Ke(),{showOutline:a}=Nr(),l=typeof a=="number"?e+a-1:t,s=p.useRef(!0),{pathname:u,hash:f}=Oe(),[c,d]=p.useState([]);p.useEffect(()=>{if(typeof window>"u")return;const m=Array.from(document.querySelectorAll(`.${Z0}`));d(m)},[u]);const h=p.useMemo(()=>c?c.map(m=>{const g=m.querySelector(`.${X0}`);if(!g)return null;const w=g.getBoundingClientRect(),E=g.id,S=Number(m.tagName[1]),$=m.textContent,_=window.scrollY+w.top;return Sl?null:{id:E,level:S,slugTargetElement:g,text:$,topOffset:_}}).filter(Boolean):[],[c,l,e]),[y,v]=p.useState(f.replace("#",""));if(p.useEffect(()=>{if(typeof window>"u")return;const m=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const w=g.target.id;if(g.isIntersecting)v(w);else{if(!(g.target.getBoundingClientRect().top>0))return;const _=h.findIndex(k=>k.id===y),b=(E=h[_-1])==null?void 0:E.id;v(b)}},{rootMargin:"0px 0px -95% 0px"});for(const g of h)m.observe(g.slugTargetElement);return()=>m.disconnect()},[y,h]),p.useEffect(()=>{if(typeof window>"u")return;const m=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const w=(E=h[h.length-1])==null?void 0:E.id;g.isIntersecting?v(w):y===w&&v(h[h.length-2].id)});return m.observe(document.querySelector("[data-bottom-observer]")),()=>m.disconnect()},[y,h]),p.useEffect(()=>{if(typeof window>"u")return;const m=tC(()=>{var g,w,E;if(s.current){if(window.scrollY===0){v((g=h[0])==null?void 0:g.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){v((w=h[h.length-1])==null?void 0:w.id);return}for(let S=0;Swindow.removeEventListener("scroll",m)},[h]),h.length===0)return null;const C=h.filter(m=>m.level===e);return x.jsxs("aside",{className:lC,children:[x.jsxs("nav",{className:aC,children:[o&&x.jsx("h2",{className:nC,children:"On this page"}),x.jsx(d1,{activeId:n?y:null,items:h,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:v})]}),Cl(i)]})}function d1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){return x.jsx("ul",{className:oC,children:n.map(({id:i,level:a,text:l})=>{const s=`#${i}`,u=e===i,f=(()=>{var v;const d=t.findIndex(C=>C.id===i)+1,h=(v=t[d])==null?void 0:v.level;if(h<=a)return null;const y=[];for(let C=d;C{r==null||r(),o(i)},className:iC,children:l})}),f&&x.jsx(d1,{activeId:e,levelItems:f,items:t,onClickItem:r,setActiveId:o})]},i)})})}const sC=["top","right","bottom","left"],Qn=Math.min,wt=Math.max,bl=Math.round,Pa=Math.floor,Zn=e=>({x:e,y:e}),cC={left:"right",right:"left",bottom:"top",top:"bottom"},uC={start:"end",end:"start"};function Su(e,t,n){return wt(e,Qn(t,n))}function wn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function Lo(e){return e.split("-")[1]}function sd(e){return e==="x"?"y":"x"}function cd(e){return e==="y"?"height":"width"}function Io(e){return["top","bottom"].includes(xn(e))?"y":"x"}function ud(e){return sd(Io(e))}function fC(e,t,n){n===void 0&&(n=!1);const r=Lo(e),o=ud(e),i=cd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$l(a)),[a,$l(a)]}function dC(e){const t=$l(e);return[bu(e),t,bu(t)]}function bu(e){return e.replace(/start|end/g,t=>uC[t])}function hC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function pC(e,t,n,r){const o=Lo(e);let i=hC(xn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(bu)))),i}function $l(e){return e.replace(/left|right|bottom|top/g,t=>cC[t])}function vC(e){return{top:0,right:0,bottom:0,left:0,...e}}function h1(e){return typeof e!="number"?vC(e):{top:e,right:e,bottom:e,left:e}}function Tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Up(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=ud(t),l=cd(a),s=xn(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let h;switch(s){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Lo(t)){case"start":h[a]-=d*(n&&u?-1:1);break;case"end":h[a]+=d*(n&&u?-1:1);break}return h}const mC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Up(u,r,s),d=r,h={},y=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=wn(e,t)||{};if(u==null)return{};const c=h1(f),d={x:n,y:r},h=ud(o),y=cd(h),v=await a.getDimensions(u),C=h==="y",m=C?"top":"left",g=C?"bottom":"right",w=C?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[h]-d[h]-i.floating[y],S=d[h]-i.reference[h],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=$?$[w]:0;(!_||!await(a.isElement==null?void 0:a.isElement($)))&&(_=l.floating[w]||i.floating[y]);const b=E/2-S/2,k=_/2-v[y]/2-1,N=Qn(c[m],k),M=Qn(c[g],k),D=N,I=_-v[y]-M,R=_/2-v[y]/2+b,B=Su(D,R,I),G=!s.arrow&&Lo(o)!=null&&R!==B&&i.reference[y]/2-(RD<=0)){var k,N;const D=(((k=i.flip)==null?void 0:k.index)||0)+1,I=S[D];if(I)return{data:{index:D,overflows:b},reset:{placement:I}};let R=(N=b.filter(B=>B.overflows[0]<=0).sort((B,G)=>B.overflows[1]-G.overflows[1])[0])==null?void 0:N.placement;if(!R)switch(h){case"bestFit":{var M;const B=(M=b.map(G=>[G.placement,G.overflows.filter(z=>z>0).reduce((z,L)=>z+L,0)]).sort((G,z)=>G[1]-z[1])[0])==null?void 0:M[0];B&&(R=B);break}case"initialPlacement":R=l;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function Hp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vp(e){return sC.some(t=>e[t]>=0)}const wC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=wn(e,t);switch(r){case"referenceHidden":{const i=await Di(t,{...o,elementContext:"reference"}),a=Hp(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vp(a)}}}case"escaped":{const i=await Di(t,{...o,altBoundary:!0}),a=Hp(i,n.floating);return{data:{escapedOffsets:a,escaped:Vp(a)}}}default:return{}}}}};async function xC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xn(n),l=Lo(n),s=Io(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,c=wn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return l&&typeof y=="number"&&(h=l==="end"?y*-1:y),s?{x:h*f,y:d*u}:{x:d*u,y:h*f}}const CC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await xC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},EC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:m,y:g}=C;return{x:m,y:g}}},...s}=wn(e,t),u={x:n,y:r},f=await Di(t,s),c=Io(xn(o)),d=sd(c);let h=u[d],y=u[c];if(i){const C=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=h+f[C],w=h-f[m];h=Su(g,h,w)}if(a){const C=c==="y"?"top":"left",m=c==="y"?"bottom":"right",g=y+f[C],w=y-f[m];y=Su(g,y,w)}const v=l.fn({...t,[d]:h,[c]:y});return{...v,data:{x:v.x-n,y:v.y-r}}}}},_C=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=wn(e,t),f={x:n,y:r},c=Io(o),d=sd(c);let h=f[d],y=f[c];const v=wn(l,t),C=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const w=d==="y"?"height":"width",E=i.reference[d]-i.floating[w]+C.mainAxis,S=i.reference[d]+i.reference[w]-C.mainAxis;hS&&(h=S)}if(u){var m,g;const w=d==="y"?"width":"height",E=["top","left"].includes(xn(o)),S=i.reference[c]-i.floating[w]+(E&&((m=a.offset)==null?void 0:m[c])||0)+(E?0:C.crossAxis),$=i.reference[c]+i.reference[w]+(E?0:((g=a.offset)==null?void 0:g[c])||0)-(E?C.crossAxis:0);y$&&(y=$)}return{[d]:h,[c]:y}}}},SC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=wn(e,t),s=await Di(t,l),u=xn(n),f=Lo(n),c=Io(n)==="y",{width:d,height:h}=r.floating;let y,v;u==="top"||u==="bottom"?(y=u,v=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,y=f==="end"?"top":"bottom");const C=h-s[y],m=d-s[v],g=!t.middlewareData.shift;let w=C,E=m;if(c){const $=d-s.left-s.right;E=f||g?Qn(m,$):$}else{const $=h-s.top-s.bottom;w=f||g?Qn(C,$):$}if(g&&!f){const $=wt(s.left,0),_=wt(s.right,0),b=wt(s.top,0),k=wt(s.bottom,0);c?E=d-2*($!==0||_!==0?$+_:wt(s.left,s.right)):w=h-2*(b!==0||k!==0?b+k:wt(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:w});const S=await o.getDimensions(i.floating);return d!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}};function Oo(e){return p1(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(p1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function p1(e){return e instanceof Node||e instanceof Et(e).Node}function Je(e){return e instanceof Element||e instanceof Et(e).Element}function an(e){return e instanceof HTMLElement||e instanceof Et(e).HTMLElement}function $u(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Qi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bC(e){return["table","td","th"].includes(Oo(e))}function fd(e){const t=dd(),n=Gt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $C(e){let t=Xn(e);for(;an(t)&&!bo(t);){if(fd(t))return t;t=Xn(t)}return null}function dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(e){return["html","body","#document"].includes(Oo(e))}function Gt(e){return Et(e).getComputedStyle(e)}function es(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xn(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$u(e)&&e.host||bn(e);return $u(t)?t.host:t}function v1(e){const t=Xn(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&Qi(t)?t:v1(t)}function ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=v1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Et(o);return i?t.concat(a,a.visualViewport||[],Qi(o)?o:[],a.frameElement&&n?ji(a.frameElement):[]):t.concat(o,ji(o,[],n))}function m1(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=an(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=bl(n)!==i||bl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function hd(e){return Je(e)?e:e.contextElement}function fo(e){const t=hd(e);if(!an(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=m1(t);let a=(i?bl(n.width):n.width)/r,l=(i?bl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const TC=Zn(0);function g1(e){const t=Et(e);return!dd()||!t.visualViewport?TC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Et(e)?!1:t}function Sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=hd(e);let a=Zn(1);t&&(r?Je(r)&&(a=fo(r)):a=fo(e));const l=kC(i,n,r)?g1(i):Zn(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=Et(i),h=r&&Je(r)?Et(r):r;let y=d,v=y.frameElement;for(;v&&r&&h!==y;){const C=fo(v),m=v.getBoundingClientRect(),g=Gt(v),w=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*C.x,E=m.top+(v.clientTop+parseFloat(g.paddingTop))*C.y;s*=C.x,u*=C.y,f*=C.x,c*=C.y,s+=w,u+=E,y=Et(v),v=y.frameElement}}return Tl({width:f,height:c,x:s,y:u})}const RC=[":popover-open",":modal"];function pd(e){return RC.some(t=>{try{return e.matches(t)}catch{return!1}})}function PC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?pd(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Zn(1);const f=Zn(0),c=an(r);if((c||!c&&!i)&&((Oo(r)!=="body"||Qi(a))&&(s=es(r)),an(r))){const d=Sr(r);u=fo(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function NC(e){return Array.from(e.getClientRects())}function y1(e){return Sr(bn(e)).left+es(e).scrollLeft}function AC(e){const t=bn(e),n=es(e),r=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+y1(e);const l=-n.scrollTop;return Gt(r).direction==="rtl"&&(a+=wt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function LC(e,t){const n=Et(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=dd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function IC(e,t){const n=Sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=an(e)?fo(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:a,height:l,x:s,y:u}}function Wp(e,t,n){let r;if(t==="viewport")r=LC(e,n);else if(t==="document")r=AC(bn(e));else if(Je(t))r=IC(t,n);else{const o=g1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Tl(r)}function w1(e,t){const n=Xn(e);return n===t||!Je(n)||bo(n)?!1:Gt(n).position==="fixed"||w1(n,t)}function OC(e,t){const n=t.get(e);if(n)return n;let r=ji(e,[],!1).filter(l=>Je(l)&&Oo(l)!=="body"),o=null;const i=Gt(e).position==="fixed";let a=i?Xn(e):e;for(;Je(a)&&!bo(a);){const l=Gt(a),s=fd(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qi(a)&&!s&&w1(e,a))?r=r.filter(f=>f!==a):o=l,a=Xn(a)}return t.set(e,r),r}function MC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?pd(t)?[]:OC(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,f)=>{const c=Wp(t,f,o);return u.top=wt(c.top,u.top),u.right=Qn(c.right,u.right),u.bottom=Qn(c.bottom,u.bottom),u.left=wt(c.left,u.left),u},Wp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function DC(e){const{width:t,height:n}=m1(e);return{width:t,height:n}}function jC(e,t,n){const r=an(t),o=bn(t),i=n==="fixed",a=Sr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Oo(t)!=="body"||Qi(o))&&(l=es(t)),r){const c=Sr(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=y1(o));const u=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:u,y:f,width:a.width,height:a.height}}function tc(e){return Gt(e).position==="static"}function Kp(e,t){return!an(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function x1(e,t){const n=Et(e);if(pd(e))return n;if(!an(e)){let o=Xn(e);for(;o&&!bo(o);){if(Je(o)&&!tc(o))return o;o=Xn(o)}return n}let r=Kp(e,t);for(;r&&bC(r)&&tc(r);)r=Kp(r,t);return r&&bo(r)&&tc(r)&&!fd(r)?n:r||$C(e)||n}const FC=async function(e){const t=this.getOffsetParent||x1,n=this.getDimensions,r=await n(e.floating);return{reference:jC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zC(e){return Gt(e).direction==="rtl"}const C1={convertOffsetParentRelativeRectToViewportRelativeRect:PC,getDocumentElement:bn,getClippingRect:MC,getOffsetParent:x1,getElementRects:FC,getClientRects:NC,getDimensions:DC,getScale:fo,isElement:Je,isRTL:zC};function BC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:f,width:c,height:d}=e.getBoundingClientRect();if(l||t(),!c||!d)return;const h=Pa(f),y=Pa(o.clientWidth-(u+c)),v=Pa(o.clientHeight-(f+d)),C=Pa(u),g={rootMargin:-h+"px "+-y+"px "+-v+"px "+-C+"px",threshold:wt(0,Qn(1,s))||1};let w=!0;function E(S){const $=S[0].intersectionRatio;if($!==s){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),i}function UC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=hd(e),f=o||i?[...u?ji(u):[],...ji(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=u&&l?BC(u,n):null;let d=-1,h=null;a&&(h=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!s&&h.observe(u),h.observe(t));let y,v=s?Sr(e):null;s&&C();function C(){const m=Sr(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,y=requestAnimationFrame(C)}return n(),()=>{var m;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),c==null||c(),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(y)}}const E1=CC,_1=EC,HC=yC,VC=SC,WC=wC,Yp=gC,KC=_C,YC=(e,t,n)=>{const r=new Map,o={platform:C1,...n},i={...o.platform,_c:r};return mC(e,t,{...o,platform:i})},S1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yp({element:r.current,padding:o}).fn(n):{}:r?Yp({element:r,padding:o}).fn(n):{}}}};var Ya=typeof document<"u"?p.useLayoutEffect:p.useEffect;function kl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!kl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function b1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gp(e,t){const n=b1(e);return Math.round(t*n)/n}function Qp(e){const t=p.useRef(e);return Ya(()=>{t.current=e}),t}function $1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,c]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=p.useState(r);kl(d,r)||h(r);const[y,v]=p.useState(null),[C,m]=p.useState(null),g=p.useCallback(z=>{z!==$.current&&($.current=z,v(z))},[]),w=p.useCallback(z=>{z!==_.current&&(_.current=z,m(z))},[]),E=i||y,S=a||C,$=p.useRef(null),_=p.useRef(null),b=p.useRef(f),k=s!=null,N=Qp(s),M=Qp(o),D=p.useCallback(()=>{if(!$.current||!_.current)return;const z={placement:t,strategy:n,middleware:d};M.current&&(z.platform=M.current),YC($.current,_.current,z).then(L=>{const U={...L,isPositioned:!0};I.current&&!kl(b.current,U)&&(b.current=U,Po.flushSync(()=>{c(U)}))})},[d,t,n,M]);Ya(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(z=>({...z,isPositioned:!1})))},[u]);const I=p.useRef(!1);Ya(()=>(I.current=!0,()=>{I.current=!1}),[]),Ya(()=>{if(E&&($.current=E),S&&(_.current=S),E&&S){if(N.current)return N.current(E,S,D);D()}},[E,S,D,N,k]);const R=p.useMemo(()=>({reference:$,floating:_,setReference:g,setFloating:w}),[g,w]),B=p.useMemo(()=>({reference:E,floating:S}),[E,S]),G=p.useMemo(()=>{const z={position:n,left:0,top:0};if(!B.floating)return z;const L=Gp(B.floating,f.x),U=Gp(B.floating,f.y);return l?{...z,transform:"translate("+L+"px, "+U+"px)",...b1(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:U}},[n,l,B.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:D,refs:R,elements:B,floatingStyles:G}),[f,D,R,B,G])}function GC(e){const[t,n]=p.useState(void 0);return yn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const T1="Popper",[k1,R1]=En(T1),[QC,P1]=k1(T1),ZC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(QC,{scope:t,anchor:r,onAnchorChange:o},n)},XC="PopperAnchor",JC=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=P1(XC,n),a=p.useRef(null),l=Ue(t,a);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.createElement(fe.div,Y({},o,{ref:l}))}),N1="PopperContent",[qC,d$]=k1(N1),eE=p.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:c="bottom",sideOffset:d=0,align:h="center",alignOffset:y=0,arrowPadding:v=0,avoidCollisions:C=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:$,..._}=e,b=P1(N1,f),[k,N]=p.useState(null),M=Ue(t,ar=>N(ar)),[D,I]=p.useState(null),R=GC(D),B=(n=R==null?void 0:R.width)!==null&&n!==void 0?n:0,G=(r=R==null?void 0:R.height)!==null&&r!==void 0?r:0,z=c+(h!=="center"?"-"+h:""),L=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},U=Array.isArray(m)?m:[m],K=U.length>0,oe={padding:L,boundary:U.filter(tE),altBoundary:K},{refs:ae,floatingStyles:Fe,placement:Me,isPositioned:ge,middlewareData:ye}=$1({strategy:"fixed",placement:z,whileElementsMounted:(...ar)=>UC(...ar,{animationFrame:S==="always"}),elements:{reference:b.anchor},middleware:[E1({mainAxis:d+G,alignmentAxis:y}),C&&_1({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?KC():void 0,...oe}),C&&HC({...oe}),VC({...oe,apply:({elements:ar,rects:Qt,availableWidth:ts,availableHeight:ns})=>{const{width:rs,height:os}=Qt.reference,Ir=ar.floating.style;Ir.setProperty("--radix-popper-available-width",`${ts}px`),Ir.setProperty("--radix-popper-available-height",`${ns}px`),Ir.setProperty("--radix-popper-anchor-width",`${rs}px`),Ir.setProperty("--radix-popper-anchor-height",`${os}px`)}}),D&&S1({element:D,padding:v}),nE({arrowWidth:B,arrowHeight:G}),E&&WC({strategy:"referenceHidden",...oe})]}),[Pe,de]=A1(Me),Se=lt($);yn(()=>{ge&&(Se==null||Se())},[ge,Se]);const Ot=(o=ye.arrow)===null||o===void 0?void 0:o.x,Mt=(i=ye.arrow)===null||i===void 0?void 0:i.y,Ne=((a=ye.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ir,Zi]=p.useState();return yn(()=>{k&&Zi(window.getComputedStyle(k).zIndex)},[k]),p.createElement("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...Fe,transform:ge?Fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ir,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(s=ye.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},p.createElement(qC,{scope:f,placedSide:Pe,onArrowChange:I,arrowX:Ot,arrowY:Mt,shouldHideArrow:Ne},p.createElement(fe.div,Y({"data-side":Pe,"data-align":de},_,{ref:M,style:{..._.style,animation:ge?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function tE(e){return e!==null}const nE=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[y,v]=A1(l),C={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,g=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let w="",E="";return y==="bottom"?(w=c?C:`${m}px`,E=`${-h}px`):y==="top"?(w=c?C:`${m}px`,E=`${s.floating.height+h}px`):y==="right"?(w=`${-h}px`,E=c?C:`${g}px`):y==="left"&&(w=`${s.floating.width+h}px`,E=c?C:`${g}px`),{data:{x:w,y:E}}}});function A1(e){const[t,n="center"]=e.split("-");return[t,n]}const rE=ZC,oE=JC,iE=eE,L1="Popover",[I1,h$]=En(L1,[R1]),vd=R1(),[aE,Mo]=I1(L1),lE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=vd(t),s=p.useRef(null),[u,f]=p.useState(!1),[c=!1,d]=or({prop:r,defaultProp:o,onChange:i});return p.createElement(rE,l,p.createElement(aE,{scope:t,contentId:on(),triggerRef:s,open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:u,onCustomAnchorAdd:p.useCallback(()=>f(!0),[]),onCustomAnchorRemove:p.useCallback(()=>f(!1),[]),modal:a},n))},sE="PopoverTrigger",cE=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mo(sE,n),i=vd(n),a=Ue(t,o.triggerRef),l=p.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":D1(o.open)},r,{ref:a,onClick:le(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:p.createElement(oE,Y({asChild:!0},i),l)}),O1="PopoverPortal",[uE,fE]=I1(O1,{forceMount:void 0}),dE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Mo(O1,t);return p.createElement(uE,{scope:t,forceMount:n},p.createElement(_n,{present:n||i.open},p.createElement(sg,{asChild:!0,container:o},r)))},Fi="PopoverContent",hE=p.forwardRef((e,t)=>{const n=fE(Fi,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Mo(Fi,e.__scopePopover);return p.createElement(_n,{present:r||i.open},i.modal?p.createElement(pE,Y({},o,{ref:t})):p.createElement(vE,Y({},o,{ref:t})))}),pE=p.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=p.useRef(null),o=Ue(t,r),i=p.useRef(!1);return p.useEffect(()=>{const a=r.current;if(a)return yg(a)},[]),p.createElement(Qf,{as:So,allowPinchZoom:!0},p.createElement(M1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),vE=p.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return p.createElement(M1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),M1=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...c}=e,d=Mo(Fi,n),h=vd(n);return cg(),p.createElement(ag,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},p.createElement(Gf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},p.createElement(iE,Y({"data-state":D1(d.open),role:"dialog",id:d.contentId},h,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function D1(e){return e?"open":"closed"}const mE=lE,gE=cE,yE=dE,wE=hE;var xE="vocs_Popover";Ut.Root=mE;Ut.Trigger=gE;function Ut({children:e,className:t}){return x.jsx(yE,{children:x.jsx(wE,{className:O(xE,t),sideOffset:12,children:e})})}var CE="vocs_Sidebar_backLink",EE="vocs_Sidebar_divider",_E="vocs_Sidebar_group",li="vocs_Sidebar_item",j1="vocs_Sidebar_items",SE="vocs_Sidebar_level",bE="vocs_Sidebar_levelCollapsed",$E="vocs_Sidebar_levelInset",TE="vocs_Sidebar_logo",kE="vocs_Sidebar_logoWrapper",RE="vocs_Sidebar_navigation",PE="vocs_Sidebar",F1="vocs_Sidebar_section",NE="vocs_Sidebar_sectionCollapse",AE="vocs_Sidebar_sectionCollapseActive",LE="vocs_Sidebar_sectionHeader",IE="vocs_Sidebar_sectionHeaderActive",Zp="vocs_Sidebar_sectionTitle";function z1(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Chevron Right"}),x.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function B1(e){var u;const{className:t,onClickItem:n}=e,{previousPath:r}=Pr(),o=p.useRef(null),i=Gl(),[a,l]=p.useState("/");if(p.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=OE(i.items);return x.jsxs("aside",{ref:o,className:O(PE,t),children:[x.jsxs("div",{className:kE,children:[x.jsx("div",{className:TE,children:x.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:x.jsx(qf,{})})}),x.jsx("div",{className:EE})]}),x.jsx("nav",{className:RE,children:x.jsxs("div",{className:_E,children:[i.backLink&&x.jsx("section",{className:F1,children:x.jsx("div",{className:j1,children:x.jsxs(Gn,{className:O(li,CE),to:a,children:["←"," ",typeof history<"u"&&((u=history.state)!=null&&u.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,c)=>x.jsx(H1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${c}`))]})})]},i.key)}function OE(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function U1(e,t){return e.find(n=>Kl(t,n.link??"")||n.link===t?!0:n.items?U1(n.items,t):!1)}function H1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=p.useRef(null),{pathname:a}=Oe(),l=Qw(n.link??""),s=p.useMemo(()=>n.items?!!U1(n.items,a):!1,[n.items,a]),[u,f]=p.useState(()=>l||!n.items||s?!1:!!n.collapsed),c=n.collapsed!==void 0&&n.items!==void 0,d=p.useCallback(v=>{"key"in v&&v.key!=="Enter"||n.link||f(C=>!C)},[n.link]),h=p.useCallback(v=>{"key"in v&&v.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),y=p.useRef(!0);return p.useEffect(()=>{!y.current||(y.current=!1,!Kl(a,n.link??""))||requestAnimationFrame(()=>{var g,w,E;const C=((g=i.current)==null?void 0:g.offsetTop)??0,m=((w=o==null?void 0:o.current)==null?void 0:w.clientHeight)??0;C0&&t<5&&n.items.map((v,C)=>x.jsx(H1,{depth:t+1,item:v,onClick:r,sidebarRef:o},`${v.text}${C}`))})]}):x.jsx(x.Fragment,{children:n.link?x.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:li,to:n.link,children:n.text}):x.jsx("div",{className:li,children:n.text})})}function ME(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Chevron Down"}),x.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function DE(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Chevron Up"}),x.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function jE(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[x.jsx("title",{children:"Menu"}),x.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}Tu.Curtain=WE;function Tu(){var n,r;const e=Ke(),{showLogo:t}=Nr();return x.jsxs("div",{className:X8,children:[x.jsxs("div",{className:Bp,children:[t&&x.jsx("div",{className:Ra,children:x.jsx("div",{className:W8,children:x.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:x.jsx(qf,{})})})}),e.topNav&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:Ra,children:[x.jsx(FE,{items:e.topNav}),x.jsx(BE,{items:e.topNav})]})})]}),x.jsxs("div",{className:Bp,children:[x.jsx("div",{className:Ra,style:{marginRight:"-8px"},children:x.jsx(M8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:U8}),x.jsx("div",{className:Ra,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>x.jsx(VE,{...o},i))})]})]})]})}function FE({items:e}){const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx(Hg,{className:u1,children:x.jsx(Vg,{children:e.map((r,o)=>r!=null&&r.link?x.jsx(Jl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):x.jsxs(Wg,{className:V8,children:[x.jsx(Kg,{active:n==null?void 0:n.includes(r.id),children:r.text}),x.jsx(Yg,{className:z8,children:x.jsx(zE,{items:r.items||[]})})]},o))})})}function zE({items:e}){const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx("ul",{children:e==null?void 0:e.map((r,o)=>x.jsx(Jl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function BE({items:e}){var s;const[t,n]=p.useState(!1),{pathname:r}=Oe(),o=Yi({pathname:r,items:e}),i=e.filter(u=>u.id===o[0])[0],{basePath:a}=Ke(),l=a;return x.jsx("div",{className:O(u1,Q8),children:i?x.jsxs(Ut.Root,{modal:!0,open:t,onOpenChange:n,children:[x.jsxs(Ut.Trigger,{className:O(c1,ei),children:[i.text,x.jsx(ct,{label:"Menu",icon:ME,size:"11px"})]}),x.jsx(Ut,{className:eC,children:x.jsx(N8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((u,f)=>{var c;return u!=null&&u.link?x.jsx(rn,{"data-active":o.includes(u.id),className:ei,href:u.link,onClick:()=>n(!1),variant:"styleless",children:u.text},f):x.jsxs(A8,{value:f.toString(),children:[x.jsx(L8,{className:O(ei,G8),"data-active":o.includes(u.id),style:Yt({[j8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[F8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:u.text}),x.jsx(I8,{className:Y8,children:(c=u.items)==null?void 0:c.map((d,h)=>x.jsx(rn,{className:ei,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},h))})]},f)})})})]}):(s=e[0])!=null&&s.link?x.jsx(rn,{className:ei,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const UE={discord:Gg,github:Qg,telegram:Zg,warpcast:Xg,x:Jg},HE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function VE({icon:e,label:t,link:n,type:r}){return x.jsx("a",{className:D8,href:n,target:"_blank",rel:"noopener noreferrer",children:x.jsx(ct,{className:H8,label:t,icon:UE[e],size:HE[r]||"18px"})})}function WE({enableScrollToTop:e}){const{pathname:t}=Oe(),{layout:n,showSidebar:r}=Nr(),{frontmatter:o={}}=Pr(),i=Gl(),[a,l]=p.useState(!1),[s,u]=p.useState(!1),f=p.useMemo(()=>{if(!i||n==="minimal")return;const h=V1({sidebarItems:i.items,pathname:t});return h==null?void 0:h.text},[n,t,i]),c=p.useMemo(()=>{var h;if(!(typeof window>"u"))return(h=document.querySelector(".vocs_Content h1"))==null?void 0:h.textContent},[]),d=f||o.title||c;return x.jsxs("div",{className:B8,children:[x.jsx("div",{className:Fp,children:x.jsx("div",{className:ec,children:r?x.jsxs(Ut.Root,{modal:!0,open:s,onOpenChange:u,children:[x.jsxs(Ut.Trigger,{className:c1,children:[x.jsx(ct,{label:"Menu",icon:jE,size:"13px"}),x.jsx("div",{className:K8,children:d})]}),x.jsx(Ut,{className:q8,children:x.jsx(B1,{onClickItem:()=>u(!1)})})]}):d})}),x.jsxs("div",{className:Fp,children:[e&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:ec,children:x.jsxs("button",{className:zp,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",x.jsx(ct,{label:"Scroll to top",icon:DE,size:"10px"})]})}),x.jsx("div",{className:J8})]}),n==="docs"&&x.jsx("div",{className:ec,children:x.jsxs(Ut.Root,{modal:!0,open:a,onOpenChange:l,children:[x.jsxs(Ut.Trigger,{className:zp,children:["On this page",x.jsx(ct,{label:"On this page",icon:z1,size:"10px"})]}),x.jsx(Ut,{className:Z8,children:x.jsx(f1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function V1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=V1({sidebarItems:r.items,pathname:n});if(o)return o}}}var KE="vocs_SkipLink";const W1="vocs-content";function YE(){const{pathname:e}=Oe();return x.jsx("a",{className:O(KE,rg),href:`${e}#${W1}`,children:"Skip to content"})}var GE="vocs_DocsLayout_content",QE="vocs_DocsLayout_content_withSidebar",ZE="vocs_DocsLayout_content_withTopNav",XE="vocs_DocsLayout_gutterLeft",JE="vocs_DocsLayout_gutterRight",qE="vocs_DocsLayout_gutterRight_withSidebar",e_="vocs_DocsLayout_gutterTop",t_="vocs_DocsLayout_gutterTopCurtain",n_="vocs_DocsLayout_gutterTopCurtain_hidden",r_="vocs_DocsLayout_gutterTopCurtain_withSidebar",o_="vocs_DocsLayout_gutterTop_offsetLeftGutter",i_="vocs_DocsLayout_gutterTop_sticky",a_="vocs_DocsLayout",l_="vocs_DocsLayout_sidebar";function ku({children:e}){var h,y;const{banner:t,font:n}=Ke(),{frontmatter:r={}}=Pr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Nr(),{ref:u,inView:f}=Q0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[c,d]=mu("banner",!0);return x.jsxs("div",{className:a_,"data-layout":i,style:Yt({[t5]:c?t==null?void 0:t.height:void 0,[op.default]:(h=n==null?void 0:n.default)!=null&&h.google?`${n.default.google}, ${rp.default}`:void 0,[op.mono]:(y=n==null?void 0:n.mono)!=null&&y.google?`${n.mono.google}, ${rp.mono}`:void 0}),children:[x.jsx(YE,{}),c&&x.jsx(_5,{hide:()=>d(!1)}),l&&x.jsx("div",{className:XE,children:x.jsx(B1,{className:l_})}),s&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{ref:u,className:O(e_,l&&o_,(i==="minimal"||i==="landing")&&i_),children:[x.jsx(Eu,{}),x.jsx(Tu,{})]}),x.jsxs("div",{className:O(t_,l&&r_,(i==="minimal"||i==="landing")&&n_),children:[x.jsx(Eu.Curtain,{}),x.jsx(Tu.Curtain,{enableScrollToTop:!f})]})]}),a&&x.jsx("div",{className:O(JE,l&&qE),children:x.jsx(f1,{})}),x.jsxs("div",{id:W1,className:O(GE,l&&QE,s&&ZE),style:Yt({[Ms.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Ms.width]:o==null?void 0:o.width,[Ms.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[x.jsx(eg,{children:e}),x.jsx(o8,{})]}),x.jsx("div",{"data-bottom-observer":!0})]})}const Ru={},K1=Z.createContext(Ru);function s_(e){const t=Z.useContext(K1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function c_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ru):e.components||Ru:t=s_(e.components),Z.createElement(K1.Provider,{value:t},e.children)}var Y1={exports:{}},u_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",f_=u_,d_=f_;function G1(){}function Q1(){}Q1.resetWarningCache=G1;var h_=function(){function e(r,o,i,a,l,s){if(s!==d_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Q1,resetWarningCache:G1};return n.PropTypes=n,n};Y1.exports=h_();var p_=Y1.exports;const xe=Jn(p_);function v_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Z1=p,m_=v_(Z1);function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var y_=!!(typeof window<"u"&&window.document&&window.document.createElement);function w_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(f){g_(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return l},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,a=[],y};var d=c.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),s()},d.render=function(){return m_.createElement(i,this.props)},c}(Z1.PureComponent);return Xp(u,"displayName","SideEffect("+r(i)+")"),Xp(u,"canUseDOM",y_),u}}var x_=w_;const C_=Jn(x_);var E_=typeof Element<"u",__=typeof Map=="function",S_=typeof Set=="function",b_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ga(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ga(e[r],t[r]))return!1;return!0}var i;if(__&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ga(r.value[1],t.get(r.value[0])))return!1;return!0}if(S_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(b_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(E_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ga(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var $_=function(t,n){try{return Ga(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const T_=Jn($_);/* +*****************************************************/(function(e,t){(function(n,r){e.exports=r()})($y,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function u(f,c){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,u),this.ctx=f,this.iframes=c,this.exclude=d,this.iframesTimeout=h}return o(u,[{key:"getContexts",value:function(){var c=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(h){var y=d.filter(function(v){return v.contains(h)}).length>0;d.indexOf(h)===-1&&!y&&d.push(h)}),d}},{key:"getIframeContents",value:function(c,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var v=c.contentWindow;if(y=v.document,!v||!y)throw new Error("iframe inaccessible")}catch{h()}y&&d(y)}},{key:"isIframeBlank",value:function(c){var d="about:blank",h=c.getAttribute("src").trim(),y=c.contentWindow.location.href;return y===d&&h!==d&&h}},{key:"observeIframeLoad",value:function(c,d,h){var y=this,v=!1,C=null,m=function g(){if(!v){v=!0,clearTimeout(C);try{y.isIframeBlank(c)||(c.removeEventListener("load",g),y.getIframeContents(c,d,h))}catch{h()}}};c.addEventListener("load",m),C=setTimeout(m,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,d,h){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,d,h):this.getIframeContents(c,d,h):this.observeIframeLoad(c,d,h)}catch{h()}}},{key:"waitForIframes",value:function(c,d){var h=this,y=0;this.forEachIframe(c,function(){return!0},function(v){y++,h.waitForIframes(v.querySelector("html"),function(){--y||d()})},function(v){v||d()})}},{key:"forEachIframe",value:function(c,d,h){var y=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=c.querySelectorAll("iframe"),m=C.length,g=0;C=Array.prototype.slice.call(C);var w=function(){--m<=0&&v(g)};m||w(),C.forEach(function(E){u.matches(E,y.exclude)?w():y.onIframeReady(E,function(S){d(E)&&(g++,h(S)),w()},w)})}},{key:"createIterator",value:function(c,d,h){return document.createNodeIterator(c,d,h,!1)}},{key:"createInstanceOnIframe",value:function(c){return new u(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,d,h){var y=c.compareDocumentPosition(h),v=Node.DOCUMENT_POSITION_PRECEDING;if(y&v)if(d!==null){var C=d.compareDocumentPosition(h),m=Node.DOCUMENT_POSITION_FOLLOWING;if(C&m)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var d=c.previousNode(),h=void 0;return d===null?h=c.nextNode():h=c.nextNode()&&c.nextNode(),{prevNode:d,node:h}}},{key:"checkIframeFilter",value:function(c,d,h,y){var v=!1,C=!1;return y.forEach(function(m,g){m.val===h&&(v=g,C=m.handled)}),this.compareNodeIframe(c,d,h)?(v===!1&&!C?y.push({val:h,handled:!0}):v!==!1&&!C&&(y[v].handled=!0),!0):(v===!1&&y.push({val:h,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,d,h,y){var v=this;c.forEach(function(C){C.handled||v.getIframeContents(C.val,function(m){v.createInstanceOnIframe(m).forEachNode(d,h,y)})})}},{key:"iterateThroughNodes",value:function(c,d,h,y,v){for(var C=this,m=this.createIterator(d,c,y),g=[],w=[],E=void 0,S=void 0,$=function(){var b=C.getIteratorNode(m);return S=b.prevNode,E=b.node,E};$();)this.iframes&&this.forEachIframe(d,function(_){return C.checkIframeFilter(E,S,_,g)},function(_){C.createInstanceOnIframe(_).forEachNode(c,function(b){return w.push(b)},y)}),w.push(E);w.forEach(function(_){h(_)}),this.iframes&&this.handleOpenIframes(g,c,h,y),v()}},{key:"forEachNode",value:function(c,d,h){var y=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),m=C.length;m||v(),C.forEach(function(g){var w=function(){y.iterateThroughNodes(c,g,d,h,function(){--m<=0&&v()})};y.iframes?y.waitForIframes(g,w):w()})}}],[{key:"matches",value:function(c,d){var h=typeof d=="string"?[d]:d,y=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(y){var v=!1;return h.every(function(C){return y.call(c,C)?(v=!0,!1):!0}),v}else return!1}}]),u}(),l=function(){function u(f){r(this,u),this.ctx=f,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return o(u,[{key:"log",value:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",h=this.opt.log;this.opt.debug&&(typeof h>"u"?"undefined":n(h))==="object"&&typeof h[d]=="function"&&h[d]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var d=this.opt.synonyms,h=this.opt.caseSensitive?"":"i",y=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var v in d)if(d.hasOwnProperty(v)){var C=d[v],m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);m!==""&&g!==""&&(c=c.replace(new RegExp("("+this.escapeStr(m)+"|"+this.escapeStr(g)+")","gm"+h),y+("("+this.processSynomyms(m)+"|")+(this.processSynomyms(g)+")")+y))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var d=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(d,h,y){var v=y.charAt(h+1);return/[(|)\\]/.test(v)||v===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(c){var d=[],h=this.opt.ignorePunctuation;return Array.isArray(h)&&h.length&&d.push(this.escapeStr(h.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?c.split(/\u0000+/).join("["+d.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var d=this.opt.caseSensitive?"":"i",h=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],y=[];return c.split("").forEach(function(v){h.every(function(C){if(C.indexOf(v)!==-1){if(y.indexOf(C)>-1)return!1;c=c.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var d=this,h="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",y=this.opt.accuracy,v=typeof y=="string"?y:y.value,C=typeof y=="string"?[]:y.limiters,m="";switch(C.forEach(function(g){m+="|"+d.escapeStr(g)}),v){case"partially":default:return"()("+c+")";case"complementary":return m="\\s"+(m||this.escapeStr(h)),"()([^"+m+"]*"+c+"[^"+m+"]*)";case"exactly":return"(^|\\s"+m+")("+c+")(?=$|\\s"+m+")"}}},{key:"getSeparatedKeywords",value:function(c){var d=this,h=[];return c.forEach(function(y){d.opt.separateWordSearch?y.split(" ").forEach(function(v){v.trim()&&h.indexOf(v)===-1&&h.push(v)}):y.trim()&&h.indexOf(y)===-1&&h.push(y)}),{keywords:h.sort(function(y,v){return v.length-y.length}),length:h.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var d=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var h=[],y=0;return c.sort(function(v,C){return v.start-C.start}).forEach(function(v){var C=d.callNoMatchOnInvalidRanges(v,y),m=C.start,g=C.end,w=C.valid;w&&(v.start=m,v.length=g-m,h.push(v),y=g)}),h}},{key:"callNoMatchOnInvalidRanges",value:function(c,d){var h=void 0,y=void 0,v=!1;return c&&typeof c.start<"u"?(h=parseInt(c.start,10),y=h+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&y-d>0&&y-h>0?v=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:h,end:y,valid:v}}},{key:"checkWhitespaceRanges",value:function(c,d,h){var y=void 0,v=!0,C=h.length,m=d-C,g=parseInt(c.start,10)-m;return g=g>C?C:g,y=g+parseInt(c.length,10),y>C&&(y=C,this.log("End range automatically set to the max value of "+C)),g<0||y-g<0||g>C||y>C?(v=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):h.substring(g,y).replace(/\s+/g,"")===""&&(v=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:g,end:y,valid:v}}},{key:"getTextNodes",value:function(c){var d=this,h="",y=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(v){y.push({start:h.length,end:(h+=v.textContent).length,node:v})},function(v){return d.matchesExclude(v.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:h,nodes:y})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,d,h){var y=this.opt.element?this.opt.element:"mark",v=c.splitText(d),C=v.splitText(h-d),m=document.createElement(y);return m.setAttribute("data-markjs","true"),this.opt.className&&m.setAttribute("class",this.opt.className),m.textContent=v.textContent,v.parentNode.replaceChild(m,v),C}},{key:"wrapRangeInMappedTextNode",value:function(c,d,h,y,v){var C=this;c.nodes.every(function(m,g){var w=c.nodes[g+1];if(typeof w>"u"||w.start>d){if(!y(m.node))return!1;var E=d-m.start,S=(h>m.end?m.end:h)-m.start,$=c.value.substr(0,m.start),_=c.value.substr(S+m.start);if(m.node=C.wrapRangeInTextNode(m.node,E,S),c.value=$+_,c.nodes.forEach(function(b,k){k>=g&&(c.nodes[k].start>0&&k!==g&&(c.nodes[k].start-=S),c.nodes[k].end-=S)}),h-=S,v(m.node.previousSibling,m.start),h>m.end)d=m.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,d,h,y,v){var C=this,m=d===0?0:d+1;this.getTextNodes(function(g){g.nodes.forEach(function(w){w=w.node;for(var E=void 0;(E=c.exec(w.textContent))!==null&&E[m]!=="";)if(h(E[m],w)){var S=E.index;if(m!==0)for(var $=1;${const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function mu(e,t){const[n,r]=p.useState();p.useEffect(()=>{const i=x6(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=p.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function x6(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var C6="vocs_Kbd";function Ig(e){return x.jsx("kbd",{...e,className:M(e.className,C6)})}var E6="vocs_KeyboardShortcut_kbdGroup",_6="vocs_KeyboardShortcut";function ro(e){const{description:t,keys:n}=e;return x.jsxs("span",{className:_6,children:[t,x.jsx("span",{className:E6,children:n.map(r=>x.jsx(Ig,{children:r},r))})]})}var S6="vocs_SearchDialog_content",$p="vocs_SearchDialog_excerpt",b6="vocs_SearchDialog_overlay",$6="vocs_SearchDialog_result",Tp="vocs_SearchDialog_resultIcon",T6="vocs_SearchDialog_resultSelected",k6="vocs_SearchDialog_results",R6="vocs_SearchDialog",P6="vocs_SearchDialog_searchBox",N6="vocs_SearchDialog_searchInput",Ta="vocs_SearchDialog_searchInputIcon",A6="vocs_SearchDialog_searchInputIconDesktop",L6="vocs_SearchDialog_searchInputIconMobile",I6="vocs_SearchDialog_searchShortcuts",kp="vocs_SearchDialog_title",O6="vocs_SearchDialog_titleIcon",M6="vocs_SearchDialog_titles";function Og(e){const{search:t}=Ke(),n=Vf(),r=p.useRef(null),o=p.useRef(null),[i,a]=mu("filterText",""),l=w6(i,200),s=Ag(),[u,f]=p.useState(-1),[c,d]=p.useState(!1),[h,y]=mu("showDetailView",!0),v=p.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=v.length,m=v[u],g=p.useCallback(()=>{var $,_,b;if(!o.current)return;const w=new Set;for(const k of v)for(const N in k.match)w.add(N);const E=new y6(o.current);E.unmark({done(){E==null||E.markRegExp(D6(w))}});const S=o.current.querySelectorAll(`.${$p}`);for(const k of S)($=k.querySelector('mark[data-markjs="true"]'))==null||$.scrollIntoView({block:"center"});(b=(_=o.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[v]);return p.useEffect(()=>{if(!e.open)return;function w(E){var S;switch(E.key){case"ArrowDown":{E.preventDefault(),f($=>{var k;let _=$+1;_>=C&&(_=0);const b=(k=o.current)==null?void 0:k.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"ArrowUp":{E.preventDefault(),f($=>{var k;let _=$-1;_<0&&(_=C-1);const b=(k=o.current)==null?void 0:k.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"Backspace":{if(!E.metaKey)return;E.preventDefault(),a(""),(S=r.current)==null||S.focus();break}case"Enter":{if(E.target instanceof HTMLButtonElement&&E.target.type!=="submit"||!m)return;E.preventDefault(),n(m.href),e.onClose();break}}}return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[n,C,a,m,e.open,e.onClose]),p.useEffect(()=>{l!==""&&o.current&&g()},[g,l]),x.jsxs(G4,{children:[x.jsx(Q4,{className:b6}),x.jsxs(Z4,{onOpenAutoFocus:w=>{r.current&&(w.preventDefault(),r.current.focus()),g()},onCloseAutoFocus:()=>{f(0)},className:R6,"aria-describedby":void 0,children:[x.jsx(X4,{className:rg,children:"Search"}),x.jsxs("form",{className:P6,children:[x.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:L6,children:x.jsx(f5,{className:Ta,height:20,width:20})}),x.jsx(m6,{htmlFor:"search-input",children:x.jsx(Yf,{"aria-label":"Search",className:M(Ta,A6),height:20,width:20})}),x.jsx("input",{ref:r,tabIndex:0,className:N6,id:"search-input",onChange:w=>a(w.target.value),placeholder:"Search",type:"search",value:i}),x.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>y(w=>!w),children:x.jsx(w5,{className:Ta,height:20,width:20})}),x.jsx("button",{"aria-label":"Reset search",type:"button",className:Ta,onClick:()=>{var w;a(""),(w=r.current)==null||w.focus()},children:"⌫"})]}),x.jsxs("ul",{className:k6,role:v.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&v.length===0&&x.jsxs("li",{children:['No results for "',x.jsx("span",{children:l}),'"']}),v.map((w,E)=>{var S;return x.jsx("li",{role:"option",className:M($6,E===u&&T6),"aria-selected":E===u,"aria-label":[...w.titles.filter($=>!!$),w.title].join(" > "),children:x.jsxs(Yl,{to:w.href,onClick:$=>{$.metaKey||e.onClose()},onMouseEnter:()=>!c&&f(E),onFocus:()=>f(E),children:[x.jsxs("div",{className:M6,children:[w.isPage?x.jsx(g5,{className:Tp}):x.jsx("span",{className:Tp,children:"#"}),w.titles.filter($=>!!$).map($=>x.jsxs("span",{className:kp,children:[x.jsx("span",{dangerouslySetInnerHTML:{__html:$}}),x.jsx(h5,{className:O6})]},$)),x.jsx("span",{className:kp,children:x.jsx("span",{dangerouslySetInnerHTML:{__html:w.title}})})]}),h&&((S=w.text)==null?void 0:S.trim())&&x.jsx("div",{className:$p,children:x.jsx(eg,{className:S6,children:x.jsx("div",{dangerouslySetInnerHTML:{__html:w.html}})})})]})},w.id)})]}),x.jsxs("div",{className:I6,children:[x.jsx(ro,{description:"Navigate",keys:["↑","↓"]}),x.jsx(ro,{description:"Select",keys:["enter"]}),x.jsx(ro,{description:"Close",keys:["esc"]}),x.jsx(ro,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function D6(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function j6(){Ag();const[e,t]=p.useState(!1);return p.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),x.jsxs(Sg,{open:e,onOpenChange:t,children:[x.jsx(bg,{asChild:!0,children:x.jsxs("button",{className:h6,type:"button",children:[x.jsx(Yf,{style:{marginTop:2}}),"Search",x.jsx("div",{className:p6,children:x.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),x.jsx(Og,{open:e,onClose:()=>t(!1)})]})}var Mg="vocs_DesktopTopNav_button",F6="vocs_DesktopTopNav_content",z6="vocs_DesktopTopNav_curtain",Rp="vocs_DesktopTopNav_divider",Js="vocs_DesktopTopNav_group",ka="vocs_DesktopTopNav_hideCompact",gu="vocs_DesktopTopNav_icon",_l="vocs_DesktopTopNav_item",B6="vocs_DesktopTopNav_logo",U6="vocs_DesktopTopNav_logoWrapper",H6="vocs_DesktopTopNav",Pp="vocs_DesktopTopNav_section",V6="vocs_DesktopTopNav_withLogo",W6="vocs_Icon",yu="var(--vocs_Icon_size)";function ct({className:e,label:t,icon:n,size:r,style:o}){return x.jsx("div",{"aria-label":t,className:M(W6,e),role:"img",style:{...o,...Yt({[yu]:r})},children:x.jsx(n,{height:r,width:r})})}var K6="vocs_Logo_logoDark",Y6="vocs_Logo_logoLight",qs="vocs_Logo";function G6({className:e}){const{logoUrl:t}=Ke();return t?x.jsx(x.Fragment,{children:typeof t=="string"?x.jsx("img",{alt:"Logo",className:M(e,qs),src:t}):x.jsxs(x.Fragment,{children:[x.jsx("img",{alt:"Logo",className:M(e,qs,K6),src:t.dark}),x.jsx("img",{alt:"Logo",className:M(e,qs,Y6),src:t.light})]})}):null}var Q6="vocs_NavLogo_logoImage",Z6="vocs_NavLogo_title";function qf(){const e=Ke();return e.logoUrl?x.jsx(G6,{className:Q6}):x.jsx("div",{className:Z6,children:e.title})}const X6=p.createContext(void 0);function Zl(e){const t=p.useContext(X6);return e||t||"ltr"}function Xl(e){const t=e+"CollectionProvider",[n,r]=_n(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:y,children:v}=h,C=Z.useRef(null),m=Z.useRef(new Map).current;return Z.createElement(o,{scope:y,itemMap:m,collectionRef:C},v)},l=e+"CollectionSlot",s=Z.forwardRef((h,y)=>{const{scope:v,children:C}=h,m=i(l,v),g=Ue(y,m.collectionRef);return Z.createElement(So,{ref:g},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=Z.forwardRef((h,y)=>{const{scope:v,children:C,...m}=h,g=Z.useRef(null),w=Ue(y,g),E=i(u,v);return Z.useEffect(()=>(E.itemMap.set(g,{ref:g,...m}),()=>void E.itemMap.delete(g))),Z.createElement(So,{[f]:"",ref:w},C)});function d(h){const y=i(e+"CollectionConsumer",h);return Z.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,S)=>m.indexOf(E.ref.current)-m.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:c},d,r]}function J6(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const q6=p.forwardRef((e,t)=>p.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),e7=q6,Gi="NavigationMenu",[ed,t7,n7]=Xl(Gi),[wu,r7,o7]=Xl(Gi),[td,c$]=_n(Gi,[n7,o7]),[i7,Ar]=td(Gi),[a7,u$]=td(Gi),l7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[c,d]=p.useState(null),h=Ue(t,k=>d(k)),y=Zl(u),v=p.useRef(0),C=p.useRef(0),m=p.useRef(0),[g,w]=p.useState(!0),[E="",S]=or({prop:r,onChange:k=>{const N=k!=="",O=l>0;N?(window.clearTimeout(m.current),O&&w(!1)):(window.clearTimeout(m.current),m.current=window.setTimeout(()=>w(!0),l)),o==null||o(k)},defaultProp:i}),$=p.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),_=p.useCallback(k=>{window.clearTimeout(C.current),S(k)},[S]),b=p.useCallback(k=>{E===k?window.clearTimeout(C.current):v.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(k)},a)},[E,S,a]);return p.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(C.current),window.clearTimeout(m.current)},[]),p.createElement(s7,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:c,onTriggerEnter:k=>{window.clearTimeout(v.current),g?b(k):_(k)},onTriggerLeave:()=>{window.clearTimeout(v.current),$()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:$,onItemSelect:k=>{S(N=>N===k?"":k)},onItemDismiss:()=>S("")},p.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:h})))}),s7=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:d,onContentLeave:h}=e,[y,v]=p.useState(null),[C,m]=p.useState(new Map),[g,w]=p.useState(null);return p.createElement(i7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:J6(l),baseId:an(),dir:o,orientation:i,viewport:y,onViewportChange:v,indicatorTrack:g,onIndicatorTrackChange:w,onTriggerEnter:lt(f),onTriggerLeave:lt(c),onContentEnter:lt(d),onContentLeave:lt(h),onItemSelect:lt(s),onItemDismiss:lt(u),onViewportContentChange:p.useCallback((E,S)=>{m($=>($.set(E,S),new Map($)))},[]),onViewportContentRemove:p.useCallback(E=>{m(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},p.createElement(ed.Provider,{scope:t},p.createElement(a7,{scope:t,items:C},a)))},c7="NavigationMenuList",u7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(c7,n),i=p.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return p.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},p.createElement(ed.Slot,{scope:n},o.isRootMenu?p.createElement(jg,{asChild:!0},i):i))}),f7="NavigationMenuItem",[d7,Dg]=td(f7),h7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=an(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=p.useRef(null),s=p.useRef(null),u=p.useRef(null),f=p.useRef(()=>{}),c=p.useRef(!1),d=p.useCallback((y="start")=>{if(l.current){f.current();const v=xu(l.current);v.length&&nd(y==="start"?v:v.reverse())}},[]),h=p.useCallback(()=>{if(l.current){const y=xu(l.current);y.length&&(f.current=C7(y))}},[]);return p.createElement(d7,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:h,onContentFocusOutside:h},p.createElement(fe.li,Y({},o,{ref:t})))}),Np="NavigationMenuTrigger",p7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Ar(Np,e.__scopeNavigationMenu),a=Dg(Np,e.__scopeNavigationMenu),l=p.useRef(null),s=Ue(l,a.triggerRef,t),u=Bg(i.baseId,a.value),f=Ug(i.baseId,a.value),c=p.useRef(!1),d=p.useRef(!1),h=a.value===i.value;return p.createElement(p.Fragment,null,p.createElement(ed.ItemSlot,{scope:n,value:a.value},p.createElement(Fg,{asChild:!0},p.createElement(fe.button,Y({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":zg(h),"aria-expanded":h,"aria-controls":f},o,{ref:s,onPointerEnter:le(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:le(e.onPointerMove,Cu(()=>{r||d.current||a.wasEscapeCloseRef.current||c.current||(i.onTriggerEnter(a.value),c.current=!0)})),onPointerLeave:le(e.onPointerLeave,Cu(()=>{r||(i.onTriggerLeave(),c.current=!1)})),onClick:le(e.onClick,()=>{i.onItemSelect(a.value),d.current=h}),onKeyDown:le(e.onKeyDown,y=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&y.key===C&&(a.onEntryKeyDown(),y.preventDefault())})})))),h&&p.createElement(p.Fragment,null,p.createElement(e7,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:y=>{const v=a.contentRef.current,C=y.relatedTarget,m=C===l.current,g=v==null?void 0:v.contains(C);(m||!g)&&a.onFocusProxyEnter(m?"start":"end")}}),i.viewport&&p.createElement("span",{"aria-owns":f})))}),Ap="navigationMenu.linkSelect",v7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return p.createElement(Fg,{asChild:!0},p.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:le(e.onClick,a=>{const l=a.target,s=new CustomEvent(Ap,{bubbles:!0,cancelable:!0});if(l.addEventListener(Ap,u=>o==null?void 0:o(u),{once:!0}),cu(l,s),!s.defaultPrevented&&!a.metaKey){const u=new CustomEvent(Ka,{bubbles:!0,cancelable:!0});cu(l,u)}},{checkForDefaultPrevented:!1})})))}),Sl="NavigationMenuContent",m7=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ar(Sl,e.__scopeNavigationMenu),i=Dg(Sl,e.__scopeNavigationMenu),a=Ue(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?p.createElement(g7,Y({forceMount:n},s,{ref:a})):p.createElement(Sn,{present:n||l},p.createElement(y7,Y({"data-state":zg(l)},s,{ref:a,onPointerEnter:le(e.onPointerEnter,o.onContentEnter),onPointerLeave:le(e.onPointerLeave,Cu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),g7=p.forwardRef((e,t)=>{const n=Ar(Sl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return wn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),wn(()=>()=>o(e.value),[e.value,o]),null}),Ka="navigationMenu.rootContentDismiss",y7=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=Ar(Sl,n),c=p.useRef(null),d=Ue(c,t),h=Bg(f.baseId,r),y=Ug(f.baseId,r),v=t7(n),C=p.useRef(null),{onItemDismiss:m}=f;p.useEffect(()=>{const w=c.current;if(f.isRootMenu&&w){const E=()=>{var S;m(),l(),w.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return w.addEventListener(Ka,E),()=>w.removeEventListener(Ka,E)}},[f.isRootMenu,e.value,o,m,l]);const g=p.useMemo(()=>{const E=v().map(N=>N.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),$=E.indexOf(f.previousValue),_=r===f.value,b=$===E.indexOf(r);if(!_&&!b)return C.current;const k=(()=>{if(S!==$){if(_&&$!==-1)return S>$?"from-end":"from-start";if(b&&S!==-1)return S>$?"to-start":"to-end"}return null})();return C.current=k,k},[f.previousValue,f.value,f.dir,v,r]);return p.createElement(jg,{asChild:!0},p.createElement(Gf,Y({id:y,"aria-labelledby":h,"data-motion":g,"data-orientation":f.orientation},u,{ref:d,onDismiss:()=>{var w;const E=new Event(Ka,{bubbles:!0,cancelable:!0});(w=c.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:le(e.onFocusOutside,w=>{var E;s();const S=w.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&w.preventDefault()}),onPointerDownOutside:le(e.onPointerDownOutside,w=>{var E;const S=w.target,$=v().some(b=>{var k;return(k=b.ref.current)===null||k===void 0?void 0:k.contains(S)}),_=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));($||_||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:le(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const _=xu(w.currentTarget),b=document.activeElement,k=_.findIndex(D=>D===b),O=w.shiftKey?_.slice(0,k).reverse():_.slice(k+1,_.length);if(nd(O))w.preventDefault();else{var $;($=i.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:le(e.onEscapeKeyDown,w=>{a.current=!0})})))}),w7="FocusGroup",jg=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(w7,n);return p.createElement(wu.Provider,{scope:n},p.createElement(wu.Slot,{scope:n},p.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Lp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],x7="FocusGroupItem",Fg=p.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=r7(n),i=Ar(x7,n);return p.createElement(wu.ItemSlot,{scope:n},p.createElement(fe.button,Y({},r,{ref:t,onKeyDown:le(e.onKeyDown,a=>{if(["Home","End",...Lp].includes(a.key)){let s=o().map(c=>c.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Lp.includes(a.key)){const c=s.indexOf(a.currentTarget);s=s.slice(c+1)}setTimeout(()=>nd(s)),a.preventDefault()}})})))});function xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function C7(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function zg(e){return e?"open":"closed"}function Bg(e,t){return`${e}-trigger-${t}`}function Ug(e,t){return`${e}-content-${t}`}function Cu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const E7=l7,_7=u7,S7=h7,b7=p7,$7=v7,T7=m7;var k7="var(--vocs_NavigationMenu_chevronDownIcon)",R7="vocs_NavigationMenu_content",P7="vocs_NavigationMenu_item",N7="vocs_NavigationMenu_link",A7="vocs_NavigationMenu_list",L7="vocs_NavigationMenu",I7="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Hg=e=>x.jsx(E7,{...e,className:M(e.className,L7)}),Vg=e=>x.jsx(_7,{...e,className:M(e.className,A7)}),Jl=({active:e,children:t,className:n,href:r})=>x.jsx($7,{asChild:!0,children:x.jsx(on,{"data-active":e,className:M(n,N7),href:r,variant:"styleless",children:t})}),Wg=e=>x.jsx(S7,{...e,className:M(e.className,P7)}),Kg=({active:e,className:t,...n})=>{const{basePath:r}=Ke(),o=r;return x.jsx(b7,{...n,"data-active":e,className:M(t,I7),style:Yt({[k7]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Yg=e=>x.jsx(T7,{...e,className:M(e.className,R7)});function Gg(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[x.jsx("title",{children:"Discord"}),x.jsx("g",{id:"图层_2","data-name":"图层 2",children:x.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:x.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:x.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Qg(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"GitHub"}),x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function O7(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Moon"}),x.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),x.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function M7(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Sun"}),x.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),x.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Zg(){return x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[x.jsx("title",{children:"Telegram"}),x.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Xg(){return x.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Warpcast"}),x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Jg(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"X"}),x.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}Eu.Curtain=D7;function Eu(){var r,o,i,a,l,s;const e=Ke(),{showLogo:t,showSidebar:n}=Nr();return x.jsxs("div",{className:M(H6,t&&!n&&V6),children:[x.jsx(j6,{}),t&&x.jsx("div",{className:U6,children:x.jsx("div",{className:B6,children:x.jsx(Qn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:x.jsx(qf,{})})})}),x.jsx("div",{className:Pp}),x.jsxs("div",{className:Pp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:Js,children:x.jsx(j7,{})}),x.jsx("div",{className:M(Rp,(((o=e.topNav)==null?void 0:o.length)||0)>3?ka:null)})]}),e.socials&&((i=e.socials)==null?void 0:i.length)>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:M(Js,(((a=e.topNav)==null?void 0:a.length)||0)>3?ka:null),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((u,f)=>x.jsx("div",{className:_l,children:x.jsx(H7,{...u})},f))}),!((l=e.theme)!=null&&l.colorScheme)&&x.jsx("div",{className:M(Rp,ka)})]}),!((s=e.theme)!=null&&s.colorScheme)&&x.jsx("div",{className:M(Js,ka),style:{marginLeft:"-8px",marginRight:"-8px"},children:x.jsx("div",{className:_l,children:x.jsx(z7,{})})})]})]})}function D7(){return x.jsx("div",{className:z6})}function j7(){const{topNav:e}=Ke();if(!e)return null;const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx(Hg,{delayDuration:0,children:x.jsx(Vg,{children:e.map((r,o)=>r.link?x.jsx(Jl,{active:n.includes(r.id),className:_l,href:r.link,children:r.text},o):r.items?x.jsxs(Wg,{className:_l,children:[x.jsx(Kg,{active:n.includes(r.id),children:r.text}),x.jsx(Yg,{className:F6,children:x.jsx(F7,{items:r.items})})]},o):null)})})}function F7({items:e}){const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx("ul",{children:e==null?void 0:e.map((r,o)=>x.jsx(Jl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function z7(){const{toggle:e}=b5();return x.jsxs("button",{className:Mg,onClick:e,type:"button",children:[x.jsx(ct,{className:M(gu,$5),size:"20px",label:"Light",icon:M7}),x.jsx(ct,{className:M(gu,T5),size:"20px",label:"Dark",icon:O7,style:{marginTop:"-2px"}})]})}const B7={discord:Gg,github:Qg,telegram:Zg,warpcast:Xg,x:Jg},U7={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function H7({icon:e,label:t,link:n}){return x.jsx("a",{className:Mg,href:n,target:"_blank",rel:"noopener noreferrer",children:x.jsx(ct,{className:gu,label:t,icon:B7[e],size:U7[e]||"20px"})})}const V7=({children:e})=>e,W7=({children:e})=>e;function K7(){const e=Pr(),t=Ke();return p.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function qg(){const[e,t]=p.useState(!1);return p.useEffect(()=>{t(!0)},[]),e}var Y7="vocs_Footer_container",G7="vocs_Footer_editLink",Q7="vocs_Footer_lastUpdated",Z7="vocs_Footer_navigation",Ip="vocs_Footer_navigationIcon",X7="vocs_Footer_navigationIcon_left",J7="vocs_Footer_navigationIcon_right",Op="vocs_Footer_navigationItem",q7="vocs_Footer_navigationItem_left",e8="vocs_Footer_navigationItem_right",Mp="vocs_Footer_navigationText",Dp="vocs_Footer_navigationTextInner",t8="vocs_Footer";function n8(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Arrow Left"}),x.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function r8(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Arrow Right"}),x.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function o8(){const{layout:e}=Nr(),t=qg(),n=Pr(),r=p.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=p.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return x.jsxs("footer",{className:t8,children:[e==="docs"&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:Y7,children:[x.jsx(i8,{}),t&&n.lastUpdatedAt&&x.jsxs("div",{className:Q7,children:["Last updated:"," ",x.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),x.jsx(a8,{})]}),x.jsx(W7,{})]})}function i8(){const e=K7();return e.url?x.jsx("div",{children:x.jsxs(on,{className:G7,href:e.url,children:[x.jsx(E5,{})," ",e.text]})}):null}function a8(){const e=qg(),t=Gl(),{pathname:n}=Oe(),r=p.useMemo(()=>e1(t.items||[]).filter(s=>s.link),[t]),o=p.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=p.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Vf();return p.useEffect(()=>{let s=o,u=!1;const f=d=>{if(d.code==="ShiftLeft"&&(u=!0),u){const h=r[s+1],y=r[s-1];d.code==="ArrowRight"&&(h!=null&&h.link)&&(l(h.link),s++),d.code==="ArrowLeft"&&(y!=null&&y.link)&&(l(y.link),s--)}},c=d=>{d.code==="ShiftLeft"&&(u=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",c),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",c)}},[]),e?x.jsxs("div",{className:Z7,children:[i?x.jsxs(on,{className:M(Op,q7),href:i.link,variant:"styleless",children:[x.jsxs("div",{className:Mp,children:[x.jsx("div",{className:M(Ip,X7),style:Yt({[yu]:"0.75em"}),children:x.jsx(ct,{label:"Previous",icon:n8})}),x.jsx("div",{className:Dp,children:i.text})]}),x.jsx(ro,{description:"Previous",keys:["shift","←"]})]}):x.jsx("div",{}),a?x.jsxs(on,{className:M(Op,e8),href:a.link,variant:"styleless",children:[x.jsxs("div",{className:Mp,children:[x.jsx("div",{className:Dp,style:{textAlign:"right"},children:a.text}),x.jsx("div",{className:M(Ip,J7),style:Yt({[yu]:"0.75em"}),children:x.jsx(ct,{label:"Next",icon:r8})})]}),x.jsx(ro,{description:"Next",keys:["shift","→"]})]}):x.jsx("div",{})]}):null}function e1(e){const t=[];for(const n of e){if(n.items){t.push(...e1(n.items));continue}t.push(n)}return t}const t1="Collapsible",[l8,n1]=_n(t1),[s8,rd]=l8(t1),c8=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=or({prop:r,defaultProp:o,onChange:a});return p.createElement(s8,{scope:n,disabled:i,contentId:an(),open:s,onOpenToggle:p.useCallback(()=>u(f=>!f),[u])},p.createElement(fe.div,Y({"data-state":od(s),"data-disabled":i?"":void 0},l,{ref:t})))}),u8="CollapsibleTrigger",f8=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=rd(u8,n);return p.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":od(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:le(e.onClick,o.onOpenToggle)}))}),r1="CollapsibleContent",d8=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=rd(r1,e.__scopeCollapsible);return p.createElement(Sn,{present:n||o.open},({present:i})=>p.createElement(h8,Y({},r,{ref:t,present:i})))}),h8=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=rd(r1,n),[l,s]=p.useState(r),u=p.useRef(null),f=Ue(t,u),c=p.useRef(0),d=c.current,h=p.useRef(0),y=h.current,v=a.open||l,C=p.useRef(v),m=p.useRef();return p.useEffect(()=>{const g=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(g)},[]),wn(()=>{const g=u.current;if(g){m.current=m.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const w=g.getBoundingClientRect();c.current=w.height,h.current=w.width,C.current||(g.style.transitionDuration=m.current.transitionDuration,g.style.animationName=m.current.animationName),s(r)}},[a.open,r]),p.createElement(fe.div,Y({"data-state":od(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),v&&o)});function od(e){return e?"open":"closed"}const p8=c8,v8=f8,m8=d8,Lr="Accordion",g8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[id,y8,w8]=Xl(Lr),[ql,f$]=_n(Lr,[w8,n1]),ad=n1(),o1=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(id.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(_8,Y({},i,{ref:t})):Z.createElement(E8,Y({},o,{ref:t})))});o1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[i1,x8]=ql(Lr),[a1,C8]=ql(Lr,{collapsible:!1}),E8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=or({prop:n,defaultProp:r,onChange:o});return Z.createElement(i1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(a1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(l1,Y({},a,{ref:t}))))}),_8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=or({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((c=[])=>[...c,f]),[l]),u=Z.useCallback(f=>l((c=[])=>c.filter(d=>d!==f)),[l]);return Z.createElement(i1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u},Z.createElement(a1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(l1,Y({},i,{ref:t}))))}),[S8,ld]=ql(Lr),l1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=Ue(l,t),u=y8(n),c=Zl(o)==="ltr",d=le(e.onKeyDown,h=>{var y;if(!g8.includes(h.key))return;const v=h.target,C=u().filter(k=>{var N;return!((N=k.ref.current)!==null&&N!==void 0&&N.disabled)}),m=C.findIndex(k=>k.ref.current===v),g=C.length;if(m===-1)return;h.preventDefault();let w=m;const E=0,S=g-1,$=()=>{w=m+1,w>S&&(w=E)},_=()=>{w=m-1,w{const{__scopeAccordion:n,value:r,...o}=e,i=ld(_u,n),a=x8(_u,n),l=ad(n),s=an(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(b8,{scope:n,open:u,disabled:f,triggerId:s},Z.createElement(p8,Y({"data-orientation":i.orientation,"data-state":P8(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})))}),jp="AccordionTrigger",T8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ld(Lr,n),i=s1(jp,n),a=C8(jp,n),l=ad(n);return Z.createElement(id.ItemSlot,{scope:n},Z.createElement(v8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),k8="AccordionContent",R8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ld(Lr,n),i=s1(k8,n),a=ad(n);return Z.createElement(m8,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function P8(e){return e?"open":"closed"}const N8=o1,A8=$8,L8=T8,I8=R8;var O8="vocs_MobileSearch_searchButton";function M8(){const[e,t]=p.useState(!1);return x.jsxs(Sg,{open:e,onOpenChange:t,children:[x.jsx(bg,{asChild:!0,children:x.jsx("button",{className:O8,type:"button","aria-label":"Search",children:x.jsx(Yf,{height:21,width:21})})}),x.jsx(Og,{open:e,onClose:()=>t(!1)})]})}var D8="vocs_MobileTopNav_button",j8="var(--vocs_MobileTopNav_chevronDownIcon)",F8="var(--vocs_MobileTopNav_chevronUpIcon)",z8="vocs_MobileTopNav_content",B8="vocs_MobileTopNav_curtain",Fp="vocs_MobileTopNav_curtainGroup",ec="vocs_MobileTopNav_curtainItem",U8="vocs_MobileTopNav_divider",Ra="vocs_MobileTopNav_group",H8="vocs_MobileTopNav_icon",V8="vocs_MobileTopNav_item",W8="vocs_MobileTopNav_logo",K8="vocs_MobileTopNav_menuTitle",c1="vocs_MobileTopNav_menuTrigger",u1="vocs_MobileTopNav_navigation",Y8="vocs_MobileTopNav_navigationContent",ei="vocs_MobileTopNav_navigationItem",G8="vocs_MobileTopNav_trigger",Q8="vocs_MobileTopNav_navigation_compact",Z8="vocs_MobileTopNav_outlinePopover",zp="vocs_MobileTopNav_outlineTrigger",X8="vocs_MobileTopNav",Bp="vocs_MobileTopNav_section",J8="vocs_MobileTopNav_separator",q8="vocs_MobileTopNav_sidebarPopover",eC="vocs_MobileTopNav_topNavPopover";function tC(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var nC="vocs_Outline_heading",rC="vocs_Outline_item",oC="vocs_Outline_items",iC="vocs_Outline_link",aC="vocs_Outline_nav",lC="vocs_Outline";function f1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Ke(),{showOutline:a}=Nr(),l=typeof a=="number"?e+a-1:t,s=p.useRef(!0),{pathname:u,hash:f}=Oe(),[c,d]=p.useState([]);p.useEffect(()=>{if(typeof window>"u")return;const m=Array.from(document.querySelectorAll(`.${Z0}`));d(m)},[u]);const h=p.useMemo(()=>c?c.map(m=>{const g=m.querySelector(`.${X0}`);if(!g)return null;const w=g.getBoundingClientRect(),E=g.id,S=Number(m.tagName[1]),$=m.textContent,_=window.scrollY+w.top;return Sl?null:{id:E,level:S,slugTargetElement:g,text:$,topOffset:_}}).filter(Boolean):[],[c,l,e]),[y,v]=p.useState(f.replace("#",""));if(p.useEffect(()=>{if(typeof window>"u")return;const m=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const w=g.target.id;if(g.isIntersecting)v(w);else{if(!(g.target.getBoundingClientRect().top>0))return;const _=h.findIndex(k=>k.id===y),b=(E=h[_-1])==null?void 0:E.id;v(b)}},{rootMargin:"0px 0px -95% 0px"});for(const g of h)m.observe(g.slugTargetElement);return()=>m.disconnect()},[y,h]),p.useEffect(()=>{if(typeof window>"u")return;const m=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const w=(E=h[h.length-1])==null?void 0:E.id;g.isIntersecting?v(w):y===w&&v(h[h.length-2].id)});return m.observe(document.querySelector("[data-bottom-observer]")),()=>m.disconnect()},[y,h]),p.useEffect(()=>{if(typeof window>"u")return;const m=tC(()=>{var g,w,E;if(s.current){if(window.scrollY===0){v((g=h[0])==null?void 0:g.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){v((w=h[h.length-1])==null?void 0:w.id);return}for(let S=0;Swindow.removeEventListener("scroll",m)},[h]),h.length===0)return null;const C=h.filter(m=>m.level===e);return x.jsxs("aside",{className:lC,children:[x.jsxs("nav",{className:aC,children:[o&&x.jsx("h2",{className:nC,children:"On this page"}),x.jsx(d1,{activeId:n?y:null,items:h,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:v})]}),Cl(i)]})}function d1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){return x.jsx("ul",{className:oC,children:n.map(({id:i,level:a,text:l})=>{const s=`#${i}`,u=e===i,f=(()=>{var v;const d=t.findIndex(C=>C.id===i)+1,h=(v=t[d])==null?void 0:v.level;if(h<=a)return null;const y=[];for(let C=d;C{r==null||r(),o(i)},className:iC,children:l})}),f&&x.jsx(d1,{activeId:e,levelItems:f,items:t,onClickItem:r,setActiveId:o})]},i)})})}const sC=["top","right","bottom","left"],tn=Math.min,wt=Math.max,bl=Math.round,Pa=Math.floor,Zn=e=>({x:e,y:e}),cC={left:"right",right:"left",bottom:"top",top:"bottom"},uC={start:"end",end:"start"};function Su(e,t,n){return wt(e,tn(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Cn(e){return e.split("-")[0]}function Lo(e){return e.split("-")[1]}function sd(e){return e==="x"?"y":"x"}function cd(e){return e==="y"?"height":"width"}function Io(e){return["top","bottom"].includes(Cn(e))?"y":"x"}function ud(e){return sd(Io(e))}function fC(e,t,n){n===void 0&&(n=!1);const r=Lo(e),o=ud(e),i=cd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$l(a)),[a,$l(a)]}function dC(e){const t=$l(e);return[bu(e),t,bu(t)]}function bu(e){return e.replace(/start|end/g,t=>uC[t])}function hC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function pC(e,t,n,r){const o=Lo(e);let i=hC(Cn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(bu)))),i}function $l(e){return e.replace(/left|right|bottom|top/g,t=>cC[t])}function vC(e){return{top:0,right:0,bottom:0,left:0,...e}}function h1(e){return typeof e!="number"?vC(e):{top:e,right:e,bottom:e,left:e}}function Tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Up(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=ud(t),l=cd(a),s=Cn(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let h;switch(s){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Lo(t)){case"start":h[a]-=d*(n&&u?-1:1);break;case"end":h[a]+=d*(n&&u?-1:1);break}return h}const mC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Up(u,r,s),d=r,h={},y=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=xn(e,t)||{};if(u==null)return{};const c=h1(f),d={x:n,y:r},h=ud(o),y=cd(h),v=await a.getDimensions(u),C=h==="y",m=C?"top":"left",g=C?"bottom":"right",w=C?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[h]-d[h]-i.floating[y],S=d[h]-i.reference[h],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=$?$[w]:0;(!_||!await(a.isElement==null?void 0:a.isElement($)))&&(_=l.floating[w]||i.floating[y]);const b=E/2-S/2,k=_/2-v[y]/2-1,N=tn(c[m],k),O=tn(c[g],k),D=N,I=_-v[y]-O,R=_/2-v[y]/2+b,B=Su(D,R,I),G=!s.arrow&&Lo(o)!=null&&R!==B&&i.reference[y]/2-(RD<=0)){var k,N;const D=(((k=i.flip)==null?void 0:k.index)||0)+1,I=S[D];if(I)return{data:{index:D,overflows:b},reset:{placement:I}};let R=(N=b.filter(B=>B.overflows[0]<=0).sort((B,G)=>B.overflows[1]-G.overflows[1])[0])==null?void 0:N.placement;if(!R)switch(h){case"bestFit":{var O;const B=(O=b.map(G=>[G.placement,G.overflows.filter(z=>z>0).reduce((z,L)=>z+L,0)]).sort((G,z)=>G[1]-z[1])[0])==null?void 0:O[0];B&&(R=B);break}case"initialPlacement":R=l;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function Hp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vp(e){return sC.some(t=>e[t]>=0)}const wC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xn(e,t);switch(r){case"referenceHidden":{const i=await Di(t,{...o,elementContext:"reference"}),a=Hp(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vp(a)}}}case"escaped":{const i=await Di(t,{...o,altBoundary:!0}),a=Hp(i,n.floating);return{data:{escapedOffsets:a,escaped:Vp(a)}}}default:return{}}}}};async function xC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Cn(n),l=Lo(n),s=Io(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,c=xn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return l&&typeof y=="number"&&(h=l==="end"?y*-1:y),s?{x:h*f,y:d*u}:{x:d*u,y:h*f}}const CC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await xC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},EC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:m,y:g}=C;return{x:m,y:g}}},...s}=xn(e,t),u={x:n,y:r},f=await Di(t,s),c=Io(Cn(o)),d=sd(c);let h=u[d],y=u[c];if(i){const C=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=h+f[C],w=h-f[m];h=Su(g,h,w)}if(a){const C=c==="y"?"top":"left",m=c==="y"?"bottom":"right",g=y+f[C],w=y-f[m];y=Su(g,y,w)}const v=l.fn({...t,[d]:h,[c]:y});return{...v,data:{x:v.x-n,y:v.y-r}}}}},_C=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=xn(e,t),f={x:n,y:r},c=Io(o),d=sd(c);let h=f[d],y=f[c];const v=xn(l,t),C=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const w=d==="y"?"height":"width",E=i.reference[d]-i.floating[w]+C.mainAxis,S=i.reference[d]+i.reference[w]-C.mainAxis;hS&&(h=S)}if(u){var m,g;const w=d==="y"?"width":"height",E=["top","left"].includes(Cn(o)),S=i.reference[c]-i.floating[w]+(E&&((m=a.offset)==null?void 0:m[c])||0)+(E?0:C.crossAxis),$=i.reference[c]+i.reference[w]+(E?0:((g=a.offset)==null?void 0:g[c])||0)-(E?C.crossAxis:0);y$&&(y=$)}return{[d]:h,[c]:y}}}},SC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=xn(e,t),s=await Di(t,l),u=Cn(n),f=Lo(n),c=Io(n)==="y",{width:d,height:h}=r.floating;let y,v;u==="top"||u==="bottom"?(y=u,v=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,y=f==="end"?"top":"bottom");const C=h-s.top-s.bottom,m=d-s.left-s.right,g=tn(h-s[y],C),w=tn(d-s[v],m),E=!t.middlewareData.shift;let S=g,$=w;if(c?$=f||E?tn(w,m):m:S=f||E?tn(g,C):C,E&&!f){const b=wt(s.left,0),k=wt(s.right,0),N=wt(s.top,0),O=wt(s.bottom,0);c?$=d-2*(b!==0||k!==0?b+k:wt(s.left,s.right)):S=h-2*(N!==0||O!==0?N+O:wt(s.top,s.bottom))}await a({...t,availableWidth:$,availableHeight:S});const _=await o.getDimensions(i.floating);return d!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function Oo(e){return p1(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $n(e){var t;return(t=(p1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function p1(e){return e instanceof Node||e instanceof Et(e).Node}function Je(e){return e instanceof Element||e instanceof Et(e).Element}function ln(e){return e instanceof HTMLElement||e instanceof Et(e).HTMLElement}function $u(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Qi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bC(e){return["table","td","th"].includes(Oo(e))}function fd(e){const t=dd(),n=Gt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $C(e){let t=Xn(e);for(;ln(t)&&!bo(t);){if(fd(t))return t;t=Xn(t)}return null}function dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(e){return["html","body","#document"].includes(Oo(e))}function Gt(e){return Et(e).getComputedStyle(e)}function es(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xn(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$u(e)&&e.host||$n(e);return $u(t)?t.host:t}function v1(e){const t=Xn(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&Qi(t)?t:v1(t)}function ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=v1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Et(o);return i?t.concat(a,a.visualViewport||[],Qi(o)?o:[],a.frameElement&&n?ji(a.frameElement):[]):t.concat(o,ji(o,[],n))}function m1(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ln(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=bl(n)!==i||bl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function hd(e){return Je(e)?e:e.contextElement}function fo(e){const t=hd(e);if(!ln(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=m1(t);let a=(i?bl(n.width):n.width)/r,l=(i?bl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const TC=Zn(0);function g1(e){const t=Et(e);return!dd()||!t.visualViewport?TC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Et(e)?!1:t}function Sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=hd(e);let a=Zn(1);t&&(r?Je(r)&&(a=fo(r)):a=fo(e));const l=kC(i,n,r)?g1(i):Zn(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=Et(i),h=r&&Je(r)?Et(r):r;let y=d,v=y.frameElement;for(;v&&r&&h!==y;){const C=fo(v),m=v.getBoundingClientRect(),g=Gt(v),w=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*C.x,E=m.top+(v.clientTop+parseFloat(g.paddingTop))*C.y;s*=C.x,u*=C.y,f*=C.x,c*=C.y,s+=w,u+=E,y=Et(v),v=y.frameElement}}return Tl({width:f,height:c,x:s,y:u})}const RC=[":popover-open",":modal"];function pd(e){return RC.some(t=>{try{return e.matches(t)}catch{return!1}})}function PC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=$n(r),l=t?pd(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Zn(1);const f=Zn(0),c=ln(r);if((c||!c&&!i)&&((Oo(r)!=="body"||Qi(a))&&(s=es(r)),ln(r))){const d=Sr(r);u=fo(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function NC(e){return Array.from(e.getClientRects())}function y1(e){return Sr($n(e)).left+es(e).scrollLeft}function AC(e){const t=$n(e),n=es(e),r=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+y1(e);const l=-n.scrollTop;return Gt(r).direction==="rtl"&&(a+=wt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function LC(e,t){const n=Et(e),r=$n(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=dd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function IC(e,t){const n=Sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ln(e)?fo(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:a,height:l,x:s,y:u}}function Wp(e,t,n){let r;if(t==="viewport")r=LC(e,n);else if(t==="document")r=AC($n(e));else if(Je(t))r=IC(t,n);else{const o=g1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Tl(r)}function w1(e,t){const n=Xn(e);return n===t||!Je(n)||bo(n)?!1:Gt(n).position==="fixed"||w1(n,t)}function OC(e,t){const n=t.get(e);if(n)return n;let r=ji(e,[],!1).filter(l=>Je(l)&&Oo(l)!=="body"),o=null;const i=Gt(e).position==="fixed";let a=i?Xn(e):e;for(;Je(a)&&!bo(a);){const l=Gt(a),s=fd(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qi(a)&&!s&&w1(e,a))?r=r.filter(f=>f!==a):o=l,a=Xn(a)}return t.set(e,r),r}function MC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?pd(t)?[]:OC(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,f)=>{const c=Wp(t,f,o);return u.top=wt(c.top,u.top),u.right=tn(c.right,u.right),u.bottom=tn(c.bottom,u.bottom),u.left=wt(c.left,u.left),u},Wp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function DC(e){const{width:t,height:n}=m1(e);return{width:t,height:n}}function jC(e,t,n){const r=ln(t),o=$n(t),i=n==="fixed",a=Sr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Oo(t)!=="body"||Qi(o))&&(l=es(t)),r){const c=Sr(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=y1(o));const u=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:u,y:f,width:a.width,height:a.height}}function tc(e){return Gt(e).position==="static"}function Kp(e,t){return!ln(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function x1(e,t){const n=Et(e);if(pd(e))return n;if(!ln(e)){let o=Xn(e);for(;o&&!bo(o);){if(Je(o)&&!tc(o))return o;o=Xn(o)}return n}let r=Kp(e,t);for(;r&&bC(r)&&tc(r);)r=Kp(r,t);return r&&bo(r)&&tc(r)&&!fd(r)?n:r||$C(e)||n}const FC=async function(e){const t=this.getOffsetParent||x1,n=this.getDimensions,r=await n(e.floating);return{reference:jC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zC(e){return Gt(e).direction==="rtl"}const C1={convertOffsetParentRelativeRectToViewportRelativeRect:PC,getDocumentElement:$n,getClippingRect:MC,getOffsetParent:x1,getElementRects:FC,getClientRects:NC,getDimensions:DC,getScale:fo,isElement:Je,isRTL:zC};function BC(e,t){let n=null,r;const o=$n(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:f,width:c,height:d}=e.getBoundingClientRect();if(l||t(),!c||!d)return;const h=Pa(f),y=Pa(o.clientWidth-(u+c)),v=Pa(o.clientHeight-(f+d)),C=Pa(u),g={rootMargin:-h+"px "+-y+"px "+-v+"px "+-C+"px",threshold:wt(0,tn(1,s))||1};let w=!0;function E(S){const $=S[0].intersectionRatio;if($!==s){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),i}function UC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=hd(e),f=o||i?[...u?ji(u):[],...ji(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=u&&l?BC(u,n):null;let d=-1,h=null;a&&(h=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!s&&h.observe(u),h.observe(t));let y,v=s?Sr(e):null;s&&C();function C(){const m=Sr(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,y=requestAnimationFrame(C)}return n(),()=>{var m;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),c==null||c(),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(y)}}const E1=CC,_1=EC,HC=yC,VC=SC,WC=wC,Yp=gC,KC=_C,YC=(e,t,n)=>{const r=new Map,o={platform:C1,...n},i={...o.platform,_c:r};return mC(e,t,{...o,platform:i})},S1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yp({element:r.current,padding:o}).fn(n):{}:r?Yp({element:r,padding:o}).fn(n):{}}}};var Ya=typeof document<"u"?p.useLayoutEffect:p.useEffect;function kl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!kl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function b1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gp(e,t){const n=b1(e);return Math.round(t*n)/n}function Qp(e){const t=p.useRef(e);return Ya(()=>{t.current=e}),t}function $1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,c]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=p.useState(r);kl(d,r)||h(r);const[y,v]=p.useState(null),[C,m]=p.useState(null),g=p.useCallback(z=>{z!==$.current&&($.current=z,v(z))},[]),w=p.useCallback(z=>{z!==_.current&&(_.current=z,m(z))},[]),E=i||y,S=a||C,$=p.useRef(null),_=p.useRef(null),b=p.useRef(f),k=s!=null,N=Qp(s),O=Qp(o),D=p.useCallback(()=>{if(!$.current||!_.current)return;const z={placement:t,strategy:n,middleware:d};O.current&&(z.platform=O.current),YC($.current,_.current,z).then(L=>{const U={...L,isPositioned:!0};I.current&&!kl(b.current,U)&&(b.current=U,Po.flushSync(()=>{c(U)}))})},[d,t,n,O]);Ya(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(z=>({...z,isPositioned:!1})))},[u]);const I=p.useRef(!1);Ya(()=>(I.current=!0,()=>{I.current=!1}),[]),Ya(()=>{if(E&&($.current=E),S&&(_.current=S),E&&S){if(N.current)return N.current(E,S,D);D()}},[E,S,D,N,k]);const R=p.useMemo(()=>({reference:$,floating:_,setReference:g,setFloating:w}),[g,w]),B=p.useMemo(()=>({reference:E,floating:S}),[E,S]),G=p.useMemo(()=>{const z={position:n,left:0,top:0};if(!B.floating)return z;const L=Gp(B.floating,f.x),U=Gp(B.floating,f.y);return l?{...z,transform:"translate("+L+"px, "+U+"px)",...b1(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:U}},[n,l,B.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:D,refs:R,elements:B,floatingStyles:G}),[f,D,R,B,G])}function GC(e){const[t,n]=p.useState(void 0);return wn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const T1="Popper",[k1,R1]=_n(T1),[QC,P1]=k1(T1),ZC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(QC,{scope:t,anchor:r,onAnchorChange:o},n)},XC="PopperAnchor",JC=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=P1(XC,n),a=p.useRef(null),l=Ue(t,a);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.createElement(fe.div,Y({},o,{ref:l}))}),N1="PopperContent",[qC,d$]=k1(N1),eE=p.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:c="bottom",sideOffset:d=0,align:h="center",alignOffset:y=0,arrowPadding:v=0,avoidCollisions:C=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:$,..._}=e,b=P1(N1,f),[k,N]=p.useState(null),O=Ue(t,ar=>N(ar)),[D,I]=p.useState(null),R=GC(D),B=(n=R==null?void 0:R.width)!==null&&n!==void 0?n:0,G=(r=R==null?void 0:R.height)!==null&&r!==void 0?r:0,z=c+(h!=="center"?"-"+h:""),L=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},U=Array.isArray(m)?m:[m],K=U.length>0,oe={padding:L,boundary:U.filter(tE),altBoundary:K},{refs:ae,floatingStyles:Fe,placement:Me,isPositioned:ge,middlewareData:ye}=$1({strategy:"fixed",placement:z,whileElementsMounted:(...ar)=>UC(...ar,{animationFrame:S==="always"}),elements:{reference:b.anchor},middleware:[E1({mainAxis:d+G,alignmentAxis:y}),C&&_1({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?KC():void 0,...oe}),C&&HC({...oe}),VC({...oe,apply:({elements:ar,rects:Qt,availableWidth:ts,availableHeight:ns})=>{const{width:rs,height:os}=Qt.reference,Ir=ar.floating.style;Ir.setProperty("--radix-popper-available-width",`${ts}px`),Ir.setProperty("--radix-popper-available-height",`${ns}px`),Ir.setProperty("--radix-popper-anchor-width",`${rs}px`),Ir.setProperty("--radix-popper-anchor-height",`${os}px`)}}),D&&S1({element:D,padding:v}),nE({arrowWidth:B,arrowHeight:G}),E&&WC({strategy:"referenceHidden",...oe})]}),[Pe,de]=A1(Me),Se=lt($);wn(()=>{ge&&(Se==null||Se())},[ge,Se]);const Ot=(o=ye.arrow)===null||o===void 0?void 0:o.x,Mt=(i=ye.arrow)===null||i===void 0?void 0:i.y,Ne=((a=ye.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ir,Zi]=p.useState();return wn(()=>{k&&Zi(window.getComputedStyle(k).zIndex)},[k]),p.createElement("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...Fe,transform:ge?Fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ir,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(s=ye.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},p.createElement(qC,{scope:f,placedSide:Pe,onArrowChange:I,arrowX:Ot,arrowY:Mt,shouldHideArrow:Ne},p.createElement(fe.div,Y({"data-side":Pe,"data-align":de},_,{ref:O,style:{..._.style,animation:ge?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function tE(e){return e!==null}const nE=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[y,v]=A1(l),C={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,g=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let w="",E="";return y==="bottom"?(w=c?C:`${m}px`,E=`${-h}px`):y==="top"?(w=c?C:`${m}px`,E=`${s.floating.height+h}px`):y==="right"?(w=`${-h}px`,E=c?C:`${g}px`):y==="left"&&(w=`${s.floating.width+h}px`,E=c?C:`${g}px`),{data:{x:w,y:E}}}});function A1(e){const[t,n="center"]=e.split("-");return[t,n]}const rE=ZC,oE=JC,iE=eE,L1="Popover",[I1,h$]=_n(L1,[R1]),vd=R1(),[aE,Mo]=I1(L1),lE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=vd(t),s=p.useRef(null),[u,f]=p.useState(!1),[c=!1,d]=or({prop:r,defaultProp:o,onChange:i});return p.createElement(rE,l,p.createElement(aE,{scope:t,contentId:an(),triggerRef:s,open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:u,onCustomAnchorAdd:p.useCallback(()=>f(!0),[]),onCustomAnchorRemove:p.useCallback(()=>f(!1),[]),modal:a},n))},sE="PopoverTrigger",cE=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mo(sE,n),i=vd(n),a=Ue(t,o.triggerRef),l=p.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":D1(o.open)},r,{ref:a,onClick:le(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:p.createElement(oE,Y({asChild:!0},i),l)}),O1="PopoverPortal",[uE,fE]=I1(O1,{forceMount:void 0}),dE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Mo(O1,t);return p.createElement(uE,{scope:t,forceMount:n},p.createElement(Sn,{present:n||i.open},p.createElement(sg,{asChild:!0,container:o},r)))},Fi="PopoverContent",hE=p.forwardRef((e,t)=>{const n=fE(Fi,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Mo(Fi,e.__scopePopover);return p.createElement(Sn,{present:r||i.open},i.modal?p.createElement(pE,Y({},o,{ref:t})):p.createElement(vE,Y({},o,{ref:t})))}),pE=p.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=p.useRef(null),o=Ue(t,r),i=p.useRef(!1);return p.useEffect(()=>{const a=r.current;if(a)return yg(a)},[]),p.createElement(Qf,{as:So,allowPinchZoom:!0},p.createElement(M1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),vE=p.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return p.createElement(M1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),M1=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...c}=e,d=Mo(Fi,n),h=vd(n);return cg(),p.createElement(ag,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},p.createElement(Gf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},p.createElement(iE,Y({"data-state":D1(d.open),role:"dialog",id:d.contentId},h,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function D1(e){return e?"open":"closed"}const mE=lE,gE=cE,yE=dE,wE=hE;var xE="vocs_Popover";Ut.Root=mE;Ut.Trigger=gE;function Ut({children:e,className:t}){return x.jsx(yE,{children:x.jsx(wE,{className:M(xE,t),sideOffset:12,children:e})})}var CE="vocs_Sidebar_backLink",EE="vocs_Sidebar_divider",_E="vocs_Sidebar_group",li="vocs_Sidebar_item",j1="vocs_Sidebar_items",SE="vocs_Sidebar_level",bE="vocs_Sidebar_levelCollapsed",$E="vocs_Sidebar_levelInset",TE="vocs_Sidebar_logo",kE="vocs_Sidebar_logoWrapper",RE="vocs_Sidebar_navigation",PE="vocs_Sidebar",F1="vocs_Sidebar_section",NE="vocs_Sidebar_sectionCollapse",AE="vocs_Sidebar_sectionCollapseActive",LE="vocs_Sidebar_sectionHeader",IE="vocs_Sidebar_sectionHeaderActive",Zp="vocs_Sidebar_sectionTitle";function z1(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Chevron Right"}),x.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function B1(e){var u;const{className:t,onClickItem:n}=e,{previousPath:r}=Pr(),o=p.useRef(null),i=Gl(),[a,l]=p.useState("/");if(p.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=OE(i.items);return x.jsxs("aside",{ref:o,className:M(PE,t),children:[x.jsxs("div",{className:kE,children:[x.jsx("div",{className:TE,children:x.jsx(Qn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:x.jsx(qf,{})})}),x.jsx("div",{className:EE})]}),x.jsx("nav",{className:RE,children:x.jsxs("div",{className:_E,children:[i.backLink&&x.jsx("section",{className:F1,children:x.jsx("div",{className:j1,children:x.jsxs(Qn,{className:M(li,CE),to:a,children:["←"," ",typeof history<"u"&&((u=history.state)!=null&&u.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,c)=>x.jsx(H1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${c}`))]})})]},i.key)}function OE(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function U1(e,t){return e.find(n=>Kl(t,n.link??"")||n.link===t?!0:n.items?U1(n.items,t):!1)}function H1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=p.useRef(null),{pathname:a}=Oe(),l=Qw(n.link??""),s=p.useMemo(()=>n.items?!!U1(n.items,a):!1,[n.items,a]),[u,f]=p.useState(()=>l||!n.items||s?!1:!!n.collapsed),c=n.collapsed!==void 0&&n.items!==void 0,d=p.useCallback(v=>{"key"in v&&v.key!=="Enter"||n.link||f(C=>!C)},[n.link]),h=p.useCallback(v=>{"key"in v&&v.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),y=p.useRef(!0);return p.useEffect(()=>{!y.current||(y.current=!1,!Kl(a,n.link??""))||requestAnimationFrame(()=>{var g,w,E;const C=((g=i.current)==null?void 0:g.offsetTop)??0,m=((w=o==null?void 0:o.current)==null?void 0:w.clientHeight)??0;C0&&t<5&&n.items.map((v,C)=>x.jsx(H1,{depth:t+1,item:v,onClick:r,sidebarRef:o},`${v.text}${C}`))})]}):x.jsx(x.Fragment,{children:n.link?x.jsx(Qn,{ref:i,"data-active":!!l,onClick:r,className:li,to:n.link,children:n.text}):x.jsx("div",{className:li,children:n.text})})}function ME(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Chevron Down"}),x.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function DE(){return x.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("title",{children:"Chevron Up"}),x.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function jE(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[x.jsx("title",{children:"Menu"}),x.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}Tu.Curtain=WE;function Tu(){var n,r;const e=Ke(),{showLogo:t}=Nr();return x.jsxs("div",{className:X8,children:[x.jsxs("div",{className:Bp,children:[t&&x.jsx("div",{className:Ra,children:x.jsx("div",{className:W8,children:x.jsx(Qn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:x.jsx(qf,{})})})}),e.topNav&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:Ra,children:[x.jsx(FE,{items:e.topNav}),x.jsx(BE,{items:e.topNav})]})})]}),x.jsxs("div",{className:Bp,children:[x.jsx("div",{className:Ra,style:{marginRight:"-8px"},children:x.jsx(M8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:U8}),x.jsx("div",{className:Ra,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>x.jsx(VE,{...o},i))})]})]})]})}function FE({items:e}){const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx(Hg,{className:u1,children:x.jsx(Vg,{children:e.map((r,o)=>r!=null&&r.link?x.jsx(Jl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):x.jsxs(Wg,{className:V8,children:[x.jsx(Kg,{active:n==null?void 0:n.includes(r.id),children:r.text}),x.jsx(Yg,{className:z8,children:x.jsx(zE,{items:r.items||[]})})]},o))})})}function zE({items:e}){const{pathname:t}=Oe(),n=Yi({pathname:t,items:e});return x.jsx("ul",{children:e==null?void 0:e.map((r,o)=>x.jsx(Jl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function BE({items:e}){var s;const[t,n]=p.useState(!1),{pathname:r}=Oe(),o=Yi({pathname:r,items:e}),i=e.filter(u=>u.id===o[0])[0],{basePath:a}=Ke(),l=a;return x.jsx("div",{className:M(u1,Q8),children:i?x.jsxs(Ut.Root,{modal:!0,open:t,onOpenChange:n,children:[x.jsxs(Ut.Trigger,{className:M(c1,ei),children:[i.text,x.jsx(ct,{label:"Menu",icon:ME,size:"11px"})]}),x.jsx(Ut,{className:eC,children:x.jsx(N8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((u,f)=>{var c;return u!=null&&u.link?x.jsx(on,{"data-active":o.includes(u.id),className:ei,href:u.link,onClick:()=>n(!1),variant:"styleless",children:u.text},f):x.jsxs(A8,{value:f.toString(),children:[x.jsx(L8,{className:M(ei,G8),"data-active":o.includes(u.id),style:Yt({[j8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[F8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:u.text}),x.jsx(I8,{className:Y8,children:(c=u.items)==null?void 0:c.map((d,h)=>x.jsx(on,{className:ei,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},h))})]},f)})})})]}):(s=e[0])!=null&&s.link?x.jsx(on,{className:ei,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const UE={discord:Gg,github:Qg,telegram:Zg,warpcast:Xg,x:Jg},HE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function VE({icon:e,label:t,link:n,type:r}){return x.jsx("a",{className:D8,href:n,target:"_blank",rel:"noopener noreferrer",children:x.jsx(ct,{className:H8,label:t,icon:UE[e],size:HE[r]||"18px"})})}function WE({enableScrollToTop:e}){const{pathname:t}=Oe(),{layout:n,showSidebar:r}=Nr(),{frontmatter:o={}}=Pr(),i=Gl(),[a,l]=p.useState(!1),[s,u]=p.useState(!1),f=p.useMemo(()=>{if(!i||n==="minimal")return;const h=V1({sidebarItems:i.items,pathname:t});return h==null?void 0:h.text},[n,t,i]),c=p.useMemo(()=>{var h;if(!(typeof window>"u"))return(h=document.querySelector(".vocs_Content h1"))==null?void 0:h.textContent},[]),d=f||o.title||c;return x.jsxs("div",{className:B8,children:[x.jsx("div",{className:Fp,children:x.jsx("div",{className:ec,children:r?x.jsxs(Ut.Root,{modal:!0,open:s,onOpenChange:u,children:[x.jsxs(Ut.Trigger,{className:c1,children:[x.jsx(ct,{label:"Menu",icon:jE,size:"13px"}),x.jsx("div",{className:K8,children:d})]}),x.jsx(Ut,{className:q8,children:x.jsx(B1,{onClickItem:()=>u(!1)})})]}):d})}),x.jsxs("div",{className:Fp,children:[e&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:ec,children:x.jsxs("button",{className:zp,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",x.jsx(ct,{label:"Scroll to top",icon:DE,size:"10px"})]})}),x.jsx("div",{className:J8})]}),n==="docs"&&x.jsx("div",{className:ec,children:x.jsxs(Ut.Root,{modal:!0,open:a,onOpenChange:l,children:[x.jsxs(Ut.Trigger,{className:zp,children:["On this page",x.jsx(ct,{label:"On this page",icon:z1,size:"10px"})]}),x.jsx(Ut,{className:Z8,children:x.jsx(f1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function V1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=V1({sidebarItems:r.items,pathname:n});if(o)return o}}}var KE="vocs_SkipLink";const W1="vocs-content";function YE(){const{pathname:e}=Oe();return x.jsx("a",{className:M(KE,rg),href:`${e}#${W1}`,children:"Skip to content"})}var GE="vocs_DocsLayout_content",QE="vocs_DocsLayout_content_withSidebar",ZE="vocs_DocsLayout_content_withTopNav",XE="vocs_DocsLayout_gutterLeft",JE="vocs_DocsLayout_gutterRight",qE="vocs_DocsLayout_gutterRight_withSidebar",e_="vocs_DocsLayout_gutterTop",t_="vocs_DocsLayout_gutterTopCurtain",n_="vocs_DocsLayout_gutterTopCurtain_hidden",r_="vocs_DocsLayout_gutterTopCurtain_withSidebar",o_="vocs_DocsLayout_gutterTop_offsetLeftGutter",i_="vocs_DocsLayout_gutterTop_sticky",a_="vocs_DocsLayout",l_="vocs_DocsLayout_sidebar";function ku({children:e}){var h,y;const{banner:t,font:n}=Ke(),{frontmatter:r={}}=Pr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Nr(),{ref:u,inView:f}=Q0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[c,d]=mu("banner",!0);return x.jsxs("div",{className:a_,"data-layout":i,style:Yt({[t5]:c?t==null?void 0:t.height:void 0,[op.default]:(h=n==null?void 0:n.default)!=null&&h.google?`${n.default.google}, ${rp.default}`:void 0,[op.mono]:(y=n==null?void 0:n.mono)!=null&&y.google?`${n.mono.google}, ${rp.mono}`:void 0}),children:[x.jsx(YE,{}),c&&x.jsx(_5,{hide:()=>d(!1)}),l&&x.jsx("div",{className:XE,children:x.jsx(B1,{className:l_})}),s&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{ref:u,className:M(e_,l&&o_,(i==="minimal"||i==="landing")&&i_),children:[x.jsx(Eu,{}),x.jsx(Tu,{})]}),x.jsxs("div",{className:M(t_,l&&r_,(i==="minimal"||i==="landing")&&n_),children:[x.jsx(Eu.Curtain,{}),x.jsx(Tu.Curtain,{enableScrollToTop:!f})]})]}),a&&x.jsx("div",{className:M(JE,l&&qE),children:x.jsx(f1,{})}),x.jsxs("div",{id:W1,className:M(GE,l&&QE,s&&ZE),style:Yt({[Ms.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Ms.width]:o==null?void 0:o.width,[Ms.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[x.jsx(eg,{children:e}),x.jsx(o8,{})]}),x.jsx("div",{"data-bottom-observer":!0})]})}const Ru={},K1=Z.createContext(Ru);function s_(e){const t=Z.useContext(K1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function c_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ru):e.components||Ru:t=s_(e.components),Z.createElement(K1.Provider,{value:t},e.children)}var Y1={exports:{}},u_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",f_=u_,d_=f_;function G1(){}function Q1(){}Q1.resetWarningCache=G1;var h_=function(){function e(r,o,i,a,l,s){if(s!==d_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Q1,resetWarningCache:G1};return n.PropTypes=n,n};Y1.exports=h_();var p_=Y1.exports;const xe=Jn(p_);function v_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Z1=p,m_=v_(Z1);function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var y_=!!(typeof window<"u"&&window.document&&window.document.createElement);function w_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(f){g_(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return l},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,a=[],y};var d=c.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),s()},d.render=function(){return m_.createElement(i,this.props)},c}(Z1.PureComponent);return Xp(u,"displayName","SideEffect("+r(i)+")"),Xp(u,"canUseDOM",y_),u}}var x_=w_;const C_=Jn(x_);var E_=typeof Element<"u",__=typeof Map=="function",S_=typeof Set=="function",b_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ga(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ga(e[r],t[r]))return!1;return!0}var i;if(__&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ga(r.value[1],t.get(r.value[0])))return!1;return!0}if(S_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(b_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(E_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ga(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var $_=function(t,n){try{return Ga(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const T_=Jn($_);/* object-assign (c) Sindre Sorhus @license MIT -*/var Jp=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable;function P_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function N_(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var A_=N_()?Object.assign:function(e,t){for(var n,r=P_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},z_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Pu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},B_=function(t){var n=ho(t,q.TITLE),r=ho(t,zi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=ho(t,zi.DEFAULT_TITLE);return n||o||void 0},U_=function(t){return ho(t,zi.ON_CHANGE_CLIENT_STATE)||function(){}},nc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return dt({},r,o)},{})},H_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},V_=function(t){return{baseTag:H_([Ce.HREF,Ce.TARGET],t),bodyAttributes:nc(gr.BODY,t),defer:ho(t,zi.DEFER),encode:ho(t,zi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:nc(gr.HTML,t),linkTags:ti(q.LINK,[Ce.REL,Ce.HREF],t),metaTags:ti(q.META,[Ce.NAME,Ce.CHARSET,Ce.HTTPEQUIV,Ce.PROPERTY,Ce.ITEM_PROP],t),noscriptTags:ti(q.NOSCRIPT,[Ce.INNER_HTML],t),onChangeClientState:U_(t),scriptTags:ti(q.SCRIPT,[Ce.SRC,Ce.INNER_HTML],t),styleTags:ti(q.STYLE,[Ce.CSS_TEXT],t),title:B_(t),titleAttributes:nc(gr.TITLE,t)}},Nu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Nu(t)},0)}}(),ev=function(t){return clearTimeout(t)},W_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Nu:global.requestAnimationFrame||Nu,K_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ev:global.cancelAnimationFrame||ev,Y_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ni=null,G_=function(t){ni&&K_(ni),t.defer?ni=W_(function(){tv(t,function(){ni=null})}):(tv(t),ni=null)},tv=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,d=t.title,h=t.titleAttributes;Au(q.BODY,o),Au(q.HTML,i),Q_(d,h);var y={baseTag:Vr(q.BASE,r),linkTags:Vr(q.LINK,a),metaTags:Vr(q.META,l),noscriptTags:Vr(q.NOSCRIPT,s),scriptTags:Vr(q.SCRIPT,f),styleTags:Vr(q.STYLE,c)},v={},C={};Object.keys(y).forEach(function(m){var g=y[m],w=g.newTags,E=g.oldTags;w.length&&(v[m]=w),E.length&&(C[m]=y[m].oldTags)}),n&&n(),u(t,v,C)},X1=function(t){return Array.isArray(t)?t.join(""):t},Q_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=X1(t)),Au(q.TITLE,n)},Au=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Ht),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Ht):r.getAttribute(Ht)!==l.join(",")&&r.setAttribute(Ht,l.join(","))}},Vr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Ht+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ce.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===Ce.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Ht,"true"),i.some(function(d,h){return l=h,u.isEqualNode(d)})?i.splice(l,1):a.push(u)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},J1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},Z_=function(t,n,r,o){var i=J1(r),a=X1(n);return i?"<"+t+" "+Ht+'="true" '+i+">"+Pu(a,o)+"":"<"+t+" "+Ht+'="true">'+Pu(a,o)+""},X_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(u){return!(u===Ce.INNER_HTML||u===Ce.CSS_TEXT)}).reduce(function(u,f){var c=typeof i[f]>"u"?f:f+'="'+Pu(i[f],r)+'"';return u?u+" "+c:c},""),l=i.innerHTML||i.cssText||"",s=O_.indexOf(t)===-1;return o+"<"+t+" "+Ht+'="true" '+a+(s?"/>":">"+l+"")},"")},q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Rl[o]||o]=t[o],r},n)},J_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[I_[o]||o]=t[o],r},n)},q_=function(t,n,r){var o,i=(o={key:n},o[Ht]=!0,o),a=q1(r,i);return[Z.createElement(q.TITLE,a,n)]},eS=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Ht]=!0,i);return Object.keys(r).forEach(function(l){var s=Rl[l]||l;if(s===Ce.INNER_HTML||s===Ce.CSS_TEXT){var u=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:u}}else a[s]=r[l]}),Z.createElement(t,a)})},ln=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return q_(t,n.title,n.titleAttributes)},toString:function(){return Z_(t,n.title,n.titleAttributes,r)}};case gr.BODY:case gr.HTML:return{toComponent:function(){return q1(n)},toString:function(){return J1(n)}};default:return{toComponent:function(){return eS(t,n)},toString:function(){return X_(t,n,r)}}}},ey=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,d=c===void 0?"":c,h=t.titleAttributes;return{base:ln(q.BASE,n,o),bodyAttributes:ln(gr.BODY,r,o),htmlAttributes:ln(gr.HTML,i,o),link:ln(q.LINK,a,o),meta:ln(q.META,l,o),noscript:ln(q.NOSCRIPT,s,o),script:ln(q.SCRIPT,u,o),style:ln(q.STYLE,f,o),title:ln(q.TITLE,{title:d,titleAttributes:h},o)}},tS=function(t){var n,r;return r=n=function(o){F_(i,o);function i(){return D_(this,i),z_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!T_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,u=l.child,f=l.arrayTypeChildren,c=l.newChildProps,d=l.nestedChildren;return dt({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[dt({},c,this.mapNestedChildrenToProps(u,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,u,f=l.child,c=l.newProps,d=l.newChildProps,h=l.nestedChildren;switch(f.type){case q.TITLE:return dt({},c,(s={},s[f.type]=h,s.titleAttributes=dt({},d),s));case q.BODY:return dt({},c,{bodyAttributes:dt({},d)});case q.HTML:return dt({},c,{htmlAttributes:dt({},d)})}return dt({},c,(u={},u[f.type]=dt({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var u=dt({},s);return Object.keys(l).forEach(function(f){var c;u=dt({},u,(c={},c[f]=l[f],c))}),u},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var u=this,f={};return Z.Children.forEach(l,function(c){if(!(!c||!c.props)){var d=c.props,h=d.children,y=qp(d,["children"]),v=J_(y);switch(u.warnOnInvalidChildren(c,h),c.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:v,nestedChildren:h});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:v,nestedChildren:h});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,u=qp(l,["children"]),f=dt({},u);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},j_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:xe.object,bodyAttributes:xe.object,children:xe.oneOfType([xe.arrayOf(xe.node),xe.node]),defaultTitle:xe.string,defer:xe.bool,encodeSpecialCharacters:xe.bool,htmlAttributes:xe.object,link:xe.arrayOf(xe.object),meta:xe.arrayOf(xe.object),noscript:xe.arrayOf(xe.object),onChangeClientState:xe.func,script:xe.arrayOf(xe.object),style:xe.arrayOf(xe.object),title:xe.string,titleAttributes:xe.object,titleTemplate:xe.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=ey({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},nS=function(){return null},rS=C_(V_,G_,ey)(nS),Lu=tS(rS);Lu.renderStatic=Lu.rewind;var rc="vocs_Anchor",oS="vocs_Autolink";function iS(e){return e.href?x.jsx(Yl,{...e,className:O(e.className,oS),to:e.href}):null}function aS(e){const{children:t,href:n}=e,{pathname:r}=Oe();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?x.jsx(iS,{className:O(e.className,rc),...e}):n!=null&&n.match(/^#/)?x.jsx("a",{className:O(e.className,rc),...e,href:`${r}${n}`}):x.jsx(rn,{className:O(e.className,rc),...e})}var lS="vocs_Callout_danger",sS="vocs_Callout_info",cS="vocs_Callout_note",ty="vocs_Callout",uS="vocs_Callout_success",fS="vocs_Callout_tip",dS="vocs_Callout_warning";const hS=Object.freeze(Object.defineProperty({__proto__:null,danger:lS,info:sS,note:cS,root:ty,success:uS,tip:fS,warning:dS},Symbol.toStringTag,{value:"Module"}));function pS({className:e,children:t,type:n}){return x.jsx("aside",{className:O(e,ty,hS[n]),children:t})}var vS="vocs_Aside";function mS(e){const t=O(e.className,vS);return"data-callout"in e?x.jsx(pS,{className:t,type:e["data-callout"],children:e.children}):x.jsx("aside",{...e,className:t})}var gS="vocs_Blockquote";function yS(e){return x.jsx("blockquote",{...e,className:O(e.className,gS)})}var wS="vocs_Code";function xS(e){const t=CS(e.children);return x.jsx("code",{...e,className:O(e.className,wS),children:t})}function CS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var ES="vocs_Details";function _S(e){return x.jsx("details",{...e,className:O(e.className,ES)})}var SS="vocs_Authors_authors",bS="vocs_Authors_link",$S="vocs_Authors",nv="vocs_Authors_separator";function ny(e){const{frontmatter:t}=Pr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=p.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=p.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return x.jsxs("div",{className:$S,children:[i,o&&(i?" by ":"By "),x.jsx("span",{className:SS,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:u}=TS(a);return x.jsxs(p.Fragment,{children:[u?x.jsx("a",{className:bS,href:u,target:"_blank",rel:"noopener noreferrer",children:s}):s,lx.jsxs(p.Fragment,{children:[x.jsx("div",{className:PS,children:x.jsxs(Gn,{to:e.path,children:[x.jsx("h2",{className:LS,children:e.title}),x.jsx(ny,{authors:e.authors,date:e.date}),x.jsxs("p",{className:kS,children:[e.description," ",x.jsx("span",{className:NS,children:"[→]"})]})]})}),tx.jsxs(p.Fragment,{children:[x.jsx("div",{className:US,children:t.name}),t.items.map((r,o)=>{var i;return x.jsx("div",{className:zS,style:Yt({[MS]:r.length.toString(),[DS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>x.jsx(rn,{className:O(OS,a?BS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:x.jsx("img",{className:jS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var VS="var(--vocs_AutolinkIcon_iconUrl)",WS="vocs_AutolinkIcon";function KS(e){const{basePath:t}=Ke(),n=t;return x.jsx("div",{...e,className:O(e.className,WS),style:Yt({[VS]:`url(${n}/.vocs/icons/link.svg)`})})}const oc="rovingFocusGroup.onEntryFocus",YS={bubbles:!1,cancelable:!0},md="RovingFocusGroup",[Iu,ry,GS]=Xl(md),[QS,oy]=En(md,[GS]),[ZS,XS]=QS(md),JS=p.forwardRef((e,t)=>p.createElement(Iu.Provider,{scope:e.__scopeRovingFocusGroup},p.createElement(Iu.Slot,{scope:e.__scopeRovingFocusGroup},p.createElement(qS,Y({},e,{ref:t}))))),qS=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,c=p.useRef(null),d=Ue(t,c),h=Zl(i),[y=null,v]=or({prop:a,defaultProp:l,onChange:s}),[C,m]=p.useState(!1),g=lt(u),w=ry(n),E=p.useRef(!1),[S,$]=p.useState(0);return p.useEffect(()=>{const _=c.current;if(_)return _.addEventListener(oc,g),()=>_.removeEventListener(oc,g)},[g]),p.createElement(ZS,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:y,onItemFocus:p.useCallback(_=>v(_),[v]),onItemShiftTab:p.useCallback(()=>m(!0),[]),onFocusableItemAdd:p.useCallback(()=>$(_=>_+1),[]),onFocusableItemRemove:p.useCallback(()=>$(_=>_-1),[])},p.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{E.current=!0}),onFocus:le(e.onFocus,_=>{const b=!E.current;if(_.target===_.currentTarget&&b&&!C){const k=new CustomEvent(oc,YS);if(_.currentTarget.dispatchEvent(k),!k.defaultPrevented){const N=w().filter(B=>B.focusable),M=N.find(B=>B.active),D=N.find(B=>B.id===y),R=[M,D,...N].filter(Boolean).map(B=>B.ref.current);iy(R)}}E.current=!1}),onBlur:le(e.onBlur,()=>m(!1))})))}),e9="RovingFocusGroupItem",t9=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=on(),s=i||l,u=XS(e9,n),f=u.currentTabStopId===s,c=ry(n),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return p.useEffect(()=>{if(r)return d(),()=>h()},[r,d,h]),p.createElement(Iu.ItemSlot,{scope:n,id:s,focusable:r,active:o},p.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:le(e.onMouseDown,y=>{r?u.onItemFocus(s):y.preventDefault()}),onFocus:le(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:le(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const v=o9(y,u.orientation,u.dir);if(v!==void 0){y.preventDefault();let m=c().filter(g=>g.focusable).map(g=>g.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();const g=m.indexOf(y.currentTarget);m=u.loop?i9(m,g+1):m.slice(g+1)}setTimeout(()=>iy(m))}})})))}),n9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function r9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function o9(e,t,n){const r=r9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return n9[r]}function iy(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function i9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const a9=JS,l9=t9,ay="Tabs",[s9,p$]=En(ay,[oy]),ly=oy(),[c9,gd]=s9(ay),u9=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Zl(l),[c,d]=or({prop:r,onChange:o,defaultProp:i});return p.createElement(c9,{scope:n,baseId:on(),value:c,onValueChange:d,orientation:a,dir:f,activationMode:s},p.createElement(fe.div,Y({dir:f,"data-orientation":a},u,{ref:t})))}),f9="TabsList",d9=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=gd(f9,n),a=ly(n);return p.createElement(a9,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),p.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),h9="TabsTrigger",p9=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=gd(h9,n),l=ly(n),s=sy(a.baseId,r),u=cy(a.baseId,r),f=r===a.value;return p.createElement(l9,Y({asChild:!0},l,{focusable:!o,active:f}),p.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:le(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:le(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:le(e.onFocus,()=>{const c=a.activationMode!=="manual";!f&&!o&&c&&a.onValueChange(r)})})))}),v9="TabsContent",m9=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=gd(v9,n),s=sy(l.baseId,r),u=cy(l.baseId,r),f=r===l.value,c=p.useRef(f);return p.useEffect(()=>{const d=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(d)},[]),p.createElement(_n,{present:o||f},({present:d})=>p.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0}}),d&&i))});function sy(e,t){return`${e}-trigger-${t}`}function cy(e,t){return`${e}-content-${t}`}const g9=u9,y9=d9,w9=p9,x9=m9;var C9="vocs_Tabs_content",E9="vocs_Tabs_list",_9="vocs_Tabs",S9="vocs_Tabs_trigger";function b9(e){return x.jsx(g9,{...e,className:O(e.className,_9)})}function $9(e){return x.jsx(y9,{...e,className:O(e.className,E9)})}function T9(e){return x.jsx(w9,{...e,className:O(e.className,S9)})}function k9(e){return x.jsx(x9,{...e,className:O(e.className,C9)})}var R9="vocs_CodeGroup";function P9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return x.jsxs(b9,{className:R9,defaultValue:t[0].title,children:[x.jsx($9,{"aria-label":"Code group",children:t.map(({title:n},r)=>x.jsx(T9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return x.jsx(k9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var N9="vocs_Div",A9="vocs_Step_content",L9="vocs_Step",uy="vocs_Step_title",I9="vocs_H2";function fy(e){return x.jsx(Ao,{...e,className:O(e.className,I9),level:2})}var O9="vocs_H3";function dy(e){return x.jsx(Ao,{...e,className:O(e.className,O9),level:3})}var M9="vocs_H4";function hy(e){return x.jsx(Ao,{...e,className:O(e.className,M9),level:4})}var D9="vocs_H5";function py(e){return x.jsx(Ao,{...e,className:O(e.className,D9),level:5})}var j9="vocs_H6";function vy(e){return x.jsx(Ao,{...e,className:O(e.className,j9),level:6})}function F9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return fy;if(r===3)return dy;if(r===4)return hy;if(r===5)return py;if(r===6)return vy;throw new Error("Invalid.")})();return x.jsxs("div",{className:O(t,L9),children:[typeof n=="string"?x.jsx(o,{className:uy,children:n}):n,x.jsx("div",{className:A9,children:e})]})}var z9="vocs_Steps";function B9({children:e,className:t}){return x.jsx("div",{className:O(t,z9),children:e})}function U9({children:e}){return Array.isArray(e)?x.jsx(B9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return x.jsx(F9,{title:p.cloneElement(r,{className:uy}),children:o},n)})}):null}var H9="vocs_Subtitle";function V9({children:e}){return x.jsx("div",{className:H9,role:"doc-subtitle",children:e})}function W9(e){const{layout:t}=Nr(),n=O(e.className,N9);return e.className==="code-group"?x.jsx(P9,{...e,className:n}):"data-authors"in e?x.jsx(ny,{}):"data-blog-posts"in e?x.jsx(IS,{}):"data-sponsors"in e?x.jsx(HS,{}):"data-autolink-icon"in e&&t==="docs"?x.jsx(KS,{...e,className:n}):"data-vocs-steps"in e?x.jsx(U9,{...e,className:n}):e.role==="doc-subtitle"?x.jsx(V9,{...e}):x.jsx("div",{...e,className:n})}var K9="vocs_Figcaption";function Y9(e){const t=O(e.className,K9);return x.jsx("figcaption",{...e,className:t})}var G9="vocs_Figure";function Q9(e){const t=O(e.className,G9);return x.jsx("figure",{...e,className:t})}var Z9="vocs_Header";function X9(e){return x.jsx("header",{...e,className:O(e.className,Z9)})}var J9="vocs_HorizontalRule";function q9(e){return x.jsx("hr",{...e,className:O(e.className,J9)})}var eb="vocs_List_ordered",tb="vocs_List",nb="vocs_List_unordered";function ov({ordered:e,...t}){const n=e?"ol":"ul";return x.jsx(n,{...t,className:O(t.className,tb,e?eb:nb)})}var rb="vocs_ListItem";function ob(e){return x.jsx("li",{...e,className:O(e.className,rb)})}function ib(){const e=p.useRef(null),[t,n]=p.useState(!1);p.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var ab="vocs_CopyButton";function lb(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[x.jsx("title",{children:"Checkmark"}),x.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function sb(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[x.jsx("title",{children:"Copy"}),x.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),x.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function cb({copy:e,copied:t}){return x.jsx("button",{className:ab,onClick:e,type:"button",children:t?x.jsx(ct,{label:"Copied",size:"14px",icon:lb}):x.jsx(ct,{label:"Copy",size:"18px",icon:sb})})}var ub="vocs_CodeBlock";function fb(e){return x.jsx("div",{...e,className:O(e.className,ub)})}function db(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[x.jsx("title",{children:"File"}),x.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),x.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function hb(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[x.jsx("title",{children:"Terminal"}),x.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),x.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var pb="vocs_CodeTitle";function vb({children:e,className:t,language:n,...r}){return x.jsxs("div",{...r,className:O(t,pb),children:[n==="bash"?x.jsx(ct,{label:"Terminal",size:"14px",icon:hb,style:{marginTop:3}}):e.match(/\.(.*)$/)?x.jsx(ct,{label:"File",size:"14px",icon:db,style:{marginTop:1}}):null,e]})}var mb="vocs_Pre",gb="vocs_Pre_wrapper";function yb({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=ib();function a(u){return!u||typeof u!="object"?u:"props"in u?{...u,props:{...u.props,children:Array.isArray(u.props.children)?u.props.children.map(a):a(u.props.children)}}:u}const l=p.useMemo(()=>a(e),[e]);return(u=>t!=null&&t.includes("shiki")?x.jsxs(fb,{children:[n["data-title"]&&x.jsx(vb,{language:n["data-lang"],children:n["data-title"]}),u]}):u)(x.jsx("div",{className:O(gb),children:x.jsxs("pre",{ref:i,...n,className:O(t,mb),children:["data-language"in n&&x.jsx(cb,{copied:r,copy:o}),l]})}))}var wb="vocs_Footnotes";function xb(e){return x.jsx("section",{...e,className:O(e.className,wb)})}var iv="vocs_Section";function Cb(e){return"data-footnotes"in e?x.jsx(xb,{...e,className:O(e.className,iv)}):x.jsx("section",{...e,className:O(e.className,iv)})}var av="vocs_Span";function Qa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$u(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ou(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Na(e){return(e==null?void 0:e.ownerDocument)||document}function Eb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const my={...Vu},_b=my.useInsertionEffect,Sb=_b||(e=>e());function Mu(e){const t=p.useRef(()=>{});return Sb(()=>{t.current=e}),p.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+bb++;function $b(){const[e,t]=p.useState(()=>lv?sv():void 0);return $o(()=>{e==null&&t(sv())},[]),p.useEffect(()=>{lv=!0},[]),e}const Tb=my.useId,gy=Tb||$b,kb=p.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:f,stroke:c,d,style:{transform:h,...y}={},...v}=t,C=gy();if(!o)return null;const m=u*2,g=m/2,w=a/2*(s/-8+1),E=l/2*s/4,[S,$]=r.split("-"),_=C1.isRTL(o),b=!!d,k=S==="top"||S==="bottom",N=f&&$==="end"?"bottom":"top";let M=f&&$==="end"?"right":"left";f&&_&&(M=$==="end"?"left":"right");const D=(i==null?void 0:i.x)!=null?f||i.x:"",I=(i==null?void 0:i.y)!=null?f||i.y:"",R=d||"M0,0"+(" H"+a)+(" L"+(a-w)+","+(l-E))+(" Q"+a/2+","+l+" "+w+","+(l-E))+" Z",B={top:b?"rotate(180deg)":"",left:b?"rotate(90deg)":"rotate(-90deg)",bottom:b?"":"rotate(180deg)",right:b?"rotate(-90deg)":"rotate(90deg)"}[S];return p.createElement("svg",Du({},v,{"aria-hidden":!0,ref:n,width:b?a:a+m,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[M]:D,[N]:I,[S]:k||b?"100%":"calc(100% - "+m/2+"px)",transform:""+B+(h??""),...y}}),m>0&&p.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:c,strokeWidth:m+(d?0:1),d:R}),p.createElement("path",{stroke:m&&!d?v.fill:"none",d:R}),p.createElement("clipPath",{id:C},p.createElement("rect",{x:-g,y:g*(b?-1:1),width:a+m,height:a})))});function Rb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Pb=p.createContext(null),Nb=p.createContext(null),yy=()=>{var e;return((e=p.useContext(Pb))==null?void 0:e.id)||null},wy=()=>p.useContext(Nb);function Ab(e){return"data-floating-ui-"+e}function cv(e){const t=p.useRef(e);return $o(()=>{t.current=e}),t}const uv=Ab("safe-polygon");function ic(e,t,n){return n&&!Ou(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Lb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l}}=e,{enabled:s=!0,delay:u=0,handleClose:f=null,mouseOnly:c=!1,restMs:d=0,move:h=!0}=t,y=wy(),v=yy(),C=cv(f),m=cv(u),g=p.useRef(),w=p.useRef(-1),E=p.useRef(),S=p.useRef(-1),$=p.useRef(!0),_=p.useRef(!1),b=p.useRef(()=>{}),k=p.useCallback(()=>{var I;const R=(I=o.current.openEvent)==null?void 0:I.type;return(R==null?void 0:R.includes("mouse"))&&R!=="mousedown"},[o]);p.useEffect(()=>{if(!s)return;function I(R){let{open:B}=R;B||(clearTimeout(w.current),clearTimeout(S.current),$.current=!0)}return i.on("openchange",I),()=>{i.off("openchange",I)}},[s,i]),p.useEffect(()=>{if(!s||!C.current||!n)return;function I(B){k()&&r(!1,B,"hover")}const R=Na(l).documentElement;return R.addEventListener("mouseleave",I),()=>{R.removeEventListener("mouseleave",I)}},[l,n,r,s,C,k]);const N=p.useCallback(function(I,R,B){R===void 0&&(R=!0),B===void 0&&(B="hover");const G=ic(m.current,"close",g.current);G&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,I,B),G)):R&&(clearTimeout(w.current),r(!1,I,B))},[m,r]),M=Mu(()=>{b.current(),E.current=void 0}),D=Mu(()=>{if(_.current){const I=Na(l).body;I.style.pointerEvents="",I.removeAttribute(uv),_.current=!1}});return p.useEffect(()=>{if(!s)return;function I(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function R(z){if(clearTimeout(w.current),$.current=!1,c&&!Ou(g.current)||d>0&&!ic(m.current,"open"))return;const L=ic(m.current,"open",g.current);L?w.current=window.setTimeout(()=>{r(!0,z,"hover")},L):r(!0,z,"hover")}function B(z){if(I())return;b.current();const L=Na(l);if(clearTimeout(S.current),C.current&&o.current.floatingContext){n||clearTimeout(w.current),E.current=C.current({...o.current.floatingContext,tree:y,x:z.clientX,y:z.clientY,onClose(){D(),M(),N(z,!0,"safe-polygon")}});const K=E.current;L.addEventListener("mousemove",K),b.current=()=>{L.removeEventListener("mousemove",K)};return}(g.current==="touch"?!Qa(l,z.relatedTarget):!0)&&N(z)}function G(z){I()||o.current.floatingContext&&(C.current==null||C.current({...o.current.floatingContext,tree:y,x:z.clientX,y:z.clientY,onClose(){D(),M(),N(z)}})(z))}if(Je(a)){const z=a;return n&&z.addEventListener("mouseleave",G),l==null||l.addEventListener("mouseleave",G),h&&z.addEventListener("mousemove",R,{once:!0}),z.addEventListener("mouseenter",R),z.addEventListener("mouseleave",B),()=>{n&&z.removeEventListener("mouseleave",G),l==null||l.removeEventListener("mouseleave",G),h&&z.removeEventListener("mousemove",R),z.removeEventListener("mouseenter",R),z.removeEventListener("mouseleave",B)}}},[a,l,s,e,c,d,h,N,M,D,r,n,y,m,C,o]),$o(()=>{var I;if(s&&n&&(I=C.current)!=null&&I.__options.blockPointerEvents&&k()){const B=Na(l).body;if(B.setAttribute(uv,""),B.style.pointerEvents="none",_.current=!0,Je(a)&&l){var R;const G=a,z=y==null||(R=y.nodesRef.current.find(L=>L.id===v))==null||(R=R.context)==null?void 0:R.elements.floating;return z&&(z.style.pointerEvents=""),G.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{G.style.pointerEvents="",l.style.pointerEvents=""}}}},[s,n,v,l,a,y,C,k]),$o(()=>{n||(g.current=void 0,M(),D())},[n,M,D]),p.useEffect(()=>()=>{M(),clearTimeout(w.current),clearTimeout(S.current),D()},[s,a,M,D]),p.useMemo(()=>{if(!s)return{};function I(R){g.current=R.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(R){function B(){$.current||r(!0,R.nativeEvent,"hover")}c&&!Ou(g.current)||n||d===0||(clearTimeout(S.current),g.current==="touch"?B():S.current=window.setTimeout(B,d))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(R){N(R.nativeEvent,!1)}}}},[s,c,n,d,r,N])}function Ib(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function Ob(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gy(),i=p.useRef({}),[a]=p.useState(()=>Rb()),l=yy()!=null,[s,u]=p.useState(r.reference),f=Mu((h,y,v)=>{i.current.openEvent=h?y:void 0,a.emit("openchange",{open:h,event:y,reason:v,nested:l}),n==null||n(h,y,v)}),c=p.useMemo(()=>({setPositionReference:u}),[]),d=p.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return p.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:a,floatingId:o,refs:c}),[t,f,d,a,o,c])}function Mb(e){e===void 0&&(e={});const{nodeId:t}=e,n=Ob({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=p.useState(null),[l,s]=p.useState(null),f=(o==null?void 0:o.reference)||i,c=p.useRef(null),d=wy();$o(()=>{f&&(c.current=f)},[f]);const h=$1({...e,elements:{...o,...l&&{reference:l}}}),y=p.useCallback(w=>{const E=Je(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;s(E),h.refs.setReference(E)},[h.refs]),v=p.useCallback(w=>{(Je(w)||w===null)&&(c.current=w,a(w)),(Je(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Je(w))&&h.refs.setReference(w)},[h.refs]),C=p.useMemo(()=>({...h.refs,setReference:v,setPositionReference:y,domReference:c}),[h.refs,v,y]),m=p.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),g=p.useMemo(()=>({...h,...r,refs:C,elements:m,nodeId:t}),[h,C,m,t,r]);return $o(()=>{r.dataRef.current.floatingContext=g;const w=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);w&&(w.context=g)}),p.useMemo(()=>({...h,context:g,refs:C,elements:m}),[h,C,m,g])}const fv="active",dv="selected";function ac(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[fv]:a,[dv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,f]=s;if(!(o&&[fv,dv].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),a[u]=function(){for(var d,h=arguments.length,y=new Array(h),v=0;vC(...y)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Db(e){e===void 0&&(e=[]);const t=e,n=p.useCallback(i=>ac(i,e,"reference"),t),r=p.useCallback(i=>ac(i,e,"floating"),t),o=p.useCallback(i=>ac(i,e,"item"),e.map(i=>i==null?void 0:i.item));return p.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function hv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function jb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Fb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const h=performance.now(),y=h-s;if(a===null||l===null||y===0)return a=c,l=d,s=h,null;const v=c-a,C=d-l,g=Math.sqrt(v*v+C*C)/y;return a=c,l=d,s=h,g}const f=c=>{let{x:d,y:h,placement:y,elements:v,onClose:C,nodeId:m,tree:g}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!v.domReference||!v.floating||y==null||d==null||h==null)return;const{clientX:$,clientY:_}=E,b=[$,_],k=Eb(E),N=E.type==="mouseleave",M=Qa(v.floating,k),D=Qa(v.domReference,k),I=v.domReference.getBoundingClientRect(),R=v.floating.getBoundingClientRect(),B=y.split("-")[0],G=d>R.right-R.width/2,z=h>R.bottom-R.height/2,L=jb(b,I),U=R.width>I.width,K=R.height>I.height,oe=(U?I:R).left,ae=(U?I:R).right,Fe=(K?I:R).top,Me=(K?I:R).bottom;if(M&&(i=!0,!N))return;if(D&&(i=!1),D&&!N){i=!0;return}if(N&&Je(E.relatedTarget)&&Qa(v.floating,E.relatedTarget)||g&&Ib(g.nodesRef.current,m).some(Pe=>{let{context:de}=Pe;return de==null?void 0:de.open}))return;if(B==="top"&&h>=I.bottom-1||B==="bottom"&&h<=I.top+1||B==="left"&&d>=I.right-1||B==="right"&&d<=I.left+1)return S();let ge=[];switch(B){case"top":ge=[[oe,I.top+1],[oe,R.bottom-1],[ae,R.bottom-1],[ae,I.top+1]];break;case"bottom":ge=[[oe,R.top+1],[oe,I.bottom-1],[ae,I.bottom-1],[ae,R.top+1]];break;case"left":ge=[[R.right-1,Me],[R.right-1,Fe],[I.left+1,Fe],[I.left+1,Me]];break;case"right":ge=[[I.right-1,Me],[I.right-1,Fe],[R.left+1,Fe],[R.left+1,Me]];break}function ye(Pe){let[de,Se]=Pe;switch(B){case"top":{const Ot=[U?de+t/2:G?de+t*4:de-t*4,Se+t+1],Mt=[U?de-t/2:G?de+t*4:de-t*4,Se+t+1],Ne=[[R.left,G||U?R.bottom-t:R.top],[R.right,G?U?R.bottom-t:R.top:R.bottom-t]];return[Ot,Mt,...Ne]}case"bottom":{const Ot=[U?de+t/2:G?de+t*4:de-t*4,Se-t],Mt=[U?de-t/2:G?de+t*4:de-t*4,Se-t],Ne=[[R.left,G||U?R.top+t:R.bottom],[R.right,G?U?R.top+t:R.bottom:R.top+t]];return[Ot,Mt,...Ne]}case"left":{const Ot=[de+t+1,K?Se+t/2:z?Se+t*4:Se-t*4],Mt=[de+t+1,K?Se-t/2:z?Se+t*4:Se-t*4];return[...[[z||K?R.right-t:R.left,R.top],[z?K?R.right-t:R.left:R.right-t,R.bottom]],Ot,Mt]}case"right":{const Ot=[de-t,K?Se+t/2:z?Se+t*4:Se-t*4],Mt=[de-t,K?Se-t/2:z?Se+t*4:Se-t*4],Ne=[[z||K?R.left+t:R.right,R.top],[z?K?R.left+t:R.right:R.left+t,R.bottom]];return[Ot,Mt,...Ne]}}}if(!hv([$,_],ge)){if(i&&!L)return S();if(!N&&r){const Pe=u(E.clientX,E.clientY);if(Pe!==null&&Pe<.1)return S()}hv([$,_],ye([d,h]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function zb({children:e,...t}){const[n,r]=e,o=p.useRef(null),[i,a]=p.useState(!1),{context:l,refs:s,floatingStyles:u}=Mb({middleware:[S1({element:o}),E1(8),_1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=Lb(l,{handleClose:Fb()}),{getReferenceProps:c,getFloatingProps:d}=Db([f]),h=r.props.children,y=n.props.children;return x.jsxs("span",{...t,children:[x.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:h}),i&&x.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[x.jsx(kb,{ref:o,context:l,fill:ip.background5,height:3,stroke:ip.border2,strokeWidth:1,width:7}),x.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Bb(e){var n;const t=O(e.className,av);return(n=e.className)!=null&&n.includes("twoslash-hover")?x.jsx(zb,{...e,className:t}):x.jsx("span",{...e,className:O(e.className,av)})}var Ub="vocs_CalloutTitle";function Hb({className:e,children:t}){return x.jsx("strong",{className:O(e,Ub),children:t})}var pv="vocs_Strong";function Vb(e){return"data-callout-title"in e&&typeof e.children=="string"?x.jsx(Hb,{...e,className:O(e.className,pv),children:e.children}):x.jsx("strong",{...e,className:O(e.className,pv)})}var Wb="vocs_Summary";function Kb(e){return x.jsx("summary",{...e,className:O(e.className,Wb)})}var Yb="vocs_Table";function Gb(e){return x.jsx("table",{...e,className:O(e.className,Yb)})}var Qb="vocs_TableCell";function Zb(e){return x.jsx("td",{...e,className:O(e.className,Qb)})}var Xb="vocs_TableHeader";function Jb(e){return x.jsx("th",{...e,className:O(e.className,Xb)})}var qb="vocs_TableRow";function e$(e){return x.jsx("tr",{...e,className:O(e.className,qb)})}const t$={a:aS,aside:mS,blockquote:yS,code:xS,details:_S,div:W9,pre:yb,header:X9,figcaption:Y9,figure:Q9,h1:J0,h2:fy,h3:dy,h4:hy,h5:py,h6:vy,hr:q9,kd:Ig,li:ob,ol:e=>x.jsx(ov,{ordered:!0,...e}),p:q0,section:Cb,span:Bb,strong:Vb,summary:Kb,table:Gb,td:Zb,th:Jb,tr:e$,ul:e=>x.jsx(ov,{ordered:!1,...e})};function n$(){const{pathname:e}=Oe(),t=Ke(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=p.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function ju(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Oe(),l=p.useRef();return p.useEffect(()=>{l.current=a}),x.jsxs(x.Fragment,{children:[x.jsx(r$,{frontmatter:r}),typeof window<"u"&&x.jsx(Rx,{}),x.jsx(c_,{components:t$,children:x.jsx(V7,{frontmatter:r,path:i,children:x.jsx(ng.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function r$({frontmatter:e}){var c,d,h,y,v,C;const t=Ke(),n=n$(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return x.jsxs(Lu,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&x.jsx("title",{children:l}),r&&!0&&!f&&x.jsx("base",{href:r}),s!=="undefined"&&x.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&x.jsx("link",{rel:"icon",href:i,type:lc(i)}),i&&typeof i!="string"&&x.jsx("link",{rel:"icon",href:i.light,type:lc(i.light)}),i&&typeof i!="string"&&x.jsx("link",{rel:"icon",href:i.dark,type:lc(i.dark),media:"(prefers-color-scheme: dark)"}),x.jsx("meta",{property:"og:type",content:"website"}),x.jsx("meta",{property:"og:title",content:l||t.title}),r&&x.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&x.jsx("meta",{property:"og:description",content:s}),n&&x.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(((c=o==null?void 0:o.default)==null?void 0:c.google)||((d=o==null?void 0:o.mono)==null?void 0:d.google))&&x.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(((h=o==null?void 0:o.default)==null?void 0:h.google)||((y=o==null?void 0:o.mono)==null?void 0:y.google))&&x.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),((v=o==null?void 0:o.default)==null?void 0:v.google)&&x.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.default.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),((C=o==null?void 0:o.mono)==null?void 0:C.google)&&x.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.mono.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),x.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&x.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function lc(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const o$=(()=>{const e=Kf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:x.jsx(ju,{frontmatter:t,path:e.path,children:x.jsx(ku,{children:x.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:x.jsx(ju,{frontmatter:{layout:"minimal"},path:"*",children:x.jsx(ku,{children:x.jsx(qx,{})})})}})(),vv=[...Kf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:x.jsx(ju,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:x.jsx(ku,{children:x.jsx(n.default,{})})})}}})),o$];async function i$(e,t){var r;const n=(r=dr(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function a$(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}l$();async function l$(){const e=Y0().basePath;await i$(vv,e),a$();const t=mx(vv,{basename:e});R0(document.getElementById("app"),x.jsx(Dx,{children:x.jsx(bx,{router:t})}))}export{g9 as $,k9 as C,rn as L,b9 as R,T9 as T,y9 as a,w9 as b,x9 as c,O as d,Ke as e,G6 as f,$9 as g,x as j,s_ as u}; +*/var Jp=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable;function P_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function N_(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var A_=N_()?Object.assign:function(e,t){for(var n,r=P_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},z_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Pu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},B_=function(t){var n=ho(t,q.TITLE),r=ho(t,zi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=ho(t,zi.DEFAULT_TITLE);return n||o||void 0},U_=function(t){return ho(t,zi.ON_CHANGE_CLIENT_STATE)||function(){}},nc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return dt({},r,o)},{})},H_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},V_=function(t){return{baseTag:H_([Ce.HREF,Ce.TARGET],t),bodyAttributes:nc(gr.BODY,t),defer:ho(t,zi.DEFER),encode:ho(t,zi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:nc(gr.HTML,t),linkTags:ti(q.LINK,[Ce.REL,Ce.HREF],t),metaTags:ti(q.META,[Ce.NAME,Ce.CHARSET,Ce.HTTPEQUIV,Ce.PROPERTY,Ce.ITEM_PROP],t),noscriptTags:ti(q.NOSCRIPT,[Ce.INNER_HTML],t),onChangeClientState:U_(t),scriptTags:ti(q.SCRIPT,[Ce.SRC,Ce.INNER_HTML],t),styleTags:ti(q.STYLE,[Ce.CSS_TEXT],t),title:B_(t),titleAttributes:nc(gr.TITLE,t)}},Nu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Nu(t)},0)}}(),ev=function(t){return clearTimeout(t)},W_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Nu:global.requestAnimationFrame||Nu,K_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ev:global.cancelAnimationFrame||ev,Y_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ni=null,G_=function(t){ni&&K_(ni),t.defer?ni=W_(function(){tv(t,function(){ni=null})}):(tv(t),ni=null)},tv=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,d=t.title,h=t.titleAttributes;Au(q.BODY,o),Au(q.HTML,i),Q_(d,h);var y={baseTag:Vr(q.BASE,r),linkTags:Vr(q.LINK,a),metaTags:Vr(q.META,l),noscriptTags:Vr(q.NOSCRIPT,s),scriptTags:Vr(q.SCRIPT,f),styleTags:Vr(q.STYLE,c)},v={},C={};Object.keys(y).forEach(function(m){var g=y[m],w=g.newTags,E=g.oldTags;w.length&&(v[m]=w),E.length&&(C[m]=y[m].oldTags)}),n&&n(),u(t,v,C)},X1=function(t){return Array.isArray(t)?t.join(""):t},Q_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=X1(t)),Au(q.TITLE,n)},Au=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Ht),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Ht):r.getAttribute(Ht)!==l.join(",")&&r.setAttribute(Ht,l.join(","))}},Vr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Ht+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ce.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===Ce.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Ht,"true"),i.some(function(d,h){return l=h,u.isEqualNode(d)})?i.splice(l,1):a.push(u)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},J1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},Z_=function(t,n,r,o){var i=J1(r),a=X1(n);return i?"<"+t+" "+Ht+'="true" '+i+">"+Pu(a,o)+"":"<"+t+" "+Ht+'="true">'+Pu(a,o)+""},X_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(u){return!(u===Ce.INNER_HTML||u===Ce.CSS_TEXT)}).reduce(function(u,f){var c=typeof i[f]>"u"?f:f+'="'+Pu(i[f],r)+'"';return u?u+" "+c:c},""),l=i.innerHTML||i.cssText||"",s=O_.indexOf(t)===-1;return o+"<"+t+" "+Ht+'="true" '+a+(s?"/>":">"+l+"")},"")},q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Rl[o]||o]=t[o],r},n)},J_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[I_[o]||o]=t[o],r},n)},q_=function(t,n,r){var o,i=(o={key:n},o[Ht]=!0,o),a=q1(r,i);return[Z.createElement(q.TITLE,a,n)]},e9=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Ht]=!0,i);return Object.keys(r).forEach(function(l){var s=Rl[l]||l;if(s===Ce.INNER_HTML||s===Ce.CSS_TEXT){var u=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:u}}else a[s]=r[l]}),Z.createElement(t,a)})},sn=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return q_(t,n.title,n.titleAttributes)},toString:function(){return Z_(t,n.title,n.titleAttributes,r)}};case gr.BODY:case gr.HTML:return{toComponent:function(){return q1(n)},toString:function(){return J1(n)}};default:return{toComponent:function(){return e9(t,n)},toString:function(){return X_(t,n,r)}}}},ey=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,d=c===void 0?"":c,h=t.titleAttributes;return{base:sn(q.BASE,n,o),bodyAttributes:sn(gr.BODY,r,o),htmlAttributes:sn(gr.HTML,i,o),link:sn(q.LINK,a,o),meta:sn(q.META,l,o),noscript:sn(q.NOSCRIPT,s,o),script:sn(q.SCRIPT,u,o),style:sn(q.STYLE,f,o),title:sn(q.TITLE,{title:d,titleAttributes:h},o)}},t9=function(t){var n,r;return r=n=function(o){F_(i,o);function i(){return D_(this,i),z_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!T_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,u=l.child,f=l.arrayTypeChildren,c=l.newChildProps,d=l.nestedChildren;return dt({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[dt({},c,this.mapNestedChildrenToProps(u,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,u,f=l.child,c=l.newProps,d=l.newChildProps,h=l.nestedChildren;switch(f.type){case q.TITLE:return dt({},c,(s={},s[f.type]=h,s.titleAttributes=dt({},d),s));case q.BODY:return dt({},c,{bodyAttributes:dt({},d)});case q.HTML:return dt({},c,{htmlAttributes:dt({},d)})}return dt({},c,(u={},u[f.type]=dt({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var u=dt({},s);return Object.keys(l).forEach(function(f){var c;u=dt({},u,(c={},c[f]=l[f],c))}),u},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var u=this,f={};return Z.Children.forEach(l,function(c){if(!(!c||!c.props)){var d=c.props,h=d.children,y=qp(d,["children"]),v=J_(y);switch(u.warnOnInvalidChildren(c,h),c.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:v,nestedChildren:h});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:v,nestedChildren:h});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,u=qp(l,["children"]),f=dt({},u);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},j_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:xe.object,bodyAttributes:xe.object,children:xe.oneOfType([xe.arrayOf(xe.node),xe.node]),defaultTitle:xe.string,defer:xe.bool,encodeSpecialCharacters:xe.bool,htmlAttributes:xe.object,link:xe.arrayOf(xe.object),meta:xe.arrayOf(xe.object),noscript:xe.arrayOf(xe.object),onChangeClientState:xe.func,script:xe.arrayOf(xe.object),style:xe.arrayOf(xe.object),title:xe.string,titleAttributes:xe.object,titleTemplate:xe.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=ey({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},n9=function(){return null},r9=C_(V_,G_,ey)(n9),Lu=t9(r9);Lu.renderStatic=Lu.rewind;var rc="vocs_Anchor",o9="vocs_Autolink";function i9(e){return e.href?x.jsx(Yl,{...e,className:M(e.className,o9),to:e.href}):null}function a9(e){const{children:t,href:n}=e,{pathname:r}=Oe();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?x.jsx(i9,{className:M(e.className,rc),...e}):n!=null&&n.match(/^#/)?x.jsx("a",{className:M(e.className,rc),...e,href:`${r}${n}`}):x.jsx(on,{className:M(e.className,rc),...e})}var l9="vocs_Callout_danger",s9="vocs_Callout_info",c9="vocs_Callout_note",ty="vocs_Callout",u9="vocs_Callout_success",f9="vocs_Callout_tip",d9="vocs_Callout_warning";const h9=Object.freeze(Object.defineProperty({__proto__:null,danger:l9,info:s9,note:c9,root:ty,success:u9,tip:f9,warning:d9},Symbol.toStringTag,{value:"Module"}));function p9({className:e,children:t,type:n}){return x.jsx("aside",{className:M(e,ty,h9[n]),children:t})}var v9="vocs_Aside";function m9(e){const t=M(e.className,v9);return"data-callout"in e?x.jsx(p9,{className:t,type:e["data-callout"],children:e.children}):x.jsx("aside",{...e,className:t})}var g9="vocs_Blockquote";function y9(e){return x.jsx("blockquote",{...e,className:M(e.className,g9)})}var w9="vocs_Code";function x9(e){const t=C9(e.children);return x.jsx("code",{...e,className:M(e.className,w9),children:t})}function C9(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var E9="vocs_Details";function _9(e){return x.jsx("details",{...e,className:M(e.className,E9)})}var S9="vocs_Authors_authors",b9="vocs_Authors_link",$9="vocs_Authors",nv="vocs_Authors_separator";function ny(e){const{frontmatter:t}=Pr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=p.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=p.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return x.jsxs("div",{className:$9,children:[i,o&&(i?" by ":"By "),x.jsx("span",{className:S9,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:u}=T9(a);return x.jsxs(p.Fragment,{children:[u?x.jsx("a",{className:b9,href:u,target:"_blank",rel:"noopener noreferrer",children:s}):s,lx.jsxs(p.Fragment,{children:[x.jsx("div",{className:P9,children:x.jsxs(Qn,{to:e.path,children:[x.jsx("h2",{className:L9,children:e.title}),x.jsx(ny,{authors:e.authors,date:e.date}),x.jsxs("p",{className:k9,children:[e.description," ",x.jsx("span",{className:N9,children:"[→]"})]})]})}),tx.jsxs(p.Fragment,{children:[x.jsx("div",{className:U9,children:t.name}),t.items.map((r,o)=>{var i;return x.jsx("div",{className:z9,style:Yt({[M9]:r.length.toString(),[D9]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>x.jsx(on,{className:M(O9,a?B9:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:x.jsx("img",{className:j9,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var V9="var(--vocs_AutolinkIcon_iconUrl)",W9="vocs_AutolinkIcon";function K9(e){const{basePath:t}=Ke(),n=t;return x.jsx("div",{...e,className:M(e.className,W9),style:Yt({[V9]:`url(${n}/.vocs/icons/link.svg)`})})}const oc="rovingFocusGroup.onEntryFocus",Y9={bubbles:!1,cancelable:!0},md="RovingFocusGroup",[Iu,ry,G9]=Xl(md),[Q9,oy]=_n(md,[G9]),[Z9,X9]=Q9(md),J9=p.forwardRef((e,t)=>p.createElement(Iu.Provider,{scope:e.__scopeRovingFocusGroup},p.createElement(Iu.Slot,{scope:e.__scopeRovingFocusGroup},p.createElement(q9,Y({},e,{ref:t}))))),q9=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,c=p.useRef(null),d=Ue(t,c),h=Zl(i),[y=null,v]=or({prop:a,defaultProp:l,onChange:s}),[C,m]=p.useState(!1),g=lt(u),w=ry(n),E=p.useRef(!1),[S,$]=p.useState(0);return p.useEffect(()=>{const _=c.current;if(_)return _.addEventListener(oc,g),()=>_.removeEventListener(oc,g)},[g]),p.createElement(Z9,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:y,onItemFocus:p.useCallback(_=>v(_),[v]),onItemShiftTab:p.useCallback(()=>m(!0),[]),onFocusableItemAdd:p.useCallback(()=>$(_=>_+1),[]),onFocusableItemRemove:p.useCallback(()=>$(_=>_-1),[])},p.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{E.current=!0}),onFocus:le(e.onFocus,_=>{const b=!E.current;if(_.target===_.currentTarget&&b&&!C){const k=new CustomEvent(oc,Y9);if(_.currentTarget.dispatchEvent(k),!k.defaultPrevented){const N=w().filter(B=>B.focusable),O=N.find(B=>B.active),D=N.find(B=>B.id===y),R=[O,D,...N].filter(Boolean).map(B=>B.ref.current);iy(R)}}E.current=!1}),onBlur:le(e.onBlur,()=>m(!1))})))}),eS="RovingFocusGroupItem",tS=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=an(),s=i||l,u=X9(eS,n),f=u.currentTabStopId===s,c=ry(n),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return p.useEffect(()=>{if(r)return d(),()=>h()},[r,d,h]),p.createElement(Iu.ItemSlot,{scope:n,id:s,focusable:r,active:o},p.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:le(e.onMouseDown,y=>{r?u.onItemFocus(s):y.preventDefault()}),onFocus:le(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:le(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const v=oS(y,u.orientation,u.dir);if(v!==void 0){y.preventDefault();let m=c().filter(g=>g.focusable).map(g=>g.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();const g=m.indexOf(y.currentTarget);m=u.loop?iS(m,g+1):m.slice(g+1)}setTimeout(()=>iy(m))}})})))}),nS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function oS(e,t,n){const r=rS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return nS[r]}function iy(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function iS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const aS=J9,lS=tS,ay="Tabs",[sS,p$]=_n(ay,[oy]),ly=oy(),[cS,gd]=sS(ay),uS=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Zl(l),[c,d]=or({prop:r,onChange:o,defaultProp:i});return p.createElement(cS,{scope:n,baseId:an(),value:c,onValueChange:d,orientation:a,dir:f,activationMode:s},p.createElement(fe.div,Y({dir:f,"data-orientation":a},u,{ref:t})))}),fS="TabsList",dS=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=gd(fS,n),a=ly(n);return p.createElement(aS,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),p.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),hS="TabsTrigger",pS=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=gd(hS,n),l=ly(n),s=sy(a.baseId,r),u=cy(a.baseId,r),f=r===a.value;return p.createElement(lS,Y({asChild:!0},l,{focusable:!o,active:f}),p.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:le(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:le(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:le(e.onFocus,()=>{const c=a.activationMode!=="manual";!f&&!o&&c&&a.onValueChange(r)})})))}),vS="TabsContent",mS=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=gd(vS,n),s=sy(l.baseId,r),u=cy(l.baseId,r),f=r===l.value,c=p.useRef(f);return p.useEffect(()=>{const d=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(d)},[]),p.createElement(Sn,{present:o||f},({present:d})=>p.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0}}),d&&i))});function sy(e,t){return`${e}-trigger-${t}`}function cy(e,t){return`${e}-content-${t}`}const gS=uS,yS=dS,wS=pS,xS=mS;var CS="vocs_Tabs_content",ES="vocs_Tabs_list",_S="vocs_Tabs",SS="vocs_Tabs_trigger";function bS(e){return x.jsx(gS,{...e,className:M(e.className,_S)})}function $S(e){return x.jsx(yS,{...e,className:M(e.className,ES)})}function TS(e){return x.jsx(wS,{...e,className:M(e.className,SS)})}function kS(e){return x.jsx(xS,{...e,className:M(e.className,CS)})}var RS="vocs_CodeGroup";function PS({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return x.jsxs(bS,{className:RS,defaultValue:t[0].title,children:[x.jsx($S,{"aria-label":"Code group",children:t.map(({title:n},r)=>x.jsx(TS,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return x.jsx(kS,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var NS="vocs_Div",AS="vocs_Step_content",LS="vocs_Step",uy="vocs_Step_title",IS="vocs_H2";function fy(e){return x.jsx(Ao,{...e,className:M(e.className,IS),level:2})}var OS="vocs_H3";function dy(e){return x.jsx(Ao,{...e,className:M(e.className,OS),level:3})}var MS="vocs_H4";function hy(e){return x.jsx(Ao,{...e,className:M(e.className,MS),level:4})}var DS="vocs_H5";function py(e){return x.jsx(Ao,{...e,className:M(e.className,DS),level:5})}var jS="vocs_H6";function vy(e){return x.jsx(Ao,{...e,className:M(e.className,jS),level:6})}function FS({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return fy;if(r===3)return dy;if(r===4)return hy;if(r===5)return py;if(r===6)return vy;throw new Error("Invalid.")})();return x.jsxs("div",{className:M(t,LS),children:[typeof n=="string"?x.jsx(o,{className:uy,children:n}):n,x.jsx("div",{className:AS,children:e})]})}var zS="vocs_Steps";function BS({children:e,className:t}){return x.jsx("div",{className:M(t,zS),children:e})}function US({children:e}){return Array.isArray(e)?x.jsx(BS,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return x.jsx(FS,{title:p.cloneElement(r,{className:uy}),children:o},n)})}):null}var HS="vocs_Subtitle";function VS({children:e}){return x.jsx("div",{className:HS,role:"doc-subtitle",children:e})}function WS(e){const{layout:t}=Nr(),n=M(e.className,NS);return e.className==="code-group"?x.jsx(PS,{...e,className:n}):"data-authors"in e?x.jsx(ny,{}):"data-blog-posts"in e?x.jsx(I9,{}):"data-sponsors"in e?x.jsx(H9,{}):"data-autolink-icon"in e&&t==="docs"?x.jsx(K9,{...e,className:n}):"data-vocs-steps"in e?x.jsx(US,{...e,className:n}):e.role==="doc-subtitle"?x.jsx(VS,{...e}):x.jsx("div",{...e,className:n})}var KS="vocs_Figcaption";function YS(e){const t=M(e.className,KS);return x.jsx("figcaption",{...e,className:t})}var GS="vocs_Figure";function QS(e){const t=M(e.className,GS);return x.jsx("figure",{...e,className:t})}var ZS="vocs_Header";function XS(e){return x.jsx("header",{...e,className:M(e.className,ZS)})}var JS="vocs_HorizontalRule";function qS(e){return x.jsx("hr",{...e,className:M(e.className,JS)})}var eb="vocs_List_ordered",tb="vocs_List",nb="vocs_List_unordered";function ov({ordered:e,...t}){const n=e?"ol":"ul";return x.jsx(n,{...t,className:M(t.className,tb,e?eb:nb)})}var rb="vocs_ListItem";function ob(e){return x.jsx("li",{...e,className:M(e.className,rb)})}function ib(){const e=p.useRef(null),[t,n]=p.useState(!1);p.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var ab="vocs_CopyButton";function lb(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[x.jsx("title",{children:"Checkmark"}),x.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function sb(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[x.jsx("title",{children:"Copy"}),x.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),x.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function cb({copy:e,copied:t}){return x.jsx("button",{className:ab,onClick:e,type:"button",children:t?x.jsx(ct,{label:"Copied",size:"14px",icon:lb}):x.jsx(ct,{label:"Copy",size:"18px",icon:sb})})}var ub="vocs_CodeBlock";function fb(e){return x.jsx("div",{...e,className:M(e.className,ub)})}function db(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[x.jsx("title",{children:"File"}),x.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),x.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function hb(){return x.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[x.jsx("title",{children:"Terminal"}),x.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),x.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var pb="vocs_CodeTitle";function vb({children:e,className:t,language:n,...r}){return x.jsxs("div",{...r,className:M(t,pb),children:[n==="bash"?x.jsx(ct,{label:"Terminal",size:"14px",icon:hb,style:{marginTop:3}}):e.match(/\.(.*)$/)?x.jsx(ct,{label:"File",size:"14px",icon:db,style:{marginTop:1}}):null,e]})}var mb="vocs_Pre",gb="vocs_Pre_wrapper";function yb({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=ib();function a(u){return!u||typeof u!="object"?u:"props"in u?{...u,props:{...u.props,children:Array.isArray(u.props.children)?u.props.children.map(a):a(u.props.children)}}:u}const l=p.useMemo(()=>a(e),[e]);return(u=>t!=null&&t.includes("shiki")?x.jsxs(fb,{children:[n["data-title"]&&x.jsx(vb,{language:n["data-lang"],children:n["data-title"]}),u]}):u)(x.jsx("div",{className:M(gb),children:x.jsxs("pre",{ref:i,...n,className:M(t,mb),children:["data-language"in n&&x.jsx(cb,{copied:r,copy:o}),l]})}))}var wb="vocs_Footnotes";function xb(e){return x.jsx("section",{...e,className:M(e.className,wb)})}var iv="vocs_Section";function Cb(e){return"data-footnotes"in e?x.jsx(xb,{...e,className:M(e.className,iv)}):x.jsx("section",{...e,className:M(e.className,iv)})}var av="vocs_Span";function Qa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$u(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ou(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Na(e){return(e==null?void 0:e.ownerDocument)||document}function Eb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const my={...Vu},_b=my.useInsertionEffect,Sb=_b||(e=>e());function Mu(e){const t=p.useRef(()=>{});return Sb(()=>{t.current=e}),p.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+bb++;function $b(){const[e,t]=p.useState(()=>lv?sv():void 0);return $o(()=>{e==null&&t(sv())},[]),p.useEffect(()=>{lv=!0},[]),e}const Tb=my.useId,gy=Tb||$b,kb=p.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:f,stroke:c,d,style:{transform:h,...y}={},...v}=t,C=gy();if(!o)return null;const m=u*2,g=m/2,w=a/2*(s/-8+1),E=l/2*s/4,[S,$]=r.split("-"),_=C1.isRTL(o),b=!!d,k=S==="top"||S==="bottom",N=f&&$==="end"?"bottom":"top";let O=f&&$==="end"?"right":"left";f&&_&&(O=$==="end"?"left":"right");const D=(i==null?void 0:i.x)!=null?f||i.x:"",I=(i==null?void 0:i.y)!=null?f||i.y:"",R=d||"M0,0"+(" H"+a)+(" L"+(a-w)+","+(l-E))+(" Q"+a/2+","+l+" "+w+","+(l-E))+" Z",B={top:b?"rotate(180deg)":"",left:b?"rotate(90deg)":"rotate(-90deg)",bottom:b?"":"rotate(180deg)",right:b?"rotate(-90deg)":"rotate(90deg)"}[S];return p.createElement("svg",Du({},v,{"aria-hidden":!0,ref:n,width:b?a:a+m,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[O]:D,[N]:I,[S]:k||b?"100%":"calc(100% - "+m/2+"px)",transform:""+B+(h??""),...y}}),m>0&&p.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:c,strokeWidth:m+(d?0:1),d:R}),p.createElement("path",{stroke:m&&!d?v.fill:"none",d:R}),p.createElement("clipPath",{id:C},p.createElement("rect",{x:-g,y:g*(b?-1:1),width:a+m,height:a})))});function Rb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Pb=p.createContext(null),Nb=p.createContext(null),yy=()=>{var e;return((e=p.useContext(Pb))==null?void 0:e.id)||null},wy=()=>p.useContext(Nb);function Ab(e){return"data-floating-ui-"+e}function cv(e){const t=p.useRef(e);return $o(()=>{t.current=e}),t}const uv=Ab("safe-polygon");function ic(e,t,n){return n&&!Ou(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Lb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l}}=e,{enabled:s=!0,delay:u=0,handleClose:f=null,mouseOnly:c=!1,restMs:d=0,move:h=!0}=t,y=wy(),v=yy(),C=cv(f),m=cv(u),g=p.useRef(),w=p.useRef(-1),E=p.useRef(),S=p.useRef(-1),$=p.useRef(!0),_=p.useRef(!1),b=p.useRef(()=>{}),k=p.useCallback(()=>{var I;const R=(I=o.current.openEvent)==null?void 0:I.type;return(R==null?void 0:R.includes("mouse"))&&R!=="mousedown"},[o]);p.useEffect(()=>{if(!s)return;function I(R){let{open:B}=R;B||(clearTimeout(w.current),clearTimeout(S.current),$.current=!0)}return i.on("openchange",I),()=>{i.off("openchange",I)}},[s,i]),p.useEffect(()=>{if(!s||!C.current||!n)return;function I(B){k()&&r(!1,B,"hover")}const R=Na(l).documentElement;return R.addEventListener("mouseleave",I),()=>{R.removeEventListener("mouseleave",I)}},[l,n,r,s,C,k]);const N=p.useCallback(function(I,R,B){R===void 0&&(R=!0),B===void 0&&(B="hover");const G=ic(m.current,"close",g.current);G&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,I,B),G)):R&&(clearTimeout(w.current),r(!1,I,B))},[m,r]),O=Mu(()=>{b.current(),E.current=void 0}),D=Mu(()=>{if(_.current){const I=Na(l).body;I.style.pointerEvents="",I.removeAttribute(uv),_.current=!1}});return p.useEffect(()=>{if(!s)return;function I(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function R(z){if(clearTimeout(w.current),$.current=!1,c&&!Ou(g.current)||d>0&&!ic(m.current,"open"))return;const L=ic(m.current,"open",g.current);L?w.current=window.setTimeout(()=>{r(!0,z,"hover")},L):r(!0,z,"hover")}function B(z){if(I())return;b.current();const L=Na(l);if(clearTimeout(S.current),C.current&&o.current.floatingContext){n||clearTimeout(w.current),E.current=C.current({...o.current.floatingContext,tree:y,x:z.clientX,y:z.clientY,onClose(){D(),O(),N(z,!0,"safe-polygon")}});const K=E.current;L.addEventListener("mousemove",K),b.current=()=>{L.removeEventListener("mousemove",K)};return}(g.current==="touch"?!Qa(l,z.relatedTarget):!0)&&N(z)}function G(z){I()||o.current.floatingContext&&(C.current==null||C.current({...o.current.floatingContext,tree:y,x:z.clientX,y:z.clientY,onClose(){D(),O(),N(z)}})(z))}if(Je(a)){const z=a;return n&&z.addEventListener("mouseleave",G),l==null||l.addEventListener("mouseleave",G),h&&z.addEventListener("mousemove",R,{once:!0}),z.addEventListener("mouseenter",R),z.addEventListener("mouseleave",B),()=>{n&&z.removeEventListener("mouseleave",G),l==null||l.removeEventListener("mouseleave",G),h&&z.removeEventListener("mousemove",R),z.removeEventListener("mouseenter",R),z.removeEventListener("mouseleave",B)}}},[a,l,s,e,c,d,h,N,O,D,r,n,y,m,C,o]),$o(()=>{var I;if(s&&n&&(I=C.current)!=null&&I.__options.blockPointerEvents&&k()){const B=Na(l).body;if(B.setAttribute(uv,""),B.style.pointerEvents="none",_.current=!0,Je(a)&&l){var R;const G=a,z=y==null||(R=y.nodesRef.current.find(L=>L.id===v))==null||(R=R.context)==null?void 0:R.elements.floating;return z&&(z.style.pointerEvents=""),G.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{G.style.pointerEvents="",l.style.pointerEvents=""}}}},[s,n,v,l,a,y,C,k]),$o(()=>{n||(g.current=void 0,O(),D())},[n,O,D]),p.useEffect(()=>()=>{O(),clearTimeout(w.current),clearTimeout(S.current),D()},[s,a,O,D]),p.useMemo(()=>{if(!s)return{};function I(R){g.current=R.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(R){function B(){$.current||r(!0,R.nativeEvent,"hover")}c&&!Ou(g.current)||n||d===0||(clearTimeout(S.current),g.current==="touch"?B():S.current=window.setTimeout(B,d))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(R){N(R.nativeEvent,!1)}}}},[s,c,n,d,r,N])}function Ib(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function Ob(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gy(),i=p.useRef({}),[a]=p.useState(()=>Rb()),l=yy()!=null,[s,u]=p.useState(r.reference),f=Mu((h,y,v)=>{i.current.openEvent=h?y:void 0,a.emit("openchange",{open:h,event:y,reason:v,nested:l}),n==null||n(h,y,v)}),c=p.useMemo(()=>({setPositionReference:u}),[]),d=p.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return p.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:a,floatingId:o,refs:c}),[t,f,d,a,o,c])}function Mb(e){e===void 0&&(e={});const{nodeId:t}=e,n=Ob({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=p.useState(null),[l,s]=p.useState(null),f=(o==null?void 0:o.reference)||i,c=p.useRef(null),d=wy();$o(()=>{f&&(c.current=f)},[f]);const h=$1({...e,elements:{...o,...l&&{reference:l}}}),y=p.useCallback(w=>{const E=Je(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;s(E),h.refs.setReference(E)},[h.refs]),v=p.useCallback(w=>{(Je(w)||w===null)&&(c.current=w,a(w)),(Je(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Je(w))&&h.refs.setReference(w)},[h.refs]),C=p.useMemo(()=>({...h.refs,setReference:v,setPositionReference:y,domReference:c}),[h.refs,v,y]),m=p.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),g=p.useMemo(()=>({...h,...r,refs:C,elements:m,nodeId:t}),[h,C,m,t,r]);return $o(()=>{r.dataRef.current.floatingContext=g;const w=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);w&&(w.context=g)}),p.useMemo(()=>({...h,context:g,refs:C,elements:m}),[h,C,m,g])}const fv="active",dv="selected";function ac(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[fv]:a,[dv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,f]=s;if(!(o&&[fv,dv].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),a[u]=function(){for(var d,h=arguments.length,y=new Array(h),v=0;vC(...y)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Db(e){e===void 0&&(e=[]);const t=e,n=p.useCallback(i=>ac(i,e,"reference"),t),r=p.useCallback(i=>ac(i,e,"floating"),t),o=p.useCallback(i=>ac(i,e,"item"),e.map(i=>i==null?void 0:i.item));return p.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function hv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function jb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Fb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const h=performance.now(),y=h-s;if(a===null||l===null||y===0)return a=c,l=d,s=h,null;const v=c-a,C=d-l,g=Math.sqrt(v*v+C*C)/y;return a=c,l=d,s=h,g}const f=c=>{let{x:d,y:h,placement:y,elements:v,onClose:C,nodeId:m,tree:g}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!v.domReference||!v.floating||y==null||d==null||h==null)return;const{clientX:$,clientY:_}=E,b=[$,_],k=Eb(E),N=E.type==="mouseleave",O=Qa(v.floating,k),D=Qa(v.domReference,k),I=v.domReference.getBoundingClientRect(),R=v.floating.getBoundingClientRect(),B=y.split("-")[0],G=d>R.right-R.width/2,z=h>R.bottom-R.height/2,L=jb(b,I),U=R.width>I.width,K=R.height>I.height,oe=(U?I:R).left,ae=(U?I:R).right,Fe=(K?I:R).top,Me=(K?I:R).bottom;if(O&&(i=!0,!N))return;if(D&&(i=!1),D&&!N){i=!0;return}if(N&&Je(E.relatedTarget)&&Qa(v.floating,E.relatedTarget)||g&&Ib(g.nodesRef.current,m).some(Pe=>{let{context:de}=Pe;return de==null?void 0:de.open}))return;if(B==="top"&&h>=I.bottom-1||B==="bottom"&&h<=I.top+1||B==="left"&&d>=I.right-1||B==="right"&&d<=I.left+1)return S();let ge=[];switch(B){case"top":ge=[[oe,I.top+1],[oe,R.bottom-1],[ae,R.bottom-1],[ae,I.top+1]];break;case"bottom":ge=[[oe,R.top+1],[oe,I.bottom-1],[ae,I.bottom-1],[ae,R.top+1]];break;case"left":ge=[[R.right-1,Me],[R.right-1,Fe],[I.left+1,Fe],[I.left+1,Me]];break;case"right":ge=[[I.right-1,Me],[I.right-1,Fe],[R.left+1,Fe],[R.left+1,Me]];break}function ye(Pe){let[de,Se]=Pe;switch(B){case"top":{const Ot=[U?de+t/2:G?de+t*4:de-t*4,Se+t+1],Mt=[U?de-t/2:G?de+t*4:de-t*4,Se+t+1],Ne=[[R.left,G||U?R.bottom-t:R.top],[R.right,G?U?R.bottom-t:R.top:R.bottom-t]];return[Ot,Mt,...Ne]}case"bottom":{const Ot=[U?de+t/2:G?de+t*4:de-t*4,Se-t],Mt=[U?de-t/2:G?de+t*4:de-t*4,Se-t],Ne=[[R.left,G||U?R.top+t:R.bottom],[R.right,G?U?R.top+t:R.bottom:R.top+t]];return[Ot,Mt,...Ne]}case"left":{const Ot=[de+t+1,K?Se+t/2:z?Se+t*4:Se-t*4],Mt=[de+t+1,K?Se-t/2:z?Se+t*4:Se-t*4];return[...[[z||K?R.right-t:R.left,R.top],[z?K?R.right-t:R.left:R.right-t,R.bottom]],Ot,Mt]}case"right":{const Ot=[de-t,K?Se+t/2:z?Se+t*4:Se-t*4],Mt=[de-t,K?Se-t/2:z?Se+t*4:Se-t*4],Ne=[[z||K?R.left+t:R.right,R.top],[z?K?R.left+t:R.right:R.left+t,R.bottom]];return[Ot,Mt,...Ne]}}}if(!hv([$,_],ge)){if(i&&!L)return S();if(!N&&r){const Pe=u(E.clientX,E.clientY);if(Pe!==null&&Pe<.1)return S()}hv([$,_],ye([d,h]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function zb({children:e,...t}){const[n,r]=e,o=p.useRef(null),[i,a]=p.useState(!1),{context:l,refs:s,floatingStyles:u}=Mb({middleware:[S1({element:o}),E1(8),_1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=Lb(l,{handleClose:Fb()}),{getReferenceProps:c,getFloatingProps:d}=Db([f]),h=r.props.children,y=n.props.children;return x.jsxs("span",{...t,children:[x.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:h}),i&&x.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[x.jsx(kb,{ref:o,context:l,fill:ip.background5,height:3,stroke:ip.border2,strokeWidth:1,width:7}),x.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Bb(e){var n;const t=M(e.className,av);return(n=e.className)!=null&&n.includes("twoslash-hover")?x.jsx(zb,{...e,className:t}):x.jsx("span",{...e,className:M(e.className,av)})}var Ub="vocs_CalloutTitle";function Hb({className:e,children:t}){return x.jsx("strong",{className:M(e,Ub),children:t})}var pv="vocs_Strong";function Vb(e){return"data-callout-title"in e&&typeof e.children=="string"?x.jsx(Hb,{...e,className:M(e.className,pv),children:e.children}):x.jsx("strong",{...e,className:M(e.className,pv)})}var Wb="vocs_Summary";function Kb(e){return x.jsx("summary",{...e,className:M(e.className,Wb)})}var Yb="vocs_Table";function Gb(e){return x.jsx("table",{...e,className:M(e.className,Yb)})}var Qb="vocs_TableCell";function Zb(e){return x.jsx("td",{...e,className:M(e.className,Qb)})}var Xb="vocs_TableHeader";function Jb(e){return x.jsx("th",{...e,className:M(e.className,Xb)})}var qb="vocs_TableRow";function e$(e){return x.jsx("tr",{...e,className:M(e.className,qb)})}const t$={a:a9,aside:m9,blockquote:y9,code:x9,details:_9,div:WS,pre:yb,header:XS,figcaption:YS,figure:QS,h1:J0,h2:fy,h3:dy,h4:hy,h5:py,h6:vy,hr:qS,kd:Ig,li:ob,ol:e=>x.jsx(ov,{ordered:!0,...e}),p:q0,section:Cb,span:Bb,strong:Vb,summary:Kb,table:Gb,td:Zb,th:Jb,tr:e$,ul:e=>x.jsx(ov,{ordered:!1,...e})};function n$(){const{pathname:e}=Oe(),t=Ke(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=p.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function ju(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Oe(),l=p.useRef();return p.useEffect(()=>{l.current=a}),x.jsxs(x.Fragment,{children:[x.jsx(r$,{frontmatter:r}),typeof window<"u"&&x.jsx(Rx,{}),x.jsx(c_,{components:t$,children:x.jsx(V7,{frontmatter:r,path:i,children:x.jsx(ng.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function r$({frontmatter:e}){var c,d,h,y,v,C;const t=Ke(),n=n$(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return x.jsxs(Lu,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&x.jsx("title",{children:l}),r&&!0&&!f&&x.jsx("base",{href:r}),s!=="undefined"&&x.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&x.jsx("link",{rel:"icon",href:i,type:lc(i)}),i&&typeof i!="string"&&x.jsx("link",{rel:"icon",href:i.light,type:lc(i.light)}),i&&typeof i!="string"&&x.jsx("link",{rel:"icon",href:i.dark,type:lc(i.dark),media:"(prefers-color-scheme: dark)"}),x.jsx("meta",{property:"og:type",content:"website"}),x.jsx("meta",{property:"og:title",content:l||t.title}),r&&x.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&x.jsx("meta",{property:"og:description",content:s}),n&&x.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(((c=o==null?void 0:o.default)==null?void 0:c.google)||((d=o==null?void 0:o.mono)==null?void 0:d.google))&&x.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(((h=o==null?void 0:o.default)==null?void 0:h.google)||((y=o==null?void 0:o.mono)==null?void 0:y.google))&&x.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),((v=o==null?void 0:o.default)==null?void 0:v.google)&&x.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.default.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),((C=o==null?void 0:o.mono)==null?void 0:C.google)&&x.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.mono.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),x.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&x.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function lc(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const o$=(()=>{const e=Kf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:x.jsx(ju,{frontmatter:t,path:e.path,children:x.jsx(ku,{children:x.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:x.jsx(ju,{frontmatter:{layout:"minimal"},path:"*",children:x.jsx(ku,{children:x.jsx(qx,{})})})}})(),vv=[...Kf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:x.jsx(ju,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:x.jsx(ku,{children:x.jsx(n.default,{})})})}}})),o$];async function i$(e,t){var r;const n=(r=dr(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function a$(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}l$();async function l$(){const e=Y0().basePath;await i$(vv,e),a$();const t=mx(vv,{basename:e});R0(document.getElementById("app"),x.jsx(Dx,{children:x.jsx(bx,{router:t})}))}export{gS as $,kS as C,on as L,bS as R,TS as T,yS as a,wS as b,xS as c,M as d,Ke as e,G6 as f,$S as g,x as j,s_ as u}; diff --git a/assets/index-D1SFmwZ8.js b/assets/index-D1EFUyQH.js similarity index 98% rename from assets/index-D1SFmwZ8.js rename to assets/index-D1EFUyQH.js index 0605a5d3..dc067757 100644 --- a/assets/index-D1SFmwZ8.js +++ b/assets/index-D1EFUyQH.js @@ -1,4 +1,4 @@ -import{j as e,L as b,d as n,e as y,f as _,R as P,g as N,T as a,C as l,u as f}from"./index-CnBJmQ_B.js";var w="vocs_Button_button",H="vocs_Button_button_accent";function k({children:s,className:t,href:o,variant:v}){return e.jsx(b,{className:n(t,w,v==="accent"&&H),href:o,variant:"styleless",children:s})}var L="vocs_HomePage_button",B="vocs_HomePage_buttons",C="vocs_HomePage_description",M="vocs_HomePage_logo",c="vocs_HomePage_packageManager",D="vocs_HomePage",I="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",E="vocs_HomePage_title";function u({children:s,className:t}){return e.jsx("div",{className:n(t,D),children:s})}function g({className:s}){const{logoUrl:t,title:o}=y();return t?e.jsx("div",{className:n(s,M),children:e.jsx(_,{})}):e.jsx("h1",{className:n(s,E),children:o})}function S({children:s,className:t}){return e.jsx("div",{className:n(t,T),children:s})}function x({children:s,className:t}){return e.jsx("div",{className:n(t,C),children:s})}function m({children:s,className:t}){return e.jsx("div",{className:n(t,B),children:s})}function r(s){return e.jsx(k,{...s,className:n(L,s.className)})}function p({name:s,type:t="install"}){return e.jsxs(P,{className:I,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(a,{value:"npm",children:"npm"}),e.jsx(a,{value:"pnpm",children:"pnpm"}),e.jsx(a,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",t==="init"?"init":"install"," ",s]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",t==="init"?"create":"install"," ",s]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",t==="init"?"create":"install"," ",s]})]})}const $=Object.freeze(Object.defineProperty({__proto__:null,Button:r,Buttons:m,Description:x,InstallPackage:p,Logo:g,Root:u,Tagline:S},Symbol.toStringTag,{value:"Module"})),h=({title:s,children:t})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:s}),e.jsx("div",{children:t})]}),O={layout:"landing",content:{width:"60rem"}};function j(s){const t={a:"a",li:"li",p:"p",strong:"strong",ul:"ul",...f(),...s.components};return $||i("HomePage",!1),r||i("HomePage.Button",!0),m||i("HomePage.Buttons",!0),x||i("HomePage.Description",!0),p||i("HomePage.InstallPackage",!0),g||i("HomePage.Logo",!0),u||i("HomePage.Root",!0),e.jsxs(u,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(g,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(m,{className:"py-2",children:[e.jsx(r,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(r,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(p,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(h,{title:"Light client first",children:e.jsx(t.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(h,{title:"Fully typed API",children:e.jsx(t.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(h,{title:"Lightweight",children:e.jsx(t.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-5xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs(t.ul,{children:[` +import{j as e,L as b,d as n,e as y,f as _,R as P,g as N,T as a,C as l,u as f}from"./index-CnhgBks4.js";var w="vocs_Button_button",H="vocs_Button_button_accent";function k({children:s,className:t,href:o,variant:v}){return e.jsx(b,{className:n(t,w,v==="accent"&&H),href:o,variant:"styleless",children:s})}var L="vocs_HomePage_button",B="vocs_HomePage_buttons",C="vocs_HomePage_description",M="vocs_HomePage_logo",c="vocs_HomePage_packageManager",D="vocs_HomePage",I="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",E="vocs_HomePage_title";function u({children:s,className:t}){return e.jsx("div",{className:n(t,D),children:s})}function g({className:s}){const{logoUrl:t,title:o}=y();return t?e.jsx("div",{className:n(s,M),children:e.jsx(_,{})}):e.jsx("h1",{className:n(s,E),children:o})}function S({children:s,className:t}){return e.jsx("div",{className:n(t,T),children:s})}function x({children:s,className:t}){return e.jsx("div",{className:n(t,C),children:s})}function m({children:s,className:t}){return e.jsx("div",{className:n(t,B),children:s})}function r(s){return e.jsx(k,{...s,className:n(L,s.className)})}function p({name:s,type:t="install"}){return e.jsxs(P,{className:I,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(a,{value:"npm",children:"npm"}),e.jsx(a,{value:"pnpm",children:"pnpm"}),e.jsx(a,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",t==="init"?"init":"install"," ",s]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",t==="init"?"create":"install"," ",s]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",t==="init"?"create":"install"," ",s]})]})}const $=Object.freeze(Object.defineProperty({__proto__:null,Button:r,Buttons:m,Description:x,InstallPackage:p,Logo:g,Root:u,Tagline:S},Symbol.toStringTag,{value:"Module"})),h=({title:s,children:t})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:s}),e.jsx("div",{children:t})]}),O={layout:"landing",content:{width:"60rem"}};function j(s){const t={a:"a",li:"li",p:"p",strong:"strong",ul:"ul",...f(),...s.components};return $||i("HomePage",!1),r||i("HomePage.Button",!0),m||i("HomePage.Buttons",!0),x||i("HomePage.Description",!0),p||i("HomePage.InstallPackage",!0),g||i("HomePage.Logo",!0),u||i("HomePage.Root",!0),e.jsxs(u,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(g,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(m,{className:"py-2",children:[e.jsx(r,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(r,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(p,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(h,{title:"Light client first",children:e.jsx(t.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(h,{title:"Fully typed API",children:e.jsx(t.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(h,{title:"Lightweight",children:e.jsx(t.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-5xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs(t.ul,{children:[` `,e.jsxs(t.li,{children:["🪶 ",e.jsx(t.strong,{children:"Light client first"}),": built on top of the ",e.jsx(t.a,{href:"https://paritytech.github.io/json-rpc-interface-spec/",children:"new JSON-RPC spec"})," to fully leverage the potential of light-clients."]}),` `,e.jsxs(t.li,{children:["💡 Delightful ",e.jsx(t.strong,{children:"TypeScript support"})," with types and docs generated from on-chain metadata."]}),` `,e.jsxs(t.li,{children:["📋 First class support for ",e.jsx(t.strong,{children:"storage"})," reads, ",e.jsx(t.strong,{children:"constants"}),", ",e.jsx(t.strong,{children:"transactions"}),", ",e.jsx(t.strong,{children:"events"})," and ",e.jsx(t.strong,{children:"runtime calls"}),"."]}),` diff --git a/assets/providers-BHA-cFIZ.js b/assets/providers-Cv3d4kKp.js similarity index 99% rename from assets/providers-BHA-cFIZ.js rename to assets/providers-Cv3d4kKp.js index 74951403..1f84267e 100644 --- a/assets/providers-BHA-cFIZ.js +++ b/assets/providers-Cv3d4kKp.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-CnBJmQ_B.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-CnhgBks4.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["The entry point of Polkadot-API, ",s.jsx(e.code,{children:"createClient(provider)"})," requires one ",s.jsx(e.code,{children:"JsonRpcProvider"}),", which lets Polkadot-API communicate with a node. It's a function with the following shape:"]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` `,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"onMessage"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcConnection"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` diff --git a/assets/queries-DpMx1Ps6.js b/assets/queries-CbKGZF_c.js similarity index 99% rename from assets/queries-DpMx1Ps6.js rename to assets/queries-CbKGZF_c.js index cc08aec7..aceae648 100644 --- a/assets/queries-DpMx1Ps6.js +++ b/assets/queries-CbKGZF_c.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-CnBJmQ_B.js";const n={title:"Storage queries",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"storage-queries",children:["Storage queries",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#storage-queries",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-CnhgBks4.js";const n={title:"Storage queries",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"storage-queries",children:["Storage queries",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#storage-queries",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["For ",s.jsx(e.code,{children:"query"})," we have mainly two different situations. There're two kinds of storage entries: entries with and without keys."]}),` `,s.jsxs(e.h2,{id:"entries-without-keys",children:["Entries without keys",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#entries-without-keys",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` `,s.jsxs(e.p,{children:["For example, ",s.jsx(e.code,{children:"System.Number"})," query (it returns the block number) has no keys to index it with. Therefore, under ",s.jsx(e.code,{children:"typedApi.System.Number"})," we have the following structure:"]}),` diff --git a/assets/signers-Bxi6oa_D.js b/assets/signers-oNd0Cq5s.js similarity index 99% rename from assets/signers-Bxi6oa_D.js rename to assets/signers-oNd0Cq5s.js index 92951a9f..1e744a82 100644 --- a/assets/signers-Bxi6oa_D.js +++ b/assets/signers-oNd0Cq5s.js @@ -1,4 +1,4 @@ -import{u as r,j as s}from"./index-CnBJmQ_B.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as s}from"./index-CnhgBks4.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(i.p,{children:"For transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it."}),` `,s.jsx(i.p,{children:"Every method on Polkadot-API that needs to sign something, takes in a signer with the following interface:"}),` `,s.jsx(i.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(i.code,{children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PolkadotSigner"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` diff --git a/assets/typed--Mgjkvy4.js b/assets/typed-D4g5AJsN.js similarity index 99% rename from assets/typed--Mgjkvy4.js rename to assets/typed-D4g5AJsN.js index 4bfb4a08..467ae6b1 100644 --- a/assets/typed--Mgjkvy4.js +++ b/assets/typed-D4g5AJsN.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-CnBJmQ_B.js";const a={title:"TypedApi",description:"undefined"};function n(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"typedapi",children:["TypedApi",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#typedapi",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-CnhgBks4.js";const a={title:"TypedApi",description:"undefined"};function n(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"typedapi",children:["TypedApi",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#typedapi",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["The ",s.jsx(e.code,{children:"TypedApi"})," allows to interact with the runtime metadata easily and with a great developer experience. It'll allow to make storage calls, create transactions, etc. It uses the descriptors generated by PAPI CLI (see ",s.jsx(e.a,{href:"/codegen",children:"Codegen"})," section for a deeper explanation) to generate the types used at devel time. ",s.jsx(e.code,{children:"TypedApi"})," object looks like:"]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" TypedApi"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` `,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" query"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" StorageApi"})]}),` diff --git a/assets/types-BY_Dv84a.js b/assets/types-BqJWXfAw.js similarity index 99% rename from assets/types-BY_Dv84a.js rename to assets/types-BqJWXfAw.js index f66f50f6..10ec0a9b 100644 --- a/assets/types-BY_Dv84a.js +++ b/assets/types-BqJWXfAw.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-CnBJmQ_B.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-CnhgBks4.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types."}),` `,s.jsx(e.p,{children:"Polkadot-API has some types defined that make it easier working with chain data."}),` `,s.jsxs(e.h2,{id:"ss58string",children:["SS58String",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#ss58string",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` diff --git a/assets/upgrade-D1A4fshp.js b/assets/upgrade-DGR_r9bB.js similarity index 96% rename from assets/upgrade-D1A4fshp.js rename to assets/upgrade-DGR_r9bB.js index 55dabba8..30d3e53e 100644 --- a/assets/upgrade-D1A4fshp.js +++ b/assets/upgrade-DGR_r9bB.js @@ -1,9 +1,9 @@ -import{u as n,j as s}from"./index-CnBJmQ_B.js";const l={title:"Preparing for a runtime upgrade",description:"undefined"};function r(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparing-for-a-runtime-upgrade",children:["Preparing for a runtime upgrade",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparing-for-a-runtime-upgrade",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-CnhgBks4.js";const a={title:"Preparing for a runtime upgrade",description:"undefined"};function r(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparing-for-a-runtime-upgrade",children:["Preparing for a runtime upgrade",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparing-for-a-runtime-upgrade",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"With Polkadot-API's support for multiple chains, you can make your dApp prepare for an upcoming runtime upgrade on a chain as long as you can get the metadata for that upgrade."}),` `,s.jsx(e.p,{children:"As an example, let's imagine we have already set up the polkadot relay chain for our dApp"}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npx"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" papi"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" add"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" dot"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" -n"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot"})]})})}),` -`,s.jsx(e.p,{children:"If you know of a node available through a websocket that has the runtime upgrade, you can download that metadata with the CLI:"}),` -`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npx"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" papi"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" add"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" nextDot"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" -w"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" wss://rpc-polkadot.exampleupdate.io/"})]}),` +`,s.jsx(e.p,{children:"You can directly compile (or download from a GitHub CI, for example) your WASM runtime and PAPI will get the metadata from it and will be able to generate the descriptors."}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npx"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" papi"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" add"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" nextDot"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" --wasm"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot_next_runtime.compressed.wasm"})]}),` `,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npx"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" papi"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" generate"})]})]})}),` `,s.jsx(e.aside,{"data-callout":"info",children:s.jsx(e.p,{children:"We have in our roadmap to support downloading an upcoming metadata from a referenda link"})}),` `,s.jsx(e.p,{children:"Now on the code you can create two typed APIs for the same chain, and then use the compatibility check to use one or the other."}),` @@ -38,4 +38,4 @@ import{u as n,j as s}from"./index-CnBJmQ_B.js";const l={title:"Preparing for a r `,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` `,s.jsx(e.p,{children:"Furthermore, the runtime upgrade might happen while the dApp is running, and this will still work without needing to redo the connection. As soon as the upgrade is received, the compatible check will work as expected and the dApp will start using the next runtime."}),` `,s.jsxs(e.p,{children:["As a note, ",s.jsx(e.code,{children:"isCompatible"})," is a function available on every interaction on the typedApi (queries, apis, constants, events, transactions). If used without any parameter it will return a ",s.jsx(e.code,{children:"Promise"}),", because it needs to wait for the runtime to be loaded before it can tell whether it's compatible or not."]}),` -`,s.jsxs(e.p,{children:["If you have multiple ",s.jsx(e.code,{children:"isCompatible"})," checks that you don't want to wait for each one of them, you can first wait for the runtime to be loaded with ",s.jsx(e.code,{children:"await dotApi.runtime.latest()"}),", and then pass this to ",s.jsx(e.code,{children:"isCompatible"})," as a paramter. This will make ",s.jsx(e.code,{children:"isCompatible"})," return synchronously."]})]})}function o(i={}){const{wrapper:e}={...n(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(r,{...i})}):r(i)}export{o as default,l as frontmatter}; +`,s.jsxs(e.p,{children:["If you have multiple ",s.jsx(e.code,{children:"isCompatible"})," checks that you don't want to wait for each one of them, you can first wait for the runtime to be loaded with ",s.jsx(e.code,{children:"await dotApi.runtime.latest()"}),", and then pass this to ",s.jsx(e.code,{children:"isCompatible"})," as a paramter. This will make ",s.jsx(e.code,{children:"isCompatible"})," return synchronously."]})]})}function o(i={}){const{wrapper:e}={...n(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(r,{...i})}):r(i)}export{o as default,a as frontmatter}; diff --git a/client/index.html b/client/index.html index f6d88641..6a3f32eb 100644 --- a/client/index.html +++ b/client/index.html @@ -12,7 +12,7 @@ - + diff --git a/codegen/index.html b/codegen/index.html index f6d88641..6a3f32eb 100644 --- a/codegen/index.html +++ b/codegen/index.html @@ -12,7 +12,7 @@ - + diff --git a/getting-started/index.html b/getting-started/index.html index f6d88641..6a3f32eb 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -12,7 +12,7 @@ - + diff --git a/index.html b/index.html index f6d88641..6a3f32eb 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + diff --git a/providers/index.html b/providers/index.html index f6d88641..6a3f32eb 100644 --- a/providers/index.html +++ b/providers/index.html @@ -12,7 +12,7 @@ - + diff --git a/recipes/upgrade/index.html b/recipes/upgrade/index.html index f6d88641..6a3f32eb 100644 --- a/recipes/upgrade/index.html +++ b/recipes/upgrade/index.html @@ -12,7 +12,7 @@ - + diff --git a/signers/index.html b/signers/index.html index f6d88641..6a3f32eb 100644 --- a/signers/index.html +++ b/signers/index.html @@ -12,7 +12,7 @@ - + diff --git a/typed/apis/index.html b/typed/apis/index.html index f6d88641..6a3f32eb 100644 --- a/typed/apis/index.html +++ b/typed/apis/index.html @@ -12,7 +12,7 @@ - + diff --git a/typed/constants/index.html b/typed/constants/index.html index f6d88641..6a3f32eb 100644 --- a/typed/constants/index.html +++ b/typed/constants/index.html @@ -12,7 +12,7 @@ - + diff --git a/typed/index.html b/typed/index.html index f6d88641..6a3f32eb 100644 --- a/typed/index.html +++ b/typed/index.html @@ -12,7 +12,7 @@ - + diff --git a/typed/queries/index.html b/typed/queries/index.html index f6d88641..6a3f32eb 100644 --- a/typed/queries/index.html +++ b/typed/queries/index.html @@ -12,7 +12,7 @@ - + diff --git a/types/index.html b/types/index.html index f6d88641..6a3f32eb 100644 --- a/types/index.html +++ b/types/index.html @@ -12,7 +12,7 @@ - +