+ Error generating stack: `+i.message+`
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J2=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=xn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,hc=r),rc(e,t)},n}function Rg(e,t,n){n=xn(-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(){rc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){rc(e,t),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Wh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J2;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=d3.bind(null,e,t,n),t.then(e,e))}function Kh(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 Yh(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=xn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e)}var q2=kn.ReactCurrentOwner,vt=!1;function st(e,t,n,r){t.child=e===null?tg(t,null,n,r):_o(t,e.child,n,r)}function Gh(e,t,n,r,o){n=n.render;var i=t.ref;return mo(t,o),r=Of(e,t,n,r,i,o),n=Df(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Tn(e,t,o)):(Re&&n&&_f(t),t.flags|=1,st(e,t,r,o),t.child)}function Qh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Yf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ng(e,t,i,r,o)):(e=Xa(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:ji,n(a,r)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=qn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ng(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ji(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return oc(e,t,n,r,o)}function kg(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},ye(so,xt),xt|=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,ye(so,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ye(so,xt),xt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ye(so,xt),xt|=r;return st(e,t,o,n),t.child}function Pg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oc(e,t,n,r,o){var i=gt(n)?Tr:at.current;return i=Eo(t,i),mo(t,o),n=Of(e,t,n,r,i,o),r=Df(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Tn(e,t,o)):(Re&&r&&_f(t),t.flags|=1,st(e,t,n,o),t.child)}function Zh(e,t,n,r,o){if(gt(n)){var i=!0;vl(t)}else i=!1;if(mo(t,o),t.stateNode===null)Ga(e,t),_g(t,n,r),nc(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=gt(n)?Tr:at.current,c=Eo(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)&&Vh(t,a,r,c),$n=!1;var d=t.memoizedState;a.state=d,xl(t,r,a,o),s=t.memoizedState,l!==r||d!==s||mt.current||$n?(typeof f=="function"&&(tc(t,n,f,r),s=t.memoizedState),(l=$n||Uh(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,rg(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=gt(n)?Tr:at.current,s=Eo(t,s));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==u||d!==s)&&Vh(t,a,r,s),$n=!1,d=t.memoizedState,a.state=d,xl(t,r,a,o);var w=t.memoizedState;l!==u||d!==w||mt.current||$n?(typeof p=="function"&&(tc(t,n,p,r),w=t.memoizedState),(c=$n||Uh(t,n,c,r,d,w,s)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,w,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,w,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=w),a.props=r,a.state=w,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 ic(e,t,n,r,i,o)}function ic(e,t,n,r,o,i){Pg(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Ih(t,n,!1),Tn(e,t,i);r=t.stateNode,q2.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=_o(t,e.child,null,i),t.child=_o(t,null,l,i)):st(e,t,l,i),t.memoizedState=r.state,o&&Ih(t,n,!0),t.child}function bg(e){var t=e.stateNode;t.pendingContext?Lh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lh(e,t.context,!1),Af(e,t.containerInfo)}function Xh(e,t,n,r,o){return So(),Rf(o),t.flags|=256,st(e,t,n,r),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function lc(e){return{baseLanes:e,cachePool:null,transitions:null}}function jg(e,t,n){var r=t.pendingProps,o=ke.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),ye(ke,o&1),e===null)return qu(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=ql(a,r,0,null),e=Sr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lc(n),t.memoizedState=ac,e):$f(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return e3(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=qn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=qn(l,i):(i=Sr(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?lc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=ac,r}return i=e.child,e=i.sibling,r=qn(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 $f(e,t){return t=ql({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sa(e,t,n,r){return r!==null&&Rf(r),_o(t,e.child,null,n),e=$f(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e3(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Ws(Error(F(422))),Sa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ql({mode:"visible",children:r.children},o,0,null),i=Sr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&_o(t,e.child,null,a),t.child.memoizedState=lc(a),t.memoizedState=ac,i);if(!(t.mode&1))return Sa(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(F(419)),r=Ws(i,r,void 0),Sa(e,t,a,r)}if(l=(a&e.childLanes)!==0,vt||l){if(r=Ge,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,_n(e,o),Qt(r,e,o,-1))}return Kf(),r=Ws(Error(F(421))),Sa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=h3.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,St=Qn(o.nextSibling),_t=t,Re=!0,Wt=null,e!==null&&(At[Mt++]=yn,At[Mt++]=wn,At[Mt++]=Rr,yn=e.id,wn=e.overflow,Rr=t),t=$f(t,r.children),t.flags|=4096,t)}function Jh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ec(e.return,t,n)}function Ks(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 Ag(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(st(e,t,r.children,n),r=ke.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&&Jh(e,n,t);else if(e.tag===19)Jh(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(ye(ke,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&&Cl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ks(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&&Cl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ks(t,!0,n,null,i);break;case"together":Ks(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ga(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=qn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function t3(e,t,n){switch(t.tag){case 3:bg(t),So();break;case 5:og(t);break;case 1:gt(t.type)&&vl(t);break;case 4:Af(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(yl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?jg(e,t,n):(ye(ke,ke.current&1),e=Tn(e,t,n),e!==null?e.sibling:null);ye(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ag(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,kg(e,t,n)}return Tn(e,t,n)}var Mg,sc,Lg,Ig;Mg=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}};sc=function(){};Lg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,wr(sn.current);var i=null;switch(n){case"input":o=bu(e,o),r=bu(e,r),i=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),i=[];break;case"textarea":o=Mu(e,o),r=Mu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hl)}Iu(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)}};Ig=function(e,t,n,r){n!==r&&(t.flags|=4)};function ei(e,t){if(!Re)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 rt(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 n3(e,t,n){var r=t.pendingProps;switch(Tf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return gt(t.type)&&pl(),rt(t),null;case 3:return r=t.stateNode,To(),Ce(mt),Ce(at),Lf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ca(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wt!==null&&(mc(Wt),Wt=null))),sc(e,t),rt(t),null;case 5:Mf(t);var o=wr(Oi.current);if(n=t.type,e!==null&&t.stateNode!=null)Lg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return rt(t),null}if(e=wr(sn.current),Ca(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[rn]=t,r[Li]=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[Li]=r,Mg(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ou(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;oNo&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cl(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&&!Re)return rt(t),null}else 2*Ie()-i.renderingStartTime>No&&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=Ie(),t.sibling=null,n=ke.current,ye(ke,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return Wf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function r3(e,t){switch(Tf(t),t.tag){case 1:return gt(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),Ce(mt),Ce(at),Lf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mf(t),null;case 13:if(Ce(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(ke),null;case 4:return To(),null;case 10:return Pf(t.type._context),null;case 22:case 23:return Wf(),null;case 24:return null;default:return null}}var _a=!1,ot=!1,o3=typeof WeakSet=="function"?WeakSet:Set,Y=null;function lo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function uc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var qh=!1;function i3(e,t){if(Ku=cl,e=$m(),Sf(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 p;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),(p=u.firstChild)!==null;)d=u,u=p;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(p=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yu={focusedElem:e,selectionRange:n},cl=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,C=w.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ht(t.type,v),C);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return w=qh,qh=!1,w}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&&uc(t,n,i)}o=o.next}while(o!==r)}}function Xl(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 cc(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 Og(e){var t=e.alternate;t!==null&&(e.alternate=null,Og(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Li],delete t[Zu],delete t[B2],delete t[H2])),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 Dg(e){return e.tag===5||e.tag===3||e.tag===4}function ep(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dg(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 fc(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=hl));else if(r!==4&&(e=e.child,e!==null))for(fc(e,t,n),e=e.sibling;e!==null;)fc(e,t,n),e=e.sibling}function dc(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(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}var Xe=null,Ut=!1;function On(e,t,n){for(n=n.child;n!==null;)Fg(e,t,n),n=n.sibling}function Fg(e,t,n){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:ot||lo(n,t);case 6:var r=Xe,o=Ut;Xe=null,On(e,t,n),Xe=r,Ut=o,Xe!==null&&(Ut?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(Ut?(e=Xe,n=n.stateNode,e.nodeType===8?zs(e.parentNode,n):e.nodeType===1&&zs(e,n),Pi(e)):zs(Xe,n.stateNode));break;case 4:r=Xe,o=Ut,Xe=n.stateNode.containerInfo,Ut=!0,On(e,t,n),Xe=r,Ut=o;break;case 0:case 11:case 14:case 15:if(!ot&&(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)&&uc(n,t,a),o=o.next}while(o!==r)}On(e,t,n);break;case 1:if(!ot&&(lo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}On(e,t,n);break;case 21:On(e,t,n);break;case 22:n.mode&1?(ot=(r=ot)||n.memoizedState!==null,On(e,t,n),ot=r):On(e,t,n);break;default:On(e,t,n)}}function tp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o3),t.forEach(function(r){var o=p3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*l3(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,Rl=0,se&6)throw Error(F(331));var o=se;for(se|=4,Y=e.current;Y!==null;){var i=Y,a=i.child;if(Y.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sIe()-Uf?Er(e,0):Hf|=n),yt(e,t)}function Kg(e,t){t===0&&(e.mode&1?(t=va,va<<=1,!(va&130023424)&&(va=4194304)):t=1);var n=ut();e=_n(e,t),e!==null&&(Gi(e,t,n),yt(e,n))}function h3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kg(e,n)}function p3(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(F(314))}r!==null&&r.delete(t),Kg(e,n)}var Yg;Yg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,t3(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Re&&t.flags&1048576&&Xm(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ga(e,t),e=t.pendingProps;var o=Eo(t,at.current);mo(t,n),o=Of(null,t,r,e,o,n);var i=Df();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,gt(r)?(i=!0,vl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,jf(t),o.updater=Zl,t.stateNode=o,o._reactInternals=t,nc(t,r,e,n),t=ic(null,t,r,!0,i,n)):(t.tag=0,Re&&i&&_f(t),st(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ga(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=m3(r),e=Ht(r,e),o){case 0:t=oc(null,t,r,e,n);break e;case 1:t=Zh(null,t,r,e,n);break e;case 11:t=Gh(null,t,r,e,n);break e;case 14:t=Qh(null,t,r,Ht(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),oc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Zh(e,t,r,o,n);case 3:e:{if(bg(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,rg(e,t),xl(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=Ro(Error(F(423)),t),t=Xh(e,t,r,n,o);break e}else if(r!==o){o=Ro(Error(F(424)),t),t=Xh(e,t,r,n,o);break e}else for(St=Qn(t.stateNode.containerInfo.firstChild),_t=t,Re=!0,Wt=null,n=tg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=Tn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return og(t),e===null&&qu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Gu(r,o)?a=null:i!==null&&Gu(r,i)&&(t.flags|=32),Pg(e,t),st(e,t,a,n),t.child;case 6:return e===null&&qu(t),null;case 13:return jg(e,t,n);case 4:return Af(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_o(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Gh(e,t,r,o,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(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,ye(yl,r._currentValue),r._currentValue=a,i!==null)if(Zt(i.value,a)){if(i.children===o.children&&!mt.current){t=Tn(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=xn(-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),ec(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(F(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ec(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}st(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mo(t,n),o=Ot(o),r=r(o),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,o=Ht(r,t.pendingProps),o=Ht(r.type,o),Qh(e,t,r,o,n);case 15:return Ng(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Ga(e,t),t.tag=1,gt(r)?(e=!0,vl(t)):e=!1,mo(t,n),_g(t,r,o),nc(t,r,o,n),ic(null,t,r,!0,e,n);case 19:return Ag(e,t,n);case 22:return kg(e,t,n)}throw Error(F(156,t.tag))};function Gg(e,t){return Cm(e,t)}function v3(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 Lt(e,t,n,r){return new v3(e,t,n,r)}function Yf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m3(e){if(typeof e=="function")return Yf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===df)return 11;if(e===hf)return 14}return 2}function qn(e,t){var n=e.alternate;return n===null?(n=Lt(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 Xa(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Yf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Jr:return Sr(n.children,o,i,t);case ff:a=8,o|=8;break;case Ru:return e=Lt(12,n,t,o|2),e.elementType=Ru,e.lanes=i,e;case Nu:return e=Lt(13,n,t,o),e.elementType=Nu,e.lanes=i,e;case ku:return e=Lt(19,n,t,o),e.elementType=ku,e.lanes=i,e;case om:return ql(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nm:a=10;break e;case rm:a=9;break e;case df:a=11;break e;case hf:a=14;break e;case zn:a=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Lt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Sr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function ql(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=om,e.lanes=n,e.stateNode={isHidden:!1},e}function Ys(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function Gs(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ks(0),this.expirationTimes=ks(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ks(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gf(e,t,n,r,o,i,a,l,s){return e=new g3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jf(i),e}function y3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jg)}catch(e){console.error(e)}}Jg(),Jv.exports=Nt;var Fo=Jv.exports;const Jf=ar(Fo),S3=tf({__proto__:null,default:Jf},[Fo]);var qg,up=Fo;up.createRoot,qg=up.hydrateRoot;/**+ * @remix-run/router v1.19.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t
"u")throw new Error(t)}function ko(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T3(){return Math.random().toString(36).substr(2,8)}function fp(e,t){return{usr:e.state,key:e.key,idx:t}}function Bi(e,t,n,r){return n===void 0&&(n=null),Ne({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cr(t):t,{state:n,key:t&&t.key||r||T3()})}function br(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 cr(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 R3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=$e.Pop,s=null,c=f();c==null&&(c=0,a.replaceState(Ne({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=$e.Pop;let C=f(),y=C==null?null:C-c;c=C,s&&s({action:l,location:v.location,delta:y})}function d(C,y){l=$e.Push;let g=Bi(v.location,C,y);c=f()+1;let x=fp(g,c),E=v.createHref(g);try{a.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function p(C,y){l=$e.Replace;let g=Bi(v.location,C,y);c=f();let x=fp(g,c),E=v.createHref(g);a.replaceState(x,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function w(C){let y=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:br(C);return g=g.replace(/ $/,"%20"),te(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}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(cp,u),s=C,()=>{o.removeEventListener(cp,u),s=null}},createHref(C){return t(o,C)},createURL:w,encodeLocation(C){let y=w(C);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:p,go(C){return a.go(C)}};return v}var pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pe||(pe={}));const N3=new Set(["lazy","caseSensitive","path","id","index","children"]);function k3(e){return e.index===!0}function Hi(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(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),k3(o)){let s=Ne({},o,t(o),{id:l});return r[l]=s,s}else{let s=Ne({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=Hi(o.children,t,a,r)),s}})}function Un(e,t,n){return n===void 0&&(n="/"),Ja(e,t,n,!1)}function Ja(e,t,n,r){let o=typeof t=="string"?cr(t):t,i=Or(o.pathname||"/",n);if(i==null)return null;let a=t0(e);P3(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("/")&&(te(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=Cn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),t0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:O3(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 n0(i.path))o(i,a,s)}),t}function n0(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=n0(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 P3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const b3=/^:[\w-]+$/,j3=3,A3=2,M3=1,L3=10,I3=-2,dp=e=>e==="*";function O3(e,t){let n=e.split("/"),r=n.length;return n.some(dp)&&(r+=I3),t&&(r+=A3),n.filter(o=>!dp(o)).reduce((o,i)=>o+(b3.test(i)?j3:i===""?M3:L3),r)}function D3(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 F3(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:d,isOptional:p}=f;if(d==="*"){let v=l[u]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=l[u];return p&&!w?c[d]=void 0:c[d]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function z3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ko(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 r0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ko(!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 Or(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 $3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?cr(e):e;return{pathname:n?n.startsWith("/")?n:B3(n,t):t,search:U3(r),hash:V3(o)}}function B3(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 Qs(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 o0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qf(e,t){let n=o0(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ed(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=cr(e):(o=Ne({},e),te(!o.pathname||!o.pathname.includes("?"),Qs("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Qs("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Qs("#","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=$3(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const Cn=e=>e.join("/").replace(/\/\/+/g,"/"),H3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,V3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pl{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 os(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const i0=["post","put","patch","delete"],W3=new Set(i0),K3=["get",...i0],Y3=new Set(K3),G3=new Set([301,302,303,307,308]),Q3=new Set([307,308]),Zs={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z3={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},td=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),a0="remix-router-transitions";function J3(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;te(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=P=>({hasErrorBoundary:N(P)})}else o=X3;let i={},a=Hi(e.routes,o,void 0,i),l,s=e.basename||"/",c=e.unstable_dataStrategy||rC,f=e.unstable_patchRoutesOnMiss,u=Ne({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,p=new Set,w=null,v=null,C=null,y=e.hydrationData!=null,g=Un(a,e.history.location,s),x=null;if(g==null&&!f){let N=lt(404,{pathname:e.history.location.pathname}),{matches:P,route:j}=Ep(a);g=P,x={[j.id]:N}}g&&!e.hydrationData&&ia(g,a,e.history.location.pathname).active&&(g=null);let E;if(g)if(g.some(N=>N.route.lazy))E=!1;else if(!g.some(N=>N.route.loader))E=!0;else if(u.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null,j=L=>L.route.loader?typeof L.route.loader=="function"&&L.route.loader.hydrate===!0?!1:N&&N[L.route.id]!==void 0||P&&P[L.route.id]!==void 0:!0;if(P){let L=g.findIndex(K=>P[K.route.id]!==void 0);E=g.slice(0,L+1).every(j)}else E=g.every(j)}else E=e.hydrationData!=null;else if(E=!1,g=[],u.v7_partialHydration){let N=ia(null,a,e.history.location.pathname);N.active&&N.matches&&(g=N.matches)}let _,S={historyAction:e.history.action,location:e.history.location,matches:g,initialized:E,navigation:Zs,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||x,fetchers:new Map,blockers:new Map},T=$e.Pop,R=!1,k,b=!1,O=new Map,z=null,H=!1,A=!1,W=[],U=new Set,$=new Map,M=0,D=-1,B=new Map,Z=new Set,le=new Map,Fe=new Map,Ee=new Set,He=new Map,Ue=new Map,tt=new Map,ve=!1;function Me(){if(d=e.history.listen(N=>{let{action:P,location:j,delta:L}=N;if(ve){ve=!1;return}ko(Ue.size===0||L!=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 K=Xd({currentLocation:S.location,nextLocation:j,historyAction:P});if(K&&L!=null){ve=!0,e.history.go(L*-1),ra(K,{state:"blocked",location:j,proceed(){ra(K,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),e.history.go(L)},reset(){let G=new Map(S.blockers);G.set(K,ni),we({blockers:G})}});return}return dn(P,j)}),n){mC(t,O);let N=()=>gC(t,O);t.addEventListener("pagehide",N),z=()=>t.removeEventListener("pagehide",N)}return S.initialized||dn($e.Pop,S.location,{initialHydration:!0}),_}function Pt(){d&&d(),z&&z(),p.clear(),k&&k.abort(),S.fetchers.forEach((N,P)=>na(P)),S.blockers.forEach((N,P)=>Zd(P))}function bt(N){return p.add(N),()=>p.delete(N)}function we(N,P){P===void 0&&(P={}),S=Ne({},S,N);let j=[],L=[];u.v7_fetcherPersist&&S.fetchers.forEach((K,G)=>{K.state==="idle"&&(Ee.has(G)?L.push(G):j.push(G))}),[...p].forEach(K=>K(S,{deletedFetchers:L,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),u.v7_fetcherPersist&&(j.forEach(K=>S.fetchers.delete(K)),L.forEach(K=>na(K)))}function jt(N,P,j){var L,K;let{flushSync:G}=j===void 0?{}:j,J=S.actionData!=null&&S.navigation.formMethod!=null&&Vt(S.navigation.formMethod)&&S.navigation.state==="loading"&&((L=N.state)==null?void 0:L._isRedirect)!==!0,V;P.actionData?Object.keys(P.actionData).length>0?V=P.actionData:V=null:J?V=S.actionData:V=null;let ee=P.loaderData?xp(S.loaderData,P.loaderData,P.matches||[],P.errors):S.loaderData,Q=S.blockers;Q.size>0&&(Q=new Map(Q),Q.forEach((fe,me)=>Q.set(me,ni)));let X=R===!0||S.navigation.formMethod!=null&&Vt(S.navigation.formMethod)&&((K=N.state)==null?void 0:K._isRedirect)!==!0;l&&(a=l,l=void 0),H||T===$e.Pop||(T===$e.Push?e.history.push(N,N.state):T===$e.Replace&&e.history.replace(N,N.state));let he;if(T===$e.Pop){let fe=O.get(S.location.pathname);fe&&fe.has(N.pathname)?he={currentLocation:S.location,nextLocation:N}:O.has(N.pathname)&&(he={currentLocation:N,nextLocation:S.location})}else if(b){let fe=O.get(S.location.pathname);fe?fe.add(N.pathname):(fe=new Set([N.pathname]),O.set(S.location.pathname,fe)),he={currentLocation:S.location,nextLocation:N}}we(Ne({},P,{actionData:V,loaderData:ee,historyAction:T,location:N,initialized:!0,navigation:Zs,revalidation:"idle",restoreScrollPosition:qd(N,P.matches||S.matches),preventScrollReset:X,blockers:Q}),{viewTransitionOpts:he,flushSync:G===!0}),T=$e.Pop,R=!1,b=!1,H=!1,A=!1,W=[]}async function Vo(N,P){if(typeof N=="number"){e.history.go(N);return}let j=gc(S.location,S.matches,s,u.v7_prependBasename,N,u.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:L,submission:K,error:G}=hp(u.v7_normalizeFormMethod,!1,j,P),J=S.location,V=Bi(S.location,L,P&&P.state);V=Ne({},V,e.history.encodeLocation(V));let ee=P&&P.replace!=null?P.replace:void 0,Q=$e.Push;ee===!0?Q=$e.Replace:ee===!1||K!=null&&Vt(K.formMethod)&&K.formAction===S.location.pathname+S.location.search&&(Q=$e.Replace);let X=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,he=(P&&P.unstable_flushSync)===!0,fe=Xd({currentLocation:J,nextLocation:V,historyAction:Q});if(fe){ra(fe,{state:"blocked",location:V,proceed(){ra(fe,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),Vo(N,P)},reset(){let me=new Map(S.blockers);me.set(fe,ni),we({blockers:me})}});return}return await dn(Q,V,{submission:K,pendingError:G,preventScrollReset:X,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:he})}function gs(){if(xs(),we({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){dn(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}dn(T||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function dn(N,P,j){k&&k.abort(),k=null,T=N,H=(j&&j.startUninterruptedRevalidation)===!0,Ww(S.location,S.matches),R=(j&&j.preventScrollReset)===!0,b=(j&&j.enableViewTransition)===!0;let L=l||a,K=j&&j.overrideNavigation,G=Un(L,P,s),J=(j&&j.flushSync)===!0,V=ia(G,L,P.pathname);if(V.active&&V.matches&&(G=V.matches),!G){let{error:ue,notFoundMatches:Ze,route:ze}=Cs(P.pathname);jt(P,{matches:Ze,loaderData:{},errors:{[ze.id]:ue}},{flushSync:J});return}if(S.initialized&&!A&&uC(S.location,P)&&!(j&&j.submission&&Vt(j.submission.formMethod))){jt(P,{matches:G},{flushSync:J});return}k=new AbortController;let ee=Wr(e.history,P,k.signal,j&&j.submission),Q;if(j&&j.pendingError)Q=[uo(G).route.id,{type:pe.error,error:j.pendingError}];else if(j&&j.submission&&Vt(j.submission.formMethod)){let ue=await ys(ee,P,j.submission,G,V.active,{replace:j.replace,flushSync:J});if(ue.shortCircuited)return;if(ue.pendingActionResult){let[Ze,ze]=ue.pendingActionResult;if(Ct(ze)&&os(ze.error)&&ze.error.status===404){k=null,jt(P,{matches:ue.matches,loaderData:{},errors:{[Ze]:ze.error}});return}}G=ue.matches||G,Q=ue.pendingActionResult,K=Xs(P,j.submission),J=!1,V.active=!1,ee=Wr(e.history,ee.url,ee.signal)}let{shortCircuited:X,matches:he,loaderData:fe,errors:me}=await ws(ee,P,G,V.active,K,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,j&&j.initialHydration===!0,J,Q);X||(k=null,jt(P,Ne({matches:he||G},Cp(Q),{loaderData:fe,errors:me})))}async function ys(N,P,j,L,K,G){G===void 0&&(G={}),xs();let J=pC(P,j);if(we({navigation:J},{flushSync:G.flushSync===!0}),K){let Q=await aa(L,P.pathname,N.signal);if(Q.type==="aborted")return{shortCircuited:!0};if(Q.type==="error"){let{boundaryId:X,error:he}=oa(P.pathname,Q);return{matches:Q.partialMatches,pendingActionResult:[X,{type:pe.error,error:he}]}}else if(Q.matches)L=Q.matches;else{let{notFoundMatches:X,error:he,route:fe}=Cs(P.pathname);return{matches:X,pendingActionResult:[fe.id,{type:pe.error,error:he}]}}}let V,ee=hi(L,P);if(!ee.route.action&&!ee.route.lazy)V={type:pe.error,error:lt(405,{method:N.method,pathname:P.pathname,routeId:ee.route.id})};else if(V=(await Ko("action",N,[ee],L))[0],N.signal.aborted)return{shortCircuited:!0};if(Cr(V)){let Q;return G&&G.replace!=null?Q=G.replace:Q=gp(V.response.headers.get("Location"),new URL(N.url),s)===S.location.pathname+S.location.search,await Wo(N,V,{submission:j,replace:Q}),{shortCircuited:!0}}if(xr(V))throw lt(400,{type:"defer-action"});if(Ct(V)){let Q=uo(L,ee.route.id);return(G&&G.replace)!==!0&&(T=$e.Push),{matches:L,pendingActionResult:[Q.route.id,V]}}return{matches:L,pendingActionResult:[ee.route.id,V]}}async function ws(N,P,j,L,K,G,J,V,ee,Q,X){let he=K||Xs(P,G),fe=G||J||Rp(he),me=!H&&(!u.v7_partialHydration||!ee);if(L){if(me){let je=hr(X);we(Ne({navigation:he},je!==void 0?{actionData:je}:{}),{flushSync:Q})}let ne=await aa(j,P.pathname,N.signal);if(ne.type==="aborted")return{shortCircuited:!0};if(ne.type==="error"){let{boundaryId:je,error:wt}=oa(P.pathname,ne);return{matches:ne.partialMatches,loaderData:{},errors:{[je]:wt}}}else if(ne.matches)j=ne.matches;else{let{error:je,notFoundMatches:wt,route:Se}=Cs(P.pathname);return{matches:wt,loaderData:{},errors:{[Se.id]:je}}}}let ue=l||a,[Ze,ze]=pp(e.history,S,j,fe,P,u.v7_partialHydration&&ee===!0,u.v7_skipActionErrorRevalidation,A,W,U,Ee,le,Z,ue,s,X);if(Es(ne=>!(j&&j.some(je=>je.route.id===ne))||Ze&&Ze.some(je=>je.route.id===ne)),D=++M,Ze.length===0&&ze.length===0){let ne=Gd();return jt(P,Ne({matches:j,loaderData:{},errors:X&&Ct(X[1])?{[X[0]]:X[1].error}:null},Cp(X),ne?{fetchers:new Map(S.fetchers)}:{}),{flushSync:Q}),{shortCircuited:!0}}if(me){let ne={};if(!L){ne.navigation=he;let je=hr(X);je!==void 0&&(ne.actionData=je)}ze.length>0&&(ne.fetchers=Fw(ze)),we(ne,{flushSync:Q})}ze.forEach(ne=>{$.has(ne.key)&&Ln(ne.key),ne.controller&&$.set(ne.key,ne.controller)});let Yo=()=>ze.forEach(ne=>Ln(ne.key));k&&k.signal.addEventListener("abort",Yo);let{loaderResults:In,fetcherResults:Br}=await Wd(S.matches,j,Ze,ze,N);if(N.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Yo),ze.forEach(ne=>$.delete(ne.key));let Hr=Sp([...In,...Br]);if(Hr){if(Hr.idx>=Ze.length){let ne=ze[Hr.idx-Ze.length].key;Z.add(ne)}return await Wo(N,Hr.result,{replace:V}),{shortCircuited:!0}}let{loaderData:Ur,errors:en}=wp(S,j,Ze,In,X,ze,Br,He);He.forEach((ne,je)=>{ne.subscribe(wt=>{(wt||ne.done)&&He.delete(je)})}),u.v7_partialHydration&&ee&&S.errors&&Object.entries(S.errors).filter(ne=>{let[je]=ne;return!Ze.some(wt=>wt.route.id===je)}).forEach(ne=>{let[je,wt]=ne;en=Object.assign(en||{},{[je]:wt})});let la=Gd(),sa=Qd(D),ua=la||sa||ze.length>0;return Ne({matches:j,loaderData:Ur,errors:en},ua?{fetchers:new Map(S.fetchers)}:{})}function hr(N){if(N&&!Ct(N[1]))return{[N[0]]:N[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Fw(N){return N.forEach(P=>{let j=S.fetchers.get(P.key),L=ri(void 0,j?j.data:void 0);S.fetchers.set(P.key,L)}),new Map(S.fetchers)}function zw(N,P,j,L){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.");$.has(N)&&Ln(N);let K=(L&&L.unstable_flushSync)===!0,G=l||a,J=gc(S.location,S.matches,s,u.v7_prependBasename,j,u.v7_relativeSplatPath,P,L==null?void 0:L.relative),V=Un(G,J,s),ee=ia(V,G,J);if(ee.active&&ee.matches&&(V=ee.matches),!V){hn(N,P,lt(404,{pathname:J}),{flushSync:K});return}let{path:Q,submission:X,error:he}=hp(u.v7_normalizeFormMethod,!0,J,L);if(he){hn(N,P,he,{flushSync:K});return}let fe=hi(V,Q);if(R=(L&&L.preventScrollReset)===!0,X&&Vt(X.formMethod)){$w(N,P,Q,fe,V,ee.active,K,X);return}le.set(N,{routeId:P,path:Q}),Bw(N,P,Q,fe,V,ee.active,K,X)}async function $w(N,P,j,L,K,G,J,V){xs(),le.delete(N);function ee(Se){if(!Se.route.action&&!Se.route.lazy){let pn=lt(405,{method:V.formMethod,pathname:j,routeId:P});return hn(N,P,pn,{flushSync:J}),!0}return!1}if(!G&&ee(L))return;let Q=S.fetchers.get(N);Mn(N,vC(V,Q),{flushSync:J});let X=new AbortController,he=Wr(e.history,j,X.signal,V);if(G){let Se=await aa(K,j,he.signal);if(Se.type==="aborted")return;if(Se.type==="error"){let{error:pn}=oa(j,Se);hn(N,P,pn,{flushSync:J});return}else if(Se.matches){if(K=Se.matches,L=hi(K,j),ee(L))return}else{hn(N,P,lt(404,{pathname:j}),{flushSync:J});return}}$.set(N,X);let fe=M,ue=(await Ko("action",he,[L],K))[0];if(he.signal.aborted){$.get(N)===X&&$.delete(N);return}if(u.v7_fetcherPersist&&Ee.has(N)){if(Cr(ue)||Ct(ue)){Mn(N,Dn(void 0));return}}else{if(Cr(ue))if($.delete(N),D>fe){Mn(N,Dn(void 0));return}else return Z.add(N),Mn(N,ri(V)),Wo(he,ue,{fetcherSubmission:V});if(Ct(ue)){hn(N,P,ue.error);return}}if(xr(ue))throw lt(400,{type:"defer-action"});let Ze=S.navigation.location||S.location,ze=Wr(e.history,Ze,X.signal),Yo=l||a,In=S.navigation.state!=="idle"?Un(Yo,S.navigation.location,s):S.matches;te(In,"Didn't find any matches after fetcher action");let Br=++M;B.set(N,Br);let Hr=ri(V,ue.data);S.fetchers.set(N,Hr);let[Ur,en]=pp(e.history,S,In,V,Ze,!1,u.v7_skipActionErrorRevalidation,A,W,U,Ee,le,Z,Yo,s,[L.route.id,ue]);en.filter(Se=>Se.key!==N).forEach(Se=>{let pn=Se.key,eh=S.fetchers.get(pn),Gw=ri(void 0,eh?eh.data:void 0);S.fetchers.set(pn,Gw),$.has(pn)&&Ln(pn),Se.controller&&$.set(pn,Se.controller)}),we({fetchers:new Map(S.fetchers)});let la=()=>en.forEach(Se=>Ln(Se.key));X.signal.addEventListener("abort",la);let{loaderResults:sa,fetcherResults:ua}=await Wd(S.matches,In,Ur,en,ze);if(X.signal.aborted)return;X.signal.removeEventListener("abort",la),B.delete(N),$.delete(N),en.forEach(Se=>$.delete(Se.key));let ne=Sp([...sa,...ua]);if(ne){if(ne.idx>=Ur.length){let Se=en[ne.idx-Ur.length].key;Z.add(Se)}return Wo(ze,ne.result)}let{loaderData:je,errors:wt}=wp(S,S.matches,Ur,sa,void 0,en,ua,He);if(S.fetchers.has(N)){let Se=Dn(ue.data);S.fetchers.set(N,Se)}Qd(Br),S.navigation.state==="loading"&&Br>D?(te(T,"Expected pending action"),k&&k.abort(),jt(S.navigation.location,{matches:In,loaderData:je,errors:wt,fetchers:new Map(S.fetchers)})):(we({errors:wt,loaderData:xp(S.loaderData,je,In,wt),fetchers:new Map(S.fetchers)}),A=!1)}async function Bw(N,P,j,L,K,G,J,V){let ee=S.fetchers.get(N);Mn(N,ri(V,ee?ee.data:void 0),{flushSync:J});let Q=new AbortController,X=Wr(e.history,j,Q.signal);if(G){let ue=await aa(K,j,X.signal);if(ue.type==="aborted")return;if(ue.type==="error"){let{error:Ze}=oa(j,ue);hn(N,P,Ze,{flushSync:J});return}else if(ue.matches)K=ue.matches,L=hi(K,j);else{hn(N,P,lt(404,{pathname:j}),{flushSync:J});return}}$.set(N,Q);let he=M,me=(await Ko("loader",X,[L],K))[0];if(xr(me)&&(me=await f0(me,X.signal,!0)||me),$.get(N)===Q&&$.delete(N),!X.signal.aborted){if(Ee.has(N)){Mn(N,Dn(void 0));return}if(Cr(me))if(D>he){Mn(N,Dn(void 0));return}else{Z.add(N),await Wo(X,me);return}if(Ct(me)){hn(N,P,me.error);return}te(!xr(me),"Unhandled fetcher deferred data"),Mn(N,Dn(me.data))}}async function Wo(N,P,j){let{submission:L,fetcherSubmission:K,replace:G}=j===void 0?{}:j;P.response.headers.has("X-Remix-Revalidate")&&(A=!0);let J=P.response.headers.get("Location");te(J,"Expected a Location header on the redirect Response"),J=gp(J,new URL(N.url),s);let V=Bi(S.location,J,{_isRedirect:!0});if(n){let me=!1;if(P.response.headers.has("X-Remix-Reload-Document"))me=!0;else if(td.test(J)){const ue=e.history.createURL(J);me=ue.origin!==t.location.origin||Or(ue.pathname,s)==null}if(me){G?t.location.replace(J):t.location.assign(J);return}}k=null;let ee=G===!0||P.response.headers.has("X-Remix-Replace")?$e.Replace:$e.Push,{formMethod:Q,formAction:X,formEncType:he}=S.navigation;!L&&!K&&Q&&X&&he&&(L=Rp(S.navigation));let fe=L||K;if(Q3.has(P.response.status)&&fe&&Vt(fe.formMethod))await dn(ee,V,{submission:Ne({},fe,{formAction:J}),preventScrollReset:R});else{let me=Xs(V,L);await dn(ee,V,{overrideNavigation:me,fetcherSubmission:K,preventScrollReset:R})}}async function Ko(N,P,j,L){try{let K=await oC(c,N,P,j,L,i,o);return await Promise.all(K.map((G,J)=>{if(fC(G)){let V=G.result;return{type:pe.redirect,response:lC(V,P,j[J].route.id,L,s,u.v7_relativeSplatPath)}}return aC(G)}))}catch(K){return j.map(()=>({type:pe.error,error:K}))}}async function Wd(N,P,j,L,K){let[G,...J]=await Promise.all([j.length?Ko("loader",K,j,P):[],...L.map(V=>{if(V.matches&&V.match&&V.controller){let ee=Wr(e.history,V.path,V.controller.signal);return Ko("loader",ee,[V.match],V.matches).then(Q=>Q[0])}else return Promise.resolve({type:pe.error,error:lt(404,{pathname:V.path})})})]);return await Promise.all([Tp(N,j,G,G.map(()=>K.signal),!1,S.loaderData),Tp(N,L.map(V=>V.match),J,L.map(V=>V.controller?V.controller.signal:null),!0)]),{loaderResults:G,fetcherResults:J}}function xs(){A=!0,W.push(...Es()),le.forEach((N,P)=>{$.has(P)&&(U.add(P),Ln(P))})}function Mn(N,P,j){j===void 0&&(j={}),S.fetchers.set(N,P),we({fetchers:new Map(S.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function hn(N,P,j,L){L===void 0&&(L={});let K=uo(S.matches,P);na(N),we({errors:{[K.route.id]:j},fetchers:new Map(S.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Kd(N){return u.v7_fetcherPersist&&(Fe.set(N,(Fe.get(N)||0)+1),Ee.has(N)&&Ee.delete(N)),S.fetchers.get(N)||Z3}function na(N){let P=S.fetchers.get(N);$.has(N)&&!(P&&P.state==="loading"&&B.has(N))&&Ln(N),le.delete(N),B.delete(N),Z.delete(N),Ee.delete(N),U.delete(N),S.fetchers.delete(N)}function Hw(N){if(u.v7_fetcherPersist){let P=(Fe.get(N)||0)-1;P<=0?(Fe.delete(N),Ee.add(N)):Fe.set(N,P)}else na(N);we({fetchers:new Map(S.fetchers)})}function Ln(N){let P=$.get(N);te(P,"Expected fetch controller: "+N),P.abort(),$.delete(N)}function Yd(N){for(let P of N){let j=Kd(P),L=Dn(j.data);S.fetchers.set(P,L)}}function Gd(){let N=[],P=!1;for(let j of Z){let L=S.fetchers.get(j);te(L,"Expected fetcher: "+j),L.state==="loading"&&(Z.delete(j),N.push(j),P=!0)}return Yd(N),P}function Qd(N){let P=[];for(let[j,L]of B)if(L0}function Uw(N,P){let j=S.blockers.get(N)||ni;return Ue.get(N)!==P&&Ue.set(N,P),j}function Zd(N){S.blockers.delete(N),Ue.delete(N)}function ra(N,P){let j=S.blockers.get(N)||ni;te(j.state==="unblocked"&&P.state==="blocked"||j.state==="blocked"&&P.state==="blocked"||j.state==="blocked"&&P.state==="proceeding"||j.state==="blocked"&&P.state==="unblocked"||j.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+j.state+" -> "+P.state);let L=new Map(S.blockers);L.set(N,P),we({blockers:L})}function Xd(N){let{currentLocation:P,nextLocation:j,historyAction:L}=N;if(Ue.size===0)return;Ue.size>1&&ko(!1,"A router only supports one blocker at a time");let K=Array.from(Ue.entries()),[G,J]=K[K.length-1],V=S.blockers.get(G);if(!(V&&V.state==="proceeding")&&J({currentLocation:P,nextLocation:j,historyAction:L}))return G}function Cs(N){let P=lt(404,{pathname:N}),j=l||a,{matches:L,route:K}=Ep(j);return Es(),{notFoundMatches:L,route:K,error:P}}function oa(N,P){return{boundaryId:uo(P.partialMatches).route.id,error:lt(400,{type:"route-discovery",pathname:N,message:P.error!=null&&"message"in P.error?P.error:String(P.error)})}}function Es(N){let P=[];return He.forEach((j,L)=>{(!N||N(L))&&(j.cancel(),P.push(L),He.delete(L))}),P}function Vw(N,P,j){if(w=N,C=P,v=j||null,!y&&S.navigation===Zs){y=!0;let L=qd(S.location,S.matches);L!=null&&we({restoreScrollPosition:L})}return()=>{w=null,C=null,v=null}}function Jd(N,P){return v&&v(N,P.map(L=>e0(L,S.loaderData)))||N.key}function Ww(N,P){if(w&&C){let j=Jd(N,P);w[j]=C()}}function qd(N,P){if(w){let j=Jd(N,P),L=w[j];if(typeof L=="number")return L}return null}function ia(N,P,j){if(f)if(N){let L=N[N.length-1].route;if(L.path&&(L.path==="*"||L.path.endsWith("/*")))return{active:!0,matches:Ja(P,j,s,!0)}}else return{active:!0,matches:Ja(P,j,s,!0)||[]};return{active:!1,matches:null}}async function aa(N,P,j){let L=N,K=L.length>0?L[L.length-1].route:null;for(;;){let G=l==null,J=l||a;try{await nC(f,P,L,J,i,o,tt,j)}catch(X){return{type:"error",error:X,partialMatches:L}}finally{G&&(a=[...a])}if(j.aborted)return{type:"aborted"};let V=Un(J,P,s),ee=!1;if(V){let X=V[V.length-1].route;if(X.index)return{type:"success",matches:V};if(X.path&&X.path.length>0)if(X.path==="*")ee=!0;else return{type:"success",matches:V}}let Q=Ja(J,P,s,!0);if(!Q||L.map(X=>X.route.id).join("-")===Q.map(X=>X.route.id).join("-"))return{type:"success",matches:ee?V:null};if(L=Q,K=L[L.length-1].route,K.path==="*")return{type:"success",matches:L}}}function Kw(N){i={},l=Hi(N,o,void 0,i)}function Yw(N,P){let j=l==null;s0(N,P,l||a,i,o),j&&(a=[...a],we({}))}return _={get basename(){return s},get future(){return u},get state(){return S},get routes(){return a},get window(){return t},initialize:Me,subscribe:bt,enableScrollRestoration:Vw,navigate:Vo,fetch:zw,revalidate:gs,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Kd,deleteFetcher:Hw,dispose:Pt,getBlocker:Uw,deleteBlocker:Zd,patchRoutes:Yw,_internalFetchControllers:$,_internalActiveDeferreds:He,_internalSetRoutes:Kw},_}function q3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gc(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=ed(o||".",qf(s,i),Or(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&&!nd(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:Cn([n,f.pathname])),br(f)}function hp(e,t,n,r){if(!r||!q3(r))return{path:n};if(r.formMethod&&!hC(r.formMethod))return{path:n,error:lt(405,{method:r.formMethod})};let o=()=>({path:n,error:lt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=u0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Vt(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((p,w)=>{let[v,C]=w;return""+p+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(!Vt(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()}}}te(typeof FormData=="function","FormData is not available in this environment");let s,c;if(r.formData)s=yc(r.formData),c=r.formData;else if(r.body instanceof FormData)s=yc(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=yp(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=yp(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(Vt(f.formMethod))return{path:n,submission:f};let u=cr(n);return t&&u.search&&nd(u.search)&&s.append("index",""),u.search="?"+s,{path:br(u),submission:f}}function eC(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 pp(e,t,n,r,o,i,a,l,s,c,f,u,d,p,w,v){let C=v?Ct(v[1])?v[1].error:v[1].data:void 0,y=e.createURL(t.location),g=e.createURL(o),x=v&&Ct(v[1])?v[0]:void 0,E=x?eC(n,x):n,_=v?v[1].statusCode:void 0,S=a&&_&&_>=400,T=E.filter((k,b)=>{let{route:O}=k;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return typeof O.loader!="function"||O.loader.hydrate?!0:t.loaderData[O.id]===void 0&&(!t.errors||t.errors[O.id]===void 0);if(tC(t.loaderData,t.matches[b],k)||s.some(A=>A===k.route.id))return!0;let z=t.matches[b],H=k;return vp(k,Ne({currentUrl:y,currentParams:z.params,nextUrl:g,nextParams:H.params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:S?!1:l||y.pathname+y.search===g.pathname+g.search||y.search!==g.search||l0(z,H)}))}),R=[];return u.forEach((k,b)=>{if(i||!n.some(W=>W.route.id===k.routeId)||f.has(b))return;let O=Un(p,k.path,w);if(!O){R.push({key:b,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let z=t.fetchers.get(b),H=hi(O,k.path),A=!1;d.has(b)?A=!1:c.has(b)?(c.delete(b),A=!0):z&&z.state!=="idle"&&z.data===void 0?A=l:A=vp(H,Ne({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:S?!1:l})),A&&R.push({key:b,routeId:k.routeId,path:k.path,matches:O,match:H,controller:new AbortController})}),[T,R]}function tC(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function l0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function vp(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function nC(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||s0(f,u,r,o,i)}}),a.set(s,c)),c&&cC(c)&&await c}finally{a.delete(s)}}function s0(e,t,n,r,o){if(e){var i;let a=r[e];te(a,"No route found to patch children into: routeId = "+e);let l=Hi(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=Hi(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function mp(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";ko(!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&&!N3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Ne({},t(o),{lazy:void 0}))}function rC(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function oC(e,t,n,r,o,i,a,l){let s=r.reduce((u,d)=>u.add(d.route.id),new Set),c=new Set,f=await e({matches:o.map(u=>{let d=s.has(u.route.id);return Ne({},u,{shouldLoad:d,resolve:w=>(c.add(u.route.id),d?iC(t,n,u,i,a,w,l):Promise.resolve({type:pe.data,result:void 0}))})}),request:n,params:o[0].params,context:l});return o.forEach(u=>te(c.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((u,d)=>s.has(o[d].route.id))}async function iC(e,t,n,r,o,i,a){let l,s,c=f=>{let u,d=new Promise((v,C)=>u=C);s=()=>u(),t.signal.addEventListener("abort",s);let p=v=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):f({request:t,params:n.params,context:a},...v!==void 0?[v]:[]),w;return i?w=i(v=>p(v)):w=(async()=>{try{return{type:"data",result:await p()}}catch(v){return{type:"error",result:v}}})(),Promise.race([w,d])};try{let f=n.route[e];if(n.route.lazy)if(f){let u,[d]=await Promise.all([c(f).catch(p=>{u=p}),mp(n.route,o,r)]);if(u!==void 0)throw u;l=d}else if(await mp(n.route,o,r),f=n.route[e],f)l=await c(f);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw lt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:pe.data,result:void 0};else if(f)l=await c(f);else{let u=new URL(t.url),d=u.pathname+u.search;throw lt(404,{pathname:d})}te(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:pe.error,result:f}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function aC(e){let{result:t,type:n}=e;if(c0(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:pe.error,error:f}}return n===pe.error?{type:pe.error,error:new Pl(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:pe.data,data:c,statusCode:t.status,headers:t.headers}}if(n===pe.error){if(_p(t)){var r;if(t.data instanceof Error){var o;return{type:pe.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Pl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:pe.error,error:t,statusCode:os(t)?t.status:void 0}}if(dC(t)){var i,a;return{type:pe.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(_p(t)){var l,s;return{type:pe.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:pe.data,data:t}}function lC(e,t,n,r,o,i){let a=e.headers.get("Location");if(te(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!td.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=gc(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function gp(e,t,n){if(td.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Or(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Wr(e,t,n,r){let o=e.createURL(u0(t)).toString(),i={signal:n};if(r&&Vt(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=yc(r.formData):i.body=r.formData}return new Request(o,i)}function yc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function yp(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function sC(e,t,n,r,o,i){let a={},l=null,s,c=!1,f={},u=r&&Ct(r[1])?r[1].error:void 0;return n.forEach((d,p)=>{let w=t[p].route.id;if(te(!Cr(d),"Cannot handle redirect results in processLoaderData"),Ct(d)){let v=d.error;u!==void 0&&(v=u,u=void 0),l=l||{};{let C=uo(e,w);l[C.route.id]==null&&(l[C.route.id]=v)}a[w]=void 0,c||(c=!0,s=os(d.error)?d.error.status:500),d.headers&&(f[w]=d.headers)}else xr(d)?(o.set(w,d.deferredData),a[w]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(f[w]=d.headers)):(a[w]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(f[w]=d.headers))}),u!==void 0&&r&&(l={[r[0]]:u},a[r[0]]=void 0),{loaderData:a,errors:l,statusCode:s||200,loaderHeaders:f}}function wp(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=sC(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ep(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 lt(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_patchRoutesOnMiss()` '+(`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 Pl(e||500,l,new Error(s),!0)}function Sp(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Cr(n))return{result:n,idx:t}}}function u0(e){let t=typeof e=="string"?cr(e):e;return br(Ne({},t,{hash:""}))}function uC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function cC(e){return typeof e=="object"&&e!=null&&"then"in e}function fC(e){return c0(e.result)&&G3.has(e.result.status)}function xr(e){return e.type===pe.deferred}function Ct(e){return e.type===pe.error}function Cr(e){return(e&&e.type)===pe.redirect}function _p(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function dC(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 c0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function hC(e){return Y3.has(e.toLowerCase())}function Vt(e){return W3.has(e.toLowerCase())}async function Tp(e,t,n,r,o,i){for(let a=0;au.route.id===s.route.id),f=c!=null&&!l0(c,s)&&(i&&i[s.route.id])!==void 0;if(xr(l)&&(o||f)){let u=r[a];te(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await f0(l,u,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function f0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:pe.data,data:e.deferredData.unwrappedData}}catch(o){return{type:pe.error,error:o}}return{type:pe.data,data:e.deferredData.data}}}function nd(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function hi(e,t){let n=typeof t=="string"?cr(t).search:t.search;if(e[e.length-1].route.index&&nd(n||""))return e[e.length-1];let r=o0(e);return r[r.length-1]}function Rp(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 Xs(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 pC(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 vC(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 Dn(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 mC(e,t){try{let n=e.sessionStorage.getItem(a0);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 gC(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(a0,JSON.stringify(n))}catch(r){ko(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
+ * React Router v6.26.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t
Ui(e,r0(t)),[t,e])}function h0(e){m.useContext(fr).static||m.useLayoutEffect(e)}function id(){let{isDataRoute:e}=m.useContext(Dr);return e?AC():xC()}function xC(){zo()||te(!1);let e=m.useContext(Ji),{basename:t,future:n,navigator:r}=m.useContext(fr),{matches:o}=m.useContext(Dr),{pathname:i}=De(),a=JSON.stringify(qf(o,n.v7_relativeSplatPath)),l=m.useRef(!1);return h0(()=>{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=ed(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Cn([t,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[t,r,a,i,e])}function p0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(fr),{matches:o}=m.useContext(Dr),{pathname:i}=De(),a=JSON.stringify(qf(o,r.v7_relativeSplatPath));return m.useMemo(()=>ed(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function CC(e,t,n,r){zo()||te(!1);let{navigator:o}=m.useContext(fr),{matches:i}=m.useContext(Dr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=De(),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 p=Un(e,{pathname:d});return RC(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Cn([s,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Cn([s,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function EC(){let e=jC(),t=os(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 SC=m.createElement(EC,null);class _C 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(Dr.Provider,{value:this.props.routeContext},m.createElement(d0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function TC(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(Dr.Provider,{value:t},r)}function RC(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||te(!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 p,w=!1,v=null,C=null;n&&(p=l&&u.route.id?l[u.route.id]:void 0,v=u.route.errorElement||SC,s&&(c<0&&d===0?(w=!0,C=null):c===d&&(w=!0,C=u.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,d+1)),g=()=>{let x;return p?x=v:w?x=C:u.route.Component?x=m.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=f,m.createElement(TC,{match:u,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:x})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?m.createElement(_C,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var v0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(v0||{}),Po=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}(Po||{});function NC(e){let t=m.useContext(Ji);return t||te(!1),t}function ad(e){let t=m.useContext(rd);return t||te(!1),t}function kC(e){let t=m.useContext(Dr);return t||te(!1),t}function m0(e){let t=kC(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function PC(){return ad(Po.UseNavigation).navigation}function bC(){let{matches:e,loaderData:t}=ad(Po.UseMatches);return m.useMemo(()=>e.map(n=>e0(n,t)),[e,t])}function jC(){var e;let t=m.useContext(d0),n=ad(Po.UseRouteError),r=m0(Po.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function AC(){let{router:e}=NC(v0.UseNavigateStable),t=m0(Po.UseNavigateStable),n=m.useRef(!1);return h0(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,bl({fromRouteId:t},i)))},[e,t])}function MC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=$e.Pop,navigator:i,static:a=!1,future:l}=e;zo()&&te(!1);let s=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:s,navigator:i,static:a,future:bl({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=cr(r));let{pathname:f="/",search:u="",hash:d="",state:p=null,key:w="default"}=r,v=m.useMemo(()=>{let C=Or(f,s);return C==null?null:{location:{pathname:C,search:u,hash:d,state:p,key:w},navigationType:o}},[s,f,u,d,p,w,o]);return v==null?null:m.createElement(fr.Provider,{value:c},m.createElement(od.Provider,{children:n,value:v}))}new Promise(()=>{});function LC(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.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t
=0)&&(n[o]=e[o]);return n}function OC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function DC(e,t){return e.button===0&&(!t||t==="_self")&&!OC(e)}const FC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zC="6";try{window.__reactRouterVersion=zC}catch{}function $C(e,t){return J3({basename:t==null?void 0:t.basename,future:bo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:_3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||BC(),routes:e,mapRouteProperties:LC,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:t==null?void 0:t.unstable_patchRoutesOnMiss,window:t==null?void 0:t.window}).initialize()}function BC(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bo({},t,{errors:HC(t.errors)})),t}function HC(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 Pl(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 UC=m.createContext({isTransitioning:!1}),VC=m.createContext(new Map),WC="startTransition",Np=lf[WC],KC="flushSync",kp=S3[KC];function YC(e){Np?Np(e):e()}function oi(e){kp?kp(e):e()}class GC{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 QC(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,p]=m.useState(),[w,v]=m.useState(),C=m.useRef(new Map),{v7_startTransition:y}=r||{},g=m.useCallback(R=>{y?YC(R):R()},[y]),x=m.useCallback((R,k)=>{let{deletedFetchers:b,unstable_flushSync:O,unstable_viewTransitionOpts:z}=k;b.forEach(A=>C.current.delete(A)),R.fetchers.forEach((A,W)=>{A.data!==void 0&&C.current.set(W,A.data)});let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!z||H){O?oi(()=>i(R)):g(()=>i(R));return}if(O){oi(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let A=n.window.document.startViewTransition(()=>{oi(()=>i(R))});A.finished.finally(()=>{oi(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),oi(()=>p(A));return}d?(f&&f.resolve(),d.skipTransition(),v({state:R,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(R),c({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,d,f,C,g]);m.useLayoutEffect(()=>n.subscribe(x),[n,x]),m.useEffect(()=>{s.isTransitioning&&!s.flushSync&&u(new GC)},[s]),m.useEffect(()=>{if(f&&a&&n.window){let R=a,k=f.promise,b=n.window.document.startViewTransition(async()=>{g(()=>i(R)),await k});b.finished.finally(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(b)}},[g,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&&w&&(l(w.state),c({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),v(void 0))},[s.isTransitioning,w]),m.useEffect(()=>{},[]);let E=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,k,b)=>n.navigate(R,{state:k,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(R,k,b)=>n.navigate(R,{replace:!0,state:k,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),_=n.basename||"/",S=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:S},m.createElement(rd.Provider,{value:o},m.createElement(VC.Provider,{value:C.current},m.createElement(UC.Provider,{value:s},m.createElement(MC,{basename:_,location:o.location,navigationType:o.historyAction,navigator:E,future:T},o.initialized||n.future.v7_partialHydration?m.createElement(ZC,{routes:n.routes,future:n.future,state:o}):t))))),null)}const ZC=m.memo(XC);function XC(e){let{routes:t,future:n,state:r}=e;return CC(t,void 0,r,n)}const JC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,is=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=IC(t,FC),{basename:p}=m.useContext(fr),w,v=!1;if(typeof c=="string"&&qC.test(c)&&(w=c,JC))try{let x=new URL(window.location.href),E=c.startsWith("//")?new URL(x.protocol+c):new URL(c),_=Or(E.pathname,p);E.origin===x.origin&&_!=null?c=_+E.search+E.hash:v=!0}catch{}let C=yC(c,{relative:o}),y=r5(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});function g(x){r&&r(x),x.defaultPrevented||y(x)}return m.createElement("a",bo({},d,{href:w||C,onClick:v||i?r:g,ref:n,target:s}))});function e5(e){let{getKey:t,storageKey:n}=e;return o5({getKey:t,storageKey:n}),null}var wc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wc||(wc={}));var xc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xc||(xc={}));function t5(e){let t=m.useContext(Ji);return t||te(!1),t}function n5(e){let t=m.useContext(rd);return t||te(!1),t}function r5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=id(),c=De(),f=p0(e,{relative:a});return m.useCallback(u=>{if(DC(u,n)){u.preventDefault();let d=r!==void 0?r:br(c)===br(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 Pp="react-router-scroll-positions";let Na={};function o5(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=t5(wc.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=n5(xc.UseScrollRestoration),{basename:a}=m.useContext(fr),l=De(),s=bC(),c=PC();m.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),i5(m.useCallback(()=>{if(c.state==="idle"){let f=(t?t(l,s):null)||l.key;Na[f]=window.scrollY}try{sessionStorage.setItem(n||Pp,JSON.stringify(Na))}catch{}window.history.scrollRestoration="auto"},[n,t,c.state,l,s])),typeof document<"u"&&(m.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Pp);f&&(Na=JSON.parse(f))}catch{}},[n]),m.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(bo({},d,{pathname:Or(d.pathname,a)||d.pathname}),p):t,u=r==null?void 0:r.enableScrollRestoration(Na,()=>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 i5(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 a5="modulepreload",l5=function(e){return"/"+e},bp={},pr=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=l5(l),l in bp)return;bp[l]=!0;const s=l.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":a5,s||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),s)return new Promise((u,d)=>{f.addEventListener("load",u),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};function Cc(e){return Array.isArray(e)?e.map(Cc):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=Cc(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const g0=Cc({blogDir:"./pages/blog",ogImageUrl:"https://vocs.dev/api/og?logo=%logo&title=%title&description=%description",rootDir:"docs",title:"Can Vardar",titleTemplate:"Can Vardar - %s",baseUrl:"https://icanvardar.com",topNav:[{text:"About",link:"/",id:24,items:[]},{text:"Blog",link:"/blog",id:25,items:[]}],socials:[{icon:"github",link:"https://github.com/icanvardar",label:"GitHub",type:"github"},{icon:"x",link:"https://x.com/icanvardar",label:"X (Twitter)",type:"x"}],theme:{accentColor:{backgroundAccent:{dark:"lightgreen",light:"green"},backgroundAccentHover:{dark:"#83e184",light:"#007400"},backgroundAccentText:{dark:"black",light:"white"},borderAccent:{dark:"#aaffa8",light:"#007400"},textAccent:{dark:"lightgreen",light:"green"},textAccentHover:{dark:"#77d478",light:"#006900"}}},basePath:"",font:{},markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},vite:{}}),y0=m.createContext(g0);function w0(){return typeof window<"u",g0}function s5({children:e,config:t}){const[n,r]=m.useState(()=>t||w0());return m.useEffect(()=>{},[]),m.useEffect(()=>{typeof window<"u"},[n]),h.jsx(y0.Provider,{value:n,children:e})}function Qe(){return m.useContext(y0)}const ld=[{lazy:()=>pr(()=>import("./index-E_mIcqA9.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1731696651e3},{lazy:()=>pr(()=>import("./index-BEmRxR8C.js"),[]),path:"/blog",type:"mdx",filePath:"blog/index.mdx",lastUpdatedAt:1731696651e3},{lazy:()=>pr(()=>import("./index-BEmRxR8C.js"),[]),path:"/blog.html",type:"mdx",filePath:"blog/index.mdx",lastUpdatedAt:1731696651e3},{lazy:()=>pr(()=>import("./my-first-post-BTI09ngJ.js"),[]),path:"/blog/my-first-post",type:"mdx",filePath:"blog/my-first-post.mdx",lastUpdatedAt:1731696651e3},{lazy:()=>pr(()=>import("./my-first-post-BTI09ngJ.js"),[]),path:"/blog/my-first-post.html",type:"mdx",filePath:"blog/my-first-post.mdx",lastUpdatedAt:1731696651e3},{lazy:()=>pr(()=>import("./overcoming-distractions-BFr3E_P-.js"),[]),path:"/blog/overcoming-distractions",type:"mdx",filePath:"blog/overcoming-distractions.mdx",lastUpdatedAt:1731696651e3},{lazy:()=>pr(()=>import("./overcoming-distractions-BFr3E_P-.js"),[]),path:"/blog/overcoming-distractions.html",type:"mdx",filePath:"blog/overcoming-distractions.mdx",lastUpdatedAt:1731696651e3}];var Js={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},jp={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'},Ap={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},Mp={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)"},qs={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 x0(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 c5="var(--vocs_ExternalLink_iconUrl)",f5="vocs_ExternalLink";const d5=m.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Qe(),l=a;return h.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:f5),href:r,target:"_blank",rel:"noopener noreferrer",style:Xt({[c5]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Lp="vocs_Link_accent_underlined",Ip="vocs_Link",Op="vocs_Link_styleless",Ec=new Map,ka=new WeakMap,Dp=0,h5=void 0;function p5(e){return e?(ka.has(e)||(Dp+=1,ka.set(e,Dp.toString())),ka.get(e)):"0"}function v5(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?p5(e.root):e[t]}`).toString()}function m5(e){const t=v5(e);let n=Ec.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},Ec.set(t,n)}return n}function g5(e,t,n={},r=h5){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}=m5(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(),Ec.delete(o))}}function C0({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),p=m.useRef(),[w,v]=m.useState({inView:!!l,entry:void 0});p.current=c,m.useEffect(()=>{if(a||!u)return;let x;return x=g5(u,(E,_)=>{v({inView:E,entry:_}),p.current&&p.current(E,_),_.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,u,o,r,i,a,n,s,t]);const C=(f=w.entry)==null?void 0:f.target,y=m.useRef();!u&&C&&!i&&!a&&y.current!==C&&(y.current=C,v({inView:!!l,entry:void 0}));const g=[d,w.inView,w.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}function y5(...e){return t=>{w5(t,...e)}}function w5(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const nr=m.forwardRef((e,t)=>{const n=()=>{var i;return(i=ld.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=C0();return m.useEffect(()=>{o&&n()},[o,n]),h.jsx(is,{ref:y5(t,r),...e})}),un=m.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=De();if(n!=null&&n.match(/^(www|https?)/))return h.jsx(d5,{...e,ref:t,className:I(e.className,Ip,r==="accent underlined"&&Lp,r==="styleless"&&Op),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return h.jsx(nr,{...e,ref:t,className:I(e.className,Ip,r==="accent underlined"&&Lp,r==="styleless"&&Op),to:l})});var x5="vocs_NotFound_divider",C5="vocs_NotFound",E5="vocs_H1",E0="vocs_Heading",S0="vocs_Heading_slugTarget";function $o({level:e,...t}){const n=`h${e}`;return h.jsxs(n,{...t,id:void 0,className:I(t.className,E0),children:[h.jsx("div",{id:t.id,className:S0}),t.children]})}function _0(e){return h.jsx($o,{...e,className:I(e.className,E5),level:1})}var S5="vocs_Paragraph";function T0(e){return h.jsx("p",{...e,className:I(e.className,S5)})}function _5(){return h.jsxs("div",{className:C5,children:[h.jsx(_0,{children:"Page Not Found"}),h.jsx("div",{style:{height:qs[24]}}),h.jsx("hr",{className:x5}),h.jsx("div",{style:{height:qs[24]}}),h.jsx(T0,{children:"The page you were looking for could not be found."}),h.jsx("div",{style:{height:qs[8]}}),h.jsx(un,{href:"/",children:"Go to Home Page"})]})}var T5="var(--vocs_Banner_bannerBackgroundColor)",R5="var(--vocs_Banner_bannerHeight)",N5="var(--vocs_Banner_bannerTextColor)",k5="vocs_Banner_closeButton",P5="vocs_Banner_content",b5="vocs_Banner_inner",j5="vocs_Banner";const A5=Object.getPrototypeOf(M5).constructor;async function M5(e,t){return new A5(String(e))(t)}function L5(e,t){return new Function(String(e))(t)}function Fr(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 I5=["color"],O5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(e,I5);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"}))}),D5=["color"],F5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(e,D5);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"}))}),z5=["color"],$5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(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.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"}))}),B5=["color"],H5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(e,B5);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"}))}),U5=["color"],V5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(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:"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"}))}),W5=["color"],sd=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(e,W5);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"}))}),K5=["color"],Y5=m.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Fr(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:"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 jl(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>jl(r,o));const n=e.props.children?{...e.props,children:jl(e.props.children)}:e.props;return ce.createElement(e.type,{...n,key:t})}function G5({hide:e}){const{banner:t}=Qe(),n=m.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>jl(r);const{default:o}=L5(r,{...yx,Fragment:m.Fragment});return o},[t]);return n?h.jsx("div",{className:I(j5),style:Xt({[T5]:t==null?void 0:t.backgroundColor,[N5]:t==null?void 0:t.textColor}),children:h.jsxs("div",{className:I(b5),children:[h.jsx("div",{className:I(P5),children:h.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&h.jsx("button",{className:I(k5),onClick:e,type:"button",children:h.jsx($5,{width:14,height:14})})]})}):null}var Q5="vocs_Content";function R0({children:e,className:t}){return h.jsx("article",{className:I(t,Q5),children:e})}function N0({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&&N0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function qi({items:e,pathname:t}){return m.useMemo(()=>N0({items:e,pathname:t}),[e,t])}function zr(){const e=m.useContext(k0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const k0=m.createContext(void 0);function as(){const{pathname:e}=De(),t=Qe(),{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 $r(){const e=as(),{frontmatter:t}=zr(),{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 Z5(){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 X5="vocs_utils_visibleDark",J5="vocs_utils_visibleLight",P0="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 q5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ud(...e){return t=>e.forEach(n=>q5(n,t))}function Oe(...e){return m.useCallback(ud(...e),e)}function e4(e,t){const n=m.createContext(t);function r(i){const{children:a,...l}=i,s=m.useMemo(()=>l,Object.values(l));return h.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 Pn(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:p,...w}=u,v=(d==null?void 0:d[e][s])||l,C=m.useMemo(()=>w,Object.values(w));return h.jsx(v.Provider,{value:C,children:p})}function f(u,d){const p=(d==null?void 0:d[e][s])||l,w=m.useContext(p);if(w)return w;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,t4(o,...t)]}function t4(...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 Jt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},n4=lf.useId||(()=>{}),r4=0;function cn(e){const[t,n]=m.useState(n4());return Jt(()=>{n(r=>r??String(r4++))},[e]),t?`radix-${t}`:""}function it(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 bn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=o4({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=it(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 o4({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=it(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var jo=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(a4);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 h.jsx(Sc,{...r,ref:t,children:m.isValidElement(a)?m.cloneElement(a,void 0,l):null})}return h.jsx(Sc,{...r,ref:t,children:n})});jo.displayName="Slot";var Sc=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=s4(n);return m.cloneElement(n,{...l4(r,n.props),ref:t?ud(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});Sc.displayName="SlotClone";var i4=({children:e})=>h.jsx(h.Fragment,{children:e});function a4(e){return m.isValidElement(e)&&e.type===i4}function l4(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 s4(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 u4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ie=u4.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?jo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _c(e,t){e&&Fo.flushSync(()=>e.dispatchEvent(t))}function c4(e,t=globalThis==null?void 0:globalThis.document){const n=it(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 f4="DismissableLayer",Tc="dismissableLayer.update",d4="dismissableLayer.pointerDownOutside",h4="dismissableLayer.focusOutside",Fp,b0=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ls=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=m.useContext(b0),[f,u]=m.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=m.useState({}),w=Oe(t,T=>u(T)),v=Array.from(c.layers),[C]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(C),g=f?v.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,E=g>=y,_=m4(T=>{const R=T.target,k=[...c.branches].some(b=>b.contains(R));!E||k||(o==null||o(T),a==null||a(T),T.defaultPrevented||l==null||l())},d),S=g4(T=>{const R=T.target;[...c.branches].some(b=>b.contains(R))||(i==null||i(T),a==null||a(T),T.defaultPrevented||l==null||l())},d);return c4(T=>{g===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&&(Fp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),zp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Fp)}},[f,d,n,c]),m.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),zp())},[f,c]),m.useEffect(()=>{const T=()=>p({});return document.addEventListener(Tc,T),()=>document.removeEventListener(Tc,T)},[]),h.jsx(ie.div,{...s,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,S.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,_.onPointerDownCapture)})});ls.displayName=f4;var p4="DismissableLayerBranch",v4=m.forwardRef((e,t)=>{const n=m.useContext(b0),r=m.useRef(null),o=Oe(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(ie.div,{...e,ref:o})});v4.displayName=p4;function m4(e,t=globalThis==null?void 0:globalThis.document){const n=it(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let s=function(){j0(d4,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 g4(e,t=globalThis==null?void 0:globalThis.document){const n=it(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&j0(h4,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 zp(){const e=new CustomEvent(Tc);document.dispatchEvent(e)}function j0(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?_c(o,i):o.dispatchEvent(i)}var eu="focusScope.autoFocusOnMount",tu="focusScope.autoFocusOnUnmount",$p={bubbles:!1,cancelable:!0},y4="FocusScope",cd=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=m.useState(null),c=it(o),f=it(i),u=m.useRef(null),d=Oe(t,v=>s(v)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let v=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?u.current=E:Fn(u.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Fn(u.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&Fn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",C);const g=new MutationObserver(y);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",C),g.disconnect()}}},[r,l,p.paused]),m.useEffect(()=>{if(l){Hp.add(p);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(eu,$p);l.addEventListener(eu,c),l.dispatchEvent(y),y.defaultPrevented||(w4(_4(A0(l)),{select:!0}),document.activeElement===v&&Fn(l))}return()=>{l.removeEventListener(eu,c),setTimeout(()=>{const y=new CustomEvent(tu,$p);l.addEventListener(tu,f),l.dispatchEvent(y),y.defaultPrevented||Fn(v??document.body,{select:!0}),l.removeEventListener(tu,f),Hp.remove(p)},0)}}},[l,c,f,p]);const w=m.useCallback(v=>{if(!n&&!r||p.paused)return;const C=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(C&&y){const g=v.currentTarget,[x,E]=x4(g);x&&E?!v.shiftKey&&y===E?(v.preventDefault(),n&&Fn(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),n&&Fn(E,{select:!0})):y===g&&v.preventDefault()}},[n,r,p.paused]);return h.jsx(ie.div,{tabIndex:-1,...a,ref:d,onKeyDown:w})});cd.displayName=y4;function w4(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Fn(r,{select:t}),document.activeElement!==n)return}function x4(e){const t=A0(e),n=Bp(t,e),r=Bp(t.reverse(),e);return[n,r]}function A0(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 Bp(e,t){for(const n of e)if(!C4(n,{upTo:t}))return n}function C4(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 E4(e){return e instanceof HTMLInputElement&&"select"in e}function Fn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&E4(e)&&t&&e.select()}}var Hp=S4();function S4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Up(e,t),e.unshift(t)},remove(t){var n;e=Up(e,t),(n=e[0])==null||n.resume()}}}function Up(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _4(e){return e.filter(t=>t.tagName!=="A")}var T4="Portal",fd=m.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=m.useState(!1);Jt(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Jf.createPortal(h.jsx(ie.div,{...r,ref:t}),a):null});fd.displayName=T4;function R4(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var zt=e=>{const{present:t,children:n}=e,r=N4(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Oe(r.ref,k4(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};zt.displayName="Presence";function N4(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=R4(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=Pa(r.current);i.current=l==="mounted"?c:"none"},[l]),Jt(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,p=Pa(c);e?s("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Jt(()=>{if(t){const c=u=>{const p=Pa(r.current).includes(u.animationName);u.target===t&&p&&Fo.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=Pa(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 Pa(e){return(e==null?void 0:e.animationName)||"none"}function k4(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 nu=0;function M0(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vp()),document.body.insertAdjacentElement("beforeend",e[1]??Vp()),nu++,()=>{nu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),nu--}},[])}function Vp(){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 W4;var t=K4(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])}},G4=D0(),yo="data-scroll-locked",Q4=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(b4,` {
+ overflow: hidden `).concat(r,`;
+ padding-right: `).concat(l,"px ").concat(r,`;
+ }
+ body[`).concat(yo,`] {
+ overflow: hidden `).concat(r,`;
+ overscroll-behavior: contain;
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
+ padding-left: `.concat(o,`px;
+ padding-top: `).concat(i,`px;
+ padding-right: `).concat(a,`px;
+ margin-left:0;
+ margin-top:0;
+ margin-right: `).concat(l,"px ").concat(r,`;
+ `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
+ }
+
+ .`).concat(qa,` {
+ right: `).concat(l,"px ").concat(r,`;
+ }
+
+ .`).concat(el,` {
+ margin-right: `).concat(l,"px ").concat(r,`;
+ }
+
+ .`).concat(qa," .").concat(qa,` {
+ right: 0 `).concat(r,`;
+ }
+
+ .`).concat(el," .").concat(el,` {
+ margin-right: 0 `).concat(r,`;
+ }
+
+ body[`).concat(yo,`] {
+ `).concat(j4,": ").concat(l,`px;
+ }
+ `)},Kp=function(){var e=parseInt(document.body.getAttribute(yo)||"0",10);return isFinite(e)?e:0},Z4=function(){m.useEffect(function(){return document.body.setAttribute(yo,(Kp()+1).toString()),function(){var e=Kp()-1;e<=0?document.body.removeAttribute(yo):document.body.setAttribute(yo,e.toString())}},[])},X4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Z4();var i=m.useMemo(function(){return Y4(o)},[o]);return m.createElement(G4,{styles:Q4(i,!t,o,n?"":"!important")})},Rc=!1;if(typeof window<"u")try{var ba=Object.defineProperty({},"passive",{get:function(){return Rc=!0,!0}});window.addEventListener("test",ba,ba),window.removeEventListener("test",ba,ba)}catch{Rc=!1}var Kr=Rc?{passive:!1}:!1,J4=function(e){return e.tagName==="TEXTAREA"},F0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!J4(e)&&n[t]==="visible")},q4=function(e){return F0(e,"overflowY")},eE=function(e){return F0(e,"overflowX")},Yp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=z0(e,r);if(o){var i=$0(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},z0=function(e,t){return e==="v"?q4(t):eE(t)},$0=function(e,t){return e==="v"?tE(t):nE(t)},rE=function(e,t){return e==="h"&&t==="rtl"?-1:1},oE=function(e,t,n,r,o){var i=rE(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 p=$0(e,l),w=p[0],v=p[1],C=p[2],y=v-C-i*w;(w||y)&&z0(e,l)&&(u+=y,d+=w),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},ja=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gp=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},iE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aE=function(e){return`
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
+ `)},lE=0,Yr=[];function sE(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(lE++)[0],i=m.useState(D0)[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=P4([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 y=ja(v),g=n.current,x="deltaX"in v?v.deltaX:g[0]-y[0],E="deltaY"in v?v.deltaY:g[1]-y[1],_,S=v.target,T=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in v&&T==="h"&&S.type==="range")return!1;var R=Yp(T,S);if(!R)return!0;if(R?_=T:(_=T==="v"?"h":"v",R=Yp(T,S)),!R)return!1;if(!r.current&&"changedTouches"in v&&(x||E)&&(r.current=_),!_)return!0;var k=r.current||_;return oE(k,C,v,k==="h"?x:E,!0)},[]),s=m.useCallback(function(v){var C=v;if(!(!Yr.length||Yr[Yr.length-1]!==i)){var y="deltaY"in C?Gp(C):ja(C),g=t.current.filter(function(_){return _.name===C.type&&(_.target===C.target||C.target===_.shadowParent)&&iE(_.delta,y)})[0];if(g&&g.should){C.cancelable&&C.preventDefault();return}if(!g){var x=(a.current.shards||[]).map(Qp).filter(Boolean).filter(function(_){return _.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=m.useCallback(function(v,C,y,g){var x={name:v,delta:C,target:y,should:g,shadowParent:uE(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=m.useCallback(function(v){n.current=ja(v),r.current=void 0},[]),u=m.useCallback(function(v){c(v.type,Gp(v),v.target,l(v,e.lockRef.current))},[]),d=m.useCallback(function(v){c(v.type,ja(v),v.target,l(v,e.lockRef.current))},[]);m.useEffect(function(){return Yr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Kr),document.addEventListener("touchmove",s,Kr),document.addEventListener("touchstart",f,Kr),function(){Yr=Yr.filter(function(v){return v!==i}),document.removeEventListener("wheel",s,Kr),document.removeEventListener("touchmove",s,Kr),document.removeEventListener("touchstart",f,Kr)}},[]);var p=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(i,{styles:aE(o)}):null,p?m.createElement(X4,{gapMode:e.gapMode}):null)}function uE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cE=F4(O0,sE);var dd=m.forwardRef(function(e,t){return m.createElement(ss,on({},e,{ref:t,sideCar:cE}))});dd.classNames=ss.classNames;var fE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gr=new WeakMap,Aa=new WeakMap,Ma={},au=0,B0=function(e){return e&&(e.host||B0(e.parentNode))},dE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=B0(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})},hE=function(e,t,n,r){var o=dE(t,Array.isArray(e)?e:[e]);Ma[n]||(Ma[n]=new WeakMap);var i=Ma[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 p=d.getAttribute(r),w=p!==null&&p!=="false",v=(Gr.get(d)||0)+1,C=(i.get(d)||0)+1;Gr.set(d,v),i.set(d,C),a.push(d),v===1&&w&&Aa.set(d,!0),C===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return f(t),l.clear(),au++,function(){a.forEach(function(u){var d=Gr.get(u)-1,p=i.get(u)-1;Gr.set(u,d),i.set(u,p),d||(Aa.has(u)||u.removeAttribute(r),Aa.delete(u)),p||u.removeAttribute(n)}),au--,au||(Gr=new WeakMap,Gr=new WeakMap,Aa=new WeakMap,Ma={})}},H0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=fE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),hE(r,o,n,"aria-hidden")):function(){return null}},hd="Dialog",[U0,SN]=Pn(hd),[pE,qt]=U0(hd),V0=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]=bn({prop:r,defaultProp:o,onChange:i});return h.jsx(pE,{scope:t,triggerRef:l,contentRef:s,contentId:cn(),titleId:cn(),descriptionId:cn(),open:c,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(u=>!u),[f]),modal:a,children:n})};V0.displayName=hd;var W0="DialogTrigger",K0=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(W0,n),i=Oe(t,o.triggerRef);return h.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":md(o.open),...r,ref:i,onClick:oe(e.onClick,o.onOpenToggle)})});K0.displayName=W0;var pd="DialogPortal",[vE,Y0]=U0(pd,{forceMount:void 0}),G0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=qt(pd,t);return h.jsx(vE,{scope:t,forceMount:n,children:m.Children.map(r,a=>h.jsx(zt,{present:n||i.open,children:h.jsx(fd,{asChild:!0,container:o,children:a})}))})};G0.displayName=pd;var Al="DialogOverlay",Q0=m.forwardRef((e,t)=>{const n=Y0(Al,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=qt(Al,e.__scopeDialog);return i.modal?h.jsx(zt,{present:r||i.open,children:h.jsx(mE,{...o,ref:t})}):null});Q0.displayName=Al;var mE=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(Al,n);return h.jsx(dd,{as:jo,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(ie.div,{"data-state":md(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jr="DialogContent",Z0=m.forwardRef((e,t)=>{const n=Y0(jr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=qt(jr,e.__scopeDialog);return h.jsx(zt,{present:r||i.open,children:i.modal?h.jsx(gE,{...o,ref:t}):h.jsx(yE,{...o,ref:t})})});Z0.displayName=jr;var gE=m.forwardRef((e,t)=>{const n=qt(jr,e.__scopeDialog),r=m.useRef(null),o=Oe(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return H0(i)},[]),h.jsx(X0,{...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())})}),yE=m.forwardRef((e,t)=>{const n=qt(jr,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return h.jsx(X0,{...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()}})}),X0=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=qt(jr,n),s=m.useRef(null),c=Oe(t,s);return M0(),h.jsxs(h.Fragment,{children:[h.jsx(cd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(ls,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":md(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(CE,{titleId:l.titleId}),h.jsx(SE,{contentRef:s,descriptionId:l.descriptionId})]})]})}),vd="DialogTitle",J0=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(vd,n);return h.jsx(ie.h2,{id:o.titleId,...r,ref:t})});J0.displayName=vd;var q0="DialogDescription",wE=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(q0,n);return h.jsx(ie.p,{id:o.descriptionId,...r,ref:t})});wE.displayName=q0;var e1="DialogClose",xE=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(e1,n);return h.jsx(ie.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});xE.displayName=e1;function md(e){return e?"open":"closed"}var t1="DialogTitleWarning",[_N,n1]=e4(t1,{contentName:jr,titleName:vd,docsSlug:"dialog"}),CE=({titleId:e})=>{const t=n1(t1),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},EE="DialogDescriptionWarning",SE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n1(EE).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},r1=V0,o1=K0,_E=G0,TE=Q0,RE=Z0,NE=J0,ge=function(){return ge=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 Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var bE="ENTRIES",i1="KEYS",a1="VALUES",Je="",lu=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=Qr(this._path),n=t.node,r=t.keys;if(Qr(r)===Je)return{done:!1,value:this.result()};var o=n.get(Qr(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=Qr(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 Qr(n)}).filter(function(t){return t!==Je}).join("")},e.prototype.value=function(){return Qr(this._path).node.get(Je)},e.prototype.result=function(){switch(this._type){case a1:return this.value();case i1:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Qr=function(e){return e[e.length-1]},jE=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}l1(e.get(p),t,n,r,o,v,a,l+p)}}}catch(H){s={error:H}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},su=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(Ml(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(gd(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!==Je&&d.startsWith(c)){var p=new Map;return p.set(d.slice(c.length),s.get(d)),new e(p,t)}}}catch(w){n={error:w}}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,AE(this._tree,t)},e.prototype.entries=function(){return new lu(this,bE)},e.prototype.forEach=function(t){var n,r;try{for(var o=re(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(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 jE(this._tree,t,n)},e.prototype.get=function(t){var n=Nc(this._tree,t);return n!==void 0?n.get(Je):void 0},e.prototype.has=function(t){var n=Nc(this._tree,t);return n!==void 0&&n.has(Je)},e.prototype.keys=function(){return new lu(this,i1)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=uu(this._tree,t);return r.set(Je,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=uu(this._tree,t);return r.set(Je,n(r.get(Je))),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=uu(this._tree,t),o=r.get(Je);return o===void 0&&r.set(Je,o=n()),o},e.prototype.values=function(){return new lu(this,a1)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=re(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],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}(),Ml=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!==Je&&t.startsWith(l))return n.push([e,l]),Ml(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]),Ml(void 0,"",n)},Nc=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!==Je&&t.startsWith(a))return Nc(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}}},uu=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 su,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=Pc,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 kE(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,p,w,v,C,y,g,x,E,_,S,T,R,k,b,O;return PE(this,function(z){switch(z.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||kc.batchSize,i=t.batchWait||kc.batchWait,a=1,z.label=1;case 1:z.trys.push([1,7,8,9]),l=re(this._index),s=l.next(),z.label=2;case 2:if(s.done)return[3,6];c=Le(s.value,2),f=c[0],u=c[1];try{for(d=(R=void 0,re(u)),p=d.next();!p.done;p=d.next()){w=Le(p.value,2),v=w[0],C=w[1];try{for(y=(b=void 0,re(C)),g=y.next();!g.done;g=y.next())x=Le(g.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?u.delete(v):C.delete(E))}catch(H){b={error:H}}finally{try{g&&!g.done&&(O=y.return)&&O.call(y)}finally{if(b)throw b.error}}}}catch(H){R={error:H}}finally{try{p&&!p.done&&(k=d.return)&&k.call(d)}finally{if(R)throw R.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(H){return setTimeout(H,i)})];case 3:z.sent(),z.label=4;case 4:a+=1,z.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return _=z.sent(),S={error:_},[3,9];case 8:try{s&&!s.done&&(T=l.return)&&T.call(l)}finally{if(S)throw S.error}return[7];case 9:this._dirtCount-=r,z.label=10;case 10:return[4,null];case 11:return z.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||du.minDirtCount,r=r||du.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=Le(s.value,2),f=c[0],u=c[1],d=u.score,p=u.terms,w=u.match,v=p.length||1,C={id:this._documentIds.get(f),score:d*v,terms:Object.keys(w),queryTerms:p,match:w};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(y){r={error:y}}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(Jp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=ge(ge({},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,p=d.join(" "),w=l.get(p);w!=null?(w.score+=u,w.count+=1):l.set(p,{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),y=C.next();!y.done;y=C.next()){var g=Le(y.value,2),w=g[0],x=g[1],u=x.score,d=x.terms,E=x.count;v.push({suggestion:w,terms:d,score:u/E})}}catch(_){i={error:_}}finally{try{y&&!y.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return v.sort(Jp),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(fu.hasOwnProperty(t))return cu(fu,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,p=t.fieldIds,w=t.fieldLength,v=t.averageFieldLength,C=t.storedFields,y=t.dirtCount,g=t.serializationVersion;if(g!==1&&g!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=u,x._documentIds=La(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=La(w),x._avgFieldLength=v,x._storedFields=La(C),x._dirtCount=y||0,x._index=new su;try{for(var E=re(x._documentIds),_=E.next();!_.done;_=E.next()){var S=Le(_.value,2),T=S[0],R=S[1];x._idToShortId.set(R,T)}}catch(D){r={error:D}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=re(c),b=k.next();!b.done;b=k.next()){var O=Le(b.value,2),z=O[0],H=O[1],A=new Map;try{for(var W=(l=void 0,re(Object.keys(H))),U=W.next();!U.done;U=W.next()){var $=U.value,M=H[$];g===1&&(M=M.ds),A.set(parseInt($,10),La(M))}}catch(D){l={error:D}}finally{try{U&&!U.done&&(s=W.return)&&s.call(W)}finally{if(l)throw l.error}}x._index.set(z,A)}}catch(D){i={error:D}}finally{try{b&&!b.done&&(a=k.return)&&a.call(k)}finally{if(i)throw i.error}}return x},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=ge(ge(ge({},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=ge(ge({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,p=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),w=p.map(FE(f)),v=w.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=ge(ge({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function($,M){var D;return ge(ge({},$),(D={},D[M]=cu(l.boost,M)||1,D))},{}),c=l.boostDocument,f=l.weights,u=l.maxFuzzy,d=l.bm25,p=ge(ge({},Zp.weights),f),w=p.fuzzy,v=p.prefix,C=this._index.get(t.term),y=this.termResults(t.term,t.term,1,C,s,c,d),g,x;if(t.prefix&&(g=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;_&&(x=this._index.fuzzyGet(t.term,_))}if(g)try{for(var S=re(g),T=S.next();!T.done;T=S.next()){var R=Le(T.value,2),k=R[0],b=R[1],O=k.length-t.term.length;if(O){x==null||x.delete(k);var z=v*k.length/(k.length+.3*O);this.termResults(t.term,k,z,b,s,c,d,y)}}}catch($){r={error:$}}finally{try{T&&!T.done&&(o=S.return)&&o.call(S)}finally{if(r)throw r.error}}if(x)try{for(var H=re(x.keys()),A=H.next();!A.done;A=H.next()){var k=A.value,W=Le(x.get(k),2),U=W[0],O=W[1];if(O){var z=w*k.length/(k.length+O);this.termResults(t.term,k,z,U,s,c,d,y)}}}catch($){i={error:$}}finally{try{A&&!A.done&&(a=H.return)&&a.call(H)}finally{if(i)throw i.error}}return y},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=ge(ge({},this._options.searchOptions),t);try{for(var a=re(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),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=yd),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(IE[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=re(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),c=s[0],f=s[1],u={};try{for(var d=(r=void 0,re(f)),p=d.next();!p.done;p=d.next()){var w=Le(p.value,2),v=w[0],C=w[1];u[v]=Object.fromEntries(C)}}catch(y){r={error:y}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([c,u])}}catch(y){t={error:y}}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,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var w=re(Object.keys(i)),v=w.next();!v.done;v=w.next()){var C=v.value,y=i[C],g=this._fieldIds[C],x=o.get(g);if(x!=null){var E=x.size,_=this._avgFieldLength[g];try{for(var S=(u=void 0,re(x.keys())),T=S.next();!T.done;T=S.next()){var R=T.value;if(!this._documentIds.has(R)){this.removeTerm(g,R,n),E-=1;continue}var k=a?a(this._documentIds.get(R),n,this._storedFields.get(R)):1;if(k){var b=x.get(R),O=this._fieldLength.get(R)[g],z=DE(b,E,this._documentCount,O,_,l),H=r*y*k*z,A=s.get(R);if(A){A.score+=H,$E(A.terms,t);var W=cu(A.match,n);W?W.push(C):A.match[n]=[C]}else s.set(R,{score:H,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(U){u={error:U}}finally{try{T&&!T.done&&(d=S.return)&&d.call(S)}finally{if(u)throw u.error}}}}}catch(U){c={error:U}}finally{try{v&&!v.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,qp),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,qp),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-a8fbf53d.json")).json());let hu;function f1(){const[e,t]=m.useState();return m.useEffect(()=>{(async()=>{hu||(hu=HE());const n=await hu,r=LE.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 UE="vocs_DesktopSearch_search",VE="vocs_DesktopSearch_searchCommand",WE="Label",d1=m.forwardRef((e,t)=>h.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())}}));d1.displayName=WE;var KE=d1,h1={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()})(Qw,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;d
1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=p}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(p){var w=d.filter(function(v){return v.contains(p)}).length>0;d.indexOf(p)===-1&&!w&&d.push(p)}),d}},{key:"getIframeContents",value:function(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},w=void 0;try{var v=u.contentWindow;if(w=v.document,!v||!w)throw new Error("iframe inaccessible")}catch{p()}w&&d(w)}},{key:"isIframeBlank",value:function(u){var d="about:blank",p=u.getAttribute("src").trim(),w=u.contentWindow.location.href;return w===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(u,d,p){var w=this,v=!1,C=null,y=function g(){if(!v){v=!0,clearTimeout(C);try{w.isIframeBlank(u)||(u.removeEventListener("load",g),w.getIframeContents(u,d,p))}catch{p()}}};u.addEventListener("load",y),C=setTimeout(y,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,p){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,p):this.getIframeContents(u,d,p):this.observeIframeLoad(u,d,p)}catch{p()}}},{key:"waitForIframes",value:function(u,d){var p=this,w=0;this.forEachIframe(u,function(){return!0},function(v){w++,p.waitForIframes(v.querySelector("html"),function(){--w||d()})},function(v){v||d()})}},{key:"forEachIframe",value:function(u,d,p){var w=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.querySelectorAll("iframe"),y=C.length,g=0;C=Array.prototype.slice.call(C);var x=function(){--y<=0&&v(g)};y||x(),C.forEach(function(E){c.matches(E,w.exclude)?x():w.onIframeReady(E,function(_){d(E)&&(g++,p(_)),x()},x)})}},{key:"createIterator",value:function(u,d,p){return document.createNodeIterator(u,d,p,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,p){var w=u.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_PRECEDING;if(w&v)if(d!==null){var C=d.compareDocumentPosition(p),y=Node.DOCUMENT_POSITION_FOLLOWING;if(C&y)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(u){var d=u.previousNode(),p=void 0;return d===null?p=u.nextNode():p=u.nextNode()&&u.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(u,d,p,w){var v=!1,C=!1;return w.forEach(function(y,g){y.val===p&&(v=g,C=y.handled)}),this.compareNodeIframe(u,d,p)?(v===!1&&!C?w.push({val:p,handled:!0}):v!==!1&&!C&&(w[v].handled=!0),!0):(v===!1&&w.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(u,d,p,w){var v=this;u.forEach(function(C){C.handled||v.getIframeContents(C.val,function(y){v.createInstanceOnIframe(y).forEachNode(d,p,w)})})}},{key:"iterateThroughNodes",value:function(u,d,p,w,v){for(var C=this,y=this.createIterator(d,u,w),g=[],x=[],E=void 0,_=void 0,S=function(){var R=C.getIteratorNode(y);return _=R.prevNode,E=R.node,E};S();)this.iframes&&this.forEachIframe(d,function(T){return C.checkIframeFilter(E,_,T,g)},function(T){C.createInstanceOnIframe(T).forEachNode(u,function(R){return x.push(R)},w)}),x.push(E);x.forEach(function(T){p(T)}),this.iframes&&this.handleOpenIframes(g,u,p,w),v()}},{key:"forEachNode",value:function(u,d,p){var w=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),y=C.length;y||v(),C.forEach(function(g){var x=function(){w.iterateThroughNodes(u,g,d,p,function(){--y<=0&&v()})};w.iframes?w.waitForIframes(g,x):x()})}}],[{key:"matches",value:function(u,d){var p=typeof d=="string"?[d]:d,w=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(w){var v=!1;return p.every(function(C){return w.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",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[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,p=this.opt.caseSensitive?"":"i",w=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var v in d)if(d.hasOwnProperty(v)){var C=d[v],y=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);y!==""&&g!==""&&(u=u.replace(new RegExp("("+this.escapeStr(y)+"|"+this.escapeStr(g)+")","gm"+p),w+("("+this.processSynomyms(y)+"|")+(this.processSynomyms(g)+")")+w))}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,p,w){var v=w.charAt(p+1);return/[(|)\\]/.test(v)||v===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.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",p=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ŽŻŹ"],w=[];return u.split("").forEach(function(v){p.every(function(C){if(C.indexOf(v)!==-1){if(w.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),w.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",w=this.opt.accuracy,v=typeof w=="string"?w:w.value,C=typeof w=="string"?[]:w.limiters,y="";switch(C.forEach(function(g){y+="|"+d.escapeStr(g)}),v){case"partially":default:return"()("+u+")";case"complementary":return y="\\s"+(y||this.escapeStr(p)),"()([^"+y+"]*"+u+"[^"+y+"]*)";case"exactly":return"(^|\\s"+y+")("+u+")(?=$|\\s"+y+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,p=[];return u.forEach(function(w){d.opt.separateWordSearch?w.split(" ").forEach(function(v){v.trim()&&p.indexOf(v)===-1&&p.push(v)}):w.trim()&&p.indexOf(w)===-1&&p.push(w)}),{keywords:p.sort(function(w,v){return v.length-w.length}),length:p.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 p=[],w=0;return u.sort(function(v,C){return v.start-C.start}).forEach(function(v){var C=d.callNoMatchOnInvalidRanges(v,w),y=C.start,g=C.end,x=C.valid;x&&(v.start=y,v.length=g-y,p.push(v),w=g)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(u,d){var p=void 0,w=void 0,v=!1;return u&&typeof u.start<"u"?(p=parseInt(u.start,10),w=p+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&w-d>0&&w-p>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:p,end:w,valid:v}}},{key:"checkWhitespaceRanges",value:function(u,d,p){var w=void 0,v=!0,C=p.length,y=d-C,g=parseInt(u.start,10)-y;return g=g>C?C:g,w=g+parseInt(u.length,10),w>C&&(w=C,this.log("End range automatically set to the max value of "+C)),g<0||w-g<0||g>C||w>C?(v=!1,this.log("Invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)):p.substring(g,w).replace(/\s+/g,"")===""&&(v=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:g,end:w,valid:v}}},{key:"getTextNodes",value:function(u){var d=this,p="",w=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(v){w.push({start:p.length,end:(p+=v.textContent).length,node:v})},function(v){return d.matchesExclude(v.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){u({value:p,nodes:w})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,p){var w=this.opt.element?this.opt.element:"mark",v=u.splitText(d),C=v.splitText(p-d),y=document.createElement(w);return y.setAttribute("data-markjs","true"),this.opt.className&&y.setAttribute("class",this.opt.className),y.textContent=v.textContent,v.parentNode.replaceChild(y,v),C}},{key:"wrapRangeInMappedTextNode",value:function(u,d,p,w,v){var C=this;u.nodes.every(function(y,g){var x=u.nodes[g+1];if(typeof x>"u"||x.start>d){if(!w(y.node))return!1;var E=d-y.start,_=(p>y.end?y.end:p)-y.start,S=u.value.substr(0,y.start),T=u.value.substr(_+y.start);if(y.node=C.wrapRangeInTextNode(y.node,E,_),u.value=S+T,u.nodes.forEach(function(R,k){k>=g&&(u.nodes[k].start>0&&k!==g&&(u.nodes[k].start-=_),u.nodes[k].end-=_)}),p-=_,v(y.node.previousSibling,y.start),p>y.end)d=y.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,d,p,w,v){var C=this,y=d===0?0:d+1;this.getTextNodes(function(g){g.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=u.exec(x.textContent))!==null&&E[y]!=="";)if(p(E[y],x)){var _=E.index;if(y!==0)for(var S=1;S{const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function bc(e,t){const[n,r]=m.useState();m.useEffect(()=>{const i=ZE(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 ZE(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var XE="vocs_Kbd";function p1(e){return h.jsx("kbd",{...e,className:I(e.className,XE)})}var JE="vocs_KeyboardShortcut_kbdGroup",qE="vocs_KeyboardShortcut";function co(e){const{description:t,keys:n}=e;return h.jsxs("span",{className:qE,children:[t,h.jsx("span",{className:JE,children:n.map(r=>h.jsx(p1,{children:r},r))})]})}var eS="vocs_SearchDialog_content",ev="vocs_SearchDialog_excerpt",tS="vocs_SearchDialog_overlay",nS="vocs_SearchDialog_result",tv="vocs_SearchDialog_resultIcon",rS="vocs_SearchDialog_resultSelected",oS="vocs_SearchDialog_results",iS="vocs_SearchDialog",aS="vocs_SearchDialog_searchBox",lS="vocs_SearchDialog_searchInput",Ia="vocs_SearchDialog_searchInputIcon",sS="vocs_SearchDialog_searchInputIconDesktop",uS="vocs_SearchDialog_searchInputIconMobile",cS="vocs_SearchDialog_searchShortcuts",nv="vocs_SearchDialog_title",fS="vocs_SearchDialog_titleIcon",dS="vocs_SearchDialog_titles";function v1(e){const{search:t}=Qe(),n=id(),r=m.useRef(null),o=m.useRef(null),[i,a]=bc("filterText",""),l=QE(i,200),s=f1(),[c,f]=m.useState(-1),[u,d]=m.useState(!1),[p,w]=bc("showDetailView",!0),v=m.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=v.length,y=v[c],g=m.useCallback(()=>{var S,T,R;if(!o.current)return;const x=new Set;for(const k of v)for(const b in k.match)x.add(b);const E=new GE(o.current);E.unmark({done(){E==null||E.markRegExp(hS(x))}});const _=o.current.querySelectorAll(`.${ev}`);for(const k of _)(S=k.querySelector('mark[data-markjs="true"]'))==null||S.scrollIntoView({block:"center"});(R=(T=o.current)==null?void 0:T.firstElementChild)==null||R.scrollIntoView({block:"start"})},[v]);return m.useEffect(()=>{if(!e.open)return;function x(E){var _;switch(E.key){case"ArrowDown":{E.preventDefault(),f(S=>{var k;let T=S+1;T>=C&&(T=0);const R=(k=o.current)==null?void 0:k.children[T];return R==null||R.scrollIntoView({block:"nearest"}),T}),d(!0);break}case"ArrowUp":{E.preventDefault(),f(S=>{var k;let T=S-1;T<0&&(T=C-1);const R=(k=o.current)==null?void 0:k.children[T];return R==null||R.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"||!y)return;E.preventDefault(),n(y.href),e.onClose();break}}}return window.addEventListener("keydown",x),()=>{window.removeEventListener("keydown",x)}},[n,C,a,y,e.open,e.onClose]),m.useEffect(()=>{l!==""&&o.current&&g()},[g,l]),h.jsxs(_E,{children:[h.jsx(TE,{className:tS}),h.jsxs(RE,{onOpenAutoFocus:x=>{r.current&&(x.preventDefault(),r.current.focus()),g()},onCloseAutoFocus:()=>{f(0)},className:iS,"aria-describedby":void 0,children:[h.jsx(NE,{className:P0,children:"Search"}),h.jsxs("form",{className:aS,children:[h.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:uS,children:h.jsx(O5,{className:Ia,height:20,width:20})}),h.jsx(KE,{htmlFor:"search-input",children:h.jsx(sd,{"aria-label":"Search",className:I(Ia,sS),height:20,width:20})}),h.jsx("input",{ref:r,tabIndex:0,className:lS,id:"search-input",onChange:x=>a(x.target.value),placeholder:"Search",type:"search",value:i}),h.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>w(x=>!x),children:h.jsx(V5,{className:Ia,height:20,width:20})}),h.jsx("button",{"aria-label":"Reset search",type:"button",className:Ia,onClick:()=>{var x;a(""),(x=r.current)==null||x.focus()},children:"⌫"})]}),h.jsxs("ul",{className:oS,role:v.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&v.length===0&&h.jsxs("li",{children:['No results for "',h.jsx("span",{children:l}),'"']}),v.map((x,E)=>{var _;return h.jsx("li",{role:"option",className:I(nS,E===c&&rS),"aria-selected":E===c,"aria-label":[...x.titles.filter(S=>!!S),x.title].join(" > "),children:h.jsxs(is,{to:x.href,onClick:S=>{S.metaKey||e.onClose()},onMouseEnter:()=>!u&&f(E),onFocus:()=>f(E),children:[h.jsxs("div",{className:dS,children:[x.isPage?h.jsx(H5,{className:tv}):h.jsx("span",{className:tv,children:"#"}),x.titles.filter(S=>!!S).map(S=>h.jsxs("span",{className:nv,children:[h.jsx("span",{dangerouslySetInnerHTML:{__html:S}}),h.jsx(F5,{className:fS})]},S)),h.jsx("span",{className:nv,children:h.jsx("span",{dangerouslySetInnerHTML:{__html:x.title}})})]}),p&&((_=x.text)==null?void 0:_.trim())&&h.jsx("div",{className:ev,children:h.jsx(R0,{className:eS,children:h.jsx("div",{dangerouslySetInnerHTML:{__html:x.html}})})})]})},x.id)})]}),h.jsxs("div",{className:cS,children:[h.jsx(co,{description:"Navigate",keys:["↑","↓"]}),h.jsx(co,{description:"Select",keys:["enter"]}),h.jsx(co,{description:"Close",keys:["esc"]}),h.jsx(co,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function hS(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function pS(){f1();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]),h.jsxs(r1,{open:e,onOpenChange:t,children:[h.jsx(o1,{asChild:!0,children:h.jsxs("button",{className:UE,type:"button",children:[h.jsx(sd,{style:{marginTop:2}}),"Search",h.jsx("div",{className:VE,children:h.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),h.jsx(v1,{open:e,onClose:()=>t(!1)})]})}var m1="vocs_DesktopTopNav_button",vS="vocs_DesktopTopNav_content",mS="vocs_DesktopTopNav_curtain",rv="vocs_DesktopTopNav_divider",pu="vocs_DesktopTopNav_group",Oa="vocs_DesktopTopNav_hideCompact",jc="vocs_DesktopTopNav_icon",Ll="vocs_DesktopTopNav_item",gS="vocs_DesktopTopNav_logo",yS="vocs_DesktopTopNav_logoWrapper",wS="vocs_DesktopTopNav",ov="vocs_DesktopTopNav_section",xS="vocs_DesktopTopNav_withLogo",CS="vocs_Icon",Ac="var(--vocs_Icon_size)";function ct({className:e,label:t,icon:n,size:r,style:o}){return h.jsx("div",{"aria-label":t,className:I(CS,e),role:"img",style:{...o,...Xt({[Ac]:r})},children:h.jsx(n,{height:r,width:r})})}var ES="vocs_Logo_logoDark",SS="vocs_Logo_logoLight",vu="vocs_Logo";function _S({className:e}){const{logoUrl:t}=Qe();return t?h.jsx(h.Fragment,{children:typeof t=="string"?h.jsx("img",{alt:"Logo",className:I(e,vu),src:t}):h.jsxs(h.Fragment,{children:[h.jsx("img",{alt:"Logo",className:I(e,vu,ES),src:t.dark}),h.jsx("img",{alt:"Logo",className:I(e,vu,SS),src:t.light})]})}):null}var TS="vocs_NavLogo_logoImage",RS="vocs_NavLogo_title";function wd(){const e=Qe();return e.logoUrl?h.jsx(_S,{className:TS}):h.jsx("div",{className:RS,children:e.title})}var NS=m.createContext(void 0);function us(e){const t=m.useContext(NS);return e||t||"ltr"}function cs(e){const t=e+"CollectionProvider",[n,r]=Pn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:w,children:v}=p,C=ce.useRef(null),y=ce.useRef(new Map).current;return h.jsx(o,{scope:w,itemMap:y,collectionRef:C,children:v})};a.displayName=t;const l=e+"CollectionSlot",s=ce.forwardRef((p,w)=>{const{scope:v,children:C}=p,y=i(l,v),g=Oe(w,y.collectionRef);return h.jsx(jo,{ref:g,children:C})});s.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",u=ce.forwardRef((p,w)=>{const{scope:v,children:C,...y}=p,g=ce.useRef(null),x=Oe(w,g),E=i(c,v);return ce.useEffect(()=>(E.itemMap.set(g,{ref:g,...y}),()=>void E.itemMap.delete(g))),h.jsx(jo,{[f]:"",ref:x,children:C})});u.displayName=c;function d(p){const w=i(e+"CollectionConsumer",p);return ce.useCallback(()=>{const C=w.collectionRef.current;if(!C)return[];const y=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((E,_)=>y.indexOf(E.ref.current)-y.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function kS(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 PS="VisuallyHidden",g1=m.forwardRef((e,t)=>h.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}}));g1.displayName=PS;var bS=g1,Bo="NavigationMenu",[xd,y1,jS]=cs(Bo),[Mc,AS,MS]=cs(Bo),[Cd,TN]=Pn(Bo,[jS,MS]),[LS,$t]=Cd(Bo),[IS,OS]=Cd(Bo),w1=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),p=Oe(t,k=>d(k)),w=us(c),v=m.useRef(0),C=m.useRef(0),y=m.useRef(0),[g,x]=m.useState(!0),[E="",_]=bn({prop:r,onChange:k=>{const b=k!=="",O=l>0;b?(window.clearTimeout(y.current),O&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),l)),o==null||o(k)},defaultProp:i}),S=m.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>_(""),150)},[_]),T=m.useCallback(k=>{window.clearTimeout(C.current),_(k)},[_]),R=m.useCallback(k=>{E===k?window.clearTimeout(C.current):v.current=window.setTimeout(()=>{window.clearTimeout(C.current),_(k)},a)},[E,_,a]);return m.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(C.current),window.clearTimeout(y.current)},[]),h.jsx(C1,{scope:n,isRootMenu:!0,value:E,dir:w,orientation:s,rootNavigationMenu:u,onTriggerEnter:k=>{window.clearTimeout(v.current),g?R(k):T(k)},onTriggerLeave:()=>{window.clearTimeout(v.current),S()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:S,onItemSelect:k=>{_(b=>b===k?"":k)},onItemDismiss:()=>_(""),children:h.jsx(ie.nav,{"aria-label":"Main","data-orientation":s,dir:w,...f,ref:p})})});w1.displayName=Bo;var x1="NavigationMenuSub",DS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...l}=e,s=$t(x1,n),[c="",f]=bn({prop:r,onChange:o,defaultProp:i});return h.jsx(C1,{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:h.jsx(ie.div,{"data-orientation":a,...l,ref:t})})});DS.displayName=x1;var C1=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:p}=e,[w,v]=m.useState(null),[C,y]=m.useState(new Map),[g,x]=m.useState(null);return h.jsx(LS,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:kS(l),baseId:cn(),dir:o,orientation:i,viewport:w,onViewportChange:v,indicatorTrack:g,onIndicatorTrackChange:x,onTriggerEnter:it(f),onTriggerLeave:it(u),onContentEnter:it(d),onContentLeave:it(p),onItemSelect:it(s),onItemDismiss:it(c),onViewportContentChange:m.useCallback((E,_)=>{y(S=>(S.set(E,_),new Map(S)))},[]),onViewportContentRemove:m.useCallback(E=>{y(_=>_.has(E)?(_.delete(E),new Map(_)):_)},[]),children:h.jsx(xd.Provider,{scope:t,children:h.jsx(IS,{scope:t,items:C,children:a})})})},E1="NavigationMenuList",S1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(E1,n),i=h.jsx(ie.ul,{"data-orientation":o.orientation,...r,ref:t});return h.jsx(ie.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:h.jsx(xd.Slot,{scope:n,children:o.isRootMenu?h.jsx(j1,{asChild:!0,children:i}):i})})});S1.displayName=E1;var _1="NavigationMenuItem",[FS,T1]=Cd(_1),R1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=cn(),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((w="start")=>{if(l.current){f.current();const v=Ic(l.current);v.length&&_d(w==="start"?v:v.reverse())}},[]),p=m.useCallback(()=>{if(l.current){const w=Ic(l.current);w.length&&(f.current=YS(w))}},[]);return h.jsx(FS,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p,children:h.jsx(ie.li,{...o,ref:t})})});R1.displayName=_1;var Lc="NavigationMenuTrigger",N1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=$t(Lc,e.__scopeNavigationMenu),a=T1(Lc,e.__scopeNavigationMenu),l=m.useRef(null),s=Oe(l,a.triggerRef,t),c=M1(i.baseId,a.value),f=L1(i.baseId,a.value),u=m.useRef(!1),d=m.useRef(!1),p=a.value===i.value;return h.jsxs(h.Fragment,{children:[h.jsx(xd.ItemSlot,{scope:n,value:a.value,children:h.jsx(A1,{asChild:!0,children:h.jsx(ie.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Td(p),"aria-expanded":p,"aria-controls":f,...o,ref:s,onPointerEnter:oe(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:oe(e.onPointerMove,Il(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:oe(e.onPointerLeave,Il(()=>{r||(i.onTriggerLeave(),u.current=!1)})),onClick:oe(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:oe(e.onKeyDown,w=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&w.key===C&&(a.onEntryKeyDown(),w.preventDefault())})})})}),p&&h.jsxs(h.Fragment,{children:[h.jsx(bS,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:w=>{const v=a.contentRef.current,C=w.relatedTarget,y=C===l.current,g=v==null?void 0:v.contains(C);(y||!g)&&a.onFocusProxyEnter(y?"start":"end")}}),i.viewport&&h.jsx("span",{"aria-owns":f})]})]})});N1.displayName=Lc;var zS="NavigationMenuLink",iv="navigationMenu.linkSelect",k1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.jsx(A1,{asChild:!0,children:h.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(iv,{bubbles:!0,cancelable:!0});if(l.addEventListener(iv,c=>o==null?void 0:o(c),{once:!0}),_c(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(tl,{bubbles:!0,cancelable:!0});_c(l,c)}},{checkForDefaultPrevented:!1})})})});k1.displayName=zS;var Ed="NavigationMenuIndicator",$S=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(Ed,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?Jf.createPortal(h.jsx(zt,{present:n||i,children:h.jsx(BS,{...r,ref:t})}),o.indicatorTrack):null});$S.displayName=Ed;var BS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(Ed,n),i=y1(n),[a,l]=m.useState(null),[s,c]=m.useState(null),f=o.orientation==="horizontal",u=!!o.value;m.useEffect(()=>{var v;const w=(v=i().find(C=>C.value===o.value))==null?void 0:v.ref.current;w&&l(w)},[i,o.value]);const d=()=>{a&&c({size:f?a.offsetWidth:a.offsetHeight,offset:f?a.offsetLeft:a.offsetTop})};return Oc(a,d),Oc(o.indicatorTrack,d),s?h.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}),Ao="NavigationMenuContent",P1=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(Ao,e.__scopeNavigationMenu),i=T1(Ao,e.__scopeNavigationMenu),a=Oe(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?h.jsx(HS,{forceMount:n,...s,ref:a}):h.jsx(zt,{present:n||l,children:h.jsx(b1,{"data-state":Td(l),...s,ref:a,onPointerEnter:oe(e.onPointerEnter,o.onContentEnter),onPointerLeave:oe(e.onPointerLeave,Il(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})})});P1.displayName=Ao;var HS=m.forwardRef((e,t)=>{const n=$t(Ao,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Jt(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Jt(()=>()=>o(e.value),[e.value,o]),null}),tl="navigationMenu.rootContentDismiss",b1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=$t(Ao,n),u=m.useRef(null),d=Oe(u,t),p=M1(f.baseId,r),w=L1(f.baseId,r),v=y1(n),C=m.useRef(null),{onItemDismiss:y}=f;m.useEffect(()=>{const x=u.current;if(f.isRootMenu&&x){const E=()=>{var _;y(),l(),x.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return x.addEventListener(tl,E),()=>x.removeEventListener(tl,E)}},[f.isRootMenu,e.value,o,y,l]);const g=m.useMemo(()=>{const E=v().map(b=>b.value);f.dir==="rtl"&&E.reverse();const _=E.indexOf(f.value),S=E.indexOf(f.previousValue),T=r===f.value,R=S===E.indexOf(r);if(!T&&!R)return C.current;const k=(()=>{if(_!==S){if(T&&S!==-1)return _>S?"from-end":"from-start";if(R&&_!==-1)return _>S?"to-start":"to-end"}return null})();return C.current=k,k},[f.previousValue,f.value,f.dir,v,r]);return h.jsx(j1,{asChild:!0,children:h.jsx(ls,{id:w,"aria-labelledby":p,"data-motion":g,"data-orientation":f.orientation,...c,ref:d,disableOutsidePointerEvents:!1,onDismiss:()=>{var E;const x=new Event(tl,{bubbles:!0,cancelable:!0});(E=u.current)==null||E.dispatchEvent(x)},onFocusOutside:oe(e.onFocusOutside,x=>{var _;s();const E=x.target;(_=f.rootNavigationMenu)!=null&&_.contains(E)&&x.preventDefault()}),onPointerDownOutside:oe(e.onPointerDownOutside,x=>{var T;const E=x.target,_=v().some(R=>{var k;return(k=R.ref.current)==null?void 0:k.contains(E)}),S=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(E));(_||S||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:oe(e.onKeyDown,x=>{var S;const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const T=Ic(x.currentTarget),R=document.activeElement,k=T.findIndex(z=>z===R),O=x.shiftKey?T.slice(0,k).reverse():T.slice(k+1,T.length);_d(O)?x.preventDefault():(S=i.current)==null||S.focus()}}),onEscapeKeyDown:oe(e.onEscapeKeyDown,x=>{a.current=!0})})})}),Sd="NavigationMenuViewport",US=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!$t(Sd,e.__scopeNavigationMenu).value;return h.jsx(zt,{present:n||i,children:h.jsx(VS,{...r,ref:t})})});US.displayName=Sd;var VS=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=$t(Sd,n),a=Oe(t,i.onViewportChange),l=OS(Ao,e.__scopeNavigationMenu),[s,c]=m.useState(null),[f,u]=m.useState(null),d=s?(s==null?void 0:s.width)+"px":void 0,p=s?(s==null?void 0:s.height)+"px":void 0,w=!!i.value,v=w?i.value:i.previousValue;return Oc(f,()=>{f&&c({width:f.offsetWidth,height:f.offsetHeight})}),h.jsx(ie.div,{"data-state":Td(w),"data-orientation":i.orientation,...o,ref:a,style:{pointerEvents:!w&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":d,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:oe(e.onPointerEnter,i.onContentEnter),onPointerLeave:oe(e.onPointerLeave,Il(i.onContentLeave)),children:Array.from(l.items).map(([y,{ref:g,forceMount:x,...E}])=>{const _=v===y;return h.jsx(zt,{present:x||_,children:h.jsx(b1,{...E,ref:ud(g,S=>{_&&S&&u(S)})})},y)})})}),WS="FocusGroup",j1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(WS,n);return h.jsx(Mc.Provider,{scope:n,children:h.jsx(Mc.Slot,{scope:n,children:h.jsx(ie.div,{dir:o.dir,...r,ref:t})})})}),av=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],KS="FocusGroupItem",A1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=AS(n),i=$t(KS,n);return h.jsx(Mc.ItemSlot,{scope:n,children:h.jsx(ie.button,{...r,ref:t,onKeyDown:oe(e.onKeyDown,a=>{if(["Home","End",...av].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),av.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>_d(s)),a.preventDefault()}})})})});function Ic(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 _d(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function YS(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 Oc(e,t){const n=it(t);Jt(()=>{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 Td(e){return e?"open":"closed"}function M1(e,t){return`${e}-trigger-${t}`}function L1(e,t){return`${e}-content-${t}`}function Il(e){return t=>t.pointerType==="mouse"?e(t):void 0}var GS=w1,QS=S1,ZS=R1,XS=N1,JS=k1,qS=P1,e_="var(--vocs_NavigationMenu_chevronDownIcon)",t_="vocs_NavigationMenu_content",n_="vocs_NavigationMenu_item",r_="vocs_NavigationMenu_link",o_="vocs_NavigationMenu_list",i_="vocs_NavigationMenu",a_="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const I1=e=>h.jsx(GS,{...e,className:I(e.className,i_)}),O1=e=>h.jsx(QS,{...e,className:I(e.className,o_)}),fs=({active:e,children:t,className:n,href:r})=>h.jsx(JS,{asChild:!0,children:h.jsx(un,{"data-active":e,className:I(n,r_),href:r,variant:"styleless",children:t})}),D1=e=>h.jsx(ZS,{...e,className:I(e.className,n_)}),F1=({active:e,className:t,...n})=>{const{basePath:r}=Qe(),o=r;return h.jsx(XS,{...n,"data-active":e,className:I(t,a_),style:Xt({[e_]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},z1=e=>h.jsx(qS,{...e,className:I(e.className,t_)});function $1(){return h.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[h.jsx("title",{children:"Discord"}),h.jsx("g",{id:"图层_2","data-name":"图层 2",children:h.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:h.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:h.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 B1(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"GitHub"}),h.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 l_(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Moon"}),h.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"}),h.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 s_(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Sun"}),h.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"}),h.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 H1(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[h.jsx("title",{children:"Telegram"}),h.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 U1(){return h.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Warpcast"}),h.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 V1(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"X"}),h.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"})]})}Dc.Curtain=u_;function Dc(){var r,o,i,a,l,s;const e=Qe(),{showLogo:t,showSidebar:n}=$r();return h.jsxs("div",{className:I(wS,t&&!n&&xS),children:[h.jsx(pS,{}),t&&h.jsx("div",{className:yS,children:h.jsx("div",{className:gS,children:h.jsx(nr,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:h.jsx(wd,{})})})}),h.jsx("div",{className:ov}),h.jsxs("div",{className:ov,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:pu,children:h.jsx(c_,{})}),h.jsx("div",{className:I(rv,(((o=e.topNav)==null?void 0:o.length)||0)>3?Oa:null)})]}),e.socials&&((i=e.socials)==null?void 0:i.length)>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:I(pu,(((a=e.topNav)==null?void 0:a.length)||0)>3?Oa:null),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((c,f)=>h.jsx("div",{className:Ll,children:h.jsx(v_,{...c})},f))}),!((l=e.theme)!=null&&l.colorScheme)&&h.jsx("div",{className:I(rv,Oa)})]}),!((s=e.theme)!=null&&s.colorScheme)&&h.jsx("div",{className:I(pu,Oa),style:{marginLeft:"-8px",marginRight:"-8px"},children:h.jsx("div",{className:Ll,children:h.jsx(d_,{})})})]})]})}function u_(){return h.jsx("div",{className:mS})}function c_(){const{topNav:e}=Qe();if(!e)return null;const{pathname:t}=De(),n=qi({pathname:t,items:e});return h.jsx(I1,{delayDuration:0,children:h.jsx(O1,{children:e.map((r,o)=>r.link?h.jsx(fs,{active:n.includes(r.id),className:Ll,href:r.link,children:r.text},o):r.items?h.jsxs(D1,{className:Ll,children:[h.jsx(F1,{active:n.includes(r.id),children:r.text}),h.jsx(z1,{className:vS,children:h.jsx(f_,{items:r.items})})]},o):null)})})}function f_({items:e}){const{pathname:t}=De(),n=qi({pathname:t,items:e});return h.jsx("ul",{children:e==null?void 0:e.map((r,o)=>h.jsx(fs,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function d_(){const{toggle:e}=Z5();return h.jsxs("button",{className:m1,onClick:e,type:"button",children:[h.jsx(ct,{className:I(jc,X5),size:"20px",label:"Light",icon:s_}),h.jsx(ct,{className:I(jc,J5),size:"20px",label:"Dark",icon:l_,style:{marginTop:"-2px"}})]})}const h_={discord:$1,github:B1,telegram:H1,warpcast:U1,x:V1},p_={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function v_({icon:e,label:t,link:n}){return h.jsx("a",{className:m1,href:n,target:"_blank",rel:"noopener noreferrer",children:h.jsx(ct,{className:jc,label:t,icon:h_[e],size:p_[e]||"20px"})})}function m_(){return h.jsx("div",{children:h.jsxs("div",{children:["Copyright © ",new Date().getFullYear()," Can Vardar. All rights reserved."]})})}const g_=({children:e})=>e;function y_(){const e=zr(),t=Qe();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 W1(){const[e,t]=m.useState(!1);return m.useEffect(()=>{t(!0)},[]),e}var w_="vocs_Footer_container",x_="vocs_Footer_editLink",C_="vocs_Footer_lastUpdated",E_="vocs_Footer_navigation",lv="vocs_Footer_navigationIcon",S_="vocs_Footer_navigationIcon_left",__="vocs_Footer_navigationIcon_right",sv="vocs_Footer_navigationItem",T_="vocs_Footer_navigationItem_left",R_="vocs_Footer_navigationItem_right",uv="vocs_Footer_navigationText",cv="vocs_Footer_navigationTextInner",N_="vocs_Footer";function k_(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Arrow Left"}),h.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 P_(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Arrow Right"}),h.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 b_(){const{layout:e}=$r(),t=W1(),n=zr(),r=m.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=m.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return h.jsxs("footer",{className:N_,children:[e==="docs"&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:w_,children:[h.jsx(j_,{}),t&&n.lastUpdatedAt&&h.jsxs("div",{className:C_,children:["Last updated:"," ",h.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),h.jsx(A_,{})]}),h.jsx(m_,{})]})}function j_(){const e=y_();return e.url?h.jsx("div",{children:h.jsxs(un,{className:x_,href:e.url,children:[h.jsx(Y5,{})," ",e.text]})}):null}function A_(){const e=W1(),t=as(),{pathname:n}=De(),r=m.useMemo(()=>K1(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=id();return m.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){const p=r[s+1],w=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(w!=null&&w.link)&&(l(w.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?h.jsxs("div",{className:E_,children:[i?h.jsxs(un,{className:I(sv,T_),href:i.link,variant:"styleless",children:[h.jsxs("div",{className:uv,children:[h.jsx("div",{className:I(lv,S_),style:Xt({[Ac]:"0.75em"}),children:h.jsx(ct,{label:"Previous",icon:k_})}),h.jsx("div",{className:cv,children:i.text})]}),h.jsx(co,{description:"Previous",keys:["shift","←"]})]}):h.jsx("div",{}),a?h.jsxs(un,{className:I(sv,R_),href:a.link,variant:"styleless",children:[h.jsxs("div",{className:uv,children:[h.jsx("div",{className:cv,style:{textAlign:"right"},children:a.text}),h.jsx("div",{className:I(lv,__),style:Xt({[Ac]:"0.75em"}),children:h.jsx(ct,{label:"Next",icon:P_})})]}),h.jsx(co,{description:"Next",keys:["shift","→"]})]}):h.jsx("div",{})]}):null}function K1(e){const t=[];for(const n of e)n.link&&t.push(n),n.items&&t.push(...K1(n.items));return t}var Rd="Collapsible",[M_,Y1]=Pn(Rd),[L_,Nd]=M_(Rd),G1=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=bn({prop:r,defaultProp:o,onChange:a});return h.jsx(L_,{scope:n,disabled:i,contentId:cn(),open:s,onOpenToggle:m.useCallback(()=>c(f=>!f),[c]),children:h.jsx(ie.div,{"data-state":Pd(s),"data-disabled":i?"":void 0,...l,ref:t})})});G1.displayName=Rd;var Q1="CollapsibleTrigger",Z1=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Nd(Q1,n);return h.jsx(ie.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Pd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:oe(e.onClick,o.onOpenToggle)})});Z1.displayName=Q1;var kd="CollapsibleContent",X1=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nd(kd,e.__scopeCollapsible);return h.jsx(zt,{present:n||o.open,children:({present:i})=>h.jsx(I_,{...r,ref:t,present:i})})});X1.displayName=kd;var I_=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Nd(kd,n),[l,s]=m.useState(r),c=m.useRef(null),f=Oe(t,c),u=m.useRef(0),d=u.current,p=m.useRef(0),w=p.current,v=a.open||l,C=m.useRef(v),y=m.useRef();return m.useEffect(()=>{const g=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(g)},[]),Jt(()=>{const g=c.current;if(g){y.current=y.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();u.current=x.height,p.current=x.width,C.current||(g.style.transitionDuration=y.current.transitionDuration,g.style.animationName=y.current.animationName),s(r)}},[a.open,r]),h.jsx(ie.div,{"data-state":Pd(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":w?`${w}px`:void 0,...e.style},children:v&&o})});function Pd(e){return e?"open":"closed"}var O_=G1,D_=Z1,F_=X1,jn="Accordion",z_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bd,$_,B_]=cs(jn),[ds,RN]=Pn(jn,[B_,Y1]),jd=Y1(),J1=ce.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return h.jsx(bd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(W_,{...i,ref:t}):h.jsx(V_,{...o,ref:t})})});J1.displayName=jn;var[q1,H_]=ds(jn),[ey,U_]=ds(jn,{collapsible:!1}),V_=ce.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=bn({prop:n,defaultProp:r,onChange:o});return h.jsx(q1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:ce.useCallback(()=>i&&s(""),[i,s]),children:h.jsx(ey,{scope:e.__scopeAccordion,collapsible:i,children:h.jsx(ty,{...a,ref:t})})})}),W_=ce.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=bn({prop:n,defaultProp:r,onChange:o}),s=ce.useCallback(f=>l((u=[])=>[...u,f]),[l]),c=ce.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return h.jsx(q1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c,children:h.jsx(ey,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(ty,{...i,ref:t})})})}),[K_,hs]=ds(jn),ty=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=ce.useRef(null),s=Oe(l,t),c=$_(n),u=us(o)==="ltr",d=oe(e.onKeyDown,p=>{var R;if(!z_.includes(p.key))return;const w=p.target,v=c().filter(k=>{var b;return!((b=k.ref.current)!=null&&b.disabled)}),C=v.findIndex(k=>k.ref.current===w),y=v.length;if(C===-1)return;p.preventDefault();let g=C;const x=0,E=y-1,_=()=>{g=C+1,g>E&&(g=x)},S=()=>{g=C-1,g{const{__scopeAccordion:n,value:r,...o}=e,i=hs(Ol,n),a=H_(Ol,n),l=jd(n),s=cn(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return h.jsx(Y_,{scope:n,open:c,disabled:f,triggerId:s,children:h.jsx(O_,{"data-orientation":i.orientation,"data-state":ly(c),...l,...o,ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})})});ny.displayName=Ol;var ry="AccordionHeader",G_=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=hs(jn,n),i=Ad(ry,n);return h.jsx(ie.h3,{"data-orientation":o.orientation,"data-state":ly(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});G_.displayName=ry;var Fc="AccordionTrigger",oy=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=hs(jn,n),i=Ad(Fc,n),a=U_(Fc,n),l=jd(n);return h.jsx(bd.ItemSlot,{scope:n,children:h.jsx(D_,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});oy.displayName=Fc;var iy="AccordionContent",ay=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=hs(jn,n),i=Ad(iy,n),a=jd(n);return h.jsx(F_,{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}})});ay.displayName=iy;function ly(e){return e?"open":"closed"}var Q_=J1,Z_=ny,X_=oy,J_=ay,q_="vocs_MobileSearch_searchButton";function e6(){const[e,t]=m.useState(!1);return h.jsxs(r1,{open:e,onOpenChange:t,children:[h.jsx(o1,{asChild:!0,children:h.jsx("button",{className:q_,type:"button","aria-label":"Search",children:h.jsx(sd,{height:21,width:21})})}),h.jsx(v1,{open:e,onClose:()=>t(!1)})]})}var t6="vocs_MobileTopNav_button",n6="var(--vocs_MobileTopNav_chevronDownIcon)",r6="var(--vocs_MobileTopNav_chevronUpIcon)",o6="vocs_MobileTopNav_content",i6="vocs_MobileTopNav_curtain",fv="vocs_MobileTopNav_curtainGroup",mu="vocs_MobileTopNav_curtainItem",a6="vocs_MobileTopNav_divider",Da="vocs_MobileTopNav_group",l6="vocs_MobileTopNav_icon",s6="vocs_MobileTopNav_item",u6="vocs_MobileTopNav_logo",c6="vocs_MobileTopNav_menuTitle",sy="vocs_MobileTopNav_menuTrigger",uy="vocs_MobileTopNav_navigation",f6="vocs_MobileTopNav_navigationContent",ai="vocs_MobileTopNav_navigationItem",d6="vocs_MobileTopNav_trigger",h6="vocs_MobileTopNav_navigation_compact",p6="vocs_MobileTopNav_outlinePopover",dv="vocs_MobileTopNav_outlineTrigger",v6="vocs_MobileTopNav",hv="vocs_MobileTopNav_section",m6="vocs_MobileTopNav_separator",g6="vocs_MobileTopNav_sidebarPopover",y6="vocs_MobileTopNav_topNavPopover";function w6(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var x6="vocs_Outline_heading",C6="vocs_Outline_item",E6="vocs_Outline_items",S6="vocs_Outline_link",_6="vocs_Outline_nav",T6="vocs_Outline";function cy({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Qe(),{showOutline:a}=$r(),l=typeof a=="number"?e+a-1:t,s=m.useRef(!0),{pathname:c,hash:f}=De(),[u,d]=m.useState([]);m.useEffect(()=>{if(typeof window>"u")return;const y=Array.from(document.querySelectorAll(`.${E0}`));d(y)},[c]);const p=m.useMemo(()=>u?u.map(y=>{const g=y.querySelector(`.${S0}`);if(!g)return null;const x=g.getBoundingClientRect(),E=g.id,_=Number(y.tagName[1]),S=y.textContent,T=window.scrollY+x.top;return _l?null:{id:E,level:_,slugTargetElement:g,text:S,topOffset:T}}).filter(Boolean):[],[u,l,e]),[w,v]=m.useState(f.replace("#",""));if(m.useEffect(()=>{if(typeof window>"u")return;const y=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const x=g.target.id;if(g.isIntersecting)v(x);else{if(!(g.target.getBoundingClientRect().top>0))return;const T=p.findIndex(k=>k.id===w),R=(E=p[T-1])==null?void 0:E.id;v(R)}},{rootMargin:"0px 0px -95% 0px"});for(const g of p)y.observe(g.slugTargetElement);return()=>y.disconnect()},[w,p]),m.useEffect(()=>{if(typeof window>"u")return;const y=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;g.isIntersecting?v(x):w===x&&v(p[p.length-2].id)});return y.observe(document.querySelector("[data-bottom-observer]")),()=>y.disconnect()},[w,p]),m.useEffect(()=>{if(typeof window>"u")return;const y=w6(()=>{var g,x,E;if(s.current){if(window.scrollY===0){v((g=p[0])==null?void 0:g.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){v((x=p[p.length-1])==null?void 0:x.id);return}for(let _=0;_window.removeEventListener("scroll",y)},[p]),p.length===0)return null;const C=p.filter(y=>y.level===e);return h.jsxs("aside",{className:T6,children:[h.jsxs("nav",{className:_6,children:[o&&h.jsx("h2",{className:x6,children:"On this page"}),h.jsx(fy,{activeId:n?w:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:v})]}),jl(i)]})}function fy({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){return h.jsx("ul",{className:E6,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,p=(v=t[d])==null?void 0:v.level;if(p<=a)return null;const w=[];for(let C=d;C{r==null||r(),o(i)},className:S6,children:l})}),f&&h.jsx(fy,{activeId:e,levelItems:f,items:t,onClickItem:r,setActiveId:o})]},i)})})}const R6=["top","right","bottom","left"],an=Math.min,Et=Math.max,Dl=Math.round,Fa=Math.floor,rr=e=>({x:e,y:e}),N6={left:"right",right:"left",bottom:"top",top:"bottom"},k6={start:"end",end:"start"};function zc(e,t,n){return Et(e,an(t,n))}function Rn(e,t){return typeof e=="function"?e(t):e}function Nn(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function Md(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}function or(e){return["top","bottom"].includes(Nn(e))?"y":"x"}function Id(e){return Md(or(e))}function P6(e,t,n){n===void 0&&(n=!1);const r=Ho(e),o=Id(e),i=Ld(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Fl(a)),[a,Fl(a)]}function b6(e){const t=Fl(e);return[$c(e),t,$c(t)]}function $c(e){return e.replace(/start|end/g,t=>k6[t])}function j6(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 A6(e,t,n,r){const o=Ho(e);let i=j6(Nn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map($c)))),i}function Fl(e){return e.replace(/left|right|bottom|top/g,t=>N6[t])}function M6(e){return{top:0,right:0,bottom:0,left:0,...e}}function dy(e){return typeof e!="number"?M6(e):{top:e,right:e,bottom:e,left:e}}function zl(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 pv(e,t,n){let{reference:r,floating:o}=e;const i=or(t),a=Id(t),l=Ld(a),s=Nn(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 p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ho(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1);break}return p}const L6=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}=pv(c,r,s),d=r,p={},w=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}=Rn(e,t)||{};if(c==null)return{};const u=dy(f),d={x:n,y:r},p=Id(o),w=Ld(p),v=await a.getDimensions(c),C=p==="y",y=C?"top":"left",g=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[p]-d[p]-i.floating[w],_=d[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let T=S?S[x]:0;(!T||!await(a.isElement==null?void 0:a.isElement(S)))&&(T=l.floating[x]||i.floating[w]);const R=E/2-_/2,k=T/2-v[w]/2-1,b=an(u[y],k),O=an(u[g],k),z=b,H=T-v[w]-O,A=T/2-v[w]/2+R,W=zc(z,A,H),U=!s.arrow&&Ho(o)!=null&&A!==W&&i.reference[w]/2-(AA<=0)){var O,z;const A=(((O=i.flip)==null?void 0:O.index)||0)+1,W=T[A];if(W)return{data:{index:A,overflows:b},reset:{placement:W}};let U=(z=b.filter($=>$.overflows[0]<=0).sort(($,M)=>$.overflows[1]-M.overflows[1])[0])==null?void 0:z.placement;if(!U)switch(p){case"bestFit":{var H;const $=(H=b.filter(M=>{if(S){const D=or(M.placement);return D===g||D==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((M,D)=>M[1]-D[1])[0])==null?void 0:H[0];$&&(U=$);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function vv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mv(e){return R6.some(t=>e[t]>=0)}const D6=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Rn(e,t);switch(r){case"referenceHidden":{const i=await Vi(t,{...o,elementContext:"reference"}),a=vv(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:mv(a)}}}case"escaped":{const i=await Vi(t,{...o,altBoundary:!0}),a=vv(i,n.floating);return{data:{escapedOffsets:a,escaped:mv(a)}}}default:return{}}}}};async function F6(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Nn(n),l=Ho(n),s=or(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=Rn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:w}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}const z6=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 F6(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}}}}},$6=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:y,y:g}=C;return{x:y,y:g}}},...s}=Rn(e,t),c={x:n,y:r},f=await Vi(t,s),u=or(Nn(o)),d=Md(u);let p=c[d],w=c[u];if(i){const C=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=p+f[C],x=p-f[y];p=zc(g,p,x)}if(a){const C=u==="y"?"top":"left",y=u==="y"?"bottom":"right",g=w+f[C],x=w-f[y];w=zc(g,w,x)}const v=l.fn({...t,[d]:p,[u]:w});return{...v,data:{x:v.x-n,y:v.y-r}}}}},B6=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}=Rn(e,t),f={x:n,y:r},u=or(o),d=Md(u);let p=f[d],w=f[u];const v=Rn(l,t),C=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,_=i.reference[d]+i.reference[x]-C.mainAxis;p_&&(p=_)}if(c){var y,g;const x=d==="y"?"width":"height",E=["top","left"].includes(Nn(o)),_=i.reference[u]-i.floating[x]+(E&&((y=a.offset)==null?void 0:y[u])||0)+(E?0:C.crossAxis),S=i.reference[u]+i.reference[x]+(E?0:((g=a.offset)==null?void 0:g[u])||0)-(E?C.crossAxis:0);w<_?w=_:w>S&&(w=S)}return{[d]:p,[u]:w}}}},H6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=Rn(e,t),s=await Vi(t,l),c=Nn(n),f=Ho(n),u=or(n)==="y",{width:d,height:p}=r.floating;let w,v;c==="top"||c==="bottom"?(w=c,v=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=c,w=f==="end"?"top":"bottom");const C=p-s.top-s.bottom,y=d-s.left-s.right,g=an(p-s[w],C),x=an(d-s[v],y),E=!t.middlewareData.shift;let _=g,S=x;if(u?S=f||E?an(x,y):y:_=f||E?an(g,C):C,E&&!f){const R=Et(s.left,0),k=Et(s.right,0),b=Et(s.top,0),O=Et(s.bottom,0);u?S=d-2*(R!==0||k!==0?R+k:Et(s.left,s.right)):_=p-2*(b!==0||O!==0?b+O:Et(s.top,s.bottom))}await a({...t,availableWidth:S,availableHeight:_});const T=await o.getDimensions(i.floating);return d!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Uo(e){return hy(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function An(e){var t;return(t=(hy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hy(e){return e instanceof Node||e instanceof Tt(e).Node}function Ye(e){return e instanceof Element||e instanceof Tt(e).Element}function fn(e){return e instanceof HTMLElement||e instanceof Tt(e).HTMLElement}function Bc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(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 U6(e){return["table","td","th"].includes(Uo(e))}function ps(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Od(e){const t=Dd(),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 V6(e){let t=ir(e);for(;fn(t)&&!Mo(t);){if(Od(t))return t;if(ps(t))return null;t=ir(t)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mo(e){return["html","body","#document"].includes(Uo(e))}function Ft(e){return Tt(e).getComputedStyle(e)}function vs(e){return Ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ir(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bc(e)&&e.host||An(e);return Bc(t)?t.host:t}function py(e){const t=ir(e);return Mo(t)?e.ownerDocument?e.ownerDocument.body:e.body:fn(t)&&ea(t)?t:py(t)}function Wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=py(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Tt(o);if(i){const l=Hc(a);return t.concat(a,a.visualViewport||[],ea(o)?o:[],l&&n?Wi(l):[])}return t.concat(o,Wi(o,[],n))}function Hc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vy(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Dl(n)!==i||Dl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Fd(e){return Ye(e)?e:e.contextElement}function wo(e){const t=Fd(e);if(!fn(t))return rr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=vy(t);let a=(i?Dl(n.width):n.width)/r,l=(i?Dl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const W6=rr(0);function my(e){const t=Tt(e);return!Dd()||!t.visualViewport?W6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Ar(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Fd(e);let a=rr(1);t&&(r?Ye(r)&&(a=wo(r)):a=wo(e));const l=K6(i,n,r)?my(i):rr(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=Tt(i),p=r&&Ye(r)?Tt(r):r;let w=d,v=Hc(w);for(;v&&r&&p!==w;){const C=wo(v),y=v.getBoundingClientRect(),g=Ft(v),x=y.left+(v.clientLeft+parseFloat(g.paddingLeft))*C.x,E=y.top+(v.clientTop+parseFloat(g.paddingTop))*C.y;s*=C.x,c*=C.y,f*=C.x,u*=C.y,s+=x,c+=E,w=Tt(v),v=Hc(w)}}return zl({width:f,height:u,x:s,y:c})}function Y6(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=An(r),l=t?ps(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=rr(1);const f=rr(0),u=fn(r);if((u||!u&&!i)&&((Uo(r)!=="body"||ea(a))&&(s=vs(r)),fn(r))){const d=Ar(r);c=wo(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 G6(e){return Array.from(e.getClientRects())}function gy(e){return Ar(An(e)).left+vs(e).scrollLeft}function Q6(e){const t=An(e),n=vs(e),r=e.ownerDocument.body,o=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+gy(e);const l=-n.scrollTop;return Ft(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function Z6(e,t){const n=Tt(e),r=An(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=Dd();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function X6(e,t){const n=Ar(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=fn(e)?wo(e):rr(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 gv(e,t,n){let r;if(t==="viewport")r=Z6(e,n);else if(t==="document")r=Q6(An(e));else if(Ye(t))r=X6(t,n);else{const o=my(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return zl(r)}function yy(e,t){const n=ir(e);return n===t||!Ye(n)||Mo(n)?!1:Ft(n).position==="fixed"||yy(n,t)}function J6(e,t){const n=t.get(e);if(n)return n;let r=Wi(e,[],!1).filter(l=>Ye(l)&&Uo(l)!=="body"),o=null;const i=Ft(e).position==="fixed";let a=i?ir(e):e;for(;Ye(a)&&!Mo(a);){const l=Ft(a),s=Od(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ea(a)&&!s&&yy(e,a))?r=r.filter(f=>f!==a):o=l,a=ir(a)}return t.set(e,r),r}function q6(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ps(t)?[]:J6(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=gv(t,f,o);return c.top=Et(u.top,c.top),c.right=an(u.right,c.right),c.bottom=an(u.bottom,c.bottom),c.left=Et(u.left,c.left),c},gv(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function e8(e){const{width:t,height:n}=vy(e);return{width:t,height:n}}function t8(e,t,n){const r=fn(t),o=An(t),i=n==="fixed",a=Ar(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=rr(0);if(r||!r&&!i)if((Uo(t)!=="body"||ea(o))&&(l=vs(t)),r){const u=Ar(t,!0,i,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=gy(o));const c=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:c,y:f,width:a.width,height:a.height}}function gu(e){return Ft(e).position==="static"}function yv(e,t){return!fn(e)||Ft(e).position==="fixed"?null:t?t(e):e.offsetParent}function wy(e,t){const n=Tt(e);if(ps(e))return n;if(!fn(e)){let o=ir(e);for(;o&&!Mo(o);){if(Ye(o)&&!gu(o))return o;o=ir(o)}return n}let r=yv(e,t);for(;r&&U6(r)&&gu(r);)r=yv(r,t);return r&&Mo(r)&&gu(r)&&!Od(r)?n:r||V6(e)||n}const n8=async function(e){const t=this.getOffsetParent||wy,n=this.getDimensions,r=await n(e.floating);return{reference:t8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r8(e){return Ft(e).direction==="rtl"}const o8={convertOffsetParentRelativeRectToViewportRelativeRect:Y6,getDocumentElement:An,getClippingRect:q6,getOffsetParent:wy,getElementRects:n8,getClientRects:G6,getDimensions:e8,getScale:wo,isElement:Ye,isRTL:r8};function i8(e,t){let n=null,r;const o=An(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 p=Fa(f),w=Fa(o.clientWidth-(c+u)),v=Fa(o.clientHeight-(f+d)),C=Fa(c),g={rootMargin:-p+"px "+-w+"px "+-v+"px "+-C+"px",threshold:Et(0,an(1,s))||1};let x=!0;function E(_){const S=_[0].intersectionRatio;if(S!==s){if(!x)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),i}function a8(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=Fd(e),f=o||i?[...c?Wi(c):[],...Wi(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=c&&l?i8(c,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(y=>{let[g]=y;g&&g.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!s&&p.observe(c),p.observe(t));let w,v=s?Ar(e):null;s&&C();function C(){const y=Ar(e);v&&(y.x!==v.x||y.y!==v.y||y.width!==v.width||y.height!==v.height)&&n(),v=y,w=requestAnimationFrame(C)}return n(),()=>{var y;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),u==null||u(),(y=p)==null||y.disconnect(),p=null,s&&cancelAnimationFrame(w)}}const l8=z6,s8=$6,u8=O6,c8=H6,f8=D6,wv=I6,d8=B6,h8=(e,t,n)=>{const r=new Map,o={platform:o8,...n},i={...o.platform,_c:r};return L6(e,t,{...o,platform:i})};var nl=typeof document<"u"?m.useLayoutEffect:m.useEffect;function $l(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(!$l(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)&&!$l(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xv(e,t){const n=xy(e);return Math.round(t*n)/n}function Cv(e){const t=m.useRef(e);return nl(()=>{t.current=e}),t}function Cy(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,p]=m.useState(r);$l(d,r)||p(r);const[w,v]=m.useState(null),[C,y]=m.useState(null),g=m.useCallback($=>{$!==S.current&&(S.current=$,v($))},[]),x=m.useCallback($=>{$!==T.current&&(T.current=$,y($))},[]),E=i||w,_=a||C,S=m.useRef(null),T=m.useRef(null),R=m.useRef(f),k=s!=null,b=Cv(s),O=Cv(o),z=m.useCallback(()=>{if(!S.current||!T.current)return;const $={placement:t,strategy:n,middleware:d};O.current&&($.platform=O.current),h8(S.current,T.current,$).then(M=>{const D={...M,isPositioned:!0};H.current&&!$l(R.current,D)&&(R.current=D,Fo.flushSync(()=>{u(D)}))})},[d,t,n,O]);nl(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u($=>({...$,isPositioned:!1})))},[c]);const H=m.useRef(!1);nl(()=>(H.current=!0,()=>{H.current=!1}),[]),nl(()=>{if(E&&(S.current=E),_&&(T.current=_),E&&_){if(b.current)return b.current(E,_,z);z()}},[E,_,z,b,k]);const A=m.useMemo(()=>({reference:S,floating:T,setReference:g,setFloating:x}),[g,x]),W=m.useMemo(()=>({reference:E,floating:_}),[E,_]),U=m.useMemo(()=>{const $={position:n,left:0,top:0};if(!W.floating)return $;const M=xv(W.floating,f.x),D=xv(W.floating,f.y);return l?{...$,transform:"translate("+M+"px, "+D+"px)",...xy(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:D}},[n,l,W.floating,f.x,f.y]);return m.useMemo(()=>({...f,update:z,refs:A,elements:W,floatingStyles:U}),[f,z,A,W,U])}const p8=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?wv({element:r.current,padding:o}).fn(n):{}:r?wv({element:r,padding:o}).fn(n):{}}}},Ey=(e,t)=>({...l8(e),options:[e,t]}),Sy=(e,t)=>({...s8(e),options:[e,t]}),v8=(e,t)=>({...d8(e),options:[e,t]}),m8=(e,t)=>({...u8(e),options:[e,t]}),g8=(e,t)=>({...c8(e),options:[e,t]}),y8=(e,t)=>({...f8(e),options:[e,t]}),_y=(e,t)=>({...p8(e),options:[e,t]});var w8="Arrow",Ty=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return h.jsx(ie.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ty.displayName=w8;var x8=Ty;function C8(e){const[t,n]=m.useState(void 0);return Jt(()=>{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 zd="Popper",[Ry,Ny]=Pn(zd),[E8,ky]=Ry(zd),Py=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return h.jsx(E8,{scope:t,anchor:r,onAnchorChange:o,children:n})};Py.displayName=zd;var by="PopperAnchor",jy=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ky(by,n),a=m.useRef(null),l=Oe(t,a);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.jsx(ie.div,{...o,ref:l})});jy.displayName=by;var $d="PopperContent",[S8,_8]=Ry($d),Ay=m.forwardRef((e,t)=>{var tt,ve,Me,Pt,bt,we;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:p="optimized",onPlaced:w,...v}=e,C=ky($d,n),[y,g]=m.useState(null),x=Oe(t,jt=>g(jt)),[E,_]=m.useState(null),S=C8(E),T=(S==null?void 0:S.width)??0,R=(S==null?void 0:S.height)??0,k=r+(i!=="center"?"-"+i:""),b=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(c)?c:[c],z=O.length>0,H={padding:b,boundary:O.filter(R8),altBoundary:z},{refs:A,floatingStyles:W,placement:U,isPositioned:$,middlewareData:M}=Cy({strategy:"fixed",placement:k,whileElementsMounted:(...jt)=>a8(...jt,{animationFrame:p==="always"}),elements:{reference:C.anchor},middleware:[Ey({mainAxis:o+R,alignmentAxis:a}),s&&Sy({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?v8():void 0,...H}),s&&m8({...H}),g8({...H,apply:({elements:jt,rects:Vo,availableWidth:gs,availableHeight:dn})=>{const{width:ys,height:ws}=Vo.reference,hr=jt.floating.style;hr.setProperty("--radix-popper-available-width",`${gs}px`),hr.setProperty("--radix-popper-available-height",`${dn}px`),hr.setProperty("--radix-popper-anchor-width",`${ys}px`),hr.setProperty("--radix-popper-anchor-height",`${ws}px`)}}),E&&_y({element:E,padding:l}),N8({arrowWidth:T,arrowHeight:R}),d&&y8({strategy:"referenceHidden",...H})]}),[D,B]=Iy(U),Z=it(w);Jt(()=>{$&&(Z==null||Z())},[$,Z]);const le=(tt=M.arrow)==null?void 0:tt.x,Fe=(ve=M.arrow)==null?void 0:ve.y,Ee=((Me=M.arrow)==null?void 0:Me.centerOffset)!==0,[He,Ue]=m.useState();return Jt(()=>{y&&Ue(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(Pt=M.transformOrigin)==null?void 0:Pt.x,(bt=M.transformOrigin)==null?void 0:bt.y].join(" "),...((we=M.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(S8,{scope:n,placedSide:D,onArrowChange:_,arrowX:le,arrowY:Fe,shouldHideArrow:Ee,children:h.jsx(ie.div,{"data-side":D,"data-align":B,...v,ref:x,style:{...v.style,animation:$?void 0:"none"}})})})});Ay.displayName=$d;var My="PopperArrow",T8={top:"bottom",right:"left",bottom:"top",left:"right"},Ly=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=_8(My,r),a=T8[i.placedSide];return h.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:h.jsx(x8,{...o,ref:n,style:{...o.style,display:"block"}})})});Ly.displayName=My;function R8(e){return e!==null}var N8=e=>({name:"transformOrigin",options:e,fn(t){var C,y,g;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]=Iy(n),u={start:"0%",center:"50%",end:"100%"}[f],d=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,p=(((g=o.arrow)==null?void 0:g.y)??0)+s/2;let w="",v="";return c==="bottom"?(w=a?u:`${d}px`,v=`${-s}px`):c==="top"?(w=a?u:`${d}px`,v=`${r.floating.height+s}px`):c==="right"?(w=`${-s}px`,v=a?u:`${p}px`):c==="left"&&(w=`${r.floating.width+s}px`,v=a?u:`${p}px`),{data:{x:w,y:v}}}});function Iy(e){const[t,n="center"]=e.split("-");return[t,n]}var k8=Py,Oy=jy,P8=Ay,b8=Ly,Bd="Popover",[Dy,NN]=Pn(Bd,[Ny]),ta=Ny(),[j8,dr]=Dy(Bd),Fy=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]=bn({prop:r,defaultProp:o,onChange:i});return h.jsx(k8,{...l,children:h.jsx(j8,{scope:t,contentId:cn(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:m.useCallback(()=>f(!0),[]),onCustomAnchorRemove:m.useCallback(()=>f(!1),[]),modal:a,children:n})})};Fy.displayName=Bd;var zy="PopoverAnchor",A8=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(zy,n),i=ta(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return m.useEffect(()=>(a(),()=>l()),[a,l]),h.jsx(Oy,{...i,...r,ref:t})});A8.displayName=zy;var $y="PopoverTrigger",By=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr($y,n),i=ta(n),a=Oe(t,o.triggerRef),l=h.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ky(o.open),...r,ref:a,onClick:oe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:h.jsx(Oy,{asChild:!0,...i,children:l})});By.displayName=$y;var Hd="PopoverPortal",[M8,L8]=Dy(Hd,{forceMount:void 0}),Hy=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=dr(Hd,t);return h.jsx(M8,{scope:t,forceMount:n,children:h.jsx(zt,{present:n||i.open,children:h.jsx(fd,{asChild:!0,container:o,children:r})})})};Hy.displayName=Hd;var Lo="PopoverContent",Uy=m.forwardRef((e,t)=>{const n=L8(Lo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=dr(Lo,e.__scopePopover);return h.jsx(zt,{present:r||i.open,children:i.modal?h.jsx(I8,{...o,ref:t}):h.jsx(O8,{...o,ref:t})})});Uy.displayName=Lo;var I8=m.forwardRef((e,t)=>{const n=dr(Lo,e.__scopePopover),r=m.useRef(null),o=Oe(t,r),i=m.useRef(!1);return m.useEffect(()=>{const a=r.current;if(a)return H0(a)},[]),h.jsx(dd,{as:jo,allowPinchZoom:!0,children:h.jsx(Vy,{...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})})})}),O8=m.forwardRef((e,t)=>{const n=dr(Lo,e.__scopePopover),r=m.useRef(!1),o=m.useRef(!1);return h.jsx(Vy,{...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()}})}),Vy=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=dr(Lo,n),p=ta(n);return M0(),h.jsx(cd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(ls,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:h.jsx(P8,{"data-state":Ky(d.open),role:"dialog",id:d.contentId,...p,...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)"}})})})}),Wy="PopoverClose",D8=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(Wy,n);return h.jsx(ie.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});D8.displayName=Wy;var F8="PopoverArrow",z8=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ta(n);return h.jsx(b8,{...o,...r,ref:t})});z8.displayName=F8;function Ky(e){return e?"open":"closed"}var $8=Fy,B8=By,H8=Hy,U8=Uy,V8="vocs_Popover";Kt.Root=$8;Kt.Trigger=B8;function Kt({children:e,className:t}){return h.jsx(H8,{children:h.jsx(U8,{className:I(V8,t),sideOffset:12,children:e})})}var W8="vocs_Sidebar_backLink",K8="vocs_Sidebar_divider",Y8="vocs_Sidebar_group",pi="vocs_Sidebar_item",Yy="vocs_Sidebar_items",G8="vocs_Sidebar_level",Q8="vocs_Sidebar_levelCollapsed",Z8="vocs_Sidebar_levelInset",X8="vocs_Sidebar_logo",J8="vocs_Sidebar_logoWrapper",q8="vocs_Sidebar_navigation",e7="vocs_Sidebar",Gy="vocs_Sidebar_section",t7="vocs_Sidebar_sectionCollapse",n7="vocs_Sidebar_sectionCollapseActive",r7="vocs_Sidebar_sectionHeader",o7="vocs_Sidebar_sectionHeaderActive",Ev="vocs_Sidebar_sectionTitle",i7="vocs_Sidebar_sectionTitleLink";function Qy(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Chevron Right"}),h.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}=zr(),o=m.useRef(null),i=as(),[a,l]=m.useState("/");if(m.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=a7(i.items);return h.jsxs("aside",{ref:o,className:I(e7,t),children:[h.jsxs("div",{className:J8,children:[h.jsx("div",{className:X8,children:h.jsx(nr,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:h.jsx(wd,{})})}),h.jsx("div",{className:K8})]}),h.jsx("nav",{className:q8,children:h.jsxs("div",{className:Y8,children:[i.backLink&&h.jsx("section",{className:Gy,children:h.jsx("div",{className:Yy,children:h.jsxs(nr,{className:I(pi,W8),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>h.jsx(Jy,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function a7(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 Xy(e,t){return e.find(n=>Ui(t,n.link??"")||n.link===t?!0:n.items?Xy(n.items,t):!1)}function Jy(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=m.useRef(null),{pathname:a}=De(),l=wC(n.link??""),s=m.useMemo(()=>n.items?!!Xy(n.items,a):!1,[n.items,a]),[c,f]=m.useState(()=>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"||n.link||f(C=>!C)},[n.link]),p=m.useCallback(v=>{"key"in v&&v.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),w=m.useRef(!0);return m.useEffect(()=>{!w.current||(w.current=!1,!Ui(a,n.link??""))||requestAnimationFrame(()=>{var g,x,E;const C=((g=i.current)==null?void 0:g.offsetTop)??0,y=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((v,C)=>h.jsx(Jy,{depth:t+1,item:v,onClick:r,sidebarRef:o},`${v.text}${C}`))})]}):h.jsx(h.Fragment,{children:n.link?h.jsx(nr,{ref:i,"data-active":!!l,onClick:r,className:pi,to:n.link,children:n.text}):h.jsx("div",{className:pi,children:n.text})})}function l7(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Chevron Down"}),h.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 s7(){return h.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:"Chevron Up"}),h.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 u7(){return h.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[h.jsx("title",{children:"Menu"}),h.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"})]})}Uc.Curtain=m7;function Uc(){var n,r;const e=Qe(),{showLogo:t}=$r();return h.jsxs("div",{className:v6,children:[h.jsxs("div",{className:hv,children:[t&&h.jsx("div",{className:Da,children:h.jsx("div",{className:u6,children:h.jsx(nr,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:h.jsx(wd,{})})})}),e.topNav&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:Da,children:[h.jsx(c7,{items:e.topNav}),h.jsx(d7,{items:e.topNav})]})})]}),h.jsxs("div",{className:hv,children:[h.jsx("div",{className:Da,style:{marginRight:"-8px"},children:h.jsx(e6,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:a6}),h.jsx("div",{className:Da,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>h.jsx(v7,{...o},i))})]})]})]})}function c7({items:e}){const{pathname:t}=De(),n=qi({pathname:t,items:e});return h.jsx(I1,{className:uy,children:h.jsx(O1,{children:e.map((r,o)=>r!=null&&r.link?h.jsx(fs,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):h.jsxs(D1,{className:s6,children:[h.jsx(F1,{active:n==null?void 0:n.includes(r.id),children:r.text}),h.jsx(z1,{className:o6,children:h.jsx(f7,{items:r.items||[]})})]},o))})})}function f7({items:e}){const{pathname:t}=De(),n=qi({pathname:t,items:e});return h.jsx("ul",{children:e==null?void 0:e.map((r,o)=>h.jsx(fs,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function d7({items:e}){var s;const[t,n]=m.useState(!1),{pathname:r}=De(),o=qi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Qe(),l=a;return h.jsx("div",{className:I(uy,h6),children:i?h.jsxs(Kt.Root,{modal:!0,open:t,onOpenChange:n,children:[h.jsxs(Kt.Trigger,{className:I(sy,ai),children:[i.text,h.jsx(ct,{label:"Menu",icon:l7,size:"11px"})]}),h.jsx(Kt,{className:y6,children:h.jsx(Q_,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?h.jsx(un,{"data-active":o.includes(c.id),className:ai,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):h.jsxs(Z_,{value:f.toString(),children:[h.jsx(X_,{className:I(ai,d6),"data-active":o.includes(c.id),style:Xt({[n6]:`url(${l}/.vocs/icons/chevron-down.svg)`,[r6]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),h.jsx(J_,{className:f6,children:(u=c.items)==null?void 0:u.map((d,p)=>h.jsx(un,{className:ai,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?h.jsx(un,{className:ai,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const h7={discord:$1,github:B1,telegram:H1,warpcast:U1,x:V1},p7={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function v7({icon:e,label:t,link:n,type:r}){return h.jsx("a",{className:t6,href:n,target:"_blank",rel:"noopener noreferrer",children:h.jsx(ct,{className:l6,label:t,icon:h7[e],size:p7[r]||"18px"})})}function m7({enableScrollToTop:e}){const{pathname:t}=De(),{layout:n,showSidebar:r}=$r(),{frontmatter:o={}}=zr(),i=as(),[a,l]=m.useState(!1),[s,c]=m.useState(!1),f=m.useMemo(()=>{if(!i||n==="minimal")return;const p=qy({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),u=m.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||u;return h.jsxs("div",{className:i6,children:[h.jsx("div",{className:fv,children:h.jsx("div",{className:mu,children:r?h.jsxs(Kt.Root,{modal:!0,open:s,onOpenChange:c,children:[h.jsxs(Kt.Trigger,{className:sy,children:[h.jsx(ct,{label:"Menu",icon:u7,size:"13px"}),h.jsx("div",{className:c6,children:d})]}),h.jsx(Kt,{className:g6,children:h.jsx(Zy,{onClickItem:()=>c(!1)})})]}):d})}),h.jsxs("div",{className:fv,children:[e&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:mu,children:h.jsxs("button",{className:dv,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",h.jsx(ct,{label:"Scroll to top",icon:s7,size:"10px"})]})}),h.jsx("div",{className:m6})]}),n==="docs"&&h.jsx("div",{className:mu,children:h.jsxs(Kt.Root,{modal:!0,open:a,onOpenChange:l,children:[h.jsxs(Kt.Trigger,{className:dv,children:["On this page",h.jsx(ct,{label:"On this page",icon:Qy,size:"10px"})]}),h.jsx(Kt,{className:p6,children:h.jsx(cy,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function qy({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=qy({sidebarItems:r.items,pathname:n});if(o)return o}}}var g7="vocs_SkipLink";const ew="vocs-content";function y7(){const{pathname:e}=De();return h.jsx("a",{className:I(g7,P0),href:`${e}#${ew}`,children:"Skip to content"})}var w7="vocs_DocsLayout_content",x7="vocs_DocsLayout_content_withSidebar",C7="vocs_DocsLayout_content_withTopNav",E7="vocs_DocsLayout_gutterLeft",S7="vocs_DocsLayout_gutterRight",_7="vocs_DocsLayout_gutterRight_withSidebar",T7="vocs_DocsLayout_gutterTop",R7="vocs_DocsLayout_gutterTopCurtain",N7="vocs_DocsLayout_gutterTopCurtain_hidden",k7="vocs_DocsLayout_gutterTopCurtain_withSidebar",P7="vocs_DocsLayout_gutterTop_offsetLeftGutter",b7="vocs_DocsLayout_gutterTop_sticky",j7="vocs_DocsLayout",A7="vocs_DocsLayout_sidebar";function Vc({children:e}){var p,w;const{banner:t,font:n}=Qe(),{frontmatter:r={}}=zr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=$r(),{ref:c,inView:f}=C0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=bc("banner",!0);return h.jsxs("div",{className:j7,"data-layout":i,style:Xt({[R5]:u?t==null?void 0:t.height:void 0,[Ap.default]:(p=n==null?void 0:n.default)!=null&&p.google?`${n.default.google}, ${jp.default}`:void 0,[Ap.mono]:(w=n==null?void 0:n.mono)!=null&&w.google?`${n.mono.google}, ${jp.mono}`:void 0}),children:[h.jsx(y7,{}),u&&h.jsx(G5,{hide:()=>d(!1)}),l&&h.jsx("div",{className:E7,children:h.jsx(Zy,{className:A7})}),s&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{ref:c,className:I(T7,l&&P7,(i==="minimal"||i==="landing")&&b7),children:[h.jsx(Dc,{}),h.jsx(Uc,{})]}),h.jsxs("div",{className:I(R7,l&&k7,(i==="minimal"||i==="landing")&&N7),children:[h.jsx(Dc.Curtain,{}),h.jsx(Uc.Curtain,{enableScrollToTop:!f})]})]}),a&&h.jsx("div",{className:I(S7,l&&_7),children:h.jsx(cy,{})}),h.jsxs("div",{id:ew,className:I(w7,l&&x7,s&&C7),style:Xt({[Js.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Js.width]:o==null?void 0:o.width,[Js.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[h.jsx(R0,{children:e}),h.jsx(b_,{})]}),h.jsx("div",{"data-bottom-observer":!0})]})}const Wc={},tw=ce.createContext(Wc);function M7(e){const t=ce.useContext(tw);return ce.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function L7(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Wc):e.components||Wc:t=M7(e.components),ce.createElement(tw.Provider,{value:t},e.children)}var nw={exports:{}},I7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O7=I7,D7=O7;function rw(){}function ow(){}ow.resetWarningCache=rw;var F7=function(){function e(r,o,i,a,l,s){if(s!==D7){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:ow,resetWarningCache:rw};return n.PropTypes=n,n};nw.exports=F7();var z7=nw.exports;const _e=ar(z7);function $7(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var iw=m,B7=$7(iw);function Sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var U7=!!(typeof window<"u"&&window.document&&window.document.createElement);function V7(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){H7(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 w=l;return l=void 0,a=[],w};var d=u.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var w=a.indexOf(this);a.splice(w,1),s()},d.render=function(){return B7.createElement(i,this.props)},u}(iw.PureComponent);return Sv(c,"displayName","SideEffect("+r(i)+")"),Sv(c,"canUseDOM",U7),c}}var W7=V7;const K7=ar(W7);var Y7=typeof Element<"u",G7=typeof Map=="function",Q7=typeof Set=="function",Z7=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function rl(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(!rl(e[r],t[r]))return!1;return!0}var i;if(G7&&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(!rl(r.value[1],t.get(r.value[0])))return!1;return!0}if(Q7&&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(Z7&&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(Y7&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!rl(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var X7=function(t,n){try{return rl(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 J7=ar(X7);/*+ object-assign
+ (c) Sindre Sorhus
+ @license MIT
+ */var _v=Object.getOwnPropertySymbols,q7=Object.prototype.hasOwnProperty,e9=Object.prototype.propertyIsEnumerable;function t9(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function n9(){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 r9=n9()?Object.assign:function(e,t){for(var n,r=t9(e),o,i=1;i
=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},f9=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},Kc=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,"'")},d9=function(t){var n=xo(t,q.TITLE),r=xo(t,Ki.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=xo(t,Ki.DEFAULT_TITLE);return n||o||void 0},h9=function(t){return xo(t,Ki.ON_CHANGE_CLIENT_STATE)||function(){}},yu=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return ht({},r,o)},{})},p9=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},v9=function(t){return{baseTag:p9([Te.HREF,Te.TARGET],t),bodyAttributes:yu(_r.BODY,t),defer:xo(t,Ki.DEFER),encode:xo(t,Ki.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:yu(_r.HTML,t),linkTags:li(q.LINK,[Te.REL,Te.HREF],t),metaTags:li(q.META,[Te.NAME,Te.CHARSET,Te.HTTPEQUIV,Te.PROPERTY,Te.ITEM_PROP],t),noscriptTags:li(q.NOSCRIPT,[Te.INNER_HTML],t),onChangeClientState:h9(t),scriptTags:li(q.SCRIPT,[Te.SRC,Te.INNER_HTML],t),styleTags:li(q.STYLE,[Te.CSS_TEXT],t),title:d9(t),titleAttributes:yu(_r.TITLE,t)}},Yc=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Yc(t)},0)}}(),Rv=function(t){return clearTimeout(t)},m9=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Yc:global.requestAnimationFrame||Yc,g9=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Rv:global.cancelAnimationFrame||Rv,y9=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},si=null,w9=function(t){si&&g9(si),t.defer?si=m9(function(){Nv(t,function(){si=null})}):(Nv(t),si=null)},Nv=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,p=t.titleAttributes;Gc(q.BODY,o),Gc(q.HTML,i),x9(d,p);var w={baseTag:Zr(q.BASE,r),linkTags:Zr(q.LINK,a),metaTags:Zr(q.META,l),noscriptTags:Zr(q.NOSCRIPT,s),scriptTags:Zr(q.SCRIPT,f),styleTags:Zr(q.STYLE,u)},v={},C={};Object.keys(w).forEach(function(y){var g=w[y],x=g.newTags,E=g.oldTags;x.length&&(v[y]=x),E.length&&(C[y]=w[y].oldTags)}),n&&n(),c(t,v,C)},aw=function(t){return Array.isArray(t)?t.join(""):t},x9=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=aw(t)),Gc(q.TITLE,n)},Gc=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(","))}},Zr=function(t,n){var r=document.head||document.querySelector(q.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===Te.INNER_HTML)c.innerHTML=s.innerHTML;else if(f===Te.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,p){return l=p,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}},lw=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},"")},C9=function(t,n,r,o){var i=lw(r),a=aw(n);return i?"<"+t+" "+Yt+'="true" '+i+">"+Kc(a,o)+"":"<"+t+" "+Yt+'="true">'+Kc(a,o)+""},E9=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(c){return!(c===Te.INNER_HTML||c===Te.CSS_TEXT)}).reduce(function(c,f){var u=typeof i[f]>"u"?f:f+'="'+Kc(i[f],r)+'"';return c?c+" "+u:u},""),l=i.innerHTML||i.cssText||"",s=a9.indexOf(t)===-1;return o+"<"+t+" "+Yt+'="true" '+a+(s?"/>":">"+l+"")},"")},sw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Bl[o]||o]=t[o],r},n)},S9=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[i9[o]||o]=t[o],r},n)},_9=function(t,n,r){var o,i=(o={key:n},o[Yt]=!0,o),a=sw(r,i);return[ce.createElement(q.TITLE,a,n)]},T9=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=Bl[l]||l;if(s===Te.INNER_HTML||s===Te.CSS_TEXT){var c=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[s]=r[l]}),ce.createElement(t,a)})},vn=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return _9(t,n.title,n.titleAttributes)},toString:function(){return C9(t,n.title,n.titleAttributes,r)}};case _r.BODY:case _r.HTML:return{toComponent:function(){return sw(n)},toString:function(){return lw(n)}};default:return{toComponent:function(){return T9(t,n)},toString:function(){return E9(t,n,r)}}}},uw=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,p=t.titleAttributes;return{base:vn(q.BASE,n,o),bodyAttributes:vn(_r.BODY,r,o),htmlAttributes:vn(_r.HTML,i,o),link:vn(q.LINK,a,o),meta:vn(q.META,l,o),noscript:vn(q.NOSCRIPT,s,o),script:vn(q.SCRIPT,c,o),style:vn(q.STYLE,f,o),title:vn(q.TITLE,{title:d,titleAttributes:p},o)}},R9=function(t){var n,r;return r=n=function(o){c9(i,o);function i(){return s9(this,i),f9(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!J7(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,c=l.child,f=l.arrayTypeChildren,u=l.newChildProps,d=l.nestedChildren;return ht({},f,(s={},s[c.type]=[].concat(f[c.type]||[],[ht({},u,this.mapNestedChildrenToProps(c,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,c,f=l.child,u=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return ht({},u,(s={},s[f.type]=p,s.titleAttributes=ht({},d),s));case q.BODY:return ht({},u,{bodyAttributes:ht({},d)});case q.HTML:return ht({},u,{htmlAttributes:ht({},d)})}return ht({},u,(c={},c[f.type]=ht({},d),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var c=ht({},s);return Object.keys(l).forEach(function(f){var u;c=ht({},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 ce.Children.forEach(l,function(u){if(!(!u||!u.props)){var d=u.props,p=d.children,w=Tv(d,["children"]),v=S9(w);switch(c.warnOnInvalidChildren(u,p),u.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:f,newChildProps:v,nestedChildren:p});break;default:s=c.mapObjectTypeChildren({child:u,newProps:s,newChildProps:v,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,c=Tv(l,["children"]),f=ht({},c);return s&&(f=this.mapChildrenToProps(s,f)),ce.createElement(t,f)},u9(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(ce.Component),n.propTypes={base:_e.object,bodyAttributes:_e.object,children:_e.oneOfType([_e.arrayOf(_e.node),_e.node]),defaultTitle:_e.string,defer:_e.bool,encodeSpecialCharacters:_e.bool,htmlAttributes:_e.object,link:_e.arrayOf(_e.object),meta:_e.arrayOf(_e.object),noscript:_e.arrayOf(_e.object),onChangeClientState:_e.func,script:_e.arrayOf(_e.object),style:_e.arrayOf(_e.object),title:_e.string,titleAttributes:_e.object,titleTemplate:_e.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=uw({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},N9=function(){return null},k9=K7(v9,w9,uw)(N9),Qc=R9(k9);Qc.renderStatic=Qc.rewind;var wu="vocs_Anchor",P9="vocs_Autolink";function b9(e){return e.href?h.jsx(is,{...e,className:I(e.className,P9),to:e.href}):null}function j9(e){const{children:t,href:n}=e,{pathname:r}=De();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?h.jsx(b9,{className:I(e.className,wu),...e}):n!=null&&n.match(/^#/)?h.jsx("a",{className:I(e.className,wu),...e,href:`${r}${n}`}):h.jsx(un,{className:I(e.className,wu),...e})}var A9="vocs_Callout_danger",M9="vocs_Callout_info",L9="vocs_Callout_note",cw="vocs_Callout",I9="vocs_Callout_success",O9="vocs_Callout_tip",D9="vocs_Callout_warning";const F9=Object.freeze(Object.defineProperty({__proto__:null,danger:A9,info:M9,note:L9,root:cw,success:I9,tip:O9,warning:D9},Symbol.toStringTag,{value:"Module"}));function z9({className:e,children:t,type:n}){return h.jsx("aside",{className:I(e,cw,F9[n]),children:t})}var $9="vocs_Aside";function B9(e){const t=I(e.className,$9);return"data-callout"in e?h.jsx(z9,{className:t,type:e["data-callout"],children:e.children}):h.jsx("aside",{...e,className:t})}var H9="vocs_Blockquote";function U9(e){return h.jsx("blockquote",{...e,className:I(e.className,H9)})}var V9="vocs_Code";function W9(e){const t=K9(e.children);return h.jsx("code",{...e,className:I(e.className,V9),children:t})}function K9(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 Y9="vocs_Details";function G9(e){return h.jsx("details",{...e,className:I(e.className,Y9)})}var Q9="vocs_Authors_authors",Z9="vocs_Authors_link",X9="vocs_Authors",kv="vocs_Authors_separator";function fw(e){const{frontmatter:t}=zr(),{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 h.jsxs("div",{className:X9,children:[i,o&&(i?" by ":"By "),h.jsx("span",{className:Q9,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:c}=J9(a);return h.jsxs(m.Fragment,{children:[c?h.jsx("a",{className:Z9,href:c,target:"_blank",rel:"noopener noreferrer",children:s}):s,lh.jsxs(m.Fragment,{children:[h.jsx("div",{className:tT,children:h.jsxs(nr,{to:e.path,children:[h.jsx("h2",{className:oT,children:e.title}),h.jsx(fw,{authors:e.authors,date:e.date}),h.jsxs("p",{className:q9,children:[e.description," ",h.jsx("span",{className:nT,children:"[→]"})]})]})}),th.jsxs(m.Fragment,{children:[h.jsx("div",{className:hT,children:t.name}),t.items.map((r,o)=>{var i;return h.jsx("div",{className:fT,style:Xt({[lT]:r.length.toString(),[sT]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>h.jsx(un,{className:I(aT,a?dT:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:h.jsx("img",{className:uT,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var vT="var(--vocs_AutolinkIcon_iconUrl)",mT="vocs_AutolinkIcon";function gT(e){const{basePath:t}=Qe(),n=t;return h.jsx("div",{...e,className:I(e.className,mT),style:Xt({[vT]:`url(${n}/.vocs/icons/link.svg)`})})}var xu="rovingFocusGroup.onEntryFocus",yT={bubbles:!1,cancelable:!0},ms="RovingFocusGroup",[Zc,dw,wT]=cs(ms),[xT,hw]=Pn(ms,[wT]),[CT,ET]=xT(ms),pw=m.forwardRef((e,t)=>h.jsx(Zc.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(Zc.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(ST,{...e,ref:t})})}));pw.displayName=ms;var ST=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),p=Oe(t,d),w=us(i),[v=null,C]=bn({prop:a,defaultProp:l,onChange:s}),[y,g]=m.useState(!1),x=it(c),E=dw(n),_=m.useRef(!1),[S,T]=m.useState(0);return m.useEffect(()=>{const R=d.current;if(R)return R.addEventListener(xu,x),()=>R.removeEventListener(xu,x)},[x]),h.jsx(CT,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(R=>C(R),[C]),onItemShiftTab:m.useCallback(()=>g(!0),[]),onFocusableItemAdd:m.useCallback(()=>T(R=>R+1),[]),onFocusableItemRemove:m.useCallback(()=>T(R=>R-1),[]),children:h.jsx(ie.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...u,ref:p,style:{outline:"none",...e.style},onMouseDown:oe(e.onMouseDown,()=>{_.current=!0}),onFocus:oe(e.onFocus,R=>{const k=!_.current;if(R.target===R.currentTarget&&k&&!y){const b=new CustomEvent(xu,yT);if(R.currentTarget.dispatchEvent(b),!b.defaultPrevented){const O=E().filter(U=>U.focusable),z=O.find(U=>U.active),H=O.find(U=>U.id===v),W=[z,H,...O].filter(Boolean).map(U=>U.ref.current);gw(W,f)}}_.current=!1}),onBlur:oe(e.onBlur,()=>g(!1))})})}),vw="RovingFocusGroupItem",mw=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=cn(),s=i||l,c=ET(vw,n),f=c.currentTabStopId===s,u=dw(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=c;return m.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.jsx(Zc.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:h.jsx(ie.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:oe(e.onMouseDown,w=>{r?c.onItemFocus(s):w.preventDefault()}),onFocus:oe(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:oe(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){c.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=RT(w,c.orientation,c.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let y=u().filter(g=>g.focusable).map(g=>g.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const g=y.indexOf(w.currentTarget);y=c.loop?NT(y,g+1):y.slice(g+1)}setTimeout(()=>gw(y))}})})})});mw.displayName=vw;var _T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function RT(e,t,n){const r=TT(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _T[r]}function gw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function NT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var kT=pw,PT=mw,Ud="Tabs",[bT,kN]=Pn(Ud,[hw]),yw=hw(),[jT,Vd]=bT(Ud),ww=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...c}=e,f=us(l),[u,d]=bn({prop:r,onChange:o,defaultProp:i});return h.jsx(jT,{scope:n,baseId:cn(),value:u,onValueChange:d,orientation:a,dir:f,activationMode:s,children:h.jsx(ie.div,{dir:f,"data-orientation":a,...c,ref:t})})});ww.displayName=Ud;var xw="TabsList",Cw=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Vd(xw,n),a=yw(n);return h.jsx(kT,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(ie.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Cw.displayName=xw;var Ew="TabsTrigger",Sw=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Vd(Ew,n),l=yw(n),s=Rw(a.baseId,r),c=Nw(a.baseId,r),f=r===a.value;return h.jsx(PT,{asChild:!0,...l,focusable:!o,active:f,children:h.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)})})})});Sw.displayName=Ew;var _w="TabsContent",Tw=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=Vd(_w,n),s=Rw(l.baseId,r),c=Nw(l.baseId,r),f=r===l.value,u=m.useRef(f);return m.useEffect(()=>{const d=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(d)},[]),h.jsx(zt,{present:o||f,children:({present:d})=>h.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})})});Tw.displayName=_w;function Rw(e,t){return`${e}-trigger-${t}`}function Nw(e,t){return`${e}-content-${t}`}var AT=ww,MT=Cw,LT=Sw,IT=Tw,OT="vocs_Tabs_content",DT="vocs_Tabs_list",FT="vocs_Tabs",zT="vocs_Tabs_trigger";function $T(e){return h.jsx(AT,{...e,className:I(e.className,FT)})}function BT(e){return h.jsx(MT,{...e,className:I(e.className,DT)})}function HT(e){return h.jsx(LT,{...e,className:I(e.className,zT)})}function UT(e){return h.jsx(IT,{...e,className:I(e.className,OT)})}var VT="vocs_CodeGroup";function WT({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 h.jsxs($T,{className:VT,defaultValue:t[0].title,children:[h.jsx(BT,{"aria-label":"Code group",children:t.map(({title:n},r)=>h.jsx(HT,{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 h.jsx(UT,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var KT="vocs_Div",YT="vocs_Step_content",GT="vocs_Step",kw="vocs_Step_title",QT="vocs_H2";function Pw(e){return h.jsx($o,{...e,className:I(e.className,QT),level:2})}var ZT="vocs_H3";function bw(e){return h.jsx($o,{...e,className:I(e.className,ZT),level:3})}var XT="vocs_H4";function jw(e){return h.jsx($o,{...e,className:I(e.className,XT),level:4})}var JT="vocs_H5";function Aw(e){return h.jsx($o,{...e,className:I(e.className,JT),level:5})}var qT="vocs_H6";function Mw(e){return h.jsx($o,{...e,className:I(e.className,qT),level:6})}function eR({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return Pw;if(r===3)return bw;if(r===4)return jw;if(r===5)return Aw;if(r===6)return Mw;throw new Error("Invalid.")})();return h.jsxs("div",{className:I(t,GT),children:[typeof n=="string"?h.jsx(o,{className:kw,children:n}):n,h.jsx("div",{className:YT,children:e})]})}var tR="vocs_Steps";function nR({children:e,className:t}){return h.jsx("div",{className:I(t,tR),children:e})}function rR({children:e}){return Array.isArray(e)?h.jsx(nR,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return h.jsx(eR,{title:m.cloneElement(r,{className:kw}),children:o},n)})}):null}var oR="vocs_Subtitle";function iR({children:e}){return h.jsx("div",{className:oR,role:"doc-subtitle",children:e})}function aR(e){const{layout:t}=$r(),n=I(e.className,KT);return e.className==="code-group"?h.jsx(WT,{...e,className:n}):"data-authors"in e?h.jsx(fw,{}):"data-blog-posts"in e?h.jsx(iT,{}):"data-sponsors"in e?h.jsx(pT,{}):"data-autolink-icon"in e&&t==="docs"?h.jsx(gT,{...e,className:n}):"data-vocs-steps"in e?h.jsx(rR,{...e,className:n}):e.role==="doc-subtitle"?h.jsx(iR,{...e}):h.jsx("div",{...e,className:n})}var lR="vocs_Figcaption";function sR(e){const t=I(e.className,lR);return h.jsx("figcaption",{...e,className:t})}var uR="vocs_Figure";function cR(e){const t=I(e.className,uR);return h.jsx("figure",{...e,className:t})}var fR="vocs_Header";function dR(e){return h.jsx("header",{...e,className:I(e.className,fR)})}var hR="vocs_HorizontalRule";function pR(e){return h.jsx("hr",{...e,className:I(e.className,hR)})}var vR="vocs_List_ordered",mR="vocs_List",gR="vocs_List_unordered";function bv({ordered:e,...t}){const n=e?"ol":"ul";return h.jsx(n,{...t,className:I(t.className,mR,e?vR:gR)})}var yR="vocs_ListItem";function wR(e){return h.jsx("li",{...e,className:I(e.className,yR)})}function xR(){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 CR="vocs_CopyButton";function ER(){return h.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[h.jsx("title",{children:"Checkmark"}),h.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 SR(){return h.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[h.jsx("title",{children:"Copy"}),h.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"}),h.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 _R({copy:e,copied:t}){return h.jsx("button",{className:CR,onClick:e,type:"button",children:t?h.jsx(ct,{label:"Copied",size:"14px",icon:ER}):h.jsx(ct,{label:"Copy",size:"18px",icon:SR})})}var TR="vocs_CodeBlock";function RR(e){return h.jsx("div",{...e,className:I(e.className,TR)})}function NR(){return h.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[h.jsx("title",{children:"File"}),h.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),h.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function kR(){return h.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[h.jsx("title",{children:"Terminal"}),h.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"}),h.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var PR="vocs_CodeTitle";function bR({children:e,className:t,language:n,...r}){return h.jsxs("div",{...r,className:I(t,PR),children:[n==="bash"?h.jsx(ct,{label:"Terminal",size:"14px",icon:kR,style:{marginTop:3}}):e.match(/\.(.*)$/)?h.jsx(ct,{label:"File",size:"14px",icon:NR,style:{marginTop:1}}):null,e]})}var jR="vocs_Pre",AR="vocs_Pre_wrapper";function MR({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=xR();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")?h.jsxs(RR,{children:[n["data-title"]&&h.jsx(bR,{language:n["data-lang"],children:n["data-title"]}),c]}):c)(h.jsx("div",{className:I(AR),children:h.jsxs("pre",{ref:i,...n,className:I(t,jR),children:["data-language"in n&&h.jsx(_R,{copied:r,copy:o}),l]})}))}var LR="vocs_Footnotes";function IR(e){return h.jsx("section",{...e,className:I(e.className,LR)})}var jv="vocs_Section";function OR(e){return"data-footnotes"in e?h.jsx(IR,{...e,className:I(e.className,jv)}):h.jsx("section",{...e,className:I(e.className,jv)})}var Av="vocs_Span";function ol(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Bc(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Xc(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function za(e){return(e==null?void 0:e.ownerDocument)||document}function DR(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Lw={...lf},FR=Lw.useInsertionEffect,zR=FR||(e=>e());function Jc(e){const t=m.useRef(()=>{});return zR(()=>{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)+$R++;function BR(){const[e,t]=m.useState(()=>Mv?Lv():void 0);return Mr(()=>{e==null&&t(Lv())},[]),m.useEffect(()=>{Mv=!0},[]),e}const HR=Lw.useId,Iw=HR||BR,UR=m.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:f,stroke:u,d,style:{transform:p,...w}={},...v}=t,C=Iw(),[y,g]=m.useState(!1);if(Mr(()=>{if(!o)return;Ft(o).direction==="rtl"&&g(!0)},[o]),!o)return null;const x=c*2,E=x/2,_=a/2*(s/-8+1),S=l/2*s/4,[T,R]=r.split("-"),k=!!d,b=T==="top"||T==="bottom",O=f&&R==="end"?"bottom":"top";let z=f&&R==="end"?"right":"left";f&&y&&(z=R==="end"?"left":"right");const H=(i==null?void 0:i.x)!=null?f||i.x:"",A=(i==null?void 0:i.y)!=null?f||i.y:"",W=d||"M0,0"+(" H"+a)+(" L"+(a-_)+","+(l-S))+(" Q"+a/2+","+l+" "+_+","+(l-S))+" Z",U={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[T];return m.createElement("svg",qc({},v,{"aria-hidden":!0,ref:n,width:k?a:a+x,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[z]:H,[O]:A,[T]:b||k?"100%":"calc(100% - "+x/2+"px)",transform:""+U+(p??""),...w}}),x>0&&m.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:u,strokeWidth:x+(d?0:1),d:W}),m.createElement("path",{stroke:x&&!d?v.fill:"none",d:W}),m.createElement("clipPath",{id:C},m.createElement("rect",{x:-E,y:E*(k?-1:1),width:a+x,height:a})))});function VR(){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 WR=m.createContext(null),KR=m.createContext(null),Ow=()=>{var e;return((e=m.useContext(WR))==null?void 0:e.id)||null},Dw=()=>m.useContext(KR);function YR(e){return"data-floating-ui-"+e}function Cu(e){const t=m.useRef(e);return Mr(()=>{t.current=e}),t}const Iv=YR("safe-polygon");function Eu(e,t,n){return n&&!Xc(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function GR(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,p=Dw(),w=Ow(),v=Cu(c),C=Cu(s),y=Cu(n),g=m.useRef(),x=m.useRef(-1),E=m.useRef(),_=m.useRef(-1),S=m.useRef(!0),T=m.useRef(!1),R=m.useRef(()=>{}),k=m.useCallback(()=>{var W;const U=(W=o.current.openEvent)==null?void 0:W.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[o]);m.useEffect(()=>{if(!l)return;function W(U){let{open:$}=U;$||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0)}return i.on("openchange",W),()=>{i.off("openchange",W)}},[l,i]),m.useEffect(()=>{if(!l||!v.current||!n)return;function W($){k()&&r(!1,$,"hover")}const U=za(a.floating).documentElement;return U.addEventListener("mouseleave",W),()=>{U.removeEventListener("mouseleave",W)}},[a.floating,n,r,l,v,k]);const b=m.useCallback(function(W,U,$){U===void 0&&(U=!0),$===void 0&&($="hover");const M=Eu(C.current,"close",g.current);M&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,W,$),M)):U&&(clearTimeout(x.current),r(!1,W,$))},[C,r]),O=Jc(()=>{R.current(),E.current=void 0}),z=Jc(()=>{if(T.current){const W=za(a.floating).body;W.style.pointerEvents="",W.removeAttribute(Iv),T.current=!1}});m.useEffect(()=>{if(!l)return;function W(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function U(B){if(clearTimeout(x.current),S.current=!1,f&&!Xc(g.current)||u>0&&!Eu(C.current,"open"))return;const Z=Eu(C.current,"open",g.current);Z?x.current=window.setTimeout(()=>{y.current||r(!0,B,"hover")},Z):r(!0,B,"hover")}function $(B){if(W())return;R.current();const Z=za(a.floating);if(clearTimeout(_.current),v.current&&o.current.floatingContext){n||clearTimeout(x.current),E.current=v.current({...o.current.floatingContext,tree:p,x:B.clientX,y:B.clientY,onClose(){z(),O(),b(B,!0,"safe-polygon")}});const Fe=E.current;Z.addEventListener("mousemove",Fe),R.current=()=>{Z.removeEventListener("mousemove",Fe)};return}(g.current==="touch"?!ol(a.floating,B.relatedTarget):!0)&&b(B)}function M(B){W()||o.current.floatingContext&&(v.current==null||v.current({...o.current.floatingContext,tree:p,x:B.clientX,y:B.clientY,onClose(){z(),O(),b(B)}})(B))}if(Ye(a.domReference)){var D;const B=a.domReference;return n&&B.addEventListener("mouseleave",M),(D=a.floating)==null||D.addEventListener("mouseleave",M),d&&B.addEventListener("mousemove",U,{once:!0}),B.addEventListener("mouseenter",U),B.addEventListener("mouseleave",$),()=>{var Z;n&&B.removeEventListener("mouseleave",M),(Z=a.floating)==null||Z.removeEventListener("mouseleave",M),d&&B.removeEventListener("mousemove",U),B.removeEventListener("mouseenter",U),B.removeEventListener("mouseleave",$)}}},[a,l,e,f,u,d,b,O,z,r,n,y,p,C,v,o]),Mr(()=>{var W;if(l&&n&&(W=v.current)!=null&&W.__options.blockPointerEvents&&k()){const $=za(a.floating).body;$.setAttribute(Iv,""),$.style.pointerEvents="none",T.current=!0;const M=a.floating;if(Ye(a.domReference)&&M){var U;const D=a.domReference,B=p==null||(U=p.nodesRef.current.find(Z=>Z.id===w))==null||(U=U.context)==null?void 0:U.elements.floating;return B&&(B.style.pointerEvents=""),D.style.pointerEvents="auto",M.style.pointerEvents="auto",()=>{D.style.pointerEvents="",M.style.pointerEvents=""}}}},[l,n,w,a,p,v,k]),Mr(()=>{n||(g.current=void 0,O(),z())},[n,O,z]),m.useEffect(()=>()=>{O(),clearTimeout(x.current),clearTimeout(_.current),z()},[l,a.domReference,O,z]);const H=m.useMemo(()=>{function W(U){g.current=U.pointerType}return{onPointerDown:W,onPointerEnter:W,onMouseMove(U){const{nativeEvent:$}=U;function M(){!S.current&&!y.current&&r(!0,$,"hover")}f&&!Xc(g.current)||n||u===0||(clearTimeout(_.current),g.current==="touch"?M():_.current=window.setTimeout(M,u))}}},[f,r,n,y,u]),A=m.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(W){b(W.nativeEvent,!1)}}),[b]);return m.useMemo(()=>l?{reference:H,floating:A}:{},[l,H,A])}function QR(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function ZR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Iw(),i=m.useRef({}),[a]=m.useState(()=>VR()),l=Ow()!=null,[s,c]=m.useState(r.reference),f=Jc((p,w,v)=>{i.current.openEvent=p?w:void 0,a.emit("openchange",{open:p,event:w,reason:v,nested:l}),n==null||n(p,w,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 XR(e){e===void 0&&(e={});const{nodeId:t}=e,n=ZR({...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=Dw();Mr(()=>{f&&(u.current=f)},[f]);const p=Cy({...e,elements:{...o,...l&&{reference:l}}}),w=m.useCallback(x=>{const E=Ye(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),v=m.useCallback(x=>{(Ye(x)||x===null)&&(u.current=x,a(x)),(Ye(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!Ye(x))&&p.refs.setReference(x)},[p.refs]),C=m.useMemo(()=>({...p.refs,setReference:v,setPositionReference:w,domReference:u}),[p.refs,v,w]),y=m.useMemo(()=>({...p.elements,domReference:f}),[p.elements,f]),g=m.useMemo(()=>({...p,...r,refs:C,elements:y,nodeId:t}),[p,C,y,t,r]);return Mr(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=g)}),m.useMemo(()=>({...p,context:g,refs:C,elements:y}),[p,C,y,g])}const Ov="active",Dv="selected";function Su(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Ov]:a,[Dv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[c,f]=s;if(!(o&&[Ov,Dv].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,p=arguments.length,w=new Array(p),v=0;vC(...w)).find(C=>C!==void 0)}}}else a[c]=f}),a),{})}}function JR(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=>Su(l,e,"reference"),t),i=m.useCallback(l=>Su(l,e,"floating"),n),a=m.useCallback(l=>Su(l,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}function Fv(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 qR(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function eN(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 p=performance.now(),w=p-s;if(a===null||l===null||w===0)return a=u,l=d,s=p,null;const v=u-a,C=d-l,g=Math.sqrt(v*v+C*C)/w;return a=u,l=d,s=p,g}const f=u=>{let{x:d,y:p,placement:w,elements:v,onClose:C,nodeId:y,tree:g}=u;return function(E){function _(){clearTimeout(o),C()}if(clearTimeout(o),!v.domReference||!v.floating||w==null||d==null||p==null)return;const{clientX:S,clientY:T}=E,R=[S,T],k=DR(E),b=E.type==="mouseleave",O=ol(v.floating,k),z=ol(v.domReference,k),H=v.domReference.getBoundingClientRect(),A=v.floating.getBoundingClientRect(),W=w.split("-")[0],U=d>A.right-A.width/2,$=p>A.bottom-A.height/2,M=qR(R,H),D=A.width>H.width,B=A.height>H.height,Z=(D?H:A).left,le=(D?H:A).right,Fe=(B?H:A).top,Ee=(B?H:A).bottom;if(O&&(i=!0,!b))return;if(z&&(i=!1),z&&!b){i=!0;return}if(b&&Ye(E.relatedTarget)&&ol(v.floating,E.relatedTarget)||g&&QR(g.nodesRef.current,y).some(tt=>{let{context:ve}=tt;return ve==null?void 0:ve.open}))return;if(W==="top"&&p>=H.bottom-1||W==="bottom"&&p<=H.top+1||W==="left"&&d>=H.right-1||W==="right"&&d<=H.left+1)return _();let He=[];switch(W){case"top":He=[[Z,H.top+1],[Z,A.bottom-1],[le,A.bottom-1],[le,H.top+1]];break;case"bottom":He=[[Z,A.top+1],[Z,H.bottom-1],[le,H.bottom-1],[le,A.top+1]];break;case"left":He=[[A.right-1,Ee],[A.right-1,Fe],[H.left+1,Fe],[H.left+1,Ee]];break;case"right":He=[[H.right-1,Ee],[H.right-1,Fe],[A.left+1,Fe],[A.left+1,Ee]];break}function Ue(tt){let[ve,Me]=tt;switch(W){case"top":{const Pt=[D?ve+t/2:U?ve+t*4:ve-t*4,Me+t+1],bt=[D?ve-t/2:U?ve+t*4:ve-t*4,Me+t+1],we=[[A.left,U||D?A.bottom-t:A.top],[A.right,U?D?A.bottom-t:A.top:A.bottom-t]];return[Pt,bt,...we]}case"bottom":{const Pt=[D?ve+t/2:U?ve+t*4:ve-t*4,Me-t],bt=[D?ve-t/2:U?ve+t*4:ve-t*4,Me-t],we=[[A.left,U||D?A.top+t:A.bottom],[A.right,U?D?A.top+t:A.bottom:A.top+t]];return[Pt,bt,...we]}case"left":{const Pt=[ve+t+1,B?Me+t/2:$?Me+t*4:Me-t*4],bt=[ve+t+1,B?Me-t/2:$?Me+t*4:Me-t*4];return[...[[$||B?A.right-t:A.left,A.top],[$?B?A.right-t:A.left:A.right-t,A.bottom]],Pt,bt]}case"right":{const Pt=[ve-t,B?Me+t/2:$?Me+t*4:Me-t*4],bt=[ve-t,B?Me-t/2:$?Me+t*4:Me-t*4],we=[[$||B?A.left+t:A.right,A.top],[$?B?A.left+t:A.right:A.left+t,A.bottom]];return[Pt,bt,...we]}}}if(!Fv([S,T],He)){if(i&&!M)return _();if(!b&&r){const tt=c(E.clientX,E.clientY);if(tt!==null&&tt<.1)return _()}Fv([S,T],Ue([d,p]))?!i&&r&&(o=window.setTimeout(_,40)):_()}}};return f.__options={blockPointerEvents:n},f}function tN({children:e,...t}){const[n,r]=e,o=m.useRef(null),[i,a]=m.useState(!1),{context:l,refs:s,floatingStyles:c}=XR({middleware:[_y({element:o}),Ey(8),Sy()],open:i,onOpenChange:a,placement:"bottom-start"}),f=GR(l,{handleClose:eN()}),{getReferenceProps:u,getFloatingProps:d}=JR([f]),p=r.props.children,w=n.props.children;return h.jsxs("span",{...t,children:[h.jsx("span",{className:"twoslash-target",ref:s.setReference,...u(),children:p}),i&&h.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:c,...d(),children:[h.jsx(UR,{ref:o,context:l,fill:Mp.background5,height:3,stroke:Mp.border2,strokeWidth:1,width:7}),h.jsx("div",{className:"twoslash-popup-scroll-container",children:w})]})]})}function nN(e){var n;const t=I(e.className,Av);return(n=e.className)!=null&&n.includes("twoslash-hover")?h.jsx(tN,{...e,className:t}):h.jsx("span",{...e,className:I(e.className,Av)})}var rN="vocs_CalloutTitle";function oN({className:e,children:t}){return h.jsx("strong",{className:I(e,rN),children:t})}var zv="vocs_Strong";function iN(e){return"data-callout-title"in e&&typeof e.children=="string"?h.jsx(oN,{...e,className:I(e.className,zv),children:e.children}):h.jsx("strong",{...e,className:I(e.className,zv)})}var aN="vocs_Summary";function lN(e){return h.jsx("summary",{...e,className:I(e.className,aN)})}var sN="vocs_Table";function uN(e){return h.jsx("table",{...e,className:I(e.className,sN)})}var cN="vocs_TableCell";function fN(e){return h.jsx("td",{...e,className:I(e.className,cN)})}var dN="vocs_TableHeader";function hN(e){return h.jsx("th",{...e,className:I(e.className,dN)})}var pN="vocs_TableRow";function vN(e){return h.jsx("tr",{...e,className:I(e.className,pN)})}const mN={a:j9,aside:B9,blockquote:U9,code:W9,details:G9,div:aR,pre:MR,header:dR,figcaption:sR,figure:cR,h1:_0,h2:Pw,h3:bw,h4:jw,h5:Aw,h6:Mw,hr:pR,kd:p1,li:wR,ol:e=>h.jsx(bv,{ordered:!0,...e}),p:T0,section:OR,span:nN,strong:iN,summary:lN,table:uN,td:fN,th:hN,tr:vN,ul:e=>h.jsx(bv,{ordered:!1,...e})};function gN(){const{pathname:e}=De(),t=Qe(),{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 ef(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=De(),l=m.useRef();return m.useEffect(()=>{l.current=a}),h.jsxs(h.Fragment,{children:[h.jsx(yN,{frontmatter:r}),typeof window<"u"&&h.jsx(e5,{}),h.jsx(L7,{components:mN,children:h.jsx(g_,{frontmatter:r,path:i,children:h.jsx(k0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function yN({frontmatter:e}){var u,d,p,w,v,C;const t=Qe(),n=gN(),{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 h.jsxs(Qc,{defaultTitle:t.title,titleTemplate:c?t.titleTemplate:void 0,children:[l&&h.jsx("title",{children:l}),r&&!0&&!f&&h.jsx("base",{href:r}),s!=="undefined"&&h.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&h.jsx("link",{rel:"icon",href:i,type:_u(i)}),i&&typeof i!="string"&&h.jsx("link",{rel:"icon",href:i.light,type:_u(i.light)}),i&&typeof i!="string"&&h.jsx("link",{rel:"icon",href:i.dark,type:_u(i.dark),media:"(prefers-color-scheme: dark)"}),h.jsx("meta",{property:"og:type",content:"website"}),h.jsx("meta",{property:"og:title",content:l||t.title}),r&&h.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&h.jsx("meta",{property:"og:description",content:s}),n&&h.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))&&h.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(((p=o==null?void 0:o.default)==null?void 0:p.google)||((w=o==null?void 0:o.mono)==null?void 0:w.google))&&h.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),((v=o==null?void 0:o.default)==null?void 0:v.google)&&h.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)&&h.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.mono.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),h.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&h.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 _u(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 wN=(()=>{const e=ld.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:h.jsx(ef,{frontmatter:t,path:e.path,children:h.jsx(Vc,{children:h.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:h.jsx(ef,{frontmatter:{layout:"minimal"},path:"*",children:h.jsx(Vc,{children:h.jsx(_5,{})})})}})(),$v=[...ld.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:h.jsx(ef,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:h.jsx(Vc,{children:h.jsx(n.default,{})})})}}})),wN];async function xN(e,t){var r;const n=(r=Un(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 CN(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}EN();async function EN(){const e=w0().basePath;await xN($v,e),CN();const t=$C($v,{basename:e});qg(document.getElementById("app"),h.jsx(s5,{children:h.jsx(QC,{router:t})}))}export{h as j,M7 as u};