"use client";"use strict";function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,o=new Array(t);n=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}function b(e,t){if(e==null)return{};var n={};var o=Object.keys(e);var a,i;for(i=0;i=0)continue;n[a]=e[a]}return n}function w(e,n){return t(e)||s(e,n)||C(e,n)||d()}function y(e){return t(e)||l(e)||C(e)||d()}function x(e){return n(e)||l(e)||C(e)||f()}function E(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function C(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor)o=t.constructor.name;if(o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(t,n)}function N(e,t){var n,o,a,i,u={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),"throw":c(1),"return":c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return l([e,t])}}function l(i){if(n)throw new TypeError("Generator is already executing.");while(u)try{if(n=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:u.label++;return{value:i[1],done:false};case 5:u.label++;o=i[1];i=[0];continue;case 7:i=u.ops.pop();u.trys.pop();continue;default:if(!(a=u.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){u=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]1&&arguments[1]!==void 0?arguments[1]:[];var n=[];function o(t,o){var a=(0,H.createContext)(o),i=n.length;n=x(n).concat([o]);function u(t){var n=t.scope,o=t.children,u=h(t,["scope","children"]),c=(n===null||n===void 0?void 0:n[e][i])||a,l=(0,H.useMemo)(function(){return u},Object.values(u));return(0,H.createElement)(c.Provider,{value:l},o)}function c(n,u){var c=(u===null||u===void 0?void 0:u[e][i])||a,l=(0,H.useContext)(c);if(l)return l;if(o!==void 0)return o;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}return u.displayName=t+"Provider",[u,c]}var a=function(){var t=n.map(function(e){return(0,H.createContext)(e)});return function n(n){var o=(n===null||n===void 0?void 0:n[e])||t;return(0,H.useMemo)(function(){return i({},"__scope".concat(e),g(p({},n),i({},e,o)))},[n,o])}};return a.scopeName=e,[o,B.apply(void 0,[a].concat(x(t)))]}function B(){for(var e=arguments.length,t=new Array(e),n=0;n1?$.Children.only(null):(0,$.isValidElement)(u)?u.props.children:null:e});return(0,$.createElement)(Q,Z({},o,{ref:t}),(0,$.isValidElement)(u)?(0,$.cloneElement)(u,void 0,c):null)}return(0,$.createElement)(Q,Z({},o,{ref:t}),n)});J.displayName="Slot";var Q=(0,$.forwardRef)(function(e,t){var n=e.children,o=h(e,["children"]);return(0,$.isValidElement)(n)?(0,$.cloneElement)(n,g(p({},en(o,n.props)),{ref:t?X(t,n.ref):n.ref})):$.Children.count(n)>1?$.Children.only(null):null});Q.displayName="SlotClone";var ee=function(e){var t=e.children;return(0,$.createElement)($.Fragment,null,t)};function et(e){return(0,$.isValidElement)(e)&&e.type===ee}function en(e,t){var n=function(n){var a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?o[n]=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&arguments[2]!==void 0?arguments[2]:{},o=n.checkForDefaultPrevented,a=o===void 0?!0:o;return function(n){if(e===null||e===void 0?void 0:e(n),a===!1||!n.defaultPrevented)return t===null||t===void 0?void 0:t(n)}}var ea=require("react");var ei=require("react");function eu(e){var t=(0,ei.useRef)(e);return(0,ei.useEffect)(function(){t.current=e}),(0,ei.useMemo)(function(){return function(){for(var e=arguments.length,n=new Array(e),o=0;o0&&arguments[0]!==void 0?arguments[0]:[];return x(t).concat([e])})},[d]),v=z.default.useCallback(function(e){return d(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(t){return t!==e})})},[d]);return z.default.createElement(e8,{scope:e.__scopeAccordion,value:s,onItemOpen:f,onItemClose:v},z.default.createElement(e7,{scope:e.__scopeAccordion,collapsible:!0},z.default.createElement(ti,q({},u,{ref:t}))))}),tr=w(e1(eX),2),to=tr[0],ta=tr[1],ti=z.default.forwardRef(function(e,t){var n=e.__scopeAccordion,o=e.disabled,a=e.dir,i=e.orientation,u=i===void 0?"vertical":i,c=h(e,["__scopeAccordion","disabled","dir","orientation"]),l=z.default.useRef(null),s=Y(l,t),d=eJ(n),f=eG(a)==="ltr",v=eo(e.onKeyDown,function(e){var t;if(!eY.includes(e.key))return;var n=e.target,o=d().filter(function(e){var t;return!((t=e.ref.current)!==null&&t!==void 0&&t.disabled)}),a=o.findIndex(function(e){return e.ref.current===n}),i=o.length;if(a===-1)return;e.preventDefault();var c=a,l=0,s=i-1,v=function(){c=a+1,c>s&&(c=l)},p=function(){c=a-1,csvg]:rotate-180",n)},a),{children:[o,(0,tD.jsx)(tN.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]}))})});tM.displayName=tE.displayName;var tk=F.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,tD.jsx)(tC,g(p({ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},a),{children:(0,tD.jsx)("div",{className:tS("pb-4 pt-0",n),children:o})}))});tk.displayName=tC.displayName;var tO=j(require("react"),1);var tA=require("react");var tj=require("react");var tI=require("react");var tL=require("react");function tF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=eu(e);(0,tL.useEffect)(function(){var e=function(e){e.key==="Escape"&&n(e)};return t.addEventListener("keydown",e),function(){return t.removeEventListener("keydown",e)}},[n,t])}var tq="dismissableLayer.update",tz="dismissableLayer.pointerDownOutside",tH="dismissableLayer.focusOutside",tK,tV=(0,tI.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tB=(0,tI.forwardRef)(function(e,t){var n;var o;var a=e.disableOutsidePointerEvents,i=a===void 0?!1:a,u=e.onEscapeKeyDown,c=e.onPointerDownOutside,l=e.onFocusOutside,s=e.onInteractOutside,d=e.onDismiss,f=h(e,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),v=(0,tI.useContext)(tV),m=w((0,tI.useState)(null),2),g=m[0],b=m[1],y=(o=g===null||g===void 0?void 0:g.ownerDocument)!==null&&o!==void 0?o:(n=globalThis)===null||n===void 0?void 0:n.document,E=w((0,tI.useState)({}),2),C=E[1],N=Y(t,function(e){return b(e)}),_=Array.from(v.layers),R=w(x(v.layersWithOutsidePointerEventsDisabled).slice(-1),1),S=R[0],D=_.indexOf(S),T=g?_.indexOf(g):-1,P=v.layersWithOutsidePointerEventsDisabled.size>0,M=T>=D,k=tU(function(e){var t=e.target,n=x(v.branches).some(function(e){return e.contains(t)});!M||n||(c===null||c===void 0?void 0:c(e),s===null||s===void 0?void 0:s(e),e.defaultPrevented||(d===null||d===void 0?void 0:d()))},y),O=tG(function(e){var t=e.target;x(v.branches).some(function(e){return e.contains(t)})||(l===null||l===void 0?void 0:l(e),s===null||s===void 0?void 0:s(e),e.defaultPrevented||(d===null||d===void 0?void 0:d()))},y);return tF(function(e){T===v.layers.size-1&&(u===null||u===void 0?void 0:u(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},y),(0,tI.useEffect)(function(){if(g)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(tK=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),tX(),function(){i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=tK)}},[g,y,i,v]),(0,tI.useEffect)(function(){return function(){g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),tX())}},[g,v]),(0,tI.useEffect)(function(){var e=function(){return C({})};return document.addEventListener(tq,e),function(){return document.removeEventListener(tq,e)}},[]),(0,tI.createElement)(ev.div,Z({},f,{ref:N,style:p({pointerEvents:P?M?"auto":"none":void 0},e.style),onFocusCapture:eo(e.onFocusCapture,O.onFocusCapture),onBlurCapture:eo(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:eo(e.onPointerDownCapture,k.onPointerDownCapture)}))});var tW=(0,tI.forwardRef)(function(e,t){var n=(0,tI.useContext)(tV),o=(0,tI.useRef)(null),a=Y(t,o);return(0,tI.useEffect)(function(){var e=o.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}},[n.branches]),(0,tI.createElement)(ev.div,Z({},e,{ref:a}))});function tU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=eu(e),o=(0,tI.useRef)(!1),a=(0,tI.useRef)(function(){});return(0,tI.useEffect)(function(){var e=function(e){if(e.target&&!o.current){var i=function e(){tY(tz,n,u,{discrete:!0})},u={originalEvent:e};e.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=i,t.addEventListener("click",a.current,{once:!0})):i()}o.current=!1},i=window.setTimeout(function(){t.addEventListener("pointerdown",e)},0);return function(){window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:function(){return o.current=!0}}}function tG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=eu(e),o=(0,tI.useRef)(!1);return(0,tI.useEffect)(function(){var e=function(e){e.target&&!o.current&&tY(tH,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),function(){return t.removeEventListener("focusin",e)}},[t,n]),{onFocusCapture:function(){return o.current=!0},onBlurCapture:function(){return o.current=!1}}}function tX(){var e=new CustomEvent(tq);document.dispatchEvent(e)}function tY(e,t,n,o){var a=o.discrete;var i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?ep(i,u):i.dispatchEvent(u)}var tZ=tB,t$=tW;var tJ=require("react");var tQ="focusScope.autoFocusOnMount",t0="focusScope.autoFocusOnUnmount",t1={bubbles:!1,cancelable:!0};var t2=(0,tJ.forwardRef)(function(e,t){var n=e.loop,o=n===void 0?!1:n,a=e.trapped,i=a===void 0?!1:a,u=e.onMountAutoFocus,c=e.onUnmountAutoFocus,l=h(e,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),s=w((0,tJ.useState)(null),2),d=s[0],f=s[1],v=eu(u),p=eu(c),m=(0,tJ.useRef)(null),g=Y(t,function(e){return f(e)}),b=(0,tJ.useRef)({paused:!1,pause:function e(){this.paused=!0},resume:function e(){this.paused=!1}}).current;(0,tJ.useEffect)(function(){if(i){var e=function e(e){if(b.paused||!d)return;var t=e.target;d.contains(t)?m.current=t:t7(m.current,{select:!0})},t=function e(e){if(b.paused||!d)return;var t=e.relatedTarget;t!==null&&(d.contains(t)||t7(m.current,{select:!0}))},n=function e(e){var t=document.activeElement;var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var c=u.value;c.removedNodes.length>0&&(d!=null&&d.contains(t)||t7(d))}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}};document.addEventListener("focusin",e),document.addEventListener("focusout",t);var o=new MutationObserver(n);return d&&o.observe(d,{childList:!0,subtree:!0}),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[i,d,b.paused]),(0,tJ.useEffect)(function(){if(d){ne.add(b);var e=document.activeElement;if(!d.contains(e)){var t=new CustomEvent(tQ,t1);d.addEventListener(tQ,v),d.dispatchEvent(t),t.defaultPrevented||(t5(nr(t3(d)),{select:!0}),document.activeElement===e&&t7(d))}return function(){d.removeEventListener(tQ,v),setTimeout(function(){var t=new CustomEvent(t0,t1);d.addEventListener(t0,p),d.dispatchEvent(t),t.defaultPrevented||t7(e!==null&&e!==void 0?e:document.body,{select:!0}),d.removeEventListener(t0,p),ne.remove(b)},0)}}},[d,v,p,b]);var y=(0,tJ.useCallback)(function(e){if(!o&&!i||b.paused)return;var t=e.key==="Tab"&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var a=e.currentTarget,u=w(t4(a),2),c=u[0],l=u[1];c&&l?!e.shiftKey&&n===l?(e.preventDefault(),o&&t7(c,{select:!0})):e.shiftKey&&n===c&&(e.preventDefault(),o&&t7(l,{select:!0})):n===a&&e.preventDefault()}},[o,i,b.paused]);return(0,tJ.createElement)(ev.div,Z({tabIndex:-1},l,{ref:g,onKeyDown:y}))});function t5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.select,o=n===void 0?!1:n;var a=document.activeElement;var i=true,u=false,c=undefined;try{for(var l=e[Symbol.iterator](),s;!(i=(s=l.next()).done);i=true){var d=s.value;if(t7(d,{select:o}),document.activeElement!==a)return}}catch(e){u=true;c=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(u){throw c}}}}function t4(e){var t=t3(e),n=t8(t,e),o=t8(t.reverse(),e);return[n,o]}function t3(e){var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t=e.tagName==="INPUT"&&e.type==="hidden";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 t8(e,t){var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var c=u.value;if(!t9(c,{upTo:t}))return c}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}}function t9(e,t){var n=t.upTo;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function t6(e){return c(e,HTMLInputElement)&&"select"in e}function t7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.select,o=n===void 0?!1:n;if(e&&e.focus){var a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&t6(e)&&o&&e.select()}}var ne=nt();function nt(){var e=[];return{add:function t(t){var n=e[0];t!==n&&(n===null||n===void 0?void 0:n.pause()),e=nn(e,t),e.unshift(t)},remove:function t(t){var n;e=nn(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function nn(e,t){var n=x(e),o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function nr(e){return e.filter(function(e){return e.tagName!=="A"})}var no=require("react"),na=j(require("react-dom"),1);var ni=(0,no.forwardRef)(function(e,t){var n;var o=e.container,a=o===void 0?globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body:o,i=h(e,["container"]);return a?na.default.createPortal((0,no.createElement)(ev.div,Z({},i,{ref:t})),a):null});var nu=require("react"),nc=0;function nl(){(0,nu.useEffect)(function(){var e,t;var n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ns()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ns()),nc++,function(){nc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(function(e){return e.remove()}),nc--}},[])}function ns(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var nd=function e(){return nd=Object.assign||function(e){for(var t,n=1,o=arguments.length;n"u")return nG;var t=nY(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}};var n$=nU(),nJ=function e(e,t,n,o){var a=e.left,i=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),"\n .".concat(nb," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(c,"px ").concat(o,";\n }\n body {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),n==="margin"&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(u,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(o,";\n "),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ng," {\n right: ").concat(c,"px ").concat(o,";\n }\n \n .").concat(nh," {\n margin-right: ").concat(c,"px ").concat(o,";\n }\n \n .").concat(ng," .").concat(ng," {\n right: 0 ").concat(o,";\n }\n \n .").concat(nh," .").concat(nh," {\n margin-right: 0 ").concat(o,";\n }\n \n body {\n ").concat(nw,": ").concat(c,"px;\n }\n")},nQ=function e(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,i=nL.useMemo(function(){return nZ(a)},[a]);return nL.createElement(n$,{styles:nJ(i,!t,a,n?"":"!important")})};var n0=!1;if((typeof window==="undefined"?"undefined":E(window))<"u")try{n1=Object.defineProperty({},"passive",{get:function e(){return n0=!0,!0}}),window.addEventListener("test",n1,n1),window.removeEventListener("test",n1,n1)}catch(e){n0=!1}var n1,n2=n0?{passive:!1}:!1;var n5=function e(e){return e.tagName==="TEXTAREA"},n4=function e(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!n5(e)&&n[t]==="visible")},n3=function e(e){return n4(e,"overflowY")},n8=function e(e){return n4(e,"overflowX")},n9=function e(e,t){var n=t;do{(typeof ShadowRoot==="undefined"?"undefined":E(ShadowRoot))<"u"&&c(n,ShadowRoot)&&(n=n.host);var o=re(e,n);if(o){var a=rt(e,n),i=a[1],u=a[2];if(i>u)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},n6=function e(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},n7=function e(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},re=function e(e,t){return e==="v"?n3(t):n8(t)},rt=function e(e,t){return e==="v"?n6(t):n7(t)},rn=function e(e,t){return e==="h"&&t==="rtl"?-1:1},rr=function e(e,t,n,o,a){var i=rn(e,window.getComputedStyle(t).direction),u=i*o,c=n.target,l=t.contains(c),s=!1,d=u>0,f=0,v=0;do{var p=rt(e,c),m=p[0],g=p[1],h=p[2],b=g-h-i*m;(m||b)&&re(e,c)&&(f+=b,v+=m),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&(a&&f===0||!a&&u>f)||!d&&(a&&v===0||!a&&-u>v))&&(s=!0),s};var ro=function e(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ra=function e(e){return[e.deltaX,e.deltaY]},ri=function e(e){return e&&"current"in e?e.current:e},ru=function e(e,t){return e[0]===t[0]&&e[1]===t[1]},rc=function e(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},rl=0,rs=[];function rd(e){var t=nI.useRef([]),n=nI.useRef([0,0]),o=nI.useRef(),a=nI.useState(rl++)[0],i=nI.useState(function(){return nU()})[0],u=nI.useRef(e);nI.useEffect(function(){u.current=e},[e]),nI.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=nv([e.lockRef.current],(e.shards||[]).map(ri),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=nI.useCallback(function(e,t){if("touches"in e&&e.touches.length===2)return!u.current.allowPinchZoom;var a=ro(e),i=n.current,c="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],s,d=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&f==="h"&&d.type==="range")return!1;var v=n9(f,d);if(!v)return!0;if(v?s=f:(s=f==="v"?"h":"v",v=n9(f,d)),!v)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=s),!s)return!0;var p=o.current||s;return rr(p,t,e,p==="h"?c:l,!0)},[]),l=nI.useCallback(function(e){var n=e;if(!(!rs.length||rs[rs.length-1]!==i)){var o="deltaY"in n?ra(n):ro(n),a=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&ru(e.delta,o)})[0];if(a&&a.should){n.cancelable&&n.preventDefault();return}if(!a){var l=(u.current.shards||[]).map(ri).filter(Boolean).filter(function(e){return e.contains(n.target)}),s=l.length>0?c(n,l[0]):!u.current.noIsolation;s&&n.cancelable&&n.preventDefault()}}},[]),s=nI.useCallback(function(e,n,o,a){var i={name:e,delta:n,target:o,should:a};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=nI.useCallback(function(e){n.current=ro(e),o.current=void 0},[]),f=nI.useCallback(function(t){s(t.type,ra(t),t.target,c(t,e.lockRef.current))},[]),v=nI.useCallback(function(t){s(t.type,ro(t),t.target,c(t,e.lockRef.current))},[]);nI.useEffect(function(){return rs.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,n2),document.addEventListener("touchmove",l,n2),document.addEventListener("touchstart",d,n2),function(){rs=rs.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,n2),document.removeEventListener("touchmove",l,n2),document.removeEventListener("touchstart",d,n2)}},[]);var p=e.removeScrollBar,m=e.inert;return nI.createElement(nI.Fragment,null,m?nI.createElement(i,{styles:rc(a)}):null,p?nI.createElement(nQ,{gapMode:"margin"}):null)}var rf=nk(nO,rd);var rv=np.forwardRef(function(e,t){return np.createElement(nj,nd({},e,{ref:t,sideCar:rf}))});rv.classNames=nj.classNames;var rp=rv;var rm=function e(e){if((typeof document==="undefined"?"undefined":E(document))>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rg=new WeakMap,rh=new WeakMap,rb={},rw=0,ry=function e(e){return e&&(e.host||ry(e.parentNode))},rx=function e(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ry(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})},rE=function e(e,t,n,o){var a=rx(t,Array.isArray(e)?e:[e]);rb[n]||(rb[n]=new WeakMap);var i=rb[n],u=[],c=new Set,l=new Set(a),s=function e(e){!e||c.has(e)||(c.add(e),s(e.parentNode))};a.forEach(s);var d=function e(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))d(e);else{var t=e.getAttribute(o),a=t!==null&&t!=="false",l=(rg.get(e)||0)+1,s=(i.get(e)||0)+1;rg.set(e,l),i.set(e,s),u.push(e),l===1&&a&&rh.set(e,!0),s===1&&e.setAttribute(n,"true"),a||e.setAttribute(o,"true")}})};return d(t),c.clear(),rw++,function(){u.forEach(function(e){var t=rg.get(e)-1,a=i.get(e)-1;rg.set(e,t),i.set(e,a),t||(rh.has(e)||e.removeAttribute(o),rh.delete(e)),a||e.removeAttribute(n)}),rw--,rw||(rg=new WeakMap,rg=new WeakMap,rh=new WeakMap,rb={})}},rC=function e(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||rm(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),rE(o,a,n,"aria-hidden")):function(){return null}};var rN="Dialog",r_=w(V(rN),2),rR=r_[0],rS=r_[1],rD=w(rR(rN),2),rT=rD[0],rP=rD[1],rM=function(e){var t=e.__scopeDialog,n=e.children,o=e.open,a=e.defaultOpen,i=e.onOpenChange,u=e.modal,c=u===void 0?!0:u,l=(0,tj.useRef)(null),s=(0,tj.useRef)(null),d=w(ec({prop:o,defaultProp:a,onChange:i}),2),f=d[0],v=f===void 0?!1:f,p=d[1];return(0,tj.createElement)(rT,{scope:t,triggerRef:l,contentRef:s,contentId:eS(),titleId:eS(),descriptionId:eS(),open:v,onOpenChange:p,onOpenToggle:(0,tj.useCallback)(function(){return p(function(e){return!e})},[p]),modal:c},n)},rk="DialogTrigger",rO=(0,tj.forwardRef)(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=rP(rk,n),i=Y(t,a.triggerRef);return(0,tj.createElement)(ev.button,q({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":rQ(a.open)},o,{ref:i,onClick:eo(e.onClick,a.onOpenToggle)}))}),rA="DialogPortal",rj=w(rR(rA,{forceMount:void 0}),2),rI=rj[0],rL=rj[1],rF=function(e){var t=e.__scopeDialog,n=e.forceMount,o=e.children,a=e.container,i=rP(rA,t);return(0,tj.createElement)(rI,{scope:t,forceMount:n},tj.Children.map(o,function(e){return(0,tj.createElement)(ex,{present:n||i.open},(0,tj.createElement)(ni,{asChild:!0,container:a},e))}))},rq="DialogOverlay",rz=(0,tj.forwardRef)(function(e,t){var n=rL(rq,e.__scopeDialog),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=rP(rq,e.__scopeDialog);return u.modal?(0,tj.createElement)(ex,{present:a||u.open},(0,tj.createElement)(rH,q({},i,{ref:t}))):null}),rH=(0,tj.forwardRef)(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=rP(rq,n);return(0,tj.createElement)(rp,{as:J,allowPinchZoom:!0,shards:[a.contentRef]},(0,tj.createElement)(ev.div,q({"data-state":rQ(a.open)},o,{ref:t,style:p({pointerEvents:"auto"},o.style)})))}),rK="DialogContent",rV=(0,tj.forwardRef)(function(e,t){var n=rL(rK,e.__scopeDialog),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=rP(rK,e.__scopeDialog);return(0,tj.createElement)(ex,{present:a||u.open},u.modal?(0,tj.createElement)(rB,q({},i,{ref:t})):(0,tj.createElement)(rW,q({},i,{ref:t})))}),rB=(0,tj.forwardRef)(function(e,t){var n=rP(rK,e.__scopeDialog),o=(0,tj.useRef)(null),a=Y(t,n.contentRef,o);return(0,tj.useEffect)(function(){var e=o.current;if(e)return rC(e)},[]),(0,tj.createElement)(rU,q({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:eo(e.onCloseAutoFocus,function(e){var t;e.preventDefault(),(t=n.triggerRef.current)===null||t===void 0||t.focus()}),onPointerDownOutside:eo(e.onPointerDownOutside,function(e){var t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:eo(e.onFocusOutside,function(e){return e.preventDefault()})}))}),rW=(0,tj.forwardRef)(function(e,t){var n=rP(rK,e.__scopeDialog),o=(0,tj.useRef)(!1),a=(0,tj.useRef)(!1);return(0,tj.createElement)(rU,q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,t),!t.defaultPrevented){var u;o.current||(u=n.triggerRef.current)===null||u===void 0||u.focus(),t.preventDefault()}o.current=!1,a.current=!1},onInteractOutside:function(t){var i,u;(i=e.onInteractOutside)===null||i===void 0||i.call(e,t),t.defaultPrevented||(o.current=!0,t.detail.originalEvent.type==="pointerdown"&&(a.current=!0));var c=t.target;((u=n.triggerRef.current)===null||u===void 0?void 0:u.contains(c))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&a.current&&t.preventDefault()}}))}),rU=(0,tj.forwardRef)(function(e,t){var n=e.__scopeDialog,o=e.trapFocus,a=e.onOpenAutoFocus,i=e.onCloseAutoFocus,u=h(e,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),c=rP(rK,n),l=(0,tj.useRef)(null),s=Y(t,l);return nl(),(0,tj.createElement)(tj.Fragment,null,(0,tj.createElement)(t2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i},(0,tj.createElement)(tB,q({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":rQ(c.open)},u,{ref:s,onDismiss:function(){return c.onOpenChange(!1)}}))),!1)}),rG="DialogTitle",rX=(0,tj.forwardRef)(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=rP(rG,n);return(0,tj.createElement)(ev.h2,q({id:a.titleId},o,{ref:t}))}),rY="DialogDescription",rZ=(0,tj.forwardRef)(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=rP(rY,n);return(0,tj.createElement)(ev.p,q({id:a.descriptionId},o,{ref:t}))}),r$="DialogClose",rJ=(0,tj.forwardRef)(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=rP(r$,n);return(0,tj.createElement)(ev.button,q({type:"button"},o,{ref:t,onClick:eo(e.onClick,function(){return a.onOpenChange(!1)})}))});function rQ(e){return e?"open":"closed"}var r0="DialogTitleWarning",r1=w(K(r0,{contentName:rK,titleName:rG,docsSlug:"dialog"}),2),r2=r1[0],r5=r1[1];var r4=rM,r3=rO,r8=rF,r9=rz,r6=rV,r7=rX,oe=rZ,ot=rJ;var on="AlertDialog",or=w(V(on,[rS]),2),oo=or[0],oa=or[1],oi=rS(),ou=function(e){var t=e.__scopeAlertDialog,n=h(e,["__scopeAlertDialog"]),o=oi(t);return(0,tA.createElement)(r4,q({},o,n,{modal:!0}))};var oc=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=h(e,["__scopeAlertDialog"]),a=oi(n);return(0,tA.createElement)(r3,q({},a,o,{ref:t}))});var ol=function(e){var t=e.__scopeAlertDialog,n=h(e,["__scopeAlertDialog"]),o=oi(t);return(0,tA.createElement)(r8,q({},o,n))};var os=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=h(e,["__scopeAlertDialog"]),a=oi(n);return(0,tA.createElement)(r9,q({},a,o,{ref:t}))}),od="AlertDialogContent",of=w(oo(od),2),ov=of[0],op=of[1],om=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=e.children,a=h(e,["__scopeAlertDialog","children"]),i=oi(n),u=(0,tA.useRef)(null),c=Y(t,u),l=(0,tA.useRef)(null);return(0,tA.createElement)(r2,{contentName:od,titleName:og,docsSlug:"alert-dialog"},(0,tA.createElement)(ov,{scope:n,cancelRef:l},(0,tA.createElement)(r6,q({role:"alertdialog"},i,a,{ref:c,onOpenAutoFocus:eo(a.onOpenAutoFocus,function(e){var t;e.preventDefault(),(t=l.current)===null||t===void 0||t.focus({preventScroll:!0})}),onPointerDownOutside:function(e){return e.preventDefault()},onInteractOutside:function(e){return e.preventDefault()}}),(0,tA.createElement)(ee,null,o),!1)))}),og="AlertDialogTitle",oh=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=h(e,["__scopeAlertDialog"]),a=oi(n);return(0,tA.createElement)(r7,q({},a,o,{ref:t}))});var ob=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=h(e,["__scopeAlertDialog"]),a=oi(n);return(0,tA.createElement)(oe,q({},a,o,{ref:t}))});var ow=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=h(e,["__scopeAlertDialog"]),a=oi(n);return(0,tA.createElement)(ot,q({},a,o,{ref:t}))}),oy="AlertDialogCancel",ox=(0,tA.forwardRef)(function(e,t){var n=e.__scopeAlertDialog,o=h(e,["__scopeAlertDialog"]),a=op(oy,n),i=a.cancelRef,u=oi(n),c=Y(t,i);return(0,tA.createElement)(ot,q({},u,o,{ref:c}))});var oE=ou,oC=oc,oN=ol,o_=os,oR=om,oS=ow,oD=ox,oT=oh,oP=ob;var oM=j(require("react"),1);var ok=require("class-variance-authority");var oO=require("react/jsx-runtime"),oA=(0,ok.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),oj=oM.forwardRef(function(e,t){var n=e.className,o=e.variant,a=e.size,i=e.asChild,u=i===void 0?!1:i,c=h(e,["className","variant","size","asChild"]);return(0,oO.jsx)(u?J:"button",p({className:tS(oA({variant:o,size:a,className:n})),ref:t},c))});oj.displayName="Button";var oI=require("react/jsx-runtime"),oL=oE,oF=oC,oq=oN,oz=tO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oI.jsx)(o_,g(p({className:tS("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},o),{ref:t}))});oz.displayName=o_.displayName;var oH=tO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oI.jsxs)(oq,{children:[(0,oI.jsx)(oz,{}),(0,oI.jsx)(oR,p({ref:t,className:tS("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},o))]})});oH.displayName=oR.displayName;var oK=function(e){var t=e.className,n=h(e,["className"]);return(0,oI.jsx)("div",p({className:tS("flex flex-col space-y-2 text-center sm:text-left",t)},n))};oK.displayName="AlertDialogHeader";var oV=function(e){var t=e.className,n=h(e,["className"]);return(0,oI.jsx)("div",p({className:tS("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};oV.displayName="AlertDialogFooter";var oB=tO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oI.jsx)(oT,p({ref:t,className:tS("text-lg font-semibold",n)},o))});oB.displayName=oT.displayName;var oW=tO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oI.jsx)(oP,p({ref:t,className:tS("text-sm text-muted-foreground",n)},o))});oW.displayName=oP.displayName;var oU=tO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oI.jsx)(oS,p({ref:t,className:tS(oA(),n)},o))});oU.displayName=oS.displayName;var oG=tO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oI.jsx)(oD,p({ref:t,className:tS(oA({variant:"outline"}),"mt-2 sm:mt-0",n)},o))});oG.displayName=oD.displayName;var oX=j(require("react"),1),oY=require("class-variance-authority");var oZ=require("react/jsx-runtime"),o$=(0,oY.cva)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),oJ=oX.forwardRef(function(e,t){var n=e.className,o=e.variant,a=h(e,["className","variant"]);return(0,oZ.jsx)("div",p({ref:t,role:"alert",className:tS(o$({variant:o}),n)},a))});oJ.displayName="Alert";var oQ=oX.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oZ.jsx)("h5",p({ref:t,className:tS("mb-1 font-medium leading-none tracking-tight",n)},o))});oQ.displayName="AlertTitle";var o0=oX.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,oZ.jsx)("div",p({ref:t,className:tS("text-sm [&_p]:leading-relaxed",n)},o))});o0.displayName="AlertDescription";var o1=require("react");var o2=(0,o1.forwardRef)(function(e,t){var n=e.ratio,o=n===void 0?1:n,a=e.style,i=h(e,["ratio","style"]);return(0,o1.createElement)("div",{style:{position:"relative",width:"100%",paddingBottom:"".concat(100/o,"%")},"data-radix-aspect-ratio-wrapper":""},(0,o1.createElement)(ev.div,q({},i,{ref:t,style:g(p({},a),{position:"absolute",top:0,right:0,bottom:0,left:0})})))}),o5=o2;var o4=o5;var o3=j(require("react"),1);var o8=require("react");var o9="Avatar",o6=w(V(o9),2),o7=o6[0],ae=o6[1],at=w(o7(o9),2),an=at[0],ar=at[1],ao=(0,o8.forwardRef)(function(e,t){var n=e.__scopeAvatar,o=h(e,["__scopeAvatar"]),a=w((0,o8.useState)("idle"),2),i=a[0],u=a[1];return(0,o8.createElement)(an,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:u},(0,o8.createElement)(ev.span,q({},o,{ref:t})))}),aa="AvatarImage",ai=(0,o8.forwardRef)(function(e,t){var n=e.__scopeAvatar,o=e.src,a=e.onLoadingStatusChange,i=a===void 0?function(){}:a,u=h(e,["__scopeAvatar","src","onLoadingStatusChange"]),c=ar(aa,n),l=al(o),s=eu(function(e){i(e),c.onImageLoadingStatusChange(e)});return eh(function(){l!=="idle"&&s(l)},[l,s]),l==="loaded"?(0,o8.createElement)(ev.img,q({},u,{ref:t,src:o})):null}),au="AvatarFallback",ac=(0,o8.forwardRef)(function(e,t){var n=e.__scopeAvatar,o=e.delayMs,a=h(e,["__scopeAvatar","delayMs"]),i=ar(au,n),u=w((0,o8.useState)(o===void 0),2),c=u[0],l=u[1];return(0,o8.useEffect)(function(){if(o!==void 0){var e=window.setTimeout(function(){return l(!0)},o);return function(){return window.clearTimeout(e)}}},[o]),c&&i.imageLoadingStatus!=="loaded"?(0,o8.createElement)(ev.span,q({},a,{ref:t})):null});function al(e){var t=w((0,o8.useState)("idle"),2),n=t[0],o=t[1];return(0,o8.useEffect)(function(){if(!e){o("error");return}var t=!0,n=new window.Image,a=function(e){return function(){t&&o(e)}};return o("loading"),n.onload=a("loaded"),n.onerror=a("error"),n.src=e,function(){t=!1}},[e]),n}var as=ao,ad=ai,af=ac;var av=require("react/jsx-runtime"),ap=o3.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,av.jsx)(as,p({ref:t,className:tS("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n)},o))});ap.displayName=as.displayName;var am=o3.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,av.jsx)(ad,p({ref:t,className:tS("aspect-square h-full w-full",n)},o))});am.displayName=ad.displayName;var ag=o3.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,av.jsx)(af,p({ref:t,className:tS("flex h-full w-full items-center justify-center rounded-full bg-muted",n)},o))});ag.displayName=af.displayName;var ah=require("class-variance-authority");var ab=require("react/jsx-runtime"),aw=(0,ah.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ay(e){var t=e.className,n=e.variant,o=h(e,["className","variant"]);return(0,ab.jsx)("div",p({className:tS(aw({variant:n}),t)},o))}var ax=j(require("react"),1);var aE=require("lucide-react");var aC=require("react/jsx-runtime"),aN=ax.forwardRef(function(e,t){var n=u({},v(e));return(0,aC.jsx)("nav",p({ref:t,"aria-label":"breadcrumb"},n))});aN.displayName="Breadcrumb";var a_=ax.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aC.jsx)("ol",p({ref:t,className:tS("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",n)},o))});a_.displayName="BreadcrumbList";var aR=ax.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aC.jsx)("li",p({ref:t,className:tS("inline-flex items-center gap-1.5",n)},o))});aR.displayName="BreadcrumbItem";var aS=ax.forwardRef(function(e,t){var n=e.asChild,o=e.className,a=h(e,["asChild","className"]);return(0,aC.jsx)(n?J:"a",p({ref:t,className:tS("transition-colors hover:text-foreground",o)},a))});aS.displayName="BreadcrumbLink";var aD=ax.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aC.jsx)("span",p({ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:tS("font-normal text-foreground",n)},o))});aD.displayName="BreadcrumbPage";var aT=function(e){var t=e.children,n=e.className,o=h(e,["children","className"]);return(0,aC.jsx)("li",g(p({role:"presentation","aria-hidden":"true",className:tS("[&>svg]:size-3.5",n)},o),{children:t!==null&&t!==void 0?t:(0,aC.jsx)(aE.ChevronRight,{})}))};aT.displayName="BreadcrumbSeparator";var aP=function(e){var t=e.className,n=h(e,["className"]);return(0,aC.jsxs)("span",g(p({role:"presentation","aria-hidden":"true",className:tS("flex h-9 w-9 items-center justify-center",t)},n),{children:[(0,aC.jsx)(aE.MoreHorizontal,{className:"h-4 w-4"}),(0,aC.jsx)("span",{className:"sr-only",children:"More"})]}))};aP.displayName="BreadcrumbElipssis";var aM=require("lucide-react"),ak=require("react-day-picker");var aO=require("react/jsx-runtime");function aA(e){var t=e.className,n=e.classNames,o=e.showOutsideDays,a=o===void 0?!0:o,i=h(e,["className","classNames","showOutsideDays"]);return(0,aO.jsx)(ak.DayPicker,p({showOutsideDays:a,className:tS("p-3",t),classNames:p({months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:tS(oA({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:tS(oA({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},n),components:{IconLeft:function(e){var t=u({},v(e));return(0,aO.jsx)(aM.ChevronLeft,{className:"h-4 w-4"})},IconRight:function(e){var t=u({},v(e));return(0,aO.jsx)(aM.ChevronRight,{className:"h-4 w-4"})}}},i))}aA.displayName="Calendar";var aj=j(require("react"),1);var aI=require("react/jsx-runtime"),aL=aj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aI.jsx)("div",p({ref:t,className:tS("rounded-lg border bg-card text-card-foreground shadow-sm",n)},o))});aL.displayName="Card";var aF=aj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aI.jsx)("div",p({ref:t,className:tS("flex flex-col space-y-1.5 p-6",n)},o))});aF.displayName="CardHeader";var aq=aj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aI.jsx)("h3",p({ref:t,className:tS("text-2xl font-semibold leading-none tracking-tight",n)},o))});aq.displayName="CardTitle";var az=aj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aI.jsx)("p",p({ref:t,className:tS("text-sm text-muted-foreground",n)},o))});az.displayName="CardDescription";var aH=aj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aI.jsx)("div",p({ref:t,className:tS("p-6 pt-0",n)},o))});aH.displayName="CardContent";var aK=aj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,aI.jsx)("div",p({ref:t,className:tS("flex items-center p-6 pt-0",n)},o))});aK.displayName="CardFooter";var aV=j(require("react"),1),aB=j(require("embla-carousel-react"),1),aW=require("lucide-react");var aU=require("react/jsx-runtime"),aG=aV.createContext(null);function aX(){var e=aV.useContext(aG);if(!e)throw new Error("useCarousel must be used within a ");return e}var aY=aV.forwardRef(function(e,t){var n=e.orientation,o=n===void 0?"horizontal":n,a=e.opts,i=e.setApi,u=e.plugins,c=e.className,l=e.children,s=h(e,["orientation","opts","setApi","plugins","className","children"]);var d=w((0,aB.default)(g(p({},a),{axis:o==="horizontal"?"x":"y"}),u),2),f=d[0],v=d[1],m=w(aV.useState(!1),2),b=m[0],y=m[1],x=w(aV.useState(!1),2),E=x[0],C=x[1],N=aV.useCallback(function(e){e&&(y(e.canScrollPrev()),C(e.canScrollNext()))},[]),_=aV.useCallback(function(){v===null||v===void 0?void 0:v.scrollPrev()},[v]),R=aV.useCallback(function(){v===null||v===void 0?void 0:v.scrollNext()},[v]),S=aV.useCallback(function(e){e.key==="ArrowLeft"?(e.preventDefault(),_()):e.key==="ArrowRight"&&(e.preventDefault(),R())},[_,R]);return aV.useEffect(function(){!v||!i||i(v)},[v,i]),aV.useEffect(function(){if(v)return N(v),v.on("reInit",N),v.on("select",N),function(){v===null||v===void 0?void 0:v.off("select",N)}},[v,N]),(0,aU.jsx)(aG.Provider,{value:{carouselRef:f,api:v,opts:a,orientation:o||((a===null||a===void 0?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:_,scrollNext:R,canScrollPrev:b,canScrollNext:E},children:(0,aU.jsx)("div",g(p({ref:t,onKeyDownCapture:S,className:tS("relative",c),role:"region","aria-roledescription":"carousel"},s),{children:l}))})});aY.displayName="Carousel";var aZ=aV.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);var a=aX(),i=a.carouselRef,u=a.orientation;return(0,aU.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,aU.jsx)("div",p({ref:t,className:tS("flex",u==="horizontal"?"-ml-4":"-mt-4 flex-col",n)},o))})});aZ.displayName="CarouselContent";var a$=aV.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);var a=aX(),i=a.orientation;return(0,aU.jsx)("div",p({ref:t,role:"group","aria-roledescription":"slide",className:tS("min-w-0 shrink-0 grow-0 basis-full",i==="horizontal"?"pl-4":"pt-4",n)},o))});a$.displayName="CarouselItem";var aJ=aV.forwardRef(function(e,t){var n=e.className,o=e.variant,a=o===void 0?"outline":o,i=e.size,u=i===void 0?"icon":i,c=h(e,["className","variant","size"]);var l=aX(),s=l.orientation,d=l.scrollPrev,f=l.canScrollPrev;return(0,aU.jsxs)(oj,g(p({ref:t,variant:a,size:u,className:tS("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!f,onClick:d},c),{children:[(0,aU.jsx)(aW.ArrowLeft,{className:"h-4 w-4"}),(0,aU.jsx)("span",{className:"sr-only",children:"Previous slide"})]}))});aJ.displayName="CarouselPrevious";var aQ=aV.forwardRef(function(e,t){var n=e.className,o=e.variant,a=o===void 0?"outline":o,i=e.size,u=i===void 0?"icon":i,c=h(e,["className","variant","size"]);var l=aX(),s=l.orientation,d=l.scrollNext,f=l.canScrollNext;return(0,aU.jsxs)(oj,g(p({ref:t,variant:a,size:u,className:tS("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!f,onClick:d},c),{children:[(0,aU.jsx)(aW.ArrowRight,{className:"h-4 w-4"}),(0,aU.jsx)("span",{className:"sr-only",children:"Next slide"})]}))});aQ.displayName="CarouselNext";var a0=j(require("react"),1),a1=j(require("recharts"),1);var a2=require("react/jsx-runtime"),a5={light:"",dark:".dark"},a4=a0.createContext(null);function a3(){var e=a0.useContext(a4);if(!e)throw new Error("useChart must be used within a ");return e}var a8=a0.forwardRef(function(e,t){var n=e.id,o=e.className,a=e.children,i=e.config,u=h(e,["id","className","children","config"]);var c=a0.useId(),l="chart-".concat(n||c.replace(/:/g,""));return(0,a2.jsx)(a4.Provider,{value:{config:i},children:(0,a2.jsxs)("div",g(p({"data-chart":l,ref:t,className:tS("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",o)},u),{children:[(0,a2.jsx)(a9,{id:l,config:i}),(0,a2.jsx)(a1.ResponsiveContainer,{children:a})]}))})});a8.displayName="Chart";var a9=function(e){var t=e.id,n=e.config;var o=Object.entries(n).filter(function(e){var t=w(e,2),n=t[0],o=t[1];return o.theme||o.color});return o.length?(0,a2.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(a5).map(function(e){var n=w(e,2),a=n[0],i=n[1];return"\n".concat(i," [data-chart=").concat(t,"] {\n").concat(o.map(function(e){var t=w(e,2),n=t[0],o=t[1];var i;var u=((i=o.theme)===null||i===void 0?void 0:i[a])||o.color;return u?" --color-".concat(n,": ").concat(u,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},a6=a1.Tooltip,a7=a0.forwardRef(function(e,t){var n=e.active,o=e.payload,a=e.className,i=e.indicator,u=i===void 0?"dot":i,c=e.hideLabel,l=c===void 0?!1:c,s=e.hideIndicator,d=s===void 0?!1:s,f=e.label,v=e.labelFormatter,p=e.labelClassName,m=e.formatter,g=e.color,h=e.nameKey,b=e.labelKey;var y=a3(),x=y.config,E=a0.useMemo(function(){var e;if(l||!(o===null||o===void 0?void 0:o.length))return null;var t=w(o,1),n=t[0],a="".concat(b||n.dataKey||n.name||"value"),i=ir(x,n,a),u=!b&&typeof f=="string"?((e=x[f])===null||e===void 0?void 0:e.label)||f:i===null||i===void 0?void 0:i.label;return v?(0,a2.jsx)("div",{className:tS("font-medium",p),children:v(u,o)}):u?(0,a2.jsx)("div",{className:tS("font-medium",p),children:u}):null},[f,v,o,l,p,x,b]);if(!n||!(o===null||o===void 0?void 0:o.length))return null;var C=o.length===1&&u!=="dot";return(0,a2.jsxs)("div",{ref:t,className:tS("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",a),children:[C?null:E,(0,a2.jsx)("div",{className:"grid gap-1.5",children:o.map(function(e,t){var n="".concat(h||e.name||e.dataKey||"value"),o=ir(x,e,n),a=g||e.payload.fill||e.color;return(0,a2.jsx)("div",{className:tS("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",u==="dot"&&"items-center"),children:m&&(e===null||e===void 0?void 0:e.value)!==void 0&&e.name?m(e.value,e.name,e,t,e.payload):(0,a2.jsxs)(a2.Fragment,{children:[(o===null||o===void 0?void 0:o.icon)?(0,a2.jsx)(o.icon,{}):!d&&(0,a2.jsx)("div",{className:tS("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":u==="dot","w-1":u==="line","w-0 border-[1.5px] border-dashed bg-transparent":u==="dashed","my-0.5":C&&u==="dashed"}),style:{"--color-bg":a,"--color-border":a}}),(0,a2.jsxs)("div",{className:tS("flex flex-1 justify-between leading-none",C?"items-end":"items-center"),children:[(0,a2.jsxs)("div",{className:"grid gap-1.5",children:[C?E:null,(0,a2.jsx)("span",{className:"text-muted-foreground",children:(o===null||o===void 0?void 0:o.label)||e.name})]}),e.value&&(0,a2.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});a7.displayName="ChartTooltip";var ie=a1.Legend,it=a0.forwardRef(function(e,t){var n=e.className,o=e.hideIcon,a=o===void 0?!1:o,i=e.payload,u=e.verticalAlign,c=u===void 0?"bottom":u,l=e.nameKey;var s=a3(),d=s.config;return(i===null||i===void 0?void 0:i.length)?(0,a2.jsx)("div",{ref:t,className:tS("flex items-center justify-center gap-4",c==="top"?"pb-3":"pt-3",n),children:i.map(function(e){var t="".concat(l||e.dataKey||"value"),n=ir(d,e,t);return(0,a2.jsxs)("div",{className:tS("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(n===null||n===void 0?void 0:n.icon)&&!a?(0,a2.jsx)(n.icon,{}):(0,a2.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),n===null||n===void 0?void 0:n.label]},e.value)})}):null});it.displayName="ChartLegend";function ir(e,t,n){if(typeof t!="object"||t===null)return;var o="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,a=n;return n in t&&typeof t[n]=="string"?a=t[n]:o&&n in o&&typeof o[n]=="string"&&(a=o[n]),a in e?e[a]:e[n]}var io=j(require("react"),1);var ia=require("react");var ii=require("react");function iu(e){var t=(0,ii.useRef)({value:e,previous:e});return(0,ii.useMemo)(function(){return t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous},[e])}var ic=require("react");function il(e){var t=w((0,ic.useState)(void 0),2),n=t[0],o=t[1];return eh(function(){if(e){o({width:e.offsetWidth,height:e.offsetHeight});var t=new ResizeObserver(function(t){if(!Array.isArray(t)||!t.length)return;var n=t[0],a,i;if("borderBoxSize"in n){var u=n.borderBoxSize,c=Array.isArray(u)?u[0]:u;a=c.inlineSize,i=c.blockSize}else a=e.offsetWidth,i=e.offsetHeight;o({width:a,height:i})});return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}else o(void 0)},[e]),n}var is="Checkbox",id=w(V(is),2),iv=id[0],ip=id[1],im=w(iv(is),2),ig=im[0],ih=im[1],ib=(0,ia.forwardRef)(function(e,t){var n=e.__scopeCheckbox,o=e.name,a=e.checked,i=e.defaultChecked,u=e.required,c=e.disabled,l=e.value,s=l===void 0?"on":l,d=e.onCheckedChange,f=h(e,["__scopeCheckbox","name","checked","defaultChecked","required","disabled","value","onCheckedChange"]),v=w((0,ia.useState)(null),2),p=v[0],m=v[1],g=Y(t,function(e){return m(e)}),b=(0,ia.useRef)(!1),y=p?!!p.closest("form"):!0,x=w(ec({prop:a,defaultProp:i,onChange:d}),2),E=x[0],C=E===void 0?!1:E,N=x[1],_=(0,ia.useRef)(C);return(0,ia.useEffect)(function(){var e=p===null||p===void 0?void 0:p.form;if(e){var t=function(){return N(_.current)};return e.addEventListener("reset",t),function(){return e.removeEventListener("reset",t)}}},[p,N]),(0,ia.createElement)(ig,{scope:n,state:C,disabled:c},(0,ia.createElement)(ev.button,q({type:"button",role:"checkbox","aria-checked":iE(C)?"mixed":C,"aria-required":u,"data-state":iC(C),"data-disabled":c?"":void 0,disabled:c,value:s},f,{ref:g,onKeyDown:eo(e.onKeyDown,function(e){e.key==="Enter"&&e.preventDefault()}),onClick:eo(e.onClick,function(e){N(function(e){return iE(e)?!0:!e}),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,ia.createElement)(ix,{control:p,bubbles:!b.current,name:o,value:s,checked:C,required:u,disabled:c,style:{transform:"translateX(-100%)"}}))}),iw="CheckboxIndicator",iy=(0,ia.forwardRef)(function(e,t){var n=e.__scopeCheckbox,o=e.forceMount,a=h(e,["__scopeCheckbox","forceMount"]),i=ih(iw,n);return(0,ia.createElement)(ex,{present:o||iE(i.state)||i.state===!0},(0,ia.createElement)(ev.span,q({"data-state":iC(i.state),"data-disabled":i.disabled?"":void 0},a,{ref:t,style:p({pointerEvents:"none"},e.style)})))}),ix=function(e){var t=e.control,n=e.checked,o=e.bubbles,a=o===void 0?!0:o,i=h(e,["control","checked","bubbles"]),u=(0,ia.useRef)(null),c=iu(n),l=il(t);return(0,ia.useEffect)(function(){var e=u.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&o){var i=new Event("click",{bubbles:a});e.indeterminate=iE(n),o.call(e,iE(n)?!1:n),e.dispatchEvent(i)}},[c,n,a]),(0,ia.createElement)("input",q({type:"checkbox","aria-hidden":!0,defaultChecked:iE(n)?!1:n},i,{tabIndex:-1,ref:u,style:g(p({},e.style,l),{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function iE(e){return e==="indeterminate"}function iC(e){return iE(e)?"indeterminate":e?"checked":"unchecked"}var iN=ib,i_=iy;var iR=require("lucide-react");var iS=require("react/jsx-runtime"),iD=io.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,iS.jsx)(iN,g(p({ref:t,className:tS("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},o),{children:(0,iS.jsx)(i_,{className:tS("flex items-center justify-center text-current"),children:(0,iS.jsx)(iR.Check,{className:"h-4 w-4"})})}))});iD.displayName=iN.displayName;var iT=eK,iP=eL,iM=eq;var ik=j(require("react"),1),iO=require("cmdk"),iA=require("lucide-react");var ij=j(require("react"),1);var iI=j(require("react"),1);function iL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.checkForDefaultPrevented,a=o===void 0?!0:o;return function(n){if(e===null||e===void 0?void 0:e(n),a===!1||!n.defaultPrevented)return t===null||t===void 0?void 0:t(n)}}var iF=j(require("react"),1);function iq(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function iz(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:[];var n=[];function o(t,o){var a=iK.createContext(o),i=n.length;n=x(n).concat([o]);function u(t){var n=t.scope,o=t.children,u=h(t,["scope","children"]),c=(n===null||n===void 0?void 0:n[e][i])||a,l=iK.useMemo(function(){return u},Object.values(u));return(0,iV.jsx)(c.Provider,{value:l,children:o})}function c(n,u){var c=(u===null||u===void 0?void 0:u[e][i])||a,l=iK.useContext(c);if(l)return l;if(o!==void 0)return o;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}return u.displayName=t+"Provider",[u,c]}var a=function(){var t=n.map(function(e){return iK.createContext(e)});return function n(n){var o=(n===null||n===void 0?void 0:n[e])||t;return iK.useMemo(function(){return i({},"__scope".concat(e),g(p({},n),i({},e,o)))},[n,o])}};return a.scopeName=e,[o,iU.apply(void 0,[a].concat(x(t)))]}function iU(){for(var e=arguments.length,t=new Array(e),n=0;n1?i9.Children.only(null):i9.isValidElement(u)?u.props.children:null:e});return(0,i6.jsx)(ue,g(p({},o),{ref:t,children:i9.isValidElement(u)?i9.cloneElement(u,void 0,c):null}))}return(0,i6.jsx)(ue,g(p({},o),{ref:t,children:n}))});i7.displayName="Slot";var ue=i9.forwardRef(function(e,t){var n=e.children,o=h(e,["children"]);if(i9.isValidElement(n)){var a=uo(n);return i9.cloneElement(n,g(p({},ur(o,n.props)),{ref:t?iz(t,a):a}))}return i9.Children.count(n)>1?i9.Children.only(null):null});ue.displayName="SlotClone";var ut=function(e){var t=e.children;return(0,i6.jsx)(i6.Fragment,{children:t})};function un(e){return i9.isValidElement(e)&&e.type===ut}function ur(e,t){var n=function(n){var a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?o[n]=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=i1(e);ul.useEffect(function(){var e=function(e){e.key==="Escape"&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),function(){return t.removeEventListener("keydown",e,{capture:!0})}},[n,t])}var ud=require("react/jsx-runtime"),uf="DismissableLayer",uv="dismissableLayer.update",up="dismissableLayer.pointerDownOutside",um="dismissableLayer.focusOutside",ug,uh=i4.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ub=i4.forwardRef(function(e,t){var n;var o;var a=e.disableOutsidePointerEvents,i=a===void 0?!1:a,u=e.onEscapeKeyDown,c=e.onPointerDownOutside,l=e.onFocusOutside,s=e.onInteractOutside,d=e.onDismiss,f=h(e,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),v=i4.useContext(uh),m=w(i4.useState(null),2),b=m[0],y=m[1],E=(o=b===null||b===void 0?void 0:b.ownerDocument)!==null&&o!==void 0?o:(n=globalThis)===null||n===void 0?void 0:n.document,C=w(i4.useState({}),2),N=C[1],_=iH(t,function(e){return y(e)}),R=Array.from(v.layers),S=w(x(v.layersWithOutsidePointerEventsDisabled).slice(-1),1),D=S[0],T=R.indexOf(D),P=b?R.indexOf(b):-1,M=v.layersWithOutsidePointerEventsDisabled.size>0,k=P>=T,O=ux(function(e){var t=e.target,n=x(v.branches).some(function(e){return e.contains(t)});!k||n||(c===null||c===void 0?void 0:c(e),s===null||s===void 0?void 0:s(e),e.defaultPrevented||(d===null||d===void 0?void 0:d()))},E),A=uE(function(e){var t=e.target;x(v.branches).some(function(e){return e.contains(t)})||(l===null||l===void 0?void 0:l(e),s===null||s===void 0?void 0:s(e),e.defaultPrevented||(d===null||d===void 0?void 0:d()))},E);return us(function(e){P===v.layers.size-1&&(u===null||u===void 0?void 0:u(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},E),i4.useEffect(function(){if(b)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(ug=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(b)),v.layers.add(b),uC(),function(){i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=ug)}},[b,E,i,v]),i4.useEffect(function(){return function(){b&&(v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),uC())}},[b,v]),i4.useEffect(function(){var e=function(){return N({})};return document.addEventListener(uv,e),function(){return document.removeEventListener(uv,e)}},[]),(0,ud.jsx)(uu.div,g(p({},f),{ref:_,style:p({pointerEvents:M?k?"auto":"none":void 0},e.style),onFocusCapture:iL(e.onFocusCapture,A.onFocusCapture),onBlurCapture:iL(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:iL(e.onPointerDownCapture,O.onPointerDownCapture)}))});ub.displayName=uf;var uw="DismissableLayerBranch",uy=i4.forwardRef(function(e,t){var n=i4.useContext(uh),o=i4.useRef(null),a=iH(t,o);return i4.useEffect(function(){var e=o.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}},[n.branches]),(0,ud.jsx)(uu.div,g(p({},e),{ref:a}))});uy.displayName=uw;function ux(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=i1(e),o=i4.useRef(!1),a=i4.useRef(function(){});return i4.useEffect(function(){var e=function(e){if(e.target&&!o.current){var i=function e(){uN(up,n,c,{discrete:!0})};var u=i;var c={originalEvent:e};e.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=i,t.addEventListener("click",a.current,{once:!0})):i()}else t.removeEventListener("click",a.current);o.current=!1},i=window.setTimeout(function(){t.addEventListener("pointerdown",e)},0);return function(){window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:function(){return o.current=!0}}}function uE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=i1(e),o=i4.useRef(!1);return i4.useEffect(function(){var e=function(e){e.target&&!o.current&&uN(um,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),function(){return t.removeEventListener("focusin",e)}},[t,n]),{onFocusCapture:function(){return o.current=!0},onBlurCapture:function(){return o.current=!1}}}function uC(){var e=new CustomEvent(uv);document.dispatchEvent(e)}function uN(e,t,n,o){var a=o.discrete;var i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?uc(i,u):i.dispatchEvent(u)}var u_=j(require("react"),1);var uR=require("react/jsx-runtime"),uS="focusScope.autoFocusOnMount",uD="focusScope.autoFocusOnUnmount",uT={bubbles:!1,cancelable:!0},uP="FocusScope",uM=u_.forwardRef(function(e,t){var n=e.loop,o=n===void 0?!1:n,a=e.trapped,i=a===void 0?!1:a,u=e.onMountAutoFocus,c=e.onUnmountAutoFocus,l=h(e,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),s=w(u_.useState(null),2),d=s[0],f=s[1],v=i1(u),m=i1(c),b=u_.useRef(null),y=iH(t,function(e){return f(e)}),x=u_.useRef({paused:!1,pause:function e(){this.paused=!0},resume:function e(){this.paused=!1}}).current;u_.useEffect(function(){if(i){var e=function e(e){if(x.paused||!d)return;var t=e.target;d.contains(t)?b.current=t:uF(b.current,{select:!0})},t=function e(e){if(x.paused||!d)return;var t=e.relatedTarget;t!==null&&(d.contains(t)||uF(b.current,{select:!0}))},n=function e(e){var t=true,n=false,o=undefined;if(document.activeElement===document.body)try{for(var a=e[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var u=i.value;u.removedNodes.length>0&&uF(d)}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}};var o=e,a=t,u=n;document.addEventListener("focusin",e),document.addEventListener("focusout",t);var c=new MutationObserver(n);return d&&c.observe(d,{childList:!0,subtree:!0}),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),c.disconnect()}}},[i,d,x.paused]),u_.useEffect(function(){if(d){uq.add(x);var e=document.activeElement;if(!d.contains(e)){var t=new CustomEvent(uS,uT);d.addEventListener(uS,v),d.dispatchEvent(t),t.defaultPrevented||(uk(uK(uA(d)),{select:!0}),document.activeElement===e&&uF(d))}return function(){d.removeEventListener(uS,v),setTimeout(function(){var t=new CustomEvent(uD,uT);d.addEventListener(uD,m),d.dispatchEvent(t),t.defaultPrevented||uF(e!==null&&e!==void 0?e:document.body,{select:!0}),d.removeEventListener(uD,m),uq.remove(x)},0)}}},[d,v,m,x]);var E=u_.useCallback(function(e){if(!o&&!i||x.paused)return;var t=e.key==="Tab"&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var a=e.currentTarget,u=w(uO(a),2),c=u[0],l=u[1];c&&l?!e.shiftKey&&n===l?(e.preventDefault(),o&&uF(c,{select:!0})):e.shiftKey&&n===c&&(e.preventDefault(),o&&uF(l,{select:!0})):n===a&&e.preventDefault()}},[o,i,x.paused]);return(0,uR.jsx)(uu.div,g(p({tabIndex:-1},l),{ref:y,onKeyDown:E}))});uM.displayName=uP;function uk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.select,o=n===void 0?!1:n;var a=document.activeElement;var i=true,u=false,c=undefined;try{for(var l=e[Symbol.iterator](),s;!(i=(s=l.next()).done);i=true){var d=s.value;if(uF(d,{select:o}),document.activeElement!==a)return}}catch(e){u=true;c=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(u){throw c}}}}function uO(e){var t=uA(e),n=uj(t,e),o=uj(t.reverse(),e);return[n,o]}function uA(e){var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t=e.tagName==="INPUT"&&e.type==="hidden";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 uj(e,t){var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var c=u.value;if(!uI(c,{upTo:t}))return c}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}}function uI(e,t){var n=t.upTo;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function uL(e){return c(e,HTMLInputElement)&&"select"in e}function uF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.select,o=n===void 0?!1:n;if(e&&e.focus){var a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&uL(e)&&o&&e.select()}}var uq=uz();function uz(){var e=[];return{add:function t(t){var n=e[0];t!==n&&(n===null||n===void 0?void 0:n.pause()),e=uH(e,t),e.unshift(t)},remove:function t(t){var n;e=uH(e,t),(n=e[0])===null||n===void 0?void 0:n.resume()}}}function uH(e,t){var n=x(e),o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function uK(e){return e.filter(function(e){return e.tagName!=="A"})}var uV=j(require("react"),1),uB=j(require("react-dom"),1);var uW=require("react/jsx-runtime"),uU="Portal",uG=uV.forwardRef(function(e,t){var n,o;var a=e.container,i=h(e,["container"]),u=w(uV.useState(!1),2),c=u[0],l=u[1];iY(function(){return l(!0)},[]);var s=a||c&&((o=globalThis)===null||o===void 0?void 0:(n=o.document)===null||n===void 0?void 0:n.body);return s?uB.default.createPortal((0,uW.jsx)(uu.div,g(p({},i),{ref:t})),s):null});uG.displayName=uU;var uX=j(require("react"),1),uY=j(require("react-dom"),1);var uZ=j(require("react"),1);function u$(e,t){return uZ.useReducer(function(e,n){var o;return(o=t[e][n])!==null&&o!==void 0?o:e},e)}var uJ=function(e){var t=e.present,n=e.children,o=uQ(t),a=typeof n=="function"?n({present:o.isPresent}):uX.Children.only(n),i=iH(o.ref,u1(a));return typeof n=="function"||o.isPresent?uX.cloneElement(a,{ref:i}):null};uJ.displayName="Presence";function uQ(e){var t=w(uX.useState(),2),n=t[0],o=t[1],a=uX.useRef({}),i=uX.useRef(e),u=uX.useRef("none"),c=e?"mounted":"unmounted",l=w(u$(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),s=l[0],d=l[1];return uX.useEffect(function(){var e=u0(a.current);u.current=s==="mounted"?e:"none"},[s]),iY(function(){var t=a.current,n=i.current;if(n!==e){var o=u.current,c=u0(t);e?d("MOUNT"):c==="none"||(t===null||t===void 0?void 0:t.display)==="none"?d("UNMOUNT"):d(n&&o!==c?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),iY(function(){if(n){var e=function(e){var t=u0(a.current).includes(e.animationName);e.target===n&&t&&uY.flushSync(function(){return d("ANIMATION_END")})},t=function(e){e.target===n&&(u.current=u0(a.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),function(){n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:uX.useCallback(function(e){e&&(a.current=getComputedStyle(e)),o(e)},[])}}function u0(e){return(e===null||e===void 0?void 0:e.animationName)||"none"}function u1(e){var t,n;var o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))===null||t===void 0?void 0:t.get,a=o&&"isReactWarning"in o&&o.isReactWarning;return a?e.ref:(o=(n=Object.getOwnPropertyDescriptor(e,"ref"))===null||n===void 0?void 0:n.get,a=o&&"isReactWarning"in o&&o.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var u2=j(require("react"),1),u5=0;function u4(){u2.useEffect(function(){var e=document.querySelectorAll("[data-radix-focus-guard]");var t,n;return document.body.insertAdjacentElement("afterbegin",(t=e[0])!==null&&t!==void 0?t:u3()),document.body.insertAdjacentElement("beforeend",(n=e[1])!==null&&n!==void 0?n:u3()),u5++,function(){u5===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(function(e){return e.remove()}),u5--}},[])}function u3(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var u8=j(require("react"));var u9=j(require("react"));var u6=nT();var u7=function e(){},ce=u9.forwardRef(function(e,t){var n=u9.useRef(null),o=u9.useState({onScrollCapture:u7,onWheelCapture:u7,onTouchMoveCapture:u7}),a=o[0],i=o[1],u=e.forwardProps,c=e.children,l=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,h=e.as,b=h===void 0?"div":h,w=e.gapMode,y=n_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=v,E=nC([n,t]),C=nN(nN({},y),a);return u9.createElement(u9.Fragment,null,d&&u9.createElement(x,{sideCar:u6,removeScrollBar:s,shards:f,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:w}),u?u9.cloneElement(u9.Children.only(c),nN(nN({},C),{ref:E})):u9.createElement(b,nN({},C,{className:l,ref:E}),c))});ce.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ce.classNames={fullWidth:nh,zeroRight:ng};var ct=j(require("react"));var cn=!1;if((typeof window==="undefined"?"undefined":E(window))<"u")try{cr=Object.defineProperty({},"passive",{get:function e(){return cn=!0,!0}}),window.addEventListener("test",cr,cr),window.removeEventListener("test",cr,cr)}catch(e){cn=!1}var cr,co=cn?{passive:!1}:!1;var ca=function e(e){return e.tagName==="TEXTAREA"},ci=function e(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ca(e)&&n[t]==="visible")},cu=function e(e){return ci(e,"overflowY")},cc=function e(e){return ci(e,"overflowX")},cl=function e(e,t){var n=t.ownerDocument,o=t;do{(typeof ShadowRoot==="undefined"?"undefined":E(ShadowRoot))<"u"&&c(o,ShadowRoot)&&(o=o.host);var a=cf(e,o);if(a){var i=cv(e,o),u=i[1],l=i[2];if(u>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},cs=function e(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},cd=function e(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},cf=function e(e,t){return e==="v"?cu(t):cc(t)},cv=function e(e,t){return e==="v"?cs(t):cd(t)},cp=function e(e,t){return e==="h"&&t==="rtl"?-1:1},cm=function e(e,t,n,o,a){var i=cp(e,window.getComputedStyle(t).direction),u=i*o,l=n.target,s=t.contains(l),d=!1,f=u>0,v=0,p=0;do{var m=cv(e,l),g=m[0],h=m[1],b=m[2],w=h-b-i*g;(g||w)&&cf(e,l)&&(v+=w,p+=g),c(l,ShadowRoot)?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(a&&Math.abs(v)<1||!a&&u>v)||!f&&(a&&Math.abs(p)<1||!a&&-u>p))&&(d=!0),d};var cg=function e(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ch=function e(e){return[e.deltaX,e.deltaY]},cb=function e(e){return e&&"current"in e?e.current:e},cw=function e(e,t){return e[0]===t[0]&&e[1]===t[1]},cy=function e(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cx=0,cE=[];function cC(e){var t=ct.useRef([]),n=ct.useRef([0,0]),o=ct.useRef(),a=ct.useState(cx++)[0],i=ct.useState(nU)[0],u=ct.useRef(e);ct.useEffect(function(){u.current=e},[e]),ct.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=nR([e.lockRef.current],(e.shards||[]).map(cb),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=ct.useCallback(function(e,t){if("touches"in e&&e.touches.length===2)return!u.current.allowPinchZoom;var a=cg(e),i=n.current,c="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],s,d=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&f==="h"&&d.type==="range")return!1;var v=cl(f,d);if(!v)return!0;if(v?s=f:(s=f==="v"?"h":"v",v=cl(f,d)),!v)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=s),!s)return!0;var p=o.current||s;return cm(p,t,e,p==="h"?c:l,!0)},[]),l=ct.useCallback(function(e){var n=e;if(!(!cE.length||cE[cE.length-1]!==i)){var o="deltaY"in n?ch(n):cg(n),a=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&cw(e.delta,o)})[0];if(a&&a.should){n.cancelable&&n.preventDefault();return}if(!a){var l=(u.current.shards||[]).map(cb).filter(Boolean).filter(function(e){return e.contains(n.target)}),s=l.length>0?c(n,l[0]):!u.current.noIsolation;s&&n.cancelable&&n.preventDefault()}}},[]),s=ct.useCallback(function(e,n,o,a){var i={name:e,delta:n,target:o,should:a,shadowParent:cN(o)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=ct.useCallback(function(e){n.current=cg(e),o.current=void 0},[]),f=ct.useCallback(function(t){s(t.type,ch(t),t.target,c(t,e.lockRef.current))},[]),v=ct.useCallback(function(t){s(t.type,cg(t),t.target,c(t,e.lockRef.current))},[]);ct.useEffect(function(){return cE.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,co),document.addEventListener("touchmove",l,co),document.addEventListener("touchstart",d,co),function(){cE=cE.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,co),document.removeEventListener("touchmove",l,co),document.removeEventListener("touchstart",d,co)}},[]);var p=e.removeScrollBar,m=e.inert;return ct.createElement(ct.Fragment,null,m?ct.createElement(i,{styles:cy(a)}):null,p?ct.createElement(nQ,{gapMode:e.gapMode}):null)}function cN(e){for(var t=null;e!==null;)c(e,ShadowRoot)&&(t=e.host,e=e.host),e=e.parentNode;return t}var c_=nk(u6,cC);var cR=u8.forwardRef(function(e,t){return u8.createElement(ce,nN({},e,{ref:t,sideCar:c_}))});cR.classNames=ce.classNames;var cS=cR;var cD=require("react/jsx-runtime"),cT="Dialog",cP=w(iW(cT),2),cM=cP[0],ck=cP[1],cO=w(cM(cT),2),cA=cO[0],cj=cO[1],cI=function(e){var t=e.__scopeDialog,n=e.children,o=e.open,a=e.defaultOpen,i=e.onOpenChange,u=e.modal,c=u===void 0?!0:u,l=iI.useRef(null),s=iI.useRef(null),d=w(i2({prop:o,defaultProp:a,onChange:i}),2),f=d[0],v=f===void 0?!1:f,p=d[1];return(0,cD.jsx)(cA,{scope:t,triggerRef:l,contentRef:s,contentId:iJ(),titleId:iJ(),descriptionId:iJ(),open:v,onOpenChange:p,onOpenToggle:iI.useCallback(function(){return p(function(e){return!e})},[p]),modal:c,children:n})};cI.displayName=cT;var cL="DialogTrigger",cF=iI.forwardRef(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=cj(cL,n),i=iH(t,a.triggerRef);return(0,cD.jsx)(uu.button,g(p({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":c4(a.open)},o),{ref:i,onClick:iL(e.onClick,a.onOpenToggle)}))});cF.displayName=cL;var cq="DialogPortal",cz=w(cM(cq,{forceMount:void 0}),2),cH=cz[0],cK=cz[1],cV=function(e){var t=e.__scopeDialog,n=e.forceMount,o=e.children,a=e.container,i=cj(cq,t);return(0,cD.jsx)(cH,{scope:t,forceMount:n,children:iI.Children.map(o,function(e){return(0,cD.jsx)(uJ,{present:n||i.open,children:(0,cD.jsx)(uG,{asChild:!0,container:a,children:e})})})})};cV.displayName=cq;var cB="DialogOverlay",cW=iI.forwardRef(function(e,t){var n=cK(cB,e.__scopeDialog),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=cj(cB,e.__scopeDialog);return u.modal?(0,cD.jsx)(uJ,{present:a||u.open,children:(0,cD.jsx)(cU,g(p({},i),{ref:t}))}):null});cW.displayName=cB;var cU=iI.forwardRef(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=cj(cB,n);return(0,cD.jsx)(cS,{as:i7,allowPinchZoom:!0,shards:[a.contentRef],children:(0,cD.jsx)(uu.div,g(p({"data-state":c4(a.open)},o),{ref:t,style:p({pointerEvents:"auto"},o.style)}))})}),cG="DialogContent",cX=iI.forwardRef(function(e,t){var n=cK(cG,e.__scopeDialog),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=cj(cG,e.__scopeDialog);return(0,cD.jsx)(uJ,{present:a||u.open,children:u.modal?(0,cD.jsx)(cY,g(p({},i),{ref:t})):(0,cD.jsx)(cZ,g(p({},i),{ref:t}))})});cX.displayName=cG;var cY=iI.forwardRef(function(e,t){var n=cj(cG,e.__scopeDialog),o=iI.useRef(null),a=iH(t,n.contentRef,o);return iI.useEffect(function(){var e=o.current;if(e)return rC(e)},[]),(0,cD.jsx)(c$,g(p({},e),{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:iL(e.onCloseAutoFocus,function(e){var t;e.preventDefault(),(t=n.triggerRef.current)===null||t===void 0?void 0:t.focus()}),onPointerDownOutside:iL(e.onPointerDownOutside,function(e){var t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:iL(e.onFocusOutside,function(e){return e.preventDefault()})}))}),cZ=iI.forwardRef(function(e,t){var n=cj(cG,e.__scopeDialog),o=iI.useRef(!1),a=iI.useRef(!1);return(0,cD.jsx)(c$,g(p({},e),{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var i,u;(i=e.onCloseAutoFocus)===null||i===void 0?void 0:i.call(e,t),t.defaultPrevented||(o.current||((u=n.triggerRef.current)===null||u===void 0?void 0:u.focus()),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:function(t){var i,u;(i=e.onInteractOutside)===null||i===void 0?void 0:i.call(e,t),t.defaultPrevented||(o.current=!0,t.detail.originalEvent.type==="pointerdown"&&(a.current=!0));var c=t.target;((u=n.triggerRef.current)===null||u===void 0?void 0:u.contains(c))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&a.current&&t.preventDefault()}}))}),c$=iI.forwardRef(function(e,t){var n=e.__scopeDialog,o=e.trapFocus,a=e.onOpenAutoFocus,i=e.onCloseAutoFocus,u=h(e,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),c=cj(cG,n),l=iI.useRef(null),s=iH(t,l);return u4(),(0,cD.jsxs)(cD.Fragment,{children:[(0,cD.jsx)(uM,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,cD.jsx)(ub,g(p({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":c4(c.open)},u),{ref:s,onDismiss:function(){return c.onOpenChange(!1)}}))}),(0,cD.jsxs)(cD.Fragment,{children:[(0,cD.jsx)(c7,{titleId:c.titleId}),(0,cD.jsx)(lt,{contentRef:l,descriptionId:c.descriptionId})]})]})}),cJ="DialogTitle",cQ=iI.forwardRef(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=cj(cJ,n);return(0,cD.jsx)(uu.h2,g(p({id:a.titleId},o),{ref:t}))});cQ.displayName=cJ;var c0="DialogDescription",c1=iI.forwardRef(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=cj(c0,n);return(0,cD.jsx)(uu.p,g(p({id:a.descriptionId},o),{ref:t}))});c1.displayName=c0;var c2="DialogClose",c5=iI.forwardRef(function(e,t){var n=e.__scopeDialog,o=h(e,["__scopeDialog"]),a=cj(c2,n);return(0,cD.jsx)(uu.button,g(p({type:"button"},o),{ref:t,onClick:iL(e.onClick,function(){return a.onOpenChange(!1)})}))});c5.displayName=c2;function c4(e){return e?"open":"closed"}var c3="DialogTitleWarning",c8=w(iB(c3,{contentName:cG,titleName:cJ,docsSlug:"dialog"}),2),c9=c8[0],c6=c8[1],c7=function(e){var t=e.titleId;var n=c6(c3),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return iI.useEffect(function(){t&&(document.getElementById(t)||console.error(o))},[o,t]),null},le="DialogDescriptionWarning",lt=function(e){var t=e.contentRef,n=e.descriptionId;var o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(c6(le).contentName,"}.");return iI.useEffect(function(){var e;var a=(e=t.current)===null||e===void 0?void 0:e.getAttribute("aria-describedby");n&&a&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},ln=cI,lr=cF,lo=cV,la=cW,li=cX,lu=cQ,lc=c1,ll=c5;var ls=require("lucide-react");var ld=require("react/jsx-runtime"),lf=ln,lv=lr,lp=lo,lm=ll,lg=ij.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,ld.jsx)(la,p({ref:t,className:tS("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},o))});lg.displayName=la.displayName;var lh=ij.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,ld.jsxs)(lp,{children:[(0,ld.jsx)(lg,{}),(0,ld.jsxs)(li,g(p({ref:t,className:tS("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},a),{children:[o,(0,ld.jsxs)(ll,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,ld.jsx)(ls.X,{className:"h-4 w-4"}),(0,ld.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});lh.displayName=li.displayName;var lb=function(e){var t=e.className,n=h(e,["className"]);return(0,ld.jsx)("div",p({className:tS("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};lb.displayName="DialogHeader";var lw=function(e){var t=e.className,n=h(e,["className"]);return(0,ld.jsx)("div",p({className:tS("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};lw.displayName="DialogFooter";var ly=ij.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,ld.jsx)(lu,p({ref:t,className:tS("text-lg font-semibold leading-none tracking-tight",n)},o))});ly.displayName=lu.displayName;var lx=ij.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,ld.jsx)(lc,p({ref:t,className:tS("text-sm text-muted-foreground",n)},o))});lx.displayName=lc.displayName;var lE=require("react/jsx-runtime"),lC=ik.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,lE.jsx)(iO.Command,p({ref:t,className:tS("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n)},o))});lC.displayName=iO.Command.displayName;var lN=function(e){var t=e.children,n=h(e,["children"]);return(0,lE.jsx)(lf,g(p({},n),{children:(0,lE.jsx)(lh,{className:"overflow-hidden p-0 shadow-lg",children:(0,lE.jsx)(lC,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})})}))},l_=ik.forwardRef(function(e,t){var n=e.showSearch,o=e.className,a=h(e,["showSearch","className"]);return(0,lE.jsxs)("div",{className:"flex items-center ".concat(n?"border-b px-3":""),"cmdk-input-wrapper":"",children:[n&&(0,lE.jsx)(iA.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,lE.jsx)(iO.Command.Input,p({ref:t,className:tS("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",o)},a))]})});l_.displayName=iO.Command.Input.displayName;var lR=ik.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,lE.jsx)(iO.Command.List,p({ref:t,className:tS("max-h-[300px] overflow-y-auto overflow-x-hidden",n)},o))});lR.displayName=iO.Command.List.displayName;var lS=ik.forwardRef(function(e,t){return(0,lE.jsx)(iO.Command.Empty,p({ref:t,className:"py-6 text-center text-sm"},e))});lS.displayName=iO.Command.Empty.displayName;var lD=ik.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,lE.jsx)(iO.Command.Group,p({ref:t,className:tS("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",n)},o))});lD.displayName=iO.Command.Group.displayName;var lT=ik.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,lE.jsx)(iO.Command.Separator,p({ref:t,className:tS("-mx-1 h-px bg-border",n)},o))});lT.displayName=iO.Command.Separator.displayName;var lP=ik.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,lE.jsx)(iO.Command.Item,p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},o))});lP.displayName=iO.Command.Item.displayName;var lM=function(e){var t=e.className,n=h(e,["className"]);return(0,lE.jsx)("span",p({className:tS("ml-auto text-xs tracking-widest text-muted-foreground",t)},n))};lM.displayName="CommandShortcut";var lk=j(require("react"),1);var lO=require("react");var lA=require("react");var lj=require("react");function lI(e){return e.split("-")[1]}function lL(e){return e==="y"?"height":"width"}function lF(e){return e.split("-")[0]}function lq(e){return["top","bottom"].includes(lF(e))?"x":"y"}function lz(e,t,n){var o=e.reference,a=e.floating,i=o.x+o.width/2-a.width/2,u=o.y+o.height/2-a.height/2,c=lq(t),l=lL(c),s=o[l]/2-a[l]/2,d=lF(t),f=c==="x",v;switch(d){case"top":v={x:i,y:o.y-a.height};break;case"bottom":v={x:i,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:u};break;case"left":v={x:o.x-a.width,y:u};break;default:v={x:o.x,y:o.y}}switch(lI(t)){case"start":v[c]-=s*(n&&f?-1:1);break;case"end":v[c]+=s*(n&&f?-1:1);break}return v}var lH=function(){var e=a(function(e,t,n){var o,a,u,c,l,s,d,f,v,m,h,b,w,y,x,E,C,_,R,S,D,T,P,M,k,O,A,j,I;return N(this,function(N){switch(N.label){case 0:o=n.placement,a=o===void 0?"bottom":o,u=n.strategy,c=u===void 0?"absolute":u,l=n.middleware,s=l===void 0?[]:l,d=n.platform,f=s.filter(Boolean);return[4,d.isRTL==null?void 0:d.isRTL(t)];case 1:v=N.sent();return[4,d.getElementRects({reference:e,floating:t,strategy:c})];case 2:m=N.sent(),h=lz(m,a,v),b=h.x,w=h.y,y=a,x={},E=0;C=0;N.label=3;case 3:if(!(Ct.floating[i]&&(u=lQ(u)),{main:u,cross:lQ(u)}}var l1={start:"end",end:"start"};function l2(e){return e.replace(/start|end/g,function(e){return l1[e]})}function l5(e){var t=lQ(e);return[l2(e),t,l2(t)]}function l4(e,t,n){var o=["left","right"],a=["right","left"],i=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:o:t?o:a;case"left":case"right":return t?i:u;default:return[]}}function l3(e,t,n,o){var a=lI(e),i=l4(lF(e),n==="start",o);return a&&(i=i.map(function(e){return e+"-"+a}),t&&(i=i.concat(i.map(l2)))),i}var l8=function e(e){return e===void 0&&(e={}),{name:"flip",options:e,fn:function t(t){return a(function(){var n,o,a,i,u,c,l,s,d,f,v,p,m,g,b,w,y,E,C,_,R,S,D,T,P,M,k,O,A,j,I,L,F,q,z,H,K,V;return N(this,function(N){switch(N.label){case 0:a=t.placement,i=t.middlewareData,u=t.rects,c=t.initialPlacement,l=t.platform,s=t.elements,d=e.mainAxis,f=d===void 0?!0:d,v=e.crossAxis,p=v===void 0?!0:v,m=e.fallbackPlacements,g=e.fallbackStrategy,b=g===void 0?"bestFit":g,w=e.fallbackAxisSideDirection,y=w===void 0?"none":w,E=e.flipAlignment,C=E===void 0?!0:E,_=h(e,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),R=lF(a),S=lF(c)===c;return[4,l.isRTL==null?void 0:l.isRTL(s.floating)];case 1:D=N.sent(),T=m||(S||!C?[lQ(c)]:l5(c));!m&&y!=="none"&&(n=T).push.apply(n,x(l3(c,C,y,D)));P=[c].concat(x(T));return[4,lW(t,_)];case 2:M=N.sent(),k=[],O=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&k.push(M[R]),p){A=l0(a,u,D),j=A.main,I=A.cross;k.push(M[j],M[I])}if(O=x(O).concat([{placement:a,overflows:k}]),!k.every(function(e){return e<=0})){;q=(((L=i.flip)==null?void 0:L.index)||0)+1,z=P[q];if(z)return[2,{data:{index:q,overflows:O},reset:{placement:z}}];H=(F=O.filter(function(e){return e.overflows[0]<=0}).sort(function(e,t){return e.overflows[1]-t.overflows[1]})[0])==null?void 0:F.placement;if(!H)switch(b){case"bestFit":{;V=(K=O.map(function(e){return[e.placement,e.overflows.filter(function(e){return e>0}).reduce(function(e,t){return e+t},0)]}).sort(function(e,t){return e[1]-t[1]})[0])==null?void 0:K[0];V&&(H=V);break}case"initialPlacement":H=c;break}if(a!==H)return[2,{reset:{placement:H}}]}return[2,{}]}})})()}}};function l9(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l6(e){return l$.some(function(t){return e[t]>=0})}var l7=function e(e){return e===void 0&&(e={}),{name:"hide",options:e,fn:function t(t){return a(function(){var n,o,a,i,u,c,l,s;return N(this,function(d){switch(d.label){case 0:n=e.strategy,o=n===void 0?"referenceHidden":n,a=h(e,["strategy"]),i=t.rects;switch(o){case"referenceHidden":return[3,1];case"escaped":return[3,3]}return[3,5];case 1:return[4,lW(t,g(p({},a),{elementContext:"reference"}))];case 2:u=d.sent(),c=l9(u,i.reference);return[2,{data:{referenceHiddenOffsets:c,referenceHidden:l6(c)}}];case 3:return[4,lW(t,g(p({},a),{altBoundary:!0}))];case 4:l=d.sent(),s=l9(l,i.floating);return[2,{data:{escapedOffsets:s,escaped:l6(s)}}];case 5:return[2,{}];case 6:return[2]}})})()}}};function se(e,t){return st.apply(this,arguments)}function st(){st=a(function(e,t){var n,o,a,i,u,c,l,s,d,f,v,m,g,h;return N(this,function(b){switch(b.label){case 0:n=e.placement,o=e.platform,a=e.elements;return[4,o.isRTL==null?void 0:o.isRTL(a.floating)];case 1:i=b.sent(),u=lF(n),c=lI(n),l=lq(n)==="x",s=["left","top"].includes(u)?-1:1,d=i&&l?-1:1,f=typeof t=="function"?t(e):t,v=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:p({mainAxis:0,crossAxis:0,alignmentAxis:null},f),m=v.mainAxis,g=v.crossAxis,h=v.alignmentAxis;return[2,(c&&typeof h=="number"&&(g=c==="end"?h*-1:h),l?{x:g*d,y:m*s}:{x:m*s,y:g*d})]}})});return st.apply(this,arguments)}var sn=function e(e){return e===void 0&&(e=0),{name:"offset",options:e,fn:function t(t){return a(function(){var n,o,a;return N(this,function(i){switch(i.label){case 0:n=t.x,o=t.y;return[4,se(t,e)];case 1:a=i.sent();return[2,{x:n+a.x,y:o+a.y,data:a}]}})})()}}};function sr(e){return e==="x"?"y":"x"}var so=function e(e){return e===void 0&&(e={}),{name:"shift",options:e,fn:function t(t){return a(function(){var n,o,a,u,c,l,s,d,f,v,m,b,w,y,x,E,C,_,R,S,D,T,P,M,k,O;return N(this,function(N){switch(N.label){case 0:n=t.x,o=t.y,a=t.placement,u=e.mainAxis,c=u===void 0?!0:u,l=e.crossAxis,s=l===void 0?!1:l,d=e.limiter,f=d===void 0?{fn:function(e){var t=e.x,n=e.y;return{x:t,y:n}}}:d,v=h(e,["mainAxis","crossAxis","limiter"]),m={x:n,y:o};return[4,lW(t,v)];case 1:b=N.sent(),w=lq(lF(a)),y=sr(w),x=m[w],E=m[y];if(c){C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",R=x+b[C],S=x-b[_];x=lY(R,x,S)}if(s){D=y==="y"?"top":"left",T=y==="y"?"bottom":"right",P=E+b[D],M=E-b[T];E=lY(P,E,M)}O=f.fn(g(p({},t),(k={},i(k,w,x),i(k,y,E),k)));return[2,g(p({},O),{data:{x:O.x-n,y:O.y-o}})]}})})()}}},sa=function e(e){return e===void 0&&(e={}),{options:e,fn:function t(t){var n=t.x,o=t.y,a=t.placement,u=t.rects,c=t.middlewareData,l=e.offset,s=l===void 0?0:l,d=e.mainAxis,f=d===void 0?!0:d,v=e.crossAxis,m=v===void 0?!0:v,g={x:n,y:o},h=lq(a),b=sr(h),w=g[h],y=g[b],x=typeof s=="function"?s(t):s,E=typeof x=="number"?{mainAxis:x,crossAxis:0}:p({mainAxis:0,crossAxis:0},x);if(f){var C=h==="y"?"height":"width",N=u.reference[h]-u.floating[C]+E.mainAxis,_=u.reference[h]+u.reference[C]-E.mainAxis;w_&&(w=_)}if(m){var R,S;var D=h==="y"?"width":"height",T=["top","left"].includes(lF(a)),P=u.reference[b]-u.floating[D]+(T&&((R=c.offset)==null?void 0:R[b])||0)+(T?0:E.crossAxis),M=u.reference[b]+u.reference[D]+(T?0:((S=c.offset)==null?void 0:S[b])||0)-(T?E.crossAxis:0);yM&&(y=M)}var k;return k={},i(k,h,w),i(k,b,y),k}}},si=function e(e){return e===void 0&&(e={}),{name:"size",options:e,fn:function t(t){return a(function(){var n,o,a,i,u,c,l,s,d,f,v,m,b,w,y,x,E,C,_,R,S,D,T,P,M,k,O,A,j;return N(this,function(N){switch(N.label){case 0:n=t.placement,o=t.rects,a=t.platform,i=t.elements,u=e.apply,c=u===void 0?function(){}:u,l=h(e,["apply"]);return[4,lW(t,l)];case 1:s=N.sent(),d=lF(n),f=lI(n),v=lq(n)==="x",m=o.floating,b=m.width,w=m.height;if(!(d==="top"||d==="bottom"))return[3,3];y=d;return[4,a.isRTL==null?void 0:a.isRTL(i.floating)];case 2:E=x=f===(N.sent()?"start":"end")?"left":"right";return[3,4];case 3:E=(x=d,y=f==="end"?"top":"bottom");N.label=4;case 4:E;C=w-s[y],_=b-s[x],R=!t.middlewareData.shift,S=C,D=_;if(v){T=b-s.left-s.right;D=f||R?lG(_,T):T}else{P=w-s.top-s.bottom;S=f||R?lG(C,P):P}if(R&&!f){M=lX(s.left,0),k=lX(s.right,0),O=lX(s.top,0),A=lX(s.bottom,0);v?D=b-2*(M!==0||k!==0?M+k:lX(s.left,s.right)):S=w-2*(O!==0||A!==0?O+A:lX(s.top,s.bottom))}return[4,c(g(p({},t),{availableWidth:D,availableHeight:S}))];case 5:N.sent();return[4,a.getDimensions(i.floating)];case 6:j=N.sent();return[2,b!==j.width||w!==j.height?{reset:{rects:!0}}:{}]}})})()}}};function su(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sc(e){return su(e).getComputedStyle(e)}function sl(e){return c(e,su(e).Node)}function ss(e){return sl(e)?(e.nodeName||"").toLowerCase():""}function sd(e){return c(e,su(e).HTMLElement)}function sf(e){return c(e,su(e).Element)}function sv(e){if((typeof ShadowRoot==="undefined"?"undefined":E(ShadowRoot))>"u")return!1;var t=su(e).ShadowRoot;return c(e,t)||c(e,ShadowRoot)}function sp(e){var t=sc(e),n=t.overflow,o=t.overflowX,a=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+a+o)&&!["inline","contents"].includes(i)}function sm(e){return["table","td","th"].includes(ss(e))}function sg(e){var t=sh(),n=sc(e);return n.transform!=="none"||n.perspective!=="none"||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(function(e){return(n.willChange||"").includes(e)})||["paint","layout","strict","content"].some(function(e){return(n.contain||"").includes(e)})}function sh(){return(typeof CSS==="undefined"?"undefined":E(CSS))>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function sb(e){return["html","body","#document"].includes(ss(e))}var sw=Math.min,sy=Math.max,sx=Math.round;function sE(e){var t=sc(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,a=sd(e),i=a?e.offsetWidth:n,u=a?e.offsetHeight:o,c=sx(n)!==i||sx(o)!==u;return c&&(n=i,o=u),{width:n,height:o,fallback:c}}function sC(e){return sf(e)?e:e.contextElement}var sN={x:1,y:1};function s_(e){var t=sC(e);if(!sd(t))return sN;var n=t.getBoundingClientRect(),o=sE(t),a=o.width,i=o.height,u=o.fallback,c=(u?sx(n.width):n.width)/a,l=(u?sx(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var sR={x:0,y:0};function sS(e,t,n){var o,a;if(t===void 0&&(t=!0),!sh())return sR;var i=e?su(e):window;return!n||t&&n!==i?sR:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function sD(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),i=sC(e),u=sN;t&&(o?sf(o)&&(u=s_(o)):u=s_(e));var c=sS(i,n,o),l=(a.left+c.x)/u.x,s=(a.top+c.y)/u.y,d=a.width/u.x,f=a.height/u.y;if(i){var v=su(i),p=o&&sf(o)?su(o):o,m=v.frameElement;for(;m&&o&&p!==v;){var g=s_(m),h=m.getBoundingClientRect(),b=getComputedStyle(m);h.x+=(m.clientLeft+parseFloat(b.paddingLeft))*g.x,h.y+=(m.clientTop+parseFloat(b.paddingTop))*g.y,l*=g.x,s*=g.y,d*=g.x,f*=g.y,l+=h.x,s+=h.y,m=su(m).frameElement}}return lB({width:d,height:f,x:l,y:s})}function sT(e){return((sl(e)?e.ownerDocument:e.document)||window.document).documentElement}function sP(e){return sf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sM(e){var t=e.rect,n=e.offsetParent,o=e.strategy,a=sd(n),i=sT(n);if(n===i)return t;var u={scrollLeft:0,scrollTop:0},c={x:1,y:1},l={x:0,y:0};if((a||!a&&o!=="fixed")&&((ss(n)!=="body"||sp(i))&&(u=sP(n)),sd(n))){var s=sD(n);c=s_(n),l.x=s.x+n.clientLeft,l.y=s.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-u.scrollLeft*c.x+l.x,y:t.y*c.y-u.scrollTop*c.y+l.y}}function sk(e){return sD(sT(e)).left+sP(e).scrollLeft}function sO(e){var t=sT(e),n=sP(e),o=e.ownerDocument.body,a=sy(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=sy(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+sk(e),c=-n.scrollTop;return sc(o).direction==="rtl"&&(u+=sy(t.clientWidth,o.clientWidth)-a),{width:a,height:i,x:u,y:c}}function sA(e){if(ss(e)==="html")return e;var t=e.assignedSlot||e.parentNode||sv(e)&&e.host||sT(e);return sv(t)?t.host:t}function sj(e){var t=sA(e);return sb(t)?t.ownerDocument.body:sd(t)&&sp(t)?t:sj(t)}function sI(e,t){var n;t===void 0&&(t=[]);var o=sj(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=su(o);return a?t.concat(i,i.visualViewport||[],sp(o)?o:[]):t.concat(o,sI(o))}function sL(e,t){var n=su(e),o=sT(e),a=n.visualViewport,i=o.clientWidth,u=o.clientHeight,c=0,l=0;if(a){i=a.width,u=a.height;var s=sh();(!s||s&&t==="fixed")&&(c=a.offsetLeft,l=a.offsetTop)}return{width:i,height:u,x:c,y:l}}function sF(e,t){var n=sD(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=sd(e)?s_(e):{x:1,y:1},u=e.clientWidth*i.x,c=e.clientHeight*i.y,l=a*i.x,s=o*i.y;return{width:u,height:c,x:l,y:s}}function sq(e,t,n){var o;if(t==="viewport")o=sL(e,n);else if(t==="document")o=sO(sT(e));else if(sf(t))o=sF(t,n);else{var a=sS(e);o=g(p({},t),{x:t.x-a.x,y:t.y-a.y})}return lB(o)}function sz(e,t){var n=sA(e);return n===t||!sf(n)||sb(n)?!1:sc(n).position==="fixed"||sz(n,t)}function sH(e,t){var n=t.get(e);if(n)return n;var o=sI(e).filter(function(e){return sf(e)&&ss(e)!=="body"}),a=null,i=sc(e).position==="fixed",u=i?sA(e):e;for(;sf(u)&&!sb(u);){var c=sc(u),l=sg(u);!l&&c.position==="fixed"&&(a=null),(i?!l&&!a:!l&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||sp(u)&&!l&&sz(e,u))?o=o.filter(function(e){return e!==u}):a=c,u=sA(u)}return t.set(e,o),o}function sK(e){var t=e.element,n=e.boundary,o=e.rootBoundary,a=e.strategy,i=x(n==="clippingAncestors"?sH(t,this._c):[].concat(n)).concat([o]),u=i[0],c=i.reduce(function(e,n){var o=sq(t,n,a);return e.top=sy(o.top,e.top),e.right=sw(o.right,e.right),e.bottom=sw(o.bottom,e.bottom),e.left=sy(o.left,e.left),e},sq(t,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sV(e){return sE(e)}function sB(e,t){return!sd(e)||sc(e).position==="fixed"?null:t?t(e):e.offsetParent}function sW(e){var t=sA(e);for(;sd(t)&&!sb(t);){if(sg(t))return t;t=sA(t)}return null}function sU(e,t){var n=su(e);if(!sd(e))return n;var o=sB(e,t);for(;o&&sm(o)&&sc(o).position==="static";)o=sB(o,t);return o&&(ss(o)==="html"||ss(o)==="body"&&sc(o).position==="static"&&!sg(o))?n:o||sW(e)||n}function sG(e,t,n){var o=sd(t),a=sT(t),i=n==="fixed",u=sD(e,!0,i,t),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(o||!o&&!i)if((ss(t)!=="body"||sp(a))&&(c=sP(t)),sd(t)){var s=sD(t,!0,i,t);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}else a&&(l.x=sk(a));return{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}var sX={getClippingRect:sK,convertOffsetParentRelativeRectToViewportRelativeRect:sM,isElement:sf,getDimensions:sV,getOffsetParent:sU,getDocumentElement:sT,getScale:s_,getElementRects:function e(e){return a(function(){var t,n,o,a,i,u,c,l;return N(this,function(s){switch(s.label){case 0:t=e.reference,n=e.floating,o=e.strategy,a=this.getOffsetParent||sU,i=this.getDimensions;u={};c=[t];return[4,a(n)];case 1:u.reference=sG.apply(void 0,c.concat([s.sent(),o]));l=[{x:0,y:0}];return[4,i(n)];case 2:return[2,(u.floating=p.apply(void 0,l.concat([s.sent()])),u)]}})}).apply(this)},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return sc(e).direction==="rtl"}};function sY(e,t,n,o){o===void 0&&(o={});var a=o.ancestorScroll,i=a===void 0?!0:a,u=o.ancestorResize,c=u===void 0?!0:u,l=o.elementResize,s=l===void 0?!0:l,d=o.animationFrame,f=d===void 0?!1:d,v=i||c?x(sf(e)?sI(e):e.contextElement?sI(e.contextElement):[]).concat(x(sI(t))):[];v.forEach(function(e){var t=!sf(e)&&e.toString().includes("V");i&&(!f||t)&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});var p=null;s&&(p=new ResizeObserver(function(){n()}),sf(e)&&!f&&p.observe(e),!sf(e)&&e.contextElement&&!f&&p.observe(e.contextElement),p.observe(t));var m,g=f?sD(e):null;f&&h();function h(){var t=sD(e);g&&(t.x!==g.x||t.y!==g.y||t.width!==g.width||t.height!==g.height)&&n(),g=t,m=requestAnimationFrame(h)}return n(),function(){var e;v.forEach(function(e){i&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),(e=p)==null||e.disconnect(),p=null,f&&cancelAnimationFrame(m)}}var sZ=function(e,t,n){var o=new Map,a=p({platform:sX},n),i=g(p({},a.platform),{_c:o});return lH(e,t,g(p({},a),{platform:i}))};var s$=j(require("react")),sJ=require("react"),sQ=j(require("react-dom")),s0=function(e){var t=function e(e){return({}).hasOwnProperty.call(e,"current")};var n=e.element,o=e.padding;return{name:"arrow",options:e,fn:function e(e){return n&&t(n)?n.current!=null?lZ({element:n.current,padding:o}).fn(e):{}:n?lZ({element:n,padding:o}).fn(e):{}}}},s1=(typeof document==="undefined"?"undefined":E(document))<"u"?sJ.useLayoutEffect:sJ.useEffect;function s2(e,t){if(e===t)return!0;if((typeof e==="undefined"?"undefined":E(e))!=(typeof t==="undefined"?"undefined":E(t)))return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;var n,o,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!s2(e[o],t[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!({}).hasOwnProperty.call(t,a[o]))return!1;for(o=n;o--!==0;){var i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!s2(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function s5(e){return(typeof window==="undefined"?"undefined":E(window))>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s4(e,t){var n=s5(e);return Math.round(t*n)/n}function s3(e){var t=s$.useRef(e);return s1(function(){t.current=e}),t}function s8(e){e===void 0&&(e={});var t=e.placement,n=t===void 0?"bottom":t,o=e.strategy,a=o===void 0?"absolute":o,i=e.middleware,u=i===void 0?[]:i,c=e.platform,l=e.elements,s=l===void 0?{}:l,d=s.reference,f=s.floating,v=e.transform,m=v===void 0?!0:v,h=e.whileElementsMounted,b=e.open,y=w(s$.useState({x:0,y:0,strategy:a,placement:n,middlewareData:{},isPositioned:!1}),2),x=y[0],E=y[1],C=w(s$.useState(u),2),N=C[0],_=C[1];s2(N,u)||_(u);var R=w(s$.useState(null),2),S=R[0],D=R[1],T=w(s$.useState(null),2),P=T[0],M=T[1],k=s$.useCallback(function(e){e!=I.current&&(I.current=e,D(e))},[D]),O=s$.useCallback(function(e){e!==L.current&&(L.current=e,M(e))},[M]),A=d||S,j=f||P,I=s$.useRef(null),L=s$.useRef(null),F=s$.useRef(x),q=s3(h),z=s3(c),H=s$.useCallback(function(){if(!I.current||!L.current)return;var e={placement:n,strategy:a,middleware:N};z.current&&(e.platform=z.current),sZ(I.current,L.current,e).then(function(e){var t=g(p({},e),{isPositioned:!0});K.current&&!s2(F.current,t)&&(F.current=t,sQ.flushSync(function(){E(t)}))})},[N,n,a,z]);s1(function(){b===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,E(function(e){return g(p({},e),{isPositioned:!1})}))},[b]);var K=s$.useRef(!1);s1(function(){return K.current=!0,function(){K.current=!1}},[]),s1(function(){if(A&&(I.current=A),j&&(L.current=j),A&&j){if(q.current)return q.current(A,j,H);H()}},[A,j,H,q]);var V=s$.useMemo(function(){return{reference:I,floating:L,setReference:k,setFloating:O}},[k,O]),B=s$.useMemo(function(){return{reference:A,floating:j}},[A,j]),W=s$.useMemo(function(){var e={position:a,left:0,top:0};if(!B.floating)return e;var t=s4(B.floating,x.x),n=s4(B.floating,x.y);return m?p(g(p({},e),{transform:"translate("+t+"px, "+n+"px)"}),s5(B.floating)>=1.5&&{willChange:"transform"}):{position:a,left:t,top:n}},[a,m,B.floating,x.x,x.y]);return s$.useMemo(function(){return g(p({},x),{update:H,refs:V,elements:B,floatingStyles:W})},[x,H,V,B,W])}var s9="Popper",s6=w(V(s9),2),s7=s6[0],de=s6[1],dt=w(s7(s9),2),dn=dt[0],dr=dt[1],da=function(e){var t=e.__scopePopper,n=e.children,o=w((0,lj.useState)(null),2),a=o[0],i=o[1];return(0,lj.createElement)(dn,{scope:t,anchor:a,onAnchorChange:i},n)},di="PopperAnchor",du=(0,lj.forwardRef)(function(e,t){var n=e.__scopePopper,o=e.virtualRef,a=h(e,["__scopePopper","virtualRef"]),i=dr(di,n),u=(0,lj.useRef)(null),c=Y(t,u);return(0,lj.useEffect)(function(){i.onAnchorChange((o===null||o===void 0?void 0:o.current)||u.current)}),o?null:(0,lj.createElement)(ev.div,Z({},a,{ref:c}))}),dc="PopperContent",dl=w(s7(dc),2),ds=dl[0],dd=dl[1],df=(0,lj.forwardRef)(function(e,t){var n,o,a,i,u,c,l,s;var d=e.__scopePopper,f=e.side,v=f===void 0?"bottom":f,m=e.sideOffset,b=m===void 0?0:m,y=e.align,x=y===void 0?"center":y,E=e.alignOffset,C=E===void 0?0:E,N=e.arrowPadding,_=N===void 0?0:N,R=e.collisionBoundary,S=R===void 0?[]:R,D=e.collisionPadding,T=D===void 0?0:D,P=e.sticky,M=P===void 0?"partial":P,k=e.hideWhenDetached,O=k===void 0?!1:k,A=e.avoidCollisions,j=A===void 0?!0:A,I=e.onPlaced,L=h(e,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","onPlaced"]),F=dr(dc,d),q=w((0,lj.useState)(null),2),z=q[0],H=q[1],K=Y(t,function(e){return H(e)}),V=w((0,lj.useState)(null),2),B=V[0],W=V[1],U=il(B),G=(n=U===null||U===void 0?void 0:U.width)!==null&&n!==void 0?n:0,X=(o=U===null||U===void 0?void 0:U.height)!==null&&o!==void 0?o:0,$=v+(x!=="center"?"-"+x:""),J=typeof T=="number"?T:p({top:0,right:0,bottom:0,left:0},T),Q=Array.isArray(S)?S:[S],ee=Q.length>0,et={padding:J,boundary:Q.filter(dv),altBoundary:ee},en=s8({strategy:"fixed",placement:$,whileElementsMounted:sY,elements:{reference:F.anchor},middleware:[sn({mainAxis:b+X,alignmentAxis:C}),j&&so(p({mainAxis:!0,crossAxis:!1,limiter:M==="partial"?sa():void 0},et)),j&&l8(p({},et)),si(g(p({},et),{apply:function(e){var t=e.elements,n=e.rects,o=e.availableWidth,a=e.availableHeight;var i=n.reference,u=i.width,c=i.height,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(o,"px")),l.setProperty("--radix-popper-available-height","".concat(a,"px")),l.setProperty("--radix-popper-anchor-width","".concat(u,"px")),l.setProperty("--radix-popper-anchor-height","".concat(c,"px"))}})),B&&s0({element:B,padding:_}),dp({arrowWidth:G,arrowHeight:X}),O&&l7({strategy:"referenceHidden"})]}),er=en.refs,eo=en.floatingStyles,ea=en.placement,ei=en.isPositioned,ec=en.middlewareData,el=w(dm(ea),2),es=el[0],ed=el[1],ef=eu(I);eh(function(){ei&&(ef===null||ef===void 0?void 0:ef())},[ei,ef]);var ep=(a=ec.arrow)===null||a===void 0?void 0:a.x,em=(i=ec.arrow)===null||i===void 0?void 0:i.y,eg=((u=ec.arrow)===null||u===void 0?void 0:u.centerOffset)!==0,eb=w((0,lj.useState)(),2),ew=eb[0],ey=eb[1];return eh(function(){z&&ey(window.getComputedStyle(z).zIndex)},[z]),(0,lj.createElement)("div",{ref:er.setFloating,"data-radix-popper-content-wrapper":"",style:g(p({},eo),{transform:ei?eo.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ew,"--radix-popper-transform-origin":[(c=ec.transformOrigin)===null||c===void 0?void 0:c.x,(l=ec.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")}),dir:e.dir},(0,lj.createElement)(ds,{scope:d,placedSide:es,onArrowChange:W,arrowX:ep,arrowY:em,shouldHideArrow:eg},(0,lj.createElement)(ev.div,Z({"data-side":es,"data-align":ed},L,{ref:K,style:g(p({},L.style),{animation:ei?void 0:"none",opacity:(s=ec.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0})}))))});function dv(e){return e!==null}var dp=function(e){return{name:"transformOrigin",options:e,fn:function t(t){var n,o,a,i,u;var c=t.placement,l=t.rects,s=t.middlewareData,d=((n=s.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,v=d?0:e.arrowHeight,p=w(dm(c),2),m=p[0],g=p[1],h={start:"0%",center:"50%",end:"100%"}[g],b=((o=(a=s.arrow)===null||a===void 0?void 0:a.x)!==null&&o!==void 0?o:0)+f/2,y=((i=(u=s.arrow)===null||u===void 0?void 0:u.y)!==null&&i!==void 0?i:0)+v/2,x="",E="";return m==="bottom"?(x=d?h:"".concat(b,"px"),E="".concat(-v,"px")):m==="top"?(x=d?h:"".concat(b,"px"),E="".concat(l.floating.height+v,"px")):m==="right"?(x="".concat(-v,"px"),E=d?h:"".concat(y,"px")):m==="left"&&(x="".concat(l.floating.width+v,"px"),E=d?h:"".concat(y,"px")),{data:{x:x,y:E}}}}};function dm(e){var t=w(e.split("-"),2),n=t[0],o=t[1],a=o===void 0?"center":o;return[n,a]}var dg=da,dh=du,db=df;var dw=require("react");var dy="rovingFocusGroup.onEntryFocus",dx={bubbles:!1,cancelable:!0},dE="RovingFocusGroup",dC=w(er(dE),3),dN=dC[0],d_=dC[1],dR=dC[2],dS=w(V(dE,[dR]),2),dD=dS[0],dT=dS[1],dP=w(dD(dE),2),dM=dP[0],dk=dP[1],dO=(0,dw.forwardRef)(function(e,t){return(0,dw.createElement)(dN.Provider,{scope:e.__scopeRovingFocusGroup},(0,dw.createElement)(dN.Slot,{scope:e.__scopeRovingFocusGroup},(0,dw.createElement)(dA,q({},e,{ref:t}))))}),dA=(0,dw.forwardRef)(function(e,t){var n=e.__scopeRovingFocusGroup,o=e.orientation,a=e.loop,i=a===void 0?!1:a,u=e.dir,c=e.currentTabStopId,l=e.defaultCurrentTabStopId,s=e.onCurrentTabStopIdChange,d=e.onEntryFocus,f=h(e,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus"]),v=(0,dw.useRef)(null),m=Y(t,v),g=eG(u),b=w(ec({prop:c,defaultProp:l,onChange:s}),2),y=b[0],E=y===void 0?null:y,C=b[1],N=w((0,dw.useState)(!1),2),_=N[0],R=N[1],S=eu(d),D=d_(n),T=(0,dw.useRef)(!1),P=w((0,dw.useState)(0),2),M=P[0],k=P[1];return(0,dw.useEffect)(function(){var e=v.current;if(e)return e.addEventListener(dy,S),function(){return e.removeEventListener(dy,S)}},[S]),(0,dw.createElement)(dM,{scope:n,orientation:o,dir:g,loop:i,currentTabStopId:E,onItemFocus:(0,dw.useCallback)(function(e){return C(e)},[C]),onItemShiftTab:(0,dw.useCallback)(function(){return R(!0)},[]),onFocusableItemAdd:(0,dw.useCallback)(function(){return k(function(e){return e+1})},[]),onFocusableItemRemove:(0,dw.useCallback)(function(){return k(function(e){return e-1})},[])},(0,dw.createElement)(ev.div,q({tabIndex:_||M===0?-1:0,"data-orientation":o},f,{ref:m,style:p({outline:"none"},e.style),onMouseDown:eo(e.onMouseDown,function(){T.current=!0}),onFocus:eo(e.onFocus,function(e){var t=!T.current;if(e.target===e.currentTarget&&t&&!_){var n=new CustomEvent(dy,dx);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){var o=D().filter(function(e){return e.focusable}),a=o.find(function(e){return e.active}),i=o.find(function(e){return e.id===E}),u=[a,i].concat(x(o)).filter(Boolean).map(function(e){return e.ref.current});dz(u)}}T.current=!1}),onBlur:eo(e.onBlur,function(){return R(!1)})})))}),dj="RovingFocusGroupItem",dI=(0,dw.forwardRef)(function(e,t){var n=e.__scopeRovingFocusGroup,o=e.focusable,a=o===void 0?!0:o,i=e.active,u=i===void 0?!1:i,c=e.tabStopId,l=h(e,["__scopeRovingFocusGroup","focusable","active","tabStopId"]),s=eS(),d=c||s,f=dk(dj,n),v=f.currentTabStopId===d,p=d_(n),m=f.onFocusableItemAdd,g=f.onFocusableItemRemove;return(0,dw.useEffect)(function(){if(a)return m(),function(){return g()}},[a,m,g]),(0,dw.createElement)(dN.ItemSlot,{scope:n,id:d,focusable:a,active:u},(0,dw.createElement)(ev.span,q({tabIndex:v?0:-1,"data-orientation":f.orientation},l,{ref:t,onMouseDown:eo(e.onMouseDown,function(e){a?f.onItemFocus(d):e.preventDefault()}),onFocus:eo(e.onFocus,function(){return f.onItemFocus(d)}),onKeyDown:eo(e.onKeyDown,function(e){if(e.key==="Tab"&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;var t=dq(e,f.orientation,f.dir);if(t!==void 0){e.preventDefault();var n=p().filter(function(e){return e.focusable}).map(function(e){return e.ref.current});if(t==="last")n.reverse();else if(t==="prev"||t==="next"){t==="prev"&&n.reverse();var o=n.indexOf(e.currentTarget);n=f.loop?dH(n,o+1):n.slice(o+1)}setTimeout(function(){return dz(n)})}})})))}),dL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function dq(e,t,n){var o=dF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return dL[o]}function dz(e){var t=document.activeElement;var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var c=u.value;if(c===t||(c.focus(),document.activeElement!==t))return}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}}function dH(e,t){return e.map(function(n,o){return e[(t+o)%e.length]})}var dK=dO,dV=dI;var dB=["Enter"," "],dW=["ArrowDown","PageUp","Home"],dU=["ArrowUp","PageDown","End"],dG=x(dW).concat(x(dU)),dX={ltr:x(dB).concat(["ArrowRight"]),rtl:x(dB).concat(["ArrowLeft"])},dY={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dZ="Menu",d$=w(er(dZ),3),dJ=d$[0],dQ=d$[1],d0=d$[2],d1=w(V(dZ,[d0,de,dT]),2),d2=d1[0],d5=d1[1],d4=de(),d3=dT(),d8=w(d2(dZ),2),d9=d8[0],d6=d8[1],d7=w(d2(dZ),2),fe=d7[0],ft=d7[1],fn=function(e){var t=e.__scopeMenu,n=e.open,o=n===void 0?!1:n,a=e.children,i=e.dir,u=e.onOpenChange,c=e.modal,l=c===void 0?!0:c,s=d4(t),d=w((0,lA.useState)(null),2),f=d[0],v=d[1],p=(0,lA.useRef)(!1),m=eu(u),g=eG(i);return(0,lA.useEffect)(function(){var e=function(){p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=function(){return p.current=!1};return document.addEventListener("keydown",e,{capture:!0}),function(){document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,lA.createElement)(dg,s,(0,lA.createElement)(d9,{scope:t,open:o,onOpenChange:m,content:f,onContentChange:v},(0,lA.createElement)(fe,{scope:t,onClose:(0,lA.useCallback)(function(){return m(!1)},[m]),isUsingKeyboardRef:p,dir:g,modal:l},a)))};var fr=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=h(e,["__scopeMenu"]),a=d4(n);return(0,lA.createElement)(dh,q({},a,o,{ref:t}))}),fo="MenuPortal",fa=w(d2(fo,{forceMount:void 0}),2),fi=fa[0],fu=fa[1],fc=function(e){var t=e.__scopeMenu,n=e.forceMount,o=e.children,a=e.container,i=d6(fo,t);return(0,lA.createElement)(fi,{scope:t,forceMount:n},(0,lA.createElement)(ex,{present:n||i.open},(0,lA.createElement)(ni,{asChild:!0,container:a},o)))},fl="MenuContent",fs=w(d2(fl),2),fd=fs[0],ff=fs[1],fv=(0,lA.forwardRef)(function(e,t){var n=fu(fl,e.__scopeMenu),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=d6(fl,e.__scopeMenu),c=ft(fl,e.__scopeMenu);return(0,lA.createElement)(dJ.Provider,{scope:e.__scopeMenu},(0,lA.createElement)(ex,{present:a||u.open},(0,lA.createElement)(dJ.Slot,{scope:e.__scopeMenu},c.modal?(0,lA.createElement)(fp,q({},i,{ref:t})):(0,lA.createElement)(fm,q({},i,{ref:t})))))}),fp=(0,lA.forwardRef)(function(e,t){var n=d6(fl,e.__scopeMenu),o=(0,lA.useRef)(null),a=Y(t,o);return(0,lA.useEffect)(function(){var e=o.current;if(e)return rC(e)},[]),(0,lA.createElement)(fg,q({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:eo(e.onFocusOutside,function(e){return e.preventDefault()},{checkForDefaultPrevented:!1}),onDismiss:function(){return n.onOpenChange(!1)}}))}),fm=(0,lA.forwardRef)(function(e,t){var n=d6(fl,e.__scopeMenu);return(0,lA.createElement)(fg,q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:function(){return n.onOpenChange(!1)}}))}),fg=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=e.loop,a=o===void 0?!1:o,i=e.trapFocus,u=e.onOpenAutoFocus,c=e.onCloseAutoFocus,l=e.disableOutsidePointerEvents,s=e.onEntryFocus,d=e.onEscapeKeyDown,f=e.onPointerDownOutside,v=e.onFocusOutside,m=e.onInteractOutside,g=e.onDismiss,b=e.disableOutsideScroll,y=h(e,["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"]),x=d6(fl,n),E=ft(fl,n),C=d4(n),N=d3(n),_=dQ(n),R=w((0,lA.useState)(null),2),S=R[0],D=R[1],T=(0,lA.useRef)(null),P=Y(t,T,x.onContentChange),M=(0,lA.useRef)(0),k=(0,lA.useRef)(""),O=(0,lA.useRef)(0),A=(0,lA.useRef)(null),j=(0,lA.useRef)("right"),I=(0,lA.useRef)(0),L=b?rp:lA.Fragment,F=b?{as:J,allowPinchZoom:!0}:void 0,z=function(e){var t,n;var o=k.current+e,a=_().filter(function(e){return!e.disabled}),i=document.activeElement,u=(t=a.find(function(e){return e.ref.current===i}))===null||t===void 0?void 0:t.textValue,c=a.map(function(e){return e.textValue}),l=f$(c,o,u),s=(n=a.find(function(e){return e.textValue===l}))===null||n===void 0?void 0:n.ref.current;(function e(t){k.current=t,window.clearTimeout(M.current),t!==""&&(M.current=window.setTimeout(function(){return e("")},1e3))})(o),s&&setTimeout(function(){return s.focus()})};(0,lA.useEffect)(function(){return function(){return window.clearTimeout(M.current)}},[]),nl();var H=(0,lA.useCallback)(function(e){var t,n;return j.current===((t=A.current)===null||t===void 0?void 0:t.side)&&fQ(e,(n=A.current)===null||n===void 0?void 0:n.area)},[]);return(0,lA.createElement)(fd,{scope:n,searchRef:k,onItemEnter:(0,lA.useCallback)(function(e){H(e)&&e.preventDefault()},[H]),onItemLeave:(0,lA.useCallback)(function(e){var t;H(e)||((t=T.current)===null||t===void 0||t.focus(),D(null))},[H]),onTriggerLeave:(0,lA.useCallback)(function(e){H(e)&&e.preventDefault()},[H]),pointerGraceTimerRef:O,onPointerGraceIntentChange:(0,lA.useCallback)(function(e){A.current=e},[])},(0,lA.createElement)(L,F,(0,lA.createElement)(t2,{asChild:!0,trapped:i,onMountAutoFocus:eo(u,function(e){var t;e.preventDefault(),(t=T.current)===null||t===void 0||t.focus()}),onUnmountAutoFocus:c},(0,lA.createElement)(tB,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:m,onDismiss:g},(0,lA.createElement)(dK,q({asChild:!0},N,{dir:E.dir,orientation:"vertical",loop:a,currentTabStopId:S,onCurrentTabStopIdChange:D,onEntryFocus:eo(s,function(e){E.isUsingKeyboardRef.current||e.preventDefault()})}),(0,lA.createElement)(db,q({role:"menu","aria-orientation":"vertical","data-state":fU(x.open),"data-radix-menu-content":"",dir:E.dir},C,y,{ref:P,style:p({outline:"none"},y.style),onKeyDown:eo(y.onKeyDown,function(e){var t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1;t&&(e.key==="Tab"&&e.preventDefault(),!n&&o&&z(e.key));var a=T.current;if(e.target!==a||!dG.includes(e.key))return;e.preventDefault();var i=_().filter(function(e){return!e.disabled}).map(function(e){return e.ref.current});dU.includes(e.key)&&i.reverse(),fY(i)}),onBlur:eo(e.onBlur,function(e){e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),k.current="")}),onPointerMove:eo(e.onPointerMove,f0(function(e){var t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){var o=e.clientX>I.current?"right":"left";j.current=o,I.current=e.clientX}}))})))))))});var fh=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=h(e,["__scopeMenu"]);return(0,lA.createElement)(ev.div,q({role:"group"},o,{ref:t}))});var fb=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=h(e,["__scopeMenu"]);return(0,lA.createElement)(ev.div,q({},o,{ref:t}))}),fw="MenuItem",fy="menu.itemSelect",fx=(0,lA.forwardRef)(function(e,t){var n=e.disabled,o=n===void 0?!1:n,a=e.onSelect,i=h(e,["disabled","onSelect"]),u=(0,lA.useRef)(null),c=ft(fw,e.__scopeMenu),l=ff(fw,e.__scopeMenu),s=Y(t,u),d=(0,lA.useRef)(!1),f=function(){var e=u.current;if(!o&&e){var t=new CustomEvent(fy,{bubbles:!0,cancelable:!0});e.addEventListener(fy,function(e){return a===null||a===void 0?void 0:a(e)},{once:!0}),ep(e,t),t.defaultPrevented?d.current=!1:c.onClose()}};return(0,lA.createElement)(fE,q({},i,{ref:s,disabled:o,onClick:eo(e.onClick,f),onPointerDown:function(t){var n;(n=e.onPointerDown)===null||n===void 0||n.call(e,t),d.current=!0},onPointerUp:eo(e.onPointerUp,function(e){var t;d.current||(t=e.currentTarget)===null||t===void 0||t.click()}),onKeyDown:eo(e.onKeyDown,function(e){var t=l.searchRef.current!=="";o||t&&e.key===" "||dB.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),fE=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=e.disabled,a=o===void 0?!1:o,i=e.textValue,u=h(e,["__scopeMenu","disabled","textValue"]),c=ff(fw,n),l=d3(n),s=(0,lA.useRef)(null),d=Y(t,s),f=w((0,lA.useState)(!1),2),v=f[0],p=f[1],m=w((0,lA.useState)(""),2),g=m[0],b=m[1];return(0,lA.useEffect)(function(){var e=s.current;if(e){var t;b(((t=e.textContent)!==null&&t!==void 0?t:"").trim())}},[u.children]),(0,lA.createElement)(dJ.ItemSlot,{scope:n,disabled:a,textValue:i!==null&&i!==void 0?i:g},(0,lA.createElement)(dV,q({asChild:!0},l,{focusable:!a}),(0,lA.createElement)(ev.div,q({role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0},u,{ref:d,onPointerMove:eo(e.onPointerMove,f0(function(e){a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:eo(e.onPointerLeave,f0(function(e){return c.onItemLeave(e)})),onFocus:eo(e.onFocus,function(){return p(!0)}),onBlur:eo(e.onBlur,function(){return p(!1)})}))))});var fC=(0,lA.forwardRef)(function(e,t){var n=e.checked,o=n===void 0?!1:n,a=e.onCheckedChange,i=h(e,["checked","onCheckedChange"]);return(0,lA.createElement)(fO,{scope:e.__scopeMenu,checked:o},(0,lA.createElement)(fx,q({role:"menuitemcheckbox","aria-checked":fG(o)?"mixed":o},i,{ref:t,"data-state":fX(o),onSelect:eo(i.onSelect,function(){return a===null||a===void 0?void 0:a(fG(o)?!0:!o)},{checkForDefaultPrevented:!1})})))}),fN="MenuRadioGroup",f_=w(d2(fN,{value:void 0,onValueChange:function(){}}),2),fR=f_[0],fS=f_[1],fD=(0,lA.forwardRef)(function(e,t){var n=e.value,o=e.onValueChange,a=h(e,["value","onValueChange"]),i=eu(o);return(0,lA.createElement)(fR,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,lA.createElement)(fh,q({},a,{ref:t})))}),fT="MenuRadioItem",fP=(0,lA.forwardRef)(function(e,t){var n=e.value,o=h(e,["value"]),a=fS(fT,e.__scopeMenu),i=n===a.value;return(0,lA.createElement)(fO,{scope:e.__scopeMenu,checked:i},(0,lA.createElement)(fx,q({role:"menuitemradio","aria-checked":i},o,{ref:t,"data-state":fX(i),onSelect:eo(o.onSelect,function(){var e;return(e=a.onValueChange)===null||e===void 0?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})))}),fM="MenuItemIndicator",fk=w(d2(fM,{checked:!1}),2),fO=fk[0],fA=fk[1],fj=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=e.forceMount,a=h(e,["__scopeMenu","forceMount"]),i=fA(fM,n);return(0,lA.createElement)(ex,{present:o||fG(i.checked)||i.checked===!0},(0,lA.createElement)(ev.span,q({},a,{ref:t,"data-state":fX(i.checked)})))});var fI=(0,lA.forwardRef)(function(e,t){var n=e.__scopeMenu,o=h(e,["__scopeMenu"]);return(0,lA.createElement)(ev.div,q({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))});var fL="MenuSub",fF=w(d2(fL),2),fq=fF[0],fz=fF[1],fH=function(e){var t=e.__scopeMenu,n=e.children,o=e.open,a=o===void 0?!1:o,i=e.onOpenChange,u=d6(fL,t),c=d4(t),l=w((0,lA.useState)(null),2),s=l[0],d=l[1],f=w((0,lA.useState)(null),2),v=f[0],p=f[1],m=eu(i);return(0,lA.useEffect)(function(){return u.open===!1&&m(!1),function(){return m(!1)}},[u.open,m]),(0,lA.createElement)(dg,c,(0,lA.createElement)(d9,{scope:t,open:a,onOpenChange:m,content:v,onContentChange:p},(0,lA.createElement)(fq,{scope:t,contentId:eS(),triggerId:eS(),trigger:s,onTriggerChange:d},n)))},fK="MenuSubTrigger",fV=(0,lA.forwardRef)(function(e,t){var n=d6(fK,e.__scopeMenu),o=ft(fK,e.__scopeMenu),a=fz(fK,e.__scopeMenu),i=ff(fK,e.__scopeMenu),u=(0,lA.useRef)(null),c=i.pointerGraceTimerRef,l=i.onPointerGraceIntentChange,s={__scopeMenu:e.__scopeMenu},d=(0,lA.useCallback)(function(){u.current&&window.clearTimeout(u.current),u.current=null},[]);return(0,lA.useEffect)(function(){return d},[d]),(0,lA.useEffect)(function(){var e=c.current;return function(){window.clearTimeout(e),l(null)}},[c,l]),(0,lA.createElement)(fr,q({asChild:!0},s),(0,lA.createElement)(fE,q({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":fU(n.open)},e,{ref:X(t,a.onTriggerChange),onClick:function(t){var o;(o=e.onClick)===null||o===void 0||o.call(e,t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:eo(e.onPointerMove,f0(function(t){i.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(i.onPointerGraceIntentChange(null),u.current=window.setTimeout(function(){n.onOpenChange(!0),d()},100))})),onPointerLeave:eo(e.onPointerLeave,f0(function(e){var t;d();var o=(t=n.content)===null||t===void 0?void 0:t.getBoundingClientRect();if(o){var a;var u=(a=n.content)===null||a===void 0?void 0:a.dataset.side,l=u==="right",s=l?-5:5,f=o[l?"left":"right"],v=o[l?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:f,y:o.top},{x:v,y:o.top},{x:v,y:o.bottom},{x:f,y:o.bottom}],side:u}),window.clearTimeout(c.current),c.current=window.setTimeout(function(){return i.onPointerGraceIntentChange(null)},300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:eo(e.onKeyDown,function(t){var a=i.searchRef.current!=="";if(!(e.disabled||a&&t.key===" ")&&dX[o.dir].includes(t.key)){var u;n.onOpenChange(!0),(u=n.content)===null||u===void 0||u.focus(),t.preventDefault()}})})))}),fB="MenuSubContent",fW=(0,lA.forwardRef)(function(e,t){var n=fu(fl,e.__scopeMenu),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=d6(fl,e.__scopeMenu),c=ft(fl,e.__scopeMenu),l=fz(fB,e.__scopeMenu),s=(0,lA.useRef)(null),d=Y(t,s);return(0,lA.createElement)(dJ.Provider,{scope:e.__scopeMenu},(0,lA.createElement)(ex,{present:a||u.open},(0,lA.createElement)(dJ.Slot,{scope:e.__scopeMenu},(0,lA.createElement)(fg,q({id:l.contentId,"aria-labelledby":l.triggerId},i,{ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:function(e){var t;c.isUsingKeyboardRef.current&&((t=s.current)===null||t===void 0||t.focus()),e.preventDefault()},onCloseAutoFocus:function(e){return e.preventDefault()},onFocusOutside:eo(e.onFocusOutside,function(e){e.target!==l.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:eo(e.onEscapeKeyDown,function(e){c.onClose(),e.preventDefault()}),onKeyDown:eo(e.onKeyDown,function(e){var t=e.currentTarget.contains(e.target),n=dY[c.dir].includes(e.key);if(t&&n){var o;u.onOpenChange(!1),(o=l.trigger)===null||o===void 0||o.focus(),e.preventDefault()}})})))))});function fU(e){return e?"open":"closed"}function fG(e){return e==="indeterminate"}function fX(e){return fG(e)?"indeterminate":e?"checked":"unchecked"}function fY(e){var t=document.activeElement;var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var c=u.value;if(c===t||(c.focus(),document.activeElement!==t))return}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}}function fZ(e,t){return e.map(function(n,o){return e[(t+o)%e.length]})}function f$(e,t,n){var o=t.length>1&&Array.from(t).every(function(e){return e===t[0]})?t[0]:t,a=n?e.indexOf(n):-1,i=fZ(e,Math.max(a,0));o.length===1&&(i=i.filter(function(e){return e!==n}));var u=i.find(function(e){return e.toLowerCase().startsWith(o.toLowerCase())});return u!==n?u:void 0}function fJ(e,t){var n=e.x,o=e.y,a=!1;for(var i=0,u=t.length-1;io!=d>o&&n<(s-c)*(o-l)/(d-l)+c&&(a=!a)}return a}function fQ(e,t){if(!t)return!1;var n={x:e.clientX,y:e.clientY};return fJ(n,t)}function f0(e){return function(t){return t.pointerType==="mouse"?e(t):void 0}}var f1=fn,f2=fr,f5=fc,f4=fv,f3=fh,f8=fb,f9=fx,f6=fC,f7=fD,ve=fP,vt=fj,vn=fI;var vr=fH,vo=fV,va=fW;var vi="ContextMenu",vu=w(V(vi,[d5]),2),vc=vu[0],vl=vu[1],vs=d5(),vd=w(vc(vi),2),vf=vd[0],vv=vd[1],vp=function(e){var t=e.__scopeContextMenu,n=e.children,o=e.onOpenChange,a=e.dir,i=e.modal,u=i===void 0?!0:i,c=w((0,lO.useState)(!1),2),l=c[0],s=c[1],d=vs(t),f=eu(o),v=(0,lO.useCallback)(function(e){s(e),f(e)},[f]);return(0,lO.createElement)(vf,{scope:t,open:l,onOpenChange:v,modal:u},(0,lO.createElement)(f1,q({},d,{dir:a,open:l,onOpenChange:v,modal:u}),n))},vm="ContextMenuTrigger",vg=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=e.disabled,a=o===void 0?!1:o,i=h(e,["__scopeContextMenu","disabled"]),u=vv(vm,n),c=vs(n),l=(0,lO.useRef)({x:0,y:0}),s=(0,lO.useRef)({getBoundingClientRect:function(){return DOMRect.fromRect(p({width:0,height:0},l.current))}}),d=(0,lO.useRef)(0),f=(0,lO.useCallback)(function(){return window.clearTimeout(d.current)},[]),v=function(e){l.current={x:e.clientX,y:e.clientY},u.onOpenChange(!0)};return(0,lO.useEffect)(function(){return f},[f]),(0,lO.useEffect)(function(){return void(a&&f())},[a,f]),(0,lO.createElement)(lO.Fragment,null,(0,lO.createElement)(f2,q({},c,{virtualRef:s})),(0,lO.createElement)(ev.span,q({"data-state":u.open?"open":"closed","data-disabled":a?"":void 0},i,{ref:t,style:p({WebkitTouchCallout:"none"},e.style),onContextMenu:a?e.onContextMenu:eo(e.onContextMenu,function(e){f(),v(e),e.preventDefault()}),onPointerDown:a?e.onPointerDown:eo(e.onPointerDown,vM(function(e){f(),d.current=window.setTimeout(function(){return v(e)},700)})),onPointerMove:a?e.onPointerMove:eo(e.onPointerMove,vM(f)),onPointerCancel:a?e.onPointerCancel:eo(e.onPointerCancel,vM(f)),onPointerUp:a?e.onPointerUp:eo(e.onPointerUp,vM(f))})))});var vh=function(e){var t=e.__scopeContextMenu,n=h(e,["__scopeContextMenu"]),o=vs(t);return(0,lO.createElement)(f5,q({},o,n))},vb="ContextMenuContent",vw=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vv(vb,n),i=vs(n),u=(0,lO.useRef)(!1);return(0,lO.createElement)(f4,q({},i,o,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:function(t){var n;(n=e.onCloseAutoFocus)===null||n===void 0||n.call(e,t),!t.defaultPrevented&&u.current&&t.preventDefault(),u.current=!1},onInteractOutside:function(t){var n;(n=e.onInteractOutside)===null||n===void 0||n.call(e,t),!t.defaultPrevented&&!a.modal&&(u.current=!0)},style:g(p({},e.style),{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});var vy=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(f3,q({},a,o,{ref:t}))});var vx=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(f8,q({},a,o,{ref:t}))});var vE=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(f9,q({},a,o,{ref:t}))});var vC=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(f6,q({},a,o,{ref:t}))});var vN=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(f7,q({},a,o,{ref:t}))});var v_=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(ve,q({},a,o,{ref:t}))});var vR=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(vt,q({},a,o,{ref:t}))});var vS=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(vn,q({},a,o,{ref:t}))});var vD=function(e){var t=e.__scopeContextMenu,n=e.children,o=e.onOpenChange,a=e.open,i=e.defaultOpen,u=vs(t),c=w(ec({prop:a,defaultProp:i,onChange:o}),2),l=c[0],s=c[1];return(0,lO.createElement)(vr,q({},u,{open:l,onOpenChange:s}),n)};var vT=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(vo,q({},a,o,{ref:t}))});var vP=(0,lO.forwardRef)(function(e,t){var n=e.__scopeContextMenu,o=h(e,["__scopeContextMenu"]),a=vs(n);return(0,lO.createElement)(va,q({},a,o,{ref:t,style:g(p({},e.style),{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});function vM(e){return function(t){return t.pointerType!=="mouse"?e(t):void 0}}var vk=vp,vO=vg,vA=vh,vj=vw,vI=vy,vL=vx,vF=vE,vq=vC,vz=vN,vH=v_,vK=vR,vV=vS;var vB=vD,vW=vT,vU=vP;var vG=require("lucide-react");var vX=require("react/jsx-runtime"),vY=vk,vZ=vO,v$=vI,vJ=vA,vQ=vB,v0=vz,v1=lk.forwardRef(function(e,t){var n=e.className,o=e.inset,a=e.children,i=h(e,["className","inset","children"]);return(0,vX.jsxs)(vW,g(p({ref:t,className:tS("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",n)},i),{children:[a,(0,vX.jsx)(vG.ChevronRight,{className:"ml-auto h-4 w-4"})]}))});v1.displayName=vW.displayName;var v2=lk.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,vX.jsx)(vU,p({ref:t,className:tS("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o))});v2.displayName=vU.displayName;var v5=lk.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,vX.jsx)(vA,{children:(0,vX.jsx)(vj,p({ref:t,className:tS("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o))})});v5.displayName=vj.displayName;var v4=lk.forwardRef(function(e,t){var n=e.className,o=e.inset,a=h(e,["className","inset"]);return(0,vX.jsx)(vF,p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",n)},a))});v4.displayName=vF.displayName;var v3=lk.forwardRef(function(e,t){var n=e.className,o=e.children,a=e.checked,i=h(e,["className","children","checked"]);return(0,vX.jsxs)(vq,g(p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:a},i),{children:[(0,vX.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,vX.jsx)(vK,{children:(0,vX.jsx)(vG.Check,{className:"h-4 w-4"})})}),o]}))});v3.displayName=vq.displayName;var v8=lk.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,vX.jsxs)(vH,g(p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},a),{children:[(0,vX.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,vX.jsx)(vK,{children:(0,vX.jsx)(vG.Circle,{className:"h-2 w-2 fill-current"})})}),o]}))});v8.displayName=vH.displayName;var v9=lk.forwardRef(function(e,t){var n=e.className,o=e.inset,a=h(e,["className","inset"]);return(0,vX.jsx)(vL,p({ref:t,className:tS("px-2 py-1.5 text-sm font-semibold text-foreground",o&&"pl-8",n)},a))});v9.displayName=vL.displayName;var v6=lk.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,vX.jsx)(vV,p({ref:t,className:tS("-mx-1 my-1 h-px bg-border",n)},o))});v6.displayName=vV.displayName;var v7=function(e){var t=e.className,n=h(e,["className"]);return(0,vX.jsx)("span",p({className:tS("ml-auto text-xs tracking-widest text-muted-foreground",t)},n))};v7.displayName="ContextMenuShortcut";var pe=j(require("react"),1),pt=require("vaul");var pn=require("react/jsx-runtime"),pr=function(e){var t=e.shouldScaleBackground,n=t===void 0?!0:t,o=h(e,["shouldScaleBackground"]);return(0,pn.jsx)(pt.Drawer.Root,p({shouldScaleBackground:n},o))};pr.displayName="Drawer";var po=pt.Drawer.Trigger,pa=pt.Drawer.Portal,pi=pt.Drawer.Close,pu=pe.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,pn.jsx)(pt.Drawer.Overlay,p({ref:t,className:tS("fixed inset-0 z-50 bg-black/80",n)},o))});pu.displayName=pt.Drawer.Overlay.displayName;var pc=pe.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,pn.jsxs)(pa,{children:[(0,pn.jsx)(pu,{}),(0,pn.jsxs)(pt.Drawer.Content,g(p({ref:t,className:tS("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",n)},a),{children:[(0,pn.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),o]}))]})});pc.displayName="DrawerContent";var pl=function(e){var t=e.className,n=h(e,["className"]);return(0,pn.jsx)("div",p({className:tS("grid gap-1.5 p-4 text-center sm:text-left",t)},n))};pl.displayName="DrawerHeader";var ps=function(e){var t=e.className,n=h(e,["className"]);return(0,pn.jsx)("div",p({className:tS("mt-auto flex flex-col gap-2 p-4",t)},n))};ps.displayName="DrawerFooter";var pd=pe.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,pn.jsx)(pt.Drawer.Title,p({ref:t,className:tS("text-lg font-semibold leading-none tracking-tight",n)},o))});pd.displayName=pt.Drawer.Title.displayName;var pf=pe.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,pn.jsx)(pt.Drawer.Description,p({ref:t,className:tS("text-sm text-muted-foreground",n)},o))});pf.displayName=pt.Drawer.Description.displayName;var pv=j(require("react"),1);var pp=require("react");var pm="DropdownMenu",pg=w(V(pm,[d5]),2),ph=pg[0],pb=pg[1],pw=d5(),py=w(ph(pm),2),px=py[0],pE=py[1],pC=function(e){var t=e.__scopeDropdownMenu,n=e.children,o=e.dir,a=e.open,i=e.defaultOpen,u=e.onOpenChange,c=e.modal,l=c===void 0?!0:c,s=pw(t),d=(0,pp.useRef)(null),f=w(ec({prop:a,defaultProp:i,onChange:u}),2),v=f[0],p=v===void 0?!1:v,m=f[1];return(0,pp.createElement)(px,{scope:t,triggerId:eS(),triggerRef:d,contentId:eS(),open:p,onOpenChange:m,onOpenToggle:(0,pp.useCallback)(function(){return m(function(e){return!e})},[m]),modal:l},(0,pp.createElement)(f1,q({},s,{open:p,onOpenChange:m,dir:o,modal:l}),n))},pN="DropdownMenuTrigger",p_=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=e.disabled,a=o===void 0?!1:o,i=h(e,["__scopeDropdownMenu","disabled"]),u=pE(pN,n),c=pw(n);return(0,pp.createElement)(f2,q({asChild:!0},c),(0,pp.createElement)(ev.button,q({type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":a?"":void 0,disabled:a},i,{ref:X(t,u.triggerRef),onPointerDown:eo(e.onPointerDown,function(e){!a&&e.button===0&&e.ctrlKey===!1&&(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:eo(e.onKeyDown,function(e){a||(["Enter"," "].includes(e.key)&&u.onOpenToggle(),e.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))});var pR=function(e){var t=e.__scopeDropdownMenu,n=h(e,["__scopeDropdownMenu"]),o=pw(t);return(0,pp.createElement)(f5,q({},o,n))},pS="DropdownMenuContent",pD=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pE(pS,n),i=pw(n),u=(0,pp.useRef)(!1);return(0,pp.createElement)(f4,q({id:a.contentId,"aria-labelledby":a.triggerId},i,o,{ref:t,onCloseAutoFocus:eo(e.onCloseAutoFocus,function(e){var t;u.current||(t=a.triggerRef.current)===null||t===void 0||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:eo(e.onInteractOutside,function(e){var t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,o=t.button===2||n;(!a.modal||o)&&(u.current=!0)}),style:g(p({},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)"})}))});var pT=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(f3,q({},a,o,{ref:t}))});var pP=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(f8,q({},a,o,{ref:t}))});var pM=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(f9,q({},a,o,{ref:t}))});var pk=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(f6,q({},a,o,{ref:t}))});var pO=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(f7,q({},a,o,{ref:t}))});var pA=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(ve,q({},a,o,{ref:t}))});var pj=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(vt,q({},a,o,{ref:t}))});var pI=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(vn,q({},a,o,{ref:t}))});var pL=function(e){var t=e.__scopeDropdownMenu,n=e.children,o=e.open,a=e.onOpenChange,i=e.defaultOpen,u=pw(t),c=w(ec({prop:o,defaultProp:i,onChange:a}),2),l=c[0],s=l===void 0?!1:l,d=c[1];return(0,pp.createElement)(vr,q({},u,{open:s,onOpenChange:d}),n)};var pF=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(vo,q({},a,o,{ref:t}))});var pq=(0,pp.forwardRef)(function(e,t){var n=e.__scopeDropdownMenu,o=h(e,["__scopeDropdownMenu"]),a=pw(n);return(0,pp.createElement)(va,q({},a,o,{ref:t,style:g(p({},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)"})}))}),pz=pC,pH=p_,pK=pR,pV=pD,pB=pT,pW=pP,pU=pM,pG=pk,pX=pO,pY=pA,pZ=pj,p$=pI;var pJ=pL,pQ=pF,p0=pq;var p1=require("lucide-react");var p2=require("react/jsx-runtime"),p5=pz,p4=pH,p3=pB,p8=pK,p9=pJ,p6=pX,p7=pv.forwardRef(function(e,t){var n=e.className,o=e.inset,a=e.children,i=h(e,["className","inset","children"]);return(0,p2.jsxs)(pQ,g(p({ref:t,className:tS("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",o&&"pl-8",n)},i),{children:[a,(0,p2.jsx)(p1.ChevronRight,{className:"ml-auto h-4 w-4"})]}))});p7.displayName=pQ.displayName;var me=pv.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,p2.jsx)(p0,p({ref:t,className:tS("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o))});me.displayName=p0.displayName;var mt=pv.forwardRef(function(e,t){var n=e.className,o=e.sideOffset,a=o===void 0?4:o,i=h(e,["className","sideOffset"]);return(0,p2.jsx)(pK,{children:(0,p2.jsx)(pV,p({ref:t,sideOffset:a,className:tS("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},i))})});mt.displayName=pV.displayName;var mn=pv.forwardRef(function(e,t){var n=e.className,o=e.inset,a=h(e,["className","inset"]);return(0,p2.jsx)(pU,p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",n)},a))});mn.displayName=pU.displayName;var mr=pv.forwardRef(function(e,t){var n=e.className,o=e.children,a=e.checked,i=h(e,["className","children","checked"]);return(0,p2.jsxs)(pG,g(p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:a},i),{children:[(0,p2.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,p2.jsx)(pZ,{children:(0,p2.jsx)(p1.Check,{className:"h-4 w-4"})})}),o]}))});mr.displayName=pG.displayName;var mo=pv.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,p2.jsxs)(pY,g(p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},a),{children:[(0,p2.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,p2.jsx)(pZ,{children:(0,p2.jsx)(p1.Circle,{className:"h-2 w-2 fill-current"})})}),o]}))});mo.displayName=pY.displayName;var ma=pv.forwardRef(function(e,t){var n=e.className,o=e.inset,a=h(e,["className","inset"]);return(0,p2.jsx)(pW,p({ref:t,className:tS("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",n)},a))});ma.displayName=pW.displayName;var mi=pv.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,p2.jsx)(p$,p({ref:t,className:tS("-mx-1 my-1 h-px bg-muted",n)},o))});mi.displayName=p$.displayName;var mu=function(e){var t=e.className,n=h(e,["className"]);return(0,p2.jsx)("span",p({className:tS("ml-auto text-xs tracking-widest opacity-60",t)},n))};mu.displayName="DropdownMenuShortcut";var mc=j(require("react"),1);var ml=require("react-hook-form");var ms=j(require("react"),1);var md=require("react");var mf=(0,md.forwardRef)(function(e,t){return(0,md.createElement)(ev.label,q({},e,{ref:t,onMouseDown:function(t){var n;(n=e.onMouseDown)===null||n===void 0||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))}),mv=mf;var mp=require("class-variance-authority");var mm=require("react/jsx-runtime"),mg=(0,mp.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),mh=ms.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,mm.jsx)(mv,p({ref:t,className:tS(mg(),n)},o))});mh.displayName=mv.displayName;var mb=require("react/jsx-runtime"),mw=ml.FormProvider,my=mc.createContext({}),mx=function(e){var t=u({},v(e));return(0,mb.jsx)(my.Provider,{value:{name:t.name,required:!!t.required},children:(0,mb.jsx)(ml.Controller,p({},t))})},mE=function(){var e=mc.useContext(my),t=mc.useContext(mC),n=(0,ml.useFormContext)(),o=n.getFieldState,a=n.formState,i=o(e.name,a);if(!e)throw new Error("useFormField should be used within ");var u=t.id;return p({id:u,name:e.name,required:e.required,formItemId:"".concat(u,"-form-item"),formDescriptionId:"".concat(u,"-form-item-description"),formMessageId:"".concat(u,"-form-item-message")},i)},mC=mc.createContext({}),mN=mc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);var a=mc.useId();return(0,mb.jsx)(mC.Provider,{value:{id:a},children:(0,mb.jsx)("div",p({ref:t,className:tS("space-y-2",n)},o))})});mN.displayName="FormItem";var m_=mc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);var a=mE(),i=a.error,u=a.formItemId,c=a.required;return(0,mb.jsx)(mh,p({ref:t,className:tS(c&&"after:relative after:top-[2px] after:ml-[2px] after:text-red-400 after:content-['*']",n),htmlFor:u},o))});m_.displayName="FormLabel";var mR=mc.forwardRef(function(e,t){var n=u({},v(e));var o=mE(),a=o.error,i=o.formItemId,c=o.formDescriptionId,l=o.formMessageId;return(0,mb.jsx)(J,p({ref:t,id:i,"aria-describedby":a?"".concat(c," ").concat(l):"".concat(c),"aria-invalid":!!a},n))});mR.displayName="FormControl";var mS=mc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);var a=mE(),i=a.formDescriptionId;return(0,mb.jsx)("p",p({ref:t,id:i,className:tS("text-sm text-muted-foreground",n)},o))});mS.displayName="FormDescription";var mD=mc.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);var i=mE(),u=i.error,c=i.formMessageId,l=u?String(u===null||u===void 0?void 0:u.message):o;return l?(0,mb.jsx)("p",g(p({ref:t,id:c,className:tS("text-sm font-medium text-destructive",n)},a),{children:l})):null});mD.displayName="FormMessage";var mT=j(require("react"),1);var mP=require("react");var mM,mk="HoverCard",mO=w(V(mk,[de]),2),mA=mO[0],mj=mO[1],mI=de(),mL=w(mA(mk),2),mF=mL[0],mq=mL[1],mz=function(e){var t=e.__scopeHoverCard,n=e.children,o=e.open,a=e.defaultOpen,i=e.onOpenChange,u=e.openDelay,c=u===void 0?700:u,l=e.closeDelay,s=l===void 0?300:l,d=mI(t),f=(0,mP.useRef)(0),v=(0,mP.useRef)(0),p=(0,mP.useRef)(!1),m=(0,mP.useRef)(!1),g=w(ec({prop:o,defaultProp:a,onChange:i}),2),h=g[0],b=h===void 0?!1:h,y=g[1],x=(0,mP.useCallback)(function(){clearTimeout(v.current),f.current=window.setTimeout(function(){return y(!0)},c)},[c,y]),E=(0,mP.useCallback)(function(){clearTimeout(f.current),!p.current&&!m.current&&(v.current=window.setTimeout(function(){return y(!1)},s))},[s,y]),C=(0,mP.useCallback)(function(){return y(!1)},[y]);return(0,mP.useEffect)(function(){return function(){clearTimeout(f.current),clearTimeout(v.current)}},[]),(0,mP.createElement)(mF,{scope:t,open:b,onOpenChange:y,onOpen:x,onClose:E,onDismiss:C,hasSelectionRef:p,isPointerDownOnContentRef:m},(0,mP.createElement)(dg,d,n))},mH="HoverCardTrigger",mK=(0,mP.forwardRef)(function(e,t){var n=e.__scopeHoverCard,o=h(e,["__scopeHoverCard"]),a=mq(mH,n),i=mI(n);return(0,mP.createElement)(dh,q({asChild:!0},i),(0,mP.createElement)(ev.a,q({"data-state":a.open?"open":"closed"},o,{ref:t,onPointerEnter:eo(e.onPointerEnter,mZ(a.onOpen)),onPointerLeave:eo(e.onPointerLeave,mZ(a.onClose)),onFocus:eo(e.onFocus,a.onOpen),onBlur:eo(e.onBlur,a.onClose),onTouchStart:eo(e.onTouchStart,function(e){return e.preventDefault()})})))}),mV="HoverCardPortal",mB=w(mA(mV,{forceMount:void 0}),2),mW=mB[0],mU=mB[1];var mG="HoverCardContent",mX=(0,mP.forwardRef)(function(e,t){var n=mU(mG,e.__scopeHoverCard),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=mq(mG,e.__scopeHoverCard);return(0,mP.createElement)(ex,{present:a||u.open},(0,mP.createElement)(mY,q({"data-state":u.open?"open":"closed"},i,{onPointerEnter:eo(e.onPointerEnter,mZ(u.onOpen)),onPointerLeave:eo(e.onPointerLeave,mZ(u.onClose)),ref:t})))}),mY=(0,mP.forwardRef)(function(e,t){var n=e.__scopeHoverCard,o=e.onEscapeKeyDown,a=e.onPointerDownOutside,i=e.onFocusOutside,u=e.onInteractOutside,c=h(e,["__scopeHoverCard","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]),l=mq(mG,n),s=mI(n),d=(0,mP.useRef)(null),f=Y(t,d),v=w((0,mP.useState)(!1),2),m=v[0],b=v[1];return(0,mP.useEffect)(function(){if(m){var e=document.body;return mM=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",function(){e.style.userSelect=mM,e.style.webkitUserSelect=mM}}},[m]),(0,mP.useEffect)(function(){if(d.current){var e=function(){b(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(function(){var e;((e=document.getSelection())===null||e===void 0?void 0:e.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),function(){document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),(0,mP.useEffect)(function(){d.current&&m$(d.current).forEach(function(e){return e.setAttribute("tabindex","-1")})}),(0,mP.createElement)(tB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:u,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:eo(i,function(e){e.preventDefault()}),onDismiss:l.onDismiss},(0,mP.createElement)(db,q({},s,c,{onPointerDown:eo(c.onPointerDown,function(e){e.currentTarget.contains(e.target)&&b(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:g(p({},c.style),{userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"})})))});function mZ(e){return function(t){return t.pointerType==="touch"?void 0:e()}}function m$(e){var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}var mJ=mz,mQ=mK;var m0=mX;var m1=require("react/jsx-runtime"),m2=mJ,m5=mQ,m4=mT.forwardRef(function(e,t){var n=e.className,o=e.align,a=o===void 0?"center":o,i=e.sideOffset,u=i===void 0?4:i,c=h(e,["className","align","sideOffset"]);return(0,m1.jsx)(m0,p({ref:t,align:a,sideOffset:u,className:tS("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},c))});m4.displayName=m0.displayName;var m3=j(require("react"),1),m8=require("input-otp"),m9=require("lucide-react");var m6=require("react/jsx-runtime"),m7=m3.forwardRef(function(e,t){var n=e.className,o=e.containerClassName,a=h(e,["className","containerClassName"]);return(0,m6.jsx)(m8.OTPInput,p({ref:t,containerClassName:tS("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:tS("disabled:cursor-not-allowed",n)},a))});m7.displayName="InputOTP";var ge=m3.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,m6.jsx)("div",p({ref:t,className:tS("flex items-center",n)},o))});ge.displayName="InputOTPGroup";var gt=m3.forwardRef(function(e,t){var n=e.index,o=e.className,a=h(e,["index","className"]);var i=m3.useContext(m8.OTPInputContext),u=i.slots[n],c=u.char,l=u.hasFakeCaret,s=u.isActive;return(0,m6.jsxs)("div",g(p({ref:t,className:tS("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-2 ring-ring ring-offset-background",o)},a),{children:[c,l&&(0,m6.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,m6.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]}))});gt.displayName="InputOTPSlot";var gn=m3.forwardRef(function(e,t){var n=u({},v(e));return(0,m6.jsx)("div",g(p({ref:t,role:"separator"},n),{children:(0,m6.jsx)(m9.Dot,{})}))});gn.displayName="InputOTPSeparator";var gr=j(require("react"),1),go=require("lucide-react");var ga=require("react/jsx-runtime"),gi=gr.forwardRef(function(e,t){var n=e.wrapperClassName,o=e.className,a=e.type,i=h(e,["wrapperClassName","className","type"]);var u=w(gr.useState(!1),2),c=u[0],l=u[1],s=function(){return l(!c)};return(0,ga.jsxs)("div",{className:"relative ".concat(n||""),children:[(0,ga.jsx)("input",p({type:a==="password"?c?"text":"password":a,className:tS("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),ref:t},i)),a==="password"&&(0,ga.jsx)("div",{className:"absolute inset-y-0 right-0 flex cursor-pointer items-center pr-3 text-gray-400",children:c?(0,ga.jsx)(go.EyeIcon,{className:"h-4 w-4",onClick:s}):(0,ga.jsx)(go.EyeOffIcon,{className:"h-4 w-4",onClick:s})})]})});gi.displayName="Input";var gu=gr.forwardRef(function(e,t){var n=e.className,o=e.type,a=e.children,i=e.htmlFor,u=h(e,["className","type","children","htmlFor"]);return(0,ga.jsxs)("div",{className:"relative",children:[a,(0,ga.jsx)("input",g(p({className:tS("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n,"hidden"),ref:t},u),{id:i,type:"file"}))]})});gu.displayName="FileInput";var gc=j(require("react"),1);var gl=require("react");var gs="Menubar",gd=w(er(gs),3),gf=gd[0],gv=gd[1],gp=gd[2],gm=w(V(gs,[gp,dT]),2),gg=gm[0],gh=gm[1],gb=d5(),gw=dT(),gy=w(gg(gs),2),gx=gy[0],gE=gy[1],gC=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=e.value,a=e.onValueChange,i=e.defaultValue,u=e.loop,c=u===void 0?!0:u,l=e.dir,s=h(e,["__scopeMenubar","value","onValueChange","defaultValue","loop","dir"]),d=eG(l),f=gw(n),v=w(ec({prop:o,onChange:a,defaultProp:i}),2),p=v[0],m=p===void 0?"":p,g=v[1],b=w((0,gl.useState)(null),2),y=b[0],x=b[1];return(0,gl.createElement)(gx,{scope:n,value:m,onMenuOpen:(0,gl.useCallback)(function(e){g(e),x(e)},[g]),onMenuClose:(0,gl.useCallback)(function(){return g("")},[g]),onMenuToggle:(0,gl.useCallback)(function(e){g(function(t){return t?"":e}),x(e)},[g]),dir:d,loop:c},(0,gl.createElement)(gf.Provider,{scope:n},(0,gl.createElement)(gf.Slot,{scope:n},(0,gl.createElement)(dK,q({asChild:!0},f,{orientation:"horizontal",loop:c,dir:d,currentTabStopId:y,onCurrentTabStopIdChange:x}),(0,gl.createElement)(ev.div,q({role:"menubar"},s,{ref:t}))))))}),gN="MenubarMenu",g_=w(gg(gN),2),gR=g_[0],gS=g_[1],gD=function(e){var t=e.__scopeMenubar,n=e.value,o=h(e,["__scopeMenubar","value"]),a=eS(),i=n||a||"LEGACY_REACT_AUTO_VALUE",u=gE(gN,t),c=gb(t),l=(0,gl.useRef)(null),s=(0,gl.useRef)(!1),d=u.value===i;return(0,gl.useEffect)(function(){d||(s.current=!1)},[d]),(0,gl.createElement)(gR,{scope:t,value:i,triggerId:eS(),triggerRef:l,contentId:eS(),wasKeyboardTriggerOpenRef:s},(0,gl.createElement)(f1,q({},c,{open:d,onOpenChange:function(e){e||u.onMenuClose()},modal:!1,dir:u.dir},o)))},gT="MenubarTrigger",gP=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=e.disabled,a=o===void 0?!1:o,i=h(e,["__scopeMenubar","disabled"]),u=gw(n),c=gb(n),l=gE(gT,n),s=gS(gT,n),d=(0,gl.useRef)(null),f=Y(t,d,s.triggerRef),v=w((0,gl.useState)(!1),2),p=v[0],m=v[1],g=l.value===s.value;return(0,gl.createElement)(gf.ItemSlot,{scope:n,value:s.value,disabled:a},(0,gl.createElement)(dV,q({asChild:!0},u,{focusable:!a,tabStopId:s.value}),(0,gl.createElement)(f2,q({asChild:!0},c),(0,gl.createElement)(ev.button,q({type:"button",role:"menuitem",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?s.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":g?"open":"closed","data-disabled":a?"":void 0,disabled:a},i,{ref:f,onPointerDown:eo(e.onPointerDown,function(e){!a&&e.button===0&&e.ctrlKey===!1&&(l.onMenuOpen(s.value),g||e.preventDefault())}),onPointerEnter:eo(e.onPointerEnter,function(){if(!!l.value&&!g){var e;l.onMenuOpen(s.value),(e=d.current)===null||e===void 0||e.focus()}}),onKeyDown:eo(e.onKeyDown,function(e){a||(["Enter"," "].includes(e.key)&&l.onMenuToggle(s.value),e.key==="ArrowDown"&&l.onMenuOpen(s.value),["Enter"," ","ArrowDown"].includes(e.key)&&(s.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:eo(e.onFocus,function(){return m(!0)}),onBlur:eo(e.onBlur,function(){return m(!1)})})))))});var gM=function(e){var t=e.__scopeMenubar,n=h(e,["__scopeMenubar"]),o=gb(t);return(0,gl.createElement)(f5,q({},o,n))},gk="MenubarContent",gO=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=e.align,a=o===void 0?"start":o,i=h(e,["__scopeMenubar","align"]),u=gb(n),c=gE(gk,n),l=gS(gk,n),s=gv(n),d=(0,gl.useRef)(!1);return(0,gl.createElement)(f4,q({id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":""},u,i,{ref:t,align:a,onCloseAutoFocus:eo(e.onCloseAutoFocus,function(e){if(!!!c.value&&!d.current){var t;(t=l.triggerRef.current)===null||t===void 0||t.focus()}d.current=!1,e.preventDefault()}),onFocusOutside:eo(e.onFocusOutside,function(e){var t=e.target;s().some(function(e){var n;return(n=e.ref.current)===null||n===void 0?void 0:n.contains(t)})&&e.preventDefault()}),onInteractOutside:eo(e.onInteractOutside,function(){d.current=!0}),onEntryFocus:function(e){l.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:eo(e.onKeyDown,function(e){if(["ArrowRight","ArrowLeft"].includes(e.key)){var t=e.target,n=t.hasAttribute("data-radix-menubar-subtrigger"),o=t.closest("[data-radix-menubar-content]")!==e.currentTarget,a=(c.dir==="rtl"?"ArrowRight":"ArrowLeft")===e.key;if(!a&&n||o&&a)return;var i=s().filter(function(e){return!e.disabled}).map(function(e){return e.value});a&&i.reverse();var u=i.indexOf(l.value);i=c.loop?gW(i,u+1):i.slice(u+1);var d=w(i,1),f=d[0];f&&c.onMenuOpen(f)}},{checkForDefaultPrevented:!1}),style:g(p({},e.style),{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"})}))});var gA=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(f3,q({},a,o,{ref:t}))});var gj=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(f8,q({},a,o,{ref:t}))});var gI=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(f9,q({},a,o,{ref:t}))});var gL=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(f6,q({},a,o,{ref:t}))});var gF=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(f7,q({},a,o,{ref:t}))});var gq=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(ve,q({},a,o,{ref:t}))});var gz=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(vt,q({},a,o,{ref:t}))});var gH=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(vn,q({},a,o,{ref:t}))});var gK=function(e){var t=e.__scopeMenubar,n=e.children,o=e.open,a=e.onOpenChange,i=e.defaultOpen,u=gb(t),c=w(ec({prop:o,defaultProp:i,onChange:a}),2),l=c[0],s=l===void 0?!1:l,d=c[1];return(0,gl.createElement)(vr,q({},u,{open:s,onOpenChange:d}),n)};var gV=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(vo,q({"data-radix-menubar-subtrigger":""},a,o,{ref:t}))});var gB=(0,gl.forwardRef)(function(e,t){var n=e.__scopeMenubar,o=h(e,["__scopeMenubar"]),a=gb(n);return(0,gl.createElement)(va,q({},a,{"data-radix-menubar-content":""},o,{ref:t,style:g(p({},e.style),{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"})}))});function gW(e,t){return e.map(function(n,o){return e[(t+o)%e.length]})}var gU=gC,gG=gD,gX=gP,gY=gM,gZ=gO,g$=gA,gJ=gj,gQ=gI,g0=gL,g1=gF,g2=gq,g5=gz,g4=gH;var g3=gK,g8=gV,g9=gB;var g6=require("lucide-react");var g7=require("react/jsx-runtime"),he=gG,ht=g$,hn=gY,hr=g3,ho=g1,ha=gc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,g7.jsx)(gU,p({ref:t,className:tS("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",n)},o))});ha.displayName=gU.displayName;var hi=gc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,g7.jsx)(gX,p({ref:t,className:tS("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n)},o))});hi.displayName=gX.displayName;var hu=gc.forwardRef(function(e,t){var n=e.className,o=e.inset,a=e.children,i=h(e,["className","inset","children"]);return(0,g7.jsxs)(g8,g(p({ref:t,className:tS("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",n)},i),{children:[a,(0,g7.jsx)(g6.ChevronRight,{className:"ml-auto h-4 w-4"})]}))});hu.displayName=g8.displayName;var hc=gc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,g7.jsx)(g9,p({ref:t,className:tS("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o))});hc.displayName=g9.displayName;var hl=gc.forwardRef(function(e,t){var n=e.className,o=e.align,a=o===void 0?"start":o,i=e.alignOffset,u=i===void 0?-4:i,c=e.sideOffset,l=c===void 0?8:c,s=h(e,["className","align","alignOffset","sideOffset"]);return(0,g7.jsx)(gY,{children:(0,g7.jsx)(gZ,p({ref:t,align:a,alignOffset:u,sideOffset:l,className:tS("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},s))})});hl.displayName=gZ.displayName;var hs=gc.forwardRef(function(e,t){var n=e.className,o=e.inset,a=h(e,["className","inset"]);return(0,g7.jsx)(gQ,p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",n)},a))});hs.displayName=gQ.displayName;var hd=gc.forwardRef(function(e,t){var n=e.className,o=e.children,a=e.checked,i=h(e,["className","children","checked"]);return(0,g7.jsxs)(g0,g(p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:a},i),{children:[(0,g7.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,g7.jsx)(g5,{children:(0,g7.jsx)(g6.Check,{className:"h-4 w-4"})})}),o]}))});hd.displayName=g0.displayName;var hf=gc.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,g7.jsxs)(g2,g(p({ref:t,className:tS("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},a),{children:[(0,g7.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,g7.jsx)(g5,{children:(0,g7.jsx)(g6.Circle,{className:"h-2 w-2 fill-current"})})}),o]}))});hf.displayName=g2.displayName;var hv=gc.forwardRef(function(e,t){var n=e.className,o=e.inset,a=h(e,["className","inset"]);return(0,g7.jsx)(gJ,p({ref:t,className:tS("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",n)},a))});hv.displayName=gJ.displayName;var hp=gc.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,g7.jsx)(g4,p({ref:t,className:tS("-mx-1 my-1 h-px bg-muted",n)},o))});hp.displayName=g4.displayName;var hm=function(e){var t=e.className,n=h(e,["className"]);return(0,g7.jsx)("span",p({className:tS("ml-auto text-xs tracking-widest text-muted-foreground",t)},n))};hm.displayname="MenubarShortcut";var hg=j(require("react"),1);var hh=require("react"),hb=j(require("react-dom"),1);var hw=require("react");var hy=(0,hw.forwardRef)(function(e,t){return(0,hw.createElement)(ev.span,q({},e,{ref:t,style:p({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)}))}),hx=hy;var hE="NavigationMenu",hC=w(er(hE),3),hN=hC[0],h_=hC[1],hR=hC[2],hS=w(er(hE),3),hD=hS[0],hT=hS[1],hP=hS[2],hM=w(V(hE,[hR,hP]),2),hk=hM[0],hO=hM[1],hA=w(hk(hE),2),hj=hA[0],hI=hA[1],hL=w(hk(hE),2),hF=hL[0],hq=hL[1],hz=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=e.value,a=e.onValueChange,i=e.defaultValue,u=e.delayDuration,c=u===void 0?200:u,l=e.skipDelayDuration,s=l===void 0?300:l,d=e.orientation,f=d===void 0?"horizontal":d,v=e.dir,p=h(e,["__scopeNavigationMenu","value","onValueChange","defaultValue","delayDuration","skipDelayDuration","orientation","dir"]),m=w((0,hh.useState)(null),2),g=m[0],b=m[1],y=Y(t,function(e){return b(e)}),x=eG(v),E=(0,hh.useRef)(0),C=(0,hh.useRef)(0),N=(0,hh.useRef)(0),_=w((0,hh.useState)(!0),2),R=_[0],S=_[1],D=w(ec({prop:o,onChange:function(e){var t=e!=="",n=s>0;t?(window.clearTimeout(N.current),n&&S(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(function(){return S(!0)},s)),a===null||a===void 0?void 0:a(e)},defaultProp:i}),2),T=D[0],P=T===void 0?"":T,M=D[1],k=(0,hh.useCallback)(function(){window.clearTimeout(C.current),C.current=window.setTimeout(function(){return M("")},150)},[M]),O=(0,hh.useCallback)(function(e){window.clearTimeout(C.current),M(e)},[M]),A=(0,hh.useCallback)(function(e){P===e?window.clearTimeout(C.current):E.current=window.setTimeout(function(){window.clearTimeout(C.current),M(e)},c)},[P,M,c]);return(0,hh.useEffect)(function(){return function(){window.clearTimeout(E.current),window.clearTimeout(C.current),window.clearTimeout(N.current)}},[]),(0,hh.createElement)(hH,{scope:n,isRootMenu:!0,value:P,dir:x,orientation:f,rootNavigationMenu:g,onTriggerEnter:function(e){window.clearTimeout(E.current),R?A(e):O(e)},onTriggerLeave:function(){window.clearTimeout(E.current),k()},onContentEnter:function(){return window.clearTimeout(C.current)},onContentLeave:k,onItemSelect:function(e){M(function(t){return t===e?"":e})},onItemDismiss:function(){return M("")}},(0,hh.createElement)(ev.nav,q({"aria-label":"Main","data-orientation":f,dir:x},p,{ref:y})))});var hH=function(e){var t=e.scope,n=e.isRootMenu,o=e.rootNavigationMenu,a=e.dir,i=e.orientation,u=e.children,c=e.value,l=e.onItemSelect,s=e.onItemDismiss,d=e.onTriggerEnter,f=e.onTriggerLeave,v=e.onContentEnter,p=e.onContentLeave,m=w((0,hh.useState)(null),2),g=m[0],h=m[1],b=w((0,hh.useState)(new Map),2),y=b[0],x=b[1],E=w((0,hh.useState)(null),2),C=E[0],N=E[1];return(0,hh.createElement)(hj,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:c,previousValue:iu(c),baseId:eS(),dir:a,orientation:i,viewport:g,onViewportChange:h,indicatorTrack:C,onIndicatorTrackChange:N,onTriggerEnter:eu(d),onTriggerLeave:eu(f),onContentEnter:eu(v),onContentLeave:eu(p),onItemSelect:eu(l),onItemDismiss:eu(s),onViewportContentChange:(0,hh.useCallback)(function(e,t){x(function(n){return n.set(e,t),new Map(n)})},[]),onViewportContentRemove:(0,hh.useCallback)(function(e){x(function(t){return t.has(e)?(t.delete(e),new Map(t)):t})},[])},(0,hh.createElement)(hN.Provider,{scope:t},(0,hh.createElement)(hF,{scope:t,items:y},u)))},hK="NavigationMenuList",hV=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=h(e,["__scopeNavigationMenu"]),a=hI(hK,n),i=(0,hh.createElement)(ev.ul,q({"data-orientation":a.orientation},o,{ref:t}));return(0,hh.createElement)(ev.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange},(0,hh.createElement)(hN.Slot,{scope:n},a.isRootMenu?(0,hh.createElement)(bt,{asChild:!0},i):i))}),hB="NavigationMenuItem",hW=w(hk(hB),2),hU=hW[0],hG=hW[1],hX=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=e.value,a=h(e,["__scopeNavigationMenu","value"]),i=eS(),u=o||i||"LEGACY_REACT_AUTO_VALUE",c=(0,hh.useRef)(null),l=(0,hh.useRef)(null),s=(0,hh.useRef)(null),d=(0,hh.useRef)(function(){}),f=(0,hh.useRef)(!1),v=(0,hh.useCallback)(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"start";if(c.current){d.current();var t=ba(c.current);t.length&&bi(e==="start"?t:t.reverse())}},[]),p=(0,hh.useCallback)(function(){if(c.current){var e=ba(c.current);e.length&&(d.current=bu(e))}},[]);return(0,hh.createElement)(hU,{scope:n,value:u,triggerRef:l,contentRef:c,focusProxyRef:s,wasEscapeCloseRef:f,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:p,onContentFocusOutside:p},(0,hh.createElement)(ev.li,q({},a,{ref:t})))}),hY="NavigationMenuTrigger",hZ=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=e.disabled,a=h(e,["__scopeNavigationMenu","disabled"]),i=hI(hY,e.__scopeNavigationMenu),u=hG(hY,e.__scopeNavigationMenu),c=(0,hh.useRef)(null),l=Y(c,u.triggerRef,t),s=bs(i.baseId,u.value),d=bd(i.baseId,u.value),f=(0,hh.useRef)(!1),v=(0,hh.useRef)(!1),p=u.value===i.value;return(0,hh.createElement)(hh.Fragment,null,(0,hh.createElement)(hN.ItemSlot,{scope:n,value:u.value},(0,hh.createElement)(bo,{asChild:!0},(0,hh.createElement)(ev.button,q({id:s,disabled:o,"data-disabled":o?"":void 0,"data-state":bl(p),"aria-expanded":p,"aria-controls":d},a,{ref:l,onPointerEnter:eo(e.onPointerEnter,function(){v.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:eo(e.onPointerMove,bf(function(){o||v.current||u.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(u.value),f.current=!0)})),onPointerLeave:eo(e.onPointerLeave,bf(function(){o||(i.onTriggerLeave(),f.current=!1)})),onClick:eo(e.onClick,function(){i.onItemSelect(u.value),v.current=p}),onKeyDown:eo(e.onKeyDown,function(e){var t={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&e.key===t&&(u.onEntryKeyDown(),e.preventDefault())})})))),p&&(0,hh.createElement)(hh.Fragment,null,(0,hh.createElement)(hx,{"aria-hidden":!0,tabIndex:0,ref:u.focusProxyRef,onFocus:function(e){var t=u.contentRef.current,n=e.relatedTarget,o=n===c.current,a=t===null||t===void 0?void 0:t.contains(n);(o||!a)&&u.onFocusProxyEnter(o?"start":"end")}}),i.viewport&&(0,hh.createElement)("span",{"aria-owns":d})))});var h$="navigationMenu.linkSelect",hJ=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=e.active,a=e.onSelect,i=h(e,["__scopeNavigationMenu","active","onSelect"]);return(0,hh.createElement)(bo,{asChild:!0},(0,hh.createElement)(ev.a,q({"data-active":o?"":void 0,"aria-current":o?"page":void 0},i,{ref:t,onClick:eo(e.onClick,function(e){var t=e.target,n=new CustomEvent(h$,{bubbles:!0,cancelable:!0});if(t.addEventListener(h$,function(e){return a===null||a===void 0?void 0:a(e)},{once:!0}),ep(t,n),!n.defaultPrevented&&!e.metaKey){var o=new CustomEvent(h3,{bubbles:!0,cancelable:!0});ep(t,o)}},{checkForDefaultPrevented:!1})})))}),hQ="NavigationMenuIndicator",h0=(0,hh.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=hI(hQ,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?hb.default.createPortal((0,hh.createElement)(ex,{present:n||i},(0,hh.createElement)(h1,q({},o,{ref:t}))),a.indicatorTrack):null}),h1=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=h(e,["__scopeNavigationMenu"]),a=hI(hQ,n),i=h_(n),u=w((0,hh.useState)(null),2),c=u[0],l=u[1],s=w((0,hh.useState)(null),2),d=s[0],f=s[1],v=a.orientation==="horizontal",m=!!a.value;(0,hh.useEffect)(function(){var e;var t=(e=i().find(function(e){return e.value===a.value}))===null||e===void 0?void 0:e.ref.current;t&&l(t)},[i,a.value]);var g=function(){c&&f({size:v?c.offsetWidth:c.offsetHeight,offset:v?c.offsetLeft:c.offsetTop})};return bc(c,g),bc(a.indicatorTrack,g),d?(0,hh.createElement)(ev.div,q({"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":a.orientation},o,{ref:t,style:p({position:"absolute"},v?{left:0,width:d.size+"px",transform:"translateX(".concat(d.offset,"px)")}:{top:0,height:d.size+"px",transform:"translateY(".concat(d.offset,"px)")},o.style)})):null}),h2="NavigationMenuContent",h5=(0,hh.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=hI(h2,e.__scopeNavigationMenu),i=hG(h2,e.__scopeNavigationMenu),u=Y(i.contentRef,t),c=i.value===a.value,l=p({value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose},o);return a.viewport?(0,hh.createElement)(h4,q({forceMount:n},l,{ref:u})):(0,hh.createElement)(ex,{present:n||c},(0,hh.createElement)(h8,q({"data-state":bl(c)},l,{ref:u,onPointerEnter:eo(e.onPointerEnter,a.onContentEnter),onPointerLeave:eo(e.onPointerLeave,bf(a.onContentLeave)),style:p({pointerEvents:!c&&a.isRootMenu?"none":void 0},l.style)})))}),h4=(0,hh.forwardRef)(function(e,t){var n=hI(h2,e.__scopeNavigationMenu),o=n.onViewportContentChange,a=n.onViewportContentRemove;return eh(function(){o(e.value,p({ref:t},e))},[e,t,o]),eh(function(){return function(){return a(e.value)}},[e.value,a]),null}),h3="navigationMenu.rootContentDismiss",h8=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=e.value,a=e.triggerRef,i=e.focusProxyRef,u=e.wasEscapeCloseRef,c=e.onRootContentClose,l=e.onContentFocusOutside,s=h(e,["__scopeNavigationMenu","value","triggerRef","focusProxyRef","wasEscapeCloseRef","onRootContentClose","onContentFocusOutside"]),d=hI(h2,n),f=(0,hh.useRef)(null),v=Y(f,t),p=bs(d.baseId,o),m=bd(d.baseId,o),g=h_(n),b=(0,hh.useRef)(null),w=d.onItemDismiss;(0,hh.useEffect)(function(){var e=f.current;if(d.isRootMenu&&e){var t=function(){var t;w(),c(),e.contains(document.activeElement)&&((t=a.current)===null||t===void 0||t.focus())};return e.addEventListener(h3,t),function(){return e.removeEventListener(h3,t)}}},[d.isRootMenu,e.value,a,w,c]);var y=(0,hh.useMemo)(function(){var e=g().map(function(e){return e.value});d.dir==="rtl"&&e.reverse();var t=e.indexOf(d.value),n=e.indexOf(d.previousValue),a=o===d.value,i=n===e.indexOf(o);if(!a&&!i)return b.current;var u=function(){if(t!==n){if(a&&n!==-1)return t>n?"from-end":"from-start";if(i&&t!==-1)return t>n?"to-start":"to-end"}return null}();return b.current=u,u},[d.previousValue,d.value,d.dir,g,o]);return(0,hh.createElement)(bt,{asChild:!0},(0,hh.createElement)(tB,q({id:m,"aria-labelledby":p,"data-motion":y,"data-orientation":d.orientation},s,{ref:v,onDismiss:function(){var e;var t=new Event(h3,{bubbles:!0,cancelable:!0});(e=f.current)===null||e===void 0||e.dispatchEvent(t)},onFocusOutside:eo(e.onFocusOutside,function(e){var t;l();var n=e.target;(t=d.rootNavigationMenu)!==null&&t!==void 0&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:eo(e.onPointerDownOutside,function(e){var t;var n=e.target,o=g().some(function(e){var t;return(t=e.ref.current)===null||t===void 0?void 0:t.contains(n)}),a=d.isRootMenu&&((t=d.viewport)===null||t===void 0?void 0:t.contains(n));(o||a||!d.isRootMenu)&&e.preventDefault()}),onKeyDown:eo(e.onKeyDown,function(e){var t=e.altKey||e.ctrlKey||e.metaKey;if(e.key==="Tab"&&!t){var n=ba(e.currentTarget),o=document.activeElement,a=n.findIndex(function(e){return e===o}),u=e.shiftKey?n.slice(0,a).reverse():n.slice(a+1,n.length);if(bi(u))e.preventDefault();else{var c;(c=i.current)===null||c===void 0||c.focus()}}}),onEscapeKeyDown:eo(e.onEscapeKeyDown,function(e){u.current=!0})})))}),h9="NavigationMenuViewport",h6=(0,hh.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=!!hI(h9,e.__scopeNavigationMenu).value;return(0,hh.createElement)(ex,{present:n||a},(0,hh.createElement)(h7,q({},o,{ref:t})))}),h7=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=e.children,a=h(e,["__scopeNavigationMenu","children"]),i=hI(h9,n),u=Y(t,i.onViewportChange),c=hq(h2,e.__scopeNavigationMenu),l=w((0,hh.useState)(null),2),s=l[0],d=l[1],f=w((0,hh.useState)(null),2),v=f[0],m=f[1],g=s?(s===null||s===void 0?void 0:s.width)+"px":void 0,b=s?(s===null||s===void 0?void 0:s.height)+"px":void 0,y=!!i.value,x=y?i.value:i.previousValue;return bc(v,function(){v&&d({width:v.offsetWidth,height:v.offsetHeight})}),(0,hh.createElement)(ev.div,q({"data-state":bl(y),"data-orientation":i.orientation},a,{ref:u,style:p({pointerEvents:!y&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":b},a.style),onPointerEnter:eo(e.onPointerEnter,i.onContentEnter),onPointerLeave:eo(e.onPointerLeave,bf(i.onContentLeave))}),Array.from(c.items).map(function(e){var t=w(e,2),n=t[0],o=t[1],a=o.ref,i=o.forceMount,u=h(e[1],["ref","forceMount"]);var c=x===n;return(0,hh.createElement)(ex,{key:n,present:i||c},(0,hh.createElement)(h8,q({},u,{ref:X(a,function(e){c&&e&&m(e)})})))}))}),be="FocusGroup",bt=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=h(e,["__scopeNavigationMenu"]),a=hI(be,n);return(0,hh.createElement)(hD.Provider,{scope:n},(0,hh.createElement)(hD.Slot,{scope:n},(0,hh.createElement)(ev.div,q({dir:a.dir},o,{ref:t}))))}),bn=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],br="FocusGroupItem",bo=(0,hh.forwardRef)(function(e,t){var n=e.__scopeNavigationMenu,o=h(e,["__scopeNavigationMenu"]),a=hT(n),i=hI(br,n);return(0,hh.createElement)(hD.ItemSlot,{scope:n},(0,hh.createElement)(ev.button,q({},o,{ref:t,onKeyDown:eo(e.onKeyDown,function(e){if(["Home","End"].concat(x(bn)).includes(e.key)){var t=a().map(function(e){return e.ref.current});if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),bn.includes(e.key)){var n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(function(){return bi(t)}),e.preventDefault()}})})))});function ba(e){var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t=e.tagName==="INPUT"&&e.type==="hidden";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 bi(e){var t=document.activeElement;return e.some(function(e){return e===t?!0:(e.focus(),document.activeElement!==t)})}function bu(e){return e.forEach(function(e){e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),function(){e.forEach(function(e){var t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function bc(e,t){var n=eu(t);eh(function(){var t=0;if(e){var o=new ResizeObserver(function(){cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return o.observe(e),function(){window.cancelAnimationFrame(t),o.unobserve(e)}}},[e,n])}function bl(e){return e?"open":"closed"}function bs(e,t){return"".concat(e,"-trigger-").concat(t)}function bd(e,t){return"".concat(e,"-content-").concat(t)}function bf(e){return function(t){return t.pointerType==="mouse"?e(t):void 0}}var bv=hz;var bp=hV,bm=hX,bg=hZ,bh=hJ,bb=h0,bw=h5,by=h6;var bx=require("class-variance-authority"),bE=require("lucide-react");var bC=require("react/jsx-runtime"),bN=hg.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,bC.jsxs)(bv,g(p({ref:t,className:tS("relative z-10 flex max-w-max flex-1 items-center justify-center",n)},a),{children:[o,(0,bC.jsx)(bM,{})]}))});bN.displayName=bv.displayName;var b_=hg.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,bC.jsx)(bp,p({ref:t,className:tS("group flex flex-1 list-none items-center justify-center space-x-1",n)},o))});b_.displayName=bp.displayName;var bR=bm,bS=(0,bx.cva)("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),bD=hg.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,bC.jsxs)(bg,g(p({ref:t,className:tS(bS(),"group",n)},a),{children:[o," ",(0,bC.jsx)(bE.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}))});bD.displayName=bg.displayName;var bT=hg.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,bC.jsx)(bw,p({ref:t,className:tS("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",n)},o))});bT.displayName=bw.displayName;var bP=bh,bM=hg.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,bC.jsx)("div",{className:tS("absolute left-0 top-full flex justify-center"),children:(0,bC.jsx)(by,p({className:tS("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",n),ref:t},o))})});bM.displayName=by.displayName;var bk=hg.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,bC.jsx)(bb,g(p({ref:t,className:tS("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",n)},o),{children:(0,bC.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}))});bk.displayName=bb.displayName;var bO=j(require("react"),1),bA=require("lucide-react");var bj=require("react/jsx-runtime"),bI=function(e){var t=e.className,n=h(e,["className"]);return(0,bj.jsx)("nav",p({role:"navigation","aria-label":"pagination",className:tS("mx-auto flex w-full justify-center",t)},n))};bI.displayName="Pagination";var bL=bO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,bj.jsx)("ul",p({ref:t,className:tS("flex flex-row items-center gap-1",n)},o))});bL.displayName="PaginationContent";var bF=bO.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,bj.jsx)("li",p({ref:t,className:tS("",n)},o))});bF.displayName="PaginationItem";var bq=function(e){var t=e.className,n=e.isActive,o=e.size,a=o===void 0?"icon":o,i=h(e,["className","isActive","size"]);return(0,bj.jsx)("a",p({"aria-current":n?"page":void 0,className:tS(oA({variant:n?"outline":"ghost",size:a}),t)},i))};bq.displayName="PaginationLink";var bz=function(e){var t=e.className,n=h(e,["className"]);return(0,bj.jsxs)(bq,g(p({"aria-label":"Go to previous page",size:"default",className:tS("gap-1 pl-2.5",t)},n),{children:[(0,bj.jsx)(bA.ChevronLeft,{className:"h-4 w-4"}),(0,bj.jsx)("span",{children:"Previous"})]}))};bz.displayName="PaginationPrevious";var bH=function(e){var t=e.className,n=h(e,["className"]);return(0,bj.jsxs)(bq,g(p({"aria-label":"Go to next page",size:"default",className:tS("gap-1 pr-2.5",t)},n),{children:[(0,bj.jsx)("span",{children:"Next"}),(0,bj.jsx)(bA.ChevronRight,{className:"h-4 w-4"})]}))};bH.displayName="PaginationNext";var bK=function(e){var t=e.className,n=h(e,["className"]);return(0,bj.jsxs)("span",g(p({"aria-hidden":!0,className:tS("flex h-9 w-9 items-center justify-center",t)},n),{children:[(0,bj.jsx)(bA.MoreHorizontal,{className:"h-4 w-4"}),(0,bj.jsx)("span",{className:"sr-only",children:"More pages"})]}))};bK.displayName="PaginationEllipsis";var bV=j(require("react"),1);var bB=require("react");var bW="Popover",bU=w(V(bW,[de]),2),bG=bU[0],bX=bU[1],bY=de(),bZ=w(bG(bW),2),b$=bZ[0],bJ=bZ[1],bQ=function(e){var t=e.__scopePopover,n=e.children,o=e.open,a=e.defaultOpen,i=e.onOpenChange,u=e.modal,c=u===void 0?!1:u,l=bY(t),s=(0,bB.useRef)(null),d=w((0,bB.useState)(!1),2),f=d[0],v=d[1],p=w(ec({prop:o,defaultProp:a,onChange:i}),2),m=p[0],g=m===void 0?!1:m,h=p[1];return(0,bB.createElement)(dg,l,(0,bB.createElement)(b$,{scope:t,contentId:eS(),triggerRef:s,open:g,onOpenChange:h,onOpenToggle:(0,bB.useCallback)(function(){return h(function(e){return!e})},[h]),hasCustomAnchor:f,onCustomAnchorAdd:(0,bB.useCallback)(function(){return v(!0)},[]),onCustomAnchorRemove:(0,bB.useCallback)(function(){return v(!1)},[]),modal:c},n))};var b0="PopoverTrigger",b1=(0,bB.forwardRef)(function(e,t){var n=e.__scopePopover,o=h(e,["__scopePopover"]),a=bJ(b0,n),i=bY(n),u=Y(t,a.triggerRef),c=(0,bB.createElement)(ev.button,q({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":wn(a.open)},o,{ref:u,onClick:eo(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:(0,bB.createElement)(dh,q({asChild:!0},i),c)}),b2="PopoverPortal",b5=w(bG(b2,{forceMount:void 0}),2),b4=b5[0],b3=b5[1],b8=function(e){var t=e.__scopePopover,n=e.forceMount,o=e.children,a=e.container,i=bJ(b2,t);return(0,bB.createElement)(b4,{scope:t,forceMount:n},(0,bB.createElement)(ex,{present:n||i.open},(0,bB.createElement)(ni,{asChild:!0,container:a},o)))},b9="PopoverContent",b6=(0,bB.forwardRef)(function(e,t){var n=b3(b9,e.__scopePopover),o=e.forceMount,a=o===void 0?n.forceMount:o,i=h(e,["forceMount"]),u=bJ(b9,e.__scopePopover);return(0,bB.createElement)(ex,{present:a||u.open},u.modal?(0,bB.createElement)(b7,q({},i,{ref:t})):(0,bB.createElement)(we,q({},i,{ref:t})))}),b7=(0,bB.forwardRef)(function(e,t){var n=bJ(b9,e.__scopePopover),o=(0,bB.useRef)(null),a=Y(t,o),i=(0,bB.useRef)(!1);return(0,bB.useEffect)(function(){var e=o.current;if(e)return rC(e)},[]),(0,bB.createElement)(rp,{as:J,allowPinchZoom:!0},(0,bB.createElement)(wt,q({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:eo(e.onCloseAutoFocus,function(e){var t;e.preventDefault(),i.current||(t=n.triggerRef.current)===null||t===void 0||t.focus()}),onPointerDownOutside:eo(e.onPointerDownOutside,function(e){var t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,o=t.button===2||n;i.current=o},{checkForDefaultPrevented:!1}),onFocusOutside:eo(e.onFocusOutside,function(e){return e.preventDefault()},{checkForDefaultPrevented:!1})})))}),we=(0,bB.forwardRef)(function(e,t){var n=bJ(b9,e.__scopePopover),o=(0,bB.useRef)(!1),a=(0,bB.useRef)(!1);return(0,bB.createElement)(wt,q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,t),!t.defaultPrevented){var u;o.current||(u=n.triggerRef.current)===null||u===void 0||u.focus(),t.preventDefault()}o.current=!1,a.current=!1},onInteractOutside:function(t){var i,u;(i=e.onInteractOutside)===null||i===void 0||i.call(e,t),t.defaultPrevented||(o.current=!0,t.detail.originalEvent.type==="pointerdown"&&(a.current=!0));var c=t.target;((u=n.triggerRef.current)===null||u===void 0?void 0:u.contains(c))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&a.current&&t.preventDefault()}}))}),wt=(0,bB.forwardRef)(function(e,t){var n=e.__scopePopover,o=e.trapFocus,a=e.onOpenAutoFocus,i=e.onCloseAutoFocus,u=e.disableOutsidePointerEvents,c=e.onEscapeKeyDown,l=e.onPointerDownOutside,s=e.onFocusOutside,d=e.onInteractOutside,f=h(e,["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]),v=bJ(b9,n),m=bY(n);return nl(),(0,bB.createElement)(t2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i},(0,bB.createElement)(tB,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:s,onDismiss:function(){return v.onOpenChange(!1)}},(0,bB.createElement)(db,q({"data-state":wn(v.open),role:"dialog",id:v.contentId},m,f,{ref:t,style:g(p({},f.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))))});function wn(e){return e?"open":"closed"}var wr=bQ;var wo=b1,wa=b8,wi=b6;var wu=require("react/jsx-runtime"),wc=wr,wl=wo,ws=bV.forwardRef(function(e,t){var n=e.className,o=e.align,a=o===void 0?"center":o,i=e.sideOffset,u=i===void 0?4:i,c=h(e,["className","align","sideOffset"]);return(0,wu.jsx)(wa,{children:(0,wu.jsx)(wi,p({ref:t,align:a,sideOffset:u,className:tS("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},c))})});ws.displayName=wi.displayName;var wd=j(require("react"),1);var wf=require("react");var wv="Progress",wp=100,wm=w(V(wv),2),wg=wm[0],wh=wm[1],wb=w(wg(wv),2),ww=wb[0],wy=wb[1],wx=(0,wf.forwardRef)(function(e,t){var n=e.__scopeProgress,o=e.value,a=e.max,i=e.getValueLabel,u=i===void 0?wN:i,c=h(e,["__scopeProgress","value","max","getValueLabel"]),l=wS(a)?a:wp,s=wD(o,l)?o:null,d=wR(s)?u(s,l):void 0;return(0,wf.createElement)(ww,{scope:n,value:s,max:l},(0,wf.createElement)(ev.div,q({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":wR(s)?s:void 0,"aria-valuetext":d,role:"progressbar","data-state":w_(s,l),"data-value":s!==null&&s!==void 0?s:void 0,"data-max":l},c,{ref:t})))});wx.propTypes={max:function e(e,t,n){var o=e[t],a=String(o);return o&&!wS(o)?new Error(wT(a,n)):null},value:function e(e,t,n){var o=e[t],a=String(o),i=wS(e.max)?e.max:wp;return o!=null&&!wD(o,i)?new Error(wP(a,n)):null}};var wE="ProgressIndicator",wC=(0,wf.forwardRef)(function(e,t){var n;var o=e.__scopeProgress,a=h(e,["__scopeProgress"]),i=wy(wE,o);return(0,wf.createElement)(ev.div,q({"data-state":w_(i.value,i.max),"data-value":(n=i.value)!==null&&n!==void 0?n:void 0,"data-max":i.max},a,{ref:t}))});function wN(e,t){return"".concat(Math.round(e/t*100),"%")}function w_(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function wR(e){return typeof e=="number"}function wS(e){return wR(e)&&!isNaN(e)&&e>0}function wD(e,t){return wR(e)&&!isNaN(e)&&e<=t&&e>=0}function wT(e,t){return"Invalid prop `max` of value `".concat(e,"` supplied to `").concat(t,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(wp,"`.")}function wP(e,t){return"Invalid prop `value` of value `".concat(e,"` supplied to `").concat(t,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(wp," if no `max` prop is set)\n - `null` if the progress is indeterminate.\n\nDefaulting to `null`.")}var wM=wx,wk=wC;var wO=require("react/jsx-runtime"),wA=wd.forwardRef(function(e,t){var n=e.className,o=e.value,a=h(e,["className","value"]);return(0,wO.jsx)(wM,g(p({ref:t,className:tS("relative h-4 w-full overflow-hidden rounded-full bg-secondary",n)},a),{children:(0,wO.jsx)(wk,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(o||0),"%)")}})}))});wA.displayName=wM.displayName;var wj=j(require("react"),1);var wI=require("react");var wL="Radio",wF=w(V(wL),2),wq=wF[0],wz=wF[1],wH=w(wq(wL),2),wK=wH[0],wV=wH[1],wB=(0,wI.forwardRef)(function(e,t){var n=e.__scopeRadio,o=e.name,a=e.checked,i=a===void 0?!1:a,u=e.required,c=e.disabled,l=e.value,s=l===void 0?"on":l,d=e.onCheck,f=h(e,["__scopeRadio","name","checked","required","disabled","value","onCheck"]),v=w((0,wI.useState)(null),2),p=v[0],m=v[1],g=Y(t,function(e){return m(e)}),b=(0,wI.useRef)(!1),y=p?!!p.closest("form"):!0;return(0,wI.createElement)(wK,{scope:n,checked:i,disabled:c},(0,wI.createElement)(ev.button,q({type:"button",role:"radio","aria-checked":i,"data-state":wX(i),"data-disabled":c?"":void 0,disabled:c,value:s},f,{ref:g,onClick:eo(e.onClick,function(e){i||(d===null||d===void 0?void 0:d()),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,wI.createElement)(wG,{control:p,bubbles:!b.current,name:o,value:s,checked:i,required:u,disabled:c,style:{transform:"translateX(-100%)"}}))}),wW="RadioIndicator",wU=(0,wI.forwardRef)(function(e,t){var n=e.__scopeRadio,o=e.forceMount,a=h(e,["__scopeRadio","forceMount"]),i=wV(wW,n);return(0,wI.createElement)(ex,{present:o||i.checked},(0,wI.createElement)(ev.span,q({"data-state":wX(i.checked),"data-disabled":i.disabled?"":void 0},a,{ref:t})))}),wG=function(e){var t=e.control,n=e.checked,o=e.bubbles,a=o===void 0?!0:o,i=h(e,["control","checked","bubbles"]),u=(0,wI.useRef)(null),c=iu(n),l=il(t);return(0,wI.useEffect)(function(){var e=u.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&o){var i=new Event("click",{bubbles:a});o.call(e,n),e.dispatchEvent(i)}},[c,n,a]),(0,wI.createElement)("input",q({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:u,style:g(p({},e.style,l),{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function wX(e){return e?"checked":"unchecked"}var wY=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wZ="RadioGroup",w$=w(V(wZ,[dT,wz]),2),wJ=w$[0],wQ=w$[1],w0=dT(),w1=wz(),w2=w(wJ(wZ),2),w5=w2[0],w4=w2[1],w3=(0,wI.forwardRef)(function(e,t){var n=e.__scopeRadioGroup,o=e.name,a=e.defaultValue,i=e.value,u=e.required,c=u===void 0?!1:u,l=e.disabled,s=l===void 0?!1:l,d=e.orientation,f=e.dir,v=e.loop,p=v===void 0?!0:v,m=e.onValueChange,g=h(e,["__scopeRadioGroup","name","defaultValue","value","required","disabled","orientation","dir","loop","onValueChange"]),b=w0(n),y=eG(f),x=w(ec({prop:i,defaultProp:a,onChange:m}),2),E=x[0],C=x[1];return(0,wI.createElement)(w5,{scope:n,name:o,required:c,disabled:s,value:E,onValueChange:C},(0,wI.createElement)(dK,q({asChild:!0},b,{orientation:d,dir:y,loop:p}),(0,wI.createElement)(ev.div,q({role:"radiogroup","aria-required":c,"aria-orientation":d,"data-disabled":s?"":void 0,dir:y},g,{ref:t}))))}),w8="RadioGroupItem",w9=(0,wI.forwardRef)(function(e,t){var n=e.__scopeRadioGroup,o=e.disabled,a=h(e,["__scopeRadioGroup","disabled"]),i=w4(w8,n),u=i.disabled||o,c=w0(n),l=w1(n),s=(0,wI.useRef)(null),d=Y(t,s),f=i.value===a.value,v=(0,wI.useRef)(!1);return(0,wI.useEffect)(function(){var e=function(e){wY.includes(e.key)&&(v.current=!0)},t=function(){return v.current=!1};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),function(){document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,wI.createElement)(dV,q({asChild:!0},c,{focusable:!u,active:f}),(0,wI.createElement)(wB,q({disabled:u,required:i.required,checked:f},l,a,{name:i.name,ref:d,onCheck:function(){return i.onValueChange(a.value)},onKeyDown:eo(function(e){e.key==="Enter"&&e.preventDefault()}),onFocus:eo(a.onFocus,function(){var e;v.current&&((e=s.current)===null||e===void 0||e.click())})})))});var w6=(0,wI.forwardRef)(function(e,t){var n=e.__scopeRadioGroup,o=h(e,["__scopeRadioGroup"]),a=w1(n);return(0,wI.createElement)(wU,q({},a,o,{ref:t}))}),w7=w3,ye=w9,yt=w6;var yn=require("lucide-react");var yr=require("react/jsx-runtime"),yo=wj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,yr.jsx)(w7,g(p({className:tS("grid gap-2",n)},o),{ref:t}))});yo.displayName=w7.displayName;var ya=wj.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,yr.jsx)(ye,g(p({ref:t,className:tS("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n)},o),{children:(0,yr.jsx)(yt,{className:"flex items-center justify-center",children:(0,yr.jsx)(yn.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}))});ya.displayName=ye.displayName;var yi=require("lucide-react"),yu=j(require("react-resizable-panels"),1);var yc=require("react/jsx-runtime"),yl=function(e){var t=e.className,n=h(e,["className"]);return(0,yc.jsx)(yu.PanelGroup,p({className:tS("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t)},n))},ys=yu.Panel,yd=function(e){var t=e.withHandle,n=e.className,o=h(e,["withHandle","className"]);return(0,yc.jsx)(yu.PanelResizeHandle,g(p({className:tS("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n)},o),{children:t&&(0,yc.jsx)("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:(0,yc.jsx)(yi.GripVertical,{className:"h-2.5 w-2.5"})})}))};var yf=j(require("react"),1);var yv=require("react");function yp(e,t){var n=w(t,2),o=n[0],a=n[1];return Math.min(a,Math.max(o,e))}function ym(e,t){return(0,yv.useReducer)(function(e,n){var o=t[e][n];return o!==null&&o!==void 0?o:e},e)}var yg="ScrollArea",yh=w(V(yg),2),yb=yh[0],yw=yh[1],yy=w(yb(yg),2),yx=yy[0],yE=yy[1],yC=(0,yv.forwardRef)(function(e,t){var n=e.__scopeScrollArea,o=e.type,a=o===void 0?"hover":o,i=e.dir,u=e.scrollHideDelay,c=u===void 0?600:u,l=h(e,["__scopeScrollArea","type","dir","scrollHideDelay"]),s=w((0,yv.useState)(null),2),d=s[0],f=s[1],v=w((0,yv.useState)(null),2),m=v[0],g=v[1],b=w((0,yv.useState)(null),2),y=b[0],x=b[1],E=w((0,yv.useState)(null),2),C=E[0],N=E[1],_=w((0,yv.useState)(null),2),R=_[0],S=_[1],D=w((0,yv.useState)(0),2),T=D[0],P=D[1],M=w((0,yv.useState)(0),2),k=M[0],O=M[1],A=w((0,yv.useState)(!1),2),j=A[0],I=A[1],L=w((0,yv.useState)(!1),2),F=L[0],z=L[1],H=Y(t,function(e){return f(e)}),K=eG(i);return(0,yv.createElement)(yx,{scope:n,type:a,dir:K,scrollHideDelay:c,scrollArea:d,viewport:m,onViewportChange:g,content:y,onContentChange:x,scrollbarX:C,onScrollbarXChange:N,scrollbarXEnabled:j,onScrollbarXEnabledChange:I,scrollbarY:R,onScrollbarYChange:S,scrollbarYEnabled:F,onScrollbarYEnabledChange:z,onCornerWidthChange:P,onCornerHeightChange:O},(0,yv.createElement)(ev.div,q({dir:K},l,{ref:H,style:p({position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":k+"px"},e.style)})))}),yN="ScrollAreaViewport",y_=(0,yv.forwardRef)(function(e,t){var n=e.__scopeScrollArea,o=e.children,a=h(e,["__scopeScrollArea","children"]),i=yE(yN,n),u=(0,yv.useRef)(null),c=Y(t,u,i.onViewportChange);return(0,yv.createElement)(yv.Fragment,null,(0,yv.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,yv.createElement)(ev.div,q({"data-radix-scroll-area-viewport":""},a,{ref:c,style:p({overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden"},e.style)}),(0,yv.createElement)("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},o)))}),yR="ScrollAreaScrollbar",yS=(0,yv.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=yE(yR,e.__scopeScrollArea),i=a.onScrollbarXEnabledChange,u=a.onScrollbarYEnabledChange,c=e.orientation==="horizontal";return(0,yv.useEffect)(function(){return c?i(!0):u(!0),function(){c?i(!1):u(!1)}},[c,i,u]),a.type==="hover"?(0,yv.createElement)(yD,q({},o,{ref:t,forceMount:n})):a.type==="scroll"?(0,yv.createElement)(yT,q({},o,{ref:t,forceMount:n})):a.type==="auto"?(0,yv.createElement)(yP,q({},o,{ref:t,forceMount:n})):a.type==="always"?(0,yv.createElement)(yM,q({},o,{ref:t})):null}),yD=(0,yv.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=yE(yR,e.__scopeScrollArea),i=w((0,yv.useState)(!1),2),u=i[0],c=i[1];return(0,yv.useEffect)(function(){var e=a.scrollArea,t=0;if(e){var n=function(){window.clearTimeout(t),c(!0)},o=function(){t=window.setTimeout(function(){return c(!1)},a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),function(){window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},[a.scrollArea,a.scrollHideDelay]),(0,yv.createElement)(ex,{present:n||u},(0,yv.createElement)(yP,q({"data-state":u?"visible":"hidden"},o,{ref:t})))}),yT=(0,yv.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=yE(yR,e.__scopeScrollArea),i=e.orientation==="horizontal",u=yJ(function(){return s("SCROLL_END")},100),c=w(ym("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),2),l=c[0],s=c[1];return(0,yv.useEffect)(function(){if(l==="idle"){var e=window.setTimeout(function(){return s("HIDE")},a.scrollHideDelay);return function(){return window.clearTimeout(e)}}},[l,a.scrollHideDelay,s]),(0,yv.useEffect)(function(){var e=a.viewport,t=i?"scrollLeft":"scrollTop";if(e){var n=e[t],o=function(){var o=e[t];n!==o&&(s("SCROLL"),u()),n=o};return e.addEventListener("scroll",o),function(){return e.removeEventListener("scroll",o)}}},[a.viewport,i,s,u]),(0,yv.createElement)(ex,{present:n||l!=="hidden"},(0,yv.createElement)(yM,q({"data-state":l==="hidden"?"hidden":"visible"},o,{ref:t,onPointerEnter:eo(e.onPointerEnter,function(){return s("POINTER_ENTER")}),onPointerLeave:eo(e.onPointerLeave,function(){return s("POINTER_LEAVE")})})))}),yP=(0,yv.forwardRef)(function(e,t){var n=yE(yR,e.__scopeScrollArea),o=e.forceMount,a=h(e,["forceMount"]),i=w((0,yv.useState)(!1),2),u=i[0],c=i[1],l=e.orientation==="horizontal",s=yJ(function(){if(n.viewport){var e=n.viewport.offsetWidth0&&v<1,onThumbChange:function(e){return c.current=e},onThumbPointerUp:function(){return l.current=0},onThumbPointerDown:function(e){return l.current=e}});return a==="horizontal"?(0,yv.createElement)(yk,q({},m,{ref:t,onThumbPositionChange:function(){if(u.viewport&&c.current){var e=u.viewport.scrollLeft,t=yX(e,d,u.dir);c.current.style.transform="translate3d(".concat(t,"px, 0, 0)")}},onWheelScroll:function(e){u.viewport&&(u.viewport.scrollLeft=e)},onDragScroll:function(e){u.viewport&&(u.viewport.scrollLeft=n(e,u.dir))}})):a==="vertical"?(0,yv.createElement)(yO,q({},m,{ref:t,onThumbPositionChange:function(){if(u.viewport&&c.current){var e=u.viewport.scrollTop,t=yX(e,d);c.current.style.transform="translate3d(0, ".concat(t,"px, 0)")}},onWheelScroll:function(e){u.viewport&&(u.viewport.scrollTop=e)},onDragScroll:function(e){u.viewport&&(u.viewport.scrollTop=n(e))}})):null}),yk=(0,yv.forwardRef)(function(e,t){var n=e.sizes,o=e.onSizesChange,a=h(e,["sizes","onSizesChange"]),i=yE(yR,e.__scopeScrollArea),u=w((0,yv.useState)(),2),c=u[0],l=u[1],s=(0,yv.useRef)(null),d=Y(t,s,i.onScrollbarXChange);return(0,yv.useEffect)(function(){s.current&&l(getComputedStyle(s.current))},[s]),(0,yv.createElement)(yL,q({"data-orientation":"horizontal"},a,{ref:d,sizes:n,style:p({bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yU(n)+"px"},e.style),onThumbPointerDown:function(t){return e.onThumbPointerDown(t.x)},onDragScroll:function(t){return e.onDragScroll(t.x)},onWheelScroll:function(t,n){if(i.viewport){var o=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(o),yZ(o,n)&&t.preventDefault()}},onResize:function(){s.current&&i.viewport&&c&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:yB(c.paddingLeft),paddingEnd:yB(c.paddingRight)}})}}))}),yO=(0,yv.forwardRef)(function(e,t){var n=e.sizes,o=e.onSizesChange,a=h(e,["sizes","onSizesChange"]),i=yE(yR,e.__scopeScrollArea),u=w((0,yv.useState)(),2),c=u[0],l=u[1],s=(0,yv.useRef)(null),d=Y(t,s,i.onScrollbarYChange);return(0,yv.useEffect)(function(){s.current&&l(getComputedStyle(s.current))},[s]),(0,yv.createElement)(yL,q({"data-orientation":"vertical"},a,{ref:d,sizes:n,style:p({top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yU(n)+"px"},e.style),onThumbPointerDown:function(t){return e.onThumbPointerDown(t.y)},onDragScroll:function(t){return e.onDragScroll(t.y)},onWheelScroll:function(t,n){if(i.viewport){var o=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(o),yZ(o,n)&&t.preventDefault()}},onResize:function(){s.current&&i.viewport&&c&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:yB(c.paddingTop),paddingEnd:yB(c.paddingBottom)}})}}))}),yA=w(yb(yR),2),yj=yA[0],yI=yA[1],yL=(0,yv.forwardRef)(function(e,t){var n=function e(e){if(C.current){var t=e.clientX-C.current.left,n=e.clientY-C.current.top;d({x:t,y:n})}};var o=e.__scopeScrollArea,a=e.sizes,i=e.hasThumb,u=e.onThumbChange,c=e.onThumbPointerUp,l=e.onThumbPointerDown,s=e.onThumbPositionChange,d=e.onDragScroll,f=e.onWheelScroll,v=e.onResize,m=h(e,["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"]),g=yE(yR,o),b=w((0,yv.useState)(null),2),y=b[0],x=b[1],E=Y(t,function(e){return x(e)}),C=(0,yv.useRef)(null),N=(0,yv.useRef)(""),_=g.viewport,R=a.content-a.viewport,S=eu(f),D=eu(s),T=yJ(v,10);return(0,yv.useEffect)(function(){var e=function(e){var t=e.target;(y===null||y===void 0?void 0:y.contains(t))&&S(e,R)};return document.addEventListener("wheel",e,{passive:!1}),function(){return document.removeEventListener("wheel",e,{passive:!1})}},[_,y,R,S]),(0,yv.useEffect)(D,[a,D]),yQ(y,T),yQ(g.content,T),(0,yv.createElement)(yj,{scope:o,scrollbar:y,hasThumb:i,onThumbChange:eu(u),onThumbPointerUp:eu(c),onThumbPositionChange:D,onThumbPointerDown:eu(l)},(0,yv.createElement)(ev.div,q({},m,{ref:E,style:p({position:"absolute"},m.style),onPointerDown:eo(e.onPointerDown,function(e){e.button===0&&(e.target.setPointerCapture(e.pointerId),C.current=y.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",n(e))}),onPointerMove:eo(e.onPointerMove,n),onPointerUp:eo(e.onPointerUp,function(e){var t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=N.current,C.current=null})})))}),yF="ScrollAreaThumb",yq=(0,yv.forwardRef)(function(e,t){var n=e.forceMount,o=h(e,["forceMount"]),a=yI(yF,e.__scopeScrollArea);return(0,yv.createElement)(ex,{present:n||a.hasThumb},(0,yv.createElement)(yz,q({ref:t},o)))}),yz=(0,yv.forwardRef)(function(e,t){var n=e.__scopeScrollArea,o=e.style,a=h(e,["__scopeScrollArea","style"]),i=yE(yF,n),u=yI(yF,n),c=u.onThumbPositionChange,l=Y(t,function(e){return u.onThumbChange(e)}),s=(0,yv.useRef)(),d=yJ(function(){s.current&&(s.current(),s.current=void 0)},100);return(0,yv.useEffect)(function(){var e=i.viewport;if(e){var t=function(){if(d(),!s.current){var t=y$(e,c);s.current=t,c()}};return c(),e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}},[i.viewport,d,c]),(0,yv.createElement)(ev.div,q({"data-state":u.hasThumb?"visible":"hidden"},a,{ref:l,style:p({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},o),onPointerDownCapture:eo(e.onPointerDownCapture,function(e){var t=e.target.getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top;u.onThumbPointerDown({x:n,y:o})}),onPointerUp:eo(e.onPointerUp,u.onThumbPointerUp)}))}),yH="ScrollAreaCorner",yK=(0,yv.forwardRef)(function(e,t){var n=yE(yH,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?(0,yv.createElement)(yV,q({},e,{ref:t})):null}),yV=(0,yv.forwardRef)(function(e,t){var n=e.__scopeScrollArea,o=h(e,["__scopeScrollArea"]),a=yE(yH,n),i=w((0,yv.useState)(0),2),u=i[0],c=i[1],l=w((0,yv.useState)(0),2),s=l[0],d=l[1],f=!!(u&&s);return yQ(a.scrollbarX,function(){var e;var t=((e=a.scrollbarX)===null||e===void 0?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),d(t)}),yQ(a.scrollbarY,function(){var e;var t=((e=a.scrollbarY)===null||e===void 0?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),c(t)}),f?(0,yv.createElement)(ev.div,q({},o,{ref:t,style:p({width:u,height:s,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0},e.style)})):null});function yB(e){return e?parseInt(e,10):0}function yW(e,t){var n=e/t;return isNaN(n)?0:n}function yU(e){var t=yW(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function yG(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"ltr";var a=yU(n),i=a/2,u=t||i,c=a-u,l=n.scrollbar.paddingStart+u,s=n.scrollbar.size-n.scrollbar.paddingEnd-c,d=n.content-n.viewport,f=o==="ltr"?[0,d]:[d*-1,0];return yY([l,s],f)(e)}function yX(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr";var o=yU(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,u=t.content-t.viewport,c=i-o,l=n==="ltr"?[0,u]:[u*-1,0],s=yp(e,l);return yY([0,u],[0,c])(s)}function yY(e,t){return function(n){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function yZ(e,t){return e>0&&e1&&arguments[1]!==void 0?arguments[1]:function(){};var n={left:e.scrollLeft,top:e.scrollTop},o=0;return function a(){var i={left:e.scrollLeft,top:e.scrollTop},u=n.left!==i.left,c=n.top!==i.top;(u||c)&&t(),n=i,o=window.requestAnimationFrame(a)}(),function(){return window.cancelAnimationFrame(o)}};function yJ(e,t){var n=eu(e),o=(0,yv.useRef)(0);return(0,yv.useEffect)(function(){return function(){return window.clearTimeout(o.current)}},[]),(0,yv.useCallback)(function(){window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function yQ(e,t){var n=eu(t);eh(function(){var t=0;if(e){var o=new ResizeObserver(function(){cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return o.observe(e),function(){window.cancelAnimationFrame(t),o.unobserve(e)}}},[e,n])}var y0=yC,y1=y_;var y2=yK;var y5=require("react/jsx-runtime"),y4=yf.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,y5.jsxs)(y0,g(p({ref:t,className:tS("relative overflow-hidden",n)},a),{children:[(0,y5.jsx)(y1,{className:"h-full w-full rounded-[inherit]",children:o}),(0,y5.jsx)(y3,{}),(0,y5.jsx)(y2,{})]}))});y4.displayName=y0.displayName;var y3=yf.forwardRef(function(e,t){var n=e.className,o=e.orientation,a=o===void 0?"vertical":o,i=h(e,["className","orientation"]);return(0,y5.jsx)(yS,g(p({ref:t,orientation:a,className:tS("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n)},i),{children:(0,y5.jsx)(yq,{className:"relative flex-1 rounded-full bg-border"})}))});y3.displayName=yS.displayName;var y8=j(require("react"),1);var y9=require("react"),y6=require("react-dom");var y7=require("react");var xe="dismissableLayer.update",xt="dismissableLayer.pointerDownOutside",xn="dismissableLayer.focusOutside",xr,xo=(0,y7.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xa=(0,y7.forwardRef)(function(e,t){var n;var o;var a=e.disableOutsidePointerEvents,i=a===void 0?!1:a,u=e.onEscapeKeyDown,c=e.onPointerDownOutside,l=e.onFocusOutside,s=e.onInteractOutside,d=e.onDismiss,f=h(e,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),v=(0,y7.useContext)(xo),m=w((0,y7.useState)(null),2),g=m[0],b=m[1],y=(o=g===null||g===void 0?void 0:g.ownerDocument)!==null&&o!==void 0?o:(n=globalThis)===null||n===void 0?void 0:n.document,E=w((0,y7.useState)({}),2),C=E[1],N=Y(t,function(e){return b(e)}),_=Array.from(v.layers),R=w(x(v.layersWithOutsidePointerEventsDisabled).slice(-1),1),S=R[0],D=_.indexOf(S),T=g?_.indexOf(g):-1,P=v.layersWithOutsidePointerEventsDisabled.size>0,M=T>=D,k=xi(function(e){var t=e.target,n=x(v.branches).some(function(e){return e.contains(t)});!M||n||(c===null||c===void 0?void 0:c(e),s===null||s===void 0?void 0:s(e),e.defaultPrevented||(d===null||d===void 0?void 0:d()))},y),O=xu(function(e){var t=e.target;x(v.branches).some(function(e){return e.contains(t)})||(l===null||l===void 0?void 0:l(e),s===null||s===void 0?void 0:s(e),e.defaultPrevented||(d===null||d===void 0?void 0:d()))},y);return tF(function(e){T===v.layers.size-1&&(u===null||u===void 0?void 0:u(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},y),(0,y7.useEffect)(function(){if(g)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(xr=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),xc(),function(){i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=xr)}},[g,y,i,v]),(0,y7.useEffect)(function(){return function(){g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),xc())}},[g,v]),(0,y7.useEffect)(function(){var e=function(){return C({})};return document.addEventListener(xe,e),function(){return document.removeEventListener(xe,e)}},[]),(0,y7.createElement)(ev.div,Z({},f,{ref:N,style:p({pointerEvents:P?M?"auto":"none":void 0},e.style),onFocusCapture:eo(e.onFocusCapture,O.onFocusCapture),onBlurCapture:eo(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:eo(e.onPointerDownCapture,k.onPointerDownCapture)}))});function xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=eu(e),o=(0,y7.useRef)(!1),a=(0,y7.useRef)(function(){});return(0,y7.useEffect)(function(){var e=function(e){if(e.target&&!o.current){var i=function e(){xl(xt,n,u,{discrete:!0})},u={originalEvent:e};e.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=i,t.addEventListener("click",a.current,{once:!0})):i()}else t.removeEventListener("click",a.current);o.current=!1},i=window.setTimeout(function(){t.addEventListener("pointerdown",e)},0);return function(){window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:function(){return o.current=!0}}}function xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){var e;return(e=globalThis)===null||e===void 0?void 0:e.document}();var n=eu(e),o=(0,y7.useRef)(!1);return(0,y7.useEffect)(function(){var e=function(e){e.target&&!o.current&&xl(xn,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),function(){return t.removeEventListener("focusin",e)}},[t,n]),{onFocusCapture:function(){return o.current=!0},onBlurCapture:function(){return o.current=!1}}}function xc(){var e=new CustomEvent(xe);document.dispatchEvent(e)}function xl(e,t,n,o){var a=o.discrete;var i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?ep(i,u):i.dispatchEvent(u)}var xs=require("react");var xd="focusScope.autoFocusOnMount",xf="focusScope.autoFocusOnUnmount",xv={bubbles:!1,cancelable:!0};var xp=(0,xs.forwardRef)(function(e,t){var n=e.loop,o=n===void 0?!1:n,a=e.trapped,i=a===void 0?!1:a,u=e.onMountAutoFocus,c=e.onUnmountAutoFocus,l=h(e,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),s=w((0,xs.useState)(null),2),d=s[0],f=s[1],v=eu(u),p=eu(c),m=(0,xs.useRef)(null),g=Y(t,function(e){return f(e)}),b=(0,xs.useRef)({paused:!1,pause:function e(){this.paused=!0},resume:function e(){this.paused=!1}}).current;(0,xs.useEffect)(function(){if(i){var e=function e(e){if(b.paused||!d)return;var t=e.target;d.contains(t)?m.current=t:xx(m.current,{select:!0})},t=function e(e){if(b.paused||!d)return;var t=e.relatedTarget;t!==null&&(d.contains(t)||xx(m.current,{select:!0}))},n=function e(e){var t=true,n=false,o=undefined;if(document.activeElement===document.body)try{for(var a=e[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var u=i.value;u.removedNodes.length>0&&xx(d)}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}};document.addEventListener("focusin",e),document.addEventListener("focusout",t);var o=new MutationObserver(n);return d&&o.observe(d,{childList:!0,subtree:!0}),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[i,d,b.paused]),(0,xs.useEffect)(function(){if(d){xE.add(b);var e=document.activeElement;if(!d.contains(e)){var t=new CustomEvent(xd,xv);d.addEventListener(xd,v),d.dispatchEvent(t),t.defaultPrevented||(xm(x_(xh(d)),{select:!0}),document.activeElement===e&&xx(d))}return function(){d.removeEventListener(xd,v),setTimeout(function(){var t=new CustomEvent(xf,xv);d.addEventListener(xf,p),d.dispatchEvent(t),t.defaultPrevented||xx(e!==null&&e!==void 0?e:document.body,{select:!0}),d.removeEventListener(xf,p),xE.remove(b)},0)}}},[d,v,p,b]);var y=(0,xs.useCallback)(function(e){if(!o&&!i||b.paused)return;var t=e.key==="Tab"&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var a=e.currentTarget,u=w(xg(a),2),c=u[0],l=u[1];c&&l?!e.shiftKey&&n===l?(e.preventDefault(),o&&xx(c,{select:!0})):e.shiftKey&&n===c&&(e.preventDefault(),o&&xx(l,{select:!0})):n===a&&e.preventDefault()}},[o,i,b.paused]);return(0,xs.createElement)(ev.div,Z({tabIndex:-1},l,{ref:g,onKeyDown:y}))});function xm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.select,o=n===void 0?!1:n;var a=document.activeElement;var i=true,u=false,c=undefined;try{for(var l=e[Symbol.iterator](),s;!(i=(s=l.next()).done);i=true){var d=s.value;if(xx(d,{select:o}),document.activeElement!==a)return}}catch(e){u=true;c=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(u){throw c}}}}function xg(e){var t=xh(e),n=xb(t,e),o=xb(t.reverse(),e);return[n,o]}function xh(e){var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t=e.tagName==="INPUT"&&e.type==="hidden";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 xb(e,t){var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var c=u.value;if(!xw(c,{upTo:t}))return c}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}}function xw(e,t){var n=t.upTo;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function xy(e){return c(e,HTMLInputElement)&&"select"in e}function xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.select,o=n===void 0?!1:n;if(e&&e.focus){var a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&xy(e)&&o&&e.select()}}var xE=xC();function xC(){var e=[];return{add:function t(t){var n=e[0];t!==n&&(n===null||n===void 0?void 0:n.pause()),e=xN(e,t),e.unshift(t)},remove:function t(t){var n;e=xN(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function xN(e,t){var n=x(e),o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function x_(e){return e.filter(function(e){return e.tagName!=="A"})}var xR=require("react");var xS="Popper",xD=w(V(xS),2),xT=xD[0],xP=xD[1],xM=w(xT(xS),2),xk=xM[0],xO=xM[1],xA=function(e){var t=e.__scopePopper,n=e.children,o=w((0,xR.useState)(null),2),a=o[0],i=o[1];return(0,xR.createElement)(xk,{scope:t,anchor:a,onAnchorChange:i},n)},xj="PopperAnchor",xI=(0,xR.forwardRef)(function(e,t){var n=e.__scopePopper,o=e.virtualRef,a=h(e,["__scopePopper","virtualRef"]),i=xO(xj,n),u=(0,xR.useRef)(null),c=Y(t,u);return(0,xR.useEffect)(function(){i.onAnchorChange((o===null||o===void 0?void 0:o.current)||u.current)}),o?null:(0,xR.createElement)(ev.div,Z({},a,{ref:c}))}),xL="PopperContent",xF=w(xT(xL),2),xq=xF[0],xz=xF[1],xH=(0,xR.forwardRef)(function(e,t){var n,o,a,i,u,c,l,s;var d=e.__scopePopper,f=e.side,v=f===void 0?"bottom":f,m=e.sideOffset,b=m===void 0?0:m,y=e.align,E=y===void 0?"center":y,C=e.alignOffset,N=C===void 0?0:C,_=e.arrowPadding,R=_===void 0?0:_,S=e.avoidCollisions,D=S===void 0?!0:S,T=e.collisionBoundary,P=T===void 0?[]:T,M=e.collisionPadding,k=M===void 0?0:M,O=e.sticky,A=O===void 0?"partial":O,j=e.hideWhenDetached,I=j===void 0?!1:j,L=e.updatePositionStrategy,F=L===void 0?"optimized":L,q=e.onPlaced,z=h(e,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"]),H=xO(xL,d),K=w((0,xR.useState)(null),2),V=K[0],B=K[1],W=Y(t,function(e){return B(e)}),U=w((0,xR.useState)(null),2),G=U[0],X=U[1],$=il(G),J=(n=$===null||$===void 0?void 0:$.width)!==null&&n!==void 0?n:0,Q=(o=$===null||$===void 0?void 0:$.height)!==null&&o!==void 0?o:0,ee=v+(E!=="center"?"-"+E:""),et=typeof k=="number"?k:p({top:0,right:0,bottom:0,left:0},k),en=Array.isArray(P)?P:[P],er=en.length>0,eo={padding:et,boundary:en.filter(xK),altBoundary:er},ea=s8({strategy:"fixed",placement:ee,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n0){var u=window.innerHeight-Ev*2,l=parseFloat(n.style.minHeight),s=parseFloat(n.style.height),d=Math.max(l,s);if(d0?p:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})}))))}),E_="SelectGroup",ER=w(x3(E_),2),ES=ER[0],ED=ER[1],ET=(0,y9.forwardRef)(function(e,t){var n=e.__scopeSelect,o=h(e,["__scopeSelect"]),a=eS();return(0,y9.createElement)(ES,{scope:n,id:a},(0,y9.createElement)(ev.div,Z({role:"group","aria-labelledby":a},o,{ref:t})))}),EP="SelectLabel",EM=(0,y9.forwardRef)(function(e,t){var n=e.__scopeSelect,o=h(e,["__scopeSelect"]),a=ED(EP,n);return(0,y9.createElement)(ev.div,Z({id:a.id},o,{ref:t}))}),Ek="SelectItem",EO=w(x3(Ek),2),EA=EO[0],Ej=EO[1],EI=(0,y9.forwardRef)(function(e,t){var n=e.__scopeSelect,o=e.value,a=e.disabled,i=a===void 0?!1:a,u=e.textValue,c=h(e,["__scopeSelect","value","disabled","textValue"]),l=Ee(Ek,n),s=Eg(Ek,n),d=l.value===o,f=w((0,y9.useState)(u!==null&&u!==void 0?u:""),2),v=f[0],p=f[1],m=w((0,y9.useState)(!1),2),g=m[0],b=m[1],y=Y(t,function(e){var t;return(t=s.itemRefCallback)===null||t===void 0?void 0:t.call(s,e,o,i)}),x=eS(),E=function(){i||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,y9.createElement)(EA,{scope:n,value:o,disabled:i,textId:x,isSelected:d,onItemTextChange:(0,y9.useCallback)(function(e){p(function(t){var n;return t||((n=e===null||e===void 0?void 0:e.textContent)!==null&&n!==void 0?n:"").trim()})},[])},(0,y9.createElement)(x1.ItemSlot,{scope:n,value:o,disabled:i,textValue:v},(0,y9.createElement)(ev.div,Z({role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},c,{ref:y,onFocus:eo(c.onFocus,function(){return b(!0)}),onBlur:eo(c.onBlur,function(){return b(!1)}),onPointerUp:eo(c.onPointerUp,E),onPointerMove:eo(c.onPointerMove,function(e){if(i){var t;(t=s.onItemLeave)===null||t===void 0||t.call(s)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:eo(c.onPointerLeave,function(e){if(e.currentTarget===document.activeElement){var t;(t=s.onItemLeave)===null||t===void 0||t.call(s)}}),onKeyDown:eo(c.onKeyDown,function(e){var t;((t=s.searchRef)===null||t===void 0?void 0:t.current)!==""&&e.key===" "||(xJ.includes(e.key)&&E(),e.key===" "&&e.preventDefault())})}))))}),EL="SelectItemText",EF=(0,y9.forwardRef)(function(e,t){var n=e.__scopeSelect,o=e.className,a=e.style,i=h(e,["__scopeSelect","className","style"]),u=Ee(EL,n),c=Eg(EL,n),l=Ej(EL,n),s=Er(EL,n),d=w((0,y9.useState)(null),2),f=d[0],v=d[1],p=Y(t,function(e){return v(e)},l.onItemTextChange,function(e){var t;return(t=c.itemTextRefCallback)===null||t===void 0?void 0:t.call(c,e,l.value,l.disabled)}),m=f===null||f===void 0?void 0:f.textContent,g=(0,y9.useMemo)(function(){return(0,y9.createElement)("option",{key:l.value,value:l.value,disabled:l.disabled},m)},[l.disabled,l.value,m]),b=s.onNativeOptionAdd,y=s.onNativeOptionRemove;return eh(function(){return b(g),function(){return y(g)}},[b,y,g]),(0,y9.createElement)(y9.Fragment,null,(0,y9.createElement)(ev.span,Z({id:l.textId},i,{ref:p})),l.isSelected&&u.valueNode&&!u.valueNodeHasChildren?(0,y6.createPortal)(i.children,u.valueNode):null)}),Eq="SelectItemIndicator",Ez=(0,y9.forwardRef)(function(e,t){var n=e.__scopeSelect,o=h(e,["__scopeSelect"]);return Ej(Eq,n).isSelected?(0,y9.createElement)(ev.span,Z({"aria-hidden":!0},o,{ref:t})):null}),EH="SelectScrollUpButton",EK=(0,y9.forwardRef)(function(e,t){var n=Eg(EH,e.__scopeSelect),o=EE(EH,e.__scopeSelect),a=w((0,y9.useState)(!1),2),i=a[0],u=a[1],c=Y(t,o.onScrollButtonChange);return eh(function(){if(n.viewport&&n.isPositioned){var e=function e(){var e=t.scrollTop>0;u(e)},t=n.viewport;return e(),t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}},[n.viewport,n.isPositioned]),i?(0,y9.createElement)(EW,Z({},e,{ref:c,onAutoScroll:function(){var e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null}),EV="SelectScrollDownButton",EB=(0,y9.forwardRef)(function(e,t){var n=Eg(EV,e.__scopeSelect),o=EE(EV,e.__scopeSelect),a=w((0,y9.useState)(!1),2),i=a[0],u=a[1],c=Y(t,o.onScrollButtonChange);return eh(function(){if(n.viewport&&n.isPositioned){var e=function e(){var e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)1&&Array.from(t).every(function(e){return e===t[0]})?t[0]:t,a=n?e.indexOf(n):-1,i=E$(e,Math.max(a,0));o.length===1&&(i=i.filter(function(e){return e!==n}));var u=i.find(function(e){return e.textValue.toLowerCase().startsWith(o.toLowerCase())});return u!==n?u:void 0}function E$(e,t){return e.map(function(n,o){return e[(t+o)%e.length]})}var EJ=Eo,EQ=Ei,E0=Ec,E1=El,E2=Es,E5=Ef,E4=EN,E3=ET,E8=EM,E9=EI,E6=EF,E7=Ez,Ce=EK,Ct=EB,Cn=EU;var Cr=require("lucide-react");var Co=require("react/jsx-runtime"),Ca=EJ,Ci=E3,Cu=E0,Cc=y8.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,Co.jsxs)(EQ,g(p({ref:t,className:tS("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n)},a),{children:[o,(0,Co.jsx)(E1,{asChild:!0,children:(0,Co.jsx)(Cr.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}))});Cc.displayName=EQ.displayName;var Cl=y8.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Co.jsx)(Ce,g(p({ref:t,className:tS("flex cursor-default items-center justify-center py-1",n)},o),{children:(0,Co.jsx)(Cr.ChevronUp,{className:"h-4 w-4"})}))});Cl.displayName=Ce.displayName;var Cs=y8.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Co.jsx)(Ct,g(p({ref:t,className:tS("flex cursor-default items-center justify-center py-1",n)},o),{children:(0,Co.jsx)(Cr.ChevronDown,{className:"h-4 w-4"})}))});Cs.displayName=Ct.displayName;var Cd=y8.forwardRef(function(e,t){var n=e.className,o=e.children,a=e.position,i=a===void 0?"popper":a,u=h(e,["className","children","position"]);return(0,Co.jsx)(E2,{children:(0,Co.jsxs)(E5,g(p({ref:t,className:tS("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i},u),{children:[(0,Co.jsx)(Cl,{}),(0,Co.jsx)(E4,{className:tS("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,Co.jsx)(Cs,{})]}))})});Cd.displayName=E5.displayName;var Cf=y8.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Co.jsx)(E8,p({ref:t,className:tS("py-1.5 pl-8 pr-2 text-sm font-semibold",n)},o))});Cf.displayName=E8.displayName;var Cv=y8.forwardRef(function(e,t){var n=e.className,o=e.children,a=h(e,["className","children"]);return(0,Co.jsxs)(E9,g(p({ref:t,className:tS("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},a),{children:[(0,Co.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Co.jsx)(E7,{children:(0,Co.jsx)(Cr.Check,{className:"h-4 w-4"})})}),(0,Co.jsx)(E6,{children:o})]}))});Cv.displayName=E9.displayName;var Cp=y8.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Co.jsx)(Cn,p({ref:t,className:tS("-mx-1 my-1 h-px bg-muted",n)},o))});Cp.displayName=Cn.displayName;var Cm=j(require("react"),1);var Cg=require("react");var Ch="horizontal",Cb=["horizontal","vertical"],Cw=(0,Cg.forwardRef)(function(e,t){var n=e.decorative,o=e.orientation,a=o===void 0?Ch:o,i=h(e,["decorative","orientation"]),u=Cx(a)?a:Ch,c=n?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return(0,Cg.createElement)(ev.div,q({"data-orientation":u},c,i,{ref:t}))});Cw.propTypes={orientation:function e(e,t,n){var o=e[t],a=String(o);return o&&!Cx(o)?new Error(Cy(a,n)):null}};function Cy(e,t){return"Invalid prop `orientation` of value `".concat(e,"` supplied to `").concat(t,"`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `").concat(Ch,"`.")}function Cx(e){return Cb.includes(e)}var CE=Cw;var CC=require("react/jsx-runtime"),CN=Cm.forwardRef(function(e,t){var n=e.className,o=e.orientation,a=o===void 0?"horizontal":o,i=e.decorative,u=i===void 0?!0:i,c=h(e,["className","orientation","decorative"]);return(0,CC.jsx)(CE,p({ref:t,decorative:u,orientation:a,className:tS("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n)},c))});CN.displayName=CE.displayName;var C_=j(require("react"),1);var CR=require("class-variance-authority"),CS=require("lucide-react");var CD=require("react/jsx-runtime"),CT=ln,CP=lr,CM=ll,Ck=lo,CO=C_.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,CD.jsx)(la,g(p({className:tS("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},o),{ref:t}))});CO.displayName=la.displayName;var CA=(0,CR.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Cj=C_.forwardRef(function(e,t){var n=e.side,o=n===void 0?"right":n,a=e.className,i=e.children,u=h(e,["side","className","children"]);return(0,CD.jsxs)(Ck,{children:[(0,CD.jsx)(CO,{}),(0,CD.jsxs)(li,g(p({ref:t,className:tS(CA({side:o}),a)},u),{children:[i,(0,CD.jsxs)(ll,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,CD.jsx)(CS.X,{className:"h-4 w-4"}),(0,CD.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});Cj.displayName=li.displayName;var CI=function(e){var t=e.className,n=h(e,["className"]);return(0,CD.jsx)("div",p({className:tS("flex flex-col space-y-2 text-center sm:text-left",t)},n))};CI.displayName="SheetHeader";var CL=function(e){var t=e.className,n=h(e,["className"]);return(0,CD.jsx)("div",p({className:tS("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};CL.displayName="SheetFooter";var CF=C_.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,CD.jsx)(lu,p({ref:t,className:tS("text-lg font-semibold text-foreground",n)},o))});CF.displayName=lu.displayName;var Cq=C_.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,CD.jsx)(lc,p({ref:t,className:tS("text-sm text-muted-foreground",n)},o))});Cq.displayName=lc.displayName;var Cz=require("react/jsx-runtime");function CH(e){var t=e.className,n=h(e,["className"]);return(0,Cz.jsx)("div",p({className:tS("animate-pulse rounded-md bg-muted",t)},n))}var CK=j(require("react"),1);var CV=require("react");var CB=["PageUp","PageDown"],CW=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],CU={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},CG="Slider",CX=w(er(CG),3),CY=CX[0],CZ=CX[1],C$=CX[2],CJ=w(V(CG,[C$]),2),CQ=CJ[0],C0=CJ[1],C1=w(CQ(CG),2),C2=C1[0],C5=C1[1],C4=(0,CV.forwardRef)(function(e,t){var n=function e(e){var t=Nf(W,e);i(e,t)};var o=function e(e){i(e,F.current)};var a=function e(){var e=G.current[F.current];W[F.current]!==e&&T(W)};var i=function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{commit:!1},o=n.commit;var a=Nh(v),i=Nb(Math.round((e-l)/v)*v+l,a),u=yp(i,[l,d]);U(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var n=Nl(e,u,t);if(Nm(n,E*v)){F.current=n.indexOf(u);var a=String(n)!==String(e);return a&&o&&T(n),a?n:e}else return e})};var u=e.name,c=e.min,l=c===void 0?0:c,s=e.max,d=s===void 0?100:s,f=e.step,v=f===void 0?1:f,p=e.orientation,m=p===void 0?"horizontal":p,g=e.disabled,b=g===void 0?!1:g,y=e.minStepsBetweenThumbs,E=y===void 0?0:y,C=e.defaultValue,N=C===void 0?[l]:C,_=e.value,R=e.onValueChange,S=R===void 0?function(){}:R,D=e.onValueCommit,T=D===void 0?function(){}:D,P=e.inverted,M=P===void 0?!1:P,k=h(e,["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","onValueCommit","inverted"]),O=w((0,CV.useState)(null),2),A=O[0],j=O[1],I=Y(t,function(e){return j(e)}),L=(0,CV.useRef)(new Set),F=(0,CV.useRef)(0),z=m==="horizontal",H=A?!!A.closest("form"):!0,K=z?C6:C7,V=w(ec({prop:_,defaultProp:N,onChange:function(e){var t;(t=x(L.current)[F.current])===null||t===void 0||t.focus(),S(e)}}),2),B=V[0],W=B===void 0?[]:B,U=V[1],G=(0,CV.useRef)(W);return(0,CV.createElement)(C2,{scope:e.__scopeSlider,disabled:b,min:l,max:d,valueIndexToChangeRef:F,thumbs:L.current,values:W,orientation:m},(0,CV.createElement)(CY.Provider,{scope:e.__scopeSlider},(0,CV.createElement)(CY.Slot,{scope:e.__scopeSlider},(0,CV.createElement)(K,q({"aria-disabled":b,"data-disabled":b?"":void 0},k,{ref:I,onPointerDown:eo(k.onPointerDown,function(){b||(G.current=W)}),min:l,max:d,inverted:M,onSlideStart:b?void 0:n,onSlideMove:b?void 0:o,onSlideEnd:b?void 0:a,onHomeKeyDown:function(){return!b&&i(l,0,{commit:!0})},onEndKeyDown:function(){return!b&&i(d,W.length-1,{commit:!0})},onStepKeyDown:function(e){var t=e.event,n=e.direction;if(!b){var o=CB.includes(t.key)||t.shiftKey&&CW.includes(t.key)?10:1,a=F.current,u=W[a],c=v*o*n;i(u+c,a,{commit:!0})}}})))),H&&W.map(function(e,t){return(0,CV.createElement)(Nc,{key:t,name:u?u+(W.length>1?"[]":""):void 0,value:e})}))}),C3=w(CQ(CG,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),C8=C3[0],C9=C3[1],C6=(0,CV.forwardRef)(function(e,t){var n=function e(e){var t=x.current||m.getBoundingClientRect(),n=[0,t.width],i=Ng(n,N?[o,a]:[a,o]);return x.current=t,i(e-t.left)};var o=e.min,a=e.max,i=e.dir,u=e.inverted,c=e.onSlideStart,l=e.onSlideMove,s=e.onSlideEnd,d=e.onStepKeyDown,f=h(e,["min","max","dir","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"]),v=w((0,CV.useState)(null),2),m=v[0],b=v[1],y=Y(t,function(e){return b(e)}),x=(0,CV.useRef)(),E=eG(i),C=E==="ltr",N=C&&!u||!C&&u;return(0,CV.createElement)(C8,{scope:e.__scopeSlider,startEdge:N?"left":"right",endEdge:N?"right":"left",direction:N?1:-1,size:"width"},(0,CV.createElement)(Ne,q({dir:E,"data-orientation":"horizontal"},f,{ref:y,style:g(p({},f.style),{"--radix-slider-thumb-transform":"translateX(-50%)"}),onSlideStart:function(e){var t=n(e.clientX);c===null||c===void 0?void 0:c(t)},onSlideMove:function(e){var t=n(e.clientX);l===null||l===void 0?void 0:l(t)},onSlideEnd:function(){x.current=void 0,s===null||s===void 0?void 0:s()},onStepKeyDown:function(e){var t=CU[N?"from-left":"from-right"].includes(e.key);d===null||d===void 0?void 0:d({event:e,direction:t?-1:1})}})))}),C7=(0,CV.forwardRef)(function(e,t){var n=function e(e){var t=m.current||f.current.getBoundingClientRect(),n=[0,t.height],i=Ng(n,b?[a,o]:[o,a]);return m.current=t,i(e-t.top)};var o=e.min,a=e.max,i=e.inverted,u=e.onSlideStart,c=e.onSlideMove,l=e.onSlideEnd,s=e.onStepKeyDown,d=h(e,["min","max","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"]),f=(0,CV.useRef)(null),v=Y(t,f),m=(0,CV.useRef)(),b=!i;return(0,CV.createElement)(C8,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1},(0,CV.createElement)(Ne,q({"data-orientation":"vertical"},d,{ref:v,style:g(p({},d.style),{"--radix-slider-thumb-transform":"translateY(50%)"}),onSlideStart:function(e){var t=n(e.clientY);u===null||u===void 0?void 0:u(t)},onSlideMove:function(e){var t=n(e.clientY);c===null||c===void 0?void 0:c(t)},onSlideEnd:function(){m.current=void 0,l===null||l===void 0?void 0:l()},onStepKeyDown:function(e){var t=CU[b?"from-bottom":"from-top"].includes(e.key);s===null||s===void 0?void 0:s({event:e,direction:t?-1:1})}})))}),Ne=(0,CV.forwardRef)(function(e,t){var n=e.__scopeSlider,o=e.onSlideStart,a=e.onSlideMove,i=e.onSlideEnd,u=e.onHomeKeyDown,c=e.onEndKeyDown,l=e.onStepKeyDown,s=h(e,["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"]),d=C5(CG,n);return(0,CV.createElement)(ev.span,q({},s,{ref:t,onKeyDown:eo(e.onKeyDown,function(e){e.key==="Home"?(u(e),e.preventDefault()):e.key==="End"?(c(e),e.preventDefault()):CB.concat(CW).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:eo(e.onPointerDown,function(e){var t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)}),onPointerMove:eo(e.onPointerMove,function(e){e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:eo(e.onPointerUp,function(e){var t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})}))}),Nt="SliderTrack",Nn=(0,CV.forwardRef)(function(e,t){var n=e.__scopeSlider,o=h(e,["__scopeSlider"]),a=C5(Nt,n);return(0,CV.createElement)(ev.span,q({"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation},o,{ref:t}))}),Nr="SliderRange",No=(0,CV.forwardRef)(function(e,t){var n,o;var a=e.__scopeSlider,u=h(e,["__scopeSlider"]),c=C5(Nr,a),l=C9(Nr,a),s=(0,CV.useRef)(null),d=Y(t,s),f=c.values.length,v=c.values.map(function(e){return Ns(e,c.min,c.max)}),m=f>1?(n=Math).min.apply(n,x(v)):0,b=100-(o=Math).max.apply(o,x(v));var w;return(0,CV.createElement)(ev.span,q({"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0},u,{ref:d,style:g(p({},e.style),(w={},i(w,l.startEdge,m+"%"),i(w,l.endEdge,b+"%"),w))}))}),Na="SliderThumb",Ni=(0,CV.forwardRef)(function(e,t){var n=CZ(e.__scopeSlider),o=w((0,CV.useState)(null),2),a=o[0],i=o[1],u=Y(t,function(e){return i(e)}),c=(0,CV.useMemo)(function(){return a?n().findIndex(function(e){return e.ref.current===a}):-1},[n,a]);return(0,CV.createElement)(Nu,q({},e,{ref:u,index:c}))}),Nu=(0,CV.forwardRef)(function(e,t){var n=e.__scopeSlider,o=e.index,a=h(e,["__scopeSlider","index"]),u=C5(Na,n),c=C9(Na,n),l=w((0,CV.useState)(null),2),s=l[0],d=l[1],f=Y(t,function(e){return d(e)}),v=il(s),p=u.values[o],m=p===void 0?0:Ns(p,u.min,u.max),g=Nd(o,u.values.length),b=v===null||v===void 0?void 0:v[c.size],y=b?Nv(b,m,c.direction):0;return(0,CV.useEffect)(function(){if(s)return u.thumbs.add(s),function(){u.thumbs.delete(s)}},[s,u.thumbs]),(0,CV.createElement)("span",{style:i({transform:"var(--radix-slider-thumb-transform)",position:"absolute"},c.startEdge,"calc(".concat(m,"% + ").concat(y,"px)"))},(0,CV.createElement)(CY.ItemSlot,{scope:e.__scopeSlider},(0,CV.createElement)(ev.span,q({role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":u.min,"aria-valuenow":p,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0},a,{ref:f,style:p===void 0?{display:"none"}:e.style,onFocus:eo(e.onFocus,function(){u.valueIndexToChangeRef.current=o})}))))}),Nc=function(e){var t=e.value,n=h(e,["value"]),o=(0,CV.useRef)(null),a=iu(t);return(0,CV.useEffect)(function(){var e=o.current,n=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(n,"value").set;if(a!==t&&i){var u=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(u)}},[a,t]),(0,CV.createElement)("input",q({style:{display:"none"}},n,{ref:o,defaultValue:t}))};function Nl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;var o=x(e);return o[n]=t,o.sort(function(e,t){return e-t})}function Ns(e,t,n){var o=100/(n-t)*(e-t);return yp(o,[0,100])}function Nd(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):t===2?["Minimum","Maximum"][e]:void 0}function Nf(e,t){var n;if(e.length===1)return 0;var o=e.map(function(e){return Math.abs(e-t)}),a=(n=Math).min.apply(n,x(o));return o.indexOf(a)}function Nv(e,t,n){var o=e/2,a=Ng([0,50],[0,o]);return(o-a(t)*n)*n}function Np(e){return e.slice(0,-1).map(function(t,n){return e[n+1]-t})}function Nm(e,t){if(t>0){var n;var o=Np(e);return(n=Math).min.apply(n,x(o))>=t}return!0}function Ng(e,t){return function(n){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Nh(e){return(String(e).split(".")[1]||"").length}function Nb(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var Nw=C4,Ny=Nn,Nx=No,NE=Ni;var NC=require("react/jsx-runtime"),NN=CK.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NC.jsxs)(Nw,g(p({ref:t,className:tS("relative flex w-full touch-none select-none items-center",n)},o),{children:[(0,NC.jsx)(Ny,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,NC.jsx)(Nx,{className:"absolute h-full bg-primary"})}),(0,NC.jsx)(NE,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}))});NN.displayName=Nw.displayName;var N_=require("next-themes"),NR=require("sonner"),NS=require("react/jsx-runtime"),ND=function(e){var t=u({},v(e));var n=(0,N_.useTheme)(),o=n.theme,a=o===void 0?"system":o;return(0,NS.jsx)(NR.Toaster,p({theme:a,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}},t))};var NT=j(require("react"),1);var NP=require("react");var NM="Switch",Nk=w(V(NM),2),NO=Nk[0],NA=Nk[1],Nj=w(NO(NM),2),NI=Nj[0],NL=Nj[1],NF=(0,NP.forwardRef)(function(e,t){var n=e.__scopeSwitch,o=e.name,a=e.checked,i=e.defaultChecked,u=e.required,c=e.disabled,l=e.value,s=l===void 0?"on":l,d=e.onCheckedChange,f=h(e,["__scopeSwitch","name","checked","defaultChecked","required","disabled","value","onCheckedChange"]),v=w((0,NP.useState)(null),2),p=v[0],m=v[1],g=Y(t,function(e){return m(e)}),b=(0,NP.useRef)(!1),y=p?!!p.closest("form"):!0,x=w(ec({prop:a,defaultProp:i,onChange:d}),2),E=x[0],C=E===void 0?!1:E,N=x[1];return(0,NP.createElement)(NI,{scope:n,checked:C,disabled:c},(0,NP.createElement)(ev.button,q({type:"button",role:"switch","aria-checked":C,"aria-required":u,"data-state":NK(C),"data-disabled":c?"":void 0,disabled:c,value:s},f,{ref:g,onClick:eo(e.onClick,function(e){N(function(e){return!e}),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,NP.createElement)(NH,{control:p,bubbles:!b.current,name:o,value:s,checked:C,required:u,disabled:c,style:{transform:"translateX(-100%)"}}))}),Nq="SwitchThumb",Nz=(0,NP.forwardRef)(function(e,t){var n=e.__scopeSwitch,o=h(e,["__scopeSwitch"]),a=NL(Nq,n);return(0,NP.createElement)(ev.span,q({"data-state":NK(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t}))}),NH=function(e){var t=e.control,n=e.checked,o=e.bubbles,a=o===void 0?!0:o,i=h(e,["control","checked","bubbles"]),u=(0,NP.useRef)(null),c=iu(n),l=il(t);return(0,NP.useEffect)(function(){var e=u.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&o){var i=new Event("click",{bubbles:a});o.call(e,n),e.dispatchEvent(i)}},[c,n,a]),(0,NP.createElement)("input",q({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:u,style:g(p({},e.style,l),{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function NK(e){return e?"checked":"unchecked"}var NV=NF,NB=Nz;var NW=require("react/jsx-runtime"),NU=NT.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NW.jsx)(NV,g(p({className:tS("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},o),{ref:t,children:(0,NW.jsx)(NB,{className:tS("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}))});NU.displayName=NV.displayName;var NG=j(require("react"),1);var NX=require("react/jsx-runtime"),NY=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("div",{className:"relative w-full overflow-auto",children:(0,NX.jsx)("table",p({ref:t,className:tS("w-full caption-bottom text-sm",n)},o))})});NY.displayName="Table";var NZ=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("thead",p({ref:t,className:tS("[&_tr]:border-b",n)},o))});NZ.displayName="TableHeader";var N$=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("tbody",p({ref:t,className:tS("[&_tr:last-child]:border-0",n)},o))});N$.displayName="TableBody";var NJ=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("tfoot",p({ref:t,className:tS("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n)},o))});NJ.displayName="TableFooter";var NQ=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("tr",p({ref:t,className:tS("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n)},o))});NQ.displayName="TableRow";var N0=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("th",p({ref:t,className:tS("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n)},o))});N0.displayName="TableHead";var N1=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("td",p({ref:t,className:tS("p-4 align-middle [&:has([role=checkbox])]:pr-0",n)},o))});N1.displayName="TableCell";var N2=NG.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,NX.jsx)("caption",p({ref:t,className:tS("mt-4 text-sm text-muted-foreground",n)},o))});N2.displayName="TableCaption";var N5=j(require("react"),1);var N4=require("react");var N3="Tabs",N8=w(V(N3,[dT]),2),N9=N8[0],N6=N8[1],N7=dT(),_e=w(N9(N3),2),_t=_e[0],_n=_e[1],_r=(0,N4.forwardRef)(function(e,t){var n=e.__scopeTabs,o=e.value,a=e.onValueChange,i=e.defaultValue,u=e.orientation,c=u===void 0?"horizontal":u,l=e.dir,s=e.activationMode,d=s===void 0?"automatic":s,f=h(e,["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"]),v=eG(l),p=w(ec({prop:o,onChange:a,defaultProp:i}),2),m=p[0],g=p[1];return(0,N4.createElement)(_t,{scope:n,baseId:eS(),value:m,onValueChange:g,orientation:c,dir:v,activationMode:d},(0,N4.createElement)(ev.div,q({dir:v,"data-orientation":c},f,{ref:t})))}),_o="TabsList",_a=(0,N4.forwardRef)(function(e,t){var n=e.__scopeTabs,o=e.loop,a=o===void 0?!0:o,i=h(e,["__scopeTabs","loop"]),u=_n(_o,n),c=N7(n);return(0,N4.createElement)(dK,q({asChild:!0},c,{orientation:u.orientation,dir:u.dir,loop:a}),(0,N4.createElement)(ev.div,q({role:"tablist","aria-orientation":u.orientation},i,{ref:t})))}),_i="TabsTrigger",_u=(0,N4.forwardRef)(function(e,t){var n=e.__scopeTabs,o=e.value,a=e.disabled,i=a===void 0?!1:a,u=h(e,["__scopeTabs","value","disabled"]),c=_n(_i,n),l=N7(n),s=_s(c.baseId,o),d=_d(c.baseId,o),f=o===c.value;return(0,N4.createElement)(dV,q({asChild:!0},l,{focusable:!i,active:f}),(0,N4.createElement)(ev.button,q({type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s},u,{ref:t,onMouseDown:eo(e.onMouseDown,function(e){!i&&e.button===0&&e.ctrlKey===!1?c.onValueChange(o):e.preventDefault()}),onKeyDown:eo(e.onKeyDown,function(e){[" ","Enter"].includes(e.key)&&c.onValueChange(o)}),onFocus:eo(e.onFocus,function(){var e=c.activationMode!=="manual";!f&&!i&&e&&c.onValueChange(o)})})))}),_c="TabsContent",_l=(0,N4.forwardRef)(function(e,t){var n=e.__scopeTabs,o=e.value,a=e.forceMount,i=e.children,u=h(e,["__scopeTabs","value","forceMount","children"]),c=_n(_c,n),l=_s(c.baseId,o),s=_d(c.baseId,o),d=o===c.value,f=(0,N4.useRef)(d);return(0,N4.useEffect)(function(){var e=requestAnimationFrame(function(){return f.current=!1});return function(){return cancelAnimationFrame(e)}},[]),(0,N4.createElement)(ex,{present:a||d},function(n){var o=n.present;return(0,N4.createElement)(ev.div,q({"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!o,id:s,tabIndex:0},u,{ref:t,style:g(p({},e.style),{animationDuration:f.current?"0s":void 0})}),o&&i)})});function _s(e,t){return"".concat(e,"-trigger-").concat(t)}function _d(e,t){return"".concat(e,"-content-").concat(t)}var _f=_r,_v=_a,_p=_u,_m=_l;var _g=require("react/jsx-runtime"),_h=_f,_b=N5.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,_g.jsx)(_v,p({ref:t,className:tS("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",n)},o))});_b.displayName=_v.displayName;var _w=N5.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,_g.jsx)(_p,p({ref:t,className:tS("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",n)},o))});_w.displayName=_p.displayName;var _y=N5.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,_g.jsx)(_m,p({ref:t,className:tS("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n)},o))});_y.displayName=_m.displayName;var _x=j(require("react"),1);var _E=require("react/jsx-runtime"),_C=_x.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,_E.jsx)("textarea",p({className:tS("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:t},o))});_C.displayName="Textarea";var _N=j(require("react"),1);var __=require("react"),_R=require("react-dom");var _S="ToastProvider",_D=w(er("Toast"),3),_T=_D[0],_P=_D[1],_M=_D[2],_k=w(V("Toast",[_M]),2),_O=_k[0],_A=_k[1],_j=w(_O(_S),2),_I=_j[0],_L=_j[1],_F=function(e){var t=e.__scopeToast,n=e.label,o=n===void 0?"Notification":n,a=e.duration,i=a===void 0?5e3:a,u=e.swipeDirection,c=u===void 0?"right":u,l=e.swipeThreshold,s=l===void 0?50:l,d=e.children,f=w((0,__.useState)(null),2),v=f[0],p=f[1],m=w((0,__.useState)(0),2),g=m[0],h=m[1],b=(0,__.useRef)(!1),y=(0,__.useRef)(!1);return(0,__.createElement)(_T.Provider,{scope:t},(0,__.createElement)(_I,{scope:t,label:o,duration:i,swipeDirection:c,swipeThreshold:s,toastCount:g,viewport:v,onViewportChange:p,onToastAdd:(0,__.useCallback)(function(){return h(function(e){return e+1})},[]),onToastRemove:(0,__.useCallback)(function(){return h(function(e){return e-1})},[]),isFocusedToastEscapeKeyDownRef:b,isClosePausedRef:y},d))};_F.propTypes={label:function e(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){var t="Invalid prop `label` supplied to `".concat(_S,"`. Expected non-empty `string`.");return new Error(t)}return null}};var _q="ToastViewport",_z=["F8"],_H="toast.viewportPause",_K="toast.viewportResume",_V=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=e.hotkey,a=o===void 0?_z:o,i=e.label,u=i===void 0?"Notifications ({hotkey})":i,c=h(e,["__scopeToast","hotkey","label"]),l=_L(_q,n),s=_P(n),d=(0,__.useRef)(null),f=(0,__.useRef)(null),v=(0,__.useRef)(null),p=(0,__.useRef)(null),m=Y(t,p,l.onViewportChange),g=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=l.toastCount>0;(0,__.useEffect)(function(){var e=function(e){var t;a.every(function(t){return e[t]||e.code===t})&&((t=p.current)===null||t===void 0||t.focus())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[a]),(0,__.useEffect)(function(){var e=d.current,t=p.current;if(b&&e&&t){var n=function(){if(!l.isClosePausedRef.current){var e=new CustomEvent(_H);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},o=function(){if(l.isClosePausedRef.current){var e=new CustomEvent(_K);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},a=function(t){!e.contains(t.relatedTarget)&&o()},i=function(){e.contains(document.activeElement)||o()};return e.addEventListener("focusin",n),e.addEventListener("focusout",a),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",o),function(){e.removeEventListener("focusin",n),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",o)}}},[b,l.isClosePausedRef]);var w=(0,__.useCallback)(function(e){var t=e.tabbingDirection;var n=s().map(function(e){var n=e.ref.current,o=[n].concat(x(Ra(n)));return t==="forwards"?o:o.reverse()});return(t==="forwards"?n.reverse():n).flat()},[s]);return(0,__.useEffect)(function(){var e=p.current;if(e){var t=function(t){var n=t.altKey||t.ctrlKey||t.metaKey;if(t.key==="Tab"&&!n){var o=document.activeElement,a=t.shiftKey;if(t.target===e&&a){var i;(i=f.current)===null||i===void 0||i.focus();return}var u=w({tabbingDirection:a?"backwards":"forwards"}),c=u.findIndex(function(e){return e===o});if(Ri(u.slice(c+1)))t.preventDefault();else{var l,s;a?(l=f.current)===null||l===void 0||l.focus():(s=v.current)===null||s===void 0||s.focus()}}};return e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}},[s,w]),(0,__.createElement)(t$,{ref:d,role:"region","aria-label":u.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"}},b&&(0,__.createElement)(_W,{ref:f,onFocusFromOutsideViewport:function(){var e=w({tabbingDirection:"forwards"});Ri(e)}}),(0,__.createElement)(_T.Slot,{scope:n},(0,__.createElement)(ev.ol,q({tabIndex:-1},c,{ref:m}))),b&&(0,__.createElement)(_W,{ref:v,onFocusFromOutsideViewport:function(){var e=w({tabbingDirection:"backwards"});Ri(e)}}))}),_B="ToastFocusProxy",_W=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=e.onFocusFromOutsideViewport,a=h(e,["__scopeToast","onFocusFromOutsideViewport"]),i=_L(_B,n);return(0,__.createElement)(hy,q({"aria-hidden":!0,tabIndex:0},a,{ref:t,style:{position:"fixed"},onFocus:function(e){var t;var n=e.relatedTarget;!((t=i.viewport)!==null&&t!==void 0&&t.contains(n))&&o()}}))}),_U="Toast",_G="toast.swipeStart",_X="toast.swipeMove",_Y="toast.swipeCancel",_Z="toast.swipeEnd",_$=(0,__.forwardRef)(function(e,t){var n=e.forceMount,o=e.open,a=e.defaultOpen,i=e.onOpenChange,u=h(e,["forceMount","open","defaultOpen","onOpenChange"]),c=w(ec({prop:o,defaultProp:a,onChange:i}),2),l=c[0],s=l===void 0?!0:l,d=c[1];return(0,__.createElement)(ex,{present:n||s},(0,__.createElement)(_1,q({open:s},u,{ref:t,onClose:function(){return d(!1)},onPause:eu(e.onPause),onResume:eu(e.onResume),onSwipeStart:eo(e.onSwipeStart,function(e){e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:eo(e.onSwipeMove,function(e){var t=e.detail.delta,n=t.x,o=t.y;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(n,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(o,"px"))}),onSwipeCancel:eo(e.onSwipeCancel,function(e){e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:eo(e.onSwipeEnd,function(e){var t=e.detail.delta,n=t.x,o=t.y;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(n,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(o,"px")),d(!1)})})))}),_J=w(_O(_U,{onClose:function e(){}}),2),_Q=_J[0],_0=_J[1],_1=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=e.type,a=o===void 0?"foreground":o,i=e.duration,u=e.open,c=e.onClose,l=e.onEscapeKeyDown,s=e.onPause,d=e.onResume,f=e.onSwipeStart,v=e.onSwipeMove,m=e.onSwipeCancel,g=e.onSwipeEnd,b=h(e,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),y=_L(_U,n),x=w((0,__.useState)(null),2),E=x[0],C=x[1],N=Y(t,function(e){return C(e)}),_=(0,__.useRef)(null),R=(0,__.useRef)(null),S=i||y.duration,D=(0,__.useRef)(0),T=(0,__.useRef)(S),P=(0,__.useRef)(0),M=y.onToastAdd,k=y.onToastRemove,O=eu(function(){var e;(E===null||E===void 0?void 0:E.contains(document.activeElement))&&((e=y.viewport)===null||e===void 0||e.focus()),c()}),A=(0,__.useCallback)(function(e){!e||e===1/0||(window.clearTimeout(P.current),D.current=new Date().getTime(),P.current=window.setTimeout(O,e))},[O]);(0,__.useEffect)(function(){var e=y.viewport;if(e){var t=function(){A(T.current),d===null||d===void 0?void 0:d()},n=function(){var e=new Date().getTime()-D.current;T.current=T.current-e,window.clearTimeout(P.current),s===null||s===void 0?void 0:s()};return e.addEventListener(_H,n),e.addEventListener(_K,t),function(){e.removeEventListener(_H,n),e.removeEventListener(_K,t)}}},[y.viewport,S,s,d,A]),(0,__.useEffect)(function(){u&&!y.isClosePausedRef.current&&A(S)},[u,S,y.isClosePausedRef,A]),(0,__.useEffect)(function(){return M(),function(){return k()}},[M,k]);var j=(0,__.useMemo)(function(){return E?Re(E):null},[E]);return y.viewport?(0,__.createElement)(__.Fragment,null,j&&(0,__.createElement)(_2,{__scopeToast:n,role:"status","aria-live":a==="foreground"?"assertive":"polite","aria-atomic":!0},j),(0,__.createElement)(_Q,{scope:n,onClose:O},(0,_R.createPortal)((0,__.createElement)(_T.ItemSlot,{scope:n},(0,__.createElement)(tZ,{asChild:!0,onEscapeKeyDown:eo(l,function(){y.isFocusedToastEscapeKeyDownRef.current||O(),y.isFocusedToastEscapeKeyDownRef.current=!1})},(0,__.createElement)(ev.li,q({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":y.swipeDirection},b,{ref:N,style:p({userSelect:"none",touchAction:"none"},e.style),onKeyDown:eo(e.onKeyDown,function(e){e.key==="Escape"&&(l===null||l===void 0?void 0:l(e.nativeEvent),e.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:eo(e.onPointerDown,function(e){e.button===0&&(_.current={x:e.clientX,y:e.clientY})}),onPointerMove:eo(e.onPointerMove,function(e){if(!_.current)return;var t=e.clientX-_.current.x,n=e.clientY-_.current.y,o=!!R.current,a=["left","right"].includes(y.swipeDirection),i=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,u=a?i(0,t):0,c=a?0:i(0,n),l=e.pointerType==="touch"?10:2,s={x:u,y:c},d={originalEvent:e,delta:s};o?(R.current=s,Rt(_X,v,d,{discrete:!1})):Rn(s,y.swipeDirection,l)?(R.current=s,Rt(_G,f,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(_.current=null)}),onPointerUp:eo(e.onPointerUp,function(e){var t=R.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),R.current=null,_.current=null,t){var o=e.currentTarget,a={originalEvent:e,delta:t};Rn(t,y.swipeDirection,y.swipeThreshold)?Rt(_Z,g,a,{discrete:!0}):Rt(_Y,m,a,{discrete:!0}),o.addEventListener("click",function(e){return e.preventDefault()},{once:!0})}})})))),y.viewport))):null});_1.propTypes={type:function e(e){if(e.type&&!["foreground","background"].includes(e.type)){var t="Invalid prop `type` supplied to `".concat(_U,"`. Expected `foreground | background`.");return new Error(t)}return null}};var _2=function(e){var t=e.__scopeToast,n=e.children,o=h(e,["__scopeToast","children"]),a=_L(_U,t),i=w((0,__.useState)(!1),2),u=i[0],c=i[1],l=w((0,__.useState)(!1),2),s=l[0],d=l[1];return Rr(function(){return c(!0)}),(0,__.useEffect)(function(){var e=window.setTimeout(function(){return d(!0)},1e3);return function(){return window.clearTimeout(e)}},[]),s?null:(0,__.createElement)(ni,{asChild:!0},(0,__.createElement)(hy,o,u&&(0,__.createElement)(__.Fragment,null,a.label," ",n)))};var _5=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=h(e,["__scopeToast"]);return(0,__.createElement)(ev.div,q({},o,{ref:t}))});var _4=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=h(e,["__scopeToast"]);return(0,__.createElement)(ev.div,q({},o,{ref:t}))}),_3="ToastAction",_8=(0,__.forwardRef)(function(e,t){var n=e.altText,o=h(e,["altText"]);return n?(0,__.createElement)(_7,{altText:n,asChild:!0},(0,__.createElement)(_6,q({},o,{ref:t}))):null});_8.propTypes={altText:function e(e){return e.altText?null:new Error("Missing prop `altText` expected on `".concat(_3,"`"))}};var _9="ToastClose",_6=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=h(e,["__scopeToast"]),a=_0(_9,n);return(0,__.createElement)(_7,{asChild:!0},(0,__.createElement)(ev.button,q({type:"button"},o,{ref:t,onClick:eo(e.onClick,a.onClose)})))}),_7=(0,__.forwardRef)(function(e,t){var n=e.__scopeToast,o=e.altText,a=h(e,["__scopeToast","altText"]);return(0,__.createElement)(ev.div,q({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0},a,{ref:t}))});function Re(e){var t=[];return Array.from(e.childNodes).forEach(function(e){if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Ro(e)){var n;var o=e.ariaHidden||e.hidden||e.style.display==="none",a=e.dataset.radixToastAnnounceExclude==="";if(!o)if(a){var i=e.dataset.radixToastAnnounceAlt;i&&t.push(i)}else(n=t).push.apply(n,x(Re(e)))}}),t}function Rt(e,t,n,o){var a=o.discrete;var i=n.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?ep(i,u):i.dispatchEvent(u)}var Rn=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;var o=Math.abs(e.x),a=Math.abs(e.y),i=o>a;return t==="left"||t==="right"?i&&o>n:!i&&a>n};function Rr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};var t=eu(e);eh(function(){var e=0,n=0;return e=window.requestAnimationFrame(function(){return n=window.requestAnimationFrame(t)}),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Ro(e){return e.nodeType===e.ELEMENT_NODE}function Ra(e){var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t=e.tagName==="INPUT"&&e.type==="hidden";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 Ri(e){var t=document.activeElement;return e.some(function(e){return e===t?!0:(e.focus(),document.activeElement!==t)})}var Ru=_F,Rc=_V,Rl=_$,Rs=_5,Rd=_4,Rf=_8,Rv=_6;var Rp=require("class-variance-authority"),Rm=require("lucide-react");var Rg=require("react/jsx-runtime"),Rh=Ru,Rb=_N.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Rg.jsx)(Rc,p({ref:t,className:tS("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n)},o))});Rb.displayName=Rc.displayName;var Rw=(0,Rp.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ry=_N.forwardRef(function(e,t){var n=e.className,o=e.variant,a=h(e,["className","variant"]);return(0,Rg.jsx)(Rl,p({ref:t,className:tS(Rw({variant:o}),n)},a))});Ry.displayName=Rl.displayName;var Rx=_N.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Rg.jsx)(Rf,p({ref:t,className:tS("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n)},o))});Rx.displayName=Rf.displayName;var RE=_N.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Rg.jsx)(Rv,g(p({ref:t,className:tS("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":""},o),{children:(0,Rg.jsx)(Rm.X,{className:"h-4 w-4"})}))});RE.displayName=Rv.displayName;var RC=_N.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Rg.jsx)(Rs,p({ref:t,className:tS("text-sm font-semibold",n)},o))});RC.displayName=Rs.displayName;var RN=_N.forwardRef(function(e,t){var n=e.className,o=h(e,["className"]);return(0,Rg.jsx)(Rd,p({ref:t,className:tS("text-sm opacity-90",n)},o))});RN.displayName=Rd.displayName;var R_=j(require("react"),1),RR=1,RS=1e6;var RD=0;function RT(){return RD=(RD+1)%Number.MAX_SAFE_INTEGER,RD.toString()}var RP=new Map,RM=function(e){if(RP.has(e))return;var t=setTimeout(function(){RP.delete(e),Rj({type:"REMOVE_TOAST",toastId:e})},RS);RP.set(e,t)},Rk=function(e,t){switch(t.type){case"ADD_TOAST":return g(p({},e),{toasts:[t.toast].concat(x(e.toasts)).slice(0,RR)});case"UPDATE_TOAST":return g(p({},e),{toasts:e.toasts.map(function(e){return e.id===t.toast.id?p({},e,t.toast):e})});case"DISMISS_TOAST":{var n=t.toastId;return n?RM(n):e.toasts.forEach(function(e){RM(e.id)}),g(p({},e),{toasts:e.toasts.map(function(e){return e.id===n||n===void 0?g(p({},e),{open:!1}):e})})}case"REMOVE_TOAST":return t.toastId===void 0?g(p({},e),{toasts:[]}):g(p({},e),{toasts:e.toasts.filter(function(e){return e.id!==t.toastId})})}},RO=[],RA={toasts:[]};function Rj(e){RA=Rk(RA,e),RO.forEach(function(e){e(RA)})}function RI(e){var t=u({},v(e));var n=RT(),o=function(e){return Rj({type:"UPDATE_TOAST",toast:g(p({},e),{id:n})})},a=function(){return Rj({type:"DISMISS_TOAST",toastId:n})};return Rj({type:"ADD_TOAST",toast:g(p({},t),{id:n,open:!0,onOpenChange:function(e){e||a()}})}),{id:n,dismiss:a,update:o}}function RL(){var e=w(R_.useState(RA),2),t=e[0],n=e[1];return R_.useEffect(function(){return RO.push(n),function(){var e=RO.indexOf(n);e>-1&&RO.splice(e,1)}},[t]),g(p({},t),{toast:RI,dismiss:function(e){return Rj({type:"DISMISS_TOAST",toastId:e})}})}var RF=require("react/jsx-runtime");function Rq(){var e=RL(),t=e.toasts;return(0,RF.jsxs)(Rh,{children:[t.map(function(e){var t=e.id,n=e.title,o=e.description,a=e.action,i=h(e,["id","title","description","action"]);return(0,RF.jsxs)(Ry,g(p({},i),{children:[(0,RF.jsxs)("div",{className:"grid gap-1",children:[n&&(0,RF.jsx)(RC,{children:n}),o&&(0,RF.jsx)(RN,{children:o})]}),a,(0,RF.jsx)(RE,{})]}),t)}),(0,RF.jsx)(Rb,{})]})}var Rz=j(require("react"),1);var RH=j(require("react"),1);var RK=require("react");var RV=(0,RK.forwardRef)(function(e,t){var n=e.pressed,o=e.defaultPressed,a=o===void 0?!1:o,i=e.onPressedChange,u=h(e,["pressed","defaultPressed","onPressedChange"]),c=w(ec({prop:n,onChange:i,defaultProp:a}),2),l=c[0],s=l===void 0?!1:l,d=c[1];return(0,RK.createElement)(ev.button,q({type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0},u,{ref:t,onClick:eo(e.onClick,function(){e.disabled||d(!s)})}))}),RB=RV;var RW="ToggleGroup",RU=w(V(RW,[dT]),2),RG=RU[0],RX=RU[1],RY=dT(),RZ=RH.default.forwardRef(function(e,t){var n=e.type,o=h(e,["type"]);if(n==="single"){var a=o;return RH.default.createElement(R0,q({},a,{ref:t}))}if(n==="multiple"){var i=o;return RH.default.createElement(R1,q({},i,{ref:t}))}throw new Error("Missing prop `type` expected on `".concat(RW,"`"))}),R$=w(RG(RW),2),RJ=R$[0],RQ=R$[1],R0=RH.default.forwardRef(function(e,t){var n=e.value,o=e.defaultValue,a=e.onValueChange,i=a===void 0?function(){}:a,u=h(e,["value","defaultValue","onValueChange"]),c=w(ec({prop:n,defaultProp:o,onChange:i}),2),l=c[0],s=c[1];return RH.default.createElement(RJ,{scope:e.__scopeToggleGroup,type:"single",value:l?[l]:[],onItemActivate:s,onItemDeactivate:RH.default.useCallback(function(){return s("")},[s])},RH.default.createElement(R3,q({},u,{ref:t})))}),R1=RH.default.forwardRef(function(e,t){var n=e.value,o=e.defaultValue,a=e.onValueChange,i=a===void 0?function(){}:a,u=h(e,["value","defaultValue","onValueChange"]),c=w(ec({prop:n,defaultProp:o,onChange:i}),2),l=c[0],s=l===void 0?[]:l,d=c[1],f=RH.default.useCallback(function(e){return d(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return x(t).concat([e])})},[d]),v=RH.default.useCallback(function(e){return d(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(t){return t!==e})})},[d]);return RH.default.createElement(RJ,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:f,onItemDeactivate:v},RH.default.createElement(R3,q({},u,{ref:t})))}),R2=w(RG(RW),2),R5=R2[0],R4=R2[1],R3=RH.default.forwardRef(function(e,t){var n=e.__scopeToggleGroup,o=e.disabled,a=o===void 0?!1:o,i=e.rovingFocus,u=i===void 0?!0:i,c=e.orientation,l=e.dir,s=e.loop,d=s===void 0?!0:s,f=h(e,["__scopeToggleGroup","disabled","rovingFocus","orientation","dir","loop"]),v=RY(n),m=eG(l),g=p({role:"group",dir:m},f);return RH.default.createElement(R5,{scope:n,rovingFocus:u,disabled:a},u?RH.default.createElement(dK,q({asChild:!0},v,{orientation:c,dir:m,loop:d}),RH.default.createElement(ev.div,q({},g,{ref:t}))):RH.default.createElement(ev.div,q({},g,{ref:t})))}),R8="ToggleGroupItem",R9=RH.default.forwardRef(function(e,t){var n=RQ(R8,e.__scopeToggleGroup),o=R4(R8,e.__scopeToggleGroup),a=RY(e.__scopeToggleGroup),i=n.value.includes(e.value),u=o.disabled||e.disabled,c=g(p({},e),{pressed:i,disabled:u}),l=RH.default.useRef(null);return o.rovingFocus?RH.default.createElement(dV,q({asChild:!0},a,{focusable:!u,active:i,ref:l}),RH.default.createElement(R6,q({},c,{ref:t}))):RH.default.createElement(R6,q({},c,{ref:t}))}),R6=RH.default.forwardRef(function(e,t){var n=e.__scopeToggleGroup,o=e.value,a=h(e,["__scopeToggleGroup","value"]),i=RQ(R8,n),u={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c=i.type==="single"?u:void 0;return RH.default.createElement(RV,q({},c,a,{ref:t,onPressedChange:function(e){e?i.onItemActivate(o):i.onItemDeactivate(o)}}))}),R7=RZ,Se=R9;var St=j(require("react"),1);var Sn=require("class-variance-authority");var Sr=require("react/jsx-runtime"),So=(0,Sn.cva)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),Sa=St.forwardRef(function(e,t){var n=e.className,o=e.variant,a=e.size,i=h(e,["className","variant","size"]);return(0,Sr.jsx)(RB,p({ref:t,className:tS(So({variant:o,size:a,className:n}))},i))});Sa.displayName=RB.displayName;var Si=require("react/jsx-runtime"),Su=Rz.createContext({size:"default",variant:"default"}),Sc=Rz.forwardRef(function(e,t){var n=e.className,o=e.variant,a=e.size,i=e.children,u=h(e,["className","variant","size","children"]);return(0,Si.jsx)(R7,g(p({ref:t,className:tS("flex items-center justify-center gap-1",n)},u),{children:(0,Si.jsx)(Su.Provider,{value:{variant:o,size:a},children:i})}))});Sc.displayName=R7.displayName;var Sl=Rz.forwardRef(function(e,t){var n=e.className,o=e.children,a=e.variant,i=e.size,u=h(e,["className","children","variant","size"]);var c=Rz.useContext(Su);return(0,Si.jsx)(Se,g(p({ref:t,className:tS(So({variant:c.variant||a,size:c.size||i}),n)},u),{children:o}))});Sl.displayName=Se.displayName;var Ss=j(require("react"),1);var Sd=require("react");var Sf=w(V("Tooltip",[de]),2),Sv=Sf[0],Sp=Sf[1],Sm=de(),Sg="TooltipProvider",Sh=700,Sb="tooltip.open",Sw=w(Sv(Sg),2),Sy=Sw[0],Sx=Sw[1],SE=function(e){var t=e.__scopeTooltip,n=e.delayDuration,o=n===void 0?Sh:n,a=e.skipDelayDuration,i=a===void 0?300:a,u=e.disableHoverableContent,c=u===void 0?!1:u,l=e.children,s=w((0,Sd.useState)(!0),2),d=s[0],f=s[1],v=(0,Sd.useRef)(!1),p=(0,Sd.useRef)(0);return(0,Sd.useEffect)(function(){var e=p.current;return function(){return window.clearTimeout(e)}},[]),(0,Sd.createElement)(Sy,{scope:t,isOpenDelayed:d,delayDuration:o,onOpen:(0,Sd.useCallback)(function(){window.clearTimeout(p.current),f(!1)},[]),onClose:(0,Sd.useCallback)(function(){window.clearTimeout(p.current),p.current=window.setTimeout(function(){return f(!0)},i)},[i]),isPointerInTransitRef:v,onPointerInTransitChange:(0,Sd.useCallback)(function(e){v.current=e},[]),disableHoverableContent:c},l)},SC="Tooltip",SN=w(Sv(SC),2),S_=SN[0],SR=SN[1],SS=function(e){var t=e.__scopeTooltip,n=e.children,o=e.open,a=e.defaultOpen,i=a===void 0?!1:a,u=e.onOpenChange,c=e.disableHoverableContent,l=e.delayDuration,s=Sx(SC,e.__scopeTooltip),d=Sm(t),f=w((0,Sd.useState)(null),2),v=f[0],p=f[1],m=eS(),g=(0,Sd.useRef)(0),h=c!==null&&c!==void 0?c:s.disableHoverableContent,b=l!==null&&l!==void 0?l:s.delayDuration,y=(0,Sd.useRef)(!1),x=w(ec({prop:o,defaultProp:i,onChange:function(e){e?(s.onOpen(),document.dispatchEvent(new CustomEvent(Sb))):s.onClose(),u===null||u===void 0?void 0:u(e)}}),2),E=x[0],C=E===void 0?!1:E,N=x[1],_=(0,Sd.useMemo)(function(){return C?y.current?"delayed-open":"instant-open":"closed"},[C]),R=(0,Sd.useCallback)(function(){window.clearTimeout(g.current),y.current=!1,N(!0)},[N]),S=(0,Sd.useCallback)(function(){window.clearTimeout(g.current),N(!1)},[N]),D=(0,Sd.useCallback)(function(){window.clearTimeout(g.current),g.current=window.setTimeout(function(){y.current=!0,N(!0)},b)},[b,N]);return(0,Sd.useEffect)(function(){return function(){return window.clearTimeout(g.current)}},[]),(0,Sd.createElement)(dg,d,(0,Sd.createElement)(S_,{scope:t,contentId:m,open:C,stateAttribute:_,trigger:v,onTriggerChange:p,onTriggerEnter:(0,Sd.useCallback)(function(){s.isOpenDelayed?D():R()},[s.isOpenDelayed,D,R]),onTriggerLeave:(0,Sd.useCallback)(function(){h?S():window.clearTimeout(g.current)},[S,h]),onOpen:R,onClose:S,disableHoverableContent:h},n))},SD="TooltipTrigger",ST=(0,Sd.forwardRef)(function(e,t){var n=e.__scopeTooltip,o=h(e,["__scopeTooltip"]),a=SR(SD,n),i=Sx(SD,n),u=Sm(n),c=(0,Sd.useRef)(null),l=Y(t,c,a.onTriggerChange),s=(0,Sd.useRef)(!1),d=(0,Sd.useRef)(!1),f=(0,Sd.useCallback)(function(){return s.current=!1},[]);return(0,Sd.useEffect)(function(){return function(){return document.removeEventListener("pointerup",f)}},[f]),(0,Sd.createElement)(dh,q({asChild:!0},u),(0,Sd.createElement)(ev.button,q({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},o,{ref:l,onPointerMove:eo(e.onPointerMove,function(e){e.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:eo(e.onPointerLeave,function(){a.onTriggerLeave(),d.current=!1}),onPointerDown:eo(e.onPointerDown,function(){s.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:eo(e.onFocus,function(){s.current||a.onOpen()}),onBlur:eo(e.onBlur,a.onClose),onClick:eo(e.onClick,a.onClose)})))}),SP="TooltipPortal",SM=w(Sv(SP,{forceMount:void 0}),2),Sk=SM[0],SO=SM[1];var SA="TooltipContent",Sj=(0,Sd.forwardRef)(function(e,t){var n=SO(SA,e.__scopeTooltip),o=e.forceMount,a=o===void 0?n.forceMount:o,i=e.side,u=i===void 0?"top":i,c=h(e,["forceMount","side"]),l=SR(SA,e.__scopeTooltip);return(0,Sd.createElement)(ex,{present:a||l.open},l.disableHoverableContent?(0,Sd.createElement)(Sz,q({side:u},c,{ref:t})):(0,Sd.createElement)(SI,q({side:u},c,{ref:t})))}),SI=(0,Sd.forwardRef)(function(e,t){var n=SR(SA,e.__scopeTooltip),o=Sx(SA,e.__scopeTooltip),a=(0,Sd.useRef)(null),i=Y(t,a),u=w((0,Sd.useState)(null),2),c=u[0],l=u[1],s=n.trigger,d=n.onClose,f=a.current,v=o.onPointerInTransitChange,p=(0,Sd.useCallback)(function(){l(null),v(!1)},[v]),m=(0,Sd.useCallback)(function(e,t){var n=e.currentTarget,o={x:e.clientX,y:e.clientY},a=SH(o,n.getBoundingClientRect()),i=SK(o,a),u=SV(t.getBoundingClientRect()),c=SW(x(i).concat(x(u)));l(c),v(!0)},[v]);return(0,Sd.useEffect)(function(){return function(){return p()}},[p]),(0,Sd.useEffect)(function(){if(s&&f){var e=function(e){return m(e,f)},t=function(e){return m(e,s)};return s.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),function(){s.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[s,f,m,p]),(0,Sd.useEffect)(function(){if(c){var e=function(e){var t=e.target,n={x:e.clientX,y:e.clientY},o=(s===null||s===void 0?void 0:s.contains(t))||(f===null||f===void 0?void 0:f.contains(t)),a=!SB(n,c);o?p():a&&(p(),d())};return document.addEventListener("pointermove",e),function(){return document.removeEventListener("pointermove",e)}}},[s,f,c,d,p]),(0,Sd.createElement)(Sz,q({},e,{ref:i}))}),SL=w(Sv(SC,{isInside:!1}),2),SF=SL[0],Sq=SL[1],Sz=(0,Sd.forwardRef)(function(e,t){var n=e.__scopeTooltip,o=e.children,a=e["aria-label"],i=e.onEscapeKeyDown,u=e.onPointerDownOutside,c=h(e,["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"]),l=SR(SA,n),s=Sm(n),d=l.onClose;return(0,Sd.useEffect)(function(){return document.addEventListener(Sb,d),function(){return document.removeEventListener(Sb,d)}},[d]),(0,Sd.useEffect)(function(){if(l.trigger){var e=function(e){var t=e.target;t!=null&&t.contains(l.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),function(){return window.removeEventListener("scroll",e,{capture:!0})}}},[l.trigger,d]),(0,Sd.createElement)(tB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:function(e){return e.preventDefault()},onDismiss:d},(0,Sd.createElement)(db,q({"data-state":l.stateAttribute},s,c,{ref:t,style:g(p({},c.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"})}),(0,Sd.createElement)(ee,null,o),(0,Sd.createElement)(SF,{scope:n,isInside:!0},(0,Sd.createElement)(hx,{id:l.contentId,role:"tooltip"},a||o))))});function SH(e,t){var n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,a,i)){case i:return"left";case a:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function SK(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;var o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function SV(e){var t=e.top,n=e.right,o=e.bottom,a=e.left;return[{x:a,y:t},{x:n,y:t},{x:n,y:o},{x:a,y:o}]}function SB(e,t){var n=e.x,o=e.y,a=!1;for(var i=0,u=t.length-1;io!=d>o&&n<(s-c)*(o-l)/(d-l)+c&&(a=!a)}return a}function SW(e){var t=e.slice();return t.sort(function(e,t){return e.xt.x?1:e.yt.y?1:0}),SU(t)}function SU(e){if(e.length<=1)return e.slice();var t=[];for(var n=0;n=2;){var a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();var u=[];for(var c=e.length-1;c>=0;c--){var l=e[c];for(;u.length>=2;){var s=u[u.length-1],d=u[u.length-2];if((s.x-d.x)*(l.y-d.y)>=(s.y-d.y)*(l.x-d.x))u.pop();else break}u.push(l)}return u.pop(),t.length===1&&u.length===1&&t[0].x===u[0].x&&t[0].y===u[0].y?t:t.concat(u)}var SG=SE,SX=SS,SY=ST;var SZ=Sj;var S$=require("react/jsx-runtime"),SJ=SG,SQ=SX,S0=SY,S1=Ss.forwardRef(function(e,t){var n=e.className,o=e.sideOffset,a=o===void 0?4:o,i=h(e,["className","sideOffset"]);return(0,S$.jsx)(SZ,p({ref:t,sideOffset:a,className:tS("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},i))});S1.displayName=SZ.displayName;var S2="4.0.0-alpha.5";var S5=S2;0&&(module.exports={Accordion:Accordion,AccordionContent:AccordionContent,AccordionItem:AccordionItem,AccordionTrigger:AccordionTrigger,Alert:Alert,AlertDescription:AlertDescription,AlertDialog:AlertDialog,AlertDialogAction:AlertDialogAction,AlertDialogCancel:AlertDialogCancel,AlertDialogContent:AlertDialogContent,AlertDialogDescription:AlertDialogDescription,AlertDialogFooter:AlertDialogFooter,AlertDialogHeader:AlertDialogHeader,AlertDialogOverlay:AlertDialogOverlay,AlertDialogPortal:AlertDialogPortal,AlertDialogTitle:AlertDialogTitle,AlertDialogTrigger:AlertDialogTrigger,AlertTitle:AlertTitle,AspectRatio:AspectRatio,Avatar:Avatar,AvatarFallback:AvatarFallback,AvatarImage:AvatarImage,Badge:Badge,Breadcrumb:Breadcrumb,BreadcrumbEllipsis:BreadcrumbEllipsis,BreadcrumbItem:BreadcrumbItem,BreadcrumbLink:BreadcrumbLink,BreadcrumbList:BreadcrumbList,BreadcrumbPage:BreadcrumbPage,BreadcrumbSeparator:BreadcrumbSeparator,Button:Button,Calendar:Calendar,Card:Card,CardContent:CardContent,CardDescription:CardDescription,CardFooter:CardFooter,CardHeader:CardHeader,CardTitle:CardTitle,Carousel:Carousel,CarouselContent:CarouselContent,CarouselItem:CarouselItem,CarouselNext:CarouselNext,CarouselPrevious:CarouselPrevious,ChartContainer:ChartContainer,ChartLegend:ChartLegend,ChartLegendContent:ChartLegendContent,ChartStyle:ChartStyle,ChartTooltip:ChartTooltip,ChartTooltipContent:ChartTooltipContent,Checkbox:Checkbox,Collapsible:Collapsible,CollapsibleContent:CollapsibleContent,CollapsibleTrigger:CollapsibleTrigger,Command:Command,CommandDialog:CommandDialog,CommandEmpty:CommandEmpty,CommandGroup:CommandGroup,CommandInput:CommandInput,CommandItem:CommandItem,CommandList:CommandList,CommandSeparator:CommandSeparator,CommandShortcut:CommandShortcut,ContextMenu:ContextMenu,ContextMenuCheckboxItem:ContextMenuCheckboxItem,ContextMenuContent:ContextMenuContent,ContextMenuGroup:ContextMenuGroup,ContextMenuItem:ContextMenuItem,ContextMenuLabel:ContextMenuLabel,ContextMenuPortal:ContextMenuPortal,ContextMenuRadioGroup:ContextMenuRadioGroup,ContextMenuRadioItem:ContextMenuRadioItem,ContextMenuSeparator:ContextMenuSeparator,ContextMenuShortcut:ContextMenuShortcut,ContextMenuSub:ContextMenuSub,ContextMenuSubContent:ContextMenuSubContent,ContextMenuSubTrigger:ContextMenuSubTrigger,ContextMenuTrigger:ContextMenuTrigger,Dialog:Dialog,DialogClose:DialogClose,DialogContent:DialogContent,DialogDescription:DialogDescription,DialogFooter:DialogFooter,DialogHeader:DialogHeader,DialogOverlay:DialogOverlay,DialogPortal:DialogPortal,DialogTitle:DialogTitle,DialogTrigger:DialogTrigger,Drawer:Drawer,DrawerClose:DrawerClose,DrawerContent:DrawerContent,DrawerDescription:DrawerDescription,DrawerFooter:DrawerFooter,DrawerHeader:DrawerHeader,DrawerOverlay:DrawerOverlay,DrawerPortal:DrawerPortal,DrawerTitle:DrawerTitle,DrawerTrigger:DrawerTrigger,DropdownMenu:DropdownMenu,DropdownMenuCheckboxItem:DropdownMenuCheckboxItem,DropdownMenuContent:DropdownMenuContent,DropdownMenuGroup:DropdownMenuGroup,DropdownMenuItem:DropdownMenuItem,DropdownMenuLabel:DropdownMenuLabel,DropdownMenuPortal:DropdownMenuPortal,DropdownMenuRadioGroup:DropdownMenuRadioGroup,DropdownMenuRadioItem:DropdownMenuRadioItem,DropdownMenuSeparator:DropdownMenuSeparator,DropdownMenuShortcut:DropdownMenuShortcut,DropdownMenuSub:DropdownMenuSub,DropdownMenuSubContent:DropdownMenuSubContent,DropdownMenuSubTrigger:DropdownMenuSubTrigger,DropdownMenuTrigger:DropdownMenuTrigger,FileInput:FileInput,Form:Form,FormControl:FormControl,FormDescription:FormDescription,FormField:FormField,FormItem:FormItem,FormLabel:FormLabel,FormMessage:FormMessage,HoverCard:HoverCard,HoverCardContent:HoverCardContent,HoverCardTrigger:HoverCardTrigger,Input:Input,InputOTP:InputOTP,InputOTPGroup:InputOTPGroup,InputOTPSeparator:InputOTPSeparator,InputOTPSlot:InputOTPSlot,Label:Label,Menubar:Menubar,MenubarCheckboxItem:MenubarCheckboxItem,MenubarContent:MenubarContent,MenubarGroup:MenubarGroup,MenubarItem:MenubarItem,MenubarLabel:MenubarLabel,MenubarMenu:MenubarMenu,MenubarPortal:MenubarPortal,MenubarRadioGroup:MenubarRadioGroup,MenubarRadioItem:MenubarRadioItem,MenubarSeparator:MenubarSeparator,MenubarShortcut:MenubarShortcut,MenubarSub:MenubarSub,MenubarSubContent:MenubarSubContent,MenubarSubTrigger:MenubarSubTrigger,MenubarTrigger:MenubarTrigger,NavigationMenu:NavigationMenu,NavigationMenuContent:NavigationMenuContent,NavigationMenuIndicator:NavigationMenuIndicator,NavigationMenuItem:NavigationMenuItem,NavigationMenuLink:NavigationMenuLink,NavigationMenuList:NavigationMenuList,NavigationMenuTrigger:NavigationMenuTrigger,NavigationMenuViewport:NavigationMenuViewport,Pagination:Pagination,PaginationContent:PaginationContent,PaginationEllipsis:PaginationEllipsis,PaginationItem:PaginationItem,PaginationLink:PaginationLink,PaginationNext:PaginationNext,PaginationPrevious:PaginationPrevious,Popover:Popover,PopoverContent:PopoverContent,PopoverTrigger:PopoverTrigger,Progress:Progress,RadioGroup:RadioGroup,RadioGroupItem:RadioGroupItem,ResizableHandle:ResizableHandle,ResizablePanel:ResizablePanel,ResizablePanelGroup:ResizablePanelGroup,ScrollArea:ScrollArea,ScrollBar:ScrollBar,Select:Select,SelectContent:SelectContent,SelectGroup:SelectGroup,SelectItem:SelectItem,SelectLabel:SelectLabel,SelectScrollDownButton:SelectScrollDownButton,SelectScrollUpButton:SelectScrollUpButton,SelectSeparator:SelectSeparator,SelectTrigger:SelectTrigger,SelectValue:SelectValue,Separator:Separator,Sheet:Sheet,SheetClose:SheetClose,SheetContent:SheetContent,SheetDescription:SheetDescription,SheetFooter:SheetFooter,SheetHeader:SheetHeader,SheetOverlay:SheetOverlay,SheetPortal:SheetPortal,SheetTitle:SheetTitle,SheetTrigger:SheetTrigger,Skeleton:Skeleton,Slider:Slider,Sonner:Sonner,Switch:Switch,Table:Table,TableBody:TableBody,TableCaption:TableCaption,TableCell:TableCell,TableFooter:TableFooter,TableHead:TableHead,TableHeader:TableHeader,TableRow:TableRow,Tabs:Tabs,TabsContent:TabsContent,TabsList:TabsList,TabsTrigger:TabsTrigger,Textarea:Textarea,Toast:Toast,ToastAction:ToastAction,ToastClose:ToastClose,ToastDescription:ToastDescription,ToastProvider:ToastProvider,ToastTitle:ToastTitle,ToastViewport:ToastViewport,Toaster:Toaster,Toggle:Toggle,ToggleGroup:ToggleGroup,ToggleGroupItem:ToggleGroupItem,Tooltip:Tooltip,TooltipContent:TooltipContent,TooltipProvider:TooltipProvider,TooltipTrigger:TooltipTrigger,badgeVariants:badgeVariants,buttonVariants:buttonVariants,navigationMenuTriggerStyle:navigationMenuTriggerStyle,reducer:reducer,toast:toast,toggleVariants:toggleVariants,useFormField:useFormField,useToast:useToast,version:version});//# sourceMappingURL=index.cjs.map