From 43993432563580298a01550a184ccdbf3c3a87ac Mon Sep 17 00:00:00 2001 From: Santiago Gonzalez Date: Wed, 18 Sep 2024 01:07:59 -0500 Subject: [PATCH] Updates --- architecture/index.html | 4 +-- ...e-BXTo28X5.js => architecture-rgg5NLqz.js} | 2 +- assets/{cli-By9t85ut.js => cli-CLlqZRCQ.js} | 2 +- ...ent-CEkNkea6.js => deployment-WsajuzVp.js} | 2 +- ...mples-DaTnY_de.js => examples-Bd5Ah4mi.js} | 2 +- ...uLi9ag9.js => getting-started-DWaqqspk.js} | 2 +- .../{index-BmZJsBfh.js => index-BI7hd4Gq.js} | 36 +++++++++---------- .../{index-BhvIaQTk.js => index-y_-j9ylS.js} | 2 +- ...oZA.js => manifest-definition-BH3sQWFK.js} | 2 +- ...pis-DSEj_0gD.js => other-apis-BsW5DYUf.js} | 2 +- ...ack-CjeAah4A.js => tech-stack-aYqGeJhL.js} | 2 +- cli/index.html | 4 +-- deployment/index.html | 4 +-- examples/index.html | 4 +-- getting-started/index.html | 4 +-- index.html | 4 +-- manifest-definition/index.html | 4 +-- other-apis/index.html | 4 +-- tech-stack/index.html | 4 +-- 19 files changed, 45 insertions(+), 45 deletions(-) rename assets/{architecture-BXTo28X5.js => architecture-rgg5NLqz.js} (99%) rename assets/{cli-By9t85ut.js => cli-CLlqZRCQ.js} (99%) rename assets/{deployment-CEkNkea6.js => deployment-WsajuzVp.js} (99%) rename assets/{examples-DaTnY_de.js => examples-Bd5Ah4mi.js} (93%) rename assets/{getting-started--uLi9ag9.js => getting-started-DWaqqspk.js} (99%) rename assets/{index-BmZJsBfh.js => index-BI7hd4Gq.js} (73%) rename assets/{index-BhvIaQTk.js => index-y_-j9ylS.js} (97%) rename assets/{manifest-definition-CAYGwoZA.js => manifest-definition-BH3sQWFK.js} (90%) rename assets/{other-apis-DSEj_0gD.js => other-apis-BsW5DYUf.js} (99%) rename assets/{tech-stack-CjeAah4A.js => tech-stack-aYqGeJhL.js} (99%) diff --git a/architecture/index.html b/architecture/index.html index d60e45a..6304988 100644 --- a/architecture/index.html +++ b/architecture/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

RAG API Pipeline Architecture Overview

diff --git a/assets/architecture-BXTo28X5.js b/assets/architecture-rgg5NLqz.js similarity index 99% rename from assets/architecture-BXTo28X5.js rename to assets/architecture-rgg5NLqz.js index f79a402..bee2dba 100644 --- a/assets/architecture-BXTo28X5.js +++ b/assets/architecture-rgg5NLqz.js @@ -1,4 +1,4 @@ -import{u as a,j as e}from"./index-BmZJsBfh.js";const s={title:"RAG API Pipeline Architecture Overview",description:"undefined"};function r(i){const n={a:"a",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",ul:"ul",...a(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"rag-api-pipeline-architecture-overview",children:["RAG API Pipeline Architecture Overview",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-architecture-overview",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as a,j as e}from"./index-BI7hd4Gq.js";const s={title:"RAG API Pipeline Architecture Overview",description:"undefined"};function r(i){const n={a:"a",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",ul:"ul",...a(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"rag-api-pipeline-architecture-overview",children:["RAG API Pipeline Architecture Overview",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-architecture-overview",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsxs(n.h2,{id:"introduction",children:["Introduction",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#introduction",children:e.jsx(n.div,{"data-autolink-icon":!0})})]}),` `,e.jsx(n.p,{children:"This document provides an overview of the RAG (Retrieval-Augmented Generation) API Pipeline architecture. The system is designed to extract, process, and store data from the Boardroom Governance API, creating a knowledge base that can be queried using natural language processing techniques."}),` `,e.jsxs(n.h2,{id:"diagram",children:["Diagram",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#diagram",children:e.jsx(n.div,{"data-autolink-icon":!0})})]}),` diff --git a/assets/cli-By9t85ut.js b/assets/cli-CLlqZRCQ.js similarity index 99% rename from assets/cli-By9t85ut.js rename to assets/cli-CLlqZRCQ.js index 678dc65..058b729 100644 --- a/assets/cli-By9t85ut.js +++ b/assets/cli-CLlqZRCQ.js @@ -1,4 +1,4 @@ -import{u as d,j as e}from"./index-BmZJsBfh.js";const r={title:"RAG API Pipeline CLI Documentation",description:"undefined"};function a(n){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",ul:"ul",...d(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i.header,{children:e.jsxs(i.h1,{id:"rag-api-pipeline-cli-documentation",children:["RAG API Pipeline CLI Documentation",e.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-cli-documentation",children:e.jsx(i.div,{"data-autolink-icon":!0})})]})}),` +import{u as d,j as e}from"./index-BI7hd4Gq.js";const r={title:"RAG API Pipeline CLI Documentation",description:"undefined"};function a(n){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",ul:"ul",...d(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i.header,{children:e.jsxs(i.h1,{id:"rag-api-pipeline-cli-documentation",children:["RAG API Pipeline CLI Documentation",e.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-cli-documentation",children:e.jsx(i.div,{"data-autolink-icon":!0})})]})}),` `,e.jsxs(i.h2,{id:"overview",children:["Overview",e.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#overview",children:e.jsx(i.div,{"data-autolink-icon":!0})})]}),` `,e.jsx(i.p,{children:`The CLI tool provides functionality for running a RAG (Retrieval-Augmented Generation) API pipeline. It offers various commands to execute different stages of the pipeline, from data extraction to embedding generation.`}),` diff --git a/assets/deployment-CEkNkea6.js b/assets/deployment-WsajuzVp.js similarity index 99% rename from assets/deployment-CEkNkea6.js rename to assets/deployment-WsajuzVp.js index 324b3af..d9bd629 100644 --- a/assets/deployment-CEkNkea6.js +++ b/assets/deployment-WsajuzVp.js @@ -1,4 +1,4 @@ -import{u as a,j as e}from"./index-BmZJsBfh.js";const l={title:"RAG API Pipeline Deployment",description:"undefined"};function n(i){const s={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",ul:"ul",...a(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(s.header,{children:e.jsxs(s.h1,{id:"rag-api-pipeline-deployment",children:["RAG API Pipeline Deployment",e.jsx(s.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-deployment",children:e.jsx(s.div,{"data-autolink-icon":!0})})]})}),` +import{u as a,j as e}from"./index-BI7hd4Gq.js";const l={title:"RAG API Pipeline Deployment",description:"undefined"};function n(i){const s={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",ul:"ul",...a(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(s.header,{children:e.jsxs(s.h1,{id:"rag-api-pipeline-deployment",children:["RAG API Pipeline Deployment",e.jsx(s.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-deployment",children:e.jsx(s.div,{"data-autolink-icon":!0})})]})}),` `,e.jsxs(s.h2,{id:"overview",children:["Overview",e.jsx(s.a,{"aria-hidden":"true",tabIndex:"-1",href:"#overview",children:e.jsx(s.div,{"data-autolink-icon":!0})})]}),` `,e.jsx(s.p,{children:"This page outlines the deployment process for the AI pipeline, including the necessary components and their configurations."}),` `,e.jsxs(s.h2,{id:"deployment-process",children:["Deployment Process",e.jsx(s.a,{"aria-hidden":"true",tabIndex:"-1",href:"#deployment-process",children:e.jsx(s.div,{"data-autolink-icon":!0})})]}),` diff --git a/assets/examples-DaTnY_de.js b/assets/examples-Bd5Ah4mi.js similarity index 93% rename from assets/examples-DaTnY_de.js rename to assets/examples-Bd5Ah4mi.js index 3b46c5c..609343b 100644 --- a/assets/examples-DaTnY_de.js +++ b/assets/examples-Bd5Ah4mi.js @@ -1,3 +1,3 @@ -import{u as t,j as e}from"./index-BmZJsBfh.js";const d={title:"API Examples",description:"undefined"};function i(n){const a={a:"a",div:"div",h1:"h1",h2:"h2",header:"header",...t(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(a.header,{children:e.jsxs(a.h1,{id:"api-examples",children:["API Examples",e.jsx(a.a,{"aria-hidden":"true",tabIndex:"-1",href:"#api-examples",children:e.jsx(a.div,{"data-autolink-icon":!0})})]})}),` +import{u as t,j as e}from"./index-BI7hd4Gq.js";const d={title:"API Examples",description:"undefined"};function i(n){const a={a:"a",div:"div",h1:"h1",h2:"h2",header:"header",...t(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(a.header,{children:e.jsxs(a.h1,{id:"api-examples",children:["API Examples",e.jsx(a.a,{"aria-hidden":"true",tabIndex:"-1",href:"#api-examples",children:e.jsx(a.div,{"data-autolink-icon":!0})})]})}),` `,e.jsxs(a.h2,{id:"boardroom-api",children:["Boardroom API",e.jsx(a.a,{"aria-hidden":"true",tabIndex:"-1",href:"#boardroom-api",children:e.jsx(a.div,{"data-autolink-icon":!0})})]}),` `,e.jsxs(a.h2,{id:"optimism-agora-api",children:["Optimism Agora API",e.jsx(a.a,{"aria-hidden":"true",tabIndex:"-1",href:"#optimism-agora-api",children:e.jsx(a.div,{"data-autolink-icon":!0})})]})]})}function o(n={}){const{wrapper:a}={...t(),...n.components};return a?e.jsx(a,{...n,children:e.jsx(i,{...n})}):i(n)}export{o as default,d as frontmatter}; diff --git a/assets/getting-started--uLi9ag9.js b/assets/getting-started-DWaqqspk.js similarity index 99% rename from assets/getting-started--uLi9ag9.js rename to assets/getting-started-DWaqqspk.js index 2997fc3..7ce96fa 100644 --- a/assets/getting-started--uLi9ag9.js +++ b/assets/getting-started-DWaqqspk.js @@ -1,4 +1,4 @@ -import{u as r,j as e}from"./index-BmZJsBfh.js";const a={title:"GaiaNet RAG API Pipeline",description:"undefined"};function s(i){const n={a:"a",code:"code",div:"div",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",strong:"strong",ul:"ul",...r(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"gaianet-rag-api-pipeline",children:["GaiaNet RAG API Pipeline",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#gaianet-rag-api-pipeline",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as e}from"./index-BI7hd4Gq.js";const a={title:"GaiaNet RAG API Pipeline",description:"undefined"};function s(i){const n={a:"a",code:"code",div:"div",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",strong:"strong",ul:"ul",...r(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"gaianet-rag-api-pipeline",children:["GaiaNet RAG API Pipeline",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#gaianet-rag-api-pipeline",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsxs(n.p,{children:[e.jsx(n.code,{children:"rag-api-pipeline"}),` is a Python-based data pipeline tool that allows you to easily generate a vector knowledge base from any REST API data source. The resulting database snapshot can be then plugged-in into a Gaia node's LLM model with a prompt and provide contextual responses to user queries using RAG (Retrieval Augmented Generation).`]}),` diff --git a/assets/index-BmZJsBfh.js b/assets/index-BI7hd4Gq.js similarity index 73% rename from assets/index-BmZJsBfh.js rename to assets/index-BI7hd4Gq.js index d78627c..64c8aa8 100644 --- a/assets/index-BmZJsBfh.js +++ b/assets/index-BI7hd4Gq.js @@ -1,4 +1,4 @@ -function af(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Jx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vv={exports:{}},Wl={},Wv={exports:{}},ae={};/** +function af(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Zx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vv={exports:{}},Wl={},Wv={exports:{}},ae={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function af(e,t){for(var n=0;n>>1,le=L[J];if(0>>1;Jo(Ze,$))Meo(Pe,Ze)?(L[J]=Pe,L[Me]=$,J=Me):(L[J]=Ze,L[Le]=$,J=Le);else if(Meo(Pe,$))L[J]=Pe,L[Me]=$,J=Me;else break e}}return M}function o(L,M){var $=L.sortIndex-M.sortIndex;return $!==0?$:L.id-M.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=[],c=[],f=1,u=null,d=3,h=!1,x=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=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 M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=L)r(c),M.sortIndex=M.expirationTime,t(s,M);else break;M=n(c)}}function E(L){if(v=!1,w(L),!x)if(n(s)!==null)x=!0,U(_);else{var M=n(c);M!==null&&K(E,M.startTime-L)}}function _(L,M){x=!1,v&&(v=!1,g(S),S=-1),h=!0;var $=d;try{for(w(M),u=n(s);u!==null&&(!(u.expirationTime>M)||L&&!I());){var J=u.callback;if(typeof J=="function"){u.callback=null,d=u.priorityLevel;var le=J(u.expirationTime<=M);M=e.unstable_now(),typeof le=="function"?u.callback=le:u===n(s)&&r(s),w(M)}else r(s);u=n(s)}if(u!==null)var Ce=!0;else{var Le=n(c);Le!==null&&K(E,Le.startTime-M),Ce=!1}return Ce}finally{u=null,d=$,h=!1}}var R=!1,T=null,S=-1,P=5,b=-1;function I(){return!(e.unstable_now()-bL||125J?(L.sortIndex=$,t(c,L),n(s)===null&&L===n(c)&&(v?(g(S),S=-1):v=!0,K(E,$-J))):(L.sortIndex=le,t(s,L),x||h||(x=!0,U(_))),L},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(L){var M=d;return function(){var $=d;d=M;try{return L.apply(this,arguments)}finally{d=$}}}})(nm);tm.exports=nm;var Ew=tm.exports;/** + */(function(e){function t(L,M){var $=L.length;L.push(M);e:for(;0<$;){var J=$-1>>>1,le=L[J];if(0>>1;Jo(Ze,$))Meo(Pe,Ze)?(L[J]=Pe,L[Me]=$,J=Me):(L[J]=Ze,L[Le]=$,J=Le);else if(Meo(Pe,$))L[J]=Pe,L[Me]=$,J=Me;else break e}}return M}function o(L,M){var $=L.sortIndex-M.sortIndex;return $!==0?$:L.id-M.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=[],c=[],f=1,u=null,d=3,h=!1,x=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=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 M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=L)r(c),M.sortIndex=M.expirationTime,t(s,M);else break;M=n(c)}}function E(L){if(v=!1,w(L),!x)if(n(s)!==null)x=!0,U(_);else{var M=n(c);M!==null&&K(E,M.startTime-L)}}function _(L,M){x=!1,v&&(v=!1,g(S),S=-1),h=!0;var $=d;try{for(w(M),u=n(s);u!==null&&(!(u.expirationTime>M)||L&&!I());){var J=u.callback;if(typeof J=="function"){u.callback=null,d=u.priorityLevel;var le=J(u.expirationTime<=M);M=e.unstable_now(),typeof le=="function"?u.callback=le:u===n(s)&&r(s),w(M)}else r(s);u=n(s)}if(u!==null)var Ce=!0;else{var Le=n(c);Le!==null&&K(E,Le.startTime-M),Ce=!1}return Ce}finally{u=null,d=$,h=!1}}var R=!1,T=null,S=-1,P=5,b=-1;function I(){return!(e.unstable_now()-bL||125J?(L.sortIndex=$,t(c,L),n(s)===null&&L===n(c)&&(v?(g(S),S=-1):v=!0,K(E,$-J))):(L.sortIndex=le,t(s,L),x||h||(x=!0,U(_))),L},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(L){var M=d;return function(){var $=d;d=M;try{return L.apply(this,arguments)}finally{d=$}}}})(rm);nm.exports=rm;var Cw=nm.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function af(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=Object.prototype.hasOwnProperty,Sw=/^[: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]*$/,fh={},dh={};function _w(e){return ku.call(dh,e)?!0:ku.call(fh,e)?!1:Sw.test(e)?dh[e]=!0:(fh[e]=!0,!1)}function Tw(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 Rw(e,t,n,r){if(t===null||typeof t>"u"||Tw(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 pt(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 nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new pt(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){nt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-:]([a-z])/g;function hf(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(df,hf);nt[t]=new pt(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(df,hf);nt[t]=new pt(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(df,hf);nt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function pf(e,t,n,r){var o=nt.hasOwnProperty(t)?nt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=Object.prototype.hasOwnProperty,Sw=/^[: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]*$/,fh={},dh={};function _w(e){return ku.call(dh,e)?!0:ku.call(fh,e)?!1:Sw.test(e)?dh[e]=!0:(fh[e]=!0,!1)}function Tw(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 Rw(e,t,n,r){if(t===null||typeof t>"u"||Tw(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 pt(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 nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new pt(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){nt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-:]([a-z])/g;function hf(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(df,hf);nt[t]=new pt(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(df,hf);nt[t]=new pt(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(df,hf);nt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function pf(e,t,n,r){var o=nt.hasOwnProperty(t)?nt[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{Ns=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ui(e):""}function Nw(e){switch(e.tag){case 5:return ui(e.type);case 16:return ui("Lazy");case 13:return ui("Suspense");case 19:return ui("SuspenseList");case 0:case 2:case 15:return e=ks(e.type,!1),e;case 11:return e=ks(e.type.render,!1),e;case 1:return e=ks(e.type,!0),e;default:return""}}function ju(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 eo:return"Fragment";case qr:return"Portal";case Pu:return"Profiler";case vf:return"StrictMode";case bu:return"Suspense";case Au:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case am:return(e.displayName||"Context")+".Consumer";case im:return(e._context.displayName||"Context")+".Provider";case mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gf:return t=e.displayName||null,t!==null?t:ju(e.type)||"Memo";case Bn:t=e._payload,e=e._init;try{return ju(e(t))}catch{}}return null}function kw(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 ju(t);case 8:return t===vf?"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 rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pw(e){var t=sm(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 pa(e){e._valueTracker||(e._valueTracker=Pw(e))}function um(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 Lu(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ph(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(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 cm(e,t){t=t.checked,t!=null&&pf(e,"checked",t,!1)}function Mu(e,t){cm(e,t);var n=rr(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")?Iu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Iu(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vh(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 Iu(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ci=Array.isArray;function po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=va.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vi={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},bw=["Webkit","ms","Moz","O"];Object.keys(vi).forEach(function(e){bw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vi[t]=vi[e]})});function pm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vi.hasOwnProperty(e)&&vi[e]?(""+t).trim():t+"px"}function vm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=pm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Aw=ke({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 Fu(e,t){if(t){if(Aw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function zu(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 $u=null;function yf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bu=null,vo=null,mo=null;function yh(e){if(e=Xi(e)){if(typeof Bu!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Xl(t),Bu(e.stateNode,e.type,t))}}function mm(e){vo?mo?mo.push(e):mo=[e]:vo=e}function gm(){if(vo){var e=vo,t=mo;if(mo=vo=null,yh(e),t)for(e=0;e>>=0,e===0?32:31-(Uw(e)/Hw|0)|0}var ma=64,ga=4194304;function fi(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 dl(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=fi(l):(i&=a,i!==0&&(r=fi(i)))}else a=n&~o,a!==0?r=fi(a):i!==0&&(r=fi(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 Yi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=n}function Gw(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=gi),Nh=" ",kh=!1;function Dm(e,t){switch(e){case"keyup":return C2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var to=!1;function S2(e,t){switch(e){case"compositionend":return Fm(t);case"keypress":return t.which!==32?null:(kh=!0,Nh);case"textInput":return e=t.data,e===Nh&&kh?null:e;default:return null}}function _2(e,t){if(to)return e==="compositionend"||!Rf&&Dm(e,t)?(e=Im(),Ka=Sf=Kn=null,to=!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=jh(n)}}function Um(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Um(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hm(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Nf(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 L2(e){var t=Hm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Um(n.ownerDocument.documentElement,n)){if(r!==null&&Nf(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=Lh(n,i);var a=Lh(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,no=null,Gu=null,xi=null,Yu=!1;function Mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yu||no==null||no!==sl(r)||(r=no,"selectionStart"in r&&Nf(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}),xi&&Ai(xi,r)||(xi=r,r=vl(Gu,"onSelect"),0io||(e.current=ec[io],ec[io]=null,io--)}function ge(e,t){io++,ec[io]=e.current,e.current=t}var or={},lt=dr(or),yt=dr(!1),kr=or;function _o(e,t){var n=e.type.contextTypes;if(!n)return or;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 xt(e){return e=e.childContextTypes,e!=null}function gl(){we(yt),we(lt)}function Bh(e,t,n){if(lt.current!==or)throw Error(z(168));ge(lt,t),ge(yt,n)}function Jm(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(z(108,kw(e)||"Unknown",o));return ke({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,kr=lt.current,ge(lt,e),ge(yt,yt.current),!0}function Uh(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Jm(e,t,kr),r.__reactInternalMemoizedMergedChildContext=e,we(yt),we(lt),ge(lt,e)):we(yt),ge(yt,n)}var xn=null,Zl=!1,Us=!1;function qm(e){xn===null?xn=[e]:xn.push(e)}function W2(e){Zl=!0,qm(e)}function hr(){if(!Us&&xn!==null){Us=!0;var e=0,t=pe;try{var n=xn;for(pe=1;e>=a,o-=a,wn=1<<32-Qt(t)+o|n<S?(P=T,T=null):P=T.sibling;var b=d(g,T,w[S],E);if(b===null){T===null&&(T=P);break}e&&T&&b.alternate===null&&t(g,T),y=i(b,y,S),R===null?_=b:R.sibling=b,R=b,T=P}if(S===w.length)return n(g,T),_e&&xr(g,S),_;if(T===null){for(;SS?(P=T,T=null):P=T.sibling;var I=d(g,T,b.value,E);if(I===null){T===null&&(T=P);break}e&&T&&I.alternate===null&&t(g,T),y=i(I,y,S),R===null?_=I:R.sibling=I,R=I,T=P}if(b.done)return n(g,T),_e&&xr(g,S),_;if(T===null){for(;!b.done;S++,b=w.next())b=u(g,b.value,E),b!==null&&(y=i(b,y,S),R===null?_=b:R.sibling=b,R=b);return _e&&xr(g,S),_}for(T=r(g,T);!b.done;S++,b=w.next())b=h(T,g,S,b.value,E),b!==null&&(e&&b.alternate!==null&&T.delete(b.key===null?S:b.key),y=i(b,y,S),R===null?_=b:R.sibling=b,R=b);return e&&T.forEach(function(D){return t(g,D)}),_e&&xr(g,S),_}function C(g,y,w,E){if(typeof w=="object"&&w!==null&&w.type===eo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ha:e:{for(var _=w.key,R=y;R!==null;){if(R.key===_){if(_=w.type,_===eo){if(R.tag===7){n(g,R.sibling),y=o(R,w.props.children),y.return=g,g=y;break e}}else if(R.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bn&&Qh(_)===R.type){n(g,R.sibling),y=o(R,w.props),y.ref=qo(g,R,w),y.return=g,g=y;break e}n(g,R);break}else t(g,R);R=R.sibling}w.type===eo?(y=Rr(w.props.children,g.mode,E,w.key),y.return=g,g=y):(E=el(w.type,w.key,w.props,null,g.mode,E),E.ref=qo(g,y,w),E.return=g,g=E)}return a(g);case qr:e:{for(R=w.key;y!==null;){if(y.key===R)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Xs(w,g.mode,E),y.return=g,g=y}return a(g);case Bn:return R=w._init,C(g,y,R(w._payload),E)}if(ci(w))return x(g,y,w,E);if(Yo(w))return v(g,y,w,E);_a(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Qs(w,g.mode,E),y.return=g,g=y),a(g)):n(g,y)}return C}var Ro=lg(!0),sg=lg(!1),Zi={},ln=dr(Zi),Ii=dr(Zi),Oi=dr(Zi);function Sr(e){if(e===Zi)throw Error(z(174));return e}function Of(e,t){switch(ge(Oi,t),ge(Ii,e),ge(ln,Zi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Du(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Du(t,e)}we(ln),ge(ln,t)}function No(){we(ln),we(Ii),we(Oi)}function ug(e){Sr(Oi.current);var t=Sr(ln.current),n=Du(t,e.type);t!==n&&(ge(Ii,e),ge(ln,n))}function Df(e){Ii.current===e&&(we(ln),we(Ii))}var Re=dr(0);function _l(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hs=[];function Ff(){for(var e=0;en?n:4,e(!0);var r=Vs.transition;Vs.transition={};try{e(!1),t()}finally{pe=n,Vs.transition=r}}function Tg(){return Dt().memoizedState}function Q2(e,t,n){var r=tr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rg(e))Ng(t,n);else if(n=rg(e,t,n,r),n!==null){var o=ft();Xt(n,e,r,o),kg(n,t,r)}}function X2(e,t,n){var r=tr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rg(e))Ng(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,Zt(l,a)){var s=t.interleaved;s===null?(o.next=o,Mf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=rg(e,t,o,r),n!==null&&(o=ft(),Xt(n,e,r,o),kg(n,t,r))}}function Rg(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function Ng(e,t){wi=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wf(e,n)}}var Rl={readContext:Ot,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},Z2={readContext:Ot,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xa(4194308,4,wg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xa(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();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=Q2.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:Xh,useDebugValue:Hf,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=Xh(!1),t=e[0];return e=Y2.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,o=nn();if(_e){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Qe===null)throw Error(z(349));br&30||dg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zh(pg.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,hg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=nn(),t=Qe.identifierPrefix;if(_e){var n=Cn,r=wn;n=(r&~(1<<32-Qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Di++,0io||(e.current=ec[io],ec[io]=null,io--)}function ge(e,t){io++,ec[io]=e.current,e.current=t}var or={},lt=dr(or),yt=dr(!1),kr=or;function _o(e,t){var n=e.type.contextTypes;if(!n)return or;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 xt(e){return e=e.childContextTypes,e!=null}function gl(){we(yt),we(lt)}function Bh(e,t,n){if(lt.current!==or)throw Error(z(168));ge(lt,t),ge(yt,n)}function Jm(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(z(108,kw(e)||"Unknown",o));return ke({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,kr=lt.current,ge(lt,e),ge(yt,yt.current),!0}function Uh(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Jm(e,t,kr),r.__reactInternalMemoizedMergedChildContext=e,we(yt),we(lt),ge(lt,e)):we(yt),ge(yt,n)}var xn=null,Zl=!1,Us=!1;function qm(e){xn===null?xn=[e]:xn.push(e)}function W2(e){Zl=!0,qm(e)}function hr(){if(!Us&&xn!==null){Us=!0;var e=0,t=pe;try{var n=xn;for(pe=1;e>=a,o-=a,wn=1<<32-Qt(t)+o|n<S?(P=T,T=null):P=T.sibling;var b=d(g,T,w[S],E);if(b===null){T===null&&(T=P);break}e&&T&&b.alternate===null&&t(g,T),y=i(b,y,S),R===null?_=b:R.sibling=b,R=b,T=P}if(S===w.length)return n(g,T),_e&&xr(g,S),_;if(T===null){for(;SS?(P=T,T=null):P=T.sibling;var I=d(g,T,b.value,E);if(I===null){T===null&&(T=P);break}e&&T&&I.alternate===null&&t(g,T),y=i(I,y,S),R===null?_=I:R.sibling=I,R=I,T=P}if(b.done)return n(g,T),_e&&xr(g,S),_;if(T===null){for(;!b.done;S++,b=w.next())b=u(g,b.value,E),b!==null&&(y=i(b,y,S),R===null?_=b:R.sibling=b,R=b);return _e&&xr(g,S),_}for(T=r(g,T);!b.done;S++,b=w.next())b=h(T,g,S,b.value,E),b!==null&&(e&&b.alternate!==null&&T.delete(b.key===null?S:b.key),y=i(b,y,S),R===null?_=b:R.sibling=b,R=b);return e&&T.forEach(function(D){return t(g,D)}),_e&&xr(g,S),_}function C(g,y,w,E){if(typeof w=="object"&&w!==null&&w.type===eo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ha:e:{for(var _=w.key,R=y;R!==null;){if(R.key===_){if(_=w.type,_===eo){if(R.tag===7){n(g,R.sibling),y=o(R,w.props.children),y.return=g,g=y;break e}}else if(R.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bn&&Wh(_)===R.type){n(g,R.sibling),y=o(R,w.props),y.ref=qo(g,R,w),y.return=g,g=y;break e}n(g,R);break}else t(g,R);R=R.sibling}w.type===eo?(y=Rr(w.props.children,g.mode,E,w.key),y.return=g,g=y):(E=el(w.type,w.key,w.props,null,g.mode,E),E.ref=qo(g,y,w),E.return=g,g=E)}return a(g);case qr:e:{for(R=w.key;y!==null;){if(y.key===R)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Xs(w,g.mode,E),y.return=g,g=y}return a(g);case Bn:return R=w._init,C(g,y,R(w._payload),E)}if(ci(w))return x(g,y,w,E);if(Yo(w))return v(g,y,w,E);_a(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Qs(w,g.mode,E),y.return=g,g=y),a(g)):n(g,y)}return C}var Ro=rg(!0),og=rg(!1),Cl=dr(null),El=null,so=null,Af=null;function jf(){Af=so=El=null}function Lf(e){var t=Cl.current;we(Cl),e._currentValue=t}function rc(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 yo(e,t){El=e,Af=so=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gt=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(Af!==e)if(e={context:e,memoizedValue:t,next:null},so===null){if(El===null)throw Error(z(308));so=e,El.dependencies={lanes:0,firstContext:e}}else so=so.next=e;return t}var Er=null;function Mf(e){Er===null?Er=[e]:Er.push(e)}function ig(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rn(e,r)}function Rn(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 Un=!1;function If(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ag(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 En(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rn(e,n)}return o=r.interleaved,o===null?(t.next=t,Mf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rn(e,n)}function Ya(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,wf(e,n)}}function Kh(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 Sl(e,t,n,r){var o=e.updateQueue;Un=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=s))}if(i!==null){var u=o.baseState;a=0,f=c=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 x=e,v=l;switch(d=t,h=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){u=x.call(h,u,d);break e}u=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,d=typeof x=="function"?x.call(h,u,d):x,d==null)break e;u=ke({},u,d);break e;case 2:Un=!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?(c=f=h,s=u):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=u),o.baseState=s,o.firstBaseUpdate=c,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);Ar|=a,e.lanes=a,e.memoizedState=u}}function Gh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Vs.transition;Vs.transition={};try{e(!1),t()}finally{pe=n,Vs.transition=r}}function Sg(){return Dt().memoizedState}function Q2(e,t,n){var r=tr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_g(e))Tg(t,n);else if(n=ig(e,t,n,r),n!==null){var o=ft();Xt(n,e,r,o),Rg(n,t,r)}}function X2(e,t,n){var r=tr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Tg(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,Zt(l,a)){var s=t.interleaved;s===null?(o.next=o,Mf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ig(e,t,o,r),n!==null&&(o=ft(),Xt(n,e,r,o),Rg(n,t,r))}}function _g(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function Tg(e,t){wi=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wf(e,n)}}var Rl={readContext:Ot,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},Z2={readContext:Ot,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Qh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xa(4194308,4,yg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xa(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();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=Q2.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:Yh,useDebugValue:Hf,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=Yh(!1),t=e[0];return e=Y2.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,o=nn();if(_e){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Qe===null)throw Error(z(349));br&30||cg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Qh(dg.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,fg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=nn(),t=Qe.identifierPrefix;if(_e){var n=Cn,r=wn;n=(r&~(1<<32-Qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Di++,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[rn]=t,e[Mi]=r,Dg(e,t,!1,!1),t.stateNode=e;e:{switch(a=zu(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;oPo&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304)}else{if(!r)if(e=_l(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return ot(t),null}else 2*De()-i.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,r=!0,ei(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=De(),t.sibling=null,n=Re.current,ge(Re,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return Qf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function i3(e,t){switch(Pf(t),t.tag){case 1:return xt(t.type)&&gl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return No(),we(yt),we(lt),Ff(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(we(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));To()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Re),null;case 4:return No(),null;case 10:return Lf(t.type._context),null;case 22:case 23:return Qf(),null;case 24:return null;default:return null}}var Ra=!1,it=!1,a3=typeof WeakSet=="function"?WeakSet:Set,G=null;function uo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function dc(e,t,n){try{n()}catch(r){je(e,t,r)}}var ap=!1;function l3(e,t){if(Qu=hl,e=Hm(),Nf(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,c=0,f=0,u=e,d=null;t:for(;;){for(var h;u!==n||o!==0&&u.nodeType!==3||(l=a+o),u!==i||r!==0&&u.nodeType!==3||(s=a+r),u.nodeType===3&&(a+=u.nodeValue.length),(h=u.firstChild)!==null;)d=u,u=h;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(h=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xu={focusedElem:e,selectionRange:n},hl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,C=x.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ht(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=y}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(z(163))}}catch(E){je(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=ap,ap=!1,x}function Ci(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&&dc(t,n,i)}o=o.next}while(o!==r)}}function es(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 hc(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 $g(e){var t=e.alternate;t!==null&&(e.alternate=null,$g(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Mi],delete t[qu],delete t[H2],delete t[V2])),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 Bg(e){return e.tag===5||e.tag===3||e.tag===4}function lp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bg(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 pc(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=ml));else if(r!==4&&(e=e.child,e!==null))for(pc(e,t,n),e=e.sibling;e!==null;)pc(e,t,n),e=e.sibling}function vc(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(vc(e,t,n),e=e.sibling;e!==null;)vc(e,t,n),e=e.sibling}var qe=null,Vt=!1;function Fn(e,t,n){for(n=n.child;n!==null;)Ug(e,t,n),n=n.sibling}function Ug(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Kl,n)}catch{}switch(n.tag){case 5:it||uo(n,t);case 6:var r=qe,o=Vt;qe=null,Fn(e,t,n),qe=r,Vt=o,qe!==null&&(Vt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(Vt?(e=qe,n=n.stateNode,e.nodeType===8?Bs(e.parentNode,n):e.nodeType===1&&Bs(e,n),Pi(e)):Bs(qe,n.stateNode));break;case 4:r=qe,o=Vt,qe=n.stateNode.containerInfo,Vt=!0,Fn(e,t,n),qe=r,Vt=o;break;case 0:case 11:case 14:case 15:if(!it&&(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)&&dc(n,t,a),o=o.next}while(o!==r)}Fn(e,t,n);break;case 1:if(!it&&(uo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){je(n,t,l)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,Fn(e,t,n),it=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function sp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new a3),t.forEach(function(r){var o=m3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*u3(r/1960))-r,10e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,Pl=0,ue&6)throw Error(z(331));var o=ue;for(ue|=4,G=e.current;G!==null;){var i=G,a=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sDe()-Gf?Tr(e,0):Kf|=n),wt(e,t)}function Xg(e,t){t===0&&(e.mode&1?(t=ga,ga<<=1,!(ga&130023424)&&(ga=4194304)):t=1);var n=ft();e=Rn(e,t),e!==null&&(Yi(e,t,n),wt(e,n))}function v3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xg(e,n)}function m3(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(z(314))}r!==null&&r.delete(t),Xg(e,n)}var Zg;Zg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,r3(e,t,n);gt=!!(e.flags&131072)}else gt=!1,_e&&t.flags&1048576&&eg(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Za(e,t),e=t.pendingProps;var o=_o(t,lt.current);yo(t,n),o=$f(null,t,r,e,o,n);var i=Bf();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,xt(r)?(i=!0,yl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,If(t),o.updater=Jl,t.stateNode=o,o._reactInternals=t,ic(t,r,e,n),t=sc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&kf(t),ct(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=Ht(r,e),o){case 0:t=lc(null,t,r,e,n);break e;case 1:t=rp(null,t,r,e,n);break e;case 11:t=tp(null,t,r,e,n);break e;case 14:t=np(null,t,r,Ht(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),lc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),rp(e,t,r,o,n);case 3:e:{if(Mg(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,og(e,t),Sl(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=ko(Error(z(423)),t),t=op(e,t,r,n,o);break e}else if(r!==o){o=ko(Error(z(424)),t),t=op(e,t,r,n,o);break e}else for(Tt=Jn(t.stateNode.containerInfo.firstChild),Rt=t,_e=!0,Kt=null,n=sg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(To(),r===o){t=Nn(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 5:return ug(t),e===null&&nc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Zu(r,o)?a=null:i!==null&&Zu(r,i)&&(t.flags|=32),Lg(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&nc(t),null;case 13:return Ig(e,t,n);case 4:return Of(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ro(t,null,r,n):ct(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),tp(e,t,r,o,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(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,ge(Cl,r._currentValue),r._currentValue=a,i!==null)if(Zt(i.value,a)){if(i.children===o.children&&!yt.current){t=Nn(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=En(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),rc(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(z(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),rc(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}ct(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yo(t,n),o=Ot(o),r=r(o),t.flags|=1,ct(e,t,r,n),t.child;case 14:return r=t.type,o=Ht(r,t.pendingProps),o=Ht(r.type,o),np(e,t,r,o,n);case 15:return Ag(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Za(e,t),t.tag=1,xt(r)?(e=!0,yl(t)):e=!1,yo(t,n),ag(t,r,o),ic(t,r,o,n),sc(null,t,r,!0,e,n);case 19:return Og(e,t,n);case 22:return jg(e,t,n)}throw Error(z(156,t.tag))};function Jg(e,t){return _m(e,t)}function g3(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 Mt(e,t,n,r){return new g3(e,t,n,r)}function Zf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y3(e){if(typeof e=="function")return Zf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===gf)return 14}return 2}function nr(e,t){var n=e.alternate;return n===null?(n=Mt(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 el(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Zf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case eo:return Rr(n.children,o,i,t);case vf:a=8,o|=8;break;case Pu:return e=Mt(12,n,t,o|2),e.elementType=Pu,e.lanes=i,e;case bu:return e=Mt(13,n,t,o),e.elementType=bu,e.lanes=i,e;case Au:return e=Mt(19,n,t,o),e.elementType=Au,e.lanes=i,e;case lm:return ns(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case im:a=10;break e;case am:a=9;break e;case mf:a=11;break e;case gf:a=14;break e;case Bn:a=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function ns(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=lm,e.lanes=n,e.stateNode={isHidden:!1},e}function Qs(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Xs(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function x3(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=bs(0),this.expirationTimes=bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Jf(e,t,n,r,o,i,a,l,s){return e=new x3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function w3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n0)}catch(e){console.error(e)}}n0(),em.exports=Pt;var $o=em.exports;const nd=cr($o),T3=af({__proto__:null,default:nd},[$o]);var r0,mp=$o;mp.createRoot,r0=mp.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Gs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ac(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var e3=typeof WeakMap=="function"?WeakMap:Map;function kg(e,t,n){n=En(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kl||(kl=!0,mc=r),ac(e,t)},n}function Pg(e,t,n){n=En(-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(){ac(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ac(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Jh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new e3;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=p3.bind(null,e,t,n),t.then(e,e))}function qh(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 ep(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=En(-1,1),t.tag=2,qn(n,t,1))),n.lanes|=1),e)}var t3=bn.ReactCurrentOwner,gt=!1;function ct(e,t,n,r){t.child=e===null?og(t,null,n,r):Ro(t,e.child,n,r)}function tp(e,t,n,r,o){n=n.render;var i=t.ref;return yo(t,o),r=$f(e,t,n,r,i,o),n=Bf(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Nn(e,t,o)):(_e&&n&&kf(t),t.flags|=1,ct(e,t,r,o),t.child)}function np(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Zf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bg(e,t,i,r,o)):(e=el(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:Ai,n(a,r)&&e.ref===t.ref)return Nn(e,t,o)}return t.flags|=1,e=nr(i,r),e.ref=t.ref,e.return=t,t.child=e}function bg(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Ai(i,r)&&e.ref===t.ref)if(gt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(gt=!0);else return t.lanes=e.lanes,Nn(e,t,o)}return lc(e,t,n,r,o)}function Ag(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},ge(co,Et),Et|=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,ge(co,Et),Et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(co,Et),Et|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(co,Et),Et|=r;return ct(e,t,o,n),t.child}function jg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lc(e,t,n,r,o){var i=xt(n)?kr:lt.current;return i=_o(t,i),yo(t,o),n=$f(e,t,n,r,i,o),r=Bf(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Nn(e,t,o)):(_e&&r&&kf(t),t.flags|=1,ct(e,t,n,o),t.child)}function rp(e,t,n,r,o){if(xt(n)){var i=!0;yl(t)}else i=!1;if(yo(t,o),t.stateNode===null)Za(e,t),Ng(t,n,r),ic(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ot(c):(c=xt(n)?kr:lt.current,c=_o(t,c));var f=n.getDerivedStateFromProps,u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";u||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==c)&&Zh(t,a,r,c),Un=!1;var d=t.memoizedState;a.state=d,Sl(t,r,a,o),s=t.memoizedState,l!==r||d!==s||yt.current||Un?(typeof f=="function"&&(oc(t,n,f,r),s=t.memoizedState),(l=Un||Xh(t,n,l,r,d,s,c))?(u||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=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ag(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ht(t.type,l),a.props=c,u=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ot(s):(s=xt(n)?kr:lt.current,s=_o(t,s));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==u||d!==s)&&Zh(t,a,r,s),Un=!1,d=t.memoizedState,a.state=d,Sl(t,r,a,o);var x=t.memoizedState;l!==u||d!==x||yt.current||Un?(typeof h=="function"&&(oc(t,n,h,r),x=t.memoizedState),(c=Un||Xh(t,n,c,r,d,x,s)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,x,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,x,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=x),a.props=r,a.state=x,a.context=s,r=c):(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 sc(e,t,n,r,i,o)}function sc(e,t,n,r,o,i){jg(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Uh(t,n,!1),Nn(e,t,i);r=t.stateNode,t3.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ro(t,e.child,null,i),t.child=Ro(t,null,l,i)):ct(e,t,l,i),t.memoizedState=r.state,o&&Uh(t,n,!0),t.child}function Lg(e){var t=e.stateNode;t.pendingContext?Bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bh(e,t.context,!1),Of(e,t.containerInfo)}function op(e,t,n,r,o){return To(),bf(o),t.flags|=256,ct(e,t,n,r),t.child}var uc={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mg(e,t,n){var r=t.pendingProps,o=Re.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),ge(Re,o&1),e===null)return nc(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=ns(a,r,0,null),e=Rr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=cc(n),t.memoizedState=uc,e):Vf(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=nr(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=nr(l,i):(i=Rr(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?cc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=uc,r}return i=e.child,e=i.sibling,r=nr(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 Vf(e,t){return t=ns({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ta(e,t,n,r){return r!==null&&bf(r),Ro(t,e.child,null,n),e=Vf(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=Gs(Error(z(422))),Ta(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ns({mode:"visible",children:r.children},o,0,null),i=Rr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ro(t,e.child,null,a),t.child.memoizedState=cc(a),t.memoizedState=uc,i);if(!(t.mode&1))return Ta(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(z(419)),r=Gs(i,r,void 0),Ta(e,t,a,r)}if(l=(a&e.childLanes)!==0,gt||l){if(r=Qe,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,Rn(e,o),Xt(r,e,o,-1))}return Xf(),r=Gs(Error(z(421))),Ta(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,Tt=Jn(o.nextSibling),Rt=t,_e=!0,Kt=null,e!==null&&(jt[Lt++]=wn,jt[Lt++]=Cn,jt[Lt++]=Pr,wn=e.id,Cn=e.overflow,Pr=t),t=Vf(t,r.children),t.flags|=4096,t)}function ip(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rc(e.return,t,n)}function Ys(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 Ig(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ct(e,t,r.children,n),r=Re.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&&ip(e,n,t);else if(e.tag===19)ip(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(ge(Re,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&&_l(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ys(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&&_l(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ys(t,!0,n,null,i);break;case"together":Ys(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 Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ar|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=nr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function r3(e,t,n){switch(t.tag){case 3:Lg(t),To();break;case 5:lg(t);break;case 1:xt(t.type)&&yl(t);break;case 4:Of(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Cl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(Re,Re.current&1),t.flags|=128,null):n&t.child.childLanes?Mg(e,t,n):(ge(Re,Re.current&1),e=Nn(e,t,n),e!==null?e.sibling:null);ge(Re,Re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ig(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(Re,Re.current),r)break;return null;case 22:case 23:return t.lanes=0,Ag(e,t,n)}return Nn(e,t,n)}var Og,fc,Dg,Fg;Og=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}};fc=function(){};Dg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Sr(ln.current);var i=null;switch(n){case"input":o=Lu(e,o),r=Lu(e,r),i=[];break;case"select":o=ke({},o,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":o=Ou(e,o),r=Ou(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ml)}Fu(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(_i.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="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(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(_i.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&xe("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Fg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ei(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 ot(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 o3(e,t,n){var r=t.pendingProps;switch(Pf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return xt(t.type)&&gl(),ot(t),null;case 3:return r=t.stateNode,No(),we(yt),we(lt),Ff(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(xc(Kt),Kt=null))),fc(e,t),ot(t),null;case 5:Df(t);var o=Sr(Oi.current);if(n=t.type,e!==null&&t.stateNode!=null)Dg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return ot(t),null}if(e=Sr(ln.current),Sa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[rn]=t,r[Mi]=i,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("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[rn]=t,e[Mi]=r,Og(e,t,!1,!1),t.stateNode=e;e:{switch(a=zu(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;oPo&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304)}else{if(!r)if(e=_l(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return ot(t),null}else 2*De()-i.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,r=!0,ei(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=De(),t.sibling=null,n=Re.current,ge(Re,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return Qf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function i3(e,t){switch(Pf(t),t.tag){case 1:return xt(t.type)&&gl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return No(),we(yt),we(lt),Ff(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(we(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));To()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Re),null;case 4:return No(),null;case 10:return Lf(t.type._context),null;case 22:case 23:return Qf(),null;case 24:return null;default:return null}}var Ra=!1,it=!1,a3=typeof WeakSet=="function"?WeakSet:Set,G=null;function uo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function dc(e,t,n){try{n()}catch(r){je(e,t,r)}}var ap=!1;function l3(e,t){if(Qu=hl,e=Hm(),Nf(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,c=0,f=0,u=e,d=null;t:for(;;){for(var h;u!==n||o!==0&&u.nodeType!==3||(l=a+o),u!==i||r!==0&&u.nodeType!==3||(s=a+r),u.nodeType===3&&(a+=u.nodeValue.length),(h=u.firstChild)!==null;)d=u,u=h;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(h=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xu={focusedElem:e,selectionRange:n},hl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,C=x.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ht(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=y}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(z(163))}}catch(E){je(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=ap,ap=!1,x}function Ci(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&&dc(t,n,i)}o=o.next}while(o!==r)}}function es(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 hc(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 zg(e){var t=e.alternate;t!==null&&(e.alternate=null,zg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Mi],delete t[qu],delete t[H2],delete t[V2])),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 $g(e){return e.tag===5||e.tag===3||e.tag===4}function lp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$g(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 pc(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=ml));else if(r!==4&&(e=e.child,e!==null))for(pc(e,t,n),e=e.sibling;e!==null;)pc(e,t,n),e=e.sibling}function vc(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(vc(e,t,n),e=e.sibling;e!==null;)vc(e,t,n),e=e.sibling}var qe=null,Vt=!1;function Fn(e,t,n){for(n=n.child;n!==null;)Bg(e,t,n),n=n.sibling}function Bg(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Kl,n)}catch{}switch(n.tag){case 5:it||uo(n,t);case 6:var r=qe,o=Vt;qe=null,Fn(e,t,n),qe=r,Vt=o,qe!==null&&(Vt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(Vt?(e=qe,n=n.stateNode,e.nodeType===8?Bs(e.parentNode,n):e.nodeType===1&&Bs(e,n),Pi(e)):Bs(qe,n.stateNode));break;case 4:r=qe,o=Vt,qe=n.stateNode.containerInfo,Vt=!0,Fn(e,t,n),qe=r,Vt=o;break;case 0:case 11:case 14:case 15:if(!it&&(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)&&dc(n,t,a),o=o.next}while(o!==r)}Fn(e,t,n);break;case 1:if(!it&&(uo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){je(n,t,l)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,Fn(e,t,n),it=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function sp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new a3),t.forEach(function(r){var o=m3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*u3(r/1960))-r,10e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,Pl=0,ue&6)throw Error(z(331));var o=ue;for(ue|=4,G=e.current;G!==null;){var i=G,a=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sDe()-Gf?Tr(e,0):Kf|=n),wt(e,t)}function Qg(e,t){t===0&&(e.mode&1?(t=ga,ga<<=1,!(ga&130023424)&&(ga=4194304)):t=1);var n=ft();e=Rn(e,t),e!==null&&(Yi(e,t,n),wt(e,n))}function v3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qg(e,n)}function m3(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(z(314))}r!==null&&r.delete(t),Qg(e,n)}var Xg;Xg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,r3(e,t,n);gt=!!(e.flags&131072)}else gt=!1,_e&&t.flags&1048576&&eg(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Za(e,t),e=t.pendingProps;var o=_o(t,lt.current);yo(t,n),o=$f(null,t,r,e,o,n);var i=Bf();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,xt(r)?(i=!0,yl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,If(t),o.updater=ql,t.stateNode=o,o._reactInternals=t,ic(t,r,e,n),t=sc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&kf(t),ct(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=Ht(r,e),o){case 0:t=lc(null,t,r,e,n);break e;case 1:t=rp(null,t,r,e,n);break e;case 11:t=tp(null,t,r,e,n);break e;case 14:t=np(null,t,r,Ht(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),lc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),rp(e,t,r,o,n);case 3:e:{if(Lg(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ag(e,t),Sl(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=ko(Error(z(423)),t),t=op(e,t,r,n,o);break e}else if(r!==o){o=ko(Error(z(424)),t),t=op(e,t,r,n,o);break e}else for(Tt=Jn(t.stateNode.containerInfo.firstChild),Rt=t,_e=!0,Kt=null,n=og(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(To(),r===o){t=Nn(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 5:return lg(t),e===null&&nc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Zu(r,o)?a=null:i!==null&&Zu(r,i)&&(t.flags|=32),jg(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&nc(t),null;case 13:return Mg(e,t,n);case 4:return Of(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ro(t,null,r,n):ct(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),tp(e,t,r,o,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(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,ge(Cl,r._currentValue),r._currentValue=a,i!==null)if(Zt(i.value,a)){if(i.children===o.children&&!yt.current){t=Nn(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=En(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),rc(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(z(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),rc(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}ct(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yo(t,n),o=Ot(o),r=r(o),t.flags|=1,ct(e,t,r,n),t.child;case 14:return r=t.type,o=Ht(r,t.pendingProps),o=Ht(r.type,o),np(e,t,r,o,n);case 15:return bg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Za(e,t),t.tag=1,xt(r)?(e=!0,yl(t)):e=!1,yo(t,n),Ng(t,r,o),ic(t,r,o,n),sc(null,t,r,!0,e,n);case 19:return Ig(e,t,n);case 22:return Ag(e,t,n)}throw Error(z(156,t.tag))};function Zg(e,t){return _m(e,t)}function g3(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 Mt(e,t,n,r){return new g3(e,t,n,r)}function Zf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y3(e){if(typeof e=="function")return Zf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===gf)return 14}return 2}function nr(e,t){var n=e.alternate;return n===null?(n=Mt(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 el(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Zf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case eo:return Rr(n.children,o,i,t);case vf:a=8,o|=8;break;case Pu:return e=Mt(12,n,t,o|2),e.elementType=Pu,e.lanes=i,e;case bu:return e=Mt(13,n,t,o),e.elementType=bu,e.lanes=i,e;case Au:return e=Mt(19,n,t,o),e.elementType=Au,e.lanes=i,e;case lm:return ns(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case im:a=10;break e;case am:a=9;break e;case mf:a=11;break e;case gf:a=14;break e;case Bn:a=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function ns(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=lm,e.lanes=n,e.stateNode={isHidden:!1},e}function Qs(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Xs(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function x3(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=bs(0),this.expirationTimes=bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Jf(e,t,n,r,o,i,a,l,s){return e=new x3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function w3(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(),tm.exports=Pt;var $o=tm.exports;const nd=cr($o),T3=af({__proto__:null,default:nd},[$o]);var n0,mp=$o;mp.createRoot,n0=mp.hydrateRoot;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function N3(){return Math.random().toString(36).substr(2,8)}function yp(e,t){return{usr:e.state,key:e.key,idx:t}}function Bi(e,t,n,r){return n===void 0&&(n=null),Te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pr(t):t,{state:n,key:t&&t.key||r||N3()})}function Lr(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 pr(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 k3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Be.Pop,s=null,c=f();c==null&&(c=0,a.replaceState(Te({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=Be.Pop;let C=f(),g=C==null?null:C-c;c=C,s&&s({action:l,location:v.location,delta:g})}function d(C,g){l=Be.Push;let y=Bi(v.location,C,g);c=f()+1;let w=yp(y,c),E=v.createHref(y);try{a.pushState(w,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function h(C,g){l=Be.Replace;let y=Bi(v.location,C,g);c=f();let w=yp(y,c),E=v.createHref(y);a.replaceState(w,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function x(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof C=="string"?C:Lr(C);return y=y.replace(/ $/,"%20"),ne(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}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(gp,u),s=C,()=>{o.removeEventListener(gp,u),s=null}},createHref(C){return t(o,C)},createURL:x,encodeLocation(C){let g=x(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:h,go(C){return a.go(C)}};return v}var ve;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ve||(ve={}));const P3=new Set(["lazy","caseSensitive","path","id","index","children"]);function b3(e){return e.index===!0}function Ui(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(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`),b3(o)){let s=Te({},o,t(o),{id:l});return r[l]=s,s}else{let s=Te({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=Ui(o.children,t,a,r)),s}})}function Wn(e,t,n){return n===void 0&&(n="/"),tl(e,t,n,!1)}function tl(e,t,n,r){let o=typeof t=="string"?pr(t):t,i=zr(o.pathname||"/",n);if(i==null)return null;let a=i0(e);A3(a);let l=null;for(let s=0;l==null&&s{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 c=Sn([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 "'+c+'".')),i0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:F3(c,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 A3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:z3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const j3=/^:[\w-]+$/,L3=3,M3=2,I3=1,O3=10,D3=-2,xp=e=>e==="*";function F3(e,t){let n=e.split("/"),r=n.length;return n.some(xp)&&(r+=D3),t&&(r+=M3),n.filter(o=>!xp(o)).reduce((o,i)=>o+(j3.test(i)?L3:i===""?I3:O3),r)}function z3(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 $3(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:d,isOptional:h}=f;if(d==="*"){let v=l[u]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[u];return h&&!x?c[d]=void 0:c[d]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function B3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bo(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 l0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bo(!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 zr(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 U3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?pr(e):e;return{pathname:n?n.startsWith("/")?n:H3(n,t):t,search:W3(r),hash:K3(o)}}function H3(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 Zs(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 s0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rd(e,t){let n=s0(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function od(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=pr(e):(o=Te({},e),ne(!o.pathname||!o.pathname.includes("?"),Zs("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),Zs("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),Zs("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let u=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),u-=1;o.pathname=d.join("/")}l=u>=0?t[u]:"/"}let s=U3(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const Sn=e=>e.join("/").replace(/\/\/+/g,"/"),V3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jl{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 ls(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const u0=["post","put","patch","delete"],G3=new Set(u0),Y3=["get",...u0],Q3=new Set(Y3),X3=new Set([301,302,303,307,308]),Z3=new Set([307,308]),Js={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ni={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},id=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),c0="remix-router-transitions";function eC(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 N=e.detectErrorBoundary;o=k=>({hasErrorBoundary:N(k)})}else o=q3;let i={},a=Ui(e.routes,o,void 0,i),l,s=e.basename||"/",c=e.unstable_dataStrategy||aC,f=e.unstable_patchRoutesOnNavigation,u=Te({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,h=new Set,x=1e3,v=new Set,C=null,g=null,y=null,w=e.hydrationData!=null,E=Wn(a,e.history.location,s),_=null;if(E==null&&!f){let N=ut(404,{pathname:e.history.location.pathname}),{matches:k,route:A}=kp(a);E=k,_={[A.id]:N}}E&&!e.hydrationData&&aa(E,a,e.history.location.pathname).active&&(E=null);let R;if(E)if(E.some(N=>N.route.lazy))R=!1;else if(!E.some(N=>N.route.loader))R=!0;else if(u.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,A=O=>O.route.loader?typeof O.route.loader=="function"&&O.route.loader.hydrate===!0?!1:N&&N[O.route.id]!==void 0||k&&k[O.route.id]!==void 0:!0;if(k){let O=E.findIndex(W=>k[W.route.id]!==void 0);R=E.slice(0,O+1).every(A)}else R=E.every(A)}else R=e.hydrationData!=null;else if(R=!1,E=[],u.v7_partialHydration){let N=aa(null,a,e.history.location.pathname);N.active&&N.matches&&(E=N.matches)}let T,S={historyAction:e.history.action,location:e.history.location,matches:E,initialized:R,navigation:Js,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||_,fetchers:new Map,blockers:new Map},P=Be.Pop,b=!1,I,D=!1,B=new Map,j=null,V=!1,U=!1,K=[],L=new Set,M=new Map,$=0,J=-1,le=new Map,Ce=new Set,Le=new Map,Ze=new Map,Me=new Set,Pe=new Map,ce=new Map,Ie=new Map,st;function At(){if(d=e.history.listen(N=>{let{action:k,location:A,delta:O}=N;if(st){st(),st=void 0;return}bo(ce.size===0||O!=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 W=rh({currentLocation:S.location,nextLocation:A,historyAction:k});if(W&&O!=null){let X=new Promise(q=>{st=q});e.history.go(O*-1),oa(W,{state:"blocked",location:A,proceed(){oa(W,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),X.then(()=>e.history.go(O))},reset(){let q=new Map(S.blockers);q.set(W,ni),We({blockers:q})}});return}return dn(k,A)}),n){CC(t,B);let N=()=>EC(t,B);t.addEventListener("pagehide",N),j=()=>t.removeEventListener("pagehide",N)}return S.initialized||dn(Be.Pop,S.location,{initialHydration:!0}),T}function Bt(){d&&d(),j&&j(),h.clear(),I&&I.abort(),S.fetchers.forEach((N,k)=>ra(k)),S.blockers.forEach((N,k)=>nh(k))}function gr(N){return h.add(N),()=>h.delete(N)}function We(N,k){k===void 0&&(k={}),S=Te({},S,N);let A=[],O=[];u.v7_fetcherPersist&&S.fetchers.forEach((W,X)=>{W.state==="idle"&&(Me.has(X)?O.push(X):A.push(X))}),[...h].forEach(W=>W(S,{deletedFetchers:O,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),u.v7_fetcherPersist&&(A.forEach(W=>S.fetchers.delete(W)),O.forEach(W=>ra(W)))}function Mn(N,k,A){var O,W;let{flushSync:X}=A===void 0?{}:A,q=S.actionData!=null&&S.navigation.formMethod!=null&&Wt(S.navigation.formMethod)&&S.navigation.state==="loading"&&((O=N.state)==null?void 0:O._isRedirect)!==!0,H;k.actionData?Object.keys(k.actionData).length>0?H=k.actionData:H=null:q?H=S.actionData:H=null;let Z=k.loaderData?Rp(S.loaderData,k.loaderData,k.matches||[],k.errors):S.loaderData,Y=S.blockers;Y.size>0&&(Y=new Map(Y),Y.forEach((he,ye)=>Y.set(ye,ni)));let Q=b===!0||S.navigation.formMethod!=null&&Wt(S.navigation.formMethod)&&((W=N.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),V||P===Be.Pop||(P===Be.Push?e.history.push(N,N.state):P===Be.Replace&&e.history.replace(N,N.state));let fe;if(P===Be.Pop){let he=B.get(S.location.pathname);he&&he.has(N.pathname)?fe={currentLocation:S.location,nextLocation:N}:B.has(N.pathname)&&(fe={currentLocation:N,nextLocation:S.location})}else if(D){let he=B.get(S.location.pathname);he?he.add(N.pathname):(he=new Set([N.pathname]),B.set(S.location.pathname,he)),fe={currentLocation:S.location,nextLocation:N}}We(Te({},k,{actionData:H,loaderData:Z,historyAction:P,location:N,initialized:!0,navigation:Js,revalidation:"idle",restoreScrollPosition:ih(N,k.matches||S.matches),preventScrollReset:Q,blockers:Y}),{viewTransitionOpts:fe,flushSync:X===!0}),P=Be.Pop,b=!1,D=!1,V=!1,U=!1,K=[]}async function na(N,k){if(typeof N=="number"){e.history.go(N);return}let A=wc(S.location,S.matches,s,u.v7_prependBasename,N,u.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:O,submission:W,error:X}=wp(u.v7_normalizeFormMethod,!1,A,k),q=S.location,H=Bi(S.location,O,k&&k.state);H=Te({},H,e.history.encodeLocation(H));let Z=k&&k.replace!=null?k.replace:void 0,Y=Be.Push;Z===!0?Y=Be.Replace:Z===!1||W!=null&&Wt(W.formMethod)&&W.formAction===S.location.pathname+S.location.search&&(Y=Be.Replace);let Q=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,fe=(k&&k.unstable_flushSync)===!0,he=rh({currentLocation:q,nextLocation:H,historyAction:Y});if(he){oa(he,{state:"blocked",location:H,proceed(){oa(he,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),na(N,k)},reset(){let ye=new Map(S.blockers);ye.set(he,ni),We({blockers:ye})}});return}return await dn(Y,H,{submission:W,pendingError:X,preventScrollReset:Q,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:fe})}function Cs(){if(Es(),We({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){dn(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}dn(P||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:D===!0})}}async function dn(N,k,A){I&&I.abort(),I=null,P=N,V=(A&&A.startUninterruptedRevalidation)===!0,Yx(S.location,S.matches),b=(A&&A.preventScrollReset)===!0,D=(A&&A.enableViewTransition)===!0;let O=l||a,W=A&&A.overrideNavigation,X=Wn(O,k,s),q=(A&&A.flushSync)===!0,H=aa(X,O,k.pathname);if(H.active&&H.matches&&(X=H.matches),!X){let{error:se,notFoundMatches:Ke,route:$e}=Ss(k.pathname);Mn(k,{matches:Ke,loaderData:{},errors:{[$e.id]:se}},{flushSync:q});return}if(S.initialized&&!U&&dC(S.location,k)&&!(A&&A.submission&&Wt(A.submission.formMethod))){Mn(k,{matches:X},{flushSync:q});return}I=new AbortController;let Z=Gr(e.history,k,I.signal,A&&A.submission),Y;if(A&&A.pendingError)Y=[fo(X).route.id,{type:ve.error,error:A.pendingError}];else if(A&&A.submission&&Wt(A.submission.formMethod)){let se=await Vr(Z,k,A.submission,X,H.active,{replace:A.replace,flushSync:q});if(se.shortCircuited)return;if(se.pendingActionResult){let[Ke,$e]=se.pendingActionResult;if(St($e)&&ls($e.error)&&$e.error.status===404){I=null,Mn(k,{matches:se.matches,loaderData:{},errors:{[Ke]:$e.error}});return}}X=se.matches||X,Y=se.pendingActionResult,W=qs(k,A.submission),q=!1,H.active=!1,Z=Gr(e.history,Z.url,Z.signal)}let{shortCircuited:Q,matches:fe,loaderData:he,errors:ye}=await $x(Z,k,X,H.active,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,q,Y);Q||(I=null,Mn(k,Te({matches:fe||X},Np(Y),{loaderData:he,errors:ye})))}async function Vr(N,k,A,O,W,X){X===void 0&&(X={}),Es();let q=xC(k,A);if(We({navigation:q},{flushSync:X.flushSync===!0}),W){let Y=await la(O,k.pathname,N.signal);if(Y.type==="aborted")return{shortCircuited:!0};if(Y.type==="error"){let{boundaryId:Q,error:fe}=ia(k.pathname,Y);return{matches:Y.partialMatches,pendingActionResult:[Q,{type:ve.error,error:fe}]}}else if(Y.matches)O=Y.matches;else{let{notFoundMatches:Q,error:fe,route:he}=Ss(k.pathname);return{matches:Q,pendingActionResult:[he.id,{type:ve.error,error:fe}]}}}let H,Z=hi(O,k);if(!Z.route.action&&!Z.route.lazy)H={type:ve.error,error:ut(405,{method:N.method,pathname:k.pathname,routeId:Z.route.id})};else if(H=(await Ko("action",S,N,[Z],O,null))[Z.route.id],N.signal.aborted)return{shortCircuited:!0};if(_r(H)){let Y;return X&&X.replace!=null?Y=X.replace:Y=Sp(H.response.headers.get("Location"),new URL(N.url),s)===S.location.pathname+S.location.search,await yr(N,H,!0,{submission:A,replace:Y}),{shortCircuited:!0}}if(Yn(H))throw ut(400,{type:"defer-action"});if(St(H)){let Y=fo(O,Z.route.id);return(X&&X.replace)!==!0&&(P=Be.Push),{matches:O,pendingActionResult:[Y.route.id,H]}}return{matches:O,pendingActionResult:[Z.route.id,H]}}async function $x(N,k,A,O,W,X,q,H,Z,Y,Q){let fe=W||qs(k,X),he=X||q||bp(fe),ye=!V&&(!u.v7_partialHydration||!Z);if(O){if(ye){let be=Xd(Q);We(Te({navigation:fe},be!==void 0?{actionData:be}:{}),{flushSync:Y})}let te=await la(A,k.pathname,N.signal);if(te.type==="aborted")return{shortCircuited:!0};if(te.type==="error"){let{boundaryId:be,error:Ct}=ia(k.pathname,te);return{matches:te.partialMatches,loaderData:{},errors:{[be]:Ct}}}else if(te.matches)A=te.matches;else{let{error:be,notFoundMatches:Ct,route:Ae}=Ss(k.pathname);return{matches:Ct,loaderData:{},errors:{[Ae.id]:be}}}}let se=l||a,[Ke,$e]=Cp(e.history,S,A,he,k,u.v7_partialHydration&&Z===!0,u.v7_skipActionErrorRevalidation,U,K,L,Me,Le,Ce,se,s,Q);if(_s(te=>!(A&&A.some(be=>be.route.id===te))||Ke&&Ke.some(be=>be.route.id===te)),J=++$,Ke.length===0&&$e.length===0){let te=eh();return Mn(k,Te({matches:A,loaderData:{},errors:Q&&St(Q[1])?{[Q[0]]:Q[1].error}:null},Np(Q),te?{fetchers:new Map(S.fetchers)}:{}),{flushSync:Y}),{shortCircuited:!0}}if(ye){let te={};if(!O){te.navigation=fe;let be=Xd(Q);be!==void 0&&(te.actionData=be)}$e.length>0&&(te.fetchers=Bx($e)),We(te,{flushSync:Y})}$e.forEach(te=>{M.has(te.key)&&On(te.key),te.controller&&M.set(te.key,te.controller)});let Go=()=>$e.forEach(te=>On(te.key));I&&I.signal.addEventListener("abort",Go);let{loaderResults:pn,fetcherResults:Wr}=await Zd(S,A,Ke,$e,N);if(N.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Go),$e.forEach(te=>M.delete(te.key));let Dn=Pa(pn);if(Dn)return await yr(N,Dn.result,!0,{replace:H}),{shortCircuited:!0};if(Dn=Pa(Wr),Dn)return Ce.add(Dn.key),await yr(N,Dn.result,!0,{replace:H}),{shortCircuited:!0};let{loaderData:sa,errors:vn}=Tp(S,A,Ke,pn,Q,$e,Wr,Pe);Pe.forEach((te,be)=>{te.subscribe(Ct=>{(Ct||te.done)&&Pe.delete(be)})}),u.v7_partialHydration&&Z&&S.errors&&Object.entries(S.errors).filter(te=>{let[be]=te;return!Ke.some(Ct=>Ct.route.id===be)}).forEach(te=>{let[be,Ct]=te;vn=Object.assign(vn||{},{[be]:Ct})});let ua=eh(),ca=th(J),fa=ua||ca||$e.length>0;return Te({matches:A,loaderData:sa,errors:vn},fa?{fetchers:new Map(S.fetchers)}:{})}function Xd(N){if(N&&!St(N[1]))return{[N[0]]:N[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Bx(N){return N.forEach(k=>{let A=S.fetchers.get(k.key),O=ri(void 0,A?A.data:void 0);S.fetchers.set(k.key,O)}),new Map(S.fetchers)}function Ux(N,k,A,O){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.");M.has(N)&&On(N);let W=(O&&O.unstable_flushSync)===!0,X=l||a,q=wc(S.location,S.matches,s,u.v7_prependBasename,A,u.v7_relativeSplatPath,k,O==null?void 0:O.relative),H=Wn(X,q,s),Z=aa(H,X,q);if(Z.active&&Z.matches&&(H=Z.matches),!H){hn(N,k,ut(404,{pathname:q}),{flushSync:W});return}let{path:Y,submission:Q,error:fe}=wp(u.v7_normalizeFormMethod,!0,q,O);if(fe){hn(N,k,fe,{flushSync:W});return}let he=hi(H,Y);if(b=(O&&O.preventScrollReset)===!0,Q&&Wt(Q.formMethod)){Hx(N,k,Y,he,H,Z.active,W,Q);return}Le.set(N,{routeId:k,path:Y}),Vx(N,k,Y,he,H,Z.active,W,Q)}async function Hx(N,k,A,O,W,X,q,H){Es(),Le.delete(N);function Z(Ae){if(!Ae.route.action&&!Ae.route.lazy){let mn=ut(405,{method:H.formMethod,pathname:A,routeId:k});return hn(N,k,mn,{flushSync:q}),!0}return!1}if(!X&&Z(O))return;let Y=S.fetchers.get(N);In(N,wC(H,Y),{flushSync:q});let Q=new AbortController,fe=Gr(e.history,A,Q.signal,H);if(X){let Ae=await la(W,A,fe.signal);if(Ae.type==="aborted")return;if(Ae.type==="error"){let{error:mn}=ia(A,Ae);hn(N,k,mn,{flushSync:q});return}else if(Ae.matches){if(W=Ae.matches,O=hi(W,A),Z(O))return}else{hn(N,k,ut(404,{pathname:A}),{flushSync:q});return}}M.set(N,Q);let he=$,se=(await Ko("action",S,fe,[O],W,N))[O.route.id];if(fe.signal.aborted){M.get(N)===Q&&M.delete(N);return}if(u.v7_fetcherPersist&&Me.has(N)){if(_r(se)||St(se)){In(N,zn(void 0));return}}else{if(_r(se))if(M.delete(N),J>he){In(N,zn(void 0));return}else return Ce.add(N),In(N,ri(H)),yr(fe,se,!1,{fetcherSubmission:H});if(St(se)){hn(N,k,se.error);return}}if(Yn(se))throw ut(400,{type:"defer-action"});let Ke=S.navigation.location||S.location,$e=Gr(e.history,Ke,Q.signal),Go=l||a,pn=S.navigation.state!=="idle"?Wn(Go,S.navigation.location,s):S.matches;ne(pn,"Didn't find any matches after fetcher action");let Wr=++$;le.set(N,Wr);let Dn=ri(H,se.data);S.fetchers.set(N,Dn);let[sa,vn]=Cp(e.history,S,pn,H,Ke,!1,u.v7_skipActionErrorRevalidation,U,K,L,Me,Le,Ce,Go,s,[O.route.id,se]);vn.filter(Ae=>Ae.key!==N).forEach(Ae=>{let mn=Ae.key,lh=S.fetchers.get(mn),Zx=ri(void 0,lh?lh.data:void 0);S.fetchers.set(mn,Zx),M.has(mn)&&On(mn),Ae.controller&&M.set(mn,Ae.controller)}),We({fetchers:new Map(S.fetchers)});let ua=()=>vn.forEach(Ae=>On(Ae.key));Q.signal.addEventListener("abort",ua);let{loaderResults:ca,fetcherResults:fa}=await Zd(S,pn,sa,vn,$e);if(Q.signal.aborted)return;Q.signal.removeEventListener("abort",ua),le.delete(N),M.delete(N),vn.forEach(Ae=>M.delete(Ae.key));let te=Pa(ca);if(te)return yr($e,te.result,!1);if(te=Pa(fa),te)return Ce.add(te.key),yr($e,te.result,!1);let{loaderData:be,errors:Ct}=Tp(S,pn,sa,ca,void 0,vn,fa,Pe);if(S.fetchers.has(N)){let Ae=zn(se.data);S.fetchers.set(N,Ae)}th(Wr),S.navigation.state==="loading"&&Wr>J?(ne(P,"Expected pending action"),I&&I.abort(),Mn(S.navigation.location,{matches:pn,loaderData:be,errors:Ct,fetchers:new Map(S.fetchers)})):(We({errors:Ct,loaderData:Rp(S.loaderData,be,pn,Ct),fetchers:new Map(S.fetchers)}),U=!1)}async function Vx(N,k,A,O,W,X,q,H){let Z=S.fetchers.get(N);In(N,ri(H,Z?Z.data:void 0),{flushSync:q});let Y=new AbortController,Q=Gr(e.history,A,Y.signal);if(X){let se=await la(W,A,Q.signal);if(se.type==="aborted")return;if(se.type==="error"){let{error:Ke}=ia(A,se);hn(N,k,Ke,{flushSync:q});return}else if(se.matches)W=se.matches,O=hi(W,A);else{hn(N,k,ut(404,{pathname:A}),{flushSync:q});return}}M.set(N,Y);let fe=$,ye=(await Ko("loader",S,Q,[O],W,N))[O.route.id];if(Yn(ye)&&(ye=await ad(ye,Q.signal,!0)||ye),M.get(N)===Y&&M.delete(N),!Q.signal.aborted){if(Me.has(N)){In(N,zn(void 0));return}if(_r(ye))if(J>fe){In(N,zn(void 0));return}else{Ce.add(N),await yr(Q,ye,!1);return}if(St(ye)){hn(N,k,ye.error);return}ne(!Yn(ye),"Unhandled fetcher deferred data"),In(N,zn(ye.data))}}async function yr(N,k,A,O){let{submission:W,fetcherSubmission:X,replace:q}=O===void 0?{}:O;k.response.headers.has("X-Remix-Revalidate")&&(U=!0);let H=k.response.headers.get("Location");ne(H,"Expected a Location header on the redirect Response"),H=Sp(H,new URL(N.url),s);let Z=Bi(S.location,H,{_isRedirect:!0});if(n){let se=!1;if(k.response.headers.has("X-Remix-Reload-Document"))se=!0;else if(id.test(H)){const Ke=e.history.createURL(H);se=Ke.origin!==t.location.origin||zr(Ke.pathname,s)==null}if(se){q?t.location.replace(H):t.location.assign(H);return}}I=null;let Y=q===!0||k.response.headers.has("X-Remix-Replace")?Be.Replace:Be.Push,{formMethod:Q,formAction:fe,formEncType:he}=S.navigation;!W&&!X&&Q&&fe&&he&&(W=bp(S.navigation));let ye=W||X;if(Z3.has(k.response.status)&&ye&&Wt(ye.formMethod))await dn(Y,Z,{submission:Te({},ye,{formAction:H}),preventScrollReset:b,enableViewTransition:A?D:void 0});else{let se=qs(Z,W);await dn(Y,Z,{overrideNavigation:se,fetcherSubmission:X,preventScrollReset:b,enableViewTransition:A?D:void 0})}}async function Ko(N,k,A,O,W,X){let q,H={};try{q=await lC(c,N,k,A,O,W,X,i,o)}catch(Z){return O.forEach(Y=>{H[Y.route.id]={type:ve.error,error:Z}}),H}for(let[Z,Y]of Object.entries(q))if(pC(Y)){let Q=Y.result;H[Z]={type:ve.redirect,response:cC(Q,A,Z,W,s,u.v7_relativeSplatPath)}}else H[Z]=await uC(Y);return H}async function Zd(N,k,A,O,W){let X=N.matches,q=Ko("loader",N,W,A,k,null),H=Promise.all(O.map(async Q=>{if(Q.matches&&Q.match&&Q.controller){let he=(await Ko("loader",N,Gr(e.history,Q.path,Q.controller.signal),[Q.match],Q.matches,Q.key))[Q.match.route.id];return{[Q.key]:he}}else return Promise.resolve({[Q.key]:{type:ve.error,error:ut(404,{pathname:Q.path})}})})),Z=await q,Y=(await H).reduce((Q,fe)=>Object.assign(Q,fe),{});return await Promise.all([gC(k,Z,W.signal,X,N.loaderData),yC(k,Y,O)]),{loaderResults:Z,fetcherResults:Y}}function Es(){U=!0,K.push(..._s()),Le.forEach((N,k)=>{M.has(k)&&(L.add(k),On(k))})}function In(N,k,A){A===void 0&&(A={}),S.fetchers.set(N,k),We({fetchers:new Map(S.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function hn(N,k,A,O){O===void 0&&(O={});let W=fo(S.matches,k);ra(N),We({errors:{[W.route.id]:A},fetchers:new Map(S.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Jd(N){return u.v7_fetcherPersist&&(Ze.set(N,(Ze.get(N)||0)+1),Me.has(N)&&Me.delete(N)),S.fetchers.get(N)||J3}function ra(N){let k=S.fetchers.get(N);M.has(N)&&!(k&&k.state==="loading"&&le.has(N))&&On(N),Le.delete(N),le.delete(N),Ce.delete(N),Me.delete(N),L.delete(N),S.fetchers.delete(N)}function Wx(N){if(u.v7_fetcherPersist){let k=(Ze.get(N)||0)-1;k<=0?(Ze.delete(N),Me.add(N)):Ze.set(N,k)}else ra(N);We({fetchers:new Map(S.fetchers)})}function On(N){let k=M.get(N);ne(k,"Expected fetch controller: "+N),k.abort(),M.delete(N)}function qd(N){for(let k of N){let A=Jd(k),O=zn(A.data);S.fetchers.set(k,O)}}function eh(){let N=[],k=!1;for(let A of Ce){let O=S.fetchers.get(A);ne(O,"Expected fetcher: "+A),O.state==="loading"&&(Ce.delete(A),N.push(A),k=!0)}return qd(N),k}function th(N){let k=[];for(let[A,O]of le)if(O0}function Kx(N,k){let A=S.blockers.get(N)||ni;return ce.get(N)!==k&&ce.set(N,k),A}function nh(N){S.blockers.delete(N),ce.delete(N)}function oa(N,k){let A=S.blockers.get(N)||ni;ne(A.state==="unblocked"&&k.state==="blocked"||A.state==="blocked"&&k.state==="blocked"||A.state==="blocked"&&k.state==="proceeding"||A.state==="blocked"&&k.state==="unblocked"||A.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+k.state);let O=new Map(S.blockers);O.set(N,k),We({blockers:O})}function rh(N){let{currentLocation:k,nextLocation:A,historyAction:O}=N;if(ce.size===0)return;ce.size>1&&bo(!1,"A router only supports one blocker at a time");let W=Array.from(ce.entries()),[X,q]=W[W.length-1],H=S.blockers.get(X);if(!(H&&H.state==="proceeding")&&q({currentLocation:k,nextLocation:A,historyAction:O}))return X}function Ss(N){let k=ut(404,{pathname:N}),A=l||a,{matches:O,route:W}=kp(A);return _s(),{notFoundMatches:O,route:W,error:k}}function ia(N,k){return{boundaryId:fo(k.partialMatches).route.id,error:ut(400,{type:"route-discovery",pathname:N,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function _s(N){let k=[];return Pe.forEach((A,O)=>{(!N||N(O))&&(A.cancel(),k.push(O),Pe.delete(O))}),k}function Gx(N,k,A){if(C=N,y=k,g=A||null,!w&&S.navigation===Js){w=!0;let O=ih(S.location,S.matches);O!=null&&We({restoreScrollPosition:O})}return()=>{C=null,y=null,g=null}}function oh(N,k){return g&&g(N,k.map(O=>o0(O,S.loaderData)))||N.key}function Yx(N,k){if(C&&y){let A=oh(N,k);C[A]=y()}}function ih(N,k){if(C){let A=oh(N,k),O=C[A];if(typeof O=="number")return O}return null}function aa(N,k,A){if(f){if(v.has(A))return{active:!1,matches:N};if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:tl(k,A,s,!0)}}else return{active:!0,matches:tl(k,A,s,!0)||[]}}return{active:!1,matches:null}}async function la(N,k,A){let O=N;for(;;){let W=l==null,X=l||a;try{await oC(f,k,O,X,i,o,Ie,A)}catch(Z){return{type:"error",error:Z,partialMatches:O}}finally{W&&(a=[...a])}if(A.aborted)return{type:"aborted"};let q=Wn(X,k,s);if(q)return ah(k,v),{type:"success",matches:q};let H=tl(X,k,s,!0);if(!H||O.length===H.length&&O.every((Z,Y)=>Z.route.id===H[Y].route.id))return ah(k,v),{type:"success",matches:null};O=H}}function ah(N,k){if(k.size>=x){let A=k.values().next().value;k.delete(A)}k.add(N)}function Qx(N){i={},l=Ui(N,o,void 0,i)}function Xx(N,k){let A=l==null;d0(N,k,l||a,i,o),A&&(a=[...a],We({}))}return T={get basename(){return s},get future(){return u},get state(){return S},get routes(){return a},get window(){return t},initialize:At,subscribe:gr,enableScrollRestoration:Gx,navigate:na,fetch:Ux,revalidate:Cs,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Jd,deleteFetcher:Wx,dispose:Bt,getBlocker:Kx,deleteBlocker:nh,patchRoutes:Xx,_internalFetchControllers:M,_internalActiveDeferreds:Pe,_internalSetRoutes:Qx},T}function tC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function wc(e,t,n,r,o,i,a,l){let s,c;if(a){s=[];for(let u of t)if(s.push(u),u.route.id===a){c=u;break}}else s=t,c=t[t.length-1];let f=od(o||".",rd(s,i),zr(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!ld(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:Sn([n,f.pathname])),Lr(f)}function wp(e,t,n,r){if(!r||!tC(r))return{path:n};if(r.formMethod&&!mC(r.formMethod))return{path:n,error:ut(405,{method:r.formMethod})};let o=()=>({path:n,error:ut(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=h0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Wt(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,x)=>{let[v,C]=x;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(!Wt(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,c;if(r.formData)s=Cc(r.formData),c=r.formData;else if(r.body instanceof FormData)s=Cc(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=_p(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=_p(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Wt(f.formMethod))return{path:n,submission:f};let u=pr(n);return t&&u.search&&ld(u.search)&&s.append("index",""),u.search="?"+s,{path:Lr(u),submission:f}}function nC(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 Cp(e,t,n,r,o,i,a,l,s,c,f,u,d,h,x,v){let C=v?St(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),y=e.createURL(o),w=v&&St(v[1])?v[0]:void 0,E=w?nC(n,w):n,_=v?v[1].statusCode:void 0,R=a&&_&&_>=400,T=E.filter((P,b)=>{let{route:I}=P;if(I.lazy)return!0;if(I.loader==null)return!1;if(i)return typeof I.loader!="function"||I.loader.hydrate?!0:t.loaderData[I.id]===void 0&&(!t.errors||t.errors[I.id]===void 0);if(rC(t.loaderData,t.matches[b],P)||s.some(j=>j===P.route.id))return!0;let D=t.matches[b],B=P;return Ep(P,Te({currentUrl:g,currentParams:D.params,nextUrl:y,nextParams:B.params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:R?!1:l||g.pathname+g.search===y.pathname+y.search||g.search!==y.search||f0(D,B)}))}),S=[];return u.forEach((P,b)=>{if(i||!n.some(V=>V.route.id===P.routeId)||f.has(b))return;let I=Wn(h,P.path,x);if(!I){S.push({key:b,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(b),B=hi(I,P.path),j=!1;d.has(b)?j=!1:c.has(b)?(c.delete(b),j=!0):D&&D.state!=="idle"&&D.data===void 0?j=l:j=Ep(B,Te({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:R?!1:l})),j&&S.push({key:b,routeId:P.routeId,path:P.path,matches:I,match:B,controller:new AbortController})}),[T,S]}function rC(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function f0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ep(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function oC(e,t,n,r,o,i,a,l){let s=[t,...n.map(c=>c.route.id)].join("-");try{let c=a.get(s);c||(c=e({path:t,matches:n,patch:(f,u)=>{l.aborted||d0(f,u,r,o,i)}}),a.set(s,c)),c&&hC(c)&&await c}finally{a.delete(s)}}function d0(e,t,n,r,o){if(e){var i;let a=r[e];ne(a,"No route found to patch children into: routeId = "+e);let l=Ui(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...l):a.children=l}else{let a=Ui(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function iC(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";bo(!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&&!P3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Te({},t(o),{lazy:void 0}))}async function aC(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function lC(e,t,n,r,o,i,a,l,s,c){let f=i.map(h=>h.route.lazy?iC(h.route,s,l):void 0),u=i.map((h,x)=>{let v=f[x],C=o.some(y=>y.route.id===h.route.id);return Te({},h,{shouldLoad:C,resolve:async y=>(y&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(C=!0),C?sC(t,r,h,v,y,c):Promise.resolve({type:ve.data,result:void 0}))})}),d=await e({matches:u,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(f)}catch{}return d}async function sC(e,t,n,r,o,i){let a,l,s=c=>{let f,u=new Promise((x,v)=>f=v);l=()=>f(),t.signal.addEventListener("abort",l);let d=x=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...x!==void 0?[x]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(v=>d(v)):d())}}catch(x){return{type:"error",result:x}}})();return Promise.race([h,u])};try{let c=n.route[e];if(r)if(c){let f,[u]=await Promise.all([s(c).catch(d=>{f=d}),r]);if(f!==void 0)throw f;a=u}else if(await r,c=n.route[e],c)a=await s(c);else if(e==="action"){let f=new URL(t.url),u=f.pathname+f.search;throw ut(405,{method:t.method,pathname:u,routeId:n.route.id})}else return{type:ve.data,result:void 0};else if(c)a=await s(c);else{let f=new URL(t.url),u=f.pathname+f.search;throw ut(404,{pathname:u})}ne(a.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(c){return{type:ve.error,result:c}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function uC(e){let{result:t,type:n}=e;if(p0(t)){let c;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(f){return{type:ve.error,error:f}}return n===ve.error?{type:ve.error,error:new jl(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:ve.data,data:c,statusCode:t.status,headers:t.headers}}if(n===ve.error){if(Pp(t)){var r;if(t.data instanceof Error){var o;return{type:ve.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new jl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:ve.error,error:t,statusCode:ls(t)?t.status:void 0}}if(vC(t)){var i,a;return{type:ve.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(Pp(t)){var l,s;return{type:ve.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:ve.data,data:t}}function cC(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"),!id.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=wc(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Sp(e,t,n){if(id.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=zr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Gr(e,t,n,r){let o=e.createURL(h0(t)).toString(),i={signal:n};if(r&&Wt(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=Cc(r.formData):i.body=r.formData}return new Request(o,i)}function Cc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function _p(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fC(e,t,n,r,o){let i={},a=null,l,s=!1,c={},f=n&&St(n[1])?n[1].error:void 0;return e.forEach(u=>{if(!(u.route.id in t))return;let d=u.route.id,h=t[d];if(ne(!_r(h),"Cannot handle redirect results in processLoaderData"),St(h)){let x=h.error;f!==void 0&&(x=f,f=void 0),a=a||{};{let v=fo(e,d);a[v.route.id]==null&&(a[v.route.id]=x)}i[d]=void 0,s||(s=!0,l=ls(h.error)?h.error.status:500),h.headers&&(c[d]=h.headers)}else Yn(h)?(r.set(d,h.deferredData),i[d]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!s&&(l=h.statusCode),h.headers&&(c[d]=h.headers)):(i[d]=h.data,h.statusCode&&h.statusCode!==200&&!s&&(l=h.statusCode),h.headers&&(c[d]=h.headers))}),f!==void 0&&n&&(a={[n[0]]:f},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:c}}function Tp(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=fC(t,r,o,l);return i.forEach(f=>{let{key:u,match:d,controller:h}=f,x=a[u];if(ne(x,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(St(x)){let v=fo(e.matches,d==null?void 0:d.route.id);c&&c[v.route.id]||(c=Te({},c,{[v.route.id]:x.error})),e.fetchers.delete(u)}else if(_r(x))ne(!1,"Unhandled fetcher revalidation redirect");else if(Yn(x))ne(!1,"Unhandled fetcher deferred data");else{let v=zn(x.data);e.fetchers.set(u,v)}}),{loaderData:s,errors:c}}function Rp(e,t,n,r){let o=Te({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function Np(e){return e?St(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fo(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function kp(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 ut(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+a):o&&n&&r?s="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"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",s='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?s="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&&(s='Invalid request method "'+o.toUpperCase()+'"')),new jl(e||500,l,new Error(s),!0)}function Pa(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(_r(o))return{key:r,result:o}}}function h0(e){let t=typeof e=="string"?pr(e):e;return Lr(Te({},t,{hash:""}))}function dC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function hC(e){return typeof e=="object"&&e!=null&&"then"in e}function pC(e){return p0(e.result)&&X3.has(e.result.status)}function Yn(e){return e.type===ve.deferred}function St(e){return e.type===ve.error}function _r(e){return(e&&e.type)===ve.redirect}function Pp(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function vC(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 p0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function mC(e){return Q3.has(e.toLowerCase())}function Wt(e){return G3.has(e.toLowerCase())}async function gC(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(d==null?void 0:d.route.id)===l);if(!c)continue;let f=r.find(d=>d.route.id===c.route.id),u=f!=null&&!f0(f,c)&&(o&&o[c.route.id])!==void 0;Yn(s)&&u&&await ad(s,n,!1).then(d=>{d&&(t[l]=d)})}}async function yC(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Yn(l)&&(ne(a,"Expected an AbortController for revalidating fetcher deferred result"),await ad(l,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function ad(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ve.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ve.error,error:o}}return{type:ve.data,data:e.deferredData.data}}}function ld(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function hi(e,t){let n=typeof t=="string"?pr(t).search:t.search;if(e[e.length-1].route.index&&ld(n||""))return e[e.length-1];let r=s0(e);return r[r.length-1]}function bp(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 qs(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 xC(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 ri(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 wC(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 zn(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 CC(e,t){try{let n=e.sessionStorage.getItem(c0);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 EC(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(c0,JSON.stringify(n))}catch(r){bo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function N3(){return Math.random().toString(36).substr(2,8)}function yp(e,t){return{usr:e.state,key:e.key,idx:t}}function Bi(e,t,n,r){return n===void 0&&(n=null),Te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pr(t):t,{state:n,key:t&&t.key||r||N3()})}function Lr(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 pr(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 k3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Be.Pop,s=null,c=f();c==null&&(c=0,a.replaceState(Te({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=Be.Pop;let C=f(),g=C==null?null:C-c;c=C,s&&s({action:l,location:v.location,delta:g})}function d(C,g){l=Be.Push;let y=Bi(v.location,C,g);c=f()+1;let w=yp(y,c),E=v.createHref(y);try{a.pushState(w,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function h(C,g){l=Be.Replace;let y=Bi(v.location,C,g);c=f();let w=yp(y,c),E=v.createHref(y);a.replaceState(w,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function x(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof C=="string"?C:Lr(C);return y=y.replace(/ $/,"%20"),ne(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}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(gp,u),s=C,()=>{o.removeEventListener(gp,u),s=null}},createHref(C){return t(o,C)},createURL:x,encodeLocation(C){let g=x(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:h,go(C){return a.go(C)}};return v}var ve;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ve||(ve={}));const P3=new Set(["lazy","caseSensitive","path","id","index","children"]);function b3(e){return e.index===!0}function Ui(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(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`),b3(o)){let s=Te({},o,t(o),{id:l});return r[l]=s,s}else{let s=Te({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=Ui(o.children,t,a,r)),s}})}function Wn(e,t,n){return n===void 0&&(n="/"),tl(e,t,n,!1)}function tl(e,t,n,r){let o=typeof t=="string"?pr(t):t,i=zr(o.pathname||"/",n);if(i==null)return null;let a=o0(e);A3(a);let l=null;for(let s=0;l==null&&s{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 c=Sn([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 "'+c+'".')),o0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:F3(c,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 i0(i.path))o(i,a,s)}),t}function i0(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=i0(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 A3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:z3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const j3=/^:[\w-]+$/,L3=3,M3=2,I3=1,O3=10,D3=-2,xp=e=>e==="*";function F3(e,t){let n=e.split("/"),r=n.length;return n.some(xp)&&(r+=D3),t&&(r+=M3),n.filter(o=>!xp(o)).reduce((o,i)=>o+(j3.test(i)?L3:i===""?I3:O3),r)}function z3(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 $3(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:d,isOptional:h}=f;if(d==="*"){let v=l[u]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[u];return h&&!x?c[d]=void 0:c[d]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function B3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bo(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 a0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bo(!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 zr(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 U3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?pr(e):e;return{pathname:n?n.startsWith("/")?n:H3(n,t):t,search:W3(r),hash:K3(o)}}function H3(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 Zs(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 rd(e,t){let n=l0(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function od(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=pr(e):(o=Te({},e),ne(!o.pathname||!o.pathname.includes("?"),Zs("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),Zs("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),Zs("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let u=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),u-=1;o.pathname=d.join("/")}l=u>=0?t[u]:"/"}let s=U3(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const Sn=e=>e.join("/").replace(/\/\/+/g,"/"),V3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jl{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 ls(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const s0=["post","put","patch","delete"],G3=new Set(s0),Y3=["get",...s0],Q3=new Set(Y3),X3=new Set([301,302,303,307,308]),Z3=new Set([307,308]),Js={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ni={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},id=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),u0="remix-router-transitions";function eC(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 N=e.detectErrorBoundary;o=k=>({hasErrorBoundary:N(k)})}else o=q3;let i={},a=Ui(e.routes,o,void 0,i),l,s=e.basename||"/",c=e.unstable_dataStrategy||aC,f=e.unstable_patchRoutesOnNavigation,u=Te({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,h=new Set,x=1e3,v=new Set,C=null,g=null,y=null,w=e.hydrationData!=null,E=Wn(a,e.history.location,s),_=null;if(E==null&&!f){let N=ut(404,{pathname:e.history.location.pathname}),{matches:k,route:A}=kp(a);E=k,_={[A.id]:N}}E&&!e.hydrationData&&aa(E,a,e.history.location.pathname).active&&(E=null);let R;if(E)if(E.some(N=>N.route.lazy))R=!1;else if(!E.some(N=>N.route.loader))R=!0;else if(u.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,A=O=>O.route.loader?typeof O.route.loader=="function"&&O.route.loader.hydrate===!0?!1:N&&N[O.route.id]!==void 0||k&&k[O.route.id]!==void 0:!0;if(k){let O=E.findIndex(W=>k[W.route.id]!==void 0);R=E.slice(0,O+1).every(A)}else R=E.every(A)}else R=e.hydrationData!=null;else if(R=!1,E=[],u.v7_partialHydration){let N=aa(null,a,e.history.location.pathname);N.active&&N.matches&&(E=N.matches)}let T,S={historyAction:e.history.action,location:e.history.location,matches:E,initialized:R,navigation:Js,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||_,fetchers:new Map,blockers:new Map},P=Be.Pop,b=!1,I,D=!1,B=new Map,j=null,V=!1,U=!1,K=[],L=new Set,M=new Map,$=0,J=-1,le=new Map,Ce=new Set,Le=new Map,Ze=new Map,Me=new Set,Pe=new Map,ce=new Map,Ie=new Map,st;function At(){if(d=e.history.listen(N=>{let{action:k,location:A,delta:O}=N;if(st){st(),st=void 0;return}bo(ce.size===0||O!=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 W=rh({currentLocation:S.location,nextLocation:A,historyAction:k});if(W&&O!=null){let X=new Promise(q=>{st=q});e.history.go(O*-1),oa(W,{state:"blocked",location:A,proceed(){oa(W,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),X.then(()=>e.history.go(O))},reset(){let q=new Map(S.blockers);q.set(W,ni),We({blockers:q})}});return}return dn(k,A)}),n){CC(t,B);let N=()=>EC(t,B);t.addEventListener("pagehide",N),j=()=>t.removeEventListener("pagehide",N)}return S.initialized||dn(Be.Pop,S.location,{initialHydration:!0}),T}function Bt(){d&&d(),j&&j(),h.clear(),I&&I.abort(),S.fetchers.forEach((N,k)=>ra(k)),S.blockers.forEach((N,k)=>nh(k))}function gr(N){return h.add(N),()=>h.delete(N)}function We(N,k){k===void 0&&(k={}),S=Te({},S,N);let A=[],O=[];u.v7_fetcherPersist&&S.fetchers.forEach((W,X)=>{W.state==="idle"&&(Me.has(X)?O.push(X):A.push(X))}),[...h].forEach(W=>W(S,{deletedFetchers:O,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),u.v7_fetcherPersist&&(A.forEach(W=>S.fetchers.delete(W)),O.forEach(W=>ra(W)))}function Mn(N,k,A){var O,W;let{flushSync:X}=A===void 0?{}:A,q=S.actionData!=null&&S.navigation.formMethod!=null&&Wt(S.navigation.formMethod)&&S.navigation.state==="loading"&&((O=N.state)==null?void 0:O._isRedirect)!==!0,H;k.actionData?Object.keys(k.actionData).length>0?H=k.actionData:H=null:q?H=S.actionData:H=null;let Z=k.loaderData?Rp(S.loaderData,k.loaderData,k.matches||[],k.errors):S.loaderData,Y=S.blockers;Y.size>0&&(Y=new Map(Y),Y.forEach((he,ye)=>Y.set(ye,ni)));let Q=b===!0||S.navigation.formMethod!=null&&Wt(S.navigation.formMethod)&&((W=N.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),V||P===Be.Pop||(P===Be.Push?e.history.push(N,N.state):P===Be.Replace&&e.history.replace(N,N.state));let fe;if(P===Be.Pop){let he=B.get(S.location.pathname);he&&he.has(N.pathname)?fe={currentLocation:S.location,nextLocation:N}:B.has(N.pathname)&&(fe={currentLocation:N,nextLocation:S.location})}else if(D){let he=B.get(S.location.pathname);he?he.add(N.pathname):(he=new Set([N.pathname]),B.set(S.location.pathname,he)),fe={currentLocation:S.location,nextLocation:N}}We(Te({},k,{actionData:H,loaderData:Z,historyAction:P,location:N,initialized:!0,navigation:Js,revalidation:"idle",restoreScrollPosition:ih(N,k.matches||S.matches),preventScrollReset:Q,blockers:Y}),{viewTransitionOpts:fe,flushSync:X===!0}),P=Be.Pop,b=!1,D=!1,V=!1,U=!1,K=[]}async function na(N,k){if(typeof N=="number"){e.history.go(N);return}let A=wc(S.location,S.matches,s,u.v7_prependBasename,N,u.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:O,submission:W,error:X}=wp(u.v7_normalizeFormMethod,!1,A,k),q=S.location,H=Bi(S.location,O,k&&k.state);H=Te({},H,e.history.encodeLocation(H));let Z=k&&k.replace!=null?k.replace:void 0,Y=Be.Push;Z===!0?Y=Be.Replace:Z===!1||W!=null&&Wt(W.formMethod)&&W.formAction===S.location.pathname+S.location.search&&(Y=Be.Replace);let Q=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,fe=(k&&k.unstable_flushSync)===!0,he=rh({currentLocation:q,nextLocation:H,historyAction:Y});if(he){oa(he,{state:"blocked",location:H,proceed(){oa(he,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),na(N,k)},reset(){let ye=new Map(S.blockers);ye.set(he,ni),We({blockers:ye})}});return}return await dn(Y,H,{submission:W,pendingError:X,preventScrollReset:Q,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:fe})}function Cs(){if(Es(),We({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){dn(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}dn(P||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:D===!0})}}async function dn(N,k,A){I&&I.abort(),I=null,P=N,V=(A&&A.startUninterruptedRevalidation)===!0,Gx(S.location,S.matches),b=(A&&A.preventScrollReset)===!0,D=(A&&A.enableViewTransition)===!0;let O=l||a,W=A&&A.overrideNavigation,X=Wn(O,k,s),q=(A&&A.flushSync)===!0,H=aa(X,O,k.pathname);if(H.active&&H.matches&&(X=H.matches),!X){let{error:se,notFoundMatches:Ke,route:$e}=Ss(k.pathname);Mn(k,{matches:Ke,loaderData:{},errors:{[$e.id]:se}},{flushSync:q});return}if(S.initialized&&!U&&dC(S.location,k)&&!(A&&A.submission&&Wt(A.submission.formMethod))){Mn(k,{matches:X},{flushSync:q});return}I=new AbortController;let Z=Gr(e.history,k,I.signal,A&&A.submission),Y;if(A&&A.pendingError)Y=[fo(X).route.id,{type:ve.error,error:A.pendingError}];else if(A&&A.submission&&Wt(A.submission.formMethod)){let se=await Vr(Z,k,A.submission,X,H.active,{replace:A.replace,flushSync:q});if(se.shortCircuited)return;if(se.pendingActionResult){let[Ke,$e]=se.pendingActionResult;if(St($e)&&ls($e.error)&&$e.error.status===404){I=null,Mn(k,{matches:se.matches,loaderData:{},errors:{[Ke]:$e.error}});return}}X=se.matches||X,Y=se.pendingActionResult,W=qs(k,A.submission),q=!1,H.active=!1,Z=Gr(e.history,Z.url,Z.signal)}let{shortCircuited:Q,matches:fe,loaderData:he,errors:ye}=await zx(Z,k,X,H.active,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,q,Y);Q||(I=null,Mn(k,Te({matches:fe||X},Np(Y),{loaderData:he,errors:ye})))}async function Vr(N,k,A,O,W,X){X===void 0&&(X={}),Es();let q=xC(k,A);if(We({navigation:q},{flushSync:X.flushSync===!0}),W){let Y=await la(O,k.pathname,N.signal);if(Y.type==="aborted")return{shortCircuited:!0};if(Y.type==="error"){let{boundaryId:Q,error:fe}=ia(k.pathname,Y);return{matches:Y.partialMatches,pendingActionResult:[Q,{type:ve.error,error:fe}]}}else if(Y.matches)O=Y.matches;else{let{notFoundMatches:Q,error:fe,route:he}=Ss(k.pathname);return{matches:Q,pendingActionResult:[he.id,{type:ve.error,error:fe}]}}}let H,Z=hi(O,k);if(!Z.route.action&&!Z.route.lazy)H={type:ve.error,error:ut(405,{method:N.method,pathname:k.pathname,routeId:Z.route.id})};else if(H=(await Ko("action",S,N,[Z],O,null))[Z.route.id],N.signal.aborted)return{shortCircuited:!0};if(_r(H)){let Y;return X&&X.replace!=null?Y=X.replace:Y=Sp(H.response.headers.get("Location"),new URL(N.url),s)===S.location.pathname+S.location.search,await yr(N,H,!0,{submission:A,replace:Y}),{shortCircuited:!0}}if(Yn(H))throw ut(400,{type:"defer-action"});if(St(H)){let Y=fo(O,Z.route.id);return(X&&X.replace)!==!0&&(P=Be.Push),{matches:O,pendingActionResult:[Y.route.id,H]}}return{matches:O,pendingActionResult:[Z.route.id,H]}}async function zx(N,k,A,O,W,X,q,H,Z,Y,Q){let fe=W||qs(k,X),he=X||q||bp(fe),ye=!V&&(!u.v7_partialHydration||!Z);if(O){if(ye){let be=Xd(Q);We(Te({navigation:fe},be!==void 0?{actionData:be}:{}),{flushSync:Y})}let te=await la(A,k.pathname,N.signal);if(te.type==="aborted")return{shortCircuited:!0};if(te.type==="error"){let{boundaryId:be,error:Ct}=ia(k.pathname,te);return{matches:te.partialMatches,loaderData:{},errors:{[be]:Ct}}}else if(te.matches)A=te.matches;else{let{error:be,notFoundMatches:Ct,route:Ae}=Ss(k.pathname);return{matches:Ct,loaderData:{},errors:{[Ae.id]:be}}}}let se=l||a,[Ke,$e]=Cp(e.history,S,A,he,k,u.v7_partialHydration&&Z===!0,u.v7_skipActionErrorRevalidation,U,K,L,Me,Le,Ce,se,s,Q);if(_s(te=>!(A&&A.some(be=>be.route.id===te))||Ke&&Ke.some(be=>be.route.id===te)),J=++$,Ke.length===0&&$e.length===0){let te=eh();return Mn(k,Te({matches:A,loaderData:{},errors:Q&&St(Q[1])?{[Q[0]]:Q[1].error}:null},Np(Q),te?{fetchers:new Map(S.fetchers)}:{}),{flushSync:Y}),{shortCircuited:!0}}if(ye){let te={};if(!O){te.navigation=fe;let be=Xd(Q);be!==void 0&&(te.actionData=be)}$e.length>0&&(te.fetchers=$x($e)),We(te,{flushSync:Y})}$e.forEach(te=>{M.has(te.key)&&On(te.key),te.controller&&M.set(te.key,te.controller)});let Go=()=>$e.forEach(te=>On(te.key));I&&I.signal.addEventListener("abort",Go);let{loaderResults:pn,fetcherResults:Wr}=await Zd(S,A,Ke,$e,N);if(N.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Go),$e.forEach(te=>M.delete(te.key));let Dn=Pa(pn);if(Dn)return await yr(N,Dn.result,!0,{replace:H}),{shortCircuited:!0};if(Dn=Pa(Wr),Dn)return Ce.add(Dn.key),await yr(N,Dn.result,!0,{replace:H}),{shortCircuited:!0};let{loaderData:sa,errors:vn}=Tp(S,A,Ke,pn,Q,$e,Wr,Pe);Pe.forEach((te,be)=>{te.subscribe(Ct=>{(Ct||te.done)&&Pe.delete(be)})}),u.v7_partialHydration&&Z&&S.errors&&Object.entries(S.errors).filter(te=>{let[be]=te;return!Ke.some(Ct=>Ct.route.id===be)}).forEach(te=>{let[be,Ct]=te;vn=Object.assign(vn||{},{[be]:Ct})});let ua=eh(),ca=th(J),fa=ua||ca||$e.length>0;return Te({matches:A,loaderData:sa,errors:vn},fa?{fetchers:new Map(S.fetchers)}:{})}function Xd(N){if(N&&!St(N[1]))return{[N[0]]:N[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function $x(N){return N.forEach(k=>{let A=S.fetchers.get(k.key),O=ri(void 0,A?A.data:void 0);S.fetchers.set(k.key,O)}),new Map(S.fetchers)}function Bx(N,k,A,O){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.");M.has(N)&&On(N);let W=(O&&O.unstable_flushSync)===!0,X=l||a,q=wc(S.location,S.matches,s,u.v7_prependBasename,A,u.v7_relativeSplatPath,k,O==null?void 0:O.relative),H=Wn(X,q,s),Z=aa(H,X,q);if(Z.active&&Z.matches&&(H=Z.matches),!H){hn(N,k,ut(404,{pathname:q}),{flushSync:W});return}let{path:Y,submission:Q,error:fe}=wp(u.v7_normalizeFormMethod,!0,q,O);if(fe){hn(N,k,fe,{flushSync:W});return}let he=hi(H,Y);if(b=(O&&O.preventScrollReset)===!0,Q&&Wt(Q.formMethod)){Ux(N,k,Y,he,H,Z.active,W,Q);return}Le.set(N,{routeId:k,path:Y}),Hx(N,k,Y,he,H,Z.active,W,Q)}async function Ux(N,k,A,O,W,X,q,H){Es(),Le.delete(N);function Z(Ae){if(!Ae.route.action&&!Ae.route.lazy){let mn=ut(405,{method:H.formMethod,pathname:A,routeId:k});return hn(N,k,mn,{flushSync:q}),!0}return!1}if(!X&&Z(O))return;let Y=S.fetchers.get(N);In(N,wC(H,Y),{flushSync:q});let Q=new AbortController,fe=Gr(e.history,A,Q.signal,H);if(X){let Ae=await la(W,A,fe.signal);if(Ae.type==="aborted")return;if(Ae.type==="error"){let{error:mn}=ia(A,Ae);hn(N,k,mn,{flushSync:q});return}else if(Ae.matches){if(W=Ae.matches,O=hi(W,A),Z(O))return}else{hn(N,k,ut(404,{pathname:A}),{flushSync:q});return}}M.set(N,Q);let he=$,se=(await Ko("action",S,fe,[O],W,N))[O.route.id];if(fe.signal.aborted){M.get(N)===Q&&M.delete(N);return}if(u.v7_fetcherPersist&&Me.has(N)){if(_r(se)||St(se)){In(N,zn(void 0));return}}else{if(_r(se))if(M.delete(N),J>he){In(N,zn(void 0));return}else return Ce.add(N),In(N,ri(H)),yr(fe,se,!1,{fetcherSubmission:H});if(St(se)){hn(N,k,se.error);return}}if(Yn(se))throw ut(400,{type:"defer-action"});let Ke=S.navigation.location||S.location,$e=Gr(e.history,Ke,Q.signal),Go=l||a,pn=S.navigation.state!=="idle"?Wn(Go,S.navigation.location,s):S.matches;ne(pn,"Didn't find any matches after fetcher action");let Wr=++$;le.set(N,Wr);let Dn=ri(H,se.data);S.fetchers.set(N,Dn);let[sa,vn]=Cp(e.history,S,pn,H,Ke,!1,u.v7_skipActionErrorRevalidation,U,K,L,Me,Le,Ce,Go,s,[O.route.id,se]);vn.filter(Ae=>Ae.key!==N).forEach(Ae=>{let mn=Ae.key,lh=S.fetchers.get(mn),Xx=ri(void 0,lh?lh.data:void 0);S.fetchers.set(mn,Xx),M.has(mn)&&On(mn),Ae.controller&&M.set(mn,Ae.controller)}),We({fetchers:new Map(S.fetchers)});let ua=()=>vn.forEach(Ae=>On(Ae.key));Q.signal.addEventListener("abort",ua);let{loaderResults:ca,fetcherResults:fa}=await Zd(S,pn,sa,vn,$e);if(Q.signal.aborted)return;Q.signal.removeEventListener("abort",ua),le.delete(N),M.delete(N),vn.forEach(Ae=>M.delete(Ae.key));let te=Pa(ca);if(te)return yr($e,te.result,!1);if(te=Pa(fa),te)return Ce.add(te.key),yr($e,te.result,!1);let{loaderData:be,errors:Ct}=Tp(S,pn,sa,ca,void 0,vn,fa,Pe);if(S.fetchers.has(N)){let Ae=zn(se.data);S.fetchers.set(N,Ae)}th(Wr),S.navigation.state==="loading"&&Wr>J?(ne(P,"Expected pending action"),I&&I.abort(),Mn(S.navigation.location,{matches:pn,loaderData:be,errors:Ct,fetchers:new Map(S.fetchers)})):(We({errors:Ct,loaderData:Rp(S.loaderData,be,pn,Ct),fetchers:new Map(S.fetchers)}),U=!1)}async function Hx(N,k,A,O,W,X,q,H){let Z=S.fetchers.get(N);In(N,ri(H,Z?Z.data:void 0),{flushSync:q});let Y=new AbortController,Q=Gr(e.history,A,Y.signal);if(X){let se=await la(W,A,Q.signal);if(se.type==="aborted")return;if(se.type==="error"){let{error:Ke}=ia(A,se);hn(N,k,Ke,{flushSync:q});return}else if(se.matches)W=se.matches,O=hi(W,A);else{hn(N,k,ut(404,{pathname:A}),{flushSync:q});return}}M.set(N,Y);let fe=$,ye=(await Ko("loader",S,Q,[O],W,N))[O.route.id];if(Yn(ye)&&(ye=await ad(ye,Q.signal,!0)||ye),M.get(N)===Y&&M.delete(N),!Q.signal.aborted){if(Me.has(N)){In(N,zn(void 0));return}if(_r(ye))if(J>fe){In(N,zn(void 0));return}else{Ce.add(N),await yr(Q,ye,!1);return}if(St(ye)){hn(N,k,ye.error);return}ne(!Yn(ye),"Unhandled fetcher deferred data"),In(N,zn(ye.data))}}async function yr(N,k,A,O){let{submission:W,fetcherSubmission:X,replace:q}=O===void 0?{}:O;k.response.headers.has("X-Remix-Revalidate")&&(U=!0);let H=k.response.headers.get("Location");ne(H,"Expected a Location header on the redirect Response"),H=Sp(H,new URL(N.url),s);let Z=Bi(S.location,H,{_isRedirect:!0});if(n){let se=!1;if(k.response.headers.has("X-Remix-Reload-Document"))se=!0;else if(id.test(H)){const Ke=e.history.createURL(H);se=Ke.origin!==t.location.origin||zr(Ke.pathname,s)==null}if(se){q?t.location.replace(H):t.location.assign(H);return}}I=null;let Y=q===!0||k.response.headers.has("X-Remix-Replace")?Be.Replace:Be.Push,{formMethod:Q,formAction:fe,formEncType:he}=S.navigation;!W&&!X&&Q&&fe&&he&&(W=bp(S.navigation));let ye=W||X;if(Z3.has(k.response.status)&&ye&&Wt(ye.formMethod))await dn(Y,Z,{submission:Te({},ye,{formAction:H}),preventScrollReset:b,enableViewTransition:A?D:void 0});else{let se=qs(Z,W);await dn(Y,Z,{overrideNavigation:se,fetcherSubmission:X,preventScrollReset:b,enableViewTransition:A?D:void 0})}}async function Ko(N,k,A,O,W,X){let q,H={};try{q=await lC(c,N,k,A,O,W,X,i,o)}catch(Z){return O.forEach(Y=>{H[Y.route.id]={type:ve.error,error:Z}}),H}for(let[Z,Y]of Object.entries(q))if(pC(Y)){let Q=Y.result;H[Z]={type:ve.redirect,response:cC(Q,A,Z,W,s,u.v7_relativeSplatPath)}}else H[Z]=await uC(Y);return H}async function Zd(N,k,A,O,W){let X=N.matches,q=Ko("loader",N,W,A,k,null),H=Promise.all(O.map(async Q=>{if(Q.matches&&Q.match&&Q.controller){let he=(await Ko("loader",N,Gr(e.history,Q.path,Q.controller.signal),[Q.match],Q.matches,Q.key))[Q.match.route.id];return{[Q.key]:he}}else return Promise.resolve({[Q.key]:{type:ve.error,error:ut(404,{pathname:Q.path})}})})),Z=await q,Y=(await H).reduce((Q,fe)=>Object.assign(Q,fe),{});return await Promise.all([gC(k,Z,W.signal,X,N.loaderData),yC(k,Y,O)]),{loaderResults:Z,fetcherResults:Y}}function Es(){U=!0,K.push(..._s()),Le.forEach((N,k)=>{M.has(k)&&(L.add(k),On(k))})}function In(N,k,A){A===void 0&&(A={}),S.fetchers.set(N,k),We({fetchers:new Map(S.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function hn(N,k,A,O){O===void 0&&(O={});let W=fo(S.matches,k);ra(N),We({errors:{[W.route.id]:A},fetchers:new Map(S.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Jd(N){return u.v7_fetcherPersist&&(Ze.set(N,(Ze.get(N)||0)+1),Me.has(N)&&Me.delete(N)),S.fetchers.get(N)||J3}function ra(N){let k=S.fetchers.get(N);M.has(N)&&!(k&&k.state==="loading"&&le.has(N))&&On(N),Le.delete(N),le.delete(N),Ce.delete(N),Me.delete(N),L.delete(N),S.fetchers.delete(N)}function Vx(N){if(u.v7_fetcherPersist){let k=(Ze.get(N)||0)-1;k<=0?(Ze.delete(N),Me.add(N)):Ze.set(N,k)}else ra(N);We({fetchers:new Map(S.fetchers)})}function On(N){let k=M.get(N);ne(k,"Expected fetch controller: "+N),k.abort(),M.delete(N)}function qd(N){for(let k of N){let A=Jd(k),O=zn(A.data);S.fetchers.set(k,O)}}function eh(){let N=[],k=!1;for(let A of Ce){let O=S.fetchers.get(A);ne(O,"Expected fetcher: "+A),O.state==="loading"&&(Ce.delete(A),N.push(A),k=!0)}return qd(N),k}function th(N){let k=[];for(let[A,O]of le)if(O0}function Wx(N,k){let A=S.blockers.get(N)||ni;return ce.get(N)!==k&&ce.set(N,k),A}function nh(N){S.blockers.delete(N),ce.delete(N)}function oa(N,k){let A=S.blockers.get(N)||ni;ne(A.state==="unblocked"&&k.state==="blocked"||A.state==="blocked"&&k.state==="blocked"||A.state==="blocked"&&k.state==="proceeding"||A.state==="blocked"&&k.state==="unblocked"||A.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+k.state);let O=new Map(S.blockers);O.set(N,k),We({blockers:O})}function rh(N){let{currentLocation:k,nextLocation:A,historyAction:O}=N;if(ce.size===0)return;ce.size>1&&bo(!1,"A router only supports one blocker at a time");let W=Array.from(ce.entries()),[X,q]=W[W.length-1],H=S.blockers.get(X);if(!(H&&H.state==="proceeding")&&q({currentLocation:k,nextLocation:A,historyAction:O}))return X}function Ss(N){let k=ut(404,{pathname:N}),A=l||a,{matches:O,route:W}=kp(A);return _s(),{notFoundMatches:O,route:W,error:k}}function ia(N,k){return{boundaryId:fo(k.partialMatches).route.id,error:ut(400,{type:"route-discovery",pathname:N,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function _s(N){let k=[];return Pe.forEach((A,O)=>{(!N||N(O))&&(A.cancel(),k.push(O),Pe.delete(O))}),k}function Kx(N,k,A){if(C=N,y=k,g=A||null,!w&&S.navigation===Js){w=!0;let O=ih(S.location,S.matches);O!=null&&We({restoreScrollPosition:O})}return()=>{C=null,y=null,g=null}}function oh(N,k){return g&&g(N,k.map(O=>r0(O,S.loaderData)))||N.key}function Gx(N,k){if(C&&y){let A=oh(N,k);C[A]=y()}}function ih(N,k){if(C){let A=oh(N,k),O=C[A];if(typeof O=="number")return O}return null}function aa(N,k,A){if(f){if(v.has(A))return{active:!1,matches:N};if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:tl(k,A,s,!0)}}else return{active:!0,matches:tl(k,A,s,!0)||[]}}return{active:!1,matches:null}}async function la(N,k,A){let O=N;for(;;){let W=l==null,X=l||a;try{await oC(f,k,O,X,i,o,Ie,A)}catch(Z){return{type:"error",error:Z,partialMatches:O}}finally{W&&(a=[...a])}if(A.aborted)return{type:"aborted"};let q=Wn(X,k,s);if(q)return ah(k,v),{type:"success",matches:q};let H=tl(X,k,s,!0);if(!H||O.length===H.length&&O.every((Z,Y)=>Z.route.id===H[Y].route.id))return ah(k,v),{type:"success",matches:null};O=H}}function ah(N,k){if(k.size>=x){let A=k.values().next().value;k.delete(A)}k.add(N)}function Yx(N){i={},l=Ui(N,o,void 0,i)}function Qx(N,k){let A=l==null;f0(N,k,l||a,i,o),A&&(a=[...a],We({}))}return T={get basename(){return s},get future(){return u},get state(){return S},get routes(){return a},get window(){return t},initialize:At,subscribe:gr,enableScrollRestoration:Kx,navigate:na,fetch:Bx,revalidate:Cs,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Jd,deleteFetcher:Vx,dispose:Bt,getBlocker:Wx,deleteBlocker:nh,patchRoutes:Qx,_internalFetchControllers:M,_internalActiveDeferreds:Pe,_internalSetRoutes:Yx},T}function tC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function wc(e,t,n,r,o,i,a,l){let s,c;if(a){s=[];for(let u of t)if(s.push(u),u.route.id===a){c=u;break}}else s=t,c=t[t.length-1];let f=od(o||".",rd(s,i),zr(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!ld(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:Sn([n,f.pathname])),Lr(f)}function wp(e,t,n,r){if(!r||!tC(r))return{path:n};if(r.formMethod&&!mC(r.formMethod))return{path:n,error:ut(405,{method:r.formMethod})};let o=()=>({path:n,error:ut(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(!Wt(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,x)=>{let[v,C]=x;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(!Wt(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,c;if(r.formData)s=Cc(r.formData),c=r.formData;else if(r.body instanceof FormData)s=Cc(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=_p(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=_p(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Wt(f.formMethod))return{path:n,submission:f};let u=pr(n);return t&&u.search&&ld(u.search)&&s.append("index",""),u.search="?"+s,{path:Lr(u),submission:f}}function nC(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 Cp(e,t,n,r,o,i,a,l,s,c,f,u,d,h,x,v){let C=v?St(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),y=e.createURL(o),w=v&&St(v[1])?v[0]:void 0,E=w?nC(n,w):n,_=v?v[1].statusCode:void 0,R=a&&_&&_>=400,T=E.filter((P,b)=>{let{route:I}=P;if(I.lazy)return!0;if(I.loader==null)return!1;if(i)return typeof I.loader!="function"||I.loader.hydrate?!0:t.loaderData[I.id]===void 0&&(!t.errors||t.errors[I.id]===void 0);if(rC(t.loaderData,t.matches[b],P)||s.some(j=>j===P.route.id))return!0;let D=t.matches[b],B=P;return Ep(P,Te({currentUrl:g,currentParams:D.params,nextUrl:y,nextParams:B.params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:R?!1:l||g.pathname+g.search===y.pathname+y.search||g.search!==y.search||c0(D,B)}))}),S=[];return u.forEach((P,b)=>{if(i||!n.some(V=>V.route.id===P.routeId)||f.has(b))return;let I=Wn(h,P.path,x);if(!I){S.push({key:b,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(b),B=hi(I,P.path),j=!1;d.has(b)?j=!1:c.has(b)?(c.delete(b),j=!0):D&&D.state!=="idle"&&D.data===void 0?j=l:j=Ep(B,Te({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:R?!1:l})),j&&S.push({key:b,routeId:P.routeId,path:P.path,matches:I,match:B,controller:new AbortController})}),[T,S]}function rC(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function c0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ep(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function oC(e,t,n,r,o,i,a,l){let s=[t,...n.map(c=>c.route.id)].join("-");try{let c=a.get(s);c||(c=e({path:t,matches:n,patch:(f,u)=>{l.aborted||f0(f,u,r,o,i)}}),a.set(s,c)),c&&hC(c)&&await c}finally{a.delete(s)}}function f0(e,t,n,r,o){if(e){var i;let a=r[e];ne(a,"No route found to patch children into: routeId = "+e);let l=Ui(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...l):a.children=l}else{let a=Ui(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function iC(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";bo(!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&&!P3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Te({},t(o),{lazy:void 0}))}async function aC(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function lC(e,t,n,r,o,i,a,l,s,c){let f=i.map(h=>h.route.lazy?iC(h.route,s,l):void 0),u=i.map((h,x)=>{let v=f[x],C=o.some(y=>y.route.id===h.route.id);return Te({},h,{shouldLoad:C,resolve:async y=>(y&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(C=!0),C?sC(t,r,h,v,y,c):Promise.resolve({type:ve.data,result:void 0}))})}),d=await e({matches:u,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(f)}catch{}return d}async function sC(e,t,n,r,o,i){let a,l,s=c=>{let f,u=new Promise((x,v)=>f=v);l=()=>f(),t.signal.addEventListener("abort",l);let d=x=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...x!==void 0?[x]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(v=>d(v)):d())}}catch(x){return{type:"error",result:x}}})();return Promise.race([h,u])};try{let c=n.route[e];if(r)if(c){let f,[u]=await Promise.all([s(c).catch(d=>{f=d}),r]);if(f!==void 0)throw f;a=u}else if(await r,c=n.route[e],c)a=await s(c);else if(e==="action"){let f=new URL(t.url),u=f.pathname+f.search;throw ut(405,{method:t.method,pathname:u,routeId:n.route.id})}else return{type:ve.data,result:void 0};else if(c)a=await s(c);else{let f=new URL(t.url),u=f.pathname+f.search;throw ut(404,{pathname:u})}ne(a.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(c){return{type:ve.error,result:c}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function uC(e){let{result:t,type:n}=e;if(h0(t)){let c;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(f){return{type:ve.error,error:f}}return n===ve.error?{type:ve.error,error:new jl(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:ve.data,data:c,statusCode:t.status,headers:t.headers}}if(n===ve.error){if(Pp(t)){var r;if(t.data instanceof Error){var o;return{type:ve.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new jl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:ve.error,error:t,statusCode:ls(t)?t.status:void 0}}if(vC(t)){var i,a;return{type:ve.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(Pp(t)){var l,s;return{type:ve.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:ve.data,data:t}}function cC(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"),!id.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=wc(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Sp(e,t,n){if(id.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=zr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Gr(e,t,n,r){let o=e.createURL(d0(t)).toString(),i={signal:n};if(r&&Wt(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=Cc(r.formData):i.body=r.formData}return new Request(o,i)}function Cc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function _p(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fC(e,t,n,r,o){let i={},a=null,l,s=!1,c={},f=n&&St(n[1])?n[1].error:void 0;return e.forEach(u=>{if(!(u.route.id in t))return;let d=u.route.id,h=t[d];if(ne(!_r(h),"Cannot handle redirect results in processLoaderData"),St(h)){let x=h.error;f!==void 0&&(x=f,f=void 0),a=a||{};{let v=fo(e,d);a[v.route.id]==null&&(a[v.route.id]=x)}i[d]=void 0,s||(s=!0,l=ls(h.error)?h.error.status:500),h.headers&&(c[d]=h.headers)}else Yn(h)?(r.set(d,h.deferredData),i[d]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!s&&(l=h.statusCode),h.headers&&(c[d]=h.headers)):(i[d]=h.data,h.statusCode&&h.statusCode!==200&&!s&&(l=h.statusCode),h.headers&&(c[d]=h.headers))}),f!==void 0&&n&&(a={[n[0]]:f},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:c}}function Tp(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=fC(t,r,o,l);return i.forEach(f=>{let{key:u,match:d,controller:h}=f,x=a[u];if(ne(x,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(St(x)){let v=fo(e.matches,d==null?void 0:d.route.id);c&&c[v.route.id]||(c=Te({},c,{[v.route.id]:x.error})),e.fetchers.delete(u)}else if(_r(x))ne(!1,"Unhandled fetcher revalidation redirect");else if(Yn(x))ne(!1,"Unhandled fetcher deferred data");else{let v=zn(x.data);e.fetchers.set(u,v)}}),{loaderData:s,errors:c}}function Rp(e,t,n,r){let o=Te({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function Np(e){return e?St(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fo(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function kp(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 ut(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&n&&r?s="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"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",s='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?s="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&&(s='Invalid request method "'+o.toUpperCase()+'"')),new jl(e||500,l,new Error(s),!0)}function Pa(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(_r(o))return{key:r,result:o}}}function d0(e){let t=typeof e=="string"?pr(e):e;return Lr(Te({},t,{hash:""}))}function dC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function hC(e){return typeof e=="object"&&e!=null&&"then"in e}function pC(e){return h0(e.result)&&X3.has(e.result.status)}function Yn(e){return e.type===ve.deferred}function St(e){return e.type===ve.error}function _r(e){return(e&&e.type)===ve.redirect}function Pp(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function vC(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 h0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function mC(e){return Q3.has(e.toLowerCase())}function Wt(e){return G3.has(e.toLowerCase())}async function gC(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(d==null?void 0:d.route.id)===l);if(!c)continue;let f=r.find(d=>d.route.id===c.route.id),u=f!=null&&!c0(f,c)&&(o&&o[c.route.id])!==void 0;Yn(s)&&u&&await ad(s,n,!1).then(d=>{d&&(t[l]=d)})}}async function yC(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Yn(l)&&(ne(a,"Expected an AbortController for revalidating fetcher deferred result"),await ad(l,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function ad(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ve.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ve.error,error:o}}return{type:ve.data,data:e.deferredData.data}}}function ld(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function hi(e,t){let n=typeof t=="string"?pr(t).search:t.search;if(e[e.length-1].route.index&&ld(n||""))return e[e.length-1];let r=l0(e);return r[r.length-1]}function bp(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 qs(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 xC(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 ri(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 wC(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 zn(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 CC(e,t){try{let n=e.sessionStorage.getItem(u0);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 EC(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(u0,JSON.stringify(n))}catch(r){bo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;tHi(e,l0(t)),[t,e])}function m0(e){m.useContext(vr).static||m.useLayoutEffect(e)}function cd(){let{isDataRoute:e}=m.useContext($r);return e?DC():TC()}function TC(){Bo()||ne(!1);let e=m.useContext(Ji),{basename:t,future:n,navigator:r}=m.useContext(vr),{matches:o}=m.useContext($r),{pathname:i}=ze(),a=JSON.stringify(rd(o,n.v7_relativeSplatPath)),l=m.useRef(!1);return m0(()=>{l.current=!0}),m.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=od(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Sn([t,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[t,r,a,i,e])}function g0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(vr),{matches:o}=m.useContext($r),{pathname:i}=ze(),a=JSON.stringify(rd(o,r.v7_relativeSplatPath));return m.useMemo(()=>od(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function RC(e,t,n,r){Bo()||ne(!1);let{navigator:o}=m.useContext(vr),{matches:i}=m.useContext($r),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=ze(),f;f=c;let u=f.pathname||"/",d=u;if(s!=="/"){let v=s.replace(/^\//,"").split("/");d="/"+u.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=Wn(e,{pathname:d});return AC(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Sn([s,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Sn([s,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function NC(){let e=OC(),t=ls(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const kC=m.createElement(NC,null);class PC extends m.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?m.createElement($r.Provider,{value:this.props.routeContext},m.createElement(v0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bC(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Ji);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement($r.Provider,{value:t},r)}function AC(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(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id])!==void 0);f>=0||ne(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,d)=>{let h,x=!1,v=null,C=null;n&&(h=l&&u.route.id?l[u.route.id]:void 0,v=u.route.errorElement||kC,s&&(c<0&&d===0?(x=!0,C=null):c===d&&(x=!0,C=u.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,d+1)),y=()=>{let w;return h?w=v:x?w=C:u.route.Component?w=m.createElement(u.route.Component,null):u.route.element?w=u.route.element:w=f,m.createElement(bC,{match:u,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:w})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?m.createElement(PC,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var y0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(y0||{}),Ao=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}(Ao||{});function jC(e){let t=m.useContext(Ji);return t||ne(!1),t}function fd(e){let t=m.useContext(sd);return t||ne(!1),t}function LC(e){let t=m.useContext($r);return t||ne(!1),t}function x0(e){let t=LC(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function MC(){return fd(Ao.UseNavigation).navigation}function IC(){let{matches:e,loaderData:t}=fd(Ao.UseMatches);return m.useMemo(()=>e.map(n=>o0(n,t)),[e,t])}function OC(){var e;let t=m.useContext(v0),n=fd(Ao.UseRouteError),r=x0(Ao.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function DC(){let{router:e}=jC(y0.UseNavigateStable),t=x0(Ao.UseNavigateStable),n=m.useRef(!1);return m0(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ll({fromRouteId:t},i)))},[e,t])}function FC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Be.Pop,navigator:i,static:a=!1,future:l}=e;Bo()&&ne(!1);let s=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:s,navigator:i,static:a,future:Ll({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=pr(r));let{pathname:f="/",search:u="",hash:d="",state:h=null,key:x="default"}=r,v=m.useMemo(()=>{let C=zr(f,s);return C==null?null:{location:{pathname:C,search:u,hash:d,state:h,key:x},navigationType:o}},[s,f,u,d,h,x,o]);return v==null?null:m.createElement(vr.Provider,{value:c},m.createElement(ud.Provider,{children:n,value:v}))}new Promise(()=>{});function zC(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;tHi(e,a0(t)),[t,e])}function v0(e){m.useContext(vr).static||m.useLayoutEffect(e)}function cd(){let{isDataRoute:e}=m.useContext($r);return e?DC():TC()}function TC(){Bo()||ne(!1);let e=m.useContext(Ji),{basename:t,future:n,navigator:r}=m.useContext(vr),{matches:o}=m.useContext($r),{pathname:i}=ze(),a=JSON.stringify(rd(o,n.v7_relativeSplatPath)),l=m.useRef(!1);return v0(()=>{l.current=!0}),m.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=od(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Sn([t,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[t,r,a,i,e])}function m0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(vr),{matches:o}=m.useContext($r),{pathname:i}=ze(),a=JSON.stringify(rd(o,r.v7_relativeSplatPath));return m.useMemo(()=>od(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function RC(e,t,n,r){Bo()||ne(!1);let{navigator:o}=m.useContext(vr),{matches:i}=m.useContext($r),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=ze(),f;f=c;let u=f.pathname||"/",d=u;if(s!=="/"){let v=s.replace(/^\//,"").split("/");d="/"+u.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=Wn(e,{pathname:d});return AC(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Sn([s,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Sn([s,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function NC(){let e=OC(),t=ls(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const kC=m.createElement(NC,null);class PC extends m.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?m.createElement($r.Provider,{value:this.props.routeContext},m.createElement(p0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bC(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Ji);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement($r.Provider,{value:t},r)}function AC(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(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id])!==void 0);f>=0||ne(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,d)=>{let h,x=!1,v=null,C=null;n&&(h=l&&u.route.id?l[u.route.id]:void 0,v=u.route.errorElement||kC,s&&(c<0&&d===0?(x=!0,C=null):c===d&&(x=!0,C=u.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,d+1)),y=()=>{let w;return h?w=v:x?w=C:u.route.Component?w=m.createElement(u.route.Component,null):u.route.element?w=u.route.element:w=f,m.createElement(bC,{match:u,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:w})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?m.createElement(PC,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var g0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(g0||{}),Ao=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}(Ao||{});function jC(e){let t=m.useContext(Ji);return t||ne(!1),t}function fd(e){let t=m.useContext(sd);return t||ne(!1),t}function LC(e){let t=m.useContext($r);return t||ne(!1),t}function y0(e){let t=LC(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function MC(){return fd(Ao.UseNavigation).navigation}function IC(){let{matches:e,loaderData:t}=fd(Ao.UseMatches);return m.useMemo(()=>e.map(n=>r0(n,t)),[e,t])}function OC(){var e;let t=m.useContext(p0),n=fd(Ao.UseRouteError),r=y0(Ao.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function DC(){let{router:e}=jC(g0.UseNavigateStable),t=y0(Ao.UseNavigateStable),n=m.useRef(!1);return v0(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ll({fromRouteId:t},i)))},[e,t])}function FC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Be.Pop,navigator:i,static:a=!1,future:l}=e;Bo()&&ne(!1);let s=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:s,navigator:i,static:a,future:Ll({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=pr(r));let{pathname:f="/",search:u="",hash:d="",state:h=null,key:x="default"}=r,v=m.useMemo(()=>{let C=zr(f,s);return C==null?null:{location:{pathname:C,search:u,hash:d,state:h,key:x},navigationType:o}},[s,f,u,d,h,x,o]);return v==null?null:m.createElement(vr.Provider,{value:c},m.createElement(ud.Provider,{children:n,value:v}))}new Promise(()=>{});function zC(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -66,7 +66,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function BC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UC(e,t){return e.button===0&&(!t||t==="_self")&&!BC(e)}const HC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],VC="6";try{window.__reactRouterVersion=VC}catch{}function WC(e,t){return eC({basename:t==null?void 0:t.basename,future:jo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:R3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||KC(),routes:e,mapRouteProperties:zC,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function KC(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=jo({},t,{errors:GC(t.errors)})),t}function GC(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 jl(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 YC=m.createContext({isTransitioning:!1}),QC=m.createContext(new Map),XC="startTransition",Ap=ff[XC],ZC="flushSync",jp=T3[ZC];function JC(e){Ap?Ap(e):e()}function oi(e){jp?jp(e):e()}class qC{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 e5(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),[a,l]=m.useState(),[s,c]=m.useState({isTransitioning:!1}),[f,u]=m.useState(),[d,h]=m.useState(),[x,v]=m.useState(),C=m.useRef(new Map),{v7_startTransition:g}=r||{},y=m.useCallback(S=>{g?JC(S):S()},[g]),w=m.useCallback((S,P)=>{let{deletedFetchers:b,unstable_flushSync:I,unstable_viewTransitionOpts:D}=P;b.forEach(j=>C.current.delete(j)),S.fetchers.forEach((j,V)=>{j.data!==void 0&&C.current.set(V,j.data)});let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!D||B){I?oi(()=>i(S)):y(()=>i(S));return}if(I){oi(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:D.currentLocation,nextLocation:D.nextLocation})});let j=n.window.document.startViewTransition(()=>{oi(()=>i(S))});j.finished.finally(()=>{oi(()=>{u(void 0),h(void 0),l(void 0),c({isTransitioning:!1})})}),oi(()=>h(j));return}d?(f&&f.resolve(),d.skipTransition(),v({state:S,currentLocation:D.currentLocation,nextLocation:D.nextLocation})):(l(S),c({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}))},[n.window,d,f,C,y]);m.useLayoutEffect(()=>n.subscribe(w),[n,w]),m.useEffect(()=>{s.isTransitioning&&!s.flushSync&&u(new qC)},[s]),m.useEffect(()=>{if(f&&a&&n.window){let S=a,P=f.promise,b=n.window.document.startViewTransition(async()=>{y(()=>i(S)),await P});b.finished.finally(()=>{u(void 0),h(void 0),l(void 0),c({isTransitioning:!1})}),h(b)}},[y,a,f,n.window]),m.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),m.useEffect(()=>{!s.isTransitioning&&x&&(l(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),v(void 0))},[s.isTransitioning,x]),m.useEffect(()=>{},[]);let E=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:S=>n.navigate(S),push:(S,P,b)=>n.navigate(S,{state:P,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(S,P,b)=>n.navigate(S,{replace:!0,state:P,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),_=n.basename||"/",R=m.useMemo(()=>({router:n,navigator:E,static:!1,basename:_}),[n,E,_]),T=m.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return m.createElement(m.Fragment,null,m.createElement(Ji.Provider,{value:R},m.createElement(sd.Provider,{value:o},m.createElement(QC.Provider,{value:C.current},m.createElement(YC.Provider,{value:s},m.createElement(FC,{basename:_,location:o.location,navigationType:o.historyAction,navigator:E,future:T},o.initialized||n.future.v7_partialHydration?m.createElement(t5,{routes:n.routes,future:n.future,state:o}):t))))),null)}const t5=m.memo(n5);function n5(e){let{routes:t,future:n,state:r}=e;return RC(t,void 0,r,n)}const r5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ss=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:c,preventScrollReset:f,unstable_viewTransition:u}=t,d=$C(t,HC),{basename:h}=m.useContext(vr),x,v=!1;if(typeof c=="string"&&o5.test(c)&&(x=c,r5))try{let w=new URL(window.location.href),E=c.startsWith("//")?new URL(w.protocol+c):new URL(c),_=zr(E.pathname,h);E.origin===w.origin&&_!=null?c=_+E.search+E.hash:v=!0}catch{}let C=SC(c,{relative:o}),g=s5(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});function y(w){r&&r(w),w.defaultPrevented||g(w)}return m.createElement("a",jo({},d,{href:x||C,onClick:v||i?r:y,ref:n,target:s}))});function i5(e){let{getKey:t,storageKey:n}=e;return u5({getKey:t,storageKey:n}),null}var Ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ec||(Ec={}));var Sc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sc||(Sc={}));function a5(e){let t=m.useContext(Ji);return t||ne(!1),t}function l5(e){let t=m.useContext(sd);return t||ne(!1),t}function s5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=cd(),c=ze(),f=g0(e,{relative:a});return m.useCallback(u=>{if(UC(u,n)){u.preventDefault();let d=r!==void 0?r:Lr(c)===Lr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,s,f,r,o,n,e,i,a,l])}const Lp="react-router-scroll-positions";let ba={};function u5(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=a5(Ec.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=l5(Sc.UseScrollRestoration),{basename:a}=m.useContext(vr),l=ze(),s=IC(),c=MC();m.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),c5(m.useCallback(()=>{if(c.state==="idle"){let f=(t?t(l,s):null)||l.key;ba[f]=window.scrollY}try{sessionStorage.setItem(n||Lp,JSON.stringify(ba))}catch{}window.history.scrollRestoration="auto"},[n,t,c.state,l,s])),typeof document<"u"&&(m.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Lp);f&&(ba=JSON.parse(f))}catch{}},[n]),m.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,h)=>t(jo({},d,{pathname:zr(d.pathname,a)||d.pathname}),h):t,u=r==null?void 0:r.enableScrollRestoration(ba,()=>window.scrollY,f);return()=>u&&u()},[r,a,t]),m.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 c5(e,t){let{capture:n}={};m.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const f5="modulepreload",d5=function(e){return"/"+e},Mp={},Je=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(s=>{if(s=d5(s),s in Mp)return;Mp[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${f}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":f5,c||(u.as="script"),u.crossOrigin="",u.href=s,l&&u.setAttribute("nonce",l),document.head.appendChild(u),c)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return o.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};function _c(e){return Array.isArray(e)?e.map(_c):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=_c(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const w0=_c({blogDir:"./pages/blog",rootDir:"docs",title:"RAG API Pipeline",titleTemplate:"%s – RAG API Pipeline",banner:{height:"32px",dismissable:!1,content:`"use strict"; + */function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function BC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UC(e,t){return e.button===0&&(!t||t==="_self")&&!BC(e)}const HC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],VC="6";try{window.__reactRouterVersion=VC}catch{}function WC(e,t){return eC({basename:t==null?void 0:t.basename,future:jo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:R3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||KC(),routes:e,mapRouteProperties:zC,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function KC(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=jo({},t,{errors:GC(t.errors)})),t}function GC(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 jl(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 YC=m.createContext({isTransitioning:!1}),QC=m.createContext(new Map),XC="startTransition",Ap=ff[XC],ZC="flushSync",jp=T3[ZC];function JC(e){Ap?Ap(e):e()}function oi(e){jp?jp(e):e()}class qC{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 e5(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),[a,l]=m.useState(),[s,c]=m.useState({isTransitioning:!1}),[f,u]=m.useState(),[d,h]=m.useState(),[x,v]=m.useState(),C=m.useRef(new Map),{v7_startTransition:g}=r||{},y=m.useCallback(S=>{g?JC(S):S()},[g]),w=m.useCallback((S,P)=>{let{deletedFetchers:b,unstable_flushSync:I,unstable_viewTransitionOpts:D}=P;b.forEach(j=>C.current.delete(j)),S.fetchers.forEach((j,V)=>{j.data!==void 0&&C.current.set(V,j.data)});let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!D||B){I?oi(()=>i(S)):y(()=>i(S));return}if(I){oi(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:D.currentLocation,nextLocation:D.nextLocation})});let j=n.window.document.startViewTransition(()=>{oi(()=>i(S))});j.finished.finally(()=>{oi(()=>{u(void 0),h(void 0),l(void 0),c({isTransitioning:!1})})}),oi(()=>h(j));return}d?(f&&f.resolve(),d.skipTransition(),v({state:S,currentLocation:D.currentLocation,nextLocation:D.nextLocation})):(l(S),c({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}))},[n.window,d,f,C,y]);m.useLayoutEffect(()=>n.subscribe(w),[n,w]),m.useEffect(()=>{s.isTransitioning&&!s.flushSync&&u(new qC)},[s]),m.useEffect(()=>{if(f&&a&&n.window){let S=a,P=f.promise,b=n.window.document.startViewTransition(async()=>{y(()=>i(S)),await P});b.finished.finally(()=>{u(void 0),h(void 0),l(void 0),c({isTransitioning:!1})}),h(b)}},[y,a,f,n.window]),m.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),m.useEffect(()=>{!s.isTransitioning&&x&&(l(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),v(void 0))},[s.isTransitioning,x]),m.useEffect(()=>{},[]);let E=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:S=>n.navigate(S),push:(S,P,b)=>n.navigate(S,{state:P,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(S,P,b)=>n.navigate(S,{replace:!0,state:P,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),_=n.basename||"/",R=m.useMemo(()=>({router:n,navigator:E,static:!1,basename:_}),[n,E,_]),T=m.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return m.createElement(m.Fragment,null,m.createElement(Ji.Provider,{value:R},m.createElement(sd.Provider,{value:o},m.createElement(QC.Provider,{value:C.current},m.createElement(YC.Provider,{value:s},m.createElement(FC,{basename:_,location:o.location,navigationType:o.historyAction,navigator:E,future:T},o.initialized||n.future.v7_partialHydration?m.createElement(t5,{routes:n.routes,future:n.future,state:o}):t))))),null)}const t5=m.memo(n5);function n5(e){let{routes:t,future:n,state:r}=e;return RC(t,void 0,r,n)}const r5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ss=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:c,preventScrollReset:f,unstable_viewTransition:u}=t,d=$C(t,HC),{basename:h}=m.useContext(vr),x,v=!1;if(typeof c=="string"&&o5.test(c)&&(x=c,r5))try{let w=new URL(window.location.href),E=c.startsWith("//")?new URL(w.protocol+c):new URL(c),_=zr(E.pathname,h);E.origin===w.origin&&_!=null?c=_+E.search+E.hash:v=!0}catch{}let C=SC(c,{relative:o}),g=s5(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});function y(w){r&&r(w),w.defaultPrevented||g(w)}return m.createElement("a",jo({},d,{href:x||C,onClick:v||i?r:y,ref:n,target:s}))});function i5(e){let{getKey:t,storageKey:n}=e;return u5({getKey:t,storageKey:n}),null}var Ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ec||(Ec={}));var Sc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sc||(Sc={}));function a5(e){let t=m.useContext(Ji);return t||ne(!1),t}function l5(e){let t=m.useContext(sd);return t||ne(!1),t}function s5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=cd(),c=ze(),f=m0(e,{relative:a});return m.useCallback(u=>{if(UC(u,n)){u.preventDefault();let d=r!==void 0?r:Lr(c)===Lr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,s,f,r,o,n,e,i,a,l])}const Lp="react-router-scroll-positions";let ba={};function u5(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=a5(Ec.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=l5(Sc.UseScrollRestoration),{basename:a}=m.useContext(vr),l=ze(),s=IC(),c=MC();m.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),c5(m.useCallback(()=>{if(c.state==="idle"){let f=(t?t(l,s):null)||l.key;ba[f]=window.scrollY}try{sessionStorage.setItem(n||Lp,JSON.stringify(ba))}catch{}window.history.scrollRestoration="auto"},[n,t,c.state,l,s])),typeof document<"u"&&(m.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Lp);f&&(ba=JSON.parse(f))}catch{}},[n]),m.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,h)=>t(jo({},d,{pathname:zr(d.pathname,a)||d.pathname}),h):t,u=r==null?void 0:r.enableScrollRestoration(ba,()=>window.scrollY,f);return()=>u&&u()},[r,a,t]),m.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 c5(e,t){let{capture:n}={};m.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const f5="modulepreload",d5=function(e){return"/gaianet-rag-api-pipeline/"+e},Mp={},Je=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(s=>{if(s=d5(s),s in Mp)return;Mp[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${f}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":f5,c||(u.as="script"),u.crossOrigin="",u.href=s,l&&u.setAttribute("nonce",l),document.head.appendChild(u),c)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return o.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};function _c(e){return Array.isArray(e)?e.map(_c):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=_c(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const x0=_c({blogDir:"./pages/blog",rootDir:"docs",title:"RAG API Pipeline",titleTemplate:"%s – RAG API Pipeline",banner:{height:"32px",dismissable:!1,content:`"use strict"; const {jsx: _jsx} = arguments[0]; function _createMdxContent(props) { const _components = { @@ -89,7 +89,7 @@ function MDXContent(props = {}) { return { default: MDXContent }; -`},description:"Supercharge your Gaianet node by generating a vector knowledge base from any API.",editLink:{pattern:"https://github.com/raid-guild/gaianet-rag-api-pipeline/edit/main/docs/pages/:path",text:"Edit on GitHub"},iconUrl:"/icon.svg",sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Defining the API Pipeline Manifest",link:"/manifest-definition"},{text:"API Examples",link:"/examples"},{text:"Architecture",link:"/architecture"},{text:"Tech Stack",link:"/tech-stack"},{text:"Using with CLI",link:"/cli"},{text:"Working with Other APIs",link:"/other-apis"},{text:"Deployment",link:"/deployment"}],topNav:[{text:"Home",link:"/",id:9,items:[]}],socials:[{icon:"github",link:"https://github.com/raid-guild/gaianet-rag-api-pipeline",label:"GitHub",type:"github"}],basePath:"",font:{},markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},theme:{},vite:{}}),C0=m.createContext(w0);function E0(){return typeof window<"u",w0}function h5({children:e,config:t}){const[n,r]=m.useState(()=>t||E0());return m.useEffect(()=>{},[]),m.useEffect(()=>{typeof window<"u"},[n]),p.jsx(C0.Provider,{value:n,children:e})}function Xe(){return m.useContext(C0)}const dd=[{lazy:()=>Je(()=>import("./architecture-BXTo28X5.js"),[]),path:"/architecture",type:"mdx",filePath:"architecture.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./architecture-BXTo28X5.js"),[]),path:"/architecture.html",type:"mdx",filePath:"architecture.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./cli-By9t85ut.js"),[]),path:"/cli",type:"mdx",filePath:"cli.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./cli-By9t85ut.js"),[]),path:"/cli.html",type:"mdx",filePath:"cli.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./deployment-CEkNkea6.js"),[]),path:"/deployment",type:"mdx",filePath:"deployment.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./deployment-CEkNkea6.js"),[]),path:"/deployment.html",type:"mdx",filePath:"deployment.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./examples-DaTnY_de.js"),[]),path:"/examples",type:"mdx",filePath:"examples.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./examples-DaTnY_de.js"),[]),path:"/examples.html",type:"mdx",filePath:"examples.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./getting-started--uLi9ag9.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./getting-started--uLi9ag9.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./index-BhvIaQTk.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./manifest-definition-CAYGwoZA.js"),[]),path:"/manifest-definition",type:"mdx",filePath:"manifest-definition.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./manifest-definition-CAYGwoZA.js"),[]),path:"/manifest-definition.html",type:"mdx",filePath:"manifest-definition.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./other-apis-DSEj_0gD.js"),[]),path:"/other-apis",type:"mdx",filePath:"other-apis.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./other-apis-DSEj_0gD.js"),[]),path:"/other-apis.html",type:"mdx",filePath:"other-apis.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./tech-stack-CjeAah4A.js"),[]),path:"/tech-stack",type:"mdx",filePath:"tech-stack.mdx",lastUpdatedAt:void 0},{lazy:()=>Je(()=>import("./tech-stack-CjeAah4A.js"),[]),path:"/tech-stack.html",type:"mdx",filePath:"tech-stack.mdx",lastUpdatedAt:void 0}];var eu={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},Ip={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)"},Dp={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)"},tu={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 S0(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 v5="var(--vocs_ExternalLink_iconUrl)",m5="vocs_ExternalLink";const g5=m.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Xe(),l=a;return p.jsx("a",{ref:i,className:F(e,n||typeof t!="string"?void 0:m5),href:r,target:"_blank",rel:"noopener noreferrer",style:Jt({[v5]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Fp="vocs_Link_accent_underlined",zp="vocs_Link",$p="vocs_Link_styleless",Tc=new Map,Aa=new WeakMap,Bp=0,y5=void 0;function x5(e){return e?(Aa.has(e)||(Bp+=1,Aa.set(e,Bp.toString())),Aa.get(e)):"0"}function w5(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?x5(e.root):e[t]}`).toString()}function C5(e){const t=w5(e);let n=Tc.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(f=>{f(c,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Tc.set(t,n)}return n}function E5(e,t,n={},r=y5){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}=C5(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(),Tc.delete(o))}}function _0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var f;const[u,d]=m.useState(null),h=m.useRef(),[x,v]=m.useState({inView:!!l,entry:void 0});h.current=c,m.useEffect(()=>{if(a||!u)return;let w;return w=E5(u,(E,_)=>{v({inView:E,entry:_}),h.current&&h.current(E,_),_.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,u,o,r,i,a,n,s,t]);const C=(f=x.entry)==null?void 0:f.target,g=m.useRef();!u&&C&&!i&&!a&&g.current!==C&&(g.current=C,v({inView:!!l,entry:void 0}));const y=[d,x.inView,x.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function S5(...e){return t=>{_5(t,...e)}}function _5(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const ir=m.forwardRef((e,t)=>{const n=()=>{var i;return(i=dd.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=_0();return m.useEffect(()=>{o&&n()},[o,n]),p.jsx(ss,{ref:S5(t,r),...e})}),sn=m.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=ze();if(n!=null&&n.match(/^(www|https?)/))return p.jsx(g5,{...e,ref:t,className:F(e.className,zp,r==="accent underlined"&&Fp,r==="styleless"&&$p),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return p.jsx(ir,{...e,ref:t,className:F(e.className,zp,r==="accent underlined"&&Fp,r==="styleless"&&$p),to:l})});var T5="vocs_NotFound_divider",R5="vocs_NotFound",N5="vocs_H1",T0="vocs_Heading",R0="vocs_Heading_slugTarget";function Uo({level:e,...t}){const n=`h${e}`;return p.jsxs(n,{...t,id:void 0,className:F(t.className,T0),children:[p.jsx("div",{id:t.id,className:R0}),t.children]})}function N0(e){return p.jsx(Uo,{...e,className:F(e.className,N5),level:1})}var k5="vocs_Paragraph";function k0(e){return p.jsx("p",{...e,className:F(e.className,k5)})}function P5(){return p.jsxs("div",{className:R5,children:[p.jsx(N0,{children:"Page Not Found"}),p.jsx("div",{style:{height:tu[24]}}),p.jsx("hr",{className:T5}),p.jsx("div",{style:{height:tu[24]}}),p.jsx(k0,{children:"The page you were looking for could not be found."}),p.jsx("div",{style:{height:tu[8]}}),p.jsx(sn,{href:"/",children:"Go to Home Page"})]})}var b5="var(--vocs_Banner_bannerBackgroundColor)",A5="var(--vocs_Banner_bannerHeight)",j5="var(--vocs_Banner_bannerTextColor)",L5="vocs_Banner_closeButton",M5="vocs_Banner_content",I5="vocs_Banner_inner",O5="vocs_Banner";const D5=Object.getPrototypeOf(F5).constructor;async function F5(e,t){return new D5(String(e))(t)}function z5(e,t){return new Function(String(e))(t)}function Br(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 $5=["color"],B5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,$5);return m.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}),m.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"}))}),U5=["color"],H5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,U5);return m.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}),m.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"}))}),V5=["color"],W5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,V5);return m.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}),m.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"}))}),K5=["color"],G5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,K5);return m.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}),m.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"],Q5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,Y5);return m.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}),m.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"],hd=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,X5);return m.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}),m.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"}))}),Z5=["color"],J5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,Z5);return m.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}),m.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 Ml(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>Ml(r,o));const n=e.props.children?{...e.props,children:Ml(e.props.children)}:e.props;return de.createElement(e.type,{...n,key:t})}function q5({hide:e}){const{banner:t}=Xe(),n=m.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>Ml(r);const{default:o}=z5(r,{...Cw,Fragment:m.Fragment});return o},[t]);return n?p.jsx("div",{className:F(O5),style:Jt({[b5]:t==null?void 0:t.backgroundColor,[j5]:t==null?void 0:t.textColor}),children:p.jsxs("div",{className:F(I5),children:[p.jsx("div",{className:F(M5),children:p.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&p.jsx("button",{className:F(L5),onClick:e,type:"button",children:p.jsx(W5,{width:14,height:14})})]})}):null}var eE="vocs_Content";function P0({children:e,className:t}){return p.jsx("article",{className:F(t,eE),children:e})}function b0({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&&b0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function qi({items:e,pathname:t}){return m.useMemo(()=>b0({items:e,pathname:t}),[e,t])}function Ur(){const e=m.useContext(A0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const A0=m.createContext(void 0);function us(){const{pathname:e}=ze(),t=Xe(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=m.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 Hr(){const e=us(),{frontmatter:t}=Ur(),{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 tE(){const[e,t]=m.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 m.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 nE="vocs_utils_visibleDark",rE="vocs_utils_visibleLight",j0="vocs_utils_visuallyHidden";function oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function oE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function pd(...e){return t=>e.forEach(n=>oE(n,t))}function Fe(...e){return m.useCallback(pd(...e),e)}function iE(e,t){const n=m.createContext(t);function r(i){const{children:a,...l}=i,s=m.useMemo(()=>l,Object.values(l));return p.jsx(n.Provider,{value:s,children:a})}function o(i){const a=m.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function An(e,t=[]){let n=[];function r(i,a){const l=m.createContext(a),s=n.length;n=[...n,a];function c(u){const{scope:d,children:h,...x}=u,v=(d==null?void 0:d[e][s])||l,C=m.useMemo(()=>x,Object.values(x));return p.jsx(v.Provider,{value:C,children:h})}function f(u,d){const h=(d==null?void 0:d[e][s])||l,x=m.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,f]}const o=()=>{const i=n.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,aE(o,...t)]}function aE(...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:c})=>{const u=s(i)[`__scope${c}`];return{...l,...u}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var qt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},lE=ff.useId||(()=>{}),sE=0;function un(e){const[t,n]=m.useState(lE());return qt(()=>{n(r=>r??String(sE++))},[e]),t?`radix-${t}`:""}function at(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function jn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=uE({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=m.useCallback(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&l(u)}else o(c)},[i,e,o,l]);return[a,s]}function uE({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=at(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Lo=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(fE);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return p.jsx(Rc,{...r,ref:t,children:m.isValidElement(a)?m.cloneElement(a,void 0,l):null})}return p.jsx(Rc,{...r,ref:t,children:n})});Lo.displayName="Slot";var Rc=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=hE(n);return m.cloneElement(n,{...dE(r,n.props),ref:t?pd(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});Rc.displayName="SlotClone";var cE=({children:e})=>p.jsx(p.Fragment,{children:e});function fE(e){return m.isValidElement(e)&&e.type===cE}function dE(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}}function hE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ie=pE.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Lo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Nc(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function vE(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mE="DismissableLayer",kc="dismissableLayer.update",gE="dismissableLayer.pointerDownOutside",yE="dismissableLayer.focusOutside",Up,L0=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cs=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=m.useContext(L0),[f,u]=m.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),x=Fe(t,T=>u(T)),v=Array.from(c.layers),[C]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(C),y=f?v.indexOf(f):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,E=y>=g,_=CE(T=>{const S=T.target,P=[...c.branches].some(b=>b.contains(S));!E||P||(o==null||o(T),a==null||a(T),T.defaultPrevented||l==null||l())},d),R=EE(T=>{const S=T.target;[...c.branches].some(b=>b.contains(S))||(i==null||i(T),a==null||a(T),T.defaultPrevented||l==null||l())},d);return vE(T=>{y===c.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},d),m.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Up=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Hp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Up)}},[f,d,n,c]),m.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Hp())},[f,c]),m.useEffect(()=>{const T=()=>h({});return document.addEventListener(kc,T),()=>document.removeEventListener(kc,T)},[]),p.jsx(ie.div,{...s,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,_.onPointerDownCapture)})});cs.displayName=mE;var xE="DismissableLayerBranch",wE=m.forwardRef((e,t)=>{const n=m.useContext(L0),r=m.useRef(null),o=Fe(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(ie.div,{...e,ref:o})});wE.displayName=xE;function CE(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let s=function(){M0(gE,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}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 EE(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&M0(yE,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 Hp(){const e=new CustomEvent(kc);document.dispatchEvent(e)}function M0(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?Nc(o,i):o.dispatchEvent(i)}var nu="focusScope.autoFocusOnMount",ru="focusScope.autoFocusOnUnmount",Vp={bubbles:!1,cancelable:!0},SE="FocusScope",vd=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=m.useState(null),c=at(o),f=at(i),u=m.useRef(null),d=Fe(t,v=>s(v)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let v=function(w){if(h.paused||!l)return;const E=w.target;l.contains(E)?u.current=E:$n(u.current,{select:!0})},C=function(w){if(h.paused||!l)return;const E=w.relatedTarget;E!==null&&(l.contains(E)||$n(u.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&$n(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",C);const y=new MutationObserver(g);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",C),y.disconnect()}}},[r,l,h.paused]),m.useEffect(()=>{if(l){Kp.add(h);const v=document.activeElement;if(!l.contains(v)){const g=new CustomEvent(nu,Vp);l.addEventListener(nu,c),l.dispatchEvent(g),g.defaultPrevented||(_E(PE(I0(l)),{select:!0}),document.activeElement===v&&$n(l))}return()=>{l.removeEventListener(nu,c),setTimeout(()=>{const g=new CustomEvent(ru,Vp);l.addEventListener(ru,f),l.dispatchEvent(g),g.defaultPrevented||$n(v??document.body,{select:!0}),l.removeEventListener(ru,f),Kp.remove(h)},0)}}},[l,c,f,h]);const x=m.useCallback(v=>{if(!n&&!r||h.paused)return;const C=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(C&&g){const y=v.currentTarget,[w,E]=TE(y);w&&E?!v.shiftKey&&g===E?(v.preventDefault(),n&&$n(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&$n(E,{select:!0})):g===y&&v.preventDefault()}},[n,r,h.paused]);return p.jsx(ie.div,{tabIndex:-1,...a,ref:d,onKeyDown:x})});vd.displayName=SE;function _E(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($n(r,{select:t}),document.activeElement!==n)return}function TE(e){const t=I0(e),n=Wp(t,e),r=Wp(t.reverse(),e);return[n,r]}function I0(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 Wp(e,t){for(const n of e)if(!RE(n,{upTo:t}))return n}function RE(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 NE(e){return e instanceof HTMLInputElement&&"select"in e}function $n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&NE(e)&&t&&e.select()}}var Kp=kE();function kE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gp(e,t),e.unshift(t)},remove(t){var n;e=Gp(e,t),(n=e[0])==null||n.resume()}}}function Gp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function PE(e){return e.filter(t=>t.tagName!=="A")}var bE="Portal",md=m.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=m.useState(!1);qt(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?nd.createPortal(p.jsx(ie.div,{...r,ref:t}),a):null});md.displayName=bE;function AE(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var zt=e=>{const{present:t,children:n}=e,r=jE(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Fe(r.ref,LE(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};zt.displayName="Presence";function jE(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=AE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=ja(r.current);i.current=l==="mounted"?c:"none"},[l]),qt(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,h=ja(c);e?s("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),qt(()=>{if(t){const c=u=>{const h=ja(r.current).includes(u.animationName);u.target===t&&h&&$o.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ja(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ja(e){return(e==null?void 0:e.animationName)||"none"}function LE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ou=0;function O0(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yp()),document.body.insertAdjacentElement("beforeend",e[1]??Yp()),ou++,()=>{ou===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ou--}},[])}function Yp(){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 on=function(){return on=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return XE;var t=ZE(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])}},qE=$0(),wo="data-scroll-locked",e4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` +`},description:"Supercharge your Gaianet node by generating a vector knowledge base from any API.",editLink:{pattern:"https://github.com/raid-guild/gaianet-rag-api-pipeline/edit/main/docs/pages/:path",text:"Edit on GitHub"},iconUrl:"/icon.svg",sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Defining the API Pipeline Manifest",link:"/manifest-definition"},{text:"API Examples",link:"/examples"},{text:"Architecture",link:"/architecture"},{text:"Tech Stack",link:"/tech-stack"},{text:"Using with CLI",link:"/cli"},{text:"Working with Other APIs",link:"/other-apis"},{text:"Deployment",link:"/deployment"}],topNav:[{text:"Home",link:"/",id:17,items:[]}],socials:[{icon:"github",link:"https://github.com/raid-guild/gaianet-rag-api-pipeline",label:"GitHub",type:"github"}],vite:{base:"/gaianet-rag-api-pipeline/"},basePath:"",font:{},markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},theme:{}}),w0=m.createContext(x0);function C0(){return typeof window<"u",x0}function h5({children:e,config:t}){const[n,r]=m.useState(()=>t||C0());return m.useEffect(()=>{},[]),m.useEffect(()=>{typeof window<"u"},[n]),p.jsx(w0.Provider,{value:n,children:e})}function Xe(){return m.useContext(w0)}const dd=[{lazy:()=>Je(()=>import("./architecture-rgg5NLqz.js"),[]),path:"/architecture",type:"mdx",filePath:"architecture.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./architecture-rgg5NLqz.js"),[]),path:"/architecture.html",type:"mdx",filePath:"architecture.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./cli-CLlqZRCQ.js"),[]),path:"/cli",type:"mdx",filePath:"cli.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./cli-CLlqZRCQ.js"),[]),path:"/cli.html",type:"mdx",filePath:"cli.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./deployment-WsajuzVp.js"),[]),path:"/deployment",type:"mdx",filePath:"deployment.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./deployment-WsajuzVp.js"),[]),path:"/deployment.html",type:"mdx",filePath:"deployment.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./examples-Bd5Ah4mi.js"),[]),path:"/examples",type:"mdx",filePath:"examples.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./examples-Bd5Ah4mi.js"),[]),path:"/examples.html",type:"mdx",filePath:"examples.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./getting-started-DWaqqspk.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./getting-started-DWaqqspk.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./index-y_-j9ylS.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./manifest-definition-BH3sQWFK.js"),[]),path:"/manifest-definition",type:"mdx",filePath:"manifest-definition.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./manifest-definition-BH3sQWFK.js"),[]),path:"/manifest-definition.html",type:"mdx",filePath:"manifest-definition.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./other-apis-BsW5DYUf.js"),[]),path:"/other-apis",type:"mdx",filePath:"other-apis.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./other-apis-BsW5DYUf.js"),[]),path:"/other-apis.html",type:"mdx",filePath:"other-apis.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./tech-stack-aYqGeJhL.js"),[]),path:"/tech-stack",type:"mdx",filePath:"tech-stack.mdx",lastUpdatedAt:1726639079e3},{lazy:()=>Je(()=>import("./tech-stack-aYqGeJhL.js"),[]),path:"/tech-stack.html",type:"mdx",filePath:"tech-stack.mdx",lastUpdatedAt:1726639079e3}];var eu={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},Ip={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)"},Dp={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)"},tu={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 E0(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 v5="var(--vocs_ExternalLink_iconUrl)",m5="vocs_ExternalLink";const g5=m.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Xe(),l=a;return p.jsx("a",{ref:i,className:F(e,n||typeof t!="string"?void 0:m5),href:r,target:"_blank",rel:"noopener noreferrer",style:Jt({[v5]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Fp="vocs_Link_accent_underlined",zp="vocs_Link",$p="vocs_Link_styleless",Tc=new Map,Aa=new WeakMap,Bp=0,y5=void 0;function x5(e){return e?(Aa.has(e)||(Bp+=1,Aa.set(e,Bp.toString())),Aa.get(e)):"0"}function w5(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?x5(e.root):e[t]}`).toString()}function C5(e){const t=w5(e);let n=Tc.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(f=>{f(c,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Tc.set(t,n)}return n}function E5(e,t,n={},r=y5){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}=C5(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(),Tc.delete(o))}}function S0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var f;const[u,d]=m.useState(null),h=m.useRef(),[x,v]=m.useState({inView:!!l,entry:void 0});h.current=c,m.useEffect(()=>{if(a||!u)return;let w;return w=E5(u,(E,_)=>{v({inView:E,entry:_}),h.current&&h.current(E,_),_.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,u,o,r,i,a,n,s,t]);const C=(f=x.entry)==null?void 0:f.target,g=m.useRef();!u&&C&&!i&&!a&&g.current!==C&&(g.current=C,v({inView:!!l,entry:void 0}));const y=[d,x.inView,x.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function S5(...e){return t=>{_5(t,...e)}}function _5(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const ir=m.forwardRef((e,t)=>{const n=()=>{var i;return(i=dd.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=S0();return m.useEffect(()=>{o&&n()},[o,n]),p.jsx(ss,{ref:S5(t,r),...e})}),sn=m.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=ze();if(n!=null&&n.match(/^(www|https?)/))return p.jsx(g5,{...e,ref:t,className:F(e.className,zp,r==="accent underlined"&&Fp,r==="styleless"&&$p),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return p.jsx(ir,{...e,ref:t,className:F(e.className,zp,r==="accent underlined"&&Fp,r==="styleless"&&$p),to:l})});var T5="vocs_NotFound_divider",R5="vocs_NotFound",N5="vocs_H1",_0="vocs_Heading",T0="vocs_Heading_slugTarget";function Uo({level:e,...t}){const n=`h${e}`;return p.jsxs(n,{...t,id:void 0,className:F(t.className,_0),children:[p.jsx("div",{id:t.id,className:T0}),t.children]})}function R0(e){return p.jsx(Uo,{...e,className:F(e.className,N5),level:1})}var k5="vocs_Paragraph";function N0(e){return p.jsx("p",{...e,className:F(e.className,k5)})}function P5(){return p.jsxs("div",{className:R5,children:[p.jsx(R0,{children:"Page Not Found"}),p.jsx("div",{style:{height:tu[24]}}),p.jsx("hr",{className:T5}),p.jsx("div",{style:{height:tu[24]}}),p.jsx(N0,{children:"The page you were looking for could not be found."}),p.jsx("div",{style:{height:tu[8]}}),p.jsx(sn,{href:"/",children:"Go to Home Page"})]})}var b5="var(--vocs_Banner_bannerBackgroundColor)",A5="var(--vocs_Banner_bannerHeight)",j5="var(--vocs_Banner_bannerTextColor)",L5="vocs_Banner_closeButton",M5="vocs_Banner_content",I5="vocs_Banner_inner",O5="vocs_Banner";const D5=Object.getPrototypeOf(F5).constructor;async function F5(e,t){return new D5(String(e))(t)}function z5(e,t){return new Function(String(e))(t)}function Br(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 $5=["color"],B5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,$5);return m.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}),m.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"}))}),U5=["color"],H5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,U5);return m.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}),m.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"}))}),V5=["color"],W5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,V5);return m.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}),m.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"}))}),K5=["color"],G5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,K5);return m.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}),m.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"],Q5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,Y5);return m.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}),m.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"],hd=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,X5);return m.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}),m.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"}))}),Z5=["color"],J5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Br(e,Z5);return m.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}),m.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 Ml(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>Ml(r,o));const n=e.props.children?{...e.props,children:Ml(e.props.children)}:e.props;return de.createElement(e.type,{...n,key:t})}function q5({hide:e}){const{banner:t}=Xe(),n=m.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>Ml(r);const{default:o}=z5(r,{...ww,Fragment:m.Fragment});return o},[t]);return n?p.jsx("div",{className:F(O5),style:Jt({[b5]:t==null?void 0:t.backgroundColor,[j5]:t==null?void 0:t.textColor}),children:p.jsxs("div",{className:F(I5),children:[p.jsx("div",{className:F(M5),children:p.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&p.jsx("button",{className:F(L5),onClick:e,type:"button",children:p.jsx(W5,{width:14,height:14})})]})}):null}var eE="vocs_Content";function k0({children:e,className:t}){return p.jsx("article",{className:F(t,eE),children:e})}function P0({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&&P0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function qi({items:e,pathname:t}){return m.useMemo(()=>P0({items:e,pathname:t}),[e,t])}function Ur(){const e=m.useContext(b0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const b0=m.createContext(void 0);function us(){const{pathname:e}=ze(),t=Xe(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=m.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 Hr(){const e=us(),{frontmatter:t}=Ur(),{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 tE(){const[e,t]=m.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 m.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 nE="vocs_utils_visibleDark",rE="vocs_utils_visibleLight",A0="vocs_utils_visuallyHidden";function oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function oE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function pd(...e){return t=>e.forEach(n=>oE(n,t))}function Fe(...e){return m.useCallback(pd(...e),e)}function iE(e,t){const n=m.createContext(t);function r(i){const{children:a,...l}=i,s=m.useMemo(()=>l,Object.values(l));return p.jsx(n.Provider,{value:s,children:a})}function o(i){const a=m.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function An(e,t=[]){let n=[];function r(i,a){const l=m.createContext(a),s=n.length;n=[...n,a];function c(u){const{scope:d,children:h,...x}=u,v=(d==null?void 0:d[e][s])||l,C=m.useMemo(()=>x,Object.values(x));return p.jsx(v.Provider,{value:C,children:h})}function f(u,d){const h=(d==null?void 0:d[e][s])||l,x=m.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,f]}const o=()=>{const i=n.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,aE(o,...t)]}function aE(...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:c})=>{const u=s(i)[`__scope${c}`];return{...l,...u}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var qt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},lE=ff.useId||(()=>{}),sE=0;function un(e){const[t,n]=m.useState(lE());return qt(()=>{n(r=>r??String(sE++))},[e]),t?`radix-${t}`:""}function at(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function jn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=uE({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=m.useCallback(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&l(u)}else o(c)},[i,e,o,l]);return[a,s]}function uE({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=at(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Lo=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(fE);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return p.jsx(Rc,{...r,ref:t,children:m.isValidElement(a)?m.cloneElement(a,void 0,l):null})}return p.jsx(Rc,{...r,ref:t,children:n})});Lo.displayName="Slot";var Rc=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=hE(n);return m.cloneElement(n,{...dE(r,n.props),ref:t?pd(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});Rc.displayName="SlotClone";var cE=({children:e})=>p.jsx(p.Fragment,{children:e});function fE(e){return m.isValidElement(e)&&e.type===cE}function dE(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}}function hE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ie=pE.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Lo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Nc(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function vE(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mE="DismissableLayer",kc="dismissableLayer.update",gE="dismissableLayer.pointerDownOutside",yE="dismissableLayer.focusOutside",Up,j0=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cs=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=m.useContext(j0),[f,u]=m.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),x=Fe(t,T=>u(T)),v=Array.from(c.layers),[C]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(C),y=f?v.indexOf(f):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,E=y>=g,_=CE(T=>{const S=T.target,P=[...c.branches].some(b=>b.contains(S));!E||P||(o==null||o(T),a==null||a(T),T.defaultPrevented||l==null||l())},d),R=EE(T=>{const S=T.target;[...c.branches].some(b=>b.contains(S))||(i==null||i(T),a==null||a(T),T.defaultPrevented||l==null||l())},d);return vE(T=>{y===c.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},d),m.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Up=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Hp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Up)}},[f,d,n,c]),m.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Hp())},[f,c]),m.useEffect(()=>{const T=()=>h({});return document.addEventListener(kc,T),()=>document.removeEventListener(kc,T)},[]),p.jsx(ie.div,{...s,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,_.onPointerDownCapture)})});cs.displayName=mE;var xE="DismissableLayerBranch",wE=m.forwardRef((e,t)=>{const n=m.useContext(j0),r=m.useRef(null),o=Fe(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(ie.div,{...e,ref:o})});wE.displayName=xE;function CE(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let s=function(){L0(gE,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}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 EE(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&L0(yE,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 Hp(){const e=new CustomEvent(kc);document.dispatchEvent(e)}function L0(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?Nc(o,i):o.dispatchEvent(i)}var nu="focusScope.autoFocusOnMount",ru="focusScope.autoFocusOnUnmount",Vp={bubbles:!1,cancelable:!0},SE="FocusScope",vd=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=m.useState(null),c=at(o),f=at(i),u=m.useRef(null),d=Fe(t,v=>s(v)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let v=function(w){if(h.paused||!l)return;const E=w.target;l.contains(E)?u.current=E:$n(u.current,{select:!0})},C=function(w){if(h.paused||!l)return;const E=w.relatedTarget;E!==null&&(l.contains(E)||$n(u.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&$n(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",C);const y=new MutationObserver(g);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",C),y.disconnect()}}},[r,l,h.paused]),m.useEffect(()=>{if(l){Kp.add(h);const v=document.activeElement;if(!l.contains(v)){const g=new CustomEvent(nu,Vp);l.addEventListener(nu,c),l.dispatchEvent(g),g.defaultPrevented||(_E(PE(M0(l)),{select:!0}),document.activeElement===v&&$n(l))}return()=>{l.removeEventListener(nu,c),setTimeout(()=>{const g=new CustomEvent(ru,Vp);l.addEventListener(ru,f),l.dispatchEvent(g),g.defaultPrevented||$n(v??document.body,{select:!0}),l.removeEventListener(ru,f),Kp.remove(h)},0)}}},[l,c,f,h]);const x=m.useCallback(v=>{if(!n&&!r||h.paused)return;const C=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(C&&g){const y=v.currentTarget,[w,E]=TE(y);w&&E?!v.shiftKey&&g===E?(v.preventDefault(),n&&$n(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&$n(E,{select:!0})):g===y&&v.preventDefault()}},[n,r,h.paused]);return p.jsx(ie.div,{tabIndex:-1,...a,ref:d,onKeyDown:x})});vd.displayName=SE;function _E(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($n(r,{select:t}),document.activeElement!==n)return}function TE(e){const t=M0(e),n=Wp(t,e),r=Wp(t.reverse(),e);return[n,r]}function M0(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 Wp(e,t){for(const n of e)if(!RE(n,{upTo:t}))return n}function RE(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 NE(e){return e instanceof HTMLInputElement&&"select"in e}function $n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&NE(e)&&t&&e.select()}}var Kp=kE();function kE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gp(e,t),e.unshift(t)},remove(t){var n;e=Gp(e,t),(n=e[0])==null||n.resume()}}}function Gp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function PE(e){return e.filter(t=>t.tagName!=="A")}var bE="Portal",md=m.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=m.useState(!1);qt(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?nd.createPortal(p.jsx(ie.div,{...r,ref:t}),a):null});md.displayName=bE;function AE(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var zt=e=>{const{present:t,children:n}=e,r=jE(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Fe(r.ref,LE(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};zt.displayName="Presence";function jE(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=AE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=ja(r.current);i.current=l==="mounted"?c:"none"},[l]),qt(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,h=ja(c);e?s("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),qt(()=>{if(t){const c=u=>{const h=ja(r.current).includes(u.animationName);u.target===t&&h&&$o.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ja(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ja(e){return(e==null?void 0:e.animationName)||"none"}function LE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ou=0;function I0(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yp()),document.body.insertAdjacentElement("beforeend",e[1]??Yp()),ou++,()=>{ou===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ou--}},[])}function Yp(){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 on=function(){return on=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return XE;var t=ZE(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])}},qE=z0(),wo="data-scroll-locked",e4=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(IE,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -126,20 +126,20 @@ return { body[`).concat(wo,`] { `).concat(OE,": ").concat(l,`px; } -`)},Xp=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},t4=function(){m.useEffect(function(){return document.body.setAttribute(wo,(Xp()+1).toString()),function(){var e=Xp()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},n4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;t4();var i=m.useMemo(function(){return JE(o)},[o]);return m.createElement(qE,{styles:e4(i,!t,o,n?"":"!important")})},Pc=!1;if(typeof window<"u")try{var La=Object.defineProperty({},"passive",{get:function(){return Pc=!0,!0}});window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Pc=!1}var Yr=Pc?{passive:!1}:!1,r4=function(e){return e.tagName==="TEXTAREA"},B0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!r4(e)&&n[t]==="visible")},o4=function(e){return B0(e,"overflowY")},i4=function(e){return B0(e,"overflowX")},Zp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=U0(e,r);if(o){var i=H0(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},a4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},l4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},U0=function(e,t){return e==="v"?o4(t):i4(t)},H0=function(e,t){return e==="v"?a4(t):l4(t)},s4=function(e,t){return e==="h"&&t==="rtl"?-1:1},u4=function(e,t,n,r,o){var i=s4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,f=a>0,u=0,d=0;do{var h=H0(e,l),x=h[0],v=h[1],C=h[2],g=v-C-i*x;(x||g)&&U0(e,l)&&(u+=g,d+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(Math.abs(u)<1||!o)||!f&&(Math.abs(d)<1||!o))&&(c=!0),c},Ma=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},qp=function(e){return e&&"current"in e?e.current:e},c4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},f4=function(e){return` +`)},Xp=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},t4=function(){m.useEffect(function(){return document.body.setAttribute(wo,(Xp()+1).toString()),function(){var e=Xp()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},n4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;t4();var i=m.useMemo(function(){return JE(o)},[o]);return m.createElement(qE,{styles:e4(i,!t,o,n?"":"!important")})},Pc=!1;if(typeof window<"u")try{var La=Object.defineProperty({},"passive",{get:function(){return Pc=!0,!0}});window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Pc=!1}var Yr=Pc?{passive:!1}:!1,r4=function(e){return e.tagName==="TEXTAREA"},$0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!r4(e)&&n[t]==="visible")},o4=function(e){return $0(e,"overflowY")},i4=function(e){return $0(e,"overflowX")},Zp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=B0(e,r);if(o){var i=U0(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},a4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},l4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},B0=function(e,t){return e==="v"?o4(t):i4(t)},U0=function(e,t){return e==="v"?a4(t):l4(t)},s4=function(e,t){return e==="h"&&t==="rtl"?-1:1},u4=function(e,t,n,r,o){var i=s4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,f=a>0,u=0,d=0;do{var h=U0(e,l),x=h[0],v=h[1],C=h[2],g=v-C-i*x;(x||g)&&B0(e,l)&&(u+=g,d+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(Math.abs(u)<1||!o)||!f&&(Math.abs(d)<1||!o))&&(c=!0),c},Ma=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},qp=function(e){return e&&"current"in e?e.current:e},c4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},f4=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},d4=0,Qr=[];function h4(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(d4++)[0],i=m.useState($0)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=ME([e.lockRef.current],(e.shards||[]).map(qp),!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=m.useCallback(function(v,C){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var g=Ma(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],E="deltaY"in v?v.deltaY:y[1]-g[1],_,R=v.target,T=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in v&&T==="h"&&R.type==="range")return!1;var S=Zp(T,R);if(!S)return!0;if(S?_=T:(_=T==="v"?"h":"v",S=Zp(T,R)),!S)return!1;if(!r.current&&"changedTouches"in v&&(w||E)&&(r.current=_),!_)return!0;var P=r.current||_;return u4(P,C,v,P==="h"?w:E,!0)},[]),s=m.useCallback(function(v){var C=v;if(!(!Qr.length||Qr[Qr.length-1]!==i)){var g="deltaY"in C?Jp(C):Ma(C),y=t.current.filter(function(_){return _.name===C.type&&(_.target===C.target||C.target===_.shadowParent)&&c4(_.delta,g)})[0];if(y&&y.should){C.cancelable&&C.preventDefault();return}if(!y){var w=(a.current.shards||[]).map(qp).filter(Boolean).filter(function(_){return _.contains(C.target)}),E=w.length>0?l(C,w[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=m.useCallback(function(v,C,g,y){var w={name:v,delta:C,target:g,should:y,shadowParent:p4(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=m.useCallback(function(v){n.current=Ma(v),r.current=void 0},[]),u=m.useCallback(function(v){c(v.type,Jp(v),v.target,l(v,e.lockRef.current))},[]),d=m.useCallback(function(v){c(v.type,Ma(v),v.target,l(v,e.lockRef.current))},[]);m.useEffect(function(){return Qr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Yr),document.addEventListener("touchmove",s,Yr),document.addEventListener("touchstart",f,Yr),function(){Qr=Qr.filter(function(v){return v!==i}),document.removeEventListener("wheel",s,Yr),document.removeEventListener("touchmove",s,Yr),document.removeEventListener("touchstart",f,Yr)}},[]);var h=e.removeScrollBar,x=e.inert;return m.createElement(m.Fragment,null,x?m.createElement(i,{styles:f4(o)}):null,h?m.createElement(n4,{gapMode:e.gapMode}):null)}function p4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const v4=HE(z0,h4);var gd=m.forwardRef(function(e,t){return m.createElement(fs,on({},e,{ref:t,sideCar:v4}))});gd.classNames=fs.classNames;var m4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xr=new WeakMap,Ia=new WeakMap,Oa={},su=0,V0=function(e){return e&&(e.host||V0(e.parentNode))},g4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=V0(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})},y4=function(e,t,n,r){var o=g4(t,Array.isArray(e)?e:[e]);Oa[n]||(Oa[n]=new WeakMap);var i=Oa[n],a=[],l=new Set,s=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.children,function(d){if(l.has(d))f(d);else try{var h=d.getAttribute(r),x=h!==null&&h!=="false",v=(Xr.get(d)||0)+1,C=(i.get(d)||0)+1;Xr.set(d,v),i.set(d,C),a.push(d),v===1&&x&&Ia.set(d,!0),C===1&&d.setAttribute(n,"true"),x||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return f(t),l.clear(),su++,function(){a.forEach(function(u){var d=Xr.get(u)-1,h=i.get(u)-1;Xr.set(u,d),i.set(u,h),d||(Ia.has(u)||u.removeAttribute(r),Ia.delete(u)),h||u.removeAttribute(n)}),su--,su||(Xr=new WeakMap,Xr=new WeakMap,Ia=new WeakMap,Oa={})}},W0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=m4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),y4(r,o,n,"aria-hidden")):function(){return null}},yd="Dialog",[K0,PN]=An(yd),[x4,en]=K0(yd),G0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=m.useRef(null),s=m.useRef(null),[c=!1,f]=jn({prop:r,defaultProp:o,onChange:i});return p.jsx(x4,{scope:t,triggerRef:l,contentRef:s,contentId:un(),titleId:un(),descriptionId:un(),open:c,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(u=>!u),[f]),modal:a,children:n})};G0.displayName=yd;var Y0="DialogTrigger",Q0=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(Y0,n),i=Fe(t,o.triggerRef);return p.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cd(o.open),...r,ref:i,onClick:oe(e.onClick,o.onOpenToggle)})});Q0.displayName=Y0;var xd="DialogPortal",[w4,X0]=K0(xd,{forceMount:void 0}),Z0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=en(xd,t);return p.jsx(w4,{scope:t,forceMount:n,children:m.Children.map(r,a=>p.jsx(zt,{present:n||i.open,children:p.jsx(md,{asChild:!0,container:o,children:a})}))})};Z0.displayName=xd;var Il="DialogOverlay",J0=m.forwardRef((e,t)=>{const n=X0(Il,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=en(Il,e.__scopeDialog);return i.modal?p.jsx(zt,{present:r||i.open,children:p.jsx(C4,{...o,ref:t})}):null});J0.displayName=Il;var C4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(Il,n);return p.jsx(gd,{as:Lo,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ie.div,{"data-state":Cd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Mr="DialogContent",q0=m.forwardRef((e,t)=>{const n=X0(Mr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=en(Mr,e.__scopeDialog);return p.jsx(zt,{present:r||i.open,children:i.modal?p.jsx(E4,{...o,ref:t}):p.jsx(S4,{...o,ref:t})})});q0.displayName=Mr;var E4=m.forwardRef((e,t)=>{const n=en(Mr,e.__scopeDialog),r=m.useRef(null),o=Fe(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return W0(i)},[]),p.jsx(e1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:oe(e.onFocusOutside,i=>i.preventDefault())})}),S4=m.forwardRef((e,t)=>{const n=en(Mr,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return p.jsx(e1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var s,c;(s=e.onInteractOutside)==null||s.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),e1=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=en(Mr,n),s=m.useRef(null),c=Fe(t,s);return O0(),p.jsxs(p.Fragment,{children:[p.jsx(vd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(cs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Cd(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(R4,{titleId:l.titleId}),p.jsx(k4,{contentRef:s,descriptionId:l.descriptionId})]})]})}),wd="DialogTitle",t1=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(wd,n);return p.jsx(ie.h2,{id:o.titleId,...r,ref:t})});t1.displayName=wd;var n1="DialogDescription",_4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(n1,n);return p.jsx(ie.p,{id:o.descriptionId,...r,ref:t})});_4.displayName=n1;var r1="DialogClose",T4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(r1,n);return p.jsx(ie.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});T4.displayName=r1;function Cd(e){return e?"open":"closed"}var o1="DialogTitleWarning",[bN,i1]=iE(o1,{contentName:Mr,titleName:wd,docsSlug:"dialog"}),R4=({titleId:e})=>{const t=i1(o1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},d4=0,Qr=[];function h4(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(d4++)[0],i=m.useState(z0)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=ME([e.lockRef.current],(e.shards||[]).map(qp),!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=m.useCallback(function(v,C){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var g=Ma(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],E="deltaY"in v?v.deltaY:y[1]-g[1],_,R=v.target,T=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in v&&T==="h"&&R.type==="range")return!1;var S=Zp(T,R);if(!S)return!0;if(S?_=T:(_=T==="v"?"h":"v",S=Zp(T,R)),!S)return!1;if(!r.current&&"changedTouches"in v&&(w||E)&&(r.current=_),!_)return!0;var P=r.current||_;return u4(P,C,v,P==="h"?w:E,!0)},[]),s=m.useCallback(function(v){var C=v;if(!(!Qr.length||Qr[Qr.length-1]!==i)){var g="deltaY"in C?Jp(C):Ma(C),y=t.current.filter(function(_){return _.name===C.type&&(_.target===C.target||C.target===_.shadowParent)&&c4(_.delta,g)})[0];if(y&&y.should){C.cancelable&&C.preventDefault();return}if(!y){var w=(a.current.shards||[]).map(qp).filter(Boolean).filter(function(_){return _.contains(C.target)}),E=w.length>0?l(C,w[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=m.useCallback(function(v,C,g,y){var w={name:v,delta:C,target:g,should:y,shadowParent:p4(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=m.useCallback(function(v){n.current=Ma(v),r.current=void 0},[]),u=m.useCallback(function(v){c(v.type,Jp(v),v.target,l(v,e.lockRef.current))},[]),d=m.useCallback(function(v){c(v.type,Ma(v),v.target,l(v,e.lockRef.current))},[]);m.useEffect(function(){return Qr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Yr),document.addEventListener("touchmove",s,Yr),document.addEventListener("touchstart",f,Yr),function(){Qr=Qr.filter(function(v){return v!==i}),document.removeEventListener("wheel",s,Yr),document.removeEventListener("touchmove",s,Yr),document.removeEventListener("touchstart",f,Yr)}},[]);var h=e.removeScrollBar,x=e.inert;return m.createElement(m.Fragment,null,x?m.createElement(i,{styles:f4(o)}):null,h?m.createElement(n4,{gapMode:e.gapMode}):null)}function p4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const v4=HE(F0,h4);var gd=m.forwardRef(function(e,t){return m.createElement(fs,on({},e,{ref:t,sideCar:v4}))});gd.classNames=fs.classNames;var m4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xr=new WeakMap,Ia=new WeakMap,Oa={},su=0,H0=function(e){return e&&(e.host||H0(e.parentNode))},g4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=H0(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})},y4=function(e,t,n,r){var o=g4(t,Array.isArray(e)?e:[e]);Oa[n]||(Oa[n]=new WeakMap);var i=Oa[n],a=[],l=new Set,s=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.children,function(d){if(l.has(d))f(d);else try{var h=d.getAttribute(r),x=h!==null&&h!=="false",v=(Xr.get(d)||0)+1,C=(i.get(d)||0)+1;Xr.set(d,v),i.set(d,C),a.push(d),v===1&&x&&Ia.set(d,!0),C===1&&d.setAttribute(n,"true"),x||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return f(t),l.clear(),su++,function(){a.forEach(function(u){var d=Xr.get(u)-1,h=i.get(u)-1;Xr.set(u,d),i.set(u,h),d||(Ia.has(u)||u.removeAttribute(r),Ia.delete(u)),h||u.removeAttribute(n)}),su--,su||(Xr=new WeakMap,Xr=new WeakMap,Ia=new WeakMap,Oa={})}},V0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=m4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),y4(r,o,n,"aria-hidden")):function(){return null}},yd="Dialog",[W0,PN]=An(yd),[x4,en]=W0(yd),K0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=m.useRef(null),s=m.useRef(null),[c=!1,f]=jn({prop:r,defaultProp:o,onChange:i});return p.jsx(x4,{scope:t,triggerRef:l,contentRef:s,contentId:un(),titleId:un(),descriptionId:un(),open:c,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(u=>!u),[f]),modal:a,children:n})};K0.displayName=yd;var G0="DialogTrigger",Y0=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(G0,n),i=Fe(t,o.triggerRef);return p.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cd(o.open),...r,ref:i,onClick:oe(e.onClick,o.onOpenToggle)})});Y0.displayName=G0;var xd="DialogPortal",[w4,Q0]=W0(xd,{forceMount:void 0}),X0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=en(xd,t);return p.jsx(w4,{scope:t,forceMount:n,children:m.Children.map(r,a=>p.jsx(zt,{present:n||i.open,children:p.jsx(md,{asChild:!0,container:o,children:a})}))})};X0.displayName=xd;var Il="DialogOverlay",Z0=m.forwardRef((e,t)=>{const n=Q0(Il,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=en(Il,e.__scopeDialog);return i.modal?p.jsx(zt,{present:r||i.open,children:p.jsx(C4,{...o,ref:t})}):null});Z0.displayName=Il;var C4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(Il,n);return p.jsx(gd,{as:Lo,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ie.div,{"data-state":Cd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Mr="DialogContent",J0=m.forwardRef((e,t)=>{const n=Q0(Mr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=en(Mr,e.__scopeDialog);return p.jsx(zt,{present:r||i.open,children:i.modal?p.jsx(E4,{...o,ref:t}):p.jsx(S4,{...o,ref:t})})});J0.displayName=Mr;var E4=m.forwardRef((e,t)=>{const n=en(Mr,e.__scopeDialog),r=m.useRef(null),o=Fe(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return V0(i)},[]),p.jsx(q0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:oe(e.onFocusOutside,i=>i.preventDefault())})}),S4=m.forwardRef((e,t)=>{const n=en(Mr,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return p.jsx(q0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var s,c;(s=e.onInteractOutside)==null||s.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),q0=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=en(Mr,n),s=m.useRef(null),c=Fe(t,s);return I0(),p.jsxs(p.Fragment,{children:[p.jsx(vd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(cs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Cd(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(R4,{titleId:l.titleId}),p.jsx(k4,{contentRef:s,descriptionId:l.descriptionId})]})]})}),wd="DialogTitle",e1=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(wd,n);return p.jsx(ie.h2,{id:o.titleId,...r,ref:t})});e1.displayName=wd;var t1="DialogDescription",_4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(t1,n);return p.jsx(ie.p,{id:o.descriptionId,...r,ref:t})});_4.displayName=t1;var n1="DialogClose",T4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=en(n1,n);return p.jsx(ie.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});T4.displayName=n1;function Cd(e){return e?"open":"closed"}var r1="DialogTitleWarning",[bN,o1]=iE(r1,{contentName:Mr,titleName:wd,docsSlug:"dialog"}),R4=({titleId:e})=>{const t=o1(r1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},N4="DialogDescriptionWarning",k4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${i1(N4).contentName}}.`;return m.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},a1=G0,l1=Q0,P4=Z0,b4=J0,A4=q0,j4=t1,me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[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 Oe(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 I4="ENTRIES",s1="KEYS",u1="VALUES",et="",uu=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=Zr(this._path),n=t.node,r=t.keys;if(Zr(r)===et)return{done:!1,value:this.result()};var o=n.get(Zr(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=Zr(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 Zr(n)}).filter(function(t){return t!==et}).join("")},e.prototype.value=function(){return Zr(this._path).node.get(et)},e.prototype.result=function(){switch(this._type){case u1:return this.value();case s1:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Zr=function(e){return e[e.length-1]},O4=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}c1(e.get(h),t,n,r,o,v,a,l+h)}}}catch(B){s={error:B}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},cu=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=Oe(Ol(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Oe(Ed(a),2),s=l[0],c=l[1];try{for(var f=re(s.keys()),u=f.next();!u.done;u=f.next()){var d=u.value;if(d!==et&&d.startsWith(c)){var h=new Map;return h.set(d.slice(c.length),s.get(d)),new e(h,t)}}}catch(x){n={error:x}}finally{try{u&&!u.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,D4(this._tree,t)},e.prototype.entries=function(){return new uu(this,I4)},e.prototype.forEach=function(t){var n,r;try{for(var o=re(this),i=o.next();!i.done;i=o.next()){var a=Oe(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return O4(this._tree,t,n)},e.prototype.get=function(t){var n=bc(this._tree,t);return n!==void 0?n.get(et):void 0},e.prototype.has=function(t){var n=bc(this._tree,t);return n!==void 0&&n.has(et)},e.prototype.keys=function(){return new uu(this,s1)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=fu(this._tree,t);return r.set(et,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=fu(this._tree,t);return r.set(et,n(r.get(et))),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=fu(this._tree,t),o=r.get(et);return o===void 0&&r.set(et,o=n()),o},e.prototype.values=function(){return new uu(this,u1)},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=Oe(a.value,2),s=l[0],c=l[1];o.set(s,c)}}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}(),Ol=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!==et&&t.startsWith(l))return n.push([e,l]),Ol(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]),Ol(void 0,"",n)},bc=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!==et&&t.startsWith(a))return bc(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}}},fu=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 cu,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=jc,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 L4(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,h,x,v,C,g,y,w,E,_,R,T,S,P,b,I;return M4(this,function(D){switch(D.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||Ac.batchSize,i=t.batchWait||Ac.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];c=Oe(s.value,2),f=c[0],u=c[1];try{for(d=(S=void 0,re(u)),h=d.next();!h.done;h=d.next()){x=Oe(h.value,2),v=x[0],C=x[1];try{for(g=(b=void 0,re(C)),y=g.next();!y.done;y=g.next())w=Oe(y.value,1),E=w[0],!this._documentIds.has(E)&&(C.size<=1?u.delete(v):C.delete(E))}catch(B){b={error:B}}finally{try{y&&!y.done&&(I=g.return)&&I.call(g)}finally{if(b)throw b.error}}}}catch(B){S={error:B}}finally{try{h&&!h.done&&(P=d.return)&&P.call(d)}finally{if(S)throw S.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(B){return setTimeout(B,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 _=D.sent(),R={error:_},[3,9];case 8:try{s&&!s.done&&(T=l.return)&&T.call(l)}finally{if(R)throw R.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||pu.minDirtCount,r=r||pu.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 c=Oe(s.value,2),f=c[0],u=c[1],d=u.score,h=u.terms,x=u.match,v=h.length||1,C={id:this._documentIds.get(f),score:d*v,terms:Object.keys(x),queryTerms:h,match:x};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(g){r={error:g}}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(nv),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=me(me({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=re(this.search(t,n)),c=s.next();!c.done;c=s.next()){var f=c.value,u=f.score,d=f.terms,h=d.join(" "),x=l.get(h);x!=null?(x.score+=u,x.count+=1):l.set(h,{score:u,terms:d,count:1})}}catch(_){r={error:_}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var v=[];try{for(var C=re(l),g=C.next();!g.done;g=C.next()){var y=Oe(g.value,2),x=y[0],w=y[1],u=w.score,d=w.terms,E=w.count;v.push({suggestion:x,terms:d,score:u/E})}}catch(_){i={error:_}}finally{try{g&&!g.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return v.sort(nv),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(hu.hasOwnProperty(t))return du(hu,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,c=t.index,f=t.documentCount,u=t.nextId,d=t.documentIds,h=t.fieldIds,x=t.fieldLength,v=t.averageFieldLength,C=t.storedFields,g=t.dirtCount,y=t.serializationVersion;if(y!==1&&y!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var w=new e(n);w._documentCount=f,w._nextId=u,w._documentIds=Da(d),w._idToShortId=new Map,w._fieldIds=h,w._fieldLength=Da(x),w._avgFieldLength=v,w._storedFields=Da(C),w._dirtCount=g||0,w._index=new cu;try{for(var E=re(w._documentIds),_=E.next();!_.done;_=E.next()){var R=Oe(_.value,2),T=R[0],S=R[1];w._idToShortId.set(S,T)}}catch(M){r={error:M}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var P=re(c),b=P.next();!b.done;b=P.next()){var I=Oe(b.value,2),D=I[0],B=I[1],j=new Map;try{for(var V=(l=void 0,re(Object.keys(B))),U=V.next();!U.done;U=V.next()){var K=U.value,L=B[K];y===1&&(L=L.ds),j.set(parseInt(K,10),Da(L))}}catch(M){l={error:M}}finally{try{U&&!U.done&&(s=V.return)&&s.call(V)}finally{if(l)throw l.error}}w._index.set(D,j)}}catch(M){i={error:M}}finally{try{b&&!b.done&&(a=P.return)&&a.call(P)}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=me(me(me({},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,c=a.searchOptions,f=me(me({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,h=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),x=h.map(H4(f)),v=x.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=me(me({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(K,L){var M;return me(me({},K),(M={},M[L]=du(l.boost,L)||1,M))},{}),c=l.boostDocument,f=l.weights,u=l.maxFuzzy,d=l.bm25,h=me(me({},ev.weights),f),x=h.fuzzy,v=h.prefix,C=this._index.get(t.term),g=this.termResults(t.term,t.term,1,C,s,c,d),y,w;if(t.prefix&&(y=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,_=E<1?Math.min(u,Math.round(t.term.length*E)):E;_&&(w=this._index.fuzzyGet(t.term,_))}if(y)try{for(var R=re(y),T=R.next();!T.done;T=R.next()){var S=Oe(T.value,2),P=S[0],b=S[1],I=P.length-t.term.length;if(I){w==null||w.delete(P);var D=v*P.length/(P.length+.3*I);this.termResults(t.term,P,D,b,s,c,d,g)}}}catch(K){r={error:K}}finally{try{T&&!T.done&&(o=R.return)&&o.call(R)}finally{if(r)throw r.error}}if(w)try{for(var B=re(w.keys()),j=B.next();!j.done;j=B.next()){var P=j.value,V=Oe(w.get(P),2),U=V[0],I=V[1];if(I){var D=x*P.length/(P.length+I);this.termResults(t.term,P,D,U,s,c,d,g)}}}catch(K){i={error:K}}finally{try{j&&!j.done&&(a=B.return)&&a.call(B)}finally{if(i)throw i.error}}return g},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=me(me({},this._options.searchOptions),t);try{for(var a=re(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Oe(l.value,2),c=s[0],f=s[1],u=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(c)):1;o.set(c,{score:u,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=Sd),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce($4[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=Oe(l.value,2),c=s[0],f=s[1],u={};try{for(var d=(r=void 0,re(f)),h=d.next();!h.done;h=d.next()){var x=Oe(h.value,2),v=x[0],C=x[1];u[v]=Object.fromEntries(C)}}catch(g){r={error:g}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([c,u])}}catch(g){t={error:g}}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 c,f,u,d,h;if(s===void 0&&(s=new Map),o==null)return s;try{for(var x=re(Object.keys(i)),v=x.next();!v.done;v=x.next()){var C=v.value,g=i[C],y=this._fieldIds[C],w=o.get(y);if(w!=null){var E=w.size,_=this._avgFieldLength[y];try{for(var R=(u=void 0,re(w.keys())),T=R.next();!T.done;T=R.next()){var S=T.value;if(!this._documentIds.has(S)){this.removeTerm(y,S,n),E-=1;continue}var P=a?a(this._documentIds.get(S),n,this._storedFields.get(S)):1;if(P){var b=w.get(S),I=this._fieldLength.get(S)[y],D=U4(b,E,this._documentCount,I,_,l),B=r*g*P*D,j=s.get(S);if(j){j.score+=B,W4(j.terms,t);var V=du(j.match,n);V?V.push(C):j.match[n]=[C]}else s.set(S,{score:B,terms:[t],match:(h={},h[n]=[C],h)})}}}catch(U){u={error:U}}finally{try{T&&!T.done&&(d=R.return)&&d.call(R)}finally{if(u)throw u.error}}}}}catch(U){c={error:U}}finally{try{v&&!v.done&&(f=x.return)&&f.call(x)}finally{if(c)throw c.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,rv),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,rv),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(c){o={error:c}}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("/.vocs/search-index-717ef068.json")).json());let vu;function p1(){const[e,t]=m.useState();return m.useEffect(()=>{(async()=>{vu||(vu=G4());const n=await vu,r=z4.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)})()},[]),m.useEffect(()=>{},[]),e}var Y4="vocs_DesktopSearch_search",Q4="vocs_DesktopSearch_searchCommand",X4="Label",v1=m.forwardRef((e,t)=>p.jsx(ie.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));v1.displayName=X4;var Z4=v1,m1={exports:{}};/*!*************************************************** +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},N4="DialogDescriptionWarning",k4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${o1(N4).contentName}}.`;return m.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},i1=K0,a1=Y0,P4=X0,b4=Z0,A4=J0,j4=e1,me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[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 Oe(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 I4="ENTRIES",l1="KEYS",s1="VALUES",et="",uu=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=Zr(this._path),n=t.node,r=t.keys;if(Zr(r)===et)return{done:!1,value:this.result()};var o=n.get(Zr(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=Zr(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 Zr(n)}).filter(function(t){return t!==et}).join("")},e.prototype.value=function(){return Zr(this._path).node.get(et)},e.prototype.result=function(){switch(this._type){case s1:return this.value();case l1:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Zr=function(e){return e[e.length-1]},O4=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}u1(e.get(h),t,n,r,o,v,a,l+h)}}}catch(B){s={error:B}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},cu=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=Oe(Ol(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Oe(Ed(a),2),s=l[0],c=l[1];try{for(var f=re(s.keys()),u=f.next();!u.done;u=f.next()){var d=u.value;if(d!==et&&d.startsWith(c)){var h=new Map;return h.set(d.slice(c.length),s.get(d)),new e(h,t)}}}catch(x){n={error:x}}finally{try{u&&!u.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,D4(this._tree,t)},e.prototype.entries=function(){return new uu(this,I4)},e.prototype.forEach=function(t){var n,r;try{for(var o=re(this),i=o.next();!i.done;i=o.next()){var a=Oe(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return O4(this._tree,t,n)},e.prototype.get=function(t){var n=bc(this._tree,t);return n!==void 0?n.get(et):void 0},e.prototype.has=function(t){var n=bc(this._tree,t);return n!==void 0&&n.has(et)},e.prototype.keys=function(){return new uu(this,l1)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=fu(this._tree,t);return r.set(et,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=fu(this._tree,t);return r.set(et,n(r.get(et))),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=fu(this._tree,t),o=r.get(et);return o===void 0&&r.set(et,o=n()),o},e.prototype.values=function(){return new uu(this,s1)},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=Oe(a.value,2),s=l[0],c=l[1];o.set(s,c)}}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}(),Ol=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!==et&&t.startsWith(l))return n.push([e,l]),Ol(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]),Ol(void 0,"",n)},bc=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!==et&&t.startsWith(a))return bc(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}}},fu=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 cu,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=jc,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 L4(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,h,x,v,C,g,y,w,E,_,R,T,S,P,b,I;return M4(this,function(D){switch(D.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||Ac.batchSize,i=t.batchWait||Ac.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];c=Oe(s.value,2),f=c[0],u=c[1];try{for(d=(S=void 0,re(u)),h=d.next();!h.done;h=d.next()){x=Oe(h.value,2),v=x[0],C=x[1];try{for(g=(b=void 0,re(C)),y=g.next();!y.done;y=g.next())w=Oe(y.value,1),E=w[0],!this._documentIds.has(E)&&(C.size<=1?u.delete(v):C.delete(E))}catch(B){b={error:B}}finally{try{y&&!y.done&&(I=g.return)&&I.call(g)}finally{if(b)throw b.error}}}}catch(B){S={error:B}}finally{try{h&&!h.done&&(P=d.return)&&P.call(d)}finally{if(S)throw S.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(B){return setTimeout(B,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 _=D.sent(),R={error:_},[3,9];case 8:try{s&&!s.done&&(T=l.return)&&T.call(l)}finally{if(R)throw R.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||pu.minDirtCount,r=r||pu.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 c=Oe(s.value,2),f=c[0],u=c[1],d=u.score,h=u.terms,x=u.match,v=h.length||1,C={id:this._documentIds.get(f),score:d*v,terms:Object.keys(x),queryTerms:h,match:x};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(g){r={error:g}}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(nv),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=me(me({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=re(this.search(t,n)),c=s.next();!c.done;c=s.next()){var f=c.value,u=f.score,d=f.terms,h=d.join(" "),x=l.get(h);x!=null?(x.score+=u,x.count+=1):l.set(h,{score:u,terms:d,count:1})}}catch(_){r={error:_}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var v=[];try{for(var C=re(l),g=C.next();!g.done;g=C.next()){var y=Oe(g.value,2),x=y[0],w=y[1],u=w.score,d=w.terms,E=w.count;v.push({suggestion:x,terms:d,score:u/E})}}catch(_){i={error:_}}finally{try{g&&!g.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return v.sort(nv),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(hu.hasOwnProperty(t))return du(hu,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,c=t.index,f=t.documentCount,u=t.nextId,d=t.documentIds,h=t.fieldIds,x=t.fieldLength,v=t.averageFieldLength,C=t.storedFields,g=t.dirtCount,y=t.serializationVersion;if(y!==1&&y!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var w=new e(n);w._documentCount=f,w._nextId=u,w._documentIds=Da(d),w._idToShortId=new Map,w._fieldIds=h,w._fieldLength=Da(x),w._avgFieldLength=v,w._storedFields=Da(C),w._dirtCount=g||0,w._index=new cu;try{for(var E=re(w._documentIds),_=E.next();!_.done;_=E.next()){var R=Oe(_.value,2),T=R[0],S=R[1];w._idToShortId.set(S,T)}}catch(M){r={error:M}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var P=re(c),b=P.next();!b.done;b=P.next()){var I=Oe(b.value,2),D=I[0],B=I[1],j=new Map;try{for(var V=(l=void 0,re(Object.keys(B))),U=V.next();!U.done;U=V.next()){var K=U.value,L=B[K];y===1&&(L=L.ds),j.set(parseInt(K,10),Da(L))}}catch(M){l={error:M}}finally{try{U&&!U.done&&(s=V.return)&&s.call(V)}finally{if(l)throw l.error}}w._index.set(D,j)}}catch(M){i={error:M}}finally{try{b&&!b.done&&(a=P.return)&&a.call(P)}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=me(me(me({},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,c=a.searchOptions,f=me(me({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,h=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),x=h.map(H4(f)),v=x.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=me(me({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(K,L){var M;return me(me({},K),(M={},M[L]=du(l.boost,L)||1,M))},{}),c=l.boostDocument,f=l.weights,u=l.maxFuzzy,d=l.bm25,h=me(me({},ev.weights),f),x=h.fuzzy,v=h.prefix,C=this._index.get(t.term),g=this.termResults(t.term,t.term,1,C,s,c,d),y,w;if(t.prefix&&(y=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,_=E<1?Math.min(u,Math.round(t.term.length*E)):E;_&&(w=this._index.fuzzyGet(t.term,_))}if(y)try{for(var R=re(y),T=R.next();!T.done;T=R.next()){var S=Oe(T.value,2),P=S[0],b=S[1],I=P.length-t.term.length;if(I){w==null||w.delete(P);var D=v*P.length/(P.length+.3*I);this.termResults(t.term,P,D,b,s,c,d,g)}}}catch(K){r={error:K}}finally{try{T&&!T.done&&(o=R.return)&&o.call(R)}finally{if(r)throw r.error}}if(w)try{for(var B=re(w.keys()),j=B.next();!j.done;j=B.next()){var P=j.value,V=Oe(w.get(P),2),U=V[0],I=V[1];if(I){var D=x*P.length/(P.length+I);this.termResults(t.term,P,D,U,s,c,d,g)}}}catch(K){i={error:K}}finally{try{j&&!j.done&&(a=B.return)&&a.call(B)}finally{if(i)throw i.error}}return g},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=me(me({},this._options.searchOptions),t);try{for(var a=re(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Oe(l.value,2),c=s[0],f=s[1],u=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(c)):1;o.set(c,{score:u,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=Sd),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce($4[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=Oe(l.value,2),c=s[0],f=s[1],u={};try{for(var d=(r=void 0,re(f)),h=d.next();!h.done;h=d.next()){var x=Oe(h.value,2),v=x[0],C=x[1];u[v]=Object.fromEntries(C)}}catch(g){r={error:g}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([c,u])}}catch(g){t={error:g}}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 c,f,u,d,h;if(s===void 0&&(s=new Map),o==null)return s;try{for(var x=re(Object.keys(i)),v=x.next();!v.done;v=x.next()){var C=v.value,g=i[C],y=this._fieldIds[C],w=o.get(y);if(w!=null){var E=w.size,_=this._avgFieldLength[y];try{for(var R=(u=void 0,re(w.keys())),T=R.next();!T.done;T=R.next()){var S=T.value;if(!this._documentIds.has(S)){this.removeTerm(y,S,n),E-=1;continue}var P=a?a(this._documentIds.get(S),n,this._storedFields.get(S)):1;if(P){var b=w.get(S),I=this._fieldLength.get(S)[y],D=U4(b,E,this._documentCount,I,_,l),B=r*g*P*D,j=s.get(S);if(j){j.score+=B,W4(j.terms,t);var V=du(j.match,n);V?V.push(C):j.match[n]=[C]}else s.set(S,{score:B,terms:[t],match:(h={},h[n]=[C],h)})}}}catch(U){u={error:U}}finally{try{T&&!T.done&&(d=R.return)&&d.call(R)}finally{if(u)throw u.error}}}}}catch(U){c={error:U}}finally{try{v&&!v.done&&(f=x.return)&&f.call(x)}finally{if(c)throw c.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,rv),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,rv),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(c){o={error:c}}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("/.vocs/search-index-717ef068.json")).json());let vu;function h1(){const[e,t]=m.useState();return m.useEffect(()=>{(async()=>{vu||(vu=G4());const n=await vu,r=z4.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)})()},[]),m.useEffect(()=>{},[]),e}var Y4="vocs_DesktopSearch_search",Q4="vocs_DesktopSearch_searchCommand",X4="Label",p1=m.forwardRef((e,t)=>p.jsx(ie.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));p1.displayName=X4;var Z4=p1,v1={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()})(Jx,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r=function(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function c(f,u){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,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=h}return o(c,[{key:"getContexts",value:function(){var u=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?u=[]:NodeList.prototype.isPrototypeOf(this.ctx)?u=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?u=this.ctx:typeof this.ctx=="string"?u=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):u=[this.ctx],u.forEach(function(h){var x=d.filter(function(v){return v.contains(h)}).length>0;d.indexOf(h)===-1&&!x&&d.push(h)}),d}},{key:"getIframeContents",value:function(u,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},x=void 0;try{var v=u.contentWindow;if(x=v.document,!v||!x)throw new Error("iframe inaccessible")}catch{h()}x&&d(x)}},{key:"isIframeBlank",value:function(u){var d="about:blank",h=u.getAttribute("src").trim(),x=u.contentWindow.location.href;return x===d&&h!==d&&h}},{key:"observeIframeLoad",value:function(u,d,h){var x=this,v=!1,C=null,g=function y(){if(!v){v=!0,clearTimeout(C);try{x.isIframeBlank(u)||(u.removeEventListener("load",y),x.getIframeContents(u,d,h))}catch{h()}}};u.addEventListener("load",g),C=setTimeout(g,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,h){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,h):this.getIframeContents(u,d,h):this.observeIframeLoad(u,d,h)}catch{h()}}},{key:"waitForIframes",value:function(u,d){var h=this,x=0;this.forEachIframe(u,function(){return!0},function(v){x++,h.waitForIframes(v.querySelector("html"),function(){--x||d()})},function(v){v||d()})}},{key:"forEachIframe",value:function(u,d,h){var x=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.querySelectorAll("iframe"),g=C.length,y=0;C=Array.prototype.slice.call(C);var w=function(){--g<=0&&v(y)};g||w(),C.forEach(function(E){c.matches(E,x.exclude)?w():x.onIframeReady(E,function(_){d(E)&&(y++,h(_)),w()},w)})}},{key:"createIterator",value:function(u,d,h){return document.createNodeIterator(u,d,h,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,h){var x=u.compareDocumentPosition(h),v=Node.DOCUMENT_POSITION_PRECEDING;if(x&v)if(d!==null){var C=d.compareDocumentPosition(h),g=Node.DOCUMENT_POSITION_FOLLOWING;if(C&g)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(u){var d=u.previousNode(),h=void 0;return d===null?h=u.nextNode():h=u.nextNode()&&u.nextNode(),{prevNode:d,node:h}}},{key:"checkIframeFilter",value:function(u,d,h,x){var v=!1,C=!1;return x.forEach(function(g,y){g.val===h&&(v=y,C=g.handled)}),this.compareNodeIframe(u,d,h)?(v===!1&&!C?x.push({val:h,handled:!0}):v!==!1&&!C&&(x[v].handled=!0),!0):(v===!1&&x.push({val:h,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(u,d,h,x){var v=this;u.forEach(function(C){C.handled||v.getIframeContents(C.val,function(g){v.createInstanceOnIframe(g).forEachNode(d,h,x)})})}},{key:"iterateThroughNodes",value:function(u,d,h,x,v){for(var C=this,g=this.createIterator(d,u,x),y=[],w=[],E=void 0,_=void 0,R=function(){var S=C.getIteratorNode(g);return _=S.prevNode,E=S.node,E};R();)this.iframes&&this.forEachIframe(d,function(T){return C.checkIframeFilter(E,_,T,y)},function(T){C.createInstanceOnIframe(T).forEachNode(u,function(S){return w.push(S)},x)}),w.push(E);w.forEach(function(T){h(T)}),this.iframes&&this.handleOpenIframes(y,u,h,x),v()}},{key:"forEachNode",value:function(u,d,h){var x=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),g=C.length;g||v(),C.forEach(function(y){var w=function(){x.iterateThroughNodes(u,y,d,h,function(){--g<=0&&v()})};x.iframes?x.waitForIframes(y,w):w()})}}],[{key:"matches",value:function(u,d){var h=typeof d=="string"?[d]:d,x=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(x){var v=!1;return h.every(function(C){return x.call(u,C)?(v=!0,!1):!0}),v}else return!1}}]),c}(),l=function(){function c(f){r(this,c),this.ctx=f,this.ie=!1;var u=window.navigator.userAgent;(u.indexOf("MSIE")>-1||u.indexOf("Trident")>-1)&&(this.ie=!0)}return o(c,[{key:"log",value:function(u){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: "+u)}},{key:"escapeStr",value:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(u){return this.opt.wildcards!=="disabled"&&(u=this.setupWildcardsRegExp(u)),u=this.escapeStr(u),Object.keys(this.opt.synonyms).length&&(u=this.createSynonymsRegExp(u)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),this.opt.diacritics&&(u=this.createDiacriticsRegExp(u)),u=this.createMergedBlanksRegExp(u),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.createJoinersRegExp(u)),this.opt.wildcards!=="disabled"&&(u=this.createWildcardsRegExp(u)),u=this.createAccuracyRegExp(u),u}},{key:"createSynonymsRegExp",value:function(u){var d=this.opt.synonyms,h=this.opt.caseSensitive?"":"i",x=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var v in d)if(d.hasOwnProperty(v)){var C=d[v],g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v),y=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);g!==""&&y!==""&&(u=u.replace(new RegExp("("+this.escapeStr(g)+"|"+this.escapeStr(y)+")","gm"+h),x+("("+this.processSynomyms(g)+"|")+(this.processSynomyms(y)+")")+x))}return u}},{key:"processSynomyms",value:function(u){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),u}},{key:"setupWildcardsRegExp",value:function(u){return u=u.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),u.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(u){var d=this.opt.wildcards==="withSpaces";return u.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(u){return u.replace(/[^(|)\\]/g,function(d,h,x){var v=x.charAt(h+1);return/[(|)\\]/.test(v)||v===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){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?u.split(/\u0000+/).join("["+d.join("")+"]*"):u}},{key:"createDiacriticsRegExp",value:function(u){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ŽŻŹ"],x=[];return u.split("").forEach(function(v){h.every(function(C){if(C.indexOf(v)!==-1){if(x.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),x.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){var d=this,h="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",x=this.opt.accuracy,v=typeof x=="string"?x:x.value,C=typeof x=="string"?[]:x.limiters,g="";switch(C.forEach(function(y){g+="|"+d.escapeStr(y)}),v){case"partially":default:return"()("+u+")";case"complementary":return g="\\s"+(g||this.escapeStr(h)),"()([^"+g+"]*"+u+"[^"+g+"]*)";case"exactly":return"(^|\\s"+g+")("+u+")(?=$|\\s"+g+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,h=[];return u.forEach(function(x){d.opt.separateWordSearch?x.split(" ").forEach(function(v){v.trim()&&h.indexOf(v)===-1&&h.push(v)}):x.trim()&&h.indexOf(x)===-1&&h.push(x)}),{keywords:h.sort(function(x,v){return v.length-x.length}),length:h.length}}},{key:"isNumeric",value:function(u){return Number(parseFloat(u))==u}},{key:"checkRanges",value:function(u){var d=this;if(!Array.isArray(u)||Object.prototype.toString.call(u[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(u),[];var h=[],x=0;return u.sort(function(v,C){return v.start-C.start}).forEach(function(v){var C=d.callNoMatchOnInvalidRanges(v,x),g=C.start,y=C.end,w=C.valid;w&&(v.start=g,v.length=y-g,h.push(v),x=y)}),h}},{key:"callNoMatchOnInvalidRanges",value:function(u,d){var h=void 0,x=void 0,v=!1;return u&&typeof u.start<"u"?(h=parseInt(u.start,10),x=h+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&x-d>0&&x-h>0?v=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(u))),this.opt.noMatch(u))):(this.log("Ignoring invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:h,end:x,valid:v}}},{key:"checkWhitespaceRanges",value:function(u,d,h){var x=void 0,v=!0,C=h.length,g=d-C,y=parseInt(u.start,10)-g;return y=y>C?C:y,x=y+parseInt(u.length,10),x>C&&(x=C,this.log("End range automatically set to the max value of "+C)),y<0||x-y<0||y>C||x>C?(v=!1,this.log("Invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)):h.substring(y,x).replace(/\s+/g,"")===""&&(v=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:y,end:x,valid:v}}},{key:"getTextNodes",value:function(u){var d=this,h="",x=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(v){x.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(){u({value:h,nodes:x})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,h){var x=this.opt.element?this.opt.element:"mark",v=u.splitText(d),C=v.splitText(h-d),g=document.createElement(x);return g.setAttribute("data-markjs","true"),this.opt.className&&g.setAttribute("class",this.opt.className),g.textContent=v.textContent,v.parentNode.replaceChild(g,v),C}},{key:"wrapRangeInMappedTextNode",value:function(u,d,h,x,v){var C=this;u.nodes.every(function(g,y){var w=u.nodes[y+1];if(typeof w>"u"||w.start>d){if(!x(g.node))return!1;var E=d-g.start,_=(h>g.end?g.end:h)-g.start,R=u.value.substr(0,g.start),T=u.value.substr(_+g.start);if(g.node=C.wrapRangeInTextNode(g.node,E,_),u.value=R+T,u.nodes.forEach(function(S,P){P>=y&&(u.nodes[P].start>0&&P!==y&&(u.nodes[P].start-=_),u.nodes[P].end-=_)}),h-=_,v(g.node.previousSibling,g.start),h>g.end)d=g.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,d,h,x,v){var C=this,g=d===0?0:d+1;this.getTextNodes(function(y){y.nodes.forEach(function(w){w=w.node;for(var E=void 0;(E=u.exec(w.textContent))!==null&&E[g]!=="";)if(h(E[g],w)){var _=E.index;if(g!==0)for(var R=1;R{const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function Lc(e,t){const[n,r]=m.useState();m.useEffect(()=>{const i=tS(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=m.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 tS(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var nS="vocs_Kbd";function g1(e){return p.jsx("kbd",{...e,className:F(e.className,nS)})}var rS="vocs_KeyboardShortcut_kbdGroup",oS="vocs_KeyboardShortcut";function ho(e){const{description:t,keys:n}=e;return p.jsxs("span",{className:oS,children:[t,p.jsx("span",{className:rS,children:n.map(r=>p.jsx(g1,{children:r},r))})]})}var iS="vocs_SearchDialog_content",ov="vocs_SearchDialog_excerpt",aS="vocs_SearchDialog_overlay",lS="vocs_SearchDialog_result",iv="vocs_SearchDialog_resultIcon",sS="vocs_SearchDialog_resultSelected",uS="vocs_SearchDialog_results",cS="vocs_SearchDialog",fS="vocs_SearchDialog_searchBox",dS="vocs_SearchDialog_searchInput",Fa="vocs_SearchDialog_searchInputIcon",hS="vocs_SearchDialog_searchInputIconDesktop",pS="vocs_SearchDialog_searchInputIconMobile",vS="vocs_SearchDialog_searchShortcuts",av="vocs_SearchDialog_title",mS="vocs_SearchDialog_titleIcon",gS="vocs_SearchDialog_titles";function y1(e){const{search:t}=Xe(),n=cd(),r=m.useRef(null),o=m.useRef(null),[i,a]=Lc("filterText",""),l=eS(i,200),s=p1(),[c,f]=m.useState(-1),[u,d]=m.useState(!1),[h,x]=Lc("showDetailView",!0),v=m.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=v.length,g=v[c],y=m.useCallback(()=>{var R,T,S;if(!o.current)return;const w=new Set;for(const P of v)for(const b in P.match)w.add(b);const E=new q4(o.current);E.unmark({done(){E==null||E.markRegExp(yS(w))}});const _=o.current.querySelectorAll(`.${ov}`);for(const P of _)(R=P.querySelector('mark[data-markjs="true"]'))==null||R.scrollIntoView({block:"center"});(S=(T=o.current)==null?void 0:T.firstElementChild)==null||S.scrollIntoView({block:"start"})},[v]);return m.useEffect(()=>{if(!e.open)return;function w(E){var _;switch(E.key){case"ArrowDown":{E.preventDefault(),f(R=>{var P;let T=R+1;T>=C&&(T=0);const S=(P=o.current)==null?void 0:P.children[T];return S==null||S.scrollIntoView({block:"nearest"}),T}),d(!0);break}case"ArrowUp":{E.preventDefault(),f(R=>{var P;let T=R-1;T<0&&(T=C-1);const S=(P=o.current)==null?void 0:P.children[T];return S==null||S.scrollIntoView({block:"nearest"}),T}),d(!0);break}case"Backspace":{if(!E.metaKey)return;E.preventDefault(),a(""),(_=r.current)==null||_.focus();break}case"Enter":{if(E.target instanceof HTMLButtonElement&&E.target.type!=="submit"||!g)return;E.preventDefault(),n(g.href),e.onClose();break}}}return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[n,C,a,g,e.open,e.onClose]),m.useEffect(()=>{l!==""&&o.current&&y()},[y,l]),p.jsxs(P4,{children:[p.jsx(b4,{className:aS}),p.jsxs(A4,{onOpenAutoFocus:w=>{r.current&&(w.preventDefault(),r.current.focus()),y()},onCloseAutoFocus:()=>{f(0)},className:cS,"aria-describedby":void 0,children:[p.jsx(j4,{className:j0,children:"Search"}),p.jsxs("form",{className:fS,children:[p.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:pS,children:p.jsx(B5,{className:Fa,height:20,width:20})}),p.jsx(Z4,{htmlFor:"search-input",children:p.jsx(hd,{"aria-label":"Search",className:F(Fa,hS),height:20,width:20})}),p.jsx("input",{ref:r,tabIndex:0,className:dS,id:"search-input",onChange:w=>a(w.target.value),placeholder:"Search",type:"search",value:i}),p.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>x(w=>!w),children:p.jsx(Q5,{className:Fa,height:20,width:20})}),p.jsx("button",{"aria-label":"Reset search",type:"button",className:Fa,onClick:()=>{var w;a(""),(w=r.current)==null||w.focus()},children:"⌫"})]}),p.jsxs("ul",{className:uS,role:v.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&v.length===0&&p.jsxs("li",{children:['No results for "',p.jsx("span",{children:l}),'"']}),v.map((w,E)=>{var _;return p.jsx("li",{role:"option",className:F(lS,E===c&&sS),"aria-selected":E===c,"aria-label":[...w.titles.filter(R=>!!R),w.title].join(" > "),children:p.jsxs(ss,{to:w.href,onClick:R=>{R.metaKey||e.onClose()},onMouseEnter:()=>!u&&f(E),onFocus:()=>f(E),children:[p.jsxs("div",{className:gS,children:[w.isPage?p.jsx(G5,{className:iv}):p.jsx("span",{className:iv,children:"#"}),w.titles.filter(R=>!!R).map(R=>p.jsxs("span",{className:av,children:[p.jsx("span",{dangerouslySetInnerHTML:{__html:R}}),p.jsx(H5,{className:mS})]},R)),p.jsx("span",{className:av,children:p.jsx("span",{dangerouslySetInnerHTML:{__html:w.title}})})]}),h&&((_=w.text)==null?void 0:_.trim())&&p.jsx("div",{className:ov,children:p.jsx(P0,{className:iS,children:p.jsx("div",{dangerouslySetInnerHTML:{__html:w.html}})})})]})},w.id)})]}),p.jsxs("div",{className:vS,children:[p.jsx(ho,{description:"Navigate",keys:["↑","↓"]}),p.jsx(ho,{description:"Select",keys:["enter"]}),p.jsx(ho,{description:"Close",keys:["esc"]}),p.jsx(ho,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function yS(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function xS(){p1();const[e,t]=m.useState(!1);return m.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]),p.jsxs(a1,{open:e,onOpenChange:t,children:[p.jsx(l1,{asChild:!0,children:p.jsxs("button",{className:Y4,type:"button",children:[p.jsx(hd,{style:{marginTop:2}}),"Search",p.jsx("div",{className:Q4,children:p.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),p.jsx(y1,{open:e,onClose:()=>t(!1)})]})}var x1="vocs_DesktopTopNav_button",wS="vocs_DesktopTopNav_content",CS="vocs_DesktopTopNav_curtain",lv="vocs_DesktopTopNav_divider",mu="vocs_DesktopTopNav_group",za="vocs_DesktopTopNav_hideCompact",Mc="vocs_DesktopTopNav_icon",Dl="vocs_DesktopTopNav_item",ES="vocs_DesktopTopNav_logo",SS="vocs_DesktopTopNav_logoWrapper",_S="vocs_DesktopTopNav",sv="vocs_DesktopTopNav_section",TS="vocs_DesktopTopNav_withLogo",RS="vocs_Icon",Ic="var(--vocs_Icon_size)";function dt({className:e,label:t,icon:n,size:r,style:o}){return p.jsx("div",{"aria-label":t,className:F(RS,e),role:"img",style:{...o,...Jt({[Ic]:r})},children:p.jsx(n,{height:r,width:r})})}var NS="vocs_Logo_logoDark",kS="vocs_Logo_logoLight",gu="vocs_Logo";function PS({className:e}){const{logoUrl:t}=Xe();return t?p.jsx(p.Fragment,{children:typeof t=="string"?p.jsx("img",{alt:"Logo",className:F(e,gu),src:t}):p.jsxs(p.Fragment,{children:[p.jsx("img",{alt:"Logo",className:F(e,gu,NS),src:t.dark}),p.jsx("img",{alt:"Logo",className:F(e,gu,kS),src:t.light})]})}):null}var bS="vocs_NavLogo_logoImage",AS="vocs_NavLogo_title";function _d(){const e=Xe();return e.logoUrl?p.jsx(PS,{className:bS}):p.jsx("div",{className:AS,children:e.title})}var jS=m.createContext(void 0);function ds(e){const t=m.useContext(jS);return e||t||"ltr"}function hs(e){const t=e+"CollectionProvider",[n,r]=An(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,C=de.useRef(null),g=de.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:g,collectionRef:C,children:v})};a.displayName=t;const l=e+"CollectionSlot",s=de.forwardRef((h,x)=>{const{scope:v,children:C}=h,g=i(l,v),y=Fe(x,g.collectionRef);return p.jsx(Lo,{ref:y,children:C})});s.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",u=de.forwardRef((h,x)=>{const{scope:v,children:C,...g}=h,y=de.useRef(null),w=Fe(x,y),E=i(c,v);return de.useEffect(()=>(E.itemMap.set(y,{ref:y,...g}),()=>void E.itemMap.delete(y))),p.jsx(Lo,{[f]:"",ref:w,children:C})});u.displayName=c;function d(h){const x=i(e+"CollectionConsumer",h);return de.useCallback(()=>{const C=x.collectionRef.current;if(!C)return[];const g=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,_)=>g.indexOf(E.ref.current)-g.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function LS(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var MS="VisuallyHidden",w1=m.forwardRef((e,t)=>p.jsx(ie.span,{...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}}));w1.displayName=MS;var IS=w1,Ho="NavigationMenu",[Td,C1,OS]=hs(Ho),[Oc,DS,FS]=hs(Ho),[Rd,AN]=An(Ho,[OS,FS]),[zS,$t]=Rd(Ho),[$S,BS]=Rd(Ho),E1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:c,...f}=e,[u,d]=m.useState(null),h=Fe(t,P=>d(P)),x=ds(c),v=m.useRef(0),C=m.useRef(0),g=m.useRef(0),[y,w]=m.useState(!0),[E="",_]=jn({prop:r,onChange:P=>{const b=P!=="",I=l>0;b?(window.clearTimeout(g.current),I&&w(!1)):(window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(!0),l)),o==null||o(P)},defaultProp:i}),R=m.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>_(""),150)},[_]),T=m.useCallback(P=>{window.clearTimeout(C.current),_(P)},[_]),S=m.useCallback(P=>{E===P?window.clearTimeout(C.current):v.current=window.setTimeout(()=>{window.clearTimeout(C.current),_(P)},a)},[E,_,a]);return m.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(C.current),window.clearTimeout(g.current)},[]),p.jsx(_1,{scope:n,isRootMenu:!0,value:E,dir:x,orientation:s,rootNavigationMenu:u,onTriggerEnter:P=>{window.clearTimeout(v.current),y?S(P):T(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),R()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:R,onItemSelect:P=>{_(b=>b===P?"":P)},onItemDismiss:()=>_(""),children:p.jsx(ie.nav,{"aria-label":"Main","data-orientation":s,dir:x,...f,ref:h})})});E1.displayName=Ho;var S1="NavigationMenuSub",US=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...l}=e,s=$t(S1,n),[c="",f]=jn({prop:r,onChange:o,defaultProp:i});return p.jsx(_1,{scope:n,isRootMenu:!1,value:c,dir:s.dir,orientation:a,rootNavigationMenu:s.rootNavigationMenu,onTriggerEnter:u=>f(u),onItemSelect:u=>f(u),onItemDismiss:()=>f(""),children:p.jsx(ie.div,{"data-orientation":a,...l,ref:t})})});US.displayName=S1;var _1=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:d,onContentLeave:h}=e,[x,v]=m.useState(null),[C,g]=m.useState(new Map),[y,w]=m.useState(null);return p.jsx(zS,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:LS(l),baseId:un(),dir:o,orientation:i,viewport:x,onViewportChange:v,indicatorTrack:y,onIndicatorTrackChange:w,onTriggerEnter:at(f),onTriggerLeave:at(u),onContentEnter:at(d),onContentLeave:at(h),onItemSelect:at(s),onItemDismiss:at(c),onViewportContentChange:m.useCallback((E,_)=>{g(R=>(R.set(E,_),new Map(R)))},[]),onViewportContentRemove:m.useCallback(E=>{g(_=>_.has(E)?(_.delete(E),new Map(_)):_)},[]),children:p.jsx(Td.Provider,{scope:t,children:p.jsx($S,{scope:t,items:C,children:a})})})},T1="NavigationMenuList",R1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(T1,n),i=p.jsx(ie.ul,{"data-orientation":o.orientation,...r,ref:t});return p.jsx(ie.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:p.jsx(Td.Slot,{scope:n,children:o.isRootMenu?p.jsx(M1,{asChild:!0,children:i}):i})})});R1.displayName=T1;var N1="NavigationMenuItem",[HS,k1]=Rd(N1),P1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=un(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=m.useRef(null),s=m.useRef(null),c=m.useRef(null),f=m.useRef(()=>{}),u=m.useRef(!1),d=m.useCallback((x="start")=>{if(l.current){f.current();const v=Fc(l.current);v.length&&Pd(x==="start"?v:v.reverse())}},[]),h=m.useCallback(()=>{if(l.current){const x=Fc(l.current);x.length&&(f.current=JS(x))}},[]);return p.jsx(HS,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:h,onContentFocusOutside:h,children:p.jsx(ie.li,{...o,ref:t})})});P1.displayName=N1;var Dc="NavigationMenuTrigger",b1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=$t(Dc,e.__scopeNavigationMenu),a=k1(Dc,e.__scopeNavigationMenu),l=m.useRef(null),s=Fe(l,a.triggerRef,t),c=O1(i.baseId,a.value),f=D1(i.baseId,a.value),u=m.useRef(!1),d=m.useRef(!1),h=a.value===i.value;return p.jsxs(p.Fragment,{children:[p.jsx(Td.ItemSlot,{scope:n,value:a.value,children:p.jsx(I1,{asChild:!0,children:p.jsx(ie.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":bd(h),"aria-expanded":h,"aria-controls":f,...o,ref:s,onPointerEnter:oe(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:oe(e.onPointerMove,Fl(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:oe(e.onPointerLeave,Fl(()=>{r||(i.onTriggerLeave(),u.current=!1)})),onClick:oe(e.onClick,()=>{i.onItemSelect(a.value),d.current=h}),onKeyDown:oe(e.onKeyDown,x=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&x.key===C&&(a.onEntryKeyDown(),x.preventDefault())})})})}),h&&p.jsxs(p.Fragment,{children:[p.jsx(IS,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:x=>{const v=a.contentRef.current,C=x.relatedTarget,g=C===l.current,y=v==null?void 0:v.contains(C);(g||!y)&&a.onFocusProxyEnter(g?"start":"end")}}),i.viewport&&p.jsx("span",{"aria-owns":f})]})]})});b1.displayName=Dc;var VS="NavigationMenuLink",uv="navigationMenu.linkSelect",A1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return p.jsx(I1,{asChild:!0,children:p.jsx(ie.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:oe(e.onClick,a=>{const l=a.target,s=new CustomEvent(uv,{bubbles:!0,cancelable:!0});if(l.addEventListener(uv,c=>o==null?void 0:o(c),{once:!0}),Nc(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(ol,{bubbles:!0,cancelable:!0});Nc(l,c)}},{checkForDefaultPrevented:!1})})})});A1.displayName=VS;var Nd="NavigationMenuIndicator",WS=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(Nd,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?nd.createPortal(p.jsx(zt,{present:n||i,children:p.jsx(KS,{...r,ref:t})}),o.indicatorTrack):null});WS.displayName=Nd;var KS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(Nd,n),i=C1(n),[a,l]=m.useState(null),[s,c]=m.useState(null),f=o.orientation==="horizontal",u=!!o.value;m.useEffect(()=>{var v;const x=(v=i().find(C=>C.value===o.value))==null?void 0:v.ref.current;x&&l(x)},[i,o.value]);const d=()=>{a&&c({size:f?a.offsetWidth:a.offsetHeight,offset:f?a.offsetLeft:a.offsetTop})};return zc(a,d),zc(o.indicatorTrack,d),s?p.jsx(ie.div,{"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}}):null}),Mo="NavigationMenuContent",j1=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(Mo,e.__scopeNavigationMenu),i=k1(Mo,e.__scopeNavigationMenu),a=Fe(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.jsx(GS,{forceMount:n,...s,ref:a}):p.jsx(zt,{present:n||l,children:p.jsx(L1,{"data-state":bd(l),...s,ref:a,onPointerEnter:oe(e.onPointerEnter,o.onContentEnter),onPointerLeave:oe(e.onPointerLeave,Fl(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})})});j1.displayName=Mo;var GS=m.forwardRef((e,t)=>{const n=$t(Mo,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return qt(()=>{r(e.value,{ref:t,...e})},[e,t,r]),qt(()=>()=>o(e.value),[e.value,o]),null}),ol="navigationMenu.rootContentDismiss",L1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=$t(Mo,n),u=m.useRef(null),d=Fe(u,t),h=O1(f.baseId,r),x=D1(f.baseId,r),v=C1(n),C=m.useRef(null),{onItemDismiss:g}=f;m.useEffect(()=>{const w=u.current;if(f.isRootMenu&&w){const E=()=>{var _;g(),l(),w.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return w.addEventListener(ol,E),()=>w.removeEventListener(ol,E)}},[f.isRootMenu,e.value,o,g,l]);const y=m.useMemo(()=>{const E=v().map(b=>b.value);f.dir==="rtl"&&E.reverse();const _=E.indexOf(f.value),R=E.indexOf(f.previousValue),T=r===f.value,S=R===E.indexOf(r);if(!T&&!S)return C.current;const P=(()=>{if(_!==R){if(T&&R!==-1)return _>R?"from-end":"from-start";if(S&&_!==-1)return _>R?"to-start":"to-end"}return null})();return C.current=P,P},[f.previousValue,f.value,f.dir,v,r]);return p.jsx(M1,{asChild:!0,children:p.jsx(cs,{id:x,"aria-labelledby":h,"data-motion":y,"data-orientation":f.orientation,...c,ref:d,disableOutsidePointerEvents:!1,onDismiss:()=>{var E;const w=new Event(ol,{bubbles:!0,cancelable:!0});(E=u.current)==null||E.dispatchEvent(w)},onFocusOutside:oe(e.onFocusOutside,w=>{var _;s();const E=w.target;(_=f.rootNavigationMenu)!=null&&_.contains(E)&&w.preventDefault()}),onPointerDownOutside:oe(e.onPointerDownOutside,w=>{var T;const E=w.target,_=v().some(S=>{var P;return(P=S.ref.current)==null?void 0:P.contains(E)}),R=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(E));(_||R||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:oe(e.onKeyDown,w=>{var R;const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const T=Fc(w.currentTarget),S=document.activeElement,P=T.findIndex(D=>D===S),I=w.shiftKey?T.slice(0,P).reverse():T.slice(P+1,T.length);Pd(I)?w.preventDefault():(R=i.current)==null||R.focus()}}),onEscapeKeyDown:oe(e.onEscapeKeyDown,w=>{a.current=!0})})})}),kd="NavigationMenuViewport",YS=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!$t(kd,e.__scopeNavigationMenu).value;return p.jsx(zt,{present:n||i,children:p.jsx(QS,{...r,ref:t})})});YS.displayName=kd;var QS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=$t(kd,n),a=Fe(t,i.onViewportChange),l=BS(Mo,e.__scopeNavigationMenu),[s,c]=m.useState(null),[f,u]=m.useState(null),d=s?(s==null?void 0:s.width)+"px":void 0,h=s?(s==null?void 0:s.height)+"px":void 0,x=!!i.value,v=x?i.value:i.previousValue;return zc(f,()=>{f&&c({width:f.offsetWidth,height:f.offsetHeight})}),p.jsx(ie.div,{"data-state":bd(x),"data-orientation":i.orientation,...o,ref:a,style:{pointerEvents:!x&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":d,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:oe(e.onPointerEnter,i.onContentEnter),onPointerLeave:oe(e.onPointerLeave,Fl(i.onContentLeave)),children:Array.from(l.items).map(([g,{ref:y,forceMount:w,...E}])=>{const _=v===g;return p.jsx(zt,{present:w||_,children:p.jsx(L1,{...E,ref:pd(y,R=>{_&&R&&u(R)})})},g)})})}),XS="FocusGroup",M1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(XS,n);return p.jsx(Oc.Provider,{scope:n,children:p.jsx(Oc.Slot,{scope:n,children:p.jsx(ie.div,{dir:o.dir,...r,ref:t})})})}),cv=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ZS="FocusGroupItem",I1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=DS(n),i=$t(ZS,n);return p.jsx(Oc.ItemSlot,{scope:n,children:p.jsx(ie.button,{...r,ref:t,onKeyDown:oe(e.onKeyDown,a=>{if(["Home","End",...cv].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),cv.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>Pd(s)),a.preventDefault()}})})})});function Fc(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 Pd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function JS(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 zc(e,t){const n=at(t);qt(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function bd(e){return e?"open":"closed"}function O1(e,t){return`${e}-trigger-${t}`}function D1(e,t){return`${e}-content-${t}`}function Fl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var qS=E1,e_=R1,t_=P1,n_=b1,r_=A1,o_=j1,i_="var(--vocs_NavigationMenu_chevronDownIcon)",a_="vocs_NavigationMenu_content",l_="vocs_NavigationMenu_item",s_="vocs_NavigationMenu_link",u_="vocs_NavigationMenu_list",c_="vocs_NavigationMenu",f_="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const F1=e=>p.jsx(qS,{...e,className:F(e.className,c_)}),z1=e=>p.jsx(e_,{...e,className:F(e.className,u_)}),ps=({active:e,children:t,className:n,href:r})=>p.jsx(r_,{asChild:!0,children:p.jsx(sn,{"data-active":e,className:F(n,s_),href:r,variant:"styleless",children:t})}),$1=e=>p.jsx(t_,{...e,className:F(e.className,l_)}),B1=({active:e,className:t,...n})=>{const{basePath:r}=Xe(),o=r;return p.jsx(n_,{...n,"data-active":e,className:F(t,f_),style:Jt({[i_]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},U1=e=>p.jsx(o_,{...e,className:F(e.className,a_)});function H1(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[p.jsx("title",{children:"Discord"}),p.jsx("g",{id:"图层_2","data-name":"图层 2",children:p.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:p.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:p.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 V1(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"GitHub"}),p.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 d_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Moon"}),p.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"}),p.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 h_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Sun"}),p.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"}),p.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 W1(){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[p.jsx("title",{children:"Telegram"}),p.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 K1(){return p.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Warpcast"}),p.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 G1(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"X"}),p.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"})]})}$c.Curtain=p_;function $c(){var r,o,i,a,l,s;const e=Xe(),{showLogo:t,showSidebar:n}=Hr();return p.jsxs("div",{className:F(_S,t&&!n&&TS),children:[p.jsx(xS,{}),t&&p.jsx("div",{className:SS,children:p.jsx("div",{className:ES,children:p.jsx(ir,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:p.jsx(_d,{})})})}),p.jsx("div",{className:sv}),p.jsxs("div",{className:sv,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:mu,children:p.jsx(v_,{})}),p.jsx("div",{className:F(lv,(((o=e.topNav)==null?void 0:o.length)||0)>3?za:null)})]}),e.socials&&((i=e.socials)==null?void 0:i.length)>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(mu,(((a=e.topNav)==null?void 0:a.length)||0)>3?za:null),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((c,f)=>p.jsx("div",{className:Dl,children:p.jsx(w_,{...c})},f))}),!((l=e.theme)!=null&&l.colorScheme)&&p.jsx("div",{className:F(lv,za)})]}),!((s=e.theme)!=null&&s.colorScheme)&&p.jsx("div",{className:F(mu,za),style:{marginLeft:"-8px",marginRight:"-8px"},children:p.jsx("div",{className:Dl,children:p.jsx(g_,{})})})]})]})}function p_(){return p.jsx("div",{className:CS})}function v_(){const{topNav:e}=Xe();if(!e)return null;const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx(F1,{delayDuration:0,children:p.jsx(z1,{children:e.map((r,o)=>r.link?p.jsx(ps,{active:n.includes(r.id),className:Dl,href:r.link,children:r.text},o):r.items?p.jsxs($1,{className:Dl,children:[p.jsx(B1,{active:n.includes(r.id),children:r.text}),p.jsx(U1,{className:wS,children:p.jsx(m_,{items:r.items})})]},o):null)})})}function m_({items:e}){const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx("ul",{children:e==null?void 0:e.map((r,o)=>p.jsx(ps,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function g_(){const{toggle:e}=tE();return p.jsxs("button",{className:x1,onClick:e,type:"button",children:[p.jsx(dt,{className:F(Mc,nE),size:"20px",label:"Light",icon:h_}),p.jsx(dt,{className:F(Mc,rE),size:"20px",label:"Dark",icon:d_,style:{marginTop:"-2px"}})]})}const y_={discord:H1,github:V1,telegram:W1,warpcast:K1,x:G1},x_={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function w_({icon:e,label:t,link:n}){return p.jsx("a",{className:x1,href:n,target:"_blank",rel:"noopener noreferrer",children:p.jsx(dt,{className:Mc,label:t,icon:y_[e],size:x_[e]||"20px"})})}function C_(){return p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[p.jsx("div",{children:"Released under the MIT License."}),p.jsxs("div",{children:["Built by ",p.jsx("a",{href:"https://www.raidguild.org/",target:"_blank",children:"RaigGuild.org"})]})]})}const E_=({children:e})=>e;function S_(){const e=Ur(),t=Xe();return m.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 Y1(){const[e,t]=m.useState(!1);return m.useEffect(()=>{t(!0)},[]),e}var __="vocs_Footer_container",T_="vocs_Footer_editLink",R_="vocs_Footer_lastUpdated",N_="vocs_Footer_navigation",fv="vocs_Footer_navigationIcon",k_="vocs_Footer_navigationIcon_left",P_="vocs_Footer_navigationIcon_right",dv="vocs_Footer_navigationItem",b_="vocs_Footer_navigationItem_left",A_="vocs_Footer_navigationItem_right",hv="vocs_Footer_navigationText",pv="vocs_Footer_navigationTextInner",j_="vocs_Footer";function L_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Arrow Left"}),p.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 M_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Arrow Right"}),p.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 I_(){const{layout:e}=Hr(),t=Y1(),n=Ur(),r=m.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=m.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return p.jsxs("footer",{className:j_,children:[e==="docs"&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:__,children:[p.jsx(O_,{}),t&&n.lastUpdatedAt&&p.jsxs("div",{className:R_,children:["Last updated:"," ",p.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),p.jsx(D_,{})]}),p.jsx(C_,{})]})}function O_(){const e=S_();return e.url?p.jsx("div",{children:p.jsxs(sn,{className:T_,href:e.url,children:[p.jsx(J5,{})," ",e.text]})}):null}function D_(){const e=Y1(),t=us(),{pathname:n}=ze(),r=m.useMemo(()=>Q1(t.items||[]).filter(s=>s.link),[t]),o=m.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=m.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=cd();return m.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){const h=r[s+1],x=r[s-1];d.code==="ArrowRight"&&(h!=null&&h.link)&&(l(h.link),s++),d.code==="ArrowLeft"&&(x!=null&&x.link)&&(l(x.link),s--)}},u=d=>{d.code==="ShiftLeft"&&(c=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",u)}},[]),e?p.jsxs("div",{className:N_,children:[i?p.jsxs(sn,{className:F(dv,b_),href:i.link,variant:"styleless",children:[p.jsxs("div",{className:hv,children:[p.jsx("div",{className:F(fv,k_),style:Jt({[Ic]:"0.75em"}),children:p.jsx(dt,{label:"Previous",icon:L_})}),p.jsx("div",{className:pv,children:i.text})]}),p.jsx(ho,{description:"Previous",keys:["shift","←"]})]}):p.jsx("div",{}),a?p.jsxs(sn,{className:F(dv,A_),href:a.link,variant:"styleless",children:[p.jsxs("div",{className:hv,children:[p.jsx("div",{className:pv,style:{textAlign:"right"},children:a.text}),p.jsx("div",{className:F(fv,P_),style:Jt({[Ic]:"0.75em"}),children:p.jsx(dt,{label:"Next",icon:M_})})]}),p.jsx(ho,{description:"Next",keys:["shift","→"]})]}):p.jsx("div",{})]}):null}function Q1(e){const t=[];for(const n of e)n.link&&t.push(n),n.items&&t.push(...Q1(n.items));return t}var Ad="Collapsible",[F_,X1]=An(Ad),[z_,jd]=F_(Ad),Z1=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=jn({prop:r,defaultProp:o,onChange:a});return p.jsx(z_,{scope:n,disabled:i,contentId:un(),open:s,onOpenToggle:m.useCallback(()=>c(f=>!f),[c]),children:p.jsx(ie.div,{"data-state":Md(s),"data-disabled":i?"":void 0,...l,ref:t})})});Z1.displayName=Ad;var J1="CollapsibleTrigger",q1=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=jd(J1,n);return p.jsx(ie.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Md(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:oe(e.onClick,o.onOpenToggle)})});q1.displayName=J1;var Ld="CollapsibleContent",ey=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=jd(Ld,e.__scopeCollapsible);return p.jsx(zt,{present:n||o.open,children:({present:i})=>p.jsx($_,{...r,ref:t,present:i})})});ey.displayName=Ld;var $_=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=jd(Ld,n),[l,s]=m.useState(r),c=m.useRef(null),f=Fe(t,c),u=m.useRef(0),d=u.current,h=m.useRef(0),x=h.current,v=a.open||l,C=m.useRef(v),g=m.useRef();return m.useEffect(()=>{const y=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(y)},[]),qt(()=>{const y=c.current;if(y){g.current=g.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();u.current=w.height,h.current=w.width,C.current||(y.style.transitionDuration=g.current.transitionDuration,y.style.animationName=g.current.animationName),s(r)}},[a.open,r]),p.jsx(ie.div,{"data-state":Md(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":x?`${x}px`:void 0,...e.style},children:v&&o})});function Md(e){return e?"open":"closed"}var B_=Z1,U_=q1,H_=ey,Ln="Accordion",V_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Id,W_,K_]=hs(Ln),[vs,jN]=An(Ln,[K_,X1]),Od=X1(),ty=de.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return p.jsx(Id.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(X_,{...i,ref:t}):p.jsx(Q_,{...o,ref:t})})});ty.displayName=Ln;var[ny,G_]=vs(Ln),[ry,Y_]=vs(Ln,{collapsible:!1}),Q_=de.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=jn({prop:n,defaultProp:r,onChange:o});return p.jsx(ny,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:de.useCallback(()=>i&&s(""),[i,s]),children:p.jsx(ry,{scope:e.__scopeAccordion,collapsible:i,children:p.jsx(oy,{...a,ref:t})})})}),X_=de.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=jn({prop:n,defaultProp:r,onChange:o}),s=de.useCallback(f=>l((u=[])=>[...u,f]),[l]),c=de.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return p.jsx(ny,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c,children:p.jsx(ry,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(oy,{...i,ref:t})})})}),[Z_,ms]=vs(Ln),oy=de.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=de.useRef(null),s=Fe(l,t),c=W_(n),u=ds(o)==="ltr",d=oe(e.onKeyDown,h=>{var S;if(!V_.includes(h.key))return;const x=h.target,v=c().filter(P=>{var b;return!((b=P.ref.current)!=null&&b.disabled)}),C=v.findIndex(P=>P.ref.current===x),g=v.length;if(C===-1)return;h.preventDefault();let y=C;const w=0,E=g-1,_=()=>{y=C+1,y>E&&(y=w)},R=()=>{y=C-1,y{const{__scopeAccordion:n,value:r,...o}=e,i=ms(zl,n),a=G_(zl,n),l=Od(n),s=un(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return p.jsx(J_,{scope:n,open:c,disabled:f,triggerId:s,children:p.jsx(B_,{"data-orientation":i.orientation,"data-state":cy(c),...l,...o,ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})})});iy.displayName=zl;var ay="AccordionHeader",q_=de.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ms(Ln,n),i=Dd(ay,n);return p.jsx(ie.h3,{"data-orientation":o.orientation,"data-state":cy(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});q_.displayName=ay;var Bc="AccordionTrigger",ly=de.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ms(Ln,n),i=Dd(Bc,n),a=Y_(Bc,n),l=Od(n);return p.jsx(Id.ItemSlot,{scope:n,children:p.jsx(U_,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});ly.displayName=Bc;var sy="AccordionContent",uy=de.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ms(Ln,n),i=Dd(sy,n),a=Od(n);return p.jsx(H_,{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}})});uy.displayName=sy;function cy(e){return e?"open":"closed"}var e8=ty,t8=iy,n8=ly,r8=uy,o8="vocs_MobileSearch_searchButton";function i8(){const[e,t]=m.useState(!1);return p.jsxs(a1,{open:e,onOpenChange:t,children:[p.jsx(l1,{asChild:!0,children:p.jsx("button",{className:o8,type:"button","aria-label":"Search",children:p.jsx(hd,{height:21,width:21})})}),p.jsx(y1,{open:e,onClose:()=>t(!1)})]})}var a8="vocs_MobileTopNav_button",l8="var(--vocs_MobileTopNav_chevronDownIcon)",s8="var(--vocs_MobileTopNav_chevronUpIcon)",u8="vocs_MobileTopNav_content",c8="vocs_MobileTopNav_curtain",vv="vocs_MobileTopNav_curtainGroup",yu="vocs_MobileTopNav_curtainItem",f8="vocs_MobileTopNav_divider",$a="vocs_MobileTopNav_group",d8="vocs_MobileTopNav_icon",h8="vocs_MobileTopNav_item",p8="vocs_MobileTopNav_logo",v8="vocs_MobileTopNav_menuTitle",fy="vocs_MobileTopNav_menuTrigger",dy="vocs_MobileTopNav_navigation",m8="vocs_MobileTopNav_navigationContent",ai="vocs_MobileTopNav_navigationItem",g8="vocs_MobileTopNav_trigger",y8="vocs_MobileTopNav_navigation_compact",x8="vocs_MobileTopNav_outlinePopover",mv="vocs_MobileTopNav_outlineTrigger",w8="vocs_MobileTopNav",gv="vocs_MobileTopNav_section",C8="vocs_MobileTopNav_separator",E8="vocs_MobileTopNav_sidebarPopover",S8="vocs_MobileTopNav_topNavPopover";function _8(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var T8="vocs_Outline_heading",R8="vocs_Outline_item",N8="vocs_Outline_items",k8="vocs_Outline_link",P8="vocs_Outline_nav",b8="vocs_Outline";function hy({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Xe(),{showOutline:a}=Hr(),l=typeof a=="number"?e+a-1:t,s=m.useRef(!0),{pathname:c,hash:f}=ze(),[u,d]=m.useState([]);m.useEffect(()=>{if(typeof window>"u")return;const g=Array.from(document.querySelectorAll(`.${T0}`));d(g)},[c]);const h=m.useMemo(()=>u?u.map(g=>{const y=g.querySelector(`.${R0}`);if(!y)return null;const w=y.getBoundingClientRect(),E=y.id,_=Number(g.tagName[1]),R=g.textContent,T=window.scrollY+w.top;return _l?null:{id:E,level:_,slugTargetElement:y,text:R,topOffset:T}}).filter(Boolean):[],[u,l,e]),[x,v]=m.useState(f.replace("#",""));if(m.useEffect(()=>{if(typeof window>"u")return;const g=new IntersectionObserver(([y])=>{var E;if(!s.current)return;const w=y.target.id;if(y.isIntersecting)v(w);else{if(!(y.target.getBoundingClientRect().top>0))return;const T=h.findIndex(P=>P.id===x),S=(E=h[T-1])==null?void 0:E.id;v(S)}},{rootMargin:"0px 0px -95% 0px"});for(const y of h)g.observe(y.slugTargetElement);return()=>g.disconnect()},[x,h]),m.useEffect(()=>{if(typeof window>"u")return;const g=new IntersectionObserver(([y])=>{var E;if(!s.current)return;const w=(E=h[h.length-1])==null?void 0:E.id;y.isIntersecting?v(w):x===w&&v(h[h.length-2].id)});return g.observe(document.querySelector("[data-bottom-observer]")),()=>g.disconnect()},[x,h]),m.useEffect(()=>{if(typeof window>"u")return;const g=_8(()=>{var y,w,E;if(s.current){if(window.scrollY===0){v((y=h[0])==null?void 0:y.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 _=0;_window.removeEventListener("scroll",g)},[h]),h.length===0)return null;const C=h.filter(g=>g.level===e);return p.jsxs("aside",{className:b8,children:[p.jsxs("nav",{className:P8,children:[o&&p.jsx("h2",{className:T8,children:"On this page"}),p.jsx(py,{activeId:n?x:null,items:h,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:v})]}),Ml(i)]})}function py({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){return p.jsx("ul",{className:N8,children:n.map(({id:i,level:a,text:l})=>{const s=`#${i}`,c=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 x=[];for(let C=d;C{r==null||r(),o(i)},className:k8,children:l})}),f&&p.jsx(py,{activeId:e,levelItems:f,items:t,onClickItem:r,setActiveId:o})]},i)})})}const A8=["top","right","bottom","left"],ar=Math.min,_t=Math.max,$l=Math.round,Ba=Math.floor,lr=e=>({x:e,y:e}),j8={left:"right",right:"left",bottom:"top",top:"bottom"},L8={start:"end",end:"start"};function Uc(e,t,n){return _t(e,ar(t,n))}function kn(e,t){return typeof e=="function"?e(t):e}function Pn(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function Fd(e){return e==="x"?"y":"x"}function zd(e){return e==="y"?"height":"width"}function sr(e){return["top","bottom"].includes(Pn(e))?"y":"x"}function $d(e){return Fd(sr(e))}function M8(e,t,n){n===void 0&&(n=!1);const r=Vo(e),o=$d(e),i=zd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Bl(a)),[a,Bl(a)]}function I8(e){const t=Bl(e);return[Hc(e),t,Hc(t)]}function Hc(e){return e.replace(/start|end/g,t=>L8[t])}function O8(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 D8(e,t,n,r){const o=Vo(e);let i=O8(Pn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Hc)))),i}function Bl(e){return e.replace(/left|right|bottom|top/g,t=>j8[t])}function F8(e){return{top:0,right:0,bottom:0,left:0,...e}}function vy(e){return typeof e!="number"?F8(e):{top:e,right:e,bottom:e,left:e}}function Ul(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 yv(e,t,n){let{reference:r,floating:o}=e;const i=sr(t),a=$d(t),l=zd(a),s=Pn(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=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:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Vo(t)){case"start":h[a]-=d*(n&&c?-1:1);break;case"end":h[a]+=d*(n&&c?-1:1);break}return h}const z8=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 c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=yv(c,r,s),d=r,h={},x=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:c,padding:f=0}=kn(e,t)||{};if(c==null)return{};const u=vy(f),d={x:n,y:r},h=$d(o),x=zd(h),v=await a.getDimensions(c),C=h==="y",g=C?"top":"left",y=C?"bottom":"right",w=C?"clientHeight":"clientWidth",E=i.reference[x]+i.reference[h]-d[h]-i.floating[x],_=d[h]-i.reference[h],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let T=R?R[w]:0;(!T||!await(a.isElement==null?void 0:a.isElement(R)))&&(T=l.floating[w]||i.floating[x]);const S=E/2-_/2,P=T/2-v[x]/2-1,b=ar(u[g],P),I=ar(u[y],P),D=b,B=T-v[x]-I,j=T/2-v[x]/2+S,V=Uc(D,j,B),U=!s.arrow&&Vo(o)!=null&&j!==V&&i.reference[x]/2-(jj<=0)){var I,D;const j=(((I=i.flip)==null?void 0:I.index)||0)+1,V=T[j];if(V)return{data:{index:j,overflows:b},reset:{placement:V}};let U=(D=b.filter(K=>K.overflows[0]<=0).sort((K,L)=>K.overflows[1]-L.overflows[1])[0])==null?void 0:D.placement;if(!U)switch(h){case"bestFit":{var B;const K=(B=b.filter(L=>{if(R){const M=sr(L.placement);return M===y||M==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(M=>M>0).reduce((M,$)=>M+$,0)]).sort((L,M)=>L[1]-M[1])[0])==null?void 0:B[0];K&&(U=K);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function xv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wv(e){return A8.some(t=>e[t]>=0)}const U8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=kn(e,t);switch(r){case"referenceHidden":{const i=await Vi(t,{...o,elementContext:"reference"}),a=xv(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:wv(a)}}}case"escaped":{const i=await Vi(t,{...o,altBoundary:!0}),a=xv(i,n.floating);return{data:{escapedOffsets:a,escaped:wv(a)}}}default:return{}}}}};async function H8(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Pn(n),l=Vo(n),s=sr(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=kn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:x}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof x=="number"&&(h=l==="end"?x*-1:x),s?{x:h*f,y:d*c}:{x:d*c,y:h*f}}const V8=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 H8(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}}}}},W8=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:g,y}=C;return{x:g,y}}},...s}=kn(e,t),c={x:n,y:r},f=await Vi(t,s),u=sr(Pn(o)),d=Fd(u);let h=c[d],x=c[u];if(i){const C=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=h+f[C],w=h-f[g];h=Uc(y,h,w)}if(a){const C=u==="y"?"top":"left",g=u==="y"?"bottom":"right",y=x+f[C],w=x-f[g];x=Uc(y,x,w)}const v=l.fn({...t,[d]:h,[u]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[u]:a}}}}}},K8=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:c=!0}=kn(e,t),f={x:n,y:r},u=sr(o),d=Fd(u);let h=f[d],x=f[u];const v=kn(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,_=i.reference[d]+i.reference[w]-C.mainAxis;h_&&(h=_)}if(c){var g,y;const w=d==="y"?"width":"height",E=["top","left"].includes(Pn(o)),_=i.reference[u]-i.floating[w]+(E&&((g=a.offset)==null?void 0:g[u])||0)+(E?0:C.crossAxis),R=i.reference[u]+i.reference[w]+(E?0:((y=a.offset)==null?void 0:y[u])||0)-(E?C.crossAxis:0);x<_?x=_:x>R&&(x=R)}return{[d]:h,[u]:x}}}},G8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...c}=kn(e,t),f=await Vi(t,c),u=Pn(o),d=Vo(o),h=sr(o)==="y",{width:x,height:v}=i.floating;let C,g;u==="top"||u==="bottom"?(C=u,g=d===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=u,C=d==="end"?"top":"bottom");const y=v-f.top-f.bottom,w=x-f.left-f.right,E=ar(v-f[C],y),_=ar(x-f[g],w),R=!t.middlewareData.shift;let T=E,S=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),R&&!d){const b=_t(f.left,0),I=_t(f.right,0),D=_t(f.top,0),B=_t(f.bottom,0);h?S=x-2*(b!==0||I!==0?b+I:_t(f.left,f.right)):T=v-2*(D!==0||B!==0?D+B:_t(f.top,f.bottom))}await s({...t,availableWidth:S,availableHeight:T});const P=await a.getDimensions(l.floating);return x!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function gs(){return typeof window<"u"}function Wo(e){return my(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(my(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function my(e){return gs()?e instanceof Node||e instanceof Nt(e).Node:!1}function Ye(e){return gs()?e instanceof Element||e instanceof Nt(e).Element:!1}function cn(e){return gs()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Vc(e){return!gs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function ea(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Y8(e){return["table","td","th"].includes(Wo(e))}function ys(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bd(e){const t=Ud(),n=Ye(e)?Ft(e):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 Q8(e){let t=ur(e);for(;cn(t)&&!Io(t);){if(Bd(t))return t;if(ys(t))return null;t=ur(t)}return null}function Ud(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Io(e){return["html","body","#document"].includes(Wo(e))}function Ft(e){return Nt(e).getComputedStyle(e)}function xs(e){return Ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if(Wo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vc(e)&&e.host||fn(e);return Vc(t)?t.host:t}function gy(e){const t=ur(e);return Io(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&ea(t)?t:gy(t)}function Wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=gy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(o);if(i){const l=Wc(a);return t.concat(a,a.visualViewport||[],ea(o)?o:[],l&&n?Wi(l):[])}return t.concat(o,Wi(o,[],n))}function Wc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yy(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=$l(n)!==i||$l(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Hd(e){return Ye(e)?e:e.contextElement}function Co(e){const t=Hd(e);if(!cn(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=yy(t);let a=(i?$l(n.width):n.width)/r,l=(i?$l(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const X8=lr(0);function xy(e){const t=Nt(e);return!Ud()||!t.visualViewport?X8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z8(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function Ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Hd(e);let a=lr(1);t&&(r?Ye(r)&&(a=Co(r)):a=Co(e));const l=Z8(i,n,r)?xy(i):lr(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,u=o.height/a.y;if(i){const d=Nt(i),h=r&&Ye(r)?Nt(r):r;let x=d,v=Wc(x);for(;v&&r&&h!==x;){const C=Co(v),g=v.getBoundingClientRect(),y=Ft(v),w=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*C.x,E=g.top+(v.clientTop+parseFloat(y.paddingTop))*C.y;s*=C.x,c*=C.y,f*=C.x,u*=C.y,s+=w,c+=E,x=Nt(v),v=Wc(x)}}return Ul({width:f,height:u,x:s,y:c})}function J8(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=fn(r),l=t?ys(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=lr(1);const f=lr(0),u=cn(r);if((u||!u&&!i)&&((Wo(r)!=="body"||ea(a))&&(s=xs(r)),cn(r))){const d=Ir(r);c=Co(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function q8(e){return Array.from(e.getClientRects())}function Kc(e,t){const n=xs(e).scrollLeft;return t?t.left+n:Ir(fn(e)).left+n}function e7(e){const t=fn(e),n=xs(e),r=e.ownerDocument.body,o=_t(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_t(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kc(e);const l=-n.scrollTop;return Ft(r).direction==="rtl"&&(a+=_t(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function t7(e,t){const n=Nt(e),r=fn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const c=Ud();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function n7(e,t){const n=Ir(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cn(e)?Co(e):lr(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Cv(e,t,n){let r;if(t==="viewport")r=t7(e,n);else if(t==="document")r=e7(fn(e));else if(Ye(t))r=n7(t,n);else{const o=xy(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ul(r)}function wy(e,t){const n=ur(e);return n===t||!Ye(n)||Io(n)?!1:Ft(n).position==="fixed"||wy(n,t)}function r7(e,t){const n=t.get(e);if(n)return n;let r=Wi(e,[],!1).filter(l=>Ye(l)&&Wo(l)!=="body"),o=null;const i=Ft(e).position==="fixed";let a=i?ur(e):e;for(;Ye(a)&&!Io(a);){const l=Ft(a),s=Bd(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ea(a)&&!s&&wy(e,a))?r=r.filter(f=>f!==a):o=l,a=ur(a)}return t.set(e,r),r}function o7(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ys(t)?[]:r7(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=Cv(t,f,o);return c.top=_t(u.top,c.top),c.right=ar(u.right,c.right),c.bottom=ar(u.bottom,c.bottom),c.left=_t(u.left,c.left),c},Cv(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function i7(e){const{width:t,height:n}=yy(e);return{width:t,height:n}}function a7(e,t,n){const r=cn(t),o=fn(t),i=n==="fixed",a=Ir(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=lr(0);if(r||!r&&!i)if((Wo(t)!=="body"||ea(o))&&(l=xs(t)),r){const h=Ir(t,!0,i,t);s.x=h.x+t.clientLeft,s.y=h.y+t.clientTop}else o&&(s.x=Kc(o));let c=0,f=0;if(o&&!r&&!i){const h=o.getBoundingClientRect();f=h.top+l.scrollTop,c=h.left+l.scrollLeft-Kc(o,h)}const u=a.left+l.scrollLeft-s.x-c,d=a.top+l.scrollTop-s.y-f;return{x:u,y:d,width:a.width,height:a.height}}function xu(e){return Ft(e).position==="static"}function Ev(e,t){if(!cn(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function Cy(e,t){const n=Nt(e);if(ys(e))return n;if(!cn(e)){let o=ur(e);for(;o&&!Io(o);){if(Ye(o)&&!xu(o))return o;o=ur(o)}return n}let r=Ev(e,t);for(;r&&Y8(r)&&xu(r);)r=Ev(r,t);return r&&Io(r)&&xu(r)&&!Bd(r)?n:r||Q8(e)||n}const l7=async function(e){const t=this.getOffsetParent||Cy,n=this.getDimensions,r=await n(e.floating);return{reference:a7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function s7(e){return Ft(e).direction==="rtl"}const u7={convertOffsetParentRelativeRectToViewportRelativeRect:J8,getDocumentElement:fn,getClippingRect:o7,getOffsetParent:Cy,getElementRects:l7,getClientRects:q8,getDimensions:i7,getScale:Co,isElement:Ye,isRTL:s7};function c7(e,t){let n=null,r;const o=fn(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:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const h=Ba(f),x=Ba(o.clientWidth-(c+u)),v=Ba(o.clientHeight-(f+d)),C=Ba(c),y={rootMargin:-h+"px "+-x+"px "+-v+"px "+-C+"px",threshold:_t(0,ar(1,s))||1};let w=!0;function E(_){const R=_[0].intersectionRatio;if(R!==s){if(!w)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(e)}return a(!0),i}function f7(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,c=Hd(e),f=o||i?[...c?Wi(c):[],...Wi(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=c&&l?c7(c,n):null;let d=-1,h=null;a&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),c&&!s&&h.observe(c),h.observe(t));let x,v=s?Ir(e):null;s&&C();function C(){const g=Ir(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,x=requestAnimationFrame(C)}return n(),()=>{var g;f.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),u==null||u(),(g=h)==null||g.disconnect(),h=null,s&&cancelAnimationFrame(x)}}const d7=V8,h7=W8,p7=B8,v7=G8,m7=U8,Sv=$8,g7=K8,y7=(e,t,n)=>{const r=new Map,o={platform:u7,...n},i={...o.platform,_c:r};return z8(e,t,{...o,platform:i})};var il=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Hl(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(!Hl(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)&&!Hl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ey(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _v(e,t){const n=Ey(e);return Math.round(t*n)/n}function wu(e){const t=m.useRef(e);return il(()=>{t.current=e}),t}function Sy(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:c}=e,[f,u]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=m.useState(r);Hl(d,r)||h(r);const[x,v]=m.useState(null),[C,g]=m.useState(null),y=m.useCallback(L=>{L!==R.current&&(R.current=L,v(L))},[]),w=m.useCallback(L=>{L!==T.current&&(T.current=L,g(L))},[]),E=i||x,_=a||C,R=m.useRef(null),T=m.useRef(null),S=m.useRef(f),P=s!=null,b=wu(s),I=wu(o),D=wu(c),B=m.useCallback(()=>{if(!R.current||!T.current)return;const L={placement:t,strategy:n,middleware:d};I.current&&(L.platform=I.current),y7(R.current,T.current,L).then(M=>{const $={...M,isPositioned:D.current!==!1};j.current&&!Hl(S.current,$)&&(S.current=$,$o.flushSync(()=>{u($)}))})},[d,t,n,I,D]);il(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[c]);const j=m.useRef(!1);il(()=>(j.current=!0,()=>{j.current=!1}),[]),il(()=>{if(E&&(R.current=E),_&&(T.current=_),E&&_){if(b.current)return b.current(E,_,B);B()}},[E,_,B,b,P]);const V=m.useMemo(()=>({reference:R,floating:T,setReference:y,setFloating:w}),[y,w]),U=m.useMemo(()=>({reference:E,floating:_}),[E,_]),K=m.useMemo(()=>{const L={position:n,left:0,top:0};if(!U.floating)return L;const M=_v(U.floating,f.x),$=_v(U.floating,f.y);return l?{...L,transform:"translate("+M+"px, "+$+"px)",...Ey(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:$}},[n,l,U.floating,f.x,f.y]);return m.useMemo(()=>({...f,update:B,refs:V,elements:U,floatingStyles:K}),[f,B,V,U,K])}const x7=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?Sv({element:r.current,padding:o}).fn(n):{}:r?Sv({element:r,padding:o}).fn(n):{}}}},_y=(e,t)=>({...d7(e),options:[e,t]}),Ty=(e,t)=>({...h7(e),options:[e,t]}),w7=(e,t)=>({...g7(e),options:[e,t]}),C7=(e,t)=>({...p7(e),options:[e,t]}),E7=(e,t)=>({...v7(e),options:[e,t]}),S7=(e,t)=>({...m7(e),options:[e,t]}),Ry=(e,t)=>({...x7(e),options:[e,t]});var _7="Arrow",Ny=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(ie.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ny.displayName=_7;var T7=Ny;function R7(e){const[t,n]=m.useState(void 0);return qt(()=>{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,c=Array.isArray(s)?s[0]:s;a=c.inlineSize,l=c.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}var Vd="Popper",[ky,Py]=An(Vd),[N7,by]=ky(Vd),Ay=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return p.jsx(N7,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ay.displayName=Vd;var jy="PopperAnchor",Ly=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=by(jy,n),a=m.useRef(null),l=Fe(t,a);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ie.div,{...o,ref:l})});Ly.displayName=jy;var Wd="PopperContent",[k7,P7]=ky(Wd),My=m.forwardRef((e,t)=>{var Pe,ce,Ie,st,At,Bt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:x,...v}=e,C=by(Wd,n),[g,y]=m.useState(null),w=Fe(t,gr=>y(gr)),[E,_]=m.useState(null),R=R7(E),T=(R==null?void 0:R.width)??0,S=(R==null?void 0:R.height)??0,P=r+(i!=="center"?"-"+i:""),b=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(c)?c:[c],D=I.length>0,B={padding:b,boundary:I.filter(A7),altBoundary:D},{refs:j,floatingStyles:V,placement:U,isPositioned:K,middlewareData:L}=Sy({strategy:"fixed",placement:P,whileElementsMounted:(...gr)=>f7(...gr,{animationFrame:h==="always"}),elements:{reference:C.anchor},middleware:[_y({mainAxis:o+S,alignmentAxis:a}),s&&Ty({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?w7():void 0,...B}),s&&C7({...B}),E7({...B,apply:({elements:gr,rects:We,availableWidth:Mn,availableHeight:na})=>{const{width:Cs,height:dn}=We.reference,Vr=gr.floating.style;Vr.setProperty("--radix-popper-available-width",`${Mn}px`),Vr.setProperty("--radix-popper-available-height",`${na}px`),Vr.setProperty("--radix-popper-anchor-width",`${Cs}px`),Vr.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),E&&Ry({element:E,padding:l}),j7({arrowWidth:T,arrowHeight:S}),d&&S7({strategy:"referenceHidden",...B})]}),[M,$]=Dy(U),J=at(x);qt(()=>{K&&(J==null||J())},[K,J]);const le=(Pe=L.arrow)==null?void 0:Pe.x,Ce=(ce=L.arrow)==null?void 0:ce.y,Le=((Ie=L.arrow)==null?void 0:Ie.centerOffset)!==0,[Ze,Me]=m.useState();return qt(()=>{g&&Me(window.getComputedStyle(g).zIndex)},[g]),p.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ze,"--radix-popper-transform-origin":[(st=L.transformOrigin)==null?void 0:st.x,(At=L.transformOrigin)==null?void 0:At.y].join(" "),...((Bt=L.hide)==null?void 0:Bt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(k7,{scope:n,placedSide:M,onArrowChange:_,arrowX:le,arrowY:Ce,shouldHideArrow:Le,children:p.jsx(ie.div,{"data-side":M,"data-align":$,...v,ref:w,style:{...v.style,animation:K?void 0:"none"}})})})});My.displayName=Wd;var Iy="PopperArrow",b7={top:"bottom",right:"left",bottom:"top",left:"right"},Oy=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=P7(Iy,r),a=b7[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(T7,{...o,ref:n,style:{...o.style,display:"block"}})})});Oy.displayName=Iy;function A7(e){return e!==null}var j7=e=>({name:"transformOrigin",options:e,fn(t){var C,g,y;const{placement:n,rects:r,middlewareData:o}=t,a=((C=o.arrow)==null?void 0:C.centerOffset)!==0,l=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,f]=Dy(n),u={start:"0%",center:"50%",end:"100%"}[f],d=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+s/2;let x="",v="";return c==="bottom"?(x=a?u:`${d}px`,v=`${-s}px`):c==="top"?(x=a?u:`${d}px`,v=`${r.floating.height+s}px`):c==="right"?(x=`${-s}px`,v=a?u:`${h}px`):c==="left"&&(x=`${r.floating.width+s}px`,v=a?u:`${h}px`),{data:{x,y:v}}}});function Dy(e){const[t,n="center"]=e.split("-");return[t,n]}var L7=Ay,Fy=Ly,M7=My,I7=Oy,Kd="Popover",[zy,LN]=An(Kd,[Py]),ta=Py(),[O7,mr]=zy(Kd),$y=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=ta(t),s=m.useRef(null),[c,f]=m.useState(!1),[u=!1,d]=jn({prop:r,defaultProp:o,onChange:i});return p.jsx(L7,{...l,children:p.jsx(O7,{scope:t,contentId:un(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:c,onCustomAnchorAdd:m.useCallback(()=>f(!0),[]),onCustomAnchorRemove:m.useCallback(()=>f(!1),[]),modal:a,children:n})})};$y.displayName=Kd;var By="PopoverAnchor",D7=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(By,n),i=ta(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return m.useEffect(()=>(a(),()=>l()),[a,l]),p.jsx(Fy,{...i,...r,ref:t})});D7.displayName=By;var Uy="PopoverTrigger",Hy=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(Uy,n),i=ta(n),a=Fe(t,o.triggerRef),l=p.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yy(o.open),...r,ref:a,onClick:oe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:p.jsx(Fy,{asChild:!0,...i,children:l})});Hy.displayName=Uy;var Gd="PopoverPortal",[F7,z7]=zy(Gd,{forceMount:void 0}),Vy=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=mr(Gd,t);return p.jsx(F7,{scope:t,forceMount:n,children:p.jsx(zt,{present:n||i.open,children:p.jsx(md,{asChild:!0,container:o,children:r})})})};Vy.displayName=Gd;var Oo="PopoverContent",Wy=m.forwardRef((e,t)=>{const n=z7(Oo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=mr(Oo,e.__scopePopover);return p.jsx(zt,{present:r||i.open,children:i.modal?p.jsx($7,{...o,ref:t}):p.jsx(B7,{...o,ref:t})})});Wy.displayName=Oo;var $7=m.forwardRef((e,t)=>{const n=mr(Oo,e.__scopePopover),r=m.useRef(null),o=Fe(t,r),i=m.useRef(!1);return m.useEffect(()=>{const a=r.current;if(a)return W0(a)},[]),p.jsx(gd,{as:Lo,allowPinchZoom:!0,children:p.jsx(Ky,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,c=l.button===2||s;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:oe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),B7=m.forwardRef((e,t)=>{const n=mr(Oo,e.__scopePopover),r=m.useRef(!1),o=m.useRef(!1);return p.jsx(Ky,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var s,c;(s=e.onInteractOutside)==null||s.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Ky=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,...u}=e,d=mr(Oo,n),h=ta(n);return O0(),p.jsx(vd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(cs,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:p.jsx(M7,{"data-state":Yy(d.open),role:"dialog",id:d.contentId,...h,...u,ref:t,style:{...u.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)"}})})})}),Gy="PopoverClose",U7=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(Gy,n);return p.jsx(ie.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});U7.displayName=Gy;var H7="PopoverArrow",V7=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ta(n);return p.jsx(I7,{...o,...r,ref:t})});V7.displayName=H7;function Yy(e){return e?"open":"closed"}var W7=$y,K7=Hy,G7=Vy,Y7=Wy,Q7="vocs_Popover";Gt.Root=W7;Gt.Trigger=K7;function Gt({children:e,className:t}){return p.jsx(G7,{children:p.jsx(Y7,{className:F(Q7,t),sideOffset:12,children:e})})}var X7="vocs_Sidebar_backLink",Z7="vocs_Sidebar_divider",J7="vocs_Sidebar_group",pi="vocs_Sidebar_item",Qy="vocs_Sidebar_items",q7="vocs_Sidebar_level",e6="vocs_Sidebar_levelCollapsed",t6="vocs_Sidebar_levelInset",n6="vocs_Sidebar_logo",r6="vocs_Sidebar_logoWrapper",o6="vocs_Sidebar_navigation",i6="vocs_Sidebar",Xy="vocs_Sidebar_section",a6="vocs_Sidebar_sectionCollapse",l6="vocs_Sidebar_sectionCollapseActive",s6="vocs_Sidebar_sectionHeader",u6="vocs_Sidebar_sectionHeaderActive",Tv="vocs_Sidebar_sectionTitle",c6="vocs_Sidebar_sectionTitleLink";function Zy(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Chevron Right"}),p.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 Jy(e){var c;const{className:t,onClickItem:n}=e,{previousPath:r}=Ur(),o=m.useRef(null),i=us(),[a,l]=m.useState("/");if(m.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=f6(i.items);return p.jsxs("aside",{ref:o,className:F(i6,t),children:[p.jsxs("div",{className:r6,children:[p.jsx("div",{className:n6,children:p.jsx(ir,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:p.jsx(_d,{})})}),p.jsx("div",{className:Z7})]}),p.jsx("nav",{className:o6,children:p.jsxs("div",{className:J7,children:[i.backLink&&p.jsx("section",{className:Xy,children:p.jsx("div",{className:Qy,children:p.jsxs(ir,{className:F(pi,X7),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>p.jsx(ex,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function f6(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 qy(e,t){return e.find(n=>Hi(t,n.link??"")||n.link===t?!0:n.items?qy(n.items,t):!1)}function ex(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=m.useRef(null),{pathname:a}=ze(),l=_C(n.link||""),s=m.useMemo(()=>n.items?!!qy(n.items,a):!1,[n.items,a]),[c,f]=m.useState(()=>n.link&&l||!n.items||s?!1:!!n.collapsed),u=n.collapsed!==void 0&&n.items!==void 0,d=m.useCallback(v=>{"key"in v&&v.key!=="Enter"||f(C=>!C)},[]),h=m.useCallback(v=>{"key"in v&&v.key!=="Enter"||f(C=>!C)},[]),x=m.useRef(!0);return m.useEffect(()=>{!x.current||(x.current=!1,!Hi(a,n.link??""))||requestAnimationFrame(()=>{var y,w,E;const C=((y=i.current)==null?void 0:y.offsetTop)??0,g=((w=o==null?void 0:o.current)==null?void 0:w.clientHeight)??0;C{r==null||r(v),d(v)},className:F(t===0?[Tv,c6]:pi,s&&u6),to:n.link,children:n.text}):p.jsx("div",{className:F(t===0?Tv:pi),children:n.text})),u&&p.jsx("div",{role:"button",tabIndex:0,onClick:h,onKeyDown:h,children:p.jsx(dt,{className:F(a6,c&&l6),label:"toggle section",icon:Zy,size:"10px"})})]}),!c&&p.jsx("div",{className:F(Qy,t!==0&&t6),children:n.items&&n.items.length>0&&t<5&&n.items.map((v,C)=>p.jsx(ex,{depth:t+1,item:v,onClick:r,sidebarRef:o},`${v.text}${C}`))})]}):p.jsx(p.Fragment,{children:n.link?p.jsx(ir,{ref:i,"data-active":!!l,onClick:r,className:pi,to:n.link,children:n.text}):p.jsx("div",{className:pi,children:n.text})})}function d6(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Chevron Down"}),p.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 h6(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Chevron Up"}),p.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 p6(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[p.jsx("title",{children:"Menu"}),p.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"})]})}Gc.Curtain=C6;function Gc(){var n,r;const e=Xe(),{showLogo:t}=Hr();return p.jsxs("div",{className:w8,children:[p.jsxs("div",{className:gv,children:[t&&p.jsx("div",{className:$a,children:p.jsx("div",{className:p8,children:p.jsx(ir,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:p.jsx(_d,{})})})}),e.topNav&&p.jsx(p.Fragment,{children:p.jsxs("div",{className:$a,children:[p.jsx(v6,{items:e.topNav}),p.jsx(g6,{items:e.topNav})]})})]}),p.jsxs("div",{className:gv,children:[p.jsx("div",{className:$a,style:{marginRight:"-8px"},children:p.jsx(i8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:f8}),p.jsx("div",{className:$a,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>p.jsx(w6,{...o},i))})]})]})]})}function v6({items:e}){const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx(F1,{className:dy,children:p.jsx(z1,{children:e.map((r,o)=>r!=null&&r.link?p.jsx(ps,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):p.jsxs($1,{className:h8,children:[p.jsx(B1,{active:n==null?void 0:n.includes(r.id),children:r.text}),p.jsx(U1,{className:u8,children:p.jsx(m6,{items:r.items||[]})})]},o))})})}function m6({items:e}){const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx("ul",{children:e==null?void 0:e.map((r,o)=>p.jsx(ps,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function g6({items:e}){var s;const[t,n]=m.useState(!1),{pathname:r}=ze(),o=qi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Xe(),l=a;return p.jsx("div",{className:F(dy,y8),children:i?p.jsxs(Gt.Root,{modal:!0,open:t,onOpenChange:n,children:[p.jsxs(Gt.Trigger,{className:F(fy,ai),children:[i.text,p.jsx(dt,{label:"Menu",icon:d6,size:"11px"})]}),p.jsx(Gt,{className:S8,children:p.jsx(e8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?p.jsx(sn,{"data-active":o.includes(c.id),className:ai,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):p.jsxs(t8,{value:f.toString(),children:[p.jsx(n8,{className:F(ai,g8),"data-active":o.includes(c.id),style:Jt({[l8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[s8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),p.jsx(r8,{className:m8,children:(u=c.items)==null?void 0:u.map((d,h)=>p.jsx(sn,{className:ai,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},h))})]},f)})})})]}):(s=e[0])!=null&&s.link?p.jsx(sn,{className:ai,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const y6={discord:H1,github:V1,telegram:W1,warpcast:K1,x:G1},x6={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function w6({icon:e,label:t,link:n,type:r}){return p.jsx("a",{className:a8,href:n,target:"_blank",rel:"noopener noreferrer",children:p.jsx(dt,{className:d8,label:t,icon:y6[e],size:x6[r]||"18px"})})}function C6({enableScrollToTop:e}){const{pathname:t}=ze(),{layout:n,showSidebar:r}=Hr(),{frontmatter:o={}}=Ur(),i=us(),[a,l]=m.useState(!1),[s,c]=m.useState(!1),f=m.useMemo(()=>{if(!i||n==="minimal")return;const h=tx({sidebarItems:i.items,pathname:t});return h==null?void 0:h.text},[n,t,i]),u=m.useMemo(()=>{var h;if(!(typeof window>"u"))return(h=document.querySelector(".vocs_Content h1"))==null?void 0:h.textContent},[]),d=f||o.title||u;return p.jsxs("div",{className:c8,children:[p.jsx("div",{className:vv,children:p.jsx("div",{className:yu,children:r?p.jsxs(Gt.Root,{modal:!0,open:s,onOpenChange:c,children:[p.jsxs(Gt.Trigger,{className:fy,children:[p.jsx(dt,{label:"Menu",icon:p6,size:"13px"}),p.jsx("div",{className:v8,children:d})]}),p.jsx(Gt,{className:E8,children:p.jsx(Jy,{onClickItem:()=>c(!1)})})]}):d})}),p.jsxs("div",{className:vv,children:[e&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:yu,children:p.jsxs("button",{className:mv,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",p.jsx(dt,{label:"Scroll to top",icon:h6,size:"10px"})]})}),p.jsx("div",{className:C8})]}),n==="docs"&&p.jsx("div",{className:yu,children:p.jsxs(Gt.Root,{modal:!0,open:a,onOpenChange:l,children:[p.jsxs(Gt.Trigger,{className:mv,children:["On this page",p.jsx(dt,{label:"On this page",icon:Zy,size:"10px"})]}),p.jsx(Gt,{className:x8,children:p.jsx(hy,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function tx({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=tx({sidebarItems:r.items,pathname:n});if(o)return o}}}var E6="vocs_SkipLink";const nx="vocs-content";function S6(){const{pathname:e}=ze();return p.jsx("a",{className:F(E6,j0),href:`${e}#${nx}`,children:"Skip to content"})}var _6="vocs_DocsLayout_content",T6="vocs_DocsLayout_content_withSidebar",R6="vocs_DocsLayout_content_withTopNav",N6="vocs_DocsLayout_gutterLeft",k6="vocs_DocsLayout_gutterRight",P6="vocs_DocsLayout_gutterRight_withSidebar",b6="vocs_DocsLayout_gutterTop",A6="vocs_DocsLayout_gutterTopCurtain",j6="vocs_DocsLayout_gutterTopCurtain_hidden",L6="vocs_DocsLayout_gutterTopCurtain_withSidebar",M6="vocs_DocsLayout_gutterTop_offsetLeftGutter",I6="vocs_DocsLayout_gutterTop_sticky",O6="vocs_DocsLayout",D6="vocs_DocsLayout_sidebar";function Yc({children:e}){var h,x;const{banner:t,font:n}=Xe(),{frontmatter:r={}}=Ur(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Hr(),{ref:c,inView:f}=_0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=Lc("banner",!0);return p.jsxs("div",{className:O6,"data-layout":i,style:Jt({[A5]:u?t==null?void 0:t.height:void 0,[Op.default]:(h=n==null?void 0:n.default)!=null&&h.google?`${n.default.google}, ${Ip.default}`:void 0,[Op.mono]:(x=n==null?void 0:n.mono)!=null&&x.google?`${n.mono.google}, ${Ip.mono}`:void 0}),children:[p.jsx(S6,{}),u&&p.jsx(q5,{hide:()=>d(!1)}),l&&p.jsx("div",{className:N6,children:p.jsx(Jy,{className:D6})}),s&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{ref:c,className:F(b6,l&&M6,(i==="minimal"||i==="landing")&&I6),children:[p.jsx($c,{}),p.jsx(Gc,{})]}),p.jsxs("div",{className:F(A6,l&&L6,(i==="minimal"||i==="landing")&&j6),children:[p.jsx($c.Curtain,{}),p.jsx(Gc.Curtain,{enableScrollToTop:!f})]})]}),a&&p.jsx("div",{className:F(k6,l&&P6),children:p.jsx(hy,{})}),p.jsxs("div",{id:nx,className:F(_6,l&&T6,s&&R6),style:Jt({[eu.horizontalPadding]:o==null?void 0:o.horizontalPadding,[eu.width]:o==null?void 0:o.width,[eu.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[p.jsx(P0,{children:e}),p.jsx(I_,{})]}),p.jsx("div",{"data-bottom-observer":!0})]})}const Qc={},rx=de.createContext(Qc);function F6(e){const t=de.useContext(rx);return de.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function z6(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Qc):e.components||Qc:t=F6(e.components),de.createElement(rx.Provider,{value:t},e.children)}var ox={exports:{}},$6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",B6=$6,U6=B6;function ix(){}function ax(){}ax.resetWarningCache=ix;var H6=function(){function e(r,o,i,a,l,s){if(s!==U6){var c=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 c.name="Invariant Violation",c}}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:ax,resetWarningCache:ix};return n.PropTypes=n,n};ox.exports=H6();var V6=ox.exports;const Ee=cr(V6);function W6(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var lx=m,K6=W6(lx);function Rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Y6=!!(typeof window<"u"&&window.document&&window.document.createElement);function Q6(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})),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(f){G6(u,f);function u(){return f.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var x=l;return l=void 0,a=[],x};var d=u.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var x=a.indexOf(this);a.splice(x,1),s()},d.render=function(){return K6.createElement(i,this.props)},u}(lx.PureComponent);return Rv(c,"displayName","SideEffect("+r(i)+")"),Rv(c,"canUseDOM",Y6),c}}var X6=Q6;const Z6=cr(X6);var J6=typeof Element<"u",q6=typeof Map=="function",eT=typeof Set=="function",tT=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function al(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(!al(e[r],t[r]))return!1;return!0}var i;if(q6&&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(!al(r.value[1],t.get(r.value[0])))return!1;return!0}if(eT&&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(tT&&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(J6&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!al(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var nT=function(t,n){try{return al(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 rT=cr(nT);/* +*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(Zx,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r=function(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function c(f,u){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,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=h}return o(c,[{key:"getContexts",value:function(){var u=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?u=[]:NodeList.prototype.isPrototypeOf(this.ctx)?u=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?u=this.ctx:typeof this.ctx=="string"?u=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):u=[this.ctx],u.forEach(function(h){var x=d.filter(function(v){return v.contains(h)}).length>0;d.indexOf(h)===-1&&!x&&d.push(h)}),d}},{key:"getIframeContents",value:function(u,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},x=void 0;try{var v=u.contentWindow;if(x=v.document,!v||!x)throw new Error("iframe inaccessible")}catch{h()}x&&d(x)}},{key:"isIframeBlank",value:function(u){var d="about:blank",h=u.getAttribute("src").trim(),x=u.contentWindow.location.href;return x===d&&h!==d&&h}},{key:"observeIframeLoad",value:function(u,d,h){var x=this,v=!1,C=null,g=function y(){if(!v){v=!0,clearTimeout(C);try{x.isIframeBlank(u)||(u.removeEventListener("load",y),x.getIframeContents(u,d,h))}catch{h()}}};u.addEventListener("load",g),C=setTimeout(g,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,h){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,h):this.getIframeContents(u,d,h):this.observeIframeLoad(u,d,h)}catch{h()}}},{key:"waitForIframes",value:function(u,d){var h=this,x=0;this.forEachIframe(u,function(){return!0},function(v){x++,h.waitForIframes(v.querySelector("html"),function(){--x||d()})},function(v){v||d()})}},{key:"forEachIframe",value:function(u,d,h){var x=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.querySelectorAll("iframe"),g=C.length,y=0;C=Array.prototype.slice.call(C);var w=function(){--g<=0&&v(y)};g||w(),C.forEach(function(E){c.matches(E,x.exclude)?w():x.onIframeReady(E,function(_){d(E)&&(y++,h(_)),w()},w)})}},{key:"createIterator",value:function(u,d,h){return document.createNodeIterator(u,d,h,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,h){var x=u.compareDocumentPosition(h),v=Node.DOCUMENT_POSITION_PRECEDING;if(x&v)if(d!==null){var C=d.compareDocumentPosition(h),g=Node.DOCUMENT_POSITION_FOLLOWING;if(C&g)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(u){var d=u.previousNode(),h=void 0;return d===null?h=u.nextNode():h=u.nextNode()&&u.nextNode(),{prevNode:d,node:h}}},{key:"checkIframeFilter",value:function(u,d,h,x){var v=!1,C=!1;return x.forEach(function(g,y){g.val===h&&(v=y,C=g.handled)}),this.compareNodeIframe(u,d,h)?(v===!1&&!C?x.push({val:h,handled:!0}):v!==!1&&!C&&(x[v].handled=!0),!0):(v===!1&&x.push({val:h,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(u,d,h,x){var v=this;u.forEach(function(C){C.handled||v.getIframeContents(C.val,function(g){v.createInstanceOnIframe(g).forEachNode(d,h,x)})})}},{key:"iterateThroughNodes",value:function(u,d,h,x,v){for(var C=this,g=this.createIterator(d,u,x),y=[],w=[],E=void 0,_=void 0,R=function(){var S=C.getIteratorNode(g);return _=S.prevNode,E=S.node,E};R();)this.iframes&&this.forEachIframe(d,function(T){return C.checkIframeFilter(E,_,T,y)},function(T){C.createInstanceOnIframe(T).forEachNode(u,function(S){return w.push(S)},x)}),w.push(E);w.forEach(function(T){h(T)}),this.iframes&&this.handleOpenIframes(y,u,h,x),v()}},{key:"forEachNode",value:function(u,d,h){var x=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),g=C.length;g||v(),C.forEach(function(y){var w=function(){x.iterateThroughNodes(u,y,d,h,function(){--g<=0&&v()})};x.iframes?x.waitForIframes(y,w):w()})}}],[{key:"matches",value:function(u,d){var h=typeof d=="string"?[d]:d,x=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(x){var v=!1;return h.every(function(C){return x.call(u,C)?(v=!0,!1):!0}),v}else return!1}}]),c}(),l=function(){function c(f){r(this,c),this.ctx=f,this.ie=!1;var u=window.navigator.userAgent;(u.indexOf("MSIE")>-1||u.indexOf("Trident")>-1)&&(this.ie=!0)}return o(c,[{key:"log",value:function(u){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: "+u)}},{key:"escapeStr",value:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(u){return this.opt.wildcards!=="disabled"&&(u=this.setupWildcardsRegExp(u)),u=this.escapeStr(u),Object.keys(this.opt.synonyms).length&&(u=this.createSynonymsRegExp(u)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),this.opt.diacritics&&(u=this.createDiacriticsRegExp(u)),u=this.createMergedBlanksRegExp(u),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.createJoinersRegExp(u)),this.opt.wildcards!=="disabled"&&(u=this.createWildcardsRegExp(u)),u=this.createAccuracyRegExp(u),u}},{key:"createSynonymsRegExp",value:function(u){var d=this.opt.synonyms,h=this.opt.caseSensitive?"":"i",x=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var v in d)if(d.hasOwnProperty(v)){var C=d[v],g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v),y=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);g!==""&&y!==""&&(u=u.replace(new RegExp("("+this.escapeStr(g)+"|"+this.escapeStr(y)+")","gm"+h),x+("("+this.processSynomyms(g)+"|")+(this.processSynomyms(y)+")")+x))}return u}},{key:"processSynomyms",value:function(u){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),u}},{key:"setupWildcardsRegExp",value:function(u){return u=u.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),u.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(u){var d=this.opt.wildcards==="withSpaces";return u.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(u){return u.replace(/[^(|)\\]/g,function(d,h,x){var v=x.charAt(h+1);return/[(|)\\]/.test(v)||v===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){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?u.split(/\u0000+/).join("["+d.join("")+"]*"):u}},{key:"createDiacriticsRegExp",value:function(u){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ŽŻŹ"],x=[];return u.split("").forEach(function(v){h.every(function(C){if(C.indexOf(v)!==-1){if(x.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),x.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){var d=this,h="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",x=this.opt.accuracy,v=typeof x=="string"?x:x.value,C=typeof x=="string"?[]:x.limiters,g="";switch(C.forEach(function(y){g+="|"+d.escapeStr(y)}),v){case"partially":default:return"()("+u+")";case"complementary":return g="\\s"+(g||this.escapeStr(h)),"()([^"+g+"]*"+u+"[^"+g+"]*)";case"exactly":return"(^|\\s"+g+")("+u+")(?=$|\\s"+g+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,h=[];return u.forEach(function(x){d.opt.separateWordSearch?x.split(" ").forEach(function(v){v.trim()&&h.indexOf(v)===-1&&h.push(v)}):x.trim()&&h.indexOf(x)===-1&&h.push(x)}),{keywords:h.sort(function(x,v){return v.length-x.length}),length:h.length}}},{key:"isNumeric",value:function(u){return Number(parseFloat(u))==u}},{key:"checkRanges",value:function(u){var d=this;if(!Array.isArray(u)||Object.prototype.toString.call(u[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(u),[];var h=[],x=0;return u.sort(function(v,C){return v.start-C.start}).forEach(function(v){var C=d.callNoMatchOnInvalidRanges(v,x),g=C.start,y=C.end,w=C.valid;w&&(v.start=g,v.length=y-g,h.push(v),x=y)}),h}},{key:"callNoMatchOnInvalidRanges",value:function(u,d){var h=void 0,x=void 0,v=!1;return u&&typeof u.start<"u"?(h=parseInt(u.start,10),x=h+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&x-d>0&&x-h>0?v=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(u))),this.opt.noMatch(u))):(this.log("Ignoring invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:h,end:x,valid:v}}},{key:"checkWhitespaceRanges",value:function(u,d,h){var x=void 0,v=!0,C=h.length,g=d-C,y=parseInt(u.start,10)-g;return y=y>C?C:y,x=y+parseInt(u.length,10),x>C&&(x=C,this.log("End range automatically set to the max value of "+C)),y<0||x-y<0||y>C||x>C?(v=!1,this.log("Invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)):h.substring(y,x).replace(/\s+/g,"")===""&&(v=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:y,end:x,valid:v}}},{key:"getTextNodes",value:function(u){var d=this,h="",x=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(v){x.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(){u({value:h,nodes:x})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,h){var x=this.opt.element?this.opt.element:"mark",v=u.splitText(d),C=v.splitText(h-d),g=document.createElement(x);return g.setAttribute("data-markjs","true"),this.opt.className&&g.setAttribute("class",this.opt.className),g.textContent=v.textContent,v.parentNode.replaceChild(g,v),C}},{key:"wrapRangeInMappedTextNode",value:function(u,d,h,x,v){var C=this;u.nodes.every(function(g,y){var w=u.nodes[y+1];if(typeof w>"u"||w.start>d){if(!x(g.node))return!1;var E=d-g.start,_=(h>g.end?g.end:h)-g.start,R=u.value.substr(0,g.start),T=u.value.substr(_+g.start);if(g.node=C.wrapRangeInTextNode(g.node,E,_),u.value=R+T,u.nodes.forEach(function(S,P){P>=y&&(u.nodes[P].start>0&&P!==y&&(u.nodes[P].start-=_),u.nodes[P].end-=_)}),h-=_,v(g.node.previousSibling,g.start),h>g.end)d=g.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,d,h,x,v){var C=this,g=d===0?0:d+1;this.getTextNodes(function(y){y.nodes.forEach(function(w){w=w.node;for(var E=void 0;(E=u.exec(w.textContent))!==null&&E[g]!=="";)if(h(E[g],w)){var _=E.index;if(g!==0)for(var R=1;R{const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function Lc(e,t){const[n,r]=m.useState();m.useEffect(()=>{const i=tS(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=m.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 tS(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var nS="vocs_Kbd";function m1(e){return p.jsx("kbd",{...e,className:F(e.className,nS)})}var rS="vocs_KeyboardShortcut_kbdGroup",oS="vocs_KeyboardShortcut";function ho(e){const{description:t,keys:n}=e;return p.jsxs("span",{className:oS,children:[t,p.jsx("span",{className:rS,children:n.map(r=>p.jsx(m1,{children:r},r))})]})}var iS="vocs_SearchDialog_content",ov="vocs_SearchDialog_excerpt",aS="vocs_SearchDialog_overlay",lS="vocs_SearchDialog_result",iv="vocs_SearchDialog_resultIcon",sS="vocs_SearchDialog_resultSelected",uS="vocs_SearchDialog_results",cS="vocs_SearchDialog",fS="vocs_SearchDialog_searchBox",dS="vocs_SearchDialog_searchInput",Fa="vocs_SearchDialog_searchInputIcon",hS="vocs_SearchDialog_searchInputIconDesktop",pS="vocs_SearchDialog_searchInputIconMobile",vS="vocs_SearchDialog_searchShortcuts",av="vocs_SearchDialog_title",mS="vocs_SearchDialog_titleIcon",gS="vocs_SearchDialog_titles";function g1(e){const{search:t}=Xe(),n=cd(),r=m.useRef(null),o=m.useRef(null),[i,a]=Lc("filterText",""),l=eS(i,200),s=h1(),[c,f]=m.useState(-1),[u,d]=m.useState(!1),[h,x]=Lc("showDetailView",!0),v=m.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=v.length,g=v[c],y=m.useCallback(()=>{var R,T,S;if(!o.current)return;const w=new Set;for(const P of v)for(const b in P.match)w.add(b);const E=new q4(o.current);E.unmark({done(){E==null||E.markRegExp(yS(w))}});const _=o.current.querySelectorAll(`.${ov}`);for(const P of _)(R=P.querySelector('mark[data-markjs="true"]'))==null||R.scrollIntoView({block:"center"});(S=(T=o.current)==null?void 0:T.firstElementChild)==null||S.scrollIntoView({block:"start"})},[v]);return m.useEffect(()=>{if(!e.open)return;function w(E){var _;switch(E.key){case"ArrowDown":{E.preventDefault(),f(R=>{var P;let T=R+1;T>=C&&(T=0);const S=(P=o.current)==null?void 0:P.children[T];return S==null||S.scrollIntoView({block:"nearest"}),T}),d(!0);break}case"ArrowUp":{E.preventDefault(),f(R=>{var P;let T=R-1;T<0&&(T=C-1);const S=(P=o.current)==null?void 0:P.children[T];return S==null||S.scrollIntoView({block:"nearest"}),T}),d(!0);break}case"Backspace":{if(!E.metaKey)return;E.preventDefault(),a(""),(_=r.current)==null||_.focus();break}case"Enter":{if(E.target instanceof HTMLButtonElement&&E.target.type!=="submit"||!g)return;E.preventDefault(),n(g.href),e.onClose();break}}}return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[n,C,a,g,e.open,e.onClose]),m.useEffect(()=>{l!==""&&o.current&&y()},[y,l]),p.jsxs(P4,{children:[p.jsx(b4,{className:aS}),p.jsxs(A4,{onOpenAutoFocus:w=>{r.current&&(w.preventDefault(),r.current.focus()),y()},onCloseAutoFocus:()=>{f(0)},className:cS,"aria-describedby":void 0,children:[p.jsx(j4,{className:A0,children:"Search"}),p.jsxs("form",{className:fS,children:[p.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:pS,children:p.jsx(B5,{className:Fa,height:20,width:20})}),p.jsx(Z4,{htmlFor:"search-input",children:p.jsx(hd,{"aria-label":"Search",className:F(Fa,hS),height:20,width:20})}),p.jsx("input",{ref:r,tabIndex:0,className:dS,id:"search-input",onChange:w=>a(w.target.value),placeholder:"Search",type:"search",value:i}),p.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>x(w=>!w),children:p.jsx(Q5,{className:Fa,height:20,width:20})}),p.jsx("button",{"aria-label":"Reset search",type:"button",className:Fa,onClick:()=>{var w;a(""),(w=r.current)==null||w.focus()},children:"⌫"})]}),p.jsxs("ul",{className:uS,role:v.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&v.length===0&&p.jsxs("li",{children:['No results for "',p.jsx("span",{children:l}),'"']}),v.map((w,E)=>{var _;return p.jsx("li",{role:"option",className:F(lS,E===c&&sS),"aria-selected":E===c,"aria-label":[...w.titles.filter(R=>!!R),w.title].join(" > "),children:p.jsxs(ss,{to:w.href,onClick:R=>{R.metaKey||e.onClose()},onMouseEnter:()=>!u&&f(E),onFocus:()=>f(E),children:[p.jsxs("div",{className:gS,children:[w.isPage?p.jsx(G5,{className:iv}):p.jsx("span",{className:iv,children:"#"}),w.titles.filter(R=>!!R).map(R=>p.jsxs("span",{className:av,children:[p.jsx("span",{dangerouslySetInnerHTML:{__html:R}}),p.jsx(H5,{className:mS})]},R)),p.jsx("span",{className:av,children:p.jsx("span",{dangerouslySetInnerHTML:{__html:w.title}})})]}),h&&((_=w.text)==null?void 0:_.trim())&&p.jsx("div",{className:ov,children:p.jsx(k0,{className:iS,children:p.jsx("div",{dangerouslySetInnerHTML:{__html:w.html}})})})]})},w.id)})]}),p.jsxs("div",{className:vS,children:[p.jsx(ho,{description:"Navigate",keys:["↑","↓"]}),p.jsx(ho,{description:"Select",keys:["enter"]}),p.jsx(ho,{description:"Close",keys:["esc"]}),p.jsx(ho,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function yS(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function xS(){h1();const[e,t]=m.useState(!1);return m.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]),p.jsxs(i1,{open:e,onOpenChange:t,children:[p.jsx(a1,{asChild:!0,children:p.jsxs("button",{className:Y4,type:"button",children:[p.jsx(hd,{style:{marginTop:2}}),"Search",p.jsx("div",{className:Q4,children:p.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),p.jsx(g1,{open:e,onClose:()=>t(!1)})]})}var y1="vocs_DesktopTopNav_button",wS="vocs_DesktopTopNav_content",CS="vocs_DesktopTopNav_curtain",lv="vocs_DesktopTopNav_divider",mu="vocs_DesktopTopNav_group",za="vocs_DesktopTopNav_hideCompact",Mc="vocs_DesktopTopNav_icon",Dl="vocs_DesktopTopNav_item",ES="vocs_DesktopTopNav_logo",SS="vocs_DesktopTopNav_logoWrapper",_S="vocs_DesktopTopNav",sv="vocs_DesktopTopNav_section",TS="vocs_DesktopTopNav_withLogo",RS="vocs_Icon",Ic="var(--vocs_Icon_size)";function dt({className:e,label:t,icon:n,size:r,style:o}){return p.jsx("div",{"aria-label":t,className:F(RS,e),role:"img",style:{...o,...Jt({[Ic]:r})},children:p.jsx(n,{height:r,width:r})})}var NS="vocs_Logo_logoDark",kS="vocs_Logo_logoLight",gu="vocs_Logo";function PS({className:e}){const{logoUrl:t}=Xe();return t?p.jsx(p.Fragment,{children:typeof t=="string"?p.jsx("img",{alt:"Logo",className:F(e,gu),src:t}):p.jsxs(p.Fragment,{children:[p.jsx("img",{alt:"Logo",className:F(e,gu,NS),src:t.dark}),p.jsx("img",{alt:"Logo",className:F(e,gu,kS),src:t.light})]})}):null}var bS="vocs_NavLogo_logoImage",AS="vocs_NavLogo_title";function _d(){const e=Xe();return e.logoUrl?p.jsx(PS,{className:bS}):p.jsx("div",{className:AS,children:e.title})}var jS=m.createContext(void 0);function ds(e){const t=m.useContext(jS);return e||t||"ltr"}function hs(e){const t=e+"CollectionProvider",[n,r]=An(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,C=de.useRef(null),g=de.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:g,collectionRef:C,children:v})};a.displayName=t;const l=e+"CollectionSlot",s=de.forwardRef((h,x)=>{const{scope:v,children:C}=h,g=i(l,v),y=Fe(x,g.collectionRef);return p.jsx(Lo,{ref:y,children:C})});s.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",u=de.forwardRef((h,x)=>{const{scope:v,children:C,...g}=h,y=de.useRef(null),w=Fe(x,y),E=i(c,v);return de.useEffect(()=>(E.itemMap.set(y,{ref:y,...g}),()=>void E.itemMap.delete(y))),p.jsx(Lo,{[f]:"",ref:w,children:C})});u.displayName=c;function d(h){const x=i(e+"CollectionConsumer",h);return de.useCallback(()=>{const C=x.collectionRef.current;if(!C)return[];const g=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,_)=>g.indexOf(E.ref.current)-g.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function LS(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var MS="VisuallyHidden",x1=m.forwardRef((e,t)=>p.jsx(ie.span,{...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}}));x1.displayName=MS;var IS=x1,Ho="NavigationMenu",[Td,w1,OS]=hs(Ho),[Oc,DS,FS]=hs(Ho),[Rd,AN]=An(Ho,[OS,FS]),[zS,$t]=Rd(Ho),[$S,BS]=Rd(Ho),C1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:c,...f}=e,[u,d]=m.useState(null),h=Fe(t,P=>d(P)),x=ds(c),v=m.useRef(0),C=m.useRef(0),g=m.useRef(0),[y,w]=m.useState(!0),[E="",_]=jn({prop:r,onChange:P=>{const b=P!=="",I=l>0;b?(window.clearTimeout(g.current),I&&w(!1)):(window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(!0),l)),o==null||o(P)},defaultProp:i}),R=m.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>_(""),150)},[_]),T=m.useCallback(P=>{window.clearTimeout(C.current),_(P)},[_]),S=m.useCallback(P=>{E===P?window.clearTimeout(C.current):v.current=window.setTimeout(()=>{window.clearTimeout(C.current),_(P)},a)},[E,_,a]);return m.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(C.current),window.clearTimeout(g.current)},[]),p.jsx(S1,{scope:n,isRootMenu:!0,value:E,dir:x,orientation:s,rootNavigationMenu:u,onTriggerEnter:P=>{window.clearTimeout(v.current),y?S(P):T(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),R()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:R,onItemSelect:P=>{_(b=>b===P?"":P)},onItemDismiss:()=>_(""),children:p.jsx(ie.nav,{"aria-label":"Main","data-orientation":s,dir:x,...f,ref:h})})});C1.displayName=Ho;var E1="NavigationMenuSub",US=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...l}=e,s=$t(E1,n),[c="",f]=jn({prop:r,onChange:o,defaultProp:i});return p.jsx(S1,{scope:n,isRootMenu:!1,value:c,dir:s.dir,orientation:a,rootNavigationMenu:s.rootNavigationMenu,onTriggerEnter:u=>f(u),onItemSelect:u=>f(u),onItemDismiss:()=>f(""),children:p.jsx(ie.div,{"data-orientation":a,...l,ref:t})})});US.displayName=E1;var S1=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:d,onContentLeave:h}=e,[x,v]=m.useState(null),[C,g]=m.useState(new Map),[y,w]=m.useState(null);return p.jsx(zS,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:LS(l),baseId:un(),dir:o,orientation:i,viewport:x,onViewportChange:v,indicatorTrack:y,onIndicatorTrackChange:w,onTriggerEnter:at(f),onTriggerLeave:at(u),onContentEnter:at(d),onContentLeave:at(h),onItemSelect:at(s),onItemDismiss:at(c),onViewportContentChange:m.useCallback((E,_)=>{g(R=>(R.set(E,_),new Map(R)))},[]),onViewportContentRemove:m.useCallback(E=>{g(_=>_.has(E)?(_.delete(E),new Map(_)):_)},[]),children:p.jsx(Td.Provider,{scope:t,children:p.jsx($S,{scope:t,items:C,children:a})})})},_1="NavigationMenuList",T1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(_1,n),i=p.jsx(ie.ul,{"data-orientation":o.orientation,...r,ref:t});return p.jsx(ie.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:p.jsx(Td.Slot,{scope:n,children:o.isRootMenu?p.jsx(L1,{asChild:!0,children:i}):i})})});T1.displayName=_1;var R1="NavigationMenuItem",[HS,N1]=Rd(R1),k1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=un(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=m.useRef(null),s=m.useRef(null),c=m.useRef(null),f=m.useRef(()=>{}),u=m.useRef(!1),d=m.useCallback((x="start")=>{if(l.current){f.current();const v=Fc(l.current);v.length&&Pd(x==="start"?v:v.reverse())}},[]),h=m.useCallback(()=>{if(l.current){const x=Fc(l.current);x.length&&(f.current=JS(x))}},[]);return p.jsx(HS,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:h,onContentFocusOutside:h,children:p.jsx(ie.li,{...o,ref:t})})});k1.displayName=R1;var Dc="NavigationMenuTrigger",P1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=$t(Dc,e.__scopeNavigationMenu),a=N1(Dc,e.__scopeNavigationMenu),l=m.useRef(null),s=Fe(l,a.triggerRef,t),c=I1(i.baseId,a.value),f=O1(i.baseId,a.value),u=m.useRef(!1),d=m.useRef(!1),h=a.value===i.value;return p.jsxs(p.Fragment,{children:[p.jsx(Td.ItemSlot,{scope:n,value:a.value,children:p.jsx(M1,{asChild:!0,children:p.jsx(ie.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":bd(h),"aria-expanded":h,"aria-controls":f,...o,ref:s,onPointerEnter:oe(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:oe(e.onPointerMove,Fl(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:oe(e.onPointerLeave,Fl(()=>{r||(i.onTriggerLeave(),u.current=!1)})),onClick:oe(e.onClick,()=>{i.onItemSelect(a.value),d.current=h}),onKeyDown:oe(e.onKeyDown,x=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&x.key===C&&(a.onEntryKeyDown(),x.preventDefault())})})})}),h&&p.jsxs(p.Fragment,{children:[p.jsx(IS,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:x=>{const v=a.contentRef.current,C=x.relatedTarget,g=C===l.current,y=v==null?void 0:v.contains(C);(g||!y)&&a.onFocusProxyEnter(g?"start":"end")}}),i.viewport&&p.jsx("span",{"aria-owns":f})]})]})});P1.displayName=Dc;var VS="NavigationMenuLink",uv="navigationMenu.linkSelect",b1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return p.jsx(M1,{asChild:!0,children:p.jsx(ie.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:oe(e.onClick,a=>{const l=a.target,s=new CustomEvent(uv,{bubbles:!0,cancelable:!0});if(l.addEventListener(uv,c=>o==null?void 0:o(c),{once:!0}),Nc(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(ol,{bubbles:!0,cancelable:!0});Nc(l,c)}},{checkForDefaultPrevented:!1})})})});b1.displayName=VS;var Nd="NavigationMenuIndicator",WS=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(Nd,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?nd.createPortal(p.jsx(zt,{present:n||i,children:p.jsx(KS,{...r,ref:t})}),o.indicatorTrack):null});WS.displayName=Nd;var KS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(Nd,n),i=w1(n),[a,l]=m.useState(null),[s,c]=m.useState(null),f=o.orientation==="horizontal",u=!!o.value;m.useEffect(()=>{var v;const x=(v=i().find(C=>C.value===o.value))==null?void 0:v.ref.current;x&&l(x)},[i,o.value]);const d=()=>{a&&c({size:f?a.offsetWidth:a.offsetHeight,offset:f?a.offsetLeft:a.offsetTop})};return zc(a,d),zc(o.indicatorTrack,d),s?p.jsx(ie.div,{"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}}):null}),Mo="NavigationMenuContent",A1=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(Mo,e.__scopeNavigationMenu),i=N1(Mo,e.__scopeNavigationMenu),a=Fe(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.jsx(GS,{forceMount:n,...s,ref:a}):p.jsx(zt,{present:n||l,children:p.jsx(j1,{"data-state":bd(l),...s,ref:a,onPointerEnter:oe(e.onPointerEnter,o.onContentEnter),onPointerLeave:oe(e.onPointerLeave,Fl(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})})});A1.displayName=Mo;var GS=m.forwardRef((e,t)=>{const n=$t(Mo,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return qt(()=>{r(e.value,{ref:t,...e})},[e,t,r]),qt(()=>()=>o(e.value),[e.value,o]),null}),ol="navigationMenu.rootContentDismiss",j1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=$t(Mo,n),u=m.useRef(null),d=Fe(u,t),h=I1(f.baseId,r),x=O1(f.baseId,r),v=w1(n),C=m.useRef(null),{onItemDismiss:g}=f;m.useEffect(()=>{const w=u.current;if(f.isRootMenu&&w){const E=()=>{var _;g(),l(),w.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return w.addEventListener(ol,E),()=>w.removeEventListener(ol,E)}},[f.isRootMenu,e.value,o,g,l]);const y=m.useMemo(()=>{const E=v().map(b=>b.value);f.dir==="rtl"&&E.reverse();const _=E.indexOf(f.value),R=E.indexOf(f.previousValue),T=r===f.value,S=R===E.indexOf(r);if(!T&&!S)return C.current;const P=(()=>{if(_!==R){if(T&&R!==-1)return _>R?"from-end":"from-start";if(S&&_!==-1)return _>R?"to-start":"to-end"}return null})();return C.current=P,P},[f.previousValue,f.value,f.dir,v,r]);return p.jsx(L1,{asChild:!0,children:p.jsx(cs,{id:x,"aria-labelledby":h,"data-motion":y,"data-orientation":f.orientation,...c,ref:d,disableOutsidePointerEvents:!1,onDismiss:()=>{var E;const w=new Event(ol,{bubbles:!0,cancelable:!0});(E=u.current)==null||E.dispatchEvent(w)},onFocusOutside:oe(e.onFocusOutside,w=>{var _;s();const E=w.target;(_=f.rootNavigationMenu)!=null&&_.contains(E)&&w.preventDefault()}),onPointerDownOutside:oe(e.onPointerDownOutside,w=>{var T;const E=w.target,_=v().some(S=>{var P;return(P=S.ref.current)==null?void 0:P.contains(E)}),R=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(E));(_||R||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:oe(e.onKeyDown,w=>{var R;const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const T=Fc(w.currentTarget),S=document.activeElement,P=T.findIndex(D=>D===S),I=w.shiftKey?T.slice(0,P).reverse():T.slice(P+1,T.length);Pd(I)?w.preventDefault():(R=i.current)==null||R.focus()}}),onEscapeKeyDown:oe(e.onEscapeKeyDown,w=>{a.current=!0})})})}),kd="NavigationMenuViewport",YS=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!$t(kd,e.__scopeNavigationMenu).value;return p.jsx(zt,{present:n||i,children:p.jsx(QS,{...r,ref:t})})});YS.displayName=kd;var QS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=$t(kd,n),a=Fe(t,i.onViewportChange),l=BS(Mo,e.__scopeNavigationMenu),[s,c]=m.useState(null),[f,u]=m.useState(null),d=s?(s==null?void 0:s.width)+"px":void 0,h=s?(s==null?void 0:s.height)+"px":void 0,x=!!i.value,v=x?i.value:i.previousValue;return zc(f,()=>{f&&c({width:f.offsetWidth,height:f.offsetHeight})}),p.jsx(ie.div,{"data-state":bd(x),"data-orientation":i.orientation,...o,ref:a,style:{pointerEvents:!x&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":d,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:oe(e.onPointerEnter,i.onContentEnter),onPointerLeave:oe(e.onPointerLeave,Fl(i.onContentLeave)),children:Array.from(l.items).map(([g,{ref:y,forceMount:w,...E}])=>{const _=v===g;return p.jsx(zt,{present:w||_,children:p.jsx(j1,{...E,ref:pd(y,R=>{_&&R&&u(R)})})},g)})})}),XS="FocusGroup",L1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(XS,n);return p.jsx(Oc.Provider,{scope:n,children:p.jsx(Oc.Slot,{scope:n,children:p.jsx(ie.div,{dir:o.dir,...r,ref:t})})})}),cv=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ZS="FocusGroupItem",M1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=DS(n),i=$t(ZS,n);return p.jsx(Oc.ItemSlot,{scope:n,children:p.jsx(ie.button,{...r,ref:t,onKeyDown:oe(e.onKeyDown,a=>{if(["Home","End",...cv].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),cv.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>Pd(s)),a.preventDefault()}})})})});function Fc(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 Pd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function JS(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 zc(e,t){const n=at(t);qt(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function bd(e){return e?"open":"closed"}function I1(e,t){return`${e}-trigger-${t}`}function O1(e,t){return`${e}-content-${t}`}function Fl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var qS=C1,e_=T1,t_=k1,n_=P1,r_=b1,o_=A1,i_="var(--vocs_NavigationMenu_chevronDownIcon)",a_="vocs_NavigationMenu_content",l_="vocs_NavigationMenu_item",s_="vocs_NavigationMenu_link",u_="vocs_NavigationMenu_list",c_="vocs_NavigationMenu",f_="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const D1=e=>p.jsx(qS,{...e,className:F(e.className,c_)}),F1=e=>p.jsx(e_,{...e,className:F(e.className,u_)}),ps=({active:e,children:t,className:n,href:r})=>p.jsx(r_,{asChild:!0,children:p.jsx(sn,{"data-active":e,className:F(n,s_),href:r,variant:"styleless",children:t})}),z1=e=>p.jsx(t_,{...e,className:F(e.className,l_)}),$1=({active:e,className:t,...n})=>{const{basePath:r}=Xe(),o=r;return p.jsx(n_,{...n,"data-active":e,className:F(t,f_),style:Jt({[i_]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},B1=e=>p.jsx(o_,{...e,className:F(e.className,a_)});function U1(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[p.jsx("title",{children:"Discord"}),p.jsx("g",{id:"图层_2","data-name":"图层 2",children:p.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:p.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:p.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 H1(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"GitHub"}),p.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 d_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Moon"}),p.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"}),p.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 h_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Sun"}),p.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"}),p.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 V1(){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[p.jsx("title",{children:"Telegram"}),p.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 W1(){return p.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Warpcast"}),p.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 K1(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"X"}),p.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"})]})}$c.Curtain=p_;function $c(){var r,o,i,a,l,s;const e=Xe(),{showLogo:t,showSidebar:n}=Hr();return p.jsxs("div",{className:F(_S,t&&!n&&TS),children:[p.jsx(xS,{}),t&&p.jsx("div",{className:SS,children:p.jsx("div",{className:ES,children:p.jsx(ir,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:p.jsx(_d,{})})})}),p.jsx("div",{className:sv}),p.jsxs("div",{className:sv,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:mu,children:p.jsx(v_,{})}),p.jsx("div",{className:F(lv,(((o=e.topNav)==null?void 0:o.length)||0)>3?za:null)})]}),e.socials&&((i=e.socials)==null?void 0:i.length)>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(mu,(((a=e.topNav)==null?void 0:a.length)||0)>3?za:null),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((c,f)=>p.jsx("div",{className:Dl,children:p.jsx(w_,{...c})},f))}),!((l=e.theme)!=null&&l.colorScheme)&&p.jsx("div",{className:F(lv,za)})]}),!((s=e.theme)!=null&&s.colorScheme)&&p.jsx("div",{className:F(mu,za),style:{marginLeft:"-8px",marginRight:"-8px"},children:p.jsx("div",{className:Dl,children:p.jsx(g_,{})})})]})]})}function p_(){return p.jsx("div",{className:CS})}function v_(){const{topNav:e}=Xe();if(!e)return null;const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx(D1,{delayDuration:0,children:p.jsx(F1,{children:e.map((r,o)=>r.link?p.jsx(ps,{active:n.includes(r.id),className:Dl,href:r.link,children:r.text},o):r.items?p.jsxs(z1,{className:Dl,children:[p.jsx($1,{active:n.includes(r.id),children:r.text}),p.jsx(B1,{className:wS,children:p.jsx(m_,{items:r.items})})]},o):null)})})}function m_({items:e}){const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx("ul",{children:e==null?void 0:e.map((r,o)=>p.jsx(ps,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function g_(){const{toggle:e}=tE();return p.jsxs("button",{className:y1,onClick:e,type:"button",children:[p.jsx(dt,{className:F(Mc,nE),size:"20px",label:"Light",icon:h_}),p.jsx(dt,{className:F(Mc,rE),size:"20px",label:"Dark",icon:d_,style:{marginTop:"-2px"}})]})}const y_={discord:U1,github:H1,telegram:V1,warpcast:W1,x:K1},x_={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function w_({icon:e,label:t,link:n}){return p.jsx("a",{className:y1,href:n,target:"_blank",rel:"noopener noreferrer",children:p.jsx(dt,{className:Mc,label:t,icon:y_[e],size:x_[e]||"20px"})})}function C_(){return p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[p.jsx("div",{children:"Released under the MIT License."}),p.jsxs("div",{children:["Built by ",p.jsx("a",{href:"https://www.raidguild.org/",target:"_blank",children:"RaigGuild.org"})]})]})}const E_=({children:e})=>e;function S_(){const e=Ur(),t=Xe();return m.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 G1(){const[e,t]=m.useState(!1);return m.useEffect(()=>{t(!0)},[]),e}var __="vocs_Footer_container",T_="vocs_Footer_editLink",R_="vocs_Footer_lastUpdated",N_="vocs_Footer_navigation",fv="vocs_Footer_navigationIcon",k_="vocs_Footer_navigationIcon_left",P_="vocs_Footer_navigationIcon_right",dv="vocs_Footer_navigationItem",b_="vocs_Footer_navigationItem_left",A_="vocs_Footer_navigationItem_right",hv="vocs_Footer_navigationText",pv="vocs_Footer_navigationTextInner",j_="vocs_Footer";function L_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Arrow Left"}),p.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 M_(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Arrow Right"}),p.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 I_(){const{layout:e}=Hr(),t=G1(),n=Ur(),r=m.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=m.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return p.jsxs("footer",{className:j_,children:[e==="docs"&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:__,children:[p.jsx(O_,{}),t&&n.lastUpdatedAt&&p.jsxs("div",{className:R_,children:["Last updated:"," ",p.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),p.jsx(D_,{})]}),p.jsx(C_,{})]})}function O_(){const e=S_();return e.url?p.jsx("div",{children:p.jsxs(sn,{className:T_,href:e.url,children:[p.jsx(J5,{})," ",e.text]})}):null}function D_(){const e=G1(),t=us(),{pathname:n}=ze(),r=m.useMemo(()=>Y1(t.items||[]).filter(s=>s.link),[t]),o=m.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=m.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=cd();return m.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){const h=r[s+1],x=r[s-1];d.code==="ArrowRight"&&(h!=null&&h.link)&&(l(h.link),s++),d.code==="ArrowLeft"&&(x!=null&&x.link)&&(l(x.link),s--)}},u=d=>{d.code==="ShiftLeft"&&(c=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",u)}},[]),e?p.jsxs("div",{className:N_,children:[i?p.jsxs(sn,{className:F(dv,b_),href:i.link,variant:"styleless",children:[p.jsxs("div",{className:hv,children:[p.jsx("div",{className:F(fv,k_),style:Jt({[Ic]:"0.75em"}),children:p.jsx(dt,{label:"Previous",icon:L_})}),p.jsx("div",{className:pv,children:i.text})]}),p.jsx(ho,{description:"Previous",keys:["shift","←"]})]}):p.jsx("div",{}),a?p.jsxs(sn,{className:F(dv,A_),href:a.link,variant:"styleless",children:[p.jsxs("div",{className:hv,children:[p.jsx("div",{className:pv,style:{textAlign:"right"},children:a.text}),p.jsx("div",{className:F(fv,P_),style:Jt({[Ic]:"0.75em"}),children:p.jsx(dt,{label:"Next",icon:M_})})]}),p.jsx(ho,{description:"Next",keys:["shift","→"]})]}):p.jsx("div",{})]}):null}function Y1(e){const t=[];for(const n of e)n.link&&t.push(n),n.items&&t.push(...Y1(n.items));return t}var Ad="Collapsible",[F_,Q1]=An(Ad),[z_,jd]=F_(Ad),X1=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=jn({prop:r,defaultProp:o,onChange:a});return p.jsx(z_,{scope:n,disabled:i,contentId:un(),open:s,onOpenToggle:m.useCallback(()=>c(f=>!f),[c]),children:p.jsx(ie.div,{"data-state":Md(s),"data-disabled":i?"":void 0,...l,ref:t})})});X1.displayName=Ad;var Z1="CollapsibleTrigger",J1=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=jd(Z1,n);return p.jsx(ie.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Md(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:oe(e.onClick,o.onOpenToggle)})});J1.displayName=Z1;var Ld="CollapsibleContent",q1=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=jd(Ld,e.__scopeCollapsible);return p.jsx(zt,{present:n||o.open,children:({present:i})=>p.jsx($_,{...r,ref:t,present:i})})});q1.displayName=Ld;var $_=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=jd(Ld,n),[l,s]=m.useState(r),c=m.useRef(null),f=Fe(t,c),u=m.useRef(0),d=u.current,h=m.useRef(0),x=h.current,v=a.open||l,C=m.useRef(v),g=m.useRef();return m.useEffect(()=>{const y=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(y)},[]),qt(()=>{const y=c.current;if(y){g.current=g.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();u.current=w.height,h.current=w.width,C.current||(y.style.transitionDuration=g.current.transitionDuration,y.style.animationName=g.current.animationName),s(r)}},[a.open,r]),p.jsx(ie.div,{"data-state":Md(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":x?`${x}px`:void 0,...e.style},children:v&&o})});function Md(e){return e?"open":"closed"}var B_=X1,U_=J1,H_=q1,Ln="Accordion",V_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Id,W_,K_]=hs(Ln),[vs,jN]=An(Ln,[K_,Q1]),Od=Q1(),ey=de.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return p.jsx(Id.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(X_,{...i,ref:t}):p.jsx(Q_,{...o,ref:t})})});ey.displayName=Ln;var[ty,G_]=vs(Ln),[ny,Y_]=vs(Ln,{collapsible:!1}),Q_=de.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=jn({prop:n,defaultProp:r,onChange:o});return p.jsx(ty,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:de.useCallback(()=>i&&s(""),[i,s]),children:p.jsx(ny,{scope:e.__scopeAccordion,collapsible:i,children:p.jsx(ry,{...a,ref:t})})})}),X_=de.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=jn({prop:n,defaultProp:r,onChange:o}),s=de.useCallback(f=>l((u=[])=>[...u,f]),[l]),c=de.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return p.jsx(ty,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c,children:p.jsx(ny,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(ry,{...i,ref:t})})})}),[Z_,ms]=vs(Ln),ry=de.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=de.useRef(null),s=Fe(l,t),c=W_(n),u=ds(o)==="ltr",d=oe(e.onKeyDown,h=>{var S;if(!V_.includes(h.key))return;const x=h.target,v=c().filter(P=>{var b;return!((b=P.ref.current)!=null&&b.disabled)}),C=v.findIndex(P=>P.ref.current===x),g=v.length;if(C===-1)return;h.preventDefault();let y=C;const w=0,E=g-1,_=()=>{y=C+1,y>E&&(y=w)},R=()=>{y=C-1,y{const{__scopeAccordion:n,value:r,...o}=e,i=ms(zl,n),a=G_(zl,n),l=Od(n),s=un(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return p.jsx(J_,{scope:n,open:c,disabled:f,triggerId:s,children:p.jsx(B_,{"data-orientation":i.orientation,"data-state":uy(c),...l,...o,ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})})});oy.displayName=zl;var iy="AccordionHeader",q_=de.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ms(Ln,n),i=Dd(iy,n);return p.jsx(ie.h3,{"data-orientation":o.orientation,"data-state":uy(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});q_.displayName=iy;var Bc="AccordionTrigger",ay=de.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ms(Ln,n),i=Dd(Bc,n),a=Y_(Bc,n),l=Od(n);return p.jsx(Id.ItemSlot,{scope:n,children:p.jsx(U_,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});ay.displayName=Bc;var ly="AccordionContent",sy=de.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ms(Ln,n),i=Dd(ly,n),a=Od(n);return p.jsx(H_,{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}})});sy.displayName=ly;function uy(e){return e?"open":"closed"}var e7=ey,t7=oy,n7=ay,r7=sy,o7="vocs_MobileSearch_searchButton";function i7(){const[e,t]=m.useState(!1);return p.jsxs(i1,{open:e,onOpenChange:t,children:[p.jsx(a1,{asChild:!0,children:p.jsx("button",{className:o7,type:"button","aria-label":"Search",children:p.jsx(hd,{height:21,width:21})})}),p.jsx(g1,{open:e,onClose:()=>t(!1)})]})}var a7="vocs_MobileTopNav_button",l7="var(--vocs_MobileTopNav_chevronDownIcon)",s7="var(--vocs_MobileTopNav_chevronUpIcon)",u7="vocs_MobileTopNav_content",c7="vocs_MobileTopNav_curtain",vv="vocs_MobileTopNav_curtainGroup",yu="vocs_MobileTopNav_curtainItem",f7="vocs_MobileTopNav_divider",$a="vocs_MobileTopNav_group",d7="vocs_MobileTopNav_icon",h7="vocs_MobileTopNav_item",p7="vocs_MobileTopNav_logo",v7="vocs_MobileTopNav_menuTitle",cy="vocs_MobileTopNav_menuTrigger",fy="vocs_MobileTopNav_navigation",m7="vocs_MobileTopNav_navigationContent",ai="vocs_MobileTopNav_navigationItem",g7="vocs_MobileTopNav_trigger",y7="vocs_MobileTopNav_navigation_compact",x7="vocs_MobileTopNav_outlinePopover",mv="vocs_MobileTopNav_outlineTrigger",w7="vocs_MobileTopNav",gv="vocs_MobileTopNav_section",C7="vocs_MobileTopNav_separator",E7="vocs_MobileTopNav_sidebarPopover",S7="vocs_MobileTopNav_topNavPopover";function _7(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var T7="vocs_Outline_heading",R7="vocs_Outline_item",N7="vocs_Outline_items",k7="vocs_Outline_link",P7="vocs_Outline_nav",b7="vocs_Outline";function dy({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Xe(),{showOutline:a}=Hr(),l=typeof a=="number"?e+a-1:t,s=m.useRef(!0),{pathname:c,hash:f}=ze(),[u,d]=m.useState([]);m.useEffect(()=>{if(typeof window>"u")return;const g=Array.from(document.querySelectorAll(`.${_0}`));d(g)},[c]);const h=m.useMemo(()=>u?u.map(g=>{const y=g.querySelector(`.${T0}`);if(!y)return null;const w=y.getBoundingClientRect(),E=y.id,_=Number(g.tagName[1]),R=g.textContent,T=window.scrollY+w.top;return _l?null:{id:E,level:_,slugTargetElement:y,text:R,topOffset:T}}).filter(Boolean):[],[u,l,e]),[x,v]=m.useState(f.replace("#",""));if(m.useEffect(()=>{if(typeof window>"u")return;const g=new IntersectionObserver(([y])=>{var E;if(!s.current)return;const w=y.target.id;if(y.isIntersecting)v(w);else{if(!(y.target.getBoundingClientRect().top>0))return;const T=h.findIndex(P=>P.id===x),S=(E=h[T-1])==null?void 0:E.id;v(S)}},{rootMargin:"0px 0px -95% 0px"});for(const y of h)g.observe(y.slugTargetElement);return()=>g.disconnect()},[x,h]),m.useEffect(()=>{if(typeof window>"u")return;const g=new IntersectionObserver(([y])=>{var E;if(!s.current)return;const w=(E=h[h.length-1])==null?void 0:E.id;y.isIntersecting?v(w):x===w&&v(h[h.length-2].id)});return g.observe(document.querySelector("[data-bottom-observer]")),()=>g.disconnect()},[x,h]),m.useEffect(()=>{if(typeof window>"u")return;const g=_7(()=>{var y,w,E;if(s.current){if(window.scrollY===0){v((y=h[0])==null?void 0:y.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 _=0;_window.removeEventListener("scroll",g)},[h]),h.length===0)return null;const C=h.filter(g=>g.level===e);return p.jsxs("aside",{className:b7,children:[p.jsxs("nav",{className:P7,children:[o&&p.jsx("h2",{className:T7,children:"On this page"}),p.jsx(hy,{activeId:n?x:null,items:h,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:v})]}),Ml(i)]})}function hy({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){return p.jsx("ul",{className:N7,children:n.map(({id:i,level:a,text:l})=>{const s=`#${i}`,c=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 x=[];for(let C=d;C{r==null||r(),o(i)},className:k7,children:l})}),f&&p.jsx(hy,{activeId:e,levelItems:f,items:t,onClickItem:r,setActiveId:o})]},i)})})}const A7=["top","right","bottom","left"],ar=Math.min,_t=Math.max,$l=Math.round,Ba=Math.floor,lr=e=>({x:e,y:e}),j7={left:"right",right:"left",bottom:"top",top:"bottom"},L7={start:"end",end:"start"};function Uc(e,t,n){return _t(e,ar(t,n))}function kn(e,t){return typeof e=="function"?e(t):e}function Pn(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function Fd(e){return e==="x"?"y":"x"}function zd(e){return e==="y"?"height":"width"}function sr(e){return["top","bottom"].includes(Pn(e))?"y":"x"}function $d(e){return Fd(sr(e))}function M7(e,t,n){n===void 0&&(n=!1);const r=Vo(e),o=$d(e),i=zd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Bl(a)),[a,Bl(a)]}function I7(e){const t=Bl(e);return[Hc(e),t,Hc(t)]}function Hc(e){return e.replace(/start|end/g,t=>L7[t])}function O7(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 D7(e,t,n,r){const o=Vo(e);let i=O7(Pn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Hc)))),i}function Bl(e){return e.replace(/left|right|bottom|top/g,t=>j7[t])}function F7(e){return{top:0,right:0,bottom:0,left:0,...e}}function py(e){return typeof e!="number"?F7(e):{top:e,right:e,bottom:e,left:e}}function Ul(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 yv(e,t,n){let{reference:r,floating:o}=e;const i=sr(t),a=$d(t),l=zd(a),s=Pn(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=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:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Vo(t)){case"start":h[a]-=d*(n&&c?-1:1);break;case"end":h[a]+=d*(n&&c?-1:1);break}return h}const z7=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 c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=yv(c,r,s),d=r,h={},x=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:c,padding:f=0}=kn(e,t)||{};if(c==null)return{};const u=py(f),d={x:n,y:r},h=$d(o),x=zd(h),v=await a.getDimensions(c),C=h==="y",g=C?"top":"left",y=C?"bottom":"right",w=C?"clientHeight":"clientWidth",E=i.reference[x]+i.reference[h]-d[h]-i.floating[x],_=d[h]-i.reference[h],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let T=R?R[w]:0;(!T||!await(a.isElement==null?void 0:a.isElement(R)))&&(T=l.floating[w]||i.floating[x]);const S=E/2-_/2,P=T/2-v[x]/2-1,b=ar(u[g],P),I=ar(u[y],P),D=b,B=T-v[x]-I,j=T/2-v[x]/2+S,V=Uc(D,j,B),U=!s.arrow&&Vo(o)!=null&&j!==V&&i.reference[x]/2-(jj<=0)){var I,D;const j=(((I=i.flip)==null?void 0:I.index)||0)+1,V=T[j];if(V)return{data:{index:j,overflows:b},reset:{placement:V}};let U=(D=b.filter(K=>K.overflows[0]<=0).sort((K,L)=>K.overflows[1]-L.overflows[1])[0])==null?void 0:D.placement;if(!U)switch(h){case"bestFit":{var B;const K=(B=b.filter(L=>{if(R){const M=sr(L.placement);return M===y||M==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(M=>M>0).reduce((M,$)=>M+$,0)]).sort((L,M)=>L[1]-M[1])[0])==null?void 0:B[0];K&&(U=K);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function xv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wv(e){return A7.some(t=>e[t]>=0)}const U7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=kn(e,t);switch(r){case"referenceHidden":{const i=await Vi(t,{...o,elementContext:"reference"}),a=xv(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:wv(a)}}}case"escaped":{const i=await Vi(t,{...o,altBoundary:!0}),a=xv(i,n.floating);return{data:{escapedOffsets:a,escaped:wv(a)}}}default:return{}}}}};async function H7(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Pn(n),l=Vo(n),s=sr(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=kn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:x}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof x=="number"&&(h=l==="end"?x*-1:x),s?{x:h*f,y:d*c}:{x:d*c,y:h*f}}const V7=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 H7(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}}}}},W7=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:g,y}=C;return{x:g,y}}},...s}=kn(e,t),c={x:n,y:r},f=await Vi(t,s),u=sr(Pn(o)),d=Fd(u);let h=c[d],x=c[u];if(i){const C=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=h+f[C],w=h-f[g];h=Uc(y,h,w)}if(a){const C=u==="y"?"top":"left",g=u==="y"?"bottom":"right",y=x+f[C],w=x-f[g];x=Uc(y,x,w)}const v=l.fn({...t,[d]:h,[u]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[u]:a}}}}}},K7=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:c=!0}=kn(e,t),f={x:n,y:r},u=sr(o),d=Fd(u);let h=f[d],x=f[u];const v=kn(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,_=i.reference[d]+i.reference[w]-C.mainAxis;h_&&(h=_)}if(c){var g,y;const w=d==="y"?"width":"height",E=["top","left"].includes(Pn(o)),_=i.reference[u]-i.floating[w]+(E&&((g=a.offset)==null?void 0:g[u])||0)+(E?0:C.crossAxis),R=i.reference[u]+i.reference[w]+(E?0:((y=a.offset)==null?void 0:y[u])||0)-(E?C.crossAxis:0);x<_?x=_:x>R&&(x=R)}return{[d]:h,[u]:x}}}},G7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...c}=kn(e,t),f=await Vi(t,c),u=Pn(o),d=Vo(o),h=sr(o)==="y",{width:x,height:v}=i.floating;let C,g;u==="top"||u==="bottom"?(C=u,g=d===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=u,C=d==="end"?"top":"bottom");const y=v-f.top-f.bottom,w=x-f.left-f.right,E=ar(v-f[C],y),_=ar(x-f[g],w),R=!t.middlewareData.shift;let T=E,S=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),R&&!d){const b=_t(f.left,0),I=_t(f.right,0),D=_t(f.top,0),B=_t(f.bottom,0);h?S=x-2*(b!==0||I!==0?b+I:_t(f.left,f.right)):T=v-2*(D!==0||B!==0?D+B:_t(f.top,f.bottom))}await s({...t,availableWidth:S,availableHeight:T});const P=await a.getDimensions(l.floating);return x!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function gs(){return typeof window<"u"}function Wo(e){return vy(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(vy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vy(e){return gs()?e instanceof Node||e instanceof Nt(e).Node:!1}function Ye(e){return gs()?e instanceof Element||e instanceof Nt(e).Element:!1}function cn(e){return gs()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Vc(e){return!gs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function ea(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Y7(e){return["table","td","th"].includes(Wo(e))}function ys(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bd(e){const t=Ud(),n=Ye(e)?Ft(e):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 Q7(e){let t=ur(e);for(;cn(t)&&!Io(t);){if(Bd(t))return t;if(ys(t))return null;t=ur(t)}return null}function Ud(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Io(e){return["html","body","#document"].includes(Wo(e))}function Ft(e){return Nt(e).getComputedStyle(e)}function xs(e){return Ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if(Wo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vc(e)&&e.host||fn(e);return Vc(t)?t.host:t}function my(e){const t=ur(e);return Io(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&ea(t)?t:my(t)}function Wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=my(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(o);if(i){const l=Wc(a);return t.concat(a,a.visualViewport||[],ea(o)?o:[],l&&n?Wi(l):[])}return t.concat(o,Wi(o,[],n))}function Wc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gy(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=$l(n)!==i||$l(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Hd(e){return Ye(e)?e:e.contextElement}function Co(e){const t=Hd(e);if(!cn(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=gy(t);let a=(i?$l(n.width):n.width)/r,l=(i?$l(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const X7=lr(0);function yy(e){const t=Nt(e);return!Ud()||!t.visualViewport?X7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function Ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Hd(e);let a=lr(1);t&&(r?Ye(r)&&(a=Co(r)):a=Co(e));const l=Z7(i,n,r)?yy(i):lr(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,u=o.height/a.y;if(i){const d=Nt(i),h=r&&Ye(r)?Nt(r):r;let x=d,v=Wc(x);for(;v&&r&&h!==x;){const C=Co(v),g=v.getBoundingClientRect(),y=Ft(v),w=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*C.x,E=g.top+(v.clientTop+parseFloat(y.paddingTop))*C.y;s*=C.x,c*=C.y,f*=C.x,u*=C.y,s+=w,c+=E,x=Nt(v),v=Wc(x)}}return Ul({width:f,height:u,x:s,y:c})}function J7(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=fn(r),l=t?ys(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=lr(1);const f=lr(0),u=cn(r);if((u||!u&&!i)&&((Wo(r)!=="body"||ea(a))&&(s=xs(r)),cn(r))){const d=Ir(r);c=Co(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function q7(e){return Array.from(e.getClientRects())}function Kc(e,t){const n=xs(e).scrollLeft;return t?t.left+n:Ir(fn(e)).left+n}function e6(e){const t=fn(e),n=xs(e),r=e.ownerDocument.body,o=_t(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_t(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kc(e);const l=-n.scrollTop;return Ft(r).direction==="rtl"&&(a+=_t(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function t6(e,t){const n=Nt(e),r=fn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const c=Ud();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function n6(e,t){const n=Ir(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cn(e)?Co(e):lr(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Cv(e,t,n){let r;if(t==="viewport")r=t6(e,n);else if(t==="document")r=e6(fn(e));else if(Ye(t))r=n6(t,n);else{const o=yy(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ul(r)}function xy(e,t){const n=ur(e);return n===t||!Ye(n)||Io(n)?!1:Ft(n).position==="fixed"||xy(n,t)}function r6(e,t){const n=t.get(e);if(n)return n;let r=Wi(e,[],!1).filter(l=>Ye(l)&&Wo(l)!=="body"),o=null;const i=Ft(e).position==="fixed";let a=i?ur(e):e;for(;Ye(a)&&!Io(a);){const l=Ft(a),s=Bd(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ea(a)&&!s&&xy(e,a))?r=r.filter(f=>f!==a):o=l,a=ur(a)}return t.set(e,r),r}function o6(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ys(t)?[]:r6(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=Cv(t,f,o);return c.top=_t(u.top,c.top),c.right=ar(u.right,c.right),c.bottom=ar(u.bottom,c.bottom),c.left=_t(u.left,c.left),c},Cv(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function i6(e){const{width:t,height:n}=gy(e);return{width:t,height:n}}function a6(e,t,n){const r=cn(t),o=fn(t),i=n==="fixed",a=Ir(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=lr(0);if(r||!r&&!i)if((Wo(t)!=="body"||ea(o))&&(l=xs(t)),r){const h=Ir(t,!0,i,t);s.x=h.x+t.clientLeft,s.y=h.y+t.clientTop}else o&&(s.x=Kc(o));let c=0,f=0;if(o&&!r&&!i){const h=o.getBoundingClientRect();f=h.top+l.scrollTop,c=h.left+l.scrollLeft-Kc(o,h)}const u=a.left+l.scrollLeft-s.x-c,d=a.top+l.scrollTop-s.y-f;return{x:u,y:d,width:a.width,height:a.height}}function xu(e){return Ft(e).position==="static"}function Ev(e,t){if(!cn(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function wy(e,t){const n=Nt(e);if(ys(e))return n;if(!cn(e)){let o=ur(e);for(;o&&!Io(o);){if(Ye(o)&&!xu(o))return o;o=ur(o)}return n}let r=Ev(e,t);for(;r&&Y7(r)&&xu(r);)r=Ev(r,t);return r&&Io(r)&&xu(r)&&!Bd(r)?n:r||Q7(e)||n}const l6=async function(e){const t=this.getOffsetParent||wy,n=this.getDimensions,r=await n(e.floating);return{reference:a6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function s6(e){return Ft(e).direction==="rtl"}const u6={convertOffsetParentRelativeRectToViewportRelativeRect:J7,getDocumentElement:fn,getClippingRect:o6,getOffsetParent:wy,getElementRects:l6,getClientRects:q7,getDimensions:i6,getScale:Co,isElement:Ye,isRTL:s6};function c6(e,t){let n=null,r;const o=fn(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:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const h=Ba(f),x=Ba(o.clientWidth-(c+u)),v=Ba(o.clientHeight-(f+d)),C=Ba(c),y={rootMargin:-h+"px "+-x+"px "+-v+"px "+-C+"px",threshold:_t(0,ar(1,s))||1};let w=!0;function E(_){const R=_[0].intersectionRatio;if(R!==s){if(!w)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(e)}return a(!0),i}function f6(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,c=Hd(e),f=o||i?[...c?Wi(c):[],...Wi(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=c&&l?c6(c,n):null;let d=-1,h=null;a&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),c&&!s&&h.observe(c),h.observe(t));let x,v=s?Ir(e):null;s&&C();function C(){const g=Ir(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,x=requestAnimationFrame(C)}return n(),()=>{var g;f.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),u==null||u(),(g=h)==null||g.disconnect(),h=null,s&&cancelAnimationFrame(x)}}const d6=V7,h6=W7,p6=B7,v6=G7,m6=U7,Sv=$7,g6=K7,y6=(e,t,n)=>{const r=new Map,o={platform:u6,...n},i={...o.platform,_c:r};return z7(e,t,{...o,platform:i})};var il=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Hl(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(!Hl(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)&&!Hl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Cy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _v(e,t){const n=Cy(e);return Math.round(t*n)/n}function wu(e){const t=m.useRef(e);return il(()=>{t.current=e}),t}function Ey(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:c}=e,[f,u]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=m.useState(r);Hl(d,r)||h(r);const[x,v]=m.useState(null),[C,g]=m.useState(null),y=m.useCallback(L=>{L!==R.current&&(R.current=L,v(L))},[]),w=m.useCallback(L=>{L!==T.current&&(T.current=L,g(L))},[]),E=i||x,_=a||C,R=m.useRef(null),T=m.useRef(null),S=m.useRef(f),P=s!=null,b=wu(s),I=wu(o),D=wu(c),B=m.useCallback(()=>{if(!R.current||!T.current)return;const L={placement:t,strategy:n,middleware:d};I.current&&(L.platform=I.current),y6(R.current,T.current,L).then(M=>{const $={...M,isPositioned:D.current!==!1};j.current&&!Hl(S.current,$)&&(S.current=$,$o.flushSync(()=>{u($)}))})},[d,t,n,I,D]);il(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[c]);const j=m.useRef(!1);il(()=>(j.current=!0,()=>{j.current=!1}),[]),il(()=>{if(E&&(R.current=E),_&&(T.current=_),E&&_){if(b.current)return b.current(E,_,B);B()}},[E,_,B,b,P]);const V=m.useMemo(()=>({reference:R,floating:T,setReference:y,setFloating:w}),[y,w]),U=m.useMemo(()=>({reference:E,floating:_}),[E,_]),K=m.useMemo(()=>{const L={position:n,left:0,top:0};if(!U.floating)return L;const M=_v(U.floating,f.x),$=_v(U.floating,f.y);return l?{...L,transform:"translate("+M+"px, "+$+"px)",...Cy(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:$}},[n,l,U.floating,f.x,f.y]);return m.useMemo(()=>({...f,update:B,refs:V,elements:U,floatingStyles:K}),[f,B,V,U,K])}const x6=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?Sv({element:r.current,padding:o}).fn(n):{}:r?Sv({element:r,padding:o}).fn(n):{}}}},Sy=(e,t)=>({...d6(e),options:[e,t]}),_y=(e,t)=>({...h6(e),options:[e,t]}),w6=(e,t)=>({...g6(e),options:[e,t]}),C6=(e,t)=>({...p6(e),options:[e,t]}),E6=(e,t)=>({...v6(e),options:[e,t]}),S6=(e,t)=>({...m6(e),options:[e,t]}),Ty=(e,t)=>({...x6(e),options:[e,t]});var _6="Arrow",Ry=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(ie.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ry.displayName=_6;var T6=Ry;function R6(e){const[t,n]=m.useState(void 0);return qt(()=>{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,c=Array.isArray(s)?s[0]:s;a=c.inlineSize,l=c.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}var Vd="Popper",[Ny,ky]=An(Vd),[N6,Py]=Ny(Vd),by=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return p.jsx(N6,{scope:t,anchor:r,onAnchorChange:o,children:n})};by.displayName=Vd;var Ay="PopperAnchor",jy=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Py(Ay,n),a=m.useRef(null),l=Fe(t,a);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ie.div,{...o,ref:l})});jy.displayName=Ay;var Wd="PopperContent",[k6,P6]=Ny(Wd),Ly=m.forwardRef((e,t)=>{var Pe,ce,Ie,st,At,Bt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:x,...v}=e,C=Py(Wd,n),[g,y]=m.useState(null),w=Fe(t,gr=>y(gr)),[E,_]=m.useState(null),R=R6(E),T=(R==null?void 0:R.width)??0,S=(R==null?void 0:R.height)??0,P=r+(i!=="center"?"-"+i:""),b=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(c)?c:[c],D=I.length>0,B={padding:b,boundary:I.filter(A6),altBoundary:D},{refs:j,floatingStyles:V,placement:U,isPositioned:K,middlewareData:L}=Ey({strategy:"fixed",placement:P,whileElementsMounted:(...gr)=>f6(...gr,{animationFrame:h==="always"}),elements:{reference:C.anchor},middleware:[Sy({mainAxis:o+S,alignmentAxis:a}),s&&_y({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?w6():void 0,...B}),s&&C6({...B}),E6({...B,apply:({elements:gr,rects:We,availableWidth:Mn,availableHeight:na})=>{const{width:Cs,height:dn}=We.reference,Vr=gr.floating.style;Vr.setProperty("--radix-popper-available-width",`${Mn}px`),Vr.setProperty("--radix-popper-available-height",`${na}px`),Vr.setProperty("--radix-popper-anchor-width",`${Cs}px`),Vr.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),E&&Ty({element:E,padding:l}),j6({arrowWidth:T,arrowHeight:S}),d&&S6({strategy:"referenceHidden",...B})]}),[M,$]=Oy(U),J=at(x);qt(()=>{K&&(J==null||J())},[K,J]);const le=(Pe=L.arrow)==null?void 0:Pe.x,Ce=(ce=L.arrow)==null?void 0:ce.y,Le=((Ie=L.arrow)==null?void 0:Ie.centerOffset)!==0,[Ze,Me]=m.useState();return qt(()=>{g&&Me(window.getComputedStyle(g).zIndex)},[g]),p.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ze,"--radix-popper-transform-origin":[(st=L.transformOrigin)==null?void 0:st.x,(At=L.transformOrigin)==null?void 0:At.y].join(" "),...((Bt=L.hide)==null?void 0:Bt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(k6,{scope:n,placedSide:M,onArrowChange:_,arrowX:le,arrowY:Ce,shouldHideArrow:Le,children:p.jsx(ie.div,{"data-side":M,"data-align":$,...v,ref:w,style:{...v.style,animation:K?void 0:"none"}})})})});Ly.displayName=Wd;var My="PopperArrow",b6={top:"bottom",right:"left",bottom:"top",left:"right"},Iy=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=P6(My,r),a=b6[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(T6,{...o,ref:n,style:{...o.style,display:"block"}})})});Iy.displayName=My;function A6(e){return e!==null}var j6=e=>({name:"transformOrigin",options:e,fn(t){var C,g,y;const{placement:n,rects:r,middlewareData:o}=t,a=((C=o.arrow)==null?void 0:C.centerOffset)!==0,l=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,f]=Oy(n),u={start:"0%",center:"50%",end:"100%"}[f],d=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+s/2;let x="",v="";return c==="bottom"?(x=a?u:`${d}px`,v=`${-s}px`):c==="top"?(x=a?u:`${d}px`,v=`${r.floating.height+s}px`):c==="right"?(x=`${-s}px`,v=a?u:`${h}px`):c==="left"&&(x=`${r.floating.width+s}px`,v=a?u:`${h}px`),{data:{x,y:v}}}});function Oy(e){const[t,n="center"]=e.split("-");return[t,n]}var L6=by,Dy=jy,M6=Ly,I6=Iy,Kd="Popover",[Fy,LN]=An(Kd,[ky]),ta=ky(),[O6,mr]=Fy(Kd),zy=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=ta(t),s=m.useRef(null),[c,f]=m.useState(!1),[u=!1,d]=jn({prop:r,defaultProp:o,onChange:i});return p.jsx(L6,{...l,children:p.jsx(O6,{scope:t,contentId:un(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:c,onCustomAnchorAdd:m.useCallback(()=>f(!0),[]),onCustomAnchorRemove:m.useCallback(()=>f(!1),[]),modal:a,children:n})})};zy.displayName=Kd;var $y="PopoverAnchor",D6=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr($y,n),i=ta(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return m.useEffect(()=>(a(),()=>l()),[a,l]),p.jsx(Dy,{...i,...r,ref:t})});D6.displayName=$y;var By="PopoverTrigger",Uy=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(By,n),i=ta(n),a=Fe(t,o.triggerRef),l=p.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gy(o.open),...r,ref:a,onClick:oe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:p.jsx(Dy,{asChild:!0,...i,children:l})});Uy.displayName=By;var Gd="PopoverPortal",[F6,z6]=Fy(Gd,{forceMount:void 0}),Hy=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=mr(Gd,t);return p.jsx(F6,{scope:t,forceMount:n,children:p.jsx(zt,{present:n||i.open,children:p.jsx(md,{asChild:!0,container:o,children:r})})})};Hy.displayName=Gd;var Oo="PopoverContent",Vy=m.forwardRef((e,t)=>{const n=z6(Oo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=mr(Oo,e.__scopePopover);return p.jsx(zt,{present:r||i.open,children:i.modal?p.jsx($6,{...o,ref:t}):p.jsx(B6,{...o,ref:t})})});Vy.displayName=Oo;var $6=m.forwardRef((e,t)=>{const n=mr(Oo,e.__scopePopover),r=m.useRef(null),o=Fe(t,r),i=m.useRef(!1);return m.useEffect(()=>{const a=r.current;if(a)return V0(a)},[]),p.jsx(gd,{as:Lo,allowPinchZoom:!0,children:p.jsx(Wy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,c=l.button===2||s;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:oe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),B6=m.forwardRef((e,t)=>{const n=mr(Oo,e.__scopePopover),r=m.useRef(!1),o=m.useRef(!1);return p.jsx(Wy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var s,c;(s=e.onInteractOutside)==null||s.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Wy=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,...u}=e,d=mr(Oo,n),h=ta(n);return I0(),p.jsx(vd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(cs,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:p.jsx(M6,{"data-state":Gy(d.open),role:"dialog",id:d.contentId,...h,...u,ref:t,style:{...u.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)"}})})})}),Ky="PopoverClose",U6=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(Ky,n);return p.jsx(ie.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});U6.displayName=Ky;var H6="PopoverArrow",V6=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ta(n);return p.jsx(I6,{...o,...r,ref:t})});V6.displayName=H6;function Gy(e){return e?"open":"closed"}var W6=zy,K6=Uy,G6=Hy,Y6=Vy,Q6="vocs_Popover";Gt.Root=W6;Gt.Trigger=K6;function Gt({children:e,className:t}){return p.jsx(G6,{children:p.jsx(Y6,{className:F(Q6,t),sideOffset:12,children:e})})}var X6="vocs_Sidebar_backLink",Z6="vocs_Sidebar_divider",J6="vocs_Sidebar_group",pi="vocs_Sidebar_item",Yy="vocs_Sidebar_items",q6="vocs_Sidebar_level",e8="vocs_Sidebar_levelCollapsed",t8="vocs_Sidebar_levelInset",n8="vocs_Sidebar_logo",r8="vocs_Sidebar_logoWrapper",o8="vocs_Sidebar_navigation",i8="vocs_Sidebar",Qy="vocs_Sidebar_section",a8="vocs_Sidebar_sectionCollapse",l8="vocs_Sidebar_sectionCollapseActive",s8="vocs_Sidebar_sectionHeader",u8="vocs_Sidebar_sectionHeaderActive",Tv="vocs_Sidebar_sectionTitle",c8="vocs_Sidebar_sectionTitleLink";function Xy(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Chevron Right"}),p.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 Zy(e){var c;const{className:t,onClickItem:n}=e,{previousPath:r}=Ur(),o=m.useRef(null),i=us(),[a,l]=m.useState("/");if(m.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=f8(i.items);return p.jsxs("aside",{ref:o,className:F(i8,t),children:[p.jsxs("div",{className:r8,children:[p.jsx("div",{className:n8,children:p.jsx(ir,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:p.jsx(_d,{})})}),p.jsx("div",{className:Z6})]}),p.jsx("nav",{className:o8,children:p.jsxs("div",{className:J6,children:[i.backLink&&p.jsx("section",{className:Qy,children:p.jsx("div",{className:Yy,children:p.jsxs(ir,{className:F(pi,X6),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>p.jsx(qy,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function f8(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 Jy(e,t){return e.find(n=>Hi(t,n.link??"")||n.link===t?!0:n.items?Jy(n.items,t):!1)}function qy(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=m.useRef(null),{pathname:a}=ze(),l=_C(n.link||""),s=m.useMemo(()=>n.items?!!Jy(n.items,a):!1,[n.items,a]),[c,f]=m.useState(()=>n.link&&l||!n.items||s?!1:!!n.collapsed),u=n.collapsed!==void 0&&n.items!==void 0,d=m.useCallback(v=>{"key"in v&&v.key!=="Enter"||f(C=>!C)},[]),h=m.useCallback(v=>{"key"in v&&v.key!=="Enter"||f(C=>!C)},[]),x=m.useRef(!0);return m.useEffect(()=>{!x.current||(x.current=!1,!Hi(a,n.link??""))||requestAnimationFrame(()=>{var y,w,E;const C=((y=i.current)==null?void 0:y.offsetTop)??0,g=((w=o==null?void 0:o.current)==null?void 0:w.clientHeight)??0;C{r==null||r(v),d(v)},className:F(t===0?[Tv,c8]:pi,s&&u8),to:n.link,children:n.text}):p.jsx("div",{className:F(t===0?Tv:pi),children:n.text})),u&&p.jsx("div",{role:"button",tabIndex:0,onClick:h,onKeyDown:h,children:p.jsx(dt,{className:F(a8,c&&l8),label:"toggle section",icon:Xy,size:"10px"})})]}),!c&&p.jsx("div",{className:F(Yy,t!==0&&t8),children:n.items&&n.items.length>0&&t<5&&n.items.map((v,C)=>p.jsx(qy,{depth:t+1,item:v,onClick:r,sidebarRef:o},`${v.text}${C}`))})]}):p.jsx(p.Fragment,{children:n.link?p.jsx(ir,{ref:i,"data-active":!!l,onClick:r,className:pi,to:n.link,children:n.text}):p.jsx("div",{className:pi,children:n.text})})}function d8(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Chevron Down"}),p.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 h8(){return p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("title",{children:"Chevron Up"}),p.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 p8(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[p.jsx("title",{children:"Menu"}),p.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"})]})}Gc.Curtain=C8;function Gc(){var n,r;const e=Xe(),{showLogo:t}=Hr();return p.jsxs("div",{className:w7,children:[p.jsxs("div",{className:gv,children:[t&&p.jsx("div",{className:$a,children:p.jsx("div",{className:p7,children:p.jsx(ir,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:p.jsx(_d,{})})})}),e.topNav&&p.jsx(p.Fragment,{children:p.jsxs("div",{className:$a,children:[p.jsx(v8,{items:e.topNav}),p.jsx(g8,{items:e.topNav})]})})]}),p.jsxs("div",{className:gv,children:[p.jsx("div",{className:$a,style:{marginRight:"-8px"},children:p.jsx(i7,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:f7}),p.jsx("div",{className:$a,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>p.jsx(w8,{...o},i))})]})]})]})}function v8({items:e}){const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx(D1,{className:fy,children:p.jsx(F1,{children:e.map((r,o)=>r!=null&&r.link?p.jsx(ps,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):p.jsxs(z1,{className:h7,children:[p.jsx($1,{active:n==null?void 0:n.includes(r.id),children:r.text}),p.jsx(B1,{className:u7,children:p.jsx(m8,{items:r.items||[]})})]},o))})})}function m8({items:e}){const{pathname:t}=ze(),n=qi({pathname:t,items:e});return p.jsx("ul",{children:e==null?void 0:e.map((r,o)=>p.jsx(ps,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function g8({items:e}){var s;const[t,n]=m.useState(!1),{pathname:r}=ze(),o=qi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Xe(),l=a;return p.jsx("div",{className:F(fy,y7),children:i?p.jsxs(Gt.Root,{modal:!0,open:t,onOpenChange:n,children:[p.jsxs(Gt.Trigger,{className:F(cy,ai),children:[i.text,p.jsx(dt,{label:"Menu",icon:d8,size:"11px"})]}),p.jsx(Gt,{className:S7,children:p.jsx(e7,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?p.jsx(sn,{"data-active":o.includes(c.id),className:ai,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):p.jsxs(t7,{value:f.toString(),children:[p.jsx(n7,{className:F(ai,g7),"data-active":o.includes(c.id),style:Jt({[l7]:`url(${l}/.vocs/icons/chevron-down.svg)`,[s7]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),p.jsx(r7,{className:m7,children:(u=c.items)==null?void 0:u.map((d,h)=>p.jsx(sn,{className:ai,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},h))})]},f)})})})]}):(s=e[0])!=null&&s.link?p.jsx(sn,{className:ai,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const y8={discord:U1,github:H1,telegram:V1,warpcast:W1,x:K1},x8={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function w8({icon:e,label:t,link:n,type:r}){return p.jsx("a",{className:a7,href:n,target:"_blank",rel:"noopener noreferrer",children:p.jsx(dt,{className:d7,label:t,icon:y8[e],size:x8[r]||"18px"})})}function C8({enableScrollToTop:e}){const{pathname:t}=ze(),{layout:n,showSidebar:r}=Hr(),{frontmatter:o={}}=Ur(),i=us(),[a,l]=m.useState(!1),[s,c]=m.useState(!1),f=m.useMemo(()=>{if(!i||n==="minimal")return;const h=ex({sidebarItems:i.items,pathname:t});return h==null?void 0:h.text},[n,t,i]),u=m.useMemo(()=>{var h;if(!(typeof window>"u"))return(h=document.querySelector(".vocs_Content h1"))==null?void 0:h.textContent},[]),d=f||o.title||u;return p.jsxs("div",{className:c7,children:[p.jsx("div",{className:vv,children:p.jsx("div",{className:yu,children:r?p.jsxs(Gt.Root,{modal:!0,open:s,onOpenChange:c,children:[p.jsxs(Gt.Trigger,{className:cy,children:[p.jsx(dt,{label:"Menu",icon:p8,size:"13px"}),p.jsx("div",{className:v7,children:d})]}),p.jsx(Gt,{className:E7,children:p.jsx(Zy,{onClickItem:()=>c(!1)})})]}):d})}),p.jsxs("div",{className:vv,children:[e&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:yu,children:p.jsxs("button",{className:mv,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",p.jsx(dt,{label:"Scroll to top",icon:h8,size:"10px"})]})}),p.jsx("div",{className:C7})]}),n==="docs"&&p.jsx("div",{className:yu,children:p.jsxs(Gt.Root,{modal:!0,open:a,onOpenChange:l,children:[p.jsxs(Gt.Trigger,{className:mv,children:["On this page",p.jsx(dt,{label:"On this page",icon:Xy,size:"10px"})]}),p.jsx(Gt,{className:x7,children:p.jsx(dy,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function ex({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=ex({sidebarItems:r.items,pathname:n});if(o)return o}}}var E8="vocs_SkipLink";const tx="vocs-content";function S8(){const{pathname:e}=ze();return p.jsx("a",{className:F(E8,A0),href:`${e}#${tx}`,children:"Skip to content"})}var _8="vocs_DocsLayout_content",T8="vocs_DocsLayout_content_withSidebar",R8="vocs_DocsLayout_content_withTopNav",N8="vocs_DocsLayout_gutterLeft",k8="vocs_DocsLayout_gutterRight",P8="vocs_DocsLayout_gutterRight_withSidebar",b8="vocs_DocsLayout_gutterTop",A8="vocs_DocsLayout_gutterTopCurtain",j8="vocs_DocsLayout_gutterTopCurtain_hidden",L8="vocs_DocsLayout_gutterTopCurtain_withSidebar",M8="vocs_DocsLayout_gutterTop_offsetLeftGutter",I8="vocs_DocsLayout_gutterTop_sticky",O8="vocs_DocsLayout",D8="vocs_DocsLayout_sidebar";function Yc({children:e}){var h,x;const{banner:t,font:n}=Xe(),{frontmatter:r={}}=Ur(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Hr(),{ref:c,inView:f}=S0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=Lc("banner",!0);return p.jsxs("div",{className:O8,"data-layout":i,style:Jt({[A5]:u?t==null?void 0:t.height:void 0,[Op.default]:(h=n==null?void 0:n.default)!=null&&h.google?`${n.default.google}, ${Ip.default}`:void 0,[Op.mono]:(x=n==null?void 0:n.mono)!=null&&x.google?`${n.mono.google}, ${Ip.mono}`:void 0}),children:[p.jsx(S8,{}),u&&p.jsx(q5,{hide:()=>d(!1)}),l&&p.jsx("div",{className:N8,children:p.jsx(Zy,{className:D8})}),s&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{ref:c,className:F(b8,l&&M8,(i==="minimal"||i==="landing")&&I8),children:[p.jsx($c,{}),p.jsx(Gc,{})]}),p.jsxs("div",{className:F(A8,l&&L8,(i==="minimal"||i==="landing")&&j8),children:[p.jsx($c.Curtain,{}),p.jsx(Gc.Curtain,{enableScrollToTop:!f})]})]}),a&&p.jsx("div",{className:F(k8,l&&P8),children:p.jsx(dy,{})}),p.jsxs("div",{id:tx,className:F(_8,l&&T8,s&&R8),style:Jt({[eu.horizontalPadding]:o==null?void 0:o.horizontalPadding,[eu.width]:o==null?void 0:o.width,[eu.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[p.jsx(k0,{children:e}),p.jsx(I_,{})]}),p.jsx("div",{"data-bottom-observer":!0})]})}const Qc={},nx=de.createContext(Qc);function F8(e){const t=de.useContext(nx);return de.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function z8(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Qc):e.components||Qc:t=F8(e.components),de.createElement(nx.Provider,{value:t},e.children)}var rx={exports:{}},$8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",B8=$8,U8=B8;function ox(){}function ix(){}ix.resetWarningCache=ox;var H8=function(){function e(r,o,i,a,l,s){if(s!==U8){var c=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 c.name="Invariant Violation",c}}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:ix,resetWarningCache:ox};return n.PropTypes=n,n};rx.exports=H8();var V8=rx.exports;const Ee=cr(V8);function W8(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var ax=m,K8=W8(ax);function Rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Y8=!!(typeof window<"u"&&window.document&&window.document.createElement);function Q8(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})),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(f){G8(u,f);function u(){return f.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var x=l;return l=void 0,a=[],x};var d=u.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var x=a.indexOf(this);a.splice(x,1),s()},d.render=function(){return K8.createElement(i,this.props)},u}(ax.PureComponent);return Rv(c,"displayName","SideEffect("+r(i)+")"),Rv(c,"canUseDOM",Y8),c}}var X8=Q8;const Z8=cr(X8);var J8=typeof Element<"u",q8=typeof Map=="function",e9=typeof Set=="function",t9=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function al(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(!al(e[r],t[r]))return!1;return!0}var i;if(q8&&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(!al(r.value[1],t.get(r.value[0])))return!1;return!0}if(e9&&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(t9&&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(J8&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!al(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var n9=function(t,n){try{return al(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 r9=cr(n9);/* object-assign (c) Sindre Sorhus @license MIT -*/var Nv=Object.getOwnPropertySymbols,oT=Object.prototype.hasOwnProperty,iT=Object.prototype.propertyIsEnumerable;function aT(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lT(){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 sT=lT()?Object.assign:function(e,t){for(var n,r=aT(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},mT=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},Xc=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,"'")},gT=function(t){var n=Eo(t,ee.TITLE),r=Eo(t,Ki.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=Eo(t,Ki.DEFAULT_TITLE);return n||o||void 0},yT=function(t){return Eo(t,Ki.ON_CHANGE_CLIENT_STATE)||function(){}},Cu=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return vt({},r,o)},{})},xT=function(t,n){return n.filter(function(r){return typeof r[ee.BASE]<"u"}).map(function(r){return r[ee.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},wT=function(t){return{baseTag:xT([Se.HREF,Se.TARGET],t),bodyAttributes:Cu(Nr.BODY,t),defer:Eo(t,Ki.DEFER),encode:Eo(t,Ki.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Cu(Nr.HTML,t),linkTags:li(ee.LINK,[Se.REL,Se.HREF],t),metaTags:li(ee.META,[Se.NAME,Se.CHARSET,Se.HTTPEQUIV,Se.PROPERTY,Se.ITEM_PROP],t),noscriptTags:li(ee.NOSCRIPT,[Se.INNER_HTML],t),onChangeClientState:yT(t),scriptTags:li(ee.SCRIPT,[Se.SRC,Se.INNER_HTML],t),styleTags:li(ee.STYLE,[Se.CSS_TEXT],t),title:gT(t),titleAttributes:Cu(Nr.TITLE,t)}},Zc=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Zc(t)},0)}}(),Pv=function(t){return clearTimeout(t)},CT=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Zc:global.requestAnimationFrame||Zc,ET=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Pv:global.cancelAnimationFrame||Pv,ST=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},si=null,_T=function(t){si&&ET(si),t.defer?si=CT(function(){bv(t,function(){si=null})}):(bv(t),si=null)},bv=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.onChangeClientState,f=t.scriptTags,u=t.styleTags,d=t.title,h=t.titleAttributes;Jc(ee.BODY,o),Jc(ee.HTML,i),TT(d,h);var x={baseTag:Jr(ee.BASE,r),linkTags:Jr(ee.LINK,a),metaTags:Jr(ee.META,l),noscriptTags:Jr(ee.NOSCRIPT,s),scriptTags:Jr(ee.SCRIPT,f),styleTags:Jr(ee.STYLE,u)},v={},C={};Object.keys(x).forEach(function(g){var y=x[g],w=y.newTags,E=y.oldTags;w.length&&(v[g]=w),E.length&&(C[g]=x[g].oldTags)}),n&&n(),c(t,v,C)},sx=function(t){return Array.isArray(t)?t.join(""):t},TT=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=sx(t)),Jc(ee.TITLE,n)},Jc=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Yt),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(Yt):r.getAttribute(Yt)!==l.join(",")&&r.setAttribute(Yt,l.join(","))}},Jr=function(t,n){var r=document.head||document.querySelector(ee.HEAD),o=r.querySelectorAll(t+"["+Yt+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var c=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Se.INNER_HTML)c.innerHTML=s.innerHTML;else if(f===Se.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=s.cssText:c.appendChild(document.createTextNode(s.cssText));else{var u=typeof s[f]>"u"?"":s[f];c.setAttribute(f,u)}c.setAttribute(Yt,"true"),i.some(function(d,h){return l=h,c.isEqualNode(d)})?i.splice(l,1):a.push(c)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},ux=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},"")},RT=function(t,n,r,o){var i=ux(r),a=sx(n);return i?"<"+t+" "+Yt+'="true" '+i+">"+Xc(a,o)+"":"<"+t+" "+Yt+'="true">'+Xc(a,o)+""},NT=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(c){return!(c===Se.INNER_HTML||c===Se.CSS_TEXT)}).reduce(function(c,f){var u=typeof i[f]>"u"?f:f+'="'+Xc(i[f],r)+'"';return c?c+" "+u:u},""),l=i.innerHTML||i.cssText||"",s=fT.indexOf(t)===-1;return o+"<"+t+" "+Yt+'="true" '+a+(s?"/>":">"+l+"")},"")},cx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Vl[o]||o]=t[o],r},n)},kT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[cT[o]||o]=t[o],r},n)},PT=function(t,n,r){var o,i=(o={key:n},o[Yt]=!0,o),a=cx(r,i);return[de.createElement(ee.TITLE,a,n)]},bT=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Yt]=!0,i);return Object.keys(r).forEach(function(l){var s=Vl[l]||l;if(s===Se.INNER_HTML||s===Se.CSS_TEXT){var c=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[s]=r[l]}),de.createElement(t,a)})},gn=function(t,n,r){switch(t){case ee.TITLE:return{toComponent:function(){return PT(t,n.title,n.titleAttributes)},toString:function(){return RT(t,n.title,n.titleAttributes,r)}};case Nr.BODY:case Nr.HTML:return{toComponent:function(){return cx(n)},toString:function(){return ux(n)}};default:return{toComponent:function(){return bT(t,n)},toString:function(){return NT(t,n,r)}}}},fx=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.scriptTags,f=t.styleTags,u=t.title,d=u===void 0?"":u,h=t.titleAttributes;return{base:gn(ee.BASE,n,o),bodyAttributes:gn(Nr.BODY,r,o),htmlAttributes:gn(Nr.HTML,i,o),link:gn(ee.LINK,a,o),meta:gn(ee.META,l,o),noscript:gn(ee.NOSCRIPT,s,o),script:gn(ee.SCRIPT,c,o),style:gn(ee.STYLE,f,o),title:gn(ee.TITLE,{title:d,titleAttributes:h},o)}},AT=function(t){var n,r;return r=n=function(o){vT(i,o);function i(){return hT(this,i),mT(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!rT(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case ee.SCRIPT:case ee.NOSCRIPT:return{innerHTML:s};case ee.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,c=l.child,f=l.arrayTypeChildren,u=l.newChildProps,d=l.nestedChildren;return vt({},f,(s={},s[c.type]=[].concat(f[c.type]||[],[vt({},u,this.mapNestedChildrenToProps(c,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,c,f=l.child,u=l.newProps,d=l.newChildProps,h=l.nestedChildren;switch(f.type){case ee.TITLE:return vt({},u,(s={},s[f.type]=h,s.titleAttributes=vt({},d),s));case ee.BODY:return vt({},u,{bodyAttributes:vt({},d)});case ee.HTML:return vt({},u,{htmlAttributes:vt({},d)})}return vt({},u,(c={},c[f.type]=vt({},d),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var c=vt({},s);return Object.keys(l).forEach(function(f){var u;c=vt({},c,(u={},u[f]=l[f],u))}),c},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var c=this,f={};return de.Children.forEach(l,function(u){if(!(!u||!u.props)){var d=u.props,h=d.children,x=kv(d,["children"]),v=kT(x);switch(c.warnOnInvalidChildren(u,h),u.type){case ee.LINK:case ee.META:case ee.NOSCRIPT:case ee.SCRIPT:case ee.STYLE:f=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:f,newChildProps:v,nestedChildren:h});break;default:s=c.mapObjectTypeChildren({child:u,newProps:s,newChildProps:v,nestedChildren:h});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,c=kv(l,["children"]),f=vt({},c);return s&&(f=this.mapChildrenToProps(s,f)),de.createElement(t,f)},pT(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(de.Component),n.propTypes={base:Ee.object,bodyAttributes:Ee.object,children:Ee.oneOfType([Ee.arrayOf(Ee.node),Ee.node]),defaultTitle:Ee.string,defer:Ee.bool,encodeSpecialCharacters:Ee.bool,htmlAttributes:Ee.object,link:Ee.arrayOf(Ee.object),meta:Ee.arrayOf(Ee.object),noscript:Ee.arrayOf(Ee.object),onChangeClientState:Ee.func,script:Ee.arrayOf(Ee.object),style:Ee.arrayOf(Ee.object),title:Ee.string,titleAttributes:Ee.object,titleTemplate:Ee.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=fx({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},jT=function(){return null},LT=Z6(wT,_T,fx)(jT),qc=AT(LT);qc.renderStatic=qc.rewind;var Eu="vocs_Anchor",MT="vocs_Autolink";function IT(e){return e.href?p.jsx(ss,{...e,className:F(e.className,MT),to:e.href}):null}function OT(e){const{children:t,href:n}=e,{pathname:r}=ze();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?p.jsx(IT,{className:F(e.className,Eu),...e}):n!=null&&n.match(/^#/)?p.jsx("a",{className:F(e.className,Eu),...e,href:`${r}${n}`}):p.jsx(sn,{className:F(e.className,Eu),...e})}var DT="vocs_Callout_danger",FT="vocs_Callout_info",zT="vocs_Callout_note",dx="vocs_Callout",$T="vocs_Callout_success",BT="vocs_Callout_tip",UT="vocs_Callout_warning";const HT=Object.freeze(Object.defineProperty({__proto__:null,danger:DT,info:FT,note:zT,root:dx,success:$T,tip:BT,warning:UT},Symbol.toStringTag,{value:"Module"}));function VT({className:e,children:t,type:n}){return p.jsx("aside",{className:F(e,dx,HT[n]),children:t})}var WT="vocs_Aside";function KT(e){const t=F(e.className,WT);return"data-callout"in e?p.jsx(VT,{className:t,type:e["data-callout"],children:e.children}):p.jsx("aside",{...e,className:t})}var GT="vocs_Blockquote";function YT(e){return p.jsx("blockquote",{...e,className:F(e.className,GT)})}var QT="vocs_Code";function XT(e){const t=ZT(e.children);return p.jsx("code",{...e,className:F(e.className,QT),children:t})}function ZT(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 JT="vocs_Details";function qT(e){return p.jsx("details",{...e,className:F(e.className,JT)})}var eR="vocs_Authors_authors",tR="vocs_Authors_link",nR="vocs_Authors",Av="vocs_Authors_separator";function hx(e){const{frontmatter:t}=Ur(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=m.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=m.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return p.jsxs("div",{className:nR,children:[i,o&&(i?" by ":"By "),p.jsx("span",{className:eR,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:c}=rR(a);return p.jsxs(m.Fragment,{children:[c?p.jsx("a",{className:tR,href:c,target:"_blank",rel:"noopener noreferrer",children:s}):s,lp.jsxs(m.Fragment,{children:[p.jsx("div",{className:aR,children:p.jsxs(ir,{to:e.path,children:[p.jsx("h2",{className:uR,children:e.title}),p.jsx(hx,{authors:e.authors,date:e.date}),p.jsxs("p",{className:oR,children:[e.description," ",p.jsx("span",{className:lR,children:"[→]"})]})]})}),tp.jsxs(m.Fragment,{children:[p.jsx("div",{className:yR,children:t.name}),t.items.map((r,o)=>{var i;return p.jsx("div",{className:mR,style:Jt({[dR]:r.length.toString(),[hR]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>p.jsx(sn,{className:F(fR,a?gR:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:p.jsx("img",{className:pR,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var wR="var(--vocs_AutolinkIcon_iconUrl)",CR="vocs_AutolinkIcon";function ER(e){const{basePath:t}=Xe(),n=t;return p.jsx("div",{...e,className:F(e.className,CR),style:Jt({[wR]:`url(${n}/.vocs/icons/link.svg)`})})}var Su="rovingFocusGroup.onEntryFocus",SR={bubbles:!1,cancelable:!0},ws="RovingFocusGroup",[ef,px,_R]=hs(ws),[TR,vx]=An(ws,[_R]),[RR,NR]=TR(ws),mx=m.forwardRef((e,t)=>p.jsx(ef.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ef.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(kR,{...e,ref:t})})}));mx.displayName=ws;var kR=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...u}=e,d=m.useRef(null),h=Fe(t,d),x=ds(i),[v=null,C]=jn({prop:a,defaultProp:l,onChange:s}),[g,y]=m.useState(!1),w=at(c),E=px(n),_=m.useRef(!1),[R,T]=m.useState(0);return m.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(Su,w),()=>S.removeEventListener(Su,w)},[w]),p.jsx(RR,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(S=>C(S),[C]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>T(S=>S+1),[]),onFocusableItemRemove:m.useCallback(()=>T(S=>S-1),[]),children:p.jsx(ie.div,{tabIndex:g||R===0?-1:0,"data-orientation":r,...u,ref:h,style:{outline:"none",...e.style},onMouseDown:oe(e.onMouseDown,()=>{_.current=!0}),onFocus:oe(e.onFocus,S=>{const P=!_.current;if(S.target===S.currentTarget&&P&&!g){const b=new CustomEvent(Su,SR);if(S.currentTarget.dispatchEvent(b),!b.defaultPrevented){const I=E().filter(U=>U.focusable),D=I.find(U=>U.active),B=I.find(U=>U.id===v),V=[D,B,...I].filter(Boolean).map(U=>U.ref.current);xx(V,f)}}_.current=!1}),onBlur:oe(e.onBlur,()=>y(!1))})})}),gx="RovingFocusGroupItem",yx=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=un(),s=i||l,c=NR(gx,n),f=c.currentTabStopId===s,u=px(n),{onFocusableItemAdd:d,onFocusableItemRemove:h}=c;return m.useEffect(()=>{if(r)return d(),()=>h()},[r,d,h]),p.jsx(ef.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:p.jsx(ie.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:oe(e.onMouseDown,x=>{r?c.onItemFocus(s):x.preventDefault()}),onFocus:oe(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:oe(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=AR(x,c.orientation,c.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let g=u().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(x.currentTarget);g=c.loop?jR(g,y+1):g.slice(y+1)}setTimeout(()=>xx(g))}})})})});yx.displayName=gx;var PR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bR(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function AR(e,t,n){const r=bR(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return PR[r]}function xx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jR(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var LR=mx,MR=yx,Yd="Tabs",[IR,MN]=An(Yd,[vx]),wx=vx(),[OR,Qd]=IR(Yd),Cx=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...c}=e,f=ds(l),[u,d]=jn({prop:r,onChange:o,defaultProp:i});return p.jsx(OR,{scope:n,baseId:un(),value:u,onValueChange:d,orientation:a,dir:f,activationMode:s,children:p.jsx(ie.div,{dir:f,"data-orientation":a,...c,ref:t})})});Cx.displayName=Yd;var Ex="TabsList",Sx=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Qd(Ex,n),a=wx(n);return p.jsx(LR,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(ie.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Sx.displayName=Ex;var _x="TabsTrigger",Tx=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Qd(_x,n),l=wx(n),s=kx(a.baseId,r),c=Px(a.baseId,r),f=r===a.value;return p.jsx(MR,{asChild:!0,...l,focusable:!o,active:f,children:p.jsx(ie.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...i,ref:t,onMouseDown:oe(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:oe(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:oe(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!o&&u&&a.onValueChange(r)})})})});Tx.displayName=_x;var Rx="TabsContent",Nx=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=Qd(Rx,n),s=kx(l.baseId,r),c=Px(l.baseId,r),f=r===l.value,u=m.useRef(f);return m.useEffect(()=>{const d=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(d)},[]),p.jsx(zt,{present:o||f,children:({present:d})=>p.jsx(ie.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:d&&i})})});Nx.displayName=Rx;function kx(e,t){return`${e}-trigger-${t}`}function Px(e,t){return`${e}-content-${t}`}var DR=Cx,FR=Sx,zR=Tx,$R=Nx,BR="vocs_Tabs_content",UR="vocs_Tabs_list",HR="vocs_Tabs",VR="vocs_Tabs_trigger";function WR(e){return p.jsx(DR,{...e,className:F(e.className,HR)})}function KR(e){return p.jsx(FR,{...e,className:F(e.className,UR)})}function GR(e){return p.jsx(zR,{...e,className:F(e.className,VR)})}function YR(e){return p.jsx($R,{...e,className:F(e.className,BR)})}var QR="vocs_CodeGroup";function XR({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 p.jsxs(WR,{className:QR,defaultValue:t[0].title,children:[p.jsx(KR,{"aria-label":"Code group",children:t.map(({title:n},r)=>p.jsx(GR,{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 p.jsx(YR,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var ZR="vocs_Div",JR="vocs_Step_content",qR="vocs_Step",bx="vocs_Step_title",e9="vocs_H2";function Ax(e){return p.jsx(Uo,{...e,className:F(e.className,e9),level:2})}var t9="vocs_H3";function jx(e){return p.jsx(Uo,{...e,className:F(e.className,t9),level:3})}var n9="vocs_H4";function Lx(e){return p.jsx(Uo,{...e,className:F(e.className,n9),level:4})}var r9="vocs_H5";function Mx(e){return p.jsx(Uo,{...e,className:F(e.className,r9),level:5})}var o9="vocs_H6";function Ix(e){return p.jsx(Uo,{...e,className:F(e.className,o9),level:6})}function i9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return Ax;if(r===3)return jx;if(r===4)return Lx;if(r===5)return Mx;if(r===6)return Ix;throw new Error("Invalid.")})();return p.jsxs("div",{className:F(t,qR),children:[typeof n=="string"?p.jsx(o,{className:bx,children:n}):n,p.jsx("div",{className:JR,children:e})]})}var a9="vocs_Steps";function l9({children:e,className:t}){return p.jsx("div",{className:F(t,a9),children:e})}function s9({children:e}){return Array.isArray(e)?p.jsx(l9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return p.jsx(i9,{title:m.cloneElement(r,{className:bx}),children:o},n)})}):null}var u9="vocs_Subtitle";function c9({children:e}){return p.jsx("div",{className:u9,role:"doc-subtitle",children:e})}function f9(e){const{layout:t}=Hr(),n=F(e.className,ZR);return e.className==="code-group"?p.jsx(XR,{...e,className:n}):"data-authors"in e?p.jsx(hx,{}):"data-blog-posts"in e?p.jsx(cR,{}):"data-sponsors"in e?p.jsx(xR,{}):"data-autolink-icon"in e&&t==="docs"?p.jsx(ER,{...e,className:n}):"data-vocs-steps"in e?p.jsx(s9,{...e,className:n}):e.role==="doc-subtitle"?p.jsx(c9,{...e}):p.jsx("div",{...e,className:n})}var d9="vocs_Figcaption";function h9(e){const t=F(e.className,d9);return p.jsx("figcaption",{...e,className:t})}var p9="vocs_Figure";function v9(e){const t=F(e.className,p9);return p.jsx("figure",{...e,className:t})}var m9="vocs_Header";function g9(e){return p.jsx("header",{...e,className:F(e.className,m9)})}var y9="vocs_HorizontalRule";function x9(e){return p.jsx("hr",{...e,className:F(e.className,y9)})}var w9="vocs_List_ordered",C9="vocs_List",E9="vocs_List_unordered";function Lv({ordered:e,...t}){const n=e?"ol":"ul";return p.jsx(n,{...t,className:F(t.className,C9,e?w9:E9)})}var S9="vocs_ListItem";function _9(e){return p.jsx("li",{...e,className:F(e.className,S9)})}function T9(){const e=m.useRef(null),[t,n]=m.useState(!1);m.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 R9="vocs_CopyButton";function N9(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[p.jsx("title",{children:"Checkmark"}),p.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 k9(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[p.jsx("title",{children:"Copy"}),p.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"}),p.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 P9({copy:e,copied:t}){return p.jsx("button",{className:R9,onClick:e,type:"button",children:t?p.jsx(dt,{label:"Copied",size:"14px",icon:N9}):p.jsx(dt,{label:"Copy",size:"18px",icon:k9})})}var b9="vocs_CodeBlock";function A9(e){return p.jsx("div",{...e,className:F(e.className,b9)})}function j9(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[p.jsx("title",{children:"File"}),p.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),p.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function L9(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[p.jsx("title",{children:"Terminal"}),p.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"}),p.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var M9="vocs_CodeTitle";function I9({children:e,className:t,language:n,...r}){return p.jsxs("div",{...r,className:F(t,M9),children:[n==="bash"?p.jsx(dt,{label:"Terminal",size:"14px",icon:L9,style:{marginTop:3}}):e.match(/\.(.*)$/)?p.jsx(dt,{label:"File",size:"14px",icon:j9,style:{marginTop:1}}):null,e]})}var O9="vocs_Pre",D9="vocs_Pre_wrapper";function F9({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=T9();function a(c){return!c||typeof c!="object"?c:"props"in c?{...c,props:{...c.props,children:Array.isArray(c.props.children)?c.props.children.map(a):a(c.props.children)}}:c}const l=m.useMemo(()=>a(e),[e]);return(c=>t!=null&&t.includes("shiki")?p.jsxs(A9,{children:[n["data-title"]&&p.jsx(I9,{language:n["data-lang"],children:n["data-title"]}),c]}):c)(p.jsx("div",{className:F(D9),children:p.jsxs("pre",{ref:i,...n,className:F(t,O9),children:["data-language"in n&&p.jsx(P9,{copied:r,copy:o}),l]})}))}var z9="vocs_Footnotes";function $9(e){return p.jsx("section",{...e,className:F(e.className,z9)})}var Mv="vocs_Section";function B9(e){return"data-footnotes"in e?p.jsx($9,{...e,className:F(e.className,Mv)}):p.jsx("section",{...e,className:F(e.className,Mv)})}var Iv="vocs_Span";function ll(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Vc(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function tf(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Ua(e){return(e==null?void 0:e.ownerDocument)||document}function U9(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Ox={...ff},H9=Ox.useInsertionEffect,V9=H9||(e=>e());function nf(e){const t=m.useRef(()=>{});return V9(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+W9++;function K9(){const[e,t]=m.useState(()=>Ov?Dv():void 0);return Or(()=>{e==null&&t(Dv())},[]),m.useEffect(()=>{Ov=!0},[]),e}const G9=Ox.useId,Dx=G9||K9,Y9=m.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:l=14,height:s=7,tipRadius:c=0,strokeWidth:f=0,staticOffset:u,stroke:d,d:h,style:{transform:x,...v}={},...C}=t,g=Dx(),[y,w]=m.useState(!1);if(Or(()=>{if(!o)return;Ft(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const[E,_]=r.split("-"),R=E==="top"||E==="bottom";let T=u;(R&&a!=null&&a.x||!R&&a!=null&&a.y)&&(T=null);const S=f*2,P=S/2,b=l/2*(c/-8+1),I=s/2*c/4,D=!!h,B=T&&_==="end"?"bottom":"top";let j=T&&_==="end"?"right":"left";T&&y&&(j=_==="end"?"left":"right");const V=(i==null?void 0:i.x)!=null?T||i.x:"",U=(i==null?void 0:i.y)!=null?T||i.y:"",K=h||"M0,0"+(" H"+l)+(" L"+(l-b)+","+(s-I))+(" Q"+l/2+","+s+" "+b+","+(s-I))+" Z",L={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[E];return m.createElement("svg",rf({},C,{"aria-hidden":!0,ref:n,width:D?l:l+S,height:l,viewBox:"0 0 "+l+" "+(s>l?s:l),style:{position:"absolute",pointerEvents:"none",[j]:V,[B]:U,[E]:R||D?"100%":"calc(100% - "+S/2+"px)",transform:[L,x].filter(M=>!!M).join(" "),...v}}),S>0&&m.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(h?0:1),d:K}),m.createElement("path",{stroke:S&&!h?C.fill:"none",d:K}),m.createElement("clipPath",{id:g},m.createElement("rect",{x:-P,y:P*(D?-1:1),width:l+S,height:l})))});function Q9(){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 X9=m.createContext(null),Z9=m.createContext(null),Fx=()=>{var e;return((e=m.useContext(X9))==null?void 0:e.id)||null},zx=()=>m.useContext(Z9);function J9(e){return"data-floating-ui-"+e}function _u(e){const t=m.useRef(e);return Or(()=>{t.current=e}),t}const Fv=J9("safe-polygon");function Tu(e,t,n){return n&&!tf(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function q9(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:l=!0,delay:s=0,handleClose:c=null,mouseOnly:f=!1,restMs:u=0,move:d=!0}=t,h=zx(),x=Fx(),v=_u(c),C=_u(s),g=_u(n),y=m.useRef(),w=m.useRef(-1),E=m.useRef(),_=m.useRef(-1),R=m.useRef(!0),T=m.useRef(!1),S=m.useRef(()=>{}),P=m.useCallback(()=>{var V;const U=(V=o.current.openEvent)==null?void 0:V.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[o]);m.useEffect(()=>{if(!l)return;function V(U){let{open:K}=U;K||(clearTimeout(w.current),clearTimeout(_.current),R.current=!0)}return i.on("openchange",V),()=>{i.off("openchange",V)}},[l,i]),m.useEffect(()=>{if(!l||!v.current||!n)return;function V(K){P()&&r(!1,K,"hover")}const U=Ua(a.floating).documentElement;return U.addEventListener("mouseleave",V),()=>{U.removeEventListener("mouseleave",V)}},[a.floating,n,r,l,v,P]);const b=m.useCallback(function(V,U,K){U===void 0&&(U=!0),K===void 0&&(K="hover");const L=Tu(C.current,"close",y.current);L&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,V,K),L)):U&&(clearTimeout(w.current),r(!1,V,K))},[C,r]),I=nf(()=>{S.current(),E.current=void 0}),D=nf(()=>{if(T.current){const V=Ua(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Fv),T.current=!1}});m.useEffect(()=>{if(!l)return;function V(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function U($){if(clearTimeout(w.current),R.current=!1,f&&!tf(y.current)||u>0&&!Tu(C.current,"open"))return;const J=Tu(C.current,"open",y.current);J?w.current=window.setTimeout(()=>{g.current||r(!0,$,"hover")},J):r(!0,$,"hover")}function K($){if(V())return;S.current();const J=Ua(a.floating);if(clearTimeout(_.current),v.current&&o.current.floatingContext){n||clearTimeout(w.current),E.current=v.current({...o.current.floatingContext,tree:h,x:$.clientX,y:$.clientY,onClose(){D(),I(),b($,!0,"safe-polygon")}});const Ce=E.current;J.addEventListener("mousemove",Ce),S.current=()=>{J.removeEventListener("mousemove",Ce)};return}(y.current==="touch"?!ll(a.floating,$.relatedTarget):!0)&&b($)}function L($){V()||o.current.floatingContext&&(v.current==null||v.current({...o.current.floatingContext,tree:h,x:$.clientX,y:$.clientY,onClose(){D(),I(),b($)}})($))}if(Ye(a.domReference)){var M;const $=a.domReference;return n&&$.addEventListener("mouseleave",L),(M=a.floating)==null||M.addEventListener("mouseleave",L),d&&$.addEventListener("mousemove",U,{once:!0}),$.addEventListener("mouseenter",U),$.addEventListener("mouseleave",K),()=>{var J;n&&$.removeEventListener("mouseleave",L),(J=a.floating)==null||J.removeEventListener("mouseleave",L),d&&$.removeEventListener("mousemove",U),$.removeEventListener("mouseenter",U),$.removeEventListener("mouseleave",K)}}},[a,l,e,f,u,d,b,I,D,r,n,g,h,C,v,o]),Or(()=>{var V;if(l&&n&&(V=v.current)!=null&&V.__options.blockPointerEvents&&P()){T.current=!0;const K=a.floating;if(Ye(a.domReference)&&K){var U;const L=Ua(a.floating).body;L.setAttribute(Fv,"");const M=a.domReference,$=h==null||(U=h.nodesRef.current.find(J=>J.id===x))==null||(U=U.context)==null?void 0:U.elements.floating;return $&&($.style.pointerEvents=""),L.style.pointerEvents="none",M.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{L.style.pointerEvents="",M.style.pointerEvents="",K.style.pointerEvents=""}}}},[l,n,x,a,h,v,P]),Or(()=>{n||(y.current=void 0,I(),D())},[n,I,D]),m.useEffect(()=>()=>{I(),clearTimeout(w.current),clearTimeout(_.current),D()},[l,a.domReference,I,D]);const B=m.useMemo(()=>{function V(U){y.current=U.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(U){const{nativeEvent:K}=U;function L(){!R.current&&!g.current&&r(!0,K,"hover")}f&&!tf(y.current)||n||u===0||(clearTimeout(_.current),y.current==="touch"?L():_.current=window.setTimeout(L,u))}}},[f,r,n,g,u]),j=m.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(V){b(V.nativeEvent,!1)}}),[b]);return m.useMemo(()=>l?{reference:B,floating:j}:{},[l,B,j])}function eN(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}const tN="data-floating-ui-focusable";function nN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Dx(),i=m.useRef({}),[a]=m.useState(()=>Q9()),l=Fx()!=null,[s,c]=m.useState(r.reference),f=nf((h,x,v)=>{i.current.openEvent=h?x:void 0,a.emit("openchange",{open:h,event:x,reason:v,nested:l}),n==null||n(h,x,v)}),u=m.useMemo(()=>({setPositionReference:c}),[]),d=m.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return m.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:a,floatingId:o,refs:u}),[t,f,d,a,o,u])}function rN(e){e===void 0&&(e={});const{nodeId:t}=e,n=nN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=m.useState(null),[l,s]=m.useState(null),f=(o==null?void 0:o.reference)||i,u=m.useRef(null),d=zx();Or(()=>{f&&(u.current=f)},[f]);const h=Sy({...e,elements:{...o,...l&&{reference:l}}}),x=m.useCallback(w=>{const E=Ye(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;s(E),h.refs.setReference(E)},[h.refs]),v=m.useCallback(w=>{(Ye(w)||w===null)&&(u.current=w,a(w)),(Ye(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Ye(w))&&h.refs.setReference(w)},[h.refs]),C=m.useMemo(()=>({...h.refs,setReference:v,setPositionReference:x,domReference:u}),[h.refs,v,x]),g=m.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),y=m.useMemo(()=>({...h,...r,refs:C,elements:g,nodeId:t}),[h,C,g,t,r]);return Or(()=>{r.dataRef.current.floatingContext=y;const w=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);w&&(w.context=y)}),m.useMemo(()=>({...h,context:y,refs:C,elements:g}),[h,C,g,y])}const zv="active",$v="selected";function Ru(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[zv]:a,[$v]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1,[tN]:""},...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[c,f]=s;if(!(o&&[zv,$v].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof f=="function"){var u;(u=r.get(c))==null||u.push(f),a[c]=function(){for(var d,h=arguments.length,x=new Array(h),v=0;vC(...x)).find(C=>C!==void 0)}}}else a[c]=f}),a),{})}}function oN(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),o=m.useCallback(l=>Ru(l,e,"reference"),t),i=m.useCallback(l=>Ru(l,e,"floating"),n),a=m.useCallback(l=>Ru(l,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}function Bv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=u>=r&&n<=(f-s)*(r-c)/(u-c)+s&&(o=!o)}return o}function iN(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function aN(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 c(u,d){const h=performance.now(),x=h-s;if(a===null||l===null||x===0)return a=u,l=d,s=h,null;const v=u-a,C=d-l,y=Math.sqrt(v*v+C*C)/x;return a=u,l=d,s=h,y}const f=u=>{let{x:d,y:h,placement:x,elements:v,onClose:C,nodeId:g,tree:y}=u;return function(E){function _(){clearTimeout(o),C()}if(clearTimeout(o),!v.domReference||!v.floating||x==null||d==null||h==null)return;const{clientX:R,clientY:T}=E,S=[R,T],P=U9(E),b=E.type==="mouseleave",I=ll(v.floating,P),D=ll(v.domReference,P),B=v.domReference.getBoundingClientRect(),j=v.floating.getBoundingClientRect(),V=x.split("-")[0],U=d>j.right-j.width/2,K=h>j.bottom-j.height/2,L=iN(S,B),M=j.width>B.width,$=j.height>B.height,J=(M?B:j).left,le=(M?B:j).right,Ce=($?B:j).top,Le=($?B:j).bottom;if(I&&(i=!0,!b))return;if(D&&(i=!1),D&&!b){i=!0;return}if(b&&Ye(E.relatedTarget)&&ll(v.floating,E.relatedTarget)||y&&eN(y.nodesRef.current,g).some(Pe=>{let{context:ce}=Pe;return ce==null?void 0:ce.open}))return;if(V==="top"&&h>=B.bottom-1||V==="bottom"&&h<=B.top+1||V==="left"&&d>=B.right-1||V==="right"&&d<=B.left+1)return _();let Ze=[];switch(V){case"top":Ze=[[J,B.top+1],[J,j.bottom-1],[le,j.bottom-1],[le,B.top+1]];break;case"bottom":Ze=[[J,j.top+1],[J,B.bottom-1],[le,B.bottom-1],[le,j.top+1]];break;case"left":Ze=[[j.right-1,Le],[j.right-1,Ce],[B.left+1,Ce],[B.left+1,Le]];break;case"right":Ze=[[B.right-1,Le],[B.right-1,Ce],[j.left+1,Ce],[j.left+1,Le]];break}function Me(Pe){let[ce,Ie]=Pe;switch(V){case"top":{const st=[M?ce+t/2:U?ce+t*4:ce-t*4,Ie+t+1],At=[M?ce-t/2:U?ce+t*4:ce-t*4,Ie+t+1],Bt=[[j.left,U||M?j.bottom-t:j.top],[j.right,U?M?j.bottom-t:j.top:j.bottom-t]];return[st,At,...Bt]}case"bottom":{const st=[M?ce+t/2:U?ce+t*4:ce-t*4,Ie-t],At=[M?ce-t/2:U?ce+t*4:ce-t*4,Ie-t],Bt=[[j.left,U||M?j.top+t:j.bottom],[j.right,U?M?j.top+t:j.bottom:j.top+t]];return[st,At,...Bt]}case"left":{const st=[ce+t+1,$?Ie+t/2:K?Ie+t*4:Ie-t*4],At=[ce+t+1,$?Ie-t/2:K?Ie+t*4:Ie-t*4];return[...[[K||$?j.right-t:j.left,j.top],[K?$?j.right-t:j.left:j.right-t,j.bottom]],st,At]}case"right":{const st=[ce-t,$?Ie+t/2:K?Ie+t*4:Ie-t*4],At=[ce-t,$?Ie-t/2:K?Ie+t*4:Ie-t*4],Bt=[[K||$?j.left+t:j.right,j.top],[K?$?j.left+t:j.right:j.left+t,j.bottom]];return[st,At,...Bt]}}}if(!Bv([R,T],Ze)){if(i&&!L)return _();if(!b&&r){const Pe=c(E.clientX,E.clientY);if(Pe!==null&&Pe<.1)return _()}Bv([R,T],Me([d,h]))?!i&&r&&(o=window.setTimeout(_,40)):_()}}};return f.__options={blockPointerEvents:n},f}function lN({children:e,...t}){const[n,r]=e,o=m.useRef(null),[i,a]=m.useState(!1),{context:l,refs:s,floatingStyles:c}=rN({middleware:[Ry({element:o}),_y(8),Ty()],open:i,onOpenChange:a,placement:"bottom-start"}),f=q9(l,{handleClose:aN()}),{getReferenceProps:u,getFloatingProps:d}=oN([f]),h=r.props.children,x=n.props.children;return p.jsxs("span",{...t,children:[p.jsx("span",{className:"twoslash-target",ref:s.setReference,...u(),children:h}),i&&p.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:c,...d(),children:[p.jsx(Y9,{ref:o,context:l,fill:Dp.background5,height:3,stroke:Dp.border2,strokeWidth:1,width:7}),p.jsx("div",{className:"twoslash-popup-scroll-container",children:x})]})]})}function sN(e){var n;const t=F(e.className,Iv);return(n=e.className)!=null&&n.includes("twoslash-hover")?p.jsx(lN,{...e,className:t}):p.jsx("span",{...e,className:F(e.className,Iv)})}var uN="vocs_CalloutTitle";function cN({className:e,children:t}){return p.jsx("strong",{className:F(e,uN),children:t})}var Uv="vocs_Strong";function fN(e){return"data-callout-title"in e&&typeof e.children=="string"?p.jsx(cN,{...e,className:F(e.className,Uv),children:e.children}):p.jsx("strong",{...e,className:F(e.className,Uv)})}var dN="vocs_Summary";function hN(e){return p.jsx("summary",{...e,className:F(e.className,dN)})}var pN="vocs_Table";function vN(e){return p.jsx("table",{...e,className:F(e.className,pN)})}var mN="vocs_TableCell";function gN(e){return p.jsx("td",{...e,className:F(e.className,mN)})}var yN="vocs_TableHeader";function xN(e){return p.jsx("th",{...e,className:F(e.className,yN)})}var wN="vocs_TableRow";function CN(e){return p.jsx("tr",{...e,className:F(e.className,wN)})}const EN={a:OT,aside:KT,blockquote:YT,code:XT,details:qT,div:f9,pre:F9,header:g9,figcaption:h9,figure:v9,h1:N0,h2:Ax,h3:jx,h4:Lx,h5:Mx,h6:Ix,hr:x9,kd:g1,li:_9,ol:e=>p.jsx(Lv,{ordered:!0,...e}),p:k0,section:B9,span:sN,strong:fN,summary:hN,table:vN,td:gN,th:xN,tr:CN,ul:e=>p.jsx(Lv,{ordered:!1,...e})};function SN(){const{pathname:e}=ze(),t=Xe(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=m.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function of(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=ze(),l=m.useRef();return m.useEffect(()=>{l.current=a}),p.jsxs(p.Fragment,{children:[p.jsx(_N,{frontmatter:r}),typeof window<"u"&&p.jsx(i5,{}),p.jsx(z6,{components:EN,children:p.jsx(E_,{frontmatter:r,path:i,children:p.jsx(A0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function _N({frontmatter:e}){var u,d,h,x,v,C;const t=Xe(),n=SN(),{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,c=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return p.jsxs(qc,{defaultTitle:t.title,titleTemplate:c?t.titleTemplate:void 0,children:[l&&p.jsx("title",{children:l}),r&&!0&&!f&&p.jsx("base",{href:r}),s!=="undefined"&&p.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&p.jsx("link",{rel:"icon",href:i,type:Nu(i)}),i&&typeof i!="string"&&p.jsx("link",{rel:"icon",href:i.light,type:Nu(i.light)}),i&&typeof i!="string"&&p.jsx("link",{rel:"icon",href:i.dark,type:Nu(i.dark),media:"(prefers-color-scheme: dark)"}),p.jsx("meta",{property:"og:type",content:"website"}),p.jsx("meta",{property:"og:title",content:l||t.title}),r&&p.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&p.jsx("meta",{property:"og:description",content:s}),n&&p.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:"")||"")}),(((u=o==null?void 0:o.default)==null?void 0:u.google)||((d=o==null?void 0:o.mono)==null?void 0:d.google))&&p.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(((h=o==null?void 0:o.default)==null?void 0:h.google)||((x=o==null?void 0:o.mono)==null?void 0:x.google))&&p.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),((v=o==null?void 0:o.default)==null?void 0:v.google)&&p.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)&&p.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.mono.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),p.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&p.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 Nu(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 TN=(()=>{const e=dd.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:p.jsx(of,{frontmatter:t,path:e.path,children:p.jsx(Yc,{children:p.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:p.jsx(of,{frontmatter:{layout:"minimal"},path:"*",children:p.jsx(Yc,{children:p.jsx(P5,{})})})}})(),Hv=[...dd.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:p.jsx(of,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:p.jsx(Yc,{children:p.jsx(n.default,{})})})}}})),TN];async function RN(e,t){var r;const n=(r=Wn(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 NN(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}kN();async function kN(){const e=E0().basePath;await RN(Hv,e),NN();const t=WC(Hv,{basename:e});r0(document.getElementById("app"),p.jsx(h5,{children:p.jsx(e5,{router:t})}))}export{YR as C,sn as L,WR as R,GR as T,Xe as a,PS as b,F as c,KR as d,p as j,F6 as u}; +*/var Nv=Object.getOwnPropertySymbols,o9=Object.prototype.hasOwnProperty,i9=Object.prototype.propertyIsEnumerable;function a9(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function l9(){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 s9=l9()?Object.assign:function(e,t){for(var n,r=a9(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},m9=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},Xc=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,"'")},g9=function(t){var n=Eo(t,ee.TITLE),r=Eo(t,Ki.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=Eo(t,Ki.DEFAULT_TITLE);return n||o||void 0},y9=function(t){return Eo(t,Ki.ON_CHANGE_CLIENT_STATE)||function(){}},Cu=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return vt({},r,o)},{})},x9=function(t,n){return n.filter(function(r){return typeof r[ee.BASE]<"u"}).map(function(r){return r[ee.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},w9=function(t){return{baseTag:x9([Se.HREF,Se.TARGET],t),bodyAttributes:Cu(Nr.BODY,t),defer:Eo(t,Ki.DEFER),encode:Eo(t,Ki.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Cu(Nr.HTML,t),linkTags:li(ee.LINK,[Se.REL,Se.HREF],t),metaTags:li(ee.META,[Se.NAME,Se.CHARSET,Se.HTTPEQUIV,Se.PROPERTY,Se.ITEM_PROP],t),noscriptTags:li(ee.NOSCRIPT,[Se.INNER_HTML],t),onChangeClientState:y9(t),scriptTags:li(ee.SCRIPT,[Se.SRC,Se.INNER_HTML],t),styleTags:li(ee.STYLE,[Se.CSS_TEXT],t),title:g9(t),titleAttributes:Cu(Nr.TITLE,t)}},Zc=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Zc(t)},0)}}(),Pv=function(t){return clearTimeout(t)},C9=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Zc:global.requestAnimationFrame||Zc,E9=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Pv:global.cancelAnimationFrame||Pv,S9=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},si=null,_9=function(t){si&&E9(si),t.defer?si=C9(function(){bv(t,function(){si=null})}):(bv(t),si=null)},bv=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.onChangeClientState,f=t.scriptTags,u=t.styleTags,d=t.title,h=t.titleAttributes;Jc(ee.BODY,o),Jc(ee.HTML,i),T9(d,h);var x={baseTag:Jr(ee.BASE,r),linkTags:Jr(ee.LINK,a),metaTags:Jr(ee.META,l),noscriptTags:Jr(ee.NOSCRIPT,s),scriptTags:Jr(ee.SCRIPT,f),styleTags:Jr(ee.STYLE,u)},v={},C={};Object.keys(x).forEach(function(g){var y=x[g],w=y.newTags,E=y.oldTags;w.length&&(v[g]=w),E.length&&(C[g]=x[g].oldTags)}),n&&n(),c(t,v,C)},lx=function(t){return Array.isArray(t)?t.join(""):t},T9=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=lx(t)),Jc(ee.TITLE,n)},Jc=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Yt),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(Yt):r.getAttribute(Yt)!==l.join(",")&&r.setAttribute(Yt,l.join(","))}},Jr=function(t,n){var r=document.head||document.querySelector(ee.HEAD),o=r.querySelectorAll(t+"["+Yt+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var c=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Se.INNER_HTML)c.innerHTML=s.innerHTML;else if(f===Se.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=s.cssText:c.appendChild(document.createTextNode(s.cssText));else{var u=typeof s[f]>"u"?"":s[f];c.setAttribute(f,u)}c.setAttribute(Yt,"true"),i.some(function(d,h){return l=h,c.isEqualNode(d)})?i.splice(l,1):a.push(c)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},sx=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},"")},R9=function(t,n,r,o){var i=sx(r),a=lx(n);return i?"<"+t+" "+Yt+'="true" '+i+">"+Xc(a,o)+"":"<"+t+" "+Yt+'="true">'+Xc(a,o)+""},N9=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(c){return!(c===Se.INNER_HTML||c===Se.CSS_TEXT)}).reduce(function(c,f){var u=typeof i[f]>"u"?f:f+'="'+Xc(i[f],r)+'"';return c?c+" "+u:u},""),l=i.innerHTML||i.cssText||"",s=f9.indexOf(t)===-1;return o+"<"+t+" "+Yt+'="true" '+a+(s?"/>":">"+l+"")},"")},ux=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Vl[o]||o]=t[o],r},n)},k9=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[c9[o]||o]=t[o],r},n)},P9=function(t,n,r){var o,i=(o={key:n},o[Yt]=!0,o),a=ux(r,i);return[de.createElement(ee.TITLE,a,n)]},b9=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Yt]=!0,i);return Object.keys(r).forEach(function(l){var s=Vl[l]||l;if(s===Se.INNER_HTML||s===Se.CSS_TEXT){var c=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[s]=r[l]}),de.createElement(t,a)})},gn=function(t,n,r){switch(t){case ee.TITLE:return{toComponent:function(){return P9(t,n.title,n.titleAttributes)},toString:function(){return R9(t,n.title,n.titleAttributes,r)}};case Nr.BODY:case Nr.HTML:return{toComponent:function(){return ux(n)},toString:function(){return sx(n)}};default:return{toComponent:function(){return b9(t,n)},toString:function(){return N9(t,n,r)}}}},cx=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.scriptTags,f=t.styleTags,u=t.title,d=u===void 0?"":u,h=t.titleAttributes;return{base:gn(ee.BASE,n,o),bodyAttributes:gn(Nr.BODY,r,o),htmlAttributes:gn(Nr.HTML,i,o),link:gn(ee.LINK,a,o),meta:gn(ee.META,l,o),noscript:gn(ee.NOSCRIPT,s,o),script:gn(ee.SCRIPT,c,o),style:gn(ee.STYLE,f,o),title:gn(ee.TITLE,{title:d,titleAttributes:h},o)}},A9=function(t){var n,r;return r=n=function(o){v9(i,o);function i(){return h9(this,i),m9(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!r9(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case ee.SCRIPT:case ee.NOSCRIPT:return{innerHTML:s};case ee.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,c=l.child,f=l.arrayTypeChildren,u=l.newChildProps,d=l.nestedChildren;return vt({},f,(s={},s[c.type]=[].concat(f[c.type]||[],[vt({},u,this.mapNestedChildrenToProps(c,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,c,f=l.child,u=l.newProps,d=l.newChildProps,h=l.nestedChildren;switch(f.type){case ee.TITLE:return vt({},u,(s={},s[f.type]=h,s.titleAttributes=vt({},d),s));case ee.BODY:return vt({},u,{bodyAttributes:vt({},d)});case ee.HTML:return vt({},u,{htmlAttributes:vt({},d)})}return vt({},u,(c={},c[f.type]=vt({},d),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var c=vt({},s);return Object.keys(l).forEach(function(f){var u;c=vt({},c,(u={},u[f]=l[f],u))}),c},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var c=this,f={};return de.Children.forEach(l,function(u){if(!(!u||!u.props)){var d=u.props,h=d.children,x=kv(d,["children"]),v=k9(x);switch(c.warnOnInvalidChildren(u,h),u.type){case ee.LINK:case ee.META:case ee.NOSCRIPT:case ee.SCRIPT:case ee.STYLE:f=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:f,newChildProps:v,nestedChildren:h});break;default:s=c.mapObjectTypeChildren({child:u,newProps:s,newChildProps:v,nestedChildren:h});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,c=kv(l,["children"]),f=vt({},c);return s&&(f=this.mapChildrenToProps(s,f)),de.createElement(t,f)},p9(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(de.Component),n.propTypes={base:Ee.object,bodyAttributes:Ee.object,children:Ee.oneOfType([Ee.arrayOf(Ee.node),Ee.node]),defaultTitle:Ee.string,defer:Ee.bool,encodeSpecialCharacters:Ee.bool,htmlAttributes:Ee.object,link:Ee.arrayOf(Ee.object),meta:Ee.arrayOf(Ee.object),noscript:Ee.arrayOf(Ee.object),onChangeClientState:Ee.func,script:Ee.arrayOf(Ee.object),style:Ee.arrayOf(Ee.object),title:Ee.string,titleAttributes:Ee.object,titleTemplate:Ee.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=cx({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},j9=function(){return null},L9=Z8(w9,_9,cx)(j9),qc=A9(L9);qc.renderStatic=qc.rewind;var Eu="vocs_Anchor",M9="vocs_Autolink";function I9(e){return e.href?p.jsx(ss,{...e,className:F(e.className,M9),to:e.href}):null}function O9(e){const{children:t,href:n}=e,{pathname:r}=ze();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?p.jsx(I9,{className:F(e.className,Eu),...e}):n!=null&&n.match(/^#/)?p.jsx("a",{className:F(e.className,Eu),...e,href:`${r}${n}`}):p.jsx(sn,{className:F(e.className,Eu),...e})}var D9="vocs_Callout_danger",F9="vocs_Callout_info",z9="vocs_Callout_note",fx="vocs_Callout",$9="vocs_Callout_success",B9="vocs_Callout_tip",U9="vocs_Callout_warning";const H9=Object.freeze(Object.defineProperty({__proto__:null,danger:D9,info:F9,note:z9,root:fx,success:$9,tip:B9,warning:U9},Symbol.toStringTag,{value:"Module"}));function V9({className:e,children:t,type:n}){return p.jsx("aside",{className:F(e,fx,H9[n]),children:t})}var W9="vocs_Aside";function K9(e){const t=F(e.className,W9);return"data-callout"in e?p.jsx(V9,{className:t,type:e["data-callout"],children:e.children}):p.jsx("aside",{...e,className:t})}var G9="vocs_Blockquote";function Y9(e){return p.jsx("blockquote",{...e,className:F(e.className,G9)})}var Q9="vocs_Code";function X9(e){const t=Z9(e.children);return p.jsx("code",{...e,className:F(e.className,Q9),children:t})}function Z9(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 J9="vocs_Details";function q9(e){return p.jsx("details",{...e,className:F(e.className,J9)})}var eT="vocs_Authors_authors",tT="vocs_Authors_link",nT="vocs_Authors",Av="vocs_Authors_separator";function dx(e){const{frontmatter:t}=Ur(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=m.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=m.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return p.jsxs("div",{className:nT,children:[i,o&&(i?" by ":"By "),p.jsx("span",{className:eT,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:c}=rT(a);return p.jsxs(m.Fragment,{children:[c?p.jsx("a",{className:tT,href:c,target:"_blank",rel:"noopener noreferrer",children:s}):s,lp.jsxs(m.Fragment,{children:[p.jsx("div",{className:aT,children:p.jsxs(ir,{to:e.path,children:[p.jsx("h2",{className:uT,children:e.title}),p.jsx(dx,{authors:e.authors,date:e.date}),p.jsxs("p",{className:oT,children:[e.description," ",p.jsx("span",{className:lT,children:"[→]"})]})]})}),tp.jsxs(m.Fragment,{children:[p.jsx("div",{className:yT,children:t.name}),t.items.map((r,o)=>{var i;return p.jsx("div",{className:mT,style:Jt({[dT]:r.length.toString(),[hT]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>p.jsx(sn,{className:F(fT,a?gT:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:p.jsx("img",{className:pT,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var wT="var(--vocs_AutolinkIcon_iconUrl)",CT="vocs_AutolinkIcon";function ET(e){const{basePath:t}=Xe(),n=t;return p.jsx("div",{...e,className:F(e.className,CT),style:Jt({[wT]:`url(${n}/.vocs/icons/link.svg)`})})}var Su="rovingFocusGroup.onEntryFocus",ST={bubbles:!1,cancelable:!0},ws="RovingFocusGroup",[ef,hx,_T]=hs(ws),[TT,px]=An(ws,[_T]),[RT,NT]=TT(ws),vx=m.forwardRef((e,t)=>p.jsx(ef.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ef.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(kT,{...e,ref:t})})}));vx.displayName=ws;var kT=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...u}=e,d=m.useRef(null),h=Fe(t,d),x=ds(i),[v=null,C]=jn({prop:a,defaultProp:l,onChange:s}),[g,y]=m.useState(!1),w=at(c),E=hx(n),_=m.useRef(!1),[R,T]=m.useState(0);return m.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(Su,w),()=>S.removeEventListener(Su,w)},[w]),p.jsx(RT,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(S=>C(S),[C]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>T(S=>S+1),[]),onFocusableItemRemove:m.useCallback(()=>T(S=>S-1),[]),children:p.jsx(ie.div,{tabIndex:g||R===0?-1:0,"data-orientation":r,...u,ref:h,style:{outline:"none",...e.style},onMouseDown:oe(e.onMouseDown,()=>{_.current=!0}),onFocus:oe(e.onFocus,S=>{const P=!_.current;if(S.target===S.currentTarget&&P&&!g){const b=new CustomEvent(Su,ST);if(S.currentTarget.dispatchEvent(b),!b.defaultPrevented){const I=E().filter(U=>U.focusable),D=I.find(U=>U.active),B=I.find(U=>U.id===v),V=[D,B,...I].filter(Boolean).map(U=>U.ref.current);yx(V,f)}}_.current=!1}),onBlur:oe(e.onBlur,()=>y(!1))})})}),mx="RovingFocusGroupItem",gx=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=un(),s=i||l,c=NT(mx,n),f=c.currentTabStopId===s,u=hx(n),{onFocusableItemAdd:d,onFocusableItemRemove:h}=c;return m.useEffect(()=>{if(r)return d(),()=>h()},[r,d,h]),p.jsx(ef.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:p.jsx(ie.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:oe(e.onMouseDown,x=>{r?c.onItemFocus(s):x.preventDefault()}),onFocus:oe(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:oe(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=AT(x,c.orientation,c.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let g=u().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(x.currentTarget);g=c.loop?jT(g,y+1):g.slice(y+1)}setTimeout(()=>yx(g))}})})})});gx.displayName=mx;var PT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function AT(e,t,n){const r=bT(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return PT[r]}function yx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var LT=vx,MT=gx,Yd="Tabs",[IT,MN]=An(Yd,[px]),xx=px(),[OT,Qd]=IT(Yd),wx=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...c}=e,f=ds(l),[u,d]=jn({prop:r,onChange:o,defaultProp:i});return p.jsx(OT,{scope:n,baseId:un(),value:u,onValueChange:d,orientation:a,dir:f,activationMode:s,children:p.jsx(ie.div,{dir:f,"data-orientation":a,...c,ref:t})})});wx.displayName=Yd;var Cx="TabsList",Ex=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Qd(Cx,n),a=xx(n);return p.jsx(LT,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(ie.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Ex.displayName=Cx;var Sx="TabsTrigger",_x=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Qd(Sx,n),l=xx(n),s=Nx(a.baseId,r),c=kx(a.baseId,r),f=r===a.value;return p.jsx(MT,{asChild:!0,...l,focusable:!o,active:f,children:p.jsx(ie.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...i,ref:t,onMouseDown:oe(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:oe(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:oe(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!o&&u&&a.onValueChange(r)})})})});_x.displayName=Sx;var Tx="TabsContent",Rx=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=Qd(Tx,n),s=Nx(l.baseId,r),c=kx(l.baseId,r),f=r===l.value,u=m.useRef(f);return m.useEffect(()=>{const d=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(d)},[]),p.jsx(zt,{present:o||f,children:({present:d})=>p.jsx(ie.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:d&&i})})});Rx.displayName=Tx;function Nx(e,t){return`${e}-trigger-${t}`}function kx(e,t){return`${e}-content-${t}`}var DT=wx,FT=Ex,zT=_x,$T=Rx,BT="vocs_Tabs_content",UT="vocs_Tabs_list",HT="vocs_Tabs",VT="vocs_Tabs_trigger";function WT(e){return p.jsx(DT,{...e,className:F(e.className,HT)})}function KT(e){return p.jsx(FT,{...e,className:F(e.className,UT)})}function GT(e){return p.jsx(zT,{...e,className:F(e.className,VT)})}function YT(e){return p.jsx($T,{...e,className:F(e.className,BT)})}var QT="vocs_CodeGroup";function XT({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 p.jsxs(WT,{className:QT,defaultValue:t[0].title,children:[p.jsx(KT,{"aria-label":"Code group",children:t.map(({title:n},r)=>p.jsx(GT,{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 p.jsx(YT,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var ZT="vocs_Div",JT="vocs_Step_content",qT="vocs_Step",Px="vocs_Step_title",eR="vocs_H2";function bx(e){return p.jsx(Uo,{...e,className:F(e.className,eR),level:2})}var tR="vocs_H3";function Ax(e){return p.jsx(Uo,{...e,className:F(e.className,tR),level:3})}var nR="vocs_H4";function jx(e){return p.jsx(Uo,{...e,className:F(e.className,nR),level:4})}var rR="vocs_H5";function Lx(e){return p.jsx(Uo,{...e,className:F(e.className,rR),level:5})}var oR="vocs_H6";function Mx(e){return p.jsx(Uo,{...e,className:F(e.className,oR),level:6})}function iR({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return bx;if(r===3)return Ax;if(r===4)return jx;if(r===5)return Lx;if(r===6)return Mx;throw new Error("Invalid.")})();return p.jsxs("div",{className:F(t,qT),children:[typeof n=="string"?p.jsx(o,{className:Px,children:n}):n,p.jsx("div",{className:JT,children:e})]})}var aR="vocs_Steps";function lR({children:e,className:t}){return p.jsx("div",{className:F(t,aR),children:e})}function sR({children:e}){return Array.isArray(e)?p.jsx(lR,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return p.jsx(iR,{title:m.cloneElement(r,{className:Px}),children:o},n)})}):null}var uR="vocs_Subtitle";function cR({children:e}){return p.jsx("div",{className:uR,role:"doc-subtitle",children:e})}function fR(e){const{layout:t}=Hr(),n=F(e.className,ZT);return e.className==="code-group"?p.jsx(XT,{...e,className:n}):"data-authors"in e?p.jsx(dx,{}):"data-blog-posts"in e?p.jsx(cT,{}):"data-sponsors"in e?p.jsx(xT,{}):"data-autolink-icon"in e&&t==="docs"?p.jsx(ET,{...e,className:n}):"data-vocs-steps"in e?p.jsx(sR,{...e,className:n}):e.role==="doc-subtitle"?p.jsx(cR,{...e}):p.jsx("div",{...e,className:n})}var dR="vocs_Figcaption";function hR(e){const t=F(e.className,dR);return p.jsx("figcaption",{...e,className:t})}var pR="vocs_Figure";function vR(e){const t=F(e.className,pR);return p.jsx("figure",{...e,className:t})}var mR="vocs_Header";function gR(e){return p.jsx("header",{...e,className:F(e.className,mR)})}var yR="vocs_HorizontalRule";function xR(e){return p.jsx("hr",{...e,className:F(e.className,yR)})}var wR="vocs_List_ordered",CR="vocs_List",ER="vocs_List_unordered";function Lv({ordered:e,...t}){const n=e?"ol":"ul";return p.jsx(n,{...t,className:F(t.className,CR,e?wR:ER)})}var SR="vocs_ListItem";function _R(e){return p.jsx("li",{...e,className:F(e.className,SR)})}function TR(){const e=m.useRef(null),[t,n]=m.useState(!1);m.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 RR="vocs_CopyButton";function NR(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[p.jsx("title",{children:"Checkmark"}),p.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 kR(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[p.jsx("title",{children:"Copy"}),p.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"}),p.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 PR({copy:e,copied:t}){return p.jsx("button",{className:RR,onClick:e,type:"button",children:t?p.jsx(dt,{label:"Copied",size:"14px",icon:NR}):p.jsx(dt,{label:"Copy",size:"18px",icon:kR})})}var bR="vocs_CodeBlock";function AR(e){return p.jsx("div",{...e,className:F(e.className,bR)})}function jR(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[p.jsx("title",{children:"File"}),p.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),p.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function LR(){return p.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[p.jsx("title",{children:"Terminal"}),p.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"}),p.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var MR="vocs_CodeTitle";function IR({children:e,className:t,language:n,...r}){return p.jsxs("div",{...r,className:F(t,MR),children:[n==="bash"?p.jsx(dt,{label:"Terminal",size:"14px",icon:LR,style:{marginTop:3}}):e.match(/\.(.*)$/)?p.jsx(dt,{label:"File",size:"14px",icon:jR,style:{marginTop:1}}):null,e]})}var OR="vocs_Pre",DR="vocs_Pre_wrapper";function FR({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=TR();function a(c){return!c||typeof c!="object"?c:"props"in c?{...c,props:{...c.props,children:Array.isArray(c.props.children)?c.props.children.map(a):a(c.props.children)}}:c}const l=m.useMemo(()=>a(e),[e]);return(c=>t!=null&&t.includes("shiki")?p.jsxs(AR,{children:[n["data-title"]&&p.jsx(IR,{language:n["data-lang"],children:n["data-title"]}),c]}):c)(p.jsx("div",{className:F(DR),children:p.jsxs("pre",{ref:i,...n,className:F(t,OR),children:["data-language"in n&&p.jsx(PR,{copied:r,copy:o}),l]})}))}var zR="vocs_Footnotes";function $R(e){return p.jsx("section",{...e,className:F(e.className,zR)})}var Mv="vocs_Section";function BR(e){return"data-footnotes"in e?p.jsx($R,{...e,className:F(e.className,Mv)}):p.jsx("section",{...e,className:F(e.className,Mv)})}var Iv="vocs_Span";function ll(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Vc(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function tf(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Ua(e){return(e==null?void 0:e.ownerDocument)||document}function UR(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Ix={...ff},HR=Ix.useInsertionEffect,VR=HR||(e=>e());function nf(e){const t=m.useRef(()=>{});return VR(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+WR++;function KR(){const[e,t]=m.useState(()=>Ov?Dv():void 0);return Or(()=>{e==null&&t(Dv())},[]),m.useEffect(()=>{Ov=!0},[]),e}const GR=Ix.useId,Ox=GR||KR,YR=m.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:l=14,height:s=7,tipRadius:c=0,strokeWidth:f=0,staticOffset:u,stroke:d,d:h,style:{transform:x,...v}={},...C}=t,g=Ox(),[y,w]=m.useState(!1);if(Or(()=>{if(!o)return;Ft(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const[E,_]=r.split("-"),R=E==="top"||E==="bottom";let T=u;(R&&a!=null&&a.x||!R&&a!=null&&a.y)&&(T=null);const S=f*2,P=S/2,b=l/2*(c/-8+1),I=s/2*c/4,D=!!h,B=T&&_==="end"?"bottom":"top";let j=T&&_==="end"?"right":"left";T&&y&&(j=_==="end"?"left":"right");const V=(i==null?void 0:i.x)!=null?T||i.x:"",U=(i==null?void 0:i.y)!=null?T||i.y:"",K=h||"M0,0"+(" H"+l)+(" L"+(l-b)+","+(s-I))+(" Q"+l/2+","+s+" "+b+","+(s-I))+" Z",L={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[E];return m.createElement("svg",rf({},C,{"aria-hidden":!0,ref:n,width:D?l:l+S,height:l,viewBox:"0 0 "+l+" "+(s>l?s:l),style:{position:"absolute",pointerEvents:"none",[j]:V,[B]:U,[E]:R||D?"100%":"calc(100% - "+S/2+"px)",transform:[L,x].filter(M=>!!M).join(" "),...v}}),S>0&&m.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(h?0:1),d:K}),m.createElement("path",{stroke:S&&!h?C.fill:"none",d:K}),m.createElement("clipPath",{id:g},m.createElement("rect",{x:-P,y:P*(D?-1:1),width:l+S,height:l})))});function QR(){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 XR=m.createContext(null),ZR=m.createContext(null),Dx=()=>{var e;return((e=m.useContext(XR))==null?void 0:e.id)||null},Fx=()=>m.useContext(ZR);function JR(e){return"data-floating-ui-"+e}function _u(e){const t=m.useRef(e);return Or(()=>{t.current=e}),t}const Fv=JR("safe-polygon");function Tu(e,t,n){return n&&!tf(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function qR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:l=!0,delay:s=0,handleClose:c=null,mouseOnly:f=!1,restMs:u=0,move:d=!0}=t,h=Fx(),x=Dx(),v=_u(c),C=_u(s),g=_u(n),y=m.useRef(),w=m.useRef(-1),E=m.useRef(),_=m.useRef(-1),R=m.useRef(!0),T=m.useRef(!1),S=m.useRef(()=>{}),P=m.useCallback(()=>{var V;const U=(V=o.current.openEvent)==null?void 0:V.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[o]);m.useEffect(()=>{if(!l)return;function V(U){let{open:K}=U;K||(clearTimeout(w.current),clearTimeout(_.current),R.current=!0)}return i.on("openchange",V),()=>{i.off("openchange",V)}},[l,i]),m.useEffect(()=>{if(!l||!v.current||!n)return;function V(K){P()&&r(!1,K,"hover")}const U=Ua(a.floating).documentElement;return U.addEventListener("mouseleave",V),()=>{U.removeEventListener("mouseleave",V)}},[a.floating,n,r,l,v,P]);const b=m.useCallback(function(V,U,K){U===void 0&&(U=!0),K===void 0&&(K="hover");const L=Tu(C.current,"close",y.current);L&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,V,K),L)):U&&(clearTimeout(w.current),r(!1,V,K))},[C,r]),I=nf(()=>{S.current(),E.current=void 0}),D=nf(()=>{if(T.current){const V=Ua(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Fv),T.current=!1}});m.useEffect(()=>{if(!l)return;function V(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function U($){if(clearTimeout(w.current),R.current=!1,f&&!tf(y.current)||u>0&&!Tu(C.current,"open"))return;const J=Tu(C.current,"open",y.current);J?w.current=window.setTimeout(()=>{g.current||r(!0,$,"hover")},J):r(!0,$,"hover")}function K($){if(V())return;S.current();const J=Ua(a.floating);if(clearTimeout(_.current),v.current&&o.current.floatingContext){n||clearTimeout(w.current),E.current=v.current({...o.current.floatingContext,tree:h,x:$.clientX,y:$.clientY,onClose(){D(),I(),b($,!0,"safe-polygon")}});const Ce=E.current;J.addEventListener("mousemove",Ce),S.current=()=>{J.removeEventListener("mousemove",Ce)};return}(y.current==="touch"?!ll(a.floating,$.relatedTarget):!0)&&b($)}function L($){V()||o.current.floatingContext&&(v.current==null||v.current({...o.current.floatingContext,tree:h,x:$.clientX,y:$.clientY,onClose(){D(),I(),b($)}})($))}if(Ye(a.domReference)){var M;const $=a.domReference;return n&&$.addEventListener("mouseleave",L),(M=a.floating)==null||M.addEventListener("mouseleave",L),d&&$.addEventListener("mousemove",U,{once:!0}),$.addEventListener("mouseenter",U),$.addEventListener("mouseleave",K),()=>{var J;n&&$.removeEventListener("mouseleave",L),(J=a.floating)==null||J.removeEventListener("mouseleave",L),d&&$.removeEventListener("mousemove",U),$.removeEventListener("mouseenter",U),$.removeEventListener("mouseleave",K)}}},[a,l,e,f,u,d,b,I,D,r,n,g,h,C,v,o]),Or(()=>{var V;if(l&&n&&(V=v.current)!=null&&V.__options.blockPointerEvents&&P()){T.current=!0;const K=a.floating;if(Ye(a.domReference)&&K){var U;const L=Ua(a.floating).body;L.setAttribute(Fv,"");const M=a.domReference,$=h==null||(U=h.nodesRef.current.find(J=>J.id===x))==null||(U=U.context)==null?void 0:U.elements.floating;return $&&($.style.pointerEvents=""),L.style.pointerEvents="none",M.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{L.style.pointerEvents="",M.style.pointerEvents="",K.style.pointerEvents=""}}}},[l,n,x,a,h,v,P]),Or(()=>{n||(y.current=void 0,I(),D())},[n,I,D]),m.useEffect(()=>()=>{I(),clearTimeout(w.current),clearTimeout(_.current),D()},[l,a.domReference,I,D]);const B=m.useMemo(()=>{function V(U){y.current=U.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(U){const{nativeEvent:K}=U;function L(){!R.current&&!g.current&&r(!0,K,"hover")}f&&!tf(y.current)||n||u===0||(clearTimeout(_.current),y.current==="touch"?L():_.current=window.setTimeout(L,u))}}},[f,r,n,g,u]),j=m.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(V){b(V.nativeEvent,!1)}}),[b]);return m.useMemo(()=>l?{reference:B,floating:j}:{},[l,B,j])}function eN(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}const tN="data-floating-ui-focusable";function nN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ox(),i=m.useRef({}),[a]=m.useState(()=>QR()),l=Dx()!=null,[s,c]=m.useState(r.reference),f=nf((h,x,v)=>{i.current.openEvent=h?x:void 0,a.emit("openchange",{open:h,event:x,reason:v,nested:l}),n==null||n(h,x,v)}),u=m.useMemo(()=>({setPositionReference:c}),[]),d=m.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return m.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:a,floatingId:o,refs:u}),[t,f,d,a,o,u])}function rN(e){e===void 0&&(e={});const{nodeId:t}=e,n=nN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=m.useState(null),[l,s]=m.useState(null),f=(o==null?void 0:o.reference)||i,u=m.useRef(null),d=Fx();Or(()=>{f&&(u.current=f)},[f]);const h=Ey({...e,elements:{...o,...l&&{reference:l}}}),x=m.useCallback(w=>{const E=Ye(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;s(E),h.refs.setReference(E)},[h.refs]),v=m.useCallback(w=>{(Ye(w)||w===null)&&(u.current=w,a(w)),(Ye(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Ye(w))&&h.refs.setReference(w)},[h.refs]),C=m.useMemo(()=>({...h.refs,setReference:v,setPositionReference:x,domReference:u}),[h.refs,v,x]),g=m.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),y=m.useMemo(()=>({...h,...r,refs:C,elements:g,nodeId:t}),[h,C,g,t,r]);return Or(()=>{r.dataRef.current.floatingContext=y;const w=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);w&&(w.context=y)}),m.useMemo(()=>({...h,context:y,refs:C,elements:g}),[h,C,g,y])}const zv="active",$v="selected";function Ru(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[zv]:a,[$v]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1,[tN]:""},...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[c,f]=s;if(!(o&&[zv,$v].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof f=="function"){var u;(u=r.get(c))==null||u.push(f),a[c]=function(){for(var d,h=arguments.length,x=new Array(h),v=0;vC(...x)).find(C=>C!==void 0)}}}else a[c]=f}),a),{})}}function oN(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),o=m.useCallback(l=>Ru(l,e,"reference"),t),i=m.useCallback(l=>Ru(l,e,"floating"),n),a=m.useCallback(l=>Ru(l,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}function Bv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=u>=r&&n<=(f-s)*(r-c)/(u-c)+s&&(o=!o)}return o}function iN(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function aN(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 c(u,d){const h=performance.now(),x=h-s;if(a===null||l===null||x===0)return a=u,l=d,s=h,null;const v=u-a,C=d-l,y=Math.sqrt(v*v+C*C)/x;return a=u,l=d,s=h,y}const f=u=>{let{x:d,y:h,placement:x,elements:v,onClose:C,nodeId:g,tree:y}=u;return function(E){function _(){clearTimeout(o),C()}if(clearTimeout(o),!v.domReference||!v.floating||x==null||d==null||h==null)return;const{clientX:R,clientY:T}=E,S=[R,T],P=UR(E),b=E.type==="mouseleave",I=ll(v.floating,P),D=ll(v.domReference,P),B=v.domReference.getBoundingClientRect(),j=v.floating.getBoundingClientRect(),V=x.split("-")[0],U=d>j.right-j.width/2,K=h>j.bottom-j.height/2,L=iN(S,B),M=j.width>B.width,$=j.height>B.height,J=(M?B:j).left,le=(M?B:j).right,Ce=($?B:j).top,Le=($?B:j).bottom;if(I&&(i=!0,!b))return;if(D&&(i=!1),D&&!b){i=!0;return}if(b&&Ye(E.relatedTarget)&&ll(v.floating,E.relatedTarget)||y&&eN(y.nodesRef.current,g).some(Pe=>{let{context:ce}=Pe;return ce==null?void 0:ce.open}))return;if(V==="top"&&h>=B.bottom-1||V==="bottom"&&h<=B.top+1||V==="left"&&d>=B.right-1||V==="right"&&d<=B.left+1)return _();let Ze=[];switch(V){case"top":Ze=[[J,B.top+1],[J,j.bottom-1],[le,j.bottom-1],[le,B.top+1]];break;case"bottom":Ze=[[J,j.top+1],[J,B.bottom-1],[le,B.bottom-1],[le,j.top+1]];break;case"left":Ze=[[j.right-1,Le],[j.right-1,Ce],[B.left+1,Ce],[B.left+1,Le]];break;case"right":Ze=[[B.right-1,Le],[B.right-1,Ce],[j.left+1,Ce],[j.left+1,Le]];break}function Me(Pe){let[ce,Ie]=Pe;switch(V){case"top":{const st=[M?ce+t/2:U?ce+t*4:ce-t*4,Ie+t+1],At=[M?ce-t/2:U?ce+t*4:ce-t*4,Ie+t+1],Bt=[[j.left,U||M?j.bottom-t:j.top],[j.right,U?M?j.bottom-t:j.top:j.bottom-t]];return[st,At,...Bt]}case"bottom":{const st=[M?ce+t/2:U?ce+t*4:ce-t*4,Ie-t],At=[M?ce-t/2:U?ce+t*4:ce-t*4,Ie-t],Bt=[[j.left,U||M?j.top+t:j.bottom],[j.right,U?M?j.top+t:j.bottom:j.top+t]];return[st,At,...Bt]}case"left":{const st=[ce+t+1,$?Ie+t/2:K?Ie+t*4:Ie-t*4],At=[ce+t+1,$?Ie-t/2:K?Ie+t*4:Ie-t*4];return[...[[K||$?j.right-t:j.left,j.top],[K?$?j.right-t:j.left:j.right-t,j.bottom]],st,At]}case"right":{const st=[ce-t,$?Ie+t/2:K?Ie+t*4:Ie-t*4],At=[ce-t,$?Ie-t/2:K?Ie+t*4:Ie-t*4],Bt=[[K||$?j.left+t:j.right,j.top],[K?$?j.left+t:j.right:j.left+t,j.bottom]];return[st,At,...Bt]}}}if(!Bv([R,T],Ze)){if(i&&!L)return _();if(!b&&r){const Pe=c(E.clientX,E.clientY);if(Pe!==null&&Pe<.1)return _()}Bv([R,T],Me([d,h]))?!i&&r&&(o=window.setTimeout(_,40)):_()}}};return f.__options={blockPointerEvents:n},f}function lN({children:e,...t}){const[n,r]=e,o=m.useRef(null),[i,a]=m.useState(!1),{context:l,refs:s,floatingStyles:c}=rN({middleware:[Ty({element:o}),Sy(8),_y()],open:i,onOpenChange:a,placement:"bottom-start"}),f=qR(l,{handleClose:aN()}),{getReferenceProps:u,getFloatingProps:d}=oN([f]),h=r.props.children,x=n.props.children;return p.jsxs("span",{...t,children:[p.jsx("span",{className:"twoslash-target",ref:s.setReference,...u(),children:h}),i&&p.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:c,...d(),children:[p.jsx(YR,{ref:o,context:l,fill:Dp.background5,height:3,stroke:Dp.border2,strokeWidth:1,width:7}),p.jsx("div",{className:"twoslash-popup-scroll-container",children:x})]})]})}function sN(e){var n;const t=F(e.className,Iv);return(n=e.className)!=null&&n.includes("twoslash-hover")?p.jsx(lN,{...e,className:t}):p.jsx("span",{...e,className:F(e.className,Iv)})}var uN="vocs_CalloutTitle";function cN({className:e,children:t}){return p.jsx("strong",{className:F(e,uN),children:t})}var Uv="vocs_Strong";function fN(e){return"data-callout-title"in e&&typeof e.children=="string"?p.jsx(cN,{...e,className:F(e.className,Uv),children:e.children}):p.jsx("strong",{...e,className:F(e.className,Uv)})}var dN="vocs_Summary";function hN(e){return p.jsx("summary",{...e,className:F(e.className,dN)})}var pN="vocs_Table";function vN(e){return p.jsx("table",{...e,className:F(e.className,pN)})}var mN="vocs_TableCell";function gN(e){return p.jsx("td",{...e,className:F(e.className,mN)})}var yN="vocs_TableHeader";function xN(e){return p.jsx("th",{...e,className:F(e.className,yN)})}var wN="vocs_TableRow";function CN(e){return p.jsx("tr",{...e,className:F(e.className,wN)})}const EN={a:O9,aside:K9,blockquote:Y9,code:X9,details:q9,div:fR,pre:FR,header:gR,figcaption:hR,figure:vR,h1:R0,h2:bx,h3:Ax,h4:jx,h5:Lx,h6:Mx,hr:xR,kd:m1,li:_R,ol:e=>p.jsx(Lv,{ordered:!0,...e}),p:N0,section:BR,span:sN,strong:fN,summary:hN,table:vN,td:gN,th:xN,tr:CN,ul:e=>p.jsx(Lv,{ordered:!1,...e})};function SN(){const{pathname:e}=ze(),t=Xe(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=m.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function of(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=ze(),l=m.useRef();return m.useEffect(()=>{l.current=a}),p.jsxs(p.Fragment,{children:[p.jsx(_N,{frontmatter:r}),typeof window<"u"&&p.jsx(i5,{}),p.jsx(z8,{components:EN,children:p.jsx(E_,{frontmatter:r,path:i,children:p.jsx(b0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function _N({frontmatter:e}){var u,d,h,x,v,C;const t=Xe(),n=SN(),{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,c=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return p.jsxs(qc,{defaultTitle:t.title,titleTemplate:c?t.titleTemplate:void 0,children:[l&&p.jsx("title",{children:l}),r&&!0&&!f&&p.jsx("base",{href:r}),s!=="undefined"&&p.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&p.jsx("link",{rel:"icon",href:i,type:Nu(i)}),i&&typeof i!="string"&&p.jsx("link",{rel:"icon",href:i.light,type:Nu(i.light)}),i&&typeof i!="string"&&p.jsx("link",{rel:"icon",href:i.dark,type:Nu(i.dark),media:"(prefers-color-scheme: dark)"}),p.jsx("meta",{property:"og:type",content:"website"}),p.jsx("meta",{property:"og:title",content:l||t.title}),r&&p.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&p.jsx("meta",{property:"og:description",content:s}),n&&p.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:"")||"")}),(((u=o==null?void 0:o.default)==null?void 0:u.google)||((d=o==null?void 0:o.mono)==null?void 0:d.google))&&p.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(((h=o==null?void 0:o.default)==null?void 0:h.google)||((x=o==null?void 0:o.mono)==null?void 0:x.google))&&p.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),((v=o==null?void 0:o.default)==null?void 0:v.google)&&p.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)&&p.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.mono.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),p.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&p.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 Nu(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 TN=(()=>{const e=dd.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:p.jsx(of,{frontmatter:t,path:e.path,children:p.jsx(Yc,{children:p.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:p.jsx(of,{frontmatter:{layout:"minimal"},path:"*",children:p.jsx(Yc,{children:p.jsx(P5,{})})})}})(),Hv=[...dd.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:p.jsx(of,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:p.jsx(Yc,{children:p.jsx(n.default,{})})})}}})),TN];async function RN(e,t){var r;const n=(r=Wn(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 NN(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}kN();async function kN(){const e=C0().basePath;await RN(Hv,e),NN();const t=WC(Hv,{basename:e});n0(document.getElementById("app"),p.jsx(h5,{children:p.jsx(e5,{router:t})}))}export{YT as C,sn as L,WT as R,GT as T,Xe as a,PS as b,F as c,KT as d,p as j,F8 as u}; diff --git a/assets/index-BhvIaQTk.js b/assets/index-y_-j9ylS.js similarity index 97% rename from assets/index-BhvIaQTk.js rename to assets/index-y_-j9ylS.js index 50c23e9..8be426e 100644 --- a/assets/index-BhvIaQTk.js +++ b/assets/index-y_-j9ylS.js @@ -1 +1 @@ -import{j as e,L as f,c as a,a as j,b as _,R as P,d as b,T as c,C as l,u as H}from"./index-BmZJsBfh.js";var N="vocs_Button_button",y="vocs_Button_button_accent";function L({children:t,className:n,href:i,variant:h}){return e.jsx(f,{className:a(n,N,h==="accent"&&y),href:i,variant:"styleless",children:t})}var C="vocs_HomePage_button",M="vocs_HomePage_buttons",R="vocs_HomePage_description",B="vocs_HomePage_logo",u="vocs_HomePage_packageManager",k="vocs_HomePage",w="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",A="vocs_HomePage_tabsList",D="vocs_HomePage_tagline",G="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:a(n,k),children:t})}function g({className:t}){const{logoUrl:n,title:i}=j();return n?e.jsx("div",{className:a(t,B),children:e.jsx(_,{})}):e.jsx("h1",{className:a(t,G),children:i})}function v({children:t,className:n}){return e.jsx("div",{className:a(n,D),children:t})}function o({children:t,className:n}){return e.jsx("div",{className:a(n,R),children:t})}function p({children:t,className:n}){return e.jsx("div",{className:a(n,M),children:t})}function r(t){return e.jsx(L,{...t,className:a(C,t.className)})}function I({name:t,type:n="install"}){return e.jsxs(P,{className:w,defaultValue:"npm",children:[e.jsxs(b,{className:A,children:[e.jsx(c,{value:"npm",children:"npm"}),e.jsx(c,{value:"pnpm",children:"pnpm"}),e.jsx(c,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:u,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:u,children:"pnpm"})," ",n==="init"?"create":"add"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:u,children:"yarn"})," ",n==="init"?"create":"add"," ",t]})]})}const T=Object.freeze(Object.defineProperty({__proto__:null,Button:r,Buttons:p,Description:o,InstallPackage:I,Logo:g,Root:m,Tagline:v},Symbol.toStringTag,{value:"Module"})),E={layout:"landing"};function x(t){return T||s("HomePage",!1),r||s("HomePage.Button",!0),p||s("HomePage.Buttons",!0),o||s("HomePage.Description",!0),g||s("HomePage.Logo",!0),m||s("HomePage.Root",!0),v||s("HomePage.Tagline",!0),e.jsxs(m,{children:[e.jsx(g,{}),e.jsx(v,{children:"Gaianet x RAG API Pipeline"}),e.jsx(o,{children:"Supercharge your Gaianet node by generating a vector knowledge base from any API."}),e.jsx(o,{children:"In this website you can find documentation on how to setup and use the RAG API Pipeline for your API data source."}),e.jsxs(p,{children:[e.jsx(r,{href:"/getting-started",variant:"accent",children:"Go to Documentation"}),e.jsx(r,{href:"https://github.com/raid-guild/gaianet-rag-api-pipeline",children:"GitHub"})]})]})}function S(t={}){const{wrapper:n}={...H(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(x,{...t})}):x()}function s(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,E as frontmatter}; +import{j as e,L as f,c as a,a as j,b as _,R as P,d as b,T as c,C as l,u as H}from"./index-BI7hd4Gq.js";var N="vocs_Button_button",y="vocs_Button_button_accent";function L({children:t,className:n,href:i,variant:h}){return e.jsx(f,{className:a(n,N,h==="accent"&&y),href:i,variant:"styleless",children:t})}var C="vocs_HomePage_button",M="vocs_HomePage_buttons",R="vocs_HomePage_description",B="vocs_HomePage_logo",u="vocs_HomePage_packageManager",k="vocs_HomePage",w="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",A="vocs_HomePage_tabsList",D="vocs_HomePage_tagline",G="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:a(n,k),children:t})}function g({className:t}){const{logoUrl:n,title:i}=j();return n?e.jsx("div",{className:a(t,B),children:e.jsx(_,{})}):e.jsx("h1",{className:a(t,G),children:i})}function v({children:t,className:n}){return e.jsx("div",{className:a(n,D),children:t})}function o({children:t,className:n}){return e.jsx("div",{className:a(n,R),children:t})}function p({children:t,className:n}){return e.jsx("div",{className:a(n,M),children:t})}function r(t){return e.jsx(L,{...t,className:a(C,t.className)})}function I({name:t,type:n="install"}){return e.jsxs(P,{className:w,defaultValue:"npm",children:[e.jsxs(b,{className:A,children:[e.jsx(c,{value:"npm",children:"npm"}),e.jsx(c,{value:"pnpm",children:"pnpm"}),e.jsx(c,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:u,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:u,children:"pnpm"})," ",n==="init"?"create":"add"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:u,children:"yarn"})," ",n==="init"?"create":"add"," ",t]})]})}const T=Object.freeze(Object.defineProperty({__proto__:null,Button:r,Buttons:p,Description:o,InstallPackage:I,Logo:g,Root:m,Tagline:v},Symbol.toStringTag,{value:"Module"})),E={layout:"landing"};function x(t){return T||s("HomePage",!1),r||s("HomePage.Button",!0),p||s("HomePage.Buttons",!0),o||s("HomePage.Description",!0),g||s("HomePage.Logo",!0),m||s("HomePage.Root",!0),v||s("HomePage.Tagline",!0),e.jsxs(m,{children:[e.jsx(g,{}),e.jsx(v,{children:"Gaianet x RAG API Pipeline"}),e.jsx(o,{children:"Supercharge your Gaianet node by generating a vector knowledge base from any API."}),e.jsx(o,{children:"In this website you can find documentation on how to setup and use the RAG API Pipeline for your API data source."}),e.jsxs(p,{children:[e.jsx(r,{href:"/getting-started",variant:"accent",children:"Go to Documentation"}),e.jsx(r,{href:"https://github.com/raid-guild/gaianet-rag-api-pipeline",children:"GitHub"})]})]})}function S(t={}){const{wrapper:n}={...H(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(x,{...t})}):x()}function s(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,E as frontmatter}; diff --git a/assets/manifest-definition-CAYGwoZA.js b/assets/manifest-definition-BH3sQWFK.js similarity index 90% rename from assets/manifest-definition-CAYGwoZA.js rename to assets/manifest-definition-BH3sQWFK.js index 00ec92d..57851f4 100644 --- a/assets/manifest-definition-CAYGwoZA.js +++ b/assets/manifest-definition-BH3sQWFK.js @@ -1 +1 @@ -import{u as a,j as i}from"./index-BmZJsBfh.js";const r={title:"Defining the API Pipeline Manifest",description:"undefined"};function t(n){const e={a:"a",div:"div",h1:"h1",header:"header",...a(),...n.components};return i.jsx(e.header,{children:i.jsxs(e.h1,{id:"defining-the-api-pipeline-manifest",children:["Defining the API Pipeline Manifest",i.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#defining-the-api-pipeline-manifest",children:i.jsx(e.div,{"data-autolink-icon":!0})})]})})}function s(n={}){const{wrapper:e}={...a(),...n.components};return e?i.jsx(e,{...n,children:i.jsx(t,{...n})}):t(n)}export{s as default,r as frontmatter}; +import{u as a,j as i}from"./index-BI7hd4Gq.js";const r={title:"Defining the API Pipeline Manifest",description:"undefined"};function t(n){const e={a:"a",div:"div",h1:"h1",header:"header",...a(),...n.components};return i.jsx(e.header,{children:i.jsxs(e.h1,{id:"defining-the-api-pipeline-manifest",children:["Defining the API Pipeline Manifest",i.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#defining-the-api-pipeline-manifest",children:i.jsx(e.div,{"data-autolink-icon":!0})})]})})}function s(n={}){const{wrapper:e}={...a(),...n.components};return e?i.jsx(e,{...n,children:i.jsx(t,{...n})}):t(n)}export{s as default,r as frontmatter}; diff --git a/assets/other-apis-DSEj_0gD.js b/assets/other-apis-BsW5DYUf.js similarity index 99% rename from assets/other-apis-DSEj_0gD.js rename to assets/other-apis-BsW5DYUf.js index 584b101..b37bea2 100644 --- a/assets/other-apis-DSEj_0gD.js +++ b/assets/other-apis-BsW5DYUf.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-BmZJsBfh.js";const a={title:"Working with Other APIs",description:"undefined"};function e(i){const l={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(l.header,{children:s.jsxs(l.h1,{id:"working-with-other-apis",children:["Working with Other APIs",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#working-with-other-apis",children:s.jsx(l.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-BI7hd4Gq.js";const a={title:"Working with Other APIs",description:"undefined"};function e(i){const l={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(l.header,{children:s.jsxs(l.h1,{id:"working-with-other-apis",children:["Working with Other APIs",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#working-with-other-apis",children:s.jsx(l.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(l.h2,{id:"overview",children:["Overview",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#overview",children:s.jsx(l.div,{"data-autolink-icon":!0})})]}),` `,s.jsx(l.p,{children:"This page outlines how to work with other APIs, including the necessary components and their configurations."}),` `,s.jsxs(l.h2,{id:"api-manifest",children:["API Manifest",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#api-manifest",children:s.jsx(l.div,{"data-autolink-icon":!0})})]}),` diff --git a/assets/tech-stack-CjeAah4A.js b/assets/tech-stack-aYqGeJhL.js similarity index 99% rename from assets/tech-stack-CjeAah4A.js rename to assets/tech-stack-aYqGeJhL.js index 8939ec9..027a697 100644 --- a/assets/tech-stack-CjeAah4A.js +++ b/assets/tech-stack-aYqGeJhL.js @@ -1,4 +1,4 @@ -import{u as s,j as e}from"./index-BmZJsBfh.js";const a={title:"RAG API Pipeline Tech Stack",description:"undefined"};function r(i){const n={a:"a",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...s(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"rag-api-pipeline-tech-stack",children:["RAG API Pipeline Tech Stack",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-tech-stack",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as s,j as e}from"./index-BI7hd4Gq.js";const a={title:"RAG API Pipeline Tech Stack",description:"undefined"};function r(i){const n={a:"a",div:"div",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...s(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"rag-api-pipeline-tech-stack",children:["RAG API Pipeline Tech Stack",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#rag-api-pipeline-tech-stack",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsxs(n.h2,{id:"overview",children:["Overview",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#overview",children:e.jsx(n.div,{"data-autolink-icon":!0})})]}),` `,e.jsx(n.p,{children:"This page outlines the technologies and tools utilized in the AI pipeline, covering data extraction, caching, processing, and vector search for efficient data flow and feature embedding generation."}),` `,e.jsxs(n.h2,{id:"tech-stack",children:["Tech Stack",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#tech-stack",children:e.jsx(n.div,{"data-autolink-icon":!0})})]}),` diff --git a/cli/index.html b/cli/index.html index a6d953a..78f420c 100644 --- a/cli/index.html +++ b/cli/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

RAG API Pipeline CLI Documentation

diff --git a/deployment/index.html b/deployment/index.html index 3c92998..a0ac504 100644 --- a/deployment/index.html +++ b/deployment/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

RAG API Pipeline Deployment

diff --git a/examples/index.html b/examples/index.html index b3f9d37..6b09e67 100644 --- a/examples/index.html +++ b/examples/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

API Examples

diff --git a/getting-started/index.html b/getting-started/index.html index d0ae7a0..63e426c 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

GaiaNet RAG API Pipeline

diff --git a/index.html b/index.html index 3d15766..4cb1684 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

RAG API Pipeline

Gaianet x RAG API Pipeline
Supercharge your Gaianet node by generating a vector knowledge base from any API.
In this website you can find documentation on how to setup and use the RAG API Pipeline for your API data source.
diff --git a/manifest-definition/index.html b/manifest-definition/index.html index b6f6db3..2b5adc0 100644 --- a/manifest-definition/index.html +++ b/manifest-definition/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

Defining the API Pipeline Manifest

diff --git a/other-apis/index.html b/other-apis/index.html index 40f4369..3460886 100644 --- a/other-apis/index.html +++ b/other-apis/index.html @@ -12,8 +12,8 @@ - - + +
Skip to content

Working with Other APIs

diff --git a/tech-stack/index.html b/tech-stack/index.html index 6b89c0a..f67578d 100644 --- a/tech-stack/index.html +++ b/tech-stack/index.html @@ -12,8 +12,8 @@ - - + +