Files
proxy_web_site/static/js/4111-8655188d621cfead.js
2025-07-12 15:34:14 +08:00

10 lines
118 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4111],{258:e=>{e.exports={style:{fontFamily:"'Roboto', 'Roboto Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_c0b207",variable:"__variable_c0b207"}},4441:e=>{e.exports={style:{fontFamily:"'Space Mono', monospace",fontStyle:"normal"},className:"__className_26f283",variable:"__variable_26f283"}},5047:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(16101),t),o(n(46794),t),o(n(65163),t),o(n(84e3),t),o(n(79779),t),o(n(77453),t),o(n(80962),t),o(n(12930),t),o(n(98971),t),o(n(53978),t),o(n(75989),t),o(n(48292),t),o(n(79487),t),o(n(49254),t),o(n(8292),t),o(n(17853),t),o(n(79957),t),o(n(57621),t),o(n(42024),t),o(n(47381),t),o(n(15415),t),o(n(59444),t),o(n(8247),t),o(n(31507),t),o(n(85237),t),o(n(9104),t),o(n(84010),t),o(n(44873),t),o(n(86504),t),o(n(68340),t),o(n(15830),t),o(n(40648),t),o(n(46786),t),o(n(37120),t),o(n(61060),t),o(n(68250),t),o(n(62860),t),o(n(52535),t),o(n(33532),t),o(n(79088),t),o(n(68429),t),o(n(81295),t),o(n(7140),t),o(n(44997),t),o(n(42652),t),o(n(64791),t),o(n(91251),t),o(n(14701),t),o(n(91181),t),o(n(51441),t),o(n(56541),t),o(n(78143),t),o(n(58834),t),o(n(83784),t),o(n(88644),t),o(n(46164),t),o(n(83715),t),o(n(34029),t),o(n(48356),t),o(n(85898),t),o(n(73431),t),o(n(10896),t),o(n(43991),t),o(n(40582),t),o(n(52782),t),o(n(37206),t),o(n(84922),t),o(n(82110),t),o(n(58394),t),o(n(92088),t),o(n(65219),t)},5989:e=>{e.exports={style:{fontFamily:"'Inconsolata', monospace",fontStyle:"normal"},className:"__className_7974c1",variable:"__variable_7974c1"}},6878:(e,t,n)=>{"use strict";n.d(t,{UC:()=>n8,q7:()=>n7,ZL:()=>n2,bL:()=>n1,Pb:()=>n5,G5:()=>n3,ZP:()=>n9,l9:()=>n4});var r,o,l,a,i=n(7620),u=n.t(i,2);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():c(e[t],null)}}}}var f=n(54568),p=globalThis?.document?i.useLayoutEffect:()=>{},v=u[" useInsertionEffect ".trim().toString()]||p;function m({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return v(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[s,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}Symbol("RADIX:SYNC_STATE");var y=n(97509),h=Symbol("radix.slottable");function g(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,a=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?d(t,a):a),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(g);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,f.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(o?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function w(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var E=n(67198),_=n(86111),x=n(79807);function C(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,s=i.useMemo(()=>a,Object.values(a));return(0,f.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||o,s=i.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function R(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function M(...e){return t=>{let n=!1,r=e.map(e=>{let r=R(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():R(e[t],null)}}}}function j(...e){return i.useCallback(M(...e),e)}function N(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,a=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?M(t,a):a),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(S);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,f.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var O=Symbol("radix.slottable");function S(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===O}var P=new WeakMap;function k(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=T(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function T(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap;var L=i.createContext(void 0),D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=N(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(o?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function A(e,t){e&&y.flushSync(()=>e.dispatchEvent(t))}function I(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var F="dismissableLayer.update",W=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...p}=e,v=i.useContext(W),[m,y]=i.useState(null),h=null!=(r=null==m?void 0:m.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,g]=i.useState({}),b=j(t,e=>y(e)),E=Array.from(v.layers),[_]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),x=E.indexOf(_),C=m?E.indexOf(m):-1,R=v.layersWithOutsidePointerEventsDisabled.size>0,M=C>=x,N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=I(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){V("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));M&&!n&&(null==u||u(e),null==c||c(e),e.defaultPrevented||null==d||d())},h),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=I(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&V("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...v.branches].some(e=>e.contains(t))&&(null==s||s(e),null==c||c(e),e.defaultPrevented||null==d||d())},h);return!function(e,t=globalThis?.document){let n=I(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{C===v.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},h),i.useEffect(()=>{if(m)return o&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(l=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(m)),v.layers.add(m),K(),()=>{o&&1===v.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=l)}},[m,h,o,v]),i.useEffect(()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),K())},[m,v]),i.useEffect(()=>{let e=()=>g({});return document.addEventListener(F,e),()=>document.removeEventListener(F,e)},[]),(0,f.jsx)(D.div,{...p,ref:b,style:{pointerEvents:R?M?"auto":"none":void 0,...e.style},onFocusCapture:w(e.onFocusCapture,O.onFocusCapture),onBlurCapture:w(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:w(e.onPointerDownCapture,N.onPointerDownCapture)})});function K(){let e=new CustomEvent(F);document.dispatchEvent(e)}function V(e,t,n,r){let{discrete:o}=r,l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),o?A(l,a):l.dispatchEvent(a)}U.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(W),r=i.useRef(null),o=j(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(D.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var B=0;function $(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z="focusScope.autoFocusOnMount",q="focusScope.autoFocusOnUnmount",Y={bubbles:!1,cancelable:!0},H=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[u,s]=i.useState(null),c=I(o),d=I(l),p=i.useRef(null),v=j(t,e=>s(e)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:Z(p.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||Z(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Z(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,m.paused]),i.useEffect(()=>{if(u){J.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(z,Y);u.addEventListener(z,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(Z(r,{select:t}),document.activeElement!==n)return}(G(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Z(u))}return()=>{u.removeEventListener(z,c),setTimeout(()=>{let t=new CustomEvent(q,Y);u.addEventListener(q,d),u.dispatchEvent(t),t.defaultPrevented||Z(null!=e?e:document.body,{select:!0}),u.removeEventListener(q,d),J.remove(m)},0)}}},[u,c,d,m]);let y=i.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,l]=function(e){let t=G(e);return[X(t,e),X(t.reverse(),e)]}(t);r&&l?e.shiftKey||o!==l?e.shiftKey&&o===r&&(e.preventDefault(),n&&Z(l,{select:!0})):(e.preventDefault(),n&&Z(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,f.jsx)(D.div,{tabIndex:-1,...a,ref:v,onKeyDown:y})});function G(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function X(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function Z(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}H.displayName="FocusScope";var J=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=Q(e,t)).unshift(t)},remove(t){var n;null==(n=(e=Q(e,t))[0])||n.resume()}}}();function Q(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var ee=globalThis?.document?i.useLayoutEffect:()=>{},et=u[" useId ".trim().toString()]||(()=>void 0),en=0;function er(e){let[t,n]=i.useState(et());return ee(()=>{e||n(e=>e??String(en++))},[e]),e||(t?`radix-${t}`:"")}var eo=n(60496),el=n(95230),ea=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...l}=e;return(0,f.jsx)(D.svg,{...l,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ea.displayName="Arrow";var ei=globalThis?.document?i.useLayoutEffect:()=>{},eu="Popper",[es,ec]=C(eu),[ed,ef]=es(eu),ep=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,f.jsx)(ed,{scope:t,anchor:r,onAnchorChange:o,children:n})};ep.displayName=eu;var ev="PopperAnchor",em=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=ef(ev,n),a=i.useRef(null),u=j(t,a);return i.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,f.jsx)(D.div,{...o,ref:u})});em.displayName=ev;var ey="PopperContent",[eh,eg]=es(ey),eb=i.forwardRef((e,t)=>{var n,r,o,l,a,u,s,c;let{__scopePopper:d,side:p="bottom",sideOffset:v=0,align:m="center",alignOffset:y=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:b=[],collisionPadding:w=0,sticky:E="partial",hideWhenDetached:_=!1,updatePositionStrategy:x="optimized",onPlaced:C,...R}=e,M=ef(ey,d),[N,O]=i.useState(null),S=j(t,e=>O(e)),[P,k]=i.useState(null),T=function(e){let[t,n]=i.useState(void 0);return ei(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(P),L=null!=(s=null==T?void 0:T.width)?s:0,A=null!=(c=null==T?void 0:T.height)?c:0,F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},W=Array.isArray(b)?b:[b],U=W.length>0,K={padding:F,boundary:W.filter(ex),altBoundary:U},{refs:V,floatingStyles:B,placement:$,isPositioned:z,middlewareData:q}=(0,eo.we)({strategy:"fixed",placement:p+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,el.ll)(...t,{animationFrame:"always"===x})},elements:{reference:M.anchor},middleware:[(0,eo.cY)({mainAxis:v+A,alignmentAxis:y}),g&&(0,eo.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(0,eo.ER)():void 0,...K}),g&&(0,eo.UU)({...K}),(0,eo.Ej)({...K,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:l,height:a}=n.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(r,"px")),i.setProperty("--radix-popper-available-height","".concat(o,"px")),i.setProperty("--radix-popper-anchor-width","".concat(l,"px")),i.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),P&&(0,eo.UE)({element:P,padding:h}),eC({arrowWidth:L,arrowHeight:A}),_&&(0,eo.jD)({strategy:"referenceHidden",...K})]}),[Y,H]=eR($),G=I(C);ei(()=>{z&&(null==G||G())},[z,G]);let X=null==(n=q.arrow)?void 0:n.x,Z=null==(r=q.arrow)?void 0:r.y,J=(null==(o=q.arrow)?void 0:o.centerOffset)!==0,[Q,ee]=i.useState();return ei(()=>{N&&ee(window.getComputedStyle(N).zIndex)},[N]),(0,f.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:z?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null==(l=q.transformOrigin)?void 0:l.x,null==(a=q.transformOrigin)?void 0:a.y].join(" "),...(null==(u=q.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(eh,{scope:d,placedSide:Y,onArrowChange:k,arrowX:X,arrowY:Z,shouldHideArrow:J,children:(0,f.jsx)(D.div,{"data-side":Y,"data-align":H,...R,ref:S,style:{...R.style,animation:z?void 0:"none"}})})})});eb.displayName=ey;var ew="PopperArrow",eE={top:"bottom",right:"left",bottom:"top",left:"right"},e_=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eg(ew,n),l=eE[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(ea,{...r,ref:t,style:{...r.style,display:"block"}})})});function ex(e){return null!==e}e_.displayName=ew;var eC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,l,a;let{placement:i,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=eR(i),m={start:"0%",center:"50%",end:"100%"}[v],y=(null!=(l=null==(r=s.arrow)?void 0:r.x)?l:0)+d/2,h=(null!=(a=null==(o=s.arrow)?void 0:o.y)?a:0)+f/2,g="",b="";return"bottom"===p?(g=c?m:"".concat(y,"px"),b="".concat(-f,"px")):"top"===p?(g=c?m:"".concat(y,"px"),b="".concat(u.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),b=c?m:"".concat(h,"px")):"left"===p&&(g="".concat(u.floating.width+f,"px"),b=c?m:"".concat(h,"px")),{data:{x:g,y:b}}}});function eR(e){let[t,n="center"]=e.split("-");return[t,n]}var eM=globalThis?.document?i.useLayoutEffect:()=>{},ej=i.forwardRef((e,t)=>{var n,r;let{container:o,...l}=e,[a,u]=i.useState(!1);eM(()=>u(!0),[]);let s=o||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return s?y.createPortal((0,f.jsx)(D.div,{...l,ref:t}),s):null});ej.displayName="Portal";var eN=globalThis?.document?i.useLayoutEffect:()=>{},eO=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),a=i.useRef(e),u=i.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=eS(l.current);u.current="mounted"===s?e:"none"},[s]),eN(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=eS(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),eN(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=eS(l.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=eS(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),l=j(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:l}):null};function eS(e){return(null==e?void 0:e.animationName)||"none"}function eP(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function ek(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,s=i.useMemo(()=>a,Object.values(a));return(0,f.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||o,s=i.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function eT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eL(...e){return t=>{let n=!1,r=e.map(e=>{let r=eT(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():eT(e[t],null)}}}}function eD(...e){return i.useCallback(eL(...e),e)}function eA(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,a=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?eL(t,a):a),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(eF);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,f.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}eO.displayName="Presence";var eI=Symbol("radix.slottable");function eF(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eI}var eW=new WeakMap;function eU(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=eK(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function eK(e){return e!=e||0===e?0:Math.trunc(e)}a=new WeakMap;var eV=Symbol("radix.slottable");function eB(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eV}var e$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,a=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?eL(t,a):a),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(eB);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,f.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(o?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ez=globalThis?.document?i.useLayoutEffect:()=>{},eq=u[" useInsertionEffect ".trim().toString()]||ez,eY=(Symbol("RADIX:SYNC_STATE"),i.createContext(void 0)),eH="rovingFocusGroup.onEntryFocus",eG={bubbles:!1,cancelable:!0},eX="RovingFocusGroup",[eZ,eJ,eQ]=function(e){let t=e+"CollectionProvider",[n,r]=ek(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",s=eA(u),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=eD(t,l(u,n).collectionRef);return(0,f.jsx)(s,{ref:o,children:r})});c.displayName=u;let d=e+"CollectionItemSlot",p="data-radix-collection-item",v=eA(d),m=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),u=eD(t,a),s=l(d,n);return i.useEffect(()=>(s.itemMap.set(a,{ref:a,...o}),()=>void s.itemMap.delete(a))),(0,f.jsx)(v,{...{[p]:""},ref:u,children:r})});return m.displayName=d,[{Provider:a,Slot:c,ItemSlot:m},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(eX),[e0,e1]=ek(eX,[eQ]),[e4,e2]=e0(eX),e8=i.forwardRef((e,t)=>(0,f.jsx)(eZ.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(eZ.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(e7,{...e,ref:t})})}));e8.displayName=eX;var e7=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:a,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,v=i.useRef(null),m=eD(t,v),y=function(e){let t=i.useContext(eY);return e||t||"ltr"}(l),[h,g]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return eq(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[s,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}({prop:a,defaultProp:null!=u?u:null,onChange:s,caller:eX}),[b,w]=i.useState(!1),E=function(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}(c),_=eJ(n),x=i.useRef(!1),[C,R]=i.useState(0);return i.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(eH,E),()=>e.removeEventListener(eH,E)},[E]),(0,f.jsx)(e4,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:h,onItemFocus:i.useCallback(e=>g(e),[g]),onItemShiftTab:i.useCallback(()=>w(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>R(e=>e-1),[]),children:(0,f.jsx)(e$.div,{tabIndex:b||0===C?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:eP(e.onMouseDown,()=>{x.current=!0}),onFocus:eP(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(eH,eG);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=_().filter(e=>e.focusable);e6([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),d)}}x.current=!1}),onBlur:eP(e.onBlur,()=>w(!1))})})}),e5="RovingFocusGroupItem",e9=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,children:a,...u}=e,s=er(),c=l||s,d=e2(e5,n),p=d.currentTabStopId===c,v=eJ(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:h}=d;return i.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),(0,f.jsx)(eZ.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:(0,f.jsx)(e$.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...u,ref:t,onMouseDown:eP(e.onMouseDown,e=>{r?d.onItemFocus(c):e.preventDefault()}),onFocus:eP(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:eP(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return e3[o]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>e6(n))}}),children:"function"==typeof a?a({isCurrentTabStop:p,hasTabStop:null!=h}):a})})});e9.displayName=e5;var e3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e6(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var te=n(23027),tt=function(){return(tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;Object.create;var tr=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),to="width-before-scroll-bar";function tl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ta="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ti=new WeakMap;function tu(e){return e}var ts=function(e){void 0===e&&(e={});var t,n,r,o,l=(t=null,void 0===n&&(n=tu),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var l=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(l)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return l.options=tt({async:!0,ssr:!1},e),l}(),tc=function(){},td=i.forwardRef(function(e,t){var n,r,o,l,a=i.useRef(null),u=i.useState({onScrollCapture:tc,onWheelCapture:tc,onTouchMoveCapture:tc}),s=u[0],c=u[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,m=e.enabled,y=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,w=e.allowPinchZoom,E=e.as,_=e.gapMode,x=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[a,t],r=function(e){return n.forEach(function(t){return tl(t,e)})},(o=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,l=o.facade,ta(function(){var e=ti.get(l);if(e){var t=new Set(e),r=new Set(n),o=l.current;t.forEach(function(e){r.has(e)||tl(e,null)}),r.forEach(function(e){t.has(e)||tl(e,o)})}ti.set(l,n)},[n]),l),R=tt(tt({},x),s);return i.createElement(i.Fragment,null,m&&i.createElement(h,{sideCar:ts,removeScrollBar:v,shards:y,noIsolation:g,inert:b,setCallbacks:c,allowPinchZoom:!!w,lockRef:a,gapMode:_}),d?i.cloneElement(i.Children.only(f),tt(tt({},R),{ref:C})):i.createElement(void 0===E?"div":E,tt({},R,{className:p,ref:C}),f))});td.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},td.classNames={fullWidth:to,zeroRight:tr};var tf=function(e){var t=e.sideCar,n=tn(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,tt({},n))};tf.isSideCarExport=!0;var tp=n(82081),tv=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,tp.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tm=function(){var e=tv();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ty=function(){var e=tm();return function(t){return e(t.styles,t.dynamic),null}},th={left:0,top:0,right:0,gap:0},tg=function(e){return parseInt(e||"",10)||0},tb=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tg(n),tg(r),tg(o)]},tw=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return th;var t=tb(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])}},tE=ty(),t_="data-scroll-locked",tx=function(e,t,n,r){var o=e.left,l=e.top,a=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(t_,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tr," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(to," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(tr," .").concat(tr," {\n right: 0 ").concat(r,";\n }\n \n .").concat(to," .").concat(to," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(t_,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},tC=function(){var e=parseInt(document.body.getAttribute(t_)||"0",10);return isFinite(e)?e:0},tR=function(){i.useEffect(function(){return document.body.setAttribute(t_,(tC()+1).toString()),function(){var e=tC()-1;e<=0?document.body.removeAttribute(t_):document.body.setAttribute(t_,e.toString())}},[])},tM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tR();var l=i.useMemo(function(){return tw(o)},[o]);return i.createElement(tE,{styles:tx(l,!t,o,n?"":"!important")})},tj=!1;if("undefined"!=typeof window)try{var tN=Object.defineProperty({},"passive",{get:function(){return tj=!0,!0}});window.addEventListener("test",tN,tN),window.removeEventListener("test",tN,tN)}catch(e){tj=!1}var tO=!!tj&&{passive:!1},tS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tP=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tk(e,r)){var o=tT(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tk=function(e,t){return"v"===e?tS(t,"overflowY"):tS(t,"overflowX")},tT=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tL=function(e,t,n,r,o){var l,a=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),i=a*r,u=n.target,s=t.contains(u),c=!1,d=i>0,f=0,p=0;do{var v=tT(e,u),m=v[0],y=v[1]-v[2]-a*m;(m||y)&&tk(e,u)&&(f+=y,p+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&i>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-i>p)&&(c=!0),c},tD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tA=function(e){return[e.deltaX,e.deltaY]},tI=function(e){return e&&"current"in e?e.current:e},tF=0,tW=[];let tU=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(tF++)[0],l=i.useState(ty)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tI),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,l=tD(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-l[0],s="deltaY"in e?e.deltaY:i[1]-l[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=tP(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tP(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return tL(p,t,e,"h"===p?u:s,!0)},[]),s=i.useCallback(function(e){if(tW.length&&tW[tW.length-1]===l){var n="deltaY"in e?tA(e):tD(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(tI).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var l={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})},1)},[]),d=i.useCallback(function(e){n.current=tD(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,tA(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,tD(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return tW.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,tO),document.addEventListener("touchmove",s,tO),document.addEventListener("touchstart",d,tO),function(){tW=tW.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,tO),document.removeEventListener("touchmove",s,tO),document.removeEventListener("touchstart",d,tO)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(tM,{gapMode:e.gapMode}):null)},ts.useMedium(r),tf);var tK=i.forwardRef(function(e,t){return i.createElement(td,tt({},e,{ref:t,sideCar:tU}))});tK.classNames=td.classNames;var tV=["Enter"," "],tB=["ArrowUp","PageDown","End"],t$=["ArrowDown","PageUp","Home",...tB],tz={ltr:[...tV,"ArrowRight"],rtl:[...tV,"ArrowLeft"]},tq={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tY="Menu",[tH,tG,tX]=function(e){let t=e+"CollectionProvider",[n,r]=C(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",s=N(u),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=j(t,l(u,n).collectionRef);return(0,f.jsx)(s,{ref:o,children:r})});c.displayName=u;let d=e+"CollectionItemSlot",p="data-radix-collection-item",v=N(d),m=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),u=j(t,a),s=l(d,n);return i.useEffect(()=>(s.itemMap.set(a,{ref:a,...o}),()=>void s.itemMap.delete(a))),(0,f.jsx)(v,{...{[p]:""},ref:u,children:r})});return m.displayName=d,[{Provider:a,Slot:c,ItemSlot:m},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(tY),[tZ,tJ]=C(tY,[tX,ec,e1]),tQ=ec(),t0=e1(),[t1,t4]=tZ(tY),[t2,t8]=tZ(tY),t7=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:a=!0}=e,u=tQ(t),[s,c]=i.useState(null),d=i.useRef(!1),p=I(l),v=function(e){let t=i.useContext(L);return e||t||"ltr"}(o);return i.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,f.jsx)(ep,{...u,children:(0,f.jsx)(t1,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:c,children:(0,f.jsx)(t2,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:a,children:r})})})};t7.displayName=tY;var t5=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tQ(n);return(0,f.jsx)(em,{...o,...r,ref:t})});t5.displayName="MenuAnchor";var t9="MenuPortal",[t3,t6]=tZ(t9,{forceMount:void 0}),ne=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,l=t4(t9,t);return(0,f.jsx)(t3,{scope:t,forceMount:n,children:(0,f.jsx)(eO,{present:n||l.open,children:(0,f.jsx)(ej,{asChild:!0,container:o,children:r})})})};ne.displayName=t9;var nt="MenuContent",[nn,nr]=tZ(nt),no=i.forwardRef((e,t)=>{let n=t6(nt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=t4(nt,e.__scopeMenu),a=t8(nt,e.__scopeMenu);return(0,f.jsx)(tH.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(eO,{present:r||l.open,children:(0,f.jsx)(tH.Slot,{scope:e.__scopeMenu,children:a.modal?(0,f.jsx)(nl,{...o,ref:t}):(0,f.jsx)(na,{...o,ref:t})})})})}),nl=i.forwardRef((e,t)=>{let n=t4(nt,e.__scopeMenu),r=i.useRef(null),o=j(t,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,te.Eq)(e)},[]),(0,f.jsx)(nu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:w(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),na=i.forwardRef((e,t)=>{let n=t4(nt,e.__scopeMenu);return(0,f.jsx)(nu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ni=N("MenuContent.ScrollLock"),nu=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEntryFocus:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:m,disableOutsideScroll:y,...h}=e,g=t4(nt,n),b=t8(nt,n),E=tQ(n),_=t0(n),x=tG(n),[C,R]=i.useState(null),M=i.useRef(null),N=j(t,M,g.onContentChange),O=i.useRef(0),S=i.useRef(""),P=i.useRef(0),k=i.useRef(null),T=i.useRef("right"),L=i.useRef(0),D=y?tK:i.Fragment,A=e=>{var t,n;let r=S.current+e,o=x().filter(e=>!e.disabled),l=document.activeElement,a=null==(t=o.find(e=>e.ref.current===l))?void 0:t.textValue,i=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=Math.max(l,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==n?i:void 0}(o.map(e=>e.textValue),r,a),u=null==(n=o.find(e=>e.textValue===i))?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};i.useEffect(()=>()=>window.clearTimeout(O.current),[]),i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:$()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:$()),B++,()=>{1===B&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),B--}},[]);let I=i.useCallback(e=>{var t,n;return T.current===(null==(t=k.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,l=t.length-1;e<t.length;l=e++){let a=t[e],i=t[l],u=a.x,s=a.y,c=i.x,d=i.y;s>r!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=k.current)?void 0:n.area)},[]);return(0,f.jsx)(nn,{scope:n,searchRef:S,onItemEnter:i.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:i.useCallback(e=>{var t;I(e)||(null==(t=M.current)||t.focus(),R(null))},[I]),onTriggerLeave:i.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:P,onPointerGraceIntentChange:i.useCallback(e=>{k.current=e},[]),children:(0,f.jsx)(D,{...y?{as:ni,allowPinchZoom:!0}:void 0,children:(0,f.jsx)(H,{asChild:!0,trapped:o,onMountAutoFocus:w(l,e=>{var t;e.preventDefault(),null==(t=M.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:(0,f.jsx)(U,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:m,children:(0,f.jsx)(e8,{asChild:!0,..._,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:R,onEntryFocus:w(s,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(eb,{role:"menu","aria-orientation":"vertical","data-state":nA(g.open),"data-radix-menu-content":"",dir:b.dir,...E,...h,ref:N,style:{outline:"none",...h.style},onKeyDown:w(h.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));let o=M.current;if(e.target!==o||!t$.includes(e.key))return;e.preventDefault();let l=x().filter(e=>!e.disabled).map(e=>e.ref.current);tB.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(l)}),onBlur:w(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),S.current="")}),onPointerMove:w(e.onPointerMove,nW(e=>{let t=e.target,n=L.current!==e.clientX;e.currentTarget.contains(t)&&n&&(T.current=e.clientX>L.current?"right":"left",L.current=e.clientX)}))})})})})})})});no.displayName=nt;var ns=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(D.div,{role:"group",...r,ref:t})});ns.displayName="MenuGroup";var nc=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(D.div,{...r,ref:t})});nc.displayName="MenuLabel";var nd="MenuItem",nf="menu.itemSelect",np=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,l=i.useRef(null),a=t8(nd,e.__scopeMenu),u=nr(nd,e.__scopeMenu),s=j(t,l),c=i.useRef(!1);return(0,f.jsx)(nv,{...o,ref:s,disabled:n,onClick:w(e.onClick,()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(nf,{bubbles:!0,cancelable:!0});e.addEventListener(nf,e=>null==r?void 0:r(e),{once:!0}),A(e,t),t.defaultPrevented?c.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),c.current=!0},onPointerUp:w(e.onPointerUp,e=>{var t;c.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:w(e.onKeyDown,e=>{let t=""!==u.searchRef.current;n||t&&" "===e.key||tV.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});np.displayName=nd;var nv=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...l}=e,a=nr(nd,n),u=t0(n),s=i.useRef(null),c=j(t,s),[d,p]=i.useState(!1),[v,m]=i.useState("");return i.useEffect(()=>{let e=s.current;if(e){var t;m((null!=(t=e.textContent)?t:"").trim())}},[l.children]),(0,f.jsx)(tH.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:v,children:(0,f.jsx)(e9,{asChild:!0,...u,focusable:!r,children:(0,f.jsx)(D.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:c,onPointerMove:w(e.onPointerMove,nW(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:w(e.onPointerLeave,nW(e=>a.onItemLeave(e))),onFocus:w(e.onFocus,()=>p(!0)),onBlur:w(e.onBlur,()=>p(!1))})})})}),nm=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,f.jsx)(nx,{scope:e.__scopeMenu,checked:n,children:(0,f.jsx)(np,{role:"menuitemcheckbox","aria-checked":nI(n)?"mixed":n,...o,ref:t,"data-state":nF(n),onSelect:w(o.onSelect,()=>null==r?void 0:r(!!nI(n)||!n),{checkForDefaultPrevented:!1})})})});nm.displayName="MenuCheckboxItem";var ny="MenuRadioGroup",[nh,ng]=tZ(ny,{value:void 0,onValueChange:()=>{}}),nb=i.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,l=I(r);return(0,f.jsx)(nh,{scope:e.__scopeMenu,value:n,onValueChange:l,children:(0,f.jsx)(ns,{...o,ref:t})})});nb.displayName=ny;var nw="MenuRadioItem",nE=i.forwardRef((e,t)=>{let{value:n,...r}=e,o=ng(nw,e.__scopeMenu),l=n===o.value;return(0,f.jsx)(nx,{scope:e.__scopeMenu,checked:l,children:(0,f.jsx)(np,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":nF(l),onSelect:w(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});nE.displayName=nw;var n_="MenuItemIndicator",[nx,nC]=tZ(n_,{checked:!1}),nR=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,l=nC(n_,n);return(0,f.jsx)(eO,{present:r||nI(l.checked)||!0===l.checked,children:(0,f.jsx)(D.span,{...o,ref:t,"data-state":nF(l.checked)})})});nR.displayName=n_;var nM=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(D.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});nM.displayName="MenuSeparator";var nj=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tQ(n);return(0,f.jsx)(e_,{...o,...r,ref:t})});nj.displayName="MenuArrow";var nN="MenuSub",[nO,nS]=tZ(nN),nP=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,l=t4(nN,t),a=tQ(t),[u,s]=i.useState(null),[c,d]=i.useState(null),p=I(o);return i.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,f.jsx)(ep,{...a,children:(0,f.jsx)(t1,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:d,children:(0,f.jsx)(nO,{scope:t,contentId:er(),triggerId:er(),trigger:u,onTriggerChange:s,children:n})})})};nP.displayName=nN;var nk="MenuSubTrigger",nT=i.forwardRef((e,t)=>{let n=t4(nk,e.__scopeMenu),r=t8(nk,e.__scopeMenu),o=nS(nk,e.__scopeMenu),l=nr(nk,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:s}=l,c={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),s(null)}},[u,s]),(0,f.jsx)(t5,{asChild:!0,...c,children:(0,f.jsx)(nv,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":nA(n.open),...e,ref:M(t,o.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:w(e.onPointerMove,nW(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||a.current||(l.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100)))})),onPointerLeave:w(e.onPointerLeave,nW(e=>{var t,r;d();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,a="right"===t,i=o[a?"left":"right"],s=o[a?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:s,y:o.top},{x:s,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:w(e.onKeyDown,t=>{let o=""!==l.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&tz[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null==(a=n.content)||a.focus(),t.preventDefault()}})})})});nT.displayName=nk;var nL="MenuSubContent",nD=i.forwardRef((e,t)=>{let n=t6(nt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=t4(nt,e.__scopeMenu),a=t8(nt,e.__scopeMenu),u=nS(nL,e.__scopeMenu),s=i.useRef(null),c=j(t,s);return(0,f.jsx)(tH.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(eO,{present:r||l.open,children:(0,f.jsx)(tH.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(nu,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null==(t=s.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:w(e.onFocusOutside,e=>{e.target!==u.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:w(e.onEscapeKeyDown,e=>{a.onClose(),e.preventDefault()}),onKeyDown:w(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tq[a.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null==(r=u.trigger)||r.focus(),e.preventDefault()}})})})})})});function nA(e){return e?"open":"closed"}function nI(e){return"indeterminate"===e}function nF(e){return nI(e)?"indeterminate":e?"checked":"unchecked"}function nW(e){return t=>"mouse"===t.pointerType?e(t):void 0}nD.displayName=nL;var nU="DropdownMenu",[nK,nV]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,s=i.useMemo(()=>a,Object.values(a));return(0,f.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||o,s=i.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(nU,[tJ]),nB=tJ(),[n$,nz]=nK(nU),nq=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:l,onOpenChange:a,modal:u=!0}=e,s=nB(t),c=i.useRef(null),[d,p]=m({prop:o,defaultProp:null!=l&&l,onChange:a,caller:nU});return(0,f.jsx)(n$,{scope:t,triggerId:er(),triggerRef:c,contentId:er(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,f.jsx)(t7,{...s,open:d,onOpenChange:p,dir:r,modal:u,children:n})})};nq.displayName=nU;var nY="DropdownMenuTrigger",nH=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,l=nz(nY,n),a=nB(n);return(0,f.jsx)(t5,{asChild:!0,...a,children:(0,f.jsx)(b.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:d(t,l.triggerRef),onPointerDown:s(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:s(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nH.displayName=nY;var nG=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nB(t);return(0,f.jsx)(ne,{...r,...n})};nG.displayName="DropdownMenuPortal";var nX="DropdownMenuContent",nZ=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nz(nX,n),l=nB(n),a=i.useRef(!1);return(0,f.jsx)(no,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...r,ref:t,onCloseAutoFocus:s(e.onCloseAutoFocus,e=>{var t;a.current||null==(t=o.triggerRef.current)||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:s(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nZ.displayName=nX,i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(ns,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nc,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var nJ=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(np,{...o,...r,ref:t})});nJ.displayName="DropdownMenuItem",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nm,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nb,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nE,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nR,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nM,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nj,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nQ=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nT,{...o,...r,ref:t})});nQ.displayName="DropdownMenuSubTrigger";var n0=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nB(n);return(0,f.jsx)(nD,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n0.displayName="DropdownMenuSubContent";var n1=nq,n4=nH,n2=nG,n8=nZ,n7=nJ,n5=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:l}=e,a=nB(t),[i,u]=m({prop:r,defaultProp:null!=l&&l,onChange:o,caller:"DropdownMenuSub"});return(0,f.jsx)(nP,{...a,open:i,onOpenChange:u,children:n})},n9=nQ,n3=n0},7140:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7361:e=>{e.exports={style:{fontFamily:"'DM Mono', monospace",fontStyle:"normal"},className:"__className_9d7239",variable:"__variable_9d7239"}},8247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8292:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},10206:e=>{e.exports={style:{fontFamily:"'Fira Sans Extra Condensed', 'Fira Sans Extra Condensed Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_48f313",variable:"__variable_48f313"}},10896:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},14701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},15253:e=>{e.exports={style:{fontFamily:"'Noto Sans', 'Noto Sans Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_46c990",variable:"__variable_46c990"}},15415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},15830:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16821:(e,t,n)=>{"use strict";n.d(t,{cr:()=>m,tU:()=>v,ab:()=>g});var r=n(34743),o=n(18080);function l(e,t,n){try{return e(t)}catch(e){return(0,r.R)("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,e,n),null}}var a=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),i=new Map,u={history:"replace",scroll:!1,shallow:!0,throttleMs:a},s=new Set,c=0,d=null,f=n(7620);function p(e){function t(t){if(void 0===t)return null;let n="";if(Array.isArray(t)){if(void 0===t[0])return null;n=t[0]}return"string"==typeof t&&(n=t),l(e.parse,n)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(n){var r;return null!=(r=t(n))?r:e}}},withOptions(e){return{...this,...e}}}}var v=p({parse:e=>e,serialize:e=>"".concat(e)});p({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),p({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),p({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()});var m=p({parse:e=>"true"===e,serialize:e=>e?"true":"false"});p({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString()}),p({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString()}),p({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10)});var y=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}}}(),h={};function g(e){let{history:t="replace",scroll:n=!1,shallow:l=!0,throttleMs:p=a,clearOnDefault:v=!0,startTransition:m,urlKeys:g=h}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},E=Object.keys(e).join(","),_=(0,f.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>{var t;return[e,null!=(t=g[e])?t:e]})),[E,g]),{searchParams:x,updateUrl:C,rateLimitFactor:R=1}=(0,o.V7)(),M=(0,f.useRef)({});if(Object.keys(M.current).length!==Object.keys(e).length){var j;M.current=Object.fromEntries(null!=(j=null==x?void 0:x.entries())?j:[])}let N=(0,f.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>{var n;return[t,null!=(n=e[t].defaultValue)?n:null]})),[Object.values(e).map(e=>{let{defaultValue:t}=e;return t}).join(",")]),[O,S]=(0,f.useState)(()=>b(e,g,null!=x?x:new URLSearchParams)),P=(0,f.useRef)(O);(0,r.Y)("[nuq+ `%s`] render - state: %O, iSP: %s",E,O,x),(0,f.useEffect)(()=>{let t=b(e,g,x,M.current,P.current);P.current=t,S(t)},[Object.values(_).map(e=>null==x?void 0:x.get(e)).join("&")]),(0,f.useInsertionEffect)(()=>{let t=Object.keys(e).reduce((t,n)=>(t[n]=t=>{var o,l;let{state:a,query:i}=t,{defaultValue:u}=e[n],s=_[n];P.current={...P.current,[n]:null!=(o=null!=a?a:u)?o:null},M.current[s]=i,(0,r.Y)("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",E,s,a,u,P.current),l=P.current,(0,r.Y)("[nuq+ `%s`] updateInternalState %O",E,l),P.current=l,S(l)},t),{});for(let n of Object.keys(e)){let e=_[n];(0,r.Y)("[nuq+ `%s`] Subscribing to sync for `%s`",E,e),y.on(e,t[n])}return()=>{for(let n of Object.keys(e)){let e=_[n];(0,r.Y)("[nuq+ `%s`] Unsubscribing to sync for `%s`",E,e),y.off(e,t[n])}}},[e,_]);let k=(0,f.useCallback)(function(f){var h,g,b,x,j,O,S,k,T,L,D,A,I,F,W;let U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},K="function"==typeof f?f(w(P.current,N)):null===f?Object.fromEntries(Object.keys(e).map(e=>[e,null])):f;for(let[o,c]of((0,r.Y)("[nuq+ `%s`] setState: %O",E,K),Object.entries(K))){let d=e[o],f=_[o];d&&((null!=(g=null!=(h=U.clearOnDefault)?h:d.clearOnDefault)?g:v)&&null!==c&&void 0!==d.defaultValue&&(null!=(b=d.eq)?b:(e,t)=>e===t)(c,d.defaultValue)&&(c=null),M.current[f]=function(e,t,n,o){let l=null===t?null:n(t);return(0,r.Y)("[nuqs queue] Enqueueing %s=%s %O",e,l,o),i.set(e,l),"push"===o.history&&(u.history="push"),o.scroll&&(u.scroll=!0),!1===o.shallow&&(u.shallow=!1),o.startTransition&&s.add(o.startTransition),u.throttleMs=Math.max(o.throttleMs??a,Number.isFinite(u.throttleMs)?u.throttleMs:0),l}(f,c,null!=(x=d.serialize)?x:String,{history:null!=(O=null!=(j=U.history)?j:d.history)?O:t,shallow:null!=(k=null!=(S=U.shallow)?S:d.shallow)?k:l,scroll:null!=(L=null!=(T=U.scroll)?T:d.scroll)?L:n,throttleMs:null!=(A=null!=(D=U.throttleMs)?D:d.throttleMs)?A:p,startTransition:null!=(F=null!=(I=U.startTransition)?I:d.startTransition)?F:m}),y.emit(f,{state:c,query:null!=(W=M.current[f])?W:null}))}return null===d&&(d=new Promise((e,t)=>{if(!Number.isFinite(u.throttleMs)){(0,r.Y)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(new URLSearchParams(location.search)),setTimeout(()=>{d=null},0);return}function n(){c=performance.now();let[n,l]=function(e){let t=new URLSearchParams(location.search);if(0===i.size)return[t,null];let n=Array.from(i.entries()),l={...u},c=Array.from(s);for(let[e,o]of(i.clear(),s.clear(),u.history="replace",u.scroll=!1,u.shallow=!0,u.throttleMs=a,(0,r.Y)("[nuqs queue] Flushing queue %O with options %O",n,l),n))null===o?t.delete(e):t.set(e,o);try{return function(e,t){let n=r=>{if(r===e.length)return t();let o=e[r];if(!o)throw Error("Invalid transition function");o(()=>n(r+1))};n(0)}(c,()=>{e(t,{history:l.history,scroll:l.scroll,shallow:l.shallow})}),[t,null]}catch(e){return console.error((0,o.z3)(429),n.map(([e])=>e).join(),e),[t,e]}}(C);null===l?e(n):t(n),d=null}setTimeout(function(){let e=performance.now()-c,t=u.throttleMs,o=R*Math.max(0,Math.min(t,t-e));(0,r.Y)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",o,t),0===o?n():setTimeout(n,o)},0)})),d},[e,t,l,n,p,m,_,C,R,N]);return[(0,f.useMemo)(()=>w(O,N),[O,N]),k]}function b(e,t,n,r,o){return Object.keys(e).reduce((a,u)=>{var s,c,d;let f=null!=(s=null==t?void 0:t[u])?s:u,{parse:p}=e[u],v=i.get(f),m=void 0===v?null!=(c=null==n?void 0:n.get(f))?c:null:v;if(r&&o&&r[f]===m)return a[u]=null!=(d=o[u])?d:null,a;let y=null===m?null:l(p,m,u);return a[u]=null!=y?y:null,r&&(r[f]=m),a},{})}function w(e,t){return Object.fromEntries(Object.keys(e).map(n=>{var r,o;return[n,null!=(o=null!=(r=e[n])?r:t[n])?o:null]}))}},17853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18080:(e,t,n)=>{"use strict";n.d(t,{Hx:()=>u,OB:()=>a,V7:()=>s,z3:()=>l});var r=n(7620),o={404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function l(e){return`[nuqs] ${o[e]}
See https://err.47ng.com/NUQS-${e}`}function a(e){if(0===e.size)return"";let t=[];for(let[n,r]of e.entries()){let e=n.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${r.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}var i=(0,r.createContext)({useAdapter(){throw Error(l(404))}});function u(e){return({children:t,...n})=>(0,r.createElement)(i.Provider,{...n,value:{useAdapter:e}},t)}function s(){let e=(0,r.useContext)(i);if(!("useAdapter"in e))throw Error(l(404));return e.useAdapter()}i.displayName="NuqsAdapterContext"},19408:e=>{e.exports={style:{fontFamily:"'Lato', 'Lato Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_7a7584",variable:"__variable_7a7584"}},20758:e=>{e.exports={style:{fontFamily:"'Fira Code', monospace",fontStyle:"normal"},className:"__className_7536d5",variable:"__variable_7536d5"}},31507:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34086:e=>{e.exports={style:{fontFamily:"'Raleway', 'Raleway Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_a20100",variable:"__variable_a20100"}},34743:(e,t,n)=>{"use strict";n.d(t,{R:()=>l,Y:()=>o});var r=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}();function o(e,...t){if(!r)return;let n=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let n=t.shift();return"%O"===e&&n?JSON.stringify(n).replace(/"([^"]+)":/g,"$1:"):String(n)})}(e,...t);performance.mark(n),console.log(e,...t)}function l(e,...t){r&&console.warn(e,...t)}},37120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},37206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnreachableCaseError=void 0;class n extends Error{constructor(e){super(`Unreachable case: ${e}`)}}t.UnreachableCaseError=n},38098:(e,t,n)=>{"use strict";n.d(t,{NuqsAdapter:()=>i});var r=n(18080),o=n(34743),l=n(62942),a=n(7620),i=(0,r.Hx)(function(){let e=(0,l.useRouter)(),t=(0,l.useSearchParams)(),[n,i]=(0,a.useOptimistic)(t);return{searchParams:n,updateUrl:(0,a.useCallback)((t,n)=>{(0,a.startTransition)(()=>{i(t)});let l=function(e,t){let n=e.split("#")[0]??"";return n+(0,r.OB)(t)+location.hash}(location.origin+location.pathname,t);(0,o.Y)("[nuqs queue (app)] Updating url: %s",l),("push"===n.history?history.pushState:history.replaceState).call(history,null,"",l),n.scroll&&window.scrollTo(0,0),n.shallow||e.replace(l,{scroll:!1})},[]),rateLimitFactor:2}})},39538:e=>{e.exports={style:{fontFamily:"'Ubuntu', 'Ubuntu Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_269bd7",variable:"__variable_269bd7"}},40582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},40648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},42024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},42652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},43991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44873:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},47381:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48292:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51212:e=>{e.exports={style:{fontFamily:"'Roboto Mono', monospace",fontStyle:"normal"},className:"__className_5baa2c",variable:"__variable_5baa2c"}},51441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52782:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55739:e=>{e.exports={style:{fontFamily:"'Roboto Slab', 'Roboto Slab Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_806a04",variable:"__variable_806a04"}},56541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},57621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},57968:e=>{e.exports={style:{fontFamily:"'Overpass', 'Overpass Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_9b374c",variable:"__variable_9b374c"}},58394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isExact=void 0,t.isExact=()=>e=>e},58541:(e,t,n)=>{"use strict";n.d(t,{vC:()=>w});var r=n(7620);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n(54568);var l=["shift","alt","meta","mod","ctrl"],a={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function i(e){return(e&&a[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function u(e,t){return void 0===t&&(t=","),e.split(t)}function s(e,t,n){void 0===t&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(e){return i(e)}),a={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},u=r.filter(function(e){return!l.includes(e)});return o({},a,{keys:u,description:n})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&f([i(e.key),i(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&p([i(e.key),i(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){c.clear()});var c=new Set;function d(e){return Array.isArray(e)}function f(e){var t=Array.isArray(e)?e:[e];c.has("meta")&&c.forEach(function(e){return!l.includes(e)&&c.delete(e.toLowerCase())}),t.forEach(function(e){return c.add(e.toLowerCase())})}function p(e){var t=Array.isArray(e)?e:[e];"meta"===e?c.clear():t.forEach(function(e){return c.delete(e.toLowerCase())})}function v(e,t){var n=e.target;void 0===t&&(t=!1);var r=n&&n.tagName;return d(t)?!!(r&&t&&t.some(function(e){return e.toLowerCase()===r.toLowerCase()})):!!(r&&t&&!0===t)}var m=function(e,t,n){void 0===n&&(n=!1);var r,o=t.alt,l=t.meta,a=t.mod,u=t.shift,s=t.ctrl,f=t.keys,p=e.key,v=e.code,m=e.ctrlKey,y=e.metaKey,h=e.shiftKey,g=e.altKey,b=i(v),w=p.toLowerCase();if(!(null!=f&&f.includes(b))&&!(null!=f&&f.includes(w))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(b))return!1;if(!n){if(!g===o&&"alt"!==w||!h===u&&"shift"!==w)return!1;if(a){if(!y&&!m)return!1}else if(!y===l&&"meta"!==w&&"os"!==w||!m===s&&"ctrl"!==w&&"control"!==w)return!1}return!!(f&&1===f.length&&(f.includes(w)||f.includes(b)))||(f?(void 0===r&&(r=","),(d(f)?f:f.split(r)).every(function(e){return c.has(e.trim().toLowerCase())})):!f||!1)},y=(0,r.createContext)(void 0),h=(0,r.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),g=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},b="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function w(e,t,n,o){var l,a=(0,r.useState)(null),c=a[0],w=a[1],E=(0,r.useRef)(!1),_=n instanceof Array?o instanceof Array?void 0:o:n,x=d(e)?e.join(null==_?void 0:_.splitKey):e,C=n instanceof Array?n:o instanceof Array?o:void 0,R=(0,r.useCallback)(t,null!=C?C:[]),M=(0,r.useRef)(R);C?M.current=R:M.current=t;var j=(function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(r,o){return r&&e(t[o],n[o])},!0):t===n}((l=(0,r.useRef)(void 0)).current,_)||(l.current=_),l.current),N=(0,r.useContext)(h).enabledScopes,O=(0,r.useContext)(y);return b(function(){var e;if((null==j?void 0:j.enabled)!==!1&&(e=null==j?void 0:j.scopes,0===N.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!e||N.some(function(t){return e.includes(t)})||N.includes("*"))){var t=function(e,t){var n;if(void 0===t&&(t=!1),!v(e,["input","textarea","select"])||v(e,null==j?void 0:j.enableOnFormTags)){if(null!==c){var r=c.getRootNode();if((r instanceof Document||r instanceof ShadowRoot)&&r.activeElement!==c&&!c.contains(r.activeElement))return void g(e)}(null==(n=e.target)||!n.isContentEditable||null!=j&&j.enableOnContentEditable)&&u(x,null==j?void 0:j.splitKey).forEach(function(n){var r,o,l,a=s(n,null==j?void 0:j.combinationKey);if(m(e,a,null==j?void 0:j.ignoreModifiers)||null!=(l=a.keys)&&l.includes("*")){if(null!=j&&null!=j.ignoreEventWhen&&j.ignoreEventWhen(e)||t&&E.current)return;if(("function"==typeof(r=null==j?void 0:j.preventDefault)&&r(e,a)||!0===r)&&e.preventDefault(),"function"==typeof(o=null==j?void 0:j.enabled)?!o(e,a):!0!==o&&void 0!==o)return void g(e);M.current(e,a),t||(E.current=!0)}})}},n=function(e){void 0!==e.key&&(f(i(e.code)),((null==j?void 0:j.keydown)===void 0&&(null==j?void 0:j.keyup)!==!0||null!=j&&j.keydown)&&t(e))},r=function(e){void 0!==e.key&&(p(i(e.code)),E.current=!1,null!=j&&j.keyup&&t(e,!0))},o=c||(null==_?void 0:_.document)||document;return o.addEventListener("keyup",r),o.addEventListener("keydown",n),O&&u(x,null==j?void 0:j.splitKey).forEach(function(e){return O.addHotkey(s(e,null==j?void 0:j.combinationKey,null==j?void 0:j.description))}),function(){o.removeEventListener("keyup",r),o.removeEventListener("keydown",n),O&&u(x,null==j?void 0:j.splitKey).forEach(function(e){return O.removeHotkey(s(e,null==j?void 0:j.combinationKey,null==j?void 0:j.description))})}}},[c,x,j,N]),w}},58834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},61060:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},62860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},63034:(e,t,n)=>{"use strict";n.d(t,{UC:()=>e8,C1:()=>e2,q7:()=>e0,N_:()=>e4,B8:()=>eQ,bL:()=>eJ,l9:()=>e1,LM:()=>e7});var r,o=n(7620),l=n.t(o,2),a=n(97509),i=n(80482);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():s(e[t],null)}}}}function d(...e){return o.useCallback(c(...e),e)}var f=n(54568),p=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),a=l.find(y);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,f.jsx)(v,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,f.jsx)(v,{...r,ref:t,children:n})});p.displayName="Slot";var v=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?c(t,e):e})}return o.Children.count(n)>1?o.Children.only(null):null});v.displayName="SlotClone";var m=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function y(e){return o.isValidElement(e)&&e.type===m}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=o.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?p:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function g(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}var b=n(87076),w=o.createContext(void 0),E=n(17247),_=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,l]=o.useState(),a=o.useRef({}),i=o.useRef(e),u=o.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=x(a.current);u.current="mounted"===s?e:"none"},[s]),(0,E.N)(()=>{let t=a.current,n=i.current;if(n!==e){let r=u.current,o=x(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),i.current=e}},[e,c]),(0,E.N)(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=x(a.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!i.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},l=e=>{e.target===r&&(u.current=x(a.current))};return r.addEventListener("animationstart",l),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",l),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{e&&(a.current=getComputedStyle(e)),l(e)},[])}}(t),l="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=d(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||r.isPresent?o.cloneElement(l,{ref:a}):null};function x(e){return(null==e?void 0:e.animationName)||"none"}_.displayName="Presence";var C=l["useId".toString()]||(()=>void 0),R=0;function M(e){let[t,n]=o.useState(C());return(0,E.N)(()=>{e||n(e=>e??String(R++))},[e]),e||(t?`radix-${t}`:"")}function j(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function N(...e){return t=>{let n=!1,r=e.map(e=>{let r=j(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():j(e[t],null)}}}}function O(...e){return o.useCallback(N(...e),e)}var S=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),a=l.find(T);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,f.jsx)(P,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,f.jsx)(P,{...r,ref:t,children:n})});S.displayName="Slot";var P=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?N(t,e):e})}return o.Children.count(n)>1?o.Children.only(null):null});P.displayName="SlotClone";var k=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function T(e){return o.isValidElement(e)&&e.type===k}function L(e){let t=e+"CollectionProvider",[n,r]=(0,i.A)(t),[l,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return(0,f.jsx)(l,{scope:t,itemMap:a,collectionRef:r,children:n})};u.displayName=t;let s=e+"CollectionSlot",c=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=O(t,a(s,n).collectionRef);return(0,f.jsx)(S,{ref:o,children:r})});c.displayName=s;let d=e+"CollectionItemSlot",p="data-radix-collection-item",v=o.forwardRef((e,t)=>{let{scope:n,children:r,...l}=e,i=o.useRef(null),u=O(t,i),s=a(d,n);return o.useEffect(()=>(s.itemMap.set(i,{ref:i,...l}),()=>void s.itemMap.delete(i))),(0,f.jsx)(S,{...{[p]:""},ref:u,children:r})});return v.displayName=d,[{Provider:u,Slot:c,ItemSlot:v},function(t){let n=a(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}function D(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function A(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function I(...e){return t=>{let n=!1,r=e.map(e=>{let r=A(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():A(e[t],null)}}}}function F(...e){return o.useCallback(I(...e),e)}var W=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),a=l.find(V);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,f.jsx)(U,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,f.jsx)(U,{...r,ref:t,children:n})});W.displayName="Slot";var U=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?I(t,e):e})}return o.Children.count(n)>1?o.Children.only(null):null});U.displayName="SlotClone";var K=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function V(e){return o.isValidElement(e)&&e.type===K}var B=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=o.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?W:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),$=n(93568),z=n(57314),q="dismissableLayer.update",Y=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H=o.forwardRef((e,t)=>{var n,l;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...p}=e,v=o.useContext(Y),[m,y]=o.useState(null),h=null!=(l=null==m?void 0:m.ownerDocument)?l:null==(n=globalThis)?void 0:n.document,[,g]=o.useState({}),b=F(t,e=>y(e)),w=Array.from(v.layers),[E]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),_=w.indexOf(E),x=m?w.indexOf(m):-1,C=v.layersWithOutsidePointerEventsDisabled.size>0,R=x>=_,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,$.c)(e),l=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!l.current){let t=function(){X("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);l.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>l.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));R&&!n&&(null==u||u(e),null==c||c(e),e.defaultPrevented||null==d||d())},h),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,$.c)(e),l=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!l.current&&X("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}(e=>{let t=e.target;![...v.branches].some(e=>e.contains(t))&&(null==s||s(e),null==c||c(e),e.defaultPrevented||null==d||d())},h);return(0,z.U)(e=>{x===v.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},h),o.useEffect(()=>{if(m)return a&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(r=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(m)),v.layers.add(m),G(),()=>{a&&1===v.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=r)}},[m,h,a,v]),o.useEffect(()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),G())},[m,v]),o.useEffect(()=>{let e=()=>g({});return document.addEventListener(q,e),()=>document.removeEventListener(q,e)},[]),(0,f.jsx)(B.div,{...p,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:D(e.onFocusCapture,j.onFocusCapture),onBlurCapture:D(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:D(e.onPointerDownCapture,M.onPointerDownCapture)})});function G(){let e=new CustomEvent(q);document.dispatchEvent(e)}function X(e,t,n,r){let{discrete:o}=r,l=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&l.addEventListener(e,t,{once:!0}),o)l&&a.flushSync(()=>l.dispatchEvent(i));else l.dispatchEvent(i)}H.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(Y),r=o.useRef(null),l=F(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(B.div,{...e,ref:l})}).displayName="DismissableLayerBranch";var Z=n(22702);function J(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var Q=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),a=l.find(en);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,f.jsx)(ee,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,f.jsx)(ee,{...r,ref:t,children:n})});Q.displayName="Slot";var ee=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=J(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():J(e[t],null)}}}}(t,e):e})}return o.Children.count(n)>1?o.Children.only(null):null});ee.displayName="SlotClone";var et=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function en(e){return o.isValidElement(e)&&e.type===et}var er=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=o.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?Q:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eo=o.forwardRef((e,t)=>(0,f.jsx)(er.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}}));eo.displayName="VisuallyHidden";var el="NavigationMenu",[ea,ei,eu]=L(el),[es,ec,ed]=L(el),[ef,ep]=(0,i.A)(el,[eu,ed]),[ev,em]=ef(el),[ey,eh]=ef(el),eg=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:l,defaultValue:a,delayDuration:i=200,skipDelayDuration:u=300,orientation:s="horizontal",dir:c,...p}=e,[v,m]=o.useState(null),y=d(t,e=>m(e)),g=function(e){let t=o.useContext(w);return e||t||"ltr"}(c),E=o.useRef(0),_=o.useRef(0),x=o.useRef(0),[C,R]=o.useState(!0),[M="",j]=(0,b.i)({prop:r,onChange:e=>{let t=u>0;""!==e?(window.clearTimeout(x.current),t&&R(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>R(!0),u)),null==l||l(e)},defaultProp:a}),N=o.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>j(""),150)},[j]),O=o.useCallback(e=>{window.clearTimeout(_.current),j(e)},[j]),S=o.useCallback(e=>{M===e?window.clearTimeout(_.current):E.current=window.setTimeout(()=>{window.clearTimeout(_.current),j(e)},i)},[M,j,i]);return o.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(_.current),window.clearTimeout(x.current)},[]),(0,f.jsx)(ew,{scope:n,isRootMenu:!0,value:M,dir:g,orientation:s,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(E.current),C?S(e):O(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),N()},onContentEnter:()=>window.clearTimeout(_.current),onContentLeave:N,onItemSelect:e=>{j(t=>t===e?"":e)},onItemDismiss:()=>j(""),children:(0,f.jsx)(h.nav,{"aria-label":"Main","data-orientation":s,dir:g,...p,ref:y})})});eg.displayName=el;var eb="NavigationMenuSub";o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:l,orientation:a="horizontal",...i}=e,u=em(eb,n),[s="",c]=(0,b.i)({prop:r,onChange:o,defaultProp:l});return(0,f.jsx)(ew,{scope:n,isRootMenu:!1,value:s,dir:u.dir,orientation:a,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>c(e),onItemSelect:e=>c(e),onItemDismiss:()=>c(""),children:(0,f.jsx)(h.div,{"data-orientation":a,...i,ref:t})})}).displayName=eb;var ew=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:l,orientation:a,children:i,value:u,onItemSelect:s,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:m}=e,[y,h]=o.useState(null),[g,b]=o.useState(new Map),[w,E]=o.useState(null);return(0,f.jsx)(ev,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:u,previousValue:(0,Z.Z)(u),baseId:M(),dir:l,orientation:a,viewport:y,onViewportChange:h,indicatorTrack:w,onIndicatorTrackChange:E,onTriggerEnter:(0,$.c)(d),onTriggerLeave:(0,$.c)(p),onContentEnter:(0,$.c)(v),onContentLeave:(0,$.c)(m),onItemSelect:(0,$.c)(s),onItemDismiss:(0,$.c)(c),onViewportContentChange:o.useCallback((e,t)=>{b(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:o.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,f.jsx)(ea.Provider,{scope:t,children:(0,f.jsx)(ey,{scope:t,items:g,children:i})})})},eE="NavigationMenuList",e_=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=em(eE,n),l=(0,f.jsx)(h.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,f.jsx)(h.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,f.jsx)(ea.Slot,{scope:n,children:o.isRootMenu?(0,f.jsx)(eV,{asChild:!0,children:l}):l})})});e_.displayName=eE;var ex="NavigationMenuItem",[eC,eR]=ef(ex),eM=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...l}=e,a=M(),i=o.useRef(null),u=o.useRef(null),s=o.useRef(null),c=o.useRef(()=>{}),d=o.useRef(!1),p=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(i.current){c.current();let t=ez(i.current);t.length&&eq("start"===e?t:t.reverse())}},[]),v=o.useCallback(()=>{if(i.current){let e=ez(i.current);e.length&&(c.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,f.jsx)(eC,{scope:n,value:r||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:i,focusProxyRef:s,wasEscapeCloseRef:d,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:v,onContentFocusOutside:v,children:(0,f.jsx)(h.li,{...l,ref:t})})});eM.displayName=ex;var ej="NavigationMenuTrigger",eN=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...l}=e,a=em(ej,e.__scopeNavigationMenu),i=eR(ej,e.__scopeNavigationMenu),s=o.useRef(null),c=d(s,i.triggerRef,t),p=eG(a.baseId,i.value),v=eX(a.baseId,i.value),m=o.useRef(!1),y=o.useRef(!1),g=i.value===a.value;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(ea.ItemSlot,{scope:n,value:i.value,children:(0,f.jsx)(e$,{asChild:!0,children:(0,f.jsx)(h.button,{id:p,disabled:r,"data-disabled":r?"":void 0,"data-state":eH(g),"aria-expanded":g,"aria-controls":v,...l,ref:c,onPointerEnter:u(e.onPointerEnter,()=>{y.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:u(e.onPointerMove,eZ(()=>{r||y.current||i.wasEscapeCloseRef.current||m.current||(a.onTriggerEnter(i.value),m.current=!0)})),onPointerLeave:u(e.onPointerLeave,eZ(()=>{r||(a.onTriggerLeave(),m.current=!1)})),onClick:u(e.onClick,()=>{a.onItemSelect(i.value),y.current=g}),onKeyDown:u(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];g&&e.key===t&&(i.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(eo,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:e=>{let t=i.contentRef.current,n=e.relatedTarget,r=n===s.current,o=null==t?void 0:t.contains(n);(r||!o)&&i.onFocusProxyEnter(r?"start":"end")}}),a.viewport&&(0,f.jsx)("span",{"aria-owns":v})]})]})});eN.displayName=ej;var eO="navigationMenu.linkSelect",eS=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:o,...l}=e;return(0,f.jsx)(e$,{asChild:!0,children:(0,f.jsx)(h.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...l,ref:t,onClick:u(e.onClick,e=>{let t=e.target,n=new CustomEvent(eO,{bubbles:!0,cancelable:!0});t.addEventListener(eO,e=>null==o?void 0:o(e),{once:!0}),g(t,n),n.defaultPrevented||e.metaKey||g(t,new CustomEvent(eI,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});eS.displayName="NavigationMenuLink";var eP="NavigationMenuIndicator",ek=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=em(eP,e.__scopeNavigationMenu),l=!!o.value;return o.indicatorTrack?a.createPortal((0,f.jsx)(_,{present:n||l,children:(0,f.jsx)(eT,{...r,ref:t})}),o.indicatorTrack):null});ek.displayName=eP;var eT=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,l=em(eP,n),a=ei(n),[i,u]=o.useState(null),[s,c]=o.useState(null),d="horizontal"===l.orientation,p=!!l.value;o.useEffect(()=>{var e;let t=null==(e=a().find(e=>e.value===l.value))?void 0:e.ref.current;t&&u(t)},[a,l.value]);let v=()=>{i&&c({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})};return eY(i,v),eY(l.indicatorTrack,v),s?(0,f.jsx)(h.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":l.orientation,...r,ref:t,style:{position:"absolute",...d?{left:0,width:s.size+"px",transform:"translateX(".concat(s.offset,"px)")}:{top:0,height:s.size+"px",transform:"translateY(".concat(s.offset,"px)")},...r.style}}):null}),eL="NavigationMenuContent",eD=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=em(eL,e.__scopeNavigationMenu),l=eR(eL,e.__scopeNavigationMenu),a=d(l.contentRef,t),i=l.value===o.value,s={value:l.value,triggerRef:l.triggerRef,focusProxyRef:l.focusProxyRef,wasEscapeCloseRef:l.wasEscapeCloseRef,onContentFocusOutside:l.onContentFocusOutside,onRootContentClose:l.onRootContentClose,...r};return o.viewport?(0,f.jsx)(eA,{forceMount:n,...s,ref:a}):(0,f.jsx)(_,{present:n||i,children:(0,f.jsx)(eF,{"data-state":eH(i),...s,ref:a,onPointerEnter:u(e.onPointerEnter,o.onContentEnter),onPointerLeave:u(e.onPointerLeave,eZ(o.onContentLeave)),style:{pointerEvents:!i&&o.isRootMenu?"none":void 0,...s.style}})})});eD.displayName=eL;var eA=o.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=em(eL,e.__scopeNavigationMenu);return(0,E.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,E.N)(()=>()=>r(e.value),[e.value,r]),null}),eI="navigationMenu.rootContentDismiss",eF=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:l,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:c,...p}=e,v=em(eL,n),m=o.useRef(null),y=d(m,t),h=eG(v.baseId,r),g=eX(v.baseId,r),b=ei(n),w=o.useRef(null),{onItemDismiss:E}=v;o.useEffect(()=>{let e=m.current;if(v.isRootMenu&&e){let t=()=>{var t;E(),s(),e.contains(document.activeElement)&&(null==(t=l.current)||t.focus())};return e.addEventListener(eI,t),()=>e.removeEventListener(eI,t)}},[v.isRootMenu,e.value,l,E,s]);let _=o.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===v.dir&&e.reverse();let t=e.indexOf(v.value),n=e.indexOf(v.previousValue),o=r===v.value,l=n===e.indexOf(r);if(!o&&!l)return w.current;let a=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(l&&-1!==t)return t>n?"to-start":"to-end"}return null})();return w.current=a,a},[v.previousValue,v.value,v.dir,b,r]);return(0,f.jsx)(eV,{asChild:!0,children:(0,f.jsx)(H,{id:g,"aria-labelledby":h,"data-motion":_,"data-orientation":v.orientation,...p,ref:y,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(eI,{bubbles:!0,cancelable:!0});null==(e=m.current)||e.dispatchEvent(t)},onFocusOutside:u(e.onFocusOutside,e=>{var t;c();let n=e.target;(null==(t=v.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{var t;let n=e.target,r=b().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),o=v.isRootMenu&&(null==(t=v.viewport)?void 0:t.contains(n));(r||o||!v.isRootMenu)&&e.preventDefault()}),onKeyDown:u(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ez(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(eq(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null==(n=a.current)||n.focus()}}}),onEscapeKeyDown:u(e.onEscapeKeyDown,e=>{i.current=!0})})})}),eW="NavigationMenuViewport",eU=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=!!em(eW,e.__scopeNavigationMenu).value;return(0,f.jsx)(_,{present:n||o,children:(0,f.jsx)(eK,{...r,ref:t})})});eU.displayName=eW;var eK=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...l}=e,a=em(eW,n),i=d(t,a.onViewportChange),s=eh(eL,e.__scopeNavigationMenu),[p,v]=o.useState(null),[m,y]=o.useState(null),g=p?(null==p?void 0:p.width)+"px":void 0,b=p?(null==p?void 0:p.height)+"px":void 0,w=!!a.value,E=w?a.value:a.previousValue;return eY(m,()=>{m&&v({width:m.offsetWidth,height:m.offsetHeight})}),(0,f.jsx)(h.div,{"data-state":eH(w),"data-orientation":a.orientation,...l,ref:i,style:{pointerEvents:!w&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":b,...l.style},onPointerEnter:u(e.onPointerEnter,a.onContentEnter),onPointerLeave:u(e.onPointerLeave,eZ(a.onContentLeave)),children:Array.from(s.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,l=E===t;return(0,f.jsx)(_,{present:r||l,children:(0,f.jsx)(eF,{...o,ref:c(n,e=>{l&&e&&y(e)})})},t)})})}),eV=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=em("FocusGroup",n);return(0,f.jsx)(es.Provider,{scope:n,children:(0,f.jsx)(es.Slot,{scope:n,children:(0,f.jsx)(h.div,{dir:o.dir,...r,ref:t})})})}),eB=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],e$=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=ec(n),l=em("FocusGroupItem",n);return(0,f.jsx)(es.ItemSlot,{scope:n,children:(0,f.jsx)(h.button,{...r,ref:t,onKeyDown:u(e.onKeyDown,e=>{if(["Home","End",...eB].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===l.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eB.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>eq(t)),e.preventDefault()}})})})});function ez(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eq(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eY(e,t){let n=(0,$.c)(t);(0,E.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function eH(e){return e?"open":"closed"}function eG(e,t){return"".concat(e,"-trigger-").concat(t)}function eX(e,t){return"".concat(e,"-content-").concat(t)}function eZ(e){return t=>"mouse"===t.pointerType?e(t):void 0}var eJ=eg,eQ=e_,e0=eM,e1=eN,e4=eS,e2=ek,e8=eD,e7=eU},64791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65938:(e,t,n)=>{"use strict";n.d(t,{S7:()=>a});var r=n(7620);n(54568);var o=Symbol.for("ui.streamable.value");function l(e){return null!=e&&"object"==typeof e&&"type"in e&&e.type===o}function a(e){if(!l(e))throw Error("Invalid value: this hook only accepts values created via `createStreamableValue`.");return{[Symbol.asyncIterator](){let t=e,n=t.curr,r=!1,o=!0;return{async next(){if(r)return{value:n,done:!0};if(void 0!==(t=await t).error)throw t.error;if("curr"in t||t.diff){if(t.diff){if(0===t.diff[0]){if("string"!=typeof n)throw Error("Invalid patch: can only append to string types. This is a bug in the AI SDK.");n+=t.diff[1]}}else n=t.curr;if(!t.next)return r=!0,{value:n,done:!1}}return void 0===t.next?{value:n,done:!0}:(t=t.next,o&&(o=!1,void 0===n))?this.next():{value:n,done:!1}}}}}}},68250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},73431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76059:e=>{e.exports={style:{fontFamily:"'IBM Plex Mono', monospace",fontStyle:"normal"},className:"__className_c1795b",variable:"__variable_c1795b"}},76954:e=>{e.exports={style:{fontFamily:"'IBM Plex Serif', 'IBM Plex Serif Fallback', serif",fontStyle:"normal"},className:"__className_7d2d49",variable:"__variable_7d2d49"}},77117:e=>{e.exports={style:{fontFamily:"'Source Code Pro', monospace",fontStyle:"normal"},className:"__className_2e7217",variable:"__variable_2e7217"}},77453:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81582:e=>{e.exports={style:{fontFamily:"'Merriweather', 'Merriweather Fallback', serif",fontStyle:"normal"},className:"__className_1afd01",variable:"__variable_1afd01"}},82110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFactoryWithConstraint=void 0,t.createFactoryWithConstraint=()=>e=>e},82536:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', monospace",fontStyle:"normal"},className:"__className_983597",variable:"__variable_983597"}},83196:e=>{e.exports={style:{fontFamily:"'Source Sans 3', 'Source Sans 3 Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_540207",variable:"__variable_540207"}},83715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t="no additional info provided"){if(!e)throw Error("Assertion Error: "+t)}},85237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},86504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87298:e=>{e.exports={style:{fontFamily:"'abcFavorit', 'abcFavorit Fallback', system-ui, arial"},className:"__className_eb4b4f",variable:"__variable_eb4b4f"}},88644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89090:e=>{e.exports={style:{fontFamily:"'Noto Color Emoji', 'Noto Color Emoji Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_7bde0a",variable:"__variable_7bde0a"}},91181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91942:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_5e38af",variable:"__variable_5e38af"}},92088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(...e){}},93522:e=>{e.exports={style:{fontFamily:"'Poppins', 'Poppins Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_5cd671",variable:"__variable_5cd671"}},94497:e=>{e.exports={style:{fontFamily:"'Open Sans', 'Open Sans Fallback', system-ui, arial",fontStyle:"normal"},className:"__className_43e611",variable:"__variable_43e611"}},98337:(e,t,n)=>{"use strict";n.d(t,{N:()=>h});var r=n(7620),o=n(96303);function l(){let e=(0,r.useRef)(!1);return(0,o.E)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=n(4474),i=n(90548),u=n(38094);class s extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,r.useId)(),o=(0,r.useRef)(null),l=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:i}=l.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${e}px !important;
height: ${r}px !important;
top: ${a}px !important;
left: ${i}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),r.createElement(s,{isPresent:t,childRef:o,sizeRef:l},r.cloneElement(e,{ref:o}))}let d=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:l,presenceAffectsLayout:a,mode:s})=>{let d=(0,u.M)(f),p=(0,r.useId)(),v=(0,r.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:l,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[n]);return(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),r.useEffect(()=>{n||d.size||!o||o()},[n]),"popLayout"===s&&(e=r.createElement(c,{isPresent:n},e)),r.createElement(i.t.Provider,{value:v},e)};function f(){return new Map}var p=n(78386),v=n(47828),m=n(67233);let y=e=>e.key||"",h=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:u,presenceAffectsLayout:s=!0,mode:c="sync"})=>{(0,m.V)(!u,"Replace exitBeforeEnter with mode='wait'");let f=(0,r.useContext)(p.L).forceRender||function(){let e=l(),[t,n]=(0,r.useState)(0),o=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>a.Gt.postRender(o),[o]),t]}()[0],h=l(),g=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=g,w=(0,r.useRef)(new Map).current,E=(0,r.useRef)(b),_=(0,r.useRef)(new Map).current,x=(0,r.useRef)(!0);if((0,o.E)(()=>{x.current=!1,g.forEach(e=>{let t=y(e);_.set(t,e)}),E.current=b}),(0,v.l)(()=>{x.current=!0,_.clear(),w.clear()}),x.current)return r.createElement(r.Fragment,null,b.map(e=>r.createElement(d,{key:y(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:s,mode:c},e)));b=[...b];let C=E.current.map(y),R=g.map(y),M=C.length;for(let e=0;e<M;e++){let t=C[e];-1!==R.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(b=[]),w.forEach((e,n)=>{if(-1!==R.indexOf(n))return;let o=_.get(n);if(!o)return;let l=C.indexOf(n),a=e;a||(a=r.createElement(d,{key:y(o),isPresent:!1,onExitComplete:()=>{w.delete(n);let e=Array.from(_.keys()).filter(e=>!R.includes(e));if(e.forEach(e=>_.delete(e)),E.current=g.filter(t=>{let r=y(t);return r===n||e.includes(r)}),!w.size){if(!1===h.current)return;f(),i&&i()}},custom:t,presenceAffectsLayout:s,mode:c},o),w.set(n,a)),b.splice(l,0,a)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:r.createElement(d,{key:y(e),isPresent:!0,presenceAffectsLayout:s,mode:c},e)}),r.createElement(r.Fragment,null,w.size?b:b.map(e=>(0,r.cloneElement)(e)))}},98971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}}]);