@collective-intelligence/ui-react 0.1.27 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/components/icons/index.js +1 -1
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui-extensions/atoms/ThemeToggle/index.js +1 -1
- package/dist/components/ui-extensions/index.js +5 -5
- package/dist/components/ui-extensions/molecules/VideoPlayer/index.js +1 -1
- package/dist/{index-k2h122pf.js → index-0warxk1d.js} +2 -2
- package/dist/{index-cxjzg167.js → index-1qb5701q.js} +2 -2
- package/dist/index-3y40hfmd.js +2 -0
- package/dist/{index-dt6f1hvx.js → index-4d90e50j.js} +2 -2
- package/dist/index-50g897x2.js +42 -0
- package/dist/{index-t67ch826.js → index-58jcemv5.js} +1 -1
- package/dist/{index-vrj20h57.js → index-956qe6w8.js} +2 -2
- package/dist/{index-1ckm293n.js → index-a27yrhds.js} +2 -2
- package/dist/index-cx7rgb00.js +2 -0
- package/dist/{index-wqsh9yj5.js → index-dcmmdjnn.js} +2 -2
- package/dist/index-k8bsc1hv.js +2 -0
- package/dist/{index-way3rqhy.js → index-kgq1r8sg.js} +2 -2
- package/dist/{index-w7ba75b9.js → index-rvcf3zsv.js} +1 -1
- package/dist/index-s18na57g.js +6 -0
- package/dist/{index-er3rvnn2.js → index-t5c4bv5n.js} +2 -2
- package/dist/resources.d.ts +44 -1
- package/dist/resources.js +1 -1
- package/package.json +2 -2
- package/dist/index-9b0ygc2v.js +0 -2
- package/dist/index-gzn19hjr.js +0 -2
- package/dist/index-x5ks3173.js +0 -42
- package/dist/index-yrsgjmrw.js +0 -6
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Nr,
|
|
2
|
+
import{Nr,eo}from"../../../../index-t5c4bv5n.js";import{e}from"../../../../index-fwsd4nes.js";eo(import.meta.url,["0s134pv3","dtzc3f2q","t5c4bv5n","fwsd4nes"],[["./index.js",2,3],["../../../../hls.light-dtzc3f2q.js"],["../../../../index-t5c4bv5n.js"],["../../../../index-fwsd4nes.js"]],0);
|
|
3
3
|
import{useEffect as h,useRef as H}from"react";var E=["application/vnd.apple.mpegurl","application/x-mpegurl"];var w={fetch:async(t,n)=>await globalThis.fetch(t,n),loadHls:async()=>{let{default:t}=await (Nr("dtzc3f2q"),import("../../../../hls.light-dtzc3f2q.js"));return t}},b=(t)=>{let n=new URL(t,document.baseURI),r=n.pathname.indexOf("/media/");if(r===-1)return;return{origin:n.origin,pathPrefix:n.pathname.slice(0,r+7),url:n}},f=(t,n)=>{let r=new URL(n,t.url);return r.origin===t.origin&&r.pathname.startsWith(t.pathPrefix)},u=(t)=>{let n=new URL(t.url);return n.searchParams.set("stream","hls"),n.href},m=(t)=>{let n=t.headers.get("content-type")?.toLowerCase()??"";return t.ok&&E.some((r)=>n.startsWith(r))},y=async(t)=>{try{await t.body?.cancel()}catch{}},L=async(t)=>{try{await t.play()}catch{}},g=(t,n,r,s)=>{let{signal:i,video:o}=n,a=!1,l,c=(d)=>{l=new t(d),l.on(t.Events.ERROR,(D,p)=>{if(a||p.details!==t.ErrorDetails.FRAG_LOAD_ERROR||p.response?.code!==403)return;a=!0;let S=!o.paused,v=o.currentTime;if(l.destroy(),c({startPosition:v,xhrSetup:s}),S)L(o)}),l.loadSource(r),l.attachMedia(o)};c({xhrSetup:s}),i.addEventListener("abort",()=>l.destroy(),{once:!0})},M=(t,n)=>async(r,s)=>{if(!f(t,s))return;let i=await n();if(r.readyState===r.UNSENT)r.open("GET",s,!0);for(let[o,a]of Object.entries(i))r.setRequestHeader(o,a)},P=(t)=>(n,r)=>{n.withCredentials=f(t,r)},T=async(t,n,r,s)=>{let i=async(l)=>{let c=await s.fetch(l,{credentials:"omit",headers:await n(),signal:t.signal});return y(c),t.signal.throwIfAborted(),c},o=u(r),a=await i(o);if(m(a)){let l=await s.loadHls();if(t.signal.throwIfAborted(),l.isSupported()){g(l,t,o,M(r,n));return}a=await i(t.src)}t.video.src=a.ok?a.url:t.src},x=async(t,n,r)=>{let s=u(n),i=await r.fetch(s,{credentials:"include",redirect:"manual",signal:t.signal});if(y(i),t.signal.throwIfAborted(),m(i)){let o=await r.loadHls();if(t.signal.throwIfAborted(),o.isSupported()){g(o,t,s,P(n));return}if(t.video.canPlayType("application/vnd.apple.mpegurl")!==""){t.video.src=s;return}}t.video.src=t.src},R=async(t,n=w)=>{let{requestHeaders:r,signal:s,src:i,video:o}=t;try{let a=b(i);if(a===void 0){o.src=i;return}await(r===void 0?x(t,a,n):T(t,r,a,n))}catch{if(!s.aborted)o.src=i}};import{jsx as A}from"react/jsx-runtime";var O=({src:t,requestHeaders:n,className:r,classes:s,...i})=>{let o=H(null),a=H(n),l=n!==void 0;return h(()=>{a.current=n},[n]),h(()=>{let c=o.current;if(c===null)return;let d=new AbortController;return R({requestHeaders:l?async()=>await a.current?.()??{}:void 0,signal:d.signal,src:t,video:c}),()=>d.abort()},[t,l]),A("video",{ref:o,className:e("block w-full",s?.root,r),...i})},C=O;export{C as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{forwardRef as dt,createElement as lt}from"react";var R=(...e)=>e.filter((a,o,d)=>Boolean(a)&&a.trim()!==""&&d.indexOf(a)===o).join(" ").trim();var Qe=(e)=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Je=(e)=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,d)=>d?d.toUpperCase():o.toLowerCase());var G=(e)=>{let a=Je(e);return a.charAt(0).toUpperCase()+a.slice(1)};import{forwardRef as ot,createElement as je}from"react";var Ye={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var _e=(e)=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var $e=ot(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:d,className:v="",children:
|
|
2
|
-
export{t,
|
|
1
|
+
import{forwardRef as dt,createElement as lt}from"react";var R=(...e)=>e.filter((a,o,d)=>Boolean(a)&&a.trim()!==""&&d.indexOf(a)===o).join(" ").trim();var Qe=(e)=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Je=(e)=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,d)=>d?d.toUpperCase():o.toLowerCase());var G=(e)=>{let a=Je(e);return a.charAt(0).toUpperCase()+a.slice(1)};import{forwardRef as ot,createElement as je}from"react";var Ye={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var _e=(e)=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var $e=ot(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:d,className:v="",children:r,iconNode:at,...Ze},et)=>je("svg",{ref:et,...Ye,width:a,height:a,stroke:e,strokeWidth:d?Number(o)*24/Number(a):o,className:R("lucide",v),...!r&&!_e(Ze)&&{"aria-hidden":"true"},...Ze},[...at.map(([tt,ut])=>je(tt,ut)),...Array.isArray(r)?r:[r]]));var t=(e,a)=>{let o=dt(({className:d,...v},r)=>lt($e,{ref:r,iconNode:a,className:R(`lucide-${Qe(G(e))}`,`lucide-${e}`,d),...v}));return o.displayName=G(e),o};var ft=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],p=t("check",ft);var rt=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],m=t("chevron-right",rt);var st=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],w=t("circle",st);var ko=t("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{height:"12",key:"mk3on5",width:"4",x:"2",y:"9"}],["circle",{cx:"4",cy:"4",key:"bt5ra8",r:"2"}]]);
|
|
2
|
+
export{t,p,m,w,ko};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./index-
|
|
2
|
-
export{ut,T,dt,Oe,
|
|
1
|
+
import{t}from"./index-0warxk1d.js";var e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ut=t("circle-alert",e);var c=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],T=t("loader-circle",c);var o=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],dt=t("arrow-left",o);var r=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Oe=t("arrow-right",r);var a=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Rr=t("chevron-up",a);var i=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Fe=t("chevrons-up-down",i);var n=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],ft=t("grip-vertical",n);var d=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Be=t("search",d);
|
|
2
|
+
export{ut,T,dt,Oe,Rr,Fe,ft,Be};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,P,f,r,i,o,A,cr,q,ce,l,c,K,d,s,fe,oe}from"./index-50g897x2.js";import{x}from"./index-4d90e50j.js";import{e}from"./index-fwsd4nes.js";import*as D from"react";import{Fragment as Ae,jsx as R}from"react/jsx-runtime";var Se=Object.defineProperty,w=(n,t)=>Se(n,"name",{value:t,configurable:!0}),ue="Dialog",[_e,rr]=i(ue),[Me,I]=_e(ue),F=w((n)=>{let{__scopeDialog:t,children:m,open:u,defaultOpen:v,onOpenChange:g,modal:p=!0}=n,C=D.useRef(null),O=D.useRef(null),[L,S]=s({prop:u,defaultProp:v??!1,onChange:g,caller:ue}),[W,Y]=D.useState(0),[ae,re]=D.useState(0);return R(Me,{scope:t,triggerRef:C,contentRef:O,contentId:c(),titleId:c(),descriptionId:c(),titlePresent:W>0,descriptionPresent:ae>0,setTitleCount:Y,setDescriptionCount:re,open:L,onOpenChange:S,onOpenToggle:D.useCallback(()=>S((ie)=>!ie),[S]),modal:p,children:m})},"Dialog"),ke="DialogTrigger",he=D.forwardRef(w(function(t,m){let{__scopeDialog:u,...v}=t,g=I(ke,u),p=a(m,g.triggerRef);return R(o.button,{type:"button","aria-haspopup":"dialog","aria-expanded":g.open,"aria-controls":g.open?g.contentId:void 0,"data-state":le(g.open),...v,ref:p,onClick:r(t.onClick,g.onOpenToggle)})},"DialogTrigger")),Oe="DialogPortal",[Le,we]=_e(Oe,{forceMount:void 0}),B=w((n)=>{let{__scopeDialog:t,forceMount:m,children:u,container:v}=n,g=I(Oe,t);return R(Le,{scope:t,forceMount:m,children:D.Children.map(u,(p)=>R(d,{present:m||g.open,children:R(K,{asChild:!0,container:v,children:p})}))})},"DialogPortal"),pe="DialogOverlay",U=D.forwardRef(w(function(t,m){let u=we(pe,t.__scopeDialog),{forceMount:v=u.forceMount,...g}=t,p=I(pe,t.__scopeDialog);return p.modal?R(d,{present:v||p.open,children:R(ze,{...g,ref:m})}):null},"DialogOverlay")),Fe=b("DialogOverlay.RemoveScroll"),ze=D.forwardRef(w(function(t,m){let{__scopeDialog:u,...v}=t,g=I(pe,u),p=cr(),C=a(m,p);return R(oe,{as:Fe,allowPinchZoom:!0,shards:[g.contentRef],children:R(o.div,{"data-state":le(g.open),...v,ref:C,style:{pointerEvents:"auto",...v.style}})})},"DialogOverlayImpl")),Z="DialogContent",V=D.forwardRef(w(function(t,m){let u=we(Z,t.__scopeDialog),{forceMount:v=u.forceMount,...g}=t,p=I(Z,t.__scopeDialog);return R(d,{present:v||p.open,children:p.modal?R(Ge,{...g,ref:m}):R(He,{...g,ref:m})})},"DialogContent")),Ge=D.forwardRef(w(function(t,m){let u=I(Z,t.__scopeDialog),v=D.useRef(null),g=a(m,u.contentRef,v);return D.useEffect(()=>{let p=v.current;if(p)return fe(p)},[]),R(Te,{...t,ref:g,trapFocus:u.open,disableOutsidePointerEvents:u.open,onCloseAutoFocus:r(t.onCloseAutoFocus,(p)=>{p.preventDefault(),u.triggerRef.current?.focus()}),onPointerDownOutside:r(t.onPointerDownOutside,(p)=>{let C=p.detail.originalEvent,O=C.button===0&&C.ctrlKey===!0;if(C.button===2||O)p.preventDefault()}),onFocusOutside:r(t.onFocusOutside,(p)=>p.preventDefault())})},"DialogContentModal")),He=D.forwardRef(w(function(t,m){let u=I(Z,t.__scopeDialog),v=D.useRef(!1),g=D.useRef(!1);return R(Te,{...t,ref:m,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(p)=>{if(t.onCloseAutoFocus?.(p),!p.defaultPrevented){if(!v.current)u.triggerRef.current?.focus();p.preventDefault()}v.current=!1,g.current=!1},onInteractOutside:(p)=>{if(t.onInteractOutside?.(p),!p.defaultPrevented){if(v.current=!0,p.detail.originalEvent.type==="pointerdown")g.current=!0}let C=p.target;if(u.triggerRef.current?.contains(C))p.preventDefault();if(p.detail.originalEvent.type==="focusin"&&g.current)p.preventDefault()}})},"DialogContentNonModal")),Te=D.forwardRef(w(function(t,m){let{__scopeDialog:u,trapFocus:v,onOpenAutoFocus:g,onCloseAutoFocus:p,...C}=t,O=I(Z,u);return q(),R(Ae,{children:R(ce,{asChild:!0,loop:!0,trapped:v,onMountAutoFocus:g,onUnmountAutoFocus:p,children:R(A,{role:"dialog",id:O.contentId,"aria-describedby":O.descriptionPresent?O.descriptionId:void 0,"aria-labelledby":O.titlePresent?O.titleId:void 0,"data-state":le(O.open),...C,ref:m,deferPointerDownOutside:!0,onDismiss:()=>O.onOpenChange(!1)})})})},"DialogContentImpl")),Be="DialogTitle",ge=D.forwardRef(w(function(t,m){let{__scopeDialog:u,...v}=t,g=I(Be,u),{setTitleCount:p}=g;return l(()=>(p((C)=>C+1),()=>p((C)=>C-1)),[p]),R(o.h2,{id:g.titleId,...v,ref:m})},"DialogTitle")),Ve="DialogDescription",ve=D.forwardRef(w(function(t,m){let{__scopeDialog:u,...v}=t,g=I(Ve,u),{setDescriptionCount:p}=g;return l(()=>(p((C)=>C+1),()=>p((C)=>C-1)),[p]),R(o.p,{id:g.descriptionId,...v,ref:m})},"DialogDescription")),je="DialogClose",H=D.forwardRef(w(function(t,m){let{__scopeDialog:u,...v}=t,g=I(je,u);return R(o.button,{type:"button",...v,ref:m,onClick:r(t.onClick,()=>g.onOpenChange(!1))})},"DialogClose"));function le(n){return n?"open":"closed"}w(le,"getState");import{jsx as T,jsxs as me}from"react/jsx-runtime";var k=({...n})=>T(F,{"data-slot":"dialog",...n}),vo=({...n})=>T(he,{"data-slot":"dialog-trigger",...n}),Zr=({...n})=>T(B,{"data-slot":"dialog-portal",...n}),xo=({...n})=>T(H,{"data-slot":"dialog-close",...n}),Qr=({className:n,...t})=>T(U,{"data-slot":"dialog-overlay",className:e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...t}),Ze={lg:"sm:max-w-2xl",md:"sm:max-w-lg",xl:"sm:max-w-4xl"},$e={content:"",viewport:"max-h-[calc(100vh-2rem)]"},E=({className:n,children:t,fixedBottom:m=!1,height:u="viewport",size:v="md",showCloseButton:g=!0,...p})=>me(Zr,{"data-slot":"dialog-portal",children:[T(Qr,{}),me(V,{"data-slot":"dialog-content",className:e("bg-background 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 fixed top-[50%] left-[50%] z-50 flex flex-col w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg outline-hidden duration-200",Ze[v],$e[u],m&&"[&_[data-slot=dialog-footer]]:sticky [&_[data-slot=dialog-footer]]:bottom-0 [&_[data-slot=dialog-footer]]:z-10 [&_[data-slot=dialog-footer]]:-mx-6 [&_[data-slot=dialog-footer]]:border-t [&_[data-slot=dialog-footer]]:bg-background [&_[data-slot=dialog-footer]]:px-6 [&_[data-slot=dialog-footer]]:py-4 [&_[data-slot=form-actions]]:sticky [&_[data-slot=form-actions]]:bottom-0 [&_[data-slot=form-actions]]:z-10 [&_[data-slot=form-actions]]:-mx-6 [&_[data-slot=form-actions]]:border-t [&_[data-slot=form-actions]]:bg-background [&_[data-slot=form-actions]]:px-6 [&_[data-slot=form-actions]]:py-4",n),...p,children:[t,g?me(H,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[T(x,{}),T("span",{className:"sr-only",children:"Close"})]}):null]})]}),bo=({className:n,...t})=>T("div",{"data-slot":"dialog-body",className:e("flex-1 min-h-0 flex flex-col",n),...t}),G=({className:n,...t})=>T("div",{"data-slot":"dialog-header",className:e("flex flex-col gap-2 text-center sm:text-left",n),...t}),or=({className:n,...t})=>T("div",{"data-slot":"dialog-footer",className:e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",n),...t}),M=({className:n,...t})=>T(ge,{"data-slot":"dialog-title",className:e("text-lg leading-none font-semibold",n),...t}),Q=({className:n,...t})=>T(ve,{"data-slot":"dialog-description",className:e("text-muted-foreground text-sm",n),...t});import{jsx as qe}from"react/jsx-runtime";var h=({className:n,type:t,...m})=>qe("input",{type:t,"data-slot":"input",className:e("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),...m});import*as Ie from"react";import{jsx as Xe}from"react/jsx-runtime";var Ke=Object.defineProperty,Ue=(n,t)=>Ke(n,"name",{value:t,configurable:!0}),Ye=Ie.forwardRef(Ue(function(t,m){return Xe(o.label,{...t,ref:m,onMouseDown:(u)=>{if(u.target.closest("button, input, select, textarea"))return;if(t.onMouseDown?.(u),!u.defaultPrevented&&u.detail>1)u.preventDefault()}})},"Label")),Ne=Ye;import{jsx as Qe}from"react/jsx-runtime";var y=({className:n,...t})=>Qe(Ne,{"data-slot":"label",className:e("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...t});import{jsx as et}from"react/jsx-runtime";var Jr=f("inline-flex items-center justify-center rounded-full border px-2.5 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{defaultVariants:{variant:"default"},variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",mono:"border-transparent bg-(--bg-surface-alt)/70 text-(--text-secondary) font-mono text-[10.5px] tracking-tight",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",soft:"border-transparent bg-(--bg-accent-soft) text-(--accent) [a&]:hover:bg-(--bg-accent-soft)/80"}}}),z=({className:n,variant:t,asChild:m=!1,...u})=>et(m?P:"span",{"data-slot":"badge",className:e(Jr({variant:t}),n),...u});import*as _ from"react";import{jsx as j}from"react/jsx-runtime";var tt=Object.defineProperty,X=(n,t)=>tt(n,"name",{value:t,configurable:!0}),be="Collapsible",[ot,ar]=i(be),[at,Ce]=ot(be),rt=_.forwardRef(X(function(t,m){let{__scopeCollapsible:u,open:v,defaultOpen:g,disabled:p,onOpenChange:C,...O}=t,[L,S]=s({prop:v,defaultProp:g??!1,onChange:C,caller:be});return j(at,{scope:u,disabled:p,contentId:c(),open:L,onOpenToggle:_.useCallback(()=>S((W)=>!W),[S]),children:j(o.div,{"data-state":se(L),"data-disabled":p?"":void 0,...O,ref:m})})},"Collapsible")),it="CollapsibleTrigger",De=_.forwardRef(X(function(t,m){let{__scopeCollapsible:u,...v}=t,g=Ce(it,u);return j(o.button,{type:"button","aria-controls":g.open?g.contentId:void 0,"aria-expanded":g.open||!1,"data-state":se(g.open),"data-disabled":g.disabled?"":void 0,disabled:g.disabled,...v,ref:m,onClick:r(t.onClick,g.onOpenToggle)})},"CollapsibleTrigger")),Ee="CollapsibleContent",Re=_.forwardRef(X(function(t,m){let{forceMount:u,...v}=t,g=Ce(Ee,t.__scopeCollapsible);return j(d,{present:u||g.open,children:({present:p})=>j(nt,{...v,ref:m,present:p})})},"CollapsibleContent")),nt=_.forwardRef(X(function(t,m){let{__scopeCollapsible:u,present:v,children:g,...p}=t,C=Ce(Ee,u),[O,L]=_.useState(v),S=_.useRef(null),W=a(m,S),Y=_.useRef(0),ae=Y.current,re=_.useRef(0),ie=re.current,de=C.open||O,xe=_.useRef(de),ne=_.useRef(void 0);return _.useEffect(()=>{let N=requestAnimationFrame(()=>xe.current=!1);return()=>cancelAnimationFrame(N)},[]),l(()=>{let N=S.current;if(N){ne.current=ne.current||{transitionDuration:N.style.transitionDuration,animationName:N.style.animationName},N.style.transitionDuration="0s",N.style.animationName="none";let ye=N.getBoundingClientRect();if(Y.current=ye.height,re.current=ye.width,!xe.current)N.style.transitionDuration=ne.current.transitionDuration,N.style.animationName=ne.current.animationName;L(v)}},[C.open,v]),j(o.div,{"data-state":se(C.open),"data-disabled":C.disabled?"":void 0,id:C.contentId,hidden:!de,...p,ref:W,style:{["--radix-collapsible-content-height"]:ae?`${ae}px`:void 0,["--radix-collapsible-content-width"]:ie?`${ie}px`:void 0,...t.style},children:de&&g})},"CollapsibleContentImpl"));function se(n){return n?"open":"closed"}X(se,"getState");var $t=rt,Ar=De,Dr=Re;import{jsx as Pe}from"react/jsx-runtime";var J=({...n})=>Pe($t,{"data-slot":"collapsible",...n}),ee=({...n})=>Pe(De,{"data-slot":"collapsible-trigger",...n}),te=({...n})=>Pe(Re,{"data-slot":"collapsible-content",...n});
|
|
2
|
+
export{rr,F,he,B,U,V,ge,ve,H,k,vo,Zr,xo,Qr,E,bo,G,or,M,Q,h,y,Jr,z,ar,$t,Ar,Dr,J,ee,te};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./index-
|
|
2
|
-
export{v,
|
|
1
|
+
import{t}from"./index-0warxk1d.js";var o=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],v=t("chevron-down",o);var e=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],x=t("x",e);
|
|
2
|
+
export{v,x};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{Wt,e}from"./index-fwsd4nes.js";import*as ze from"react";import*as Jr from"react";var Uc=Object.defineProperty,Zn=(t,m)=>Uc(t,"name",{value:m,configurable:!0});function Xn(t,m){if(typeof t==="function")return t(m);else if(t!==null&&t!==void 0)t.current=m}Zn(Xn,"setRef");function xe(...t){return(m)=>{let p=!1,h=t.map((v)=>{let y=Xn(v,m);if(!p&&typeof y=="function")p=!0;return y});if(p)return()=>{for(let v=0;v<h.length;v++){let y=h[v];if(typeof y=="function")y();else Xn(t[v],null)}}}}Zn(xe,"composeRefs");function a(...t){return Jr.useCallback(xe(...t),t)}Zn(a,"useComposedRefs");var Gc=Object.defineProperty,nt=(t,m)=>Gc(t,"name",{value:m,configurable:!0});function b(t){let m=ze.forwardRef((p,h)=>{let{children:v,...y}=p,R=null,w=!1,E=[];if(qn(v)&&typeof yn==="function")v=yn(v._payload);if(ze.Children.forEach(v,(M)=>{if(ro(M)){w=!0;let T=M,L="child"in T.props?T.props.child:T.props.children;if(qn(L)&&typeof yn==="function")L=yn(L._payload);R=Kc(T,L),E.push(R?.props?.children)}else E.push(M)}),R)R=ze.cloneElement(R,void 0,E);else if(!w&&ze.Children.count(v)===1&&ze.isValidElement(v))R=v;let I=R?no(R):void 0,D=a(h,I);if(!R){if(v||v===0)throw Error(w?Zc(t):Xc(t));return v}let x=to(y,R.props??{});if(R.type!==ze.Fragment)x.ref=h?D:I;return ze.cloneElement(R,x)});return m.displayName=`${t}.Slot`,m}nt(b,"createSlot");var P=b("Slot"),eo=Symbol.for("radix.slottable");function lr(t){let m=nt((p)=>("child"in p)?p.children(p.child):p.children,"Slottable");return m.displayName=`${t}.Slottable`,m.__radixId=eo,m}nt(lr,"createSlottable");var Kc=nt((t,m)=>{if("child"in t.props){let p=t.props.child;if(!ze.isValidElement(p))return null;return ze.cloneElement(p,void 0,t.props.children(p.props.children))}return ze.isValidElement(m)?m:null},"getSlottableElementFromSlottable");function to(t,m){let p={...m};for(let h in m){let v=t[h],y=m[h];if(/^on[A-Z]/.test(h)){if(v&&y)p[h]=(...w)=>{let E=y(...w);return v(...w),E};else if(v)p[h]=v}else if(h==="style")p[h]={...v,...y};else if(h==="className")p[h]=[v,y].filter(Boolean).join(" ")}return{...t,...p}}nt(to,"mergeProps");function no(t){let m=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,p=m&&"isReactWarning"in m&&m.isReactWarning;if(p)return t.ref;if(m=Object.getOwnPropertyDescriptor(t,"ref")?.get,p=m&&"isReactWarning"in m&&m.isReactWarning,p)return t.props.ref;return t.props.ref||t.ref}nt(no,"getElementRef");function ro(t){return ze.isValidElement(t)&&typeof t.type==="function"&&"__radixId"in t.type&&t.type.__radixId===eo}nt(ro,"isSlottable");var Yc=Symbol.for("react.lazy");function qn(t){return t!=null&&typeof t==="object"&&"$$typeof"in t&&t.$$typeof===Yc&&"_payload"in t&&oo(t._payload)}nt(qn,"isLazyComponent");function oo(t){return typeof t==="object"&&t!==null&&"then"in t}nt(oo,"isPromiseLike");var Xc=nt((t)=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Zc=nt((t)=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),yn=ze[" use ".trim().toString()];var io=(t)=>typeof t==="boolean"?`${t}`:t===0?"0":t,co=Wt,f=(t,m)=>(p)=>{var h;if((m===null||m===void 0?void 0:m.variants)==null)return co(t,p===null||p===void 0?void 0:p.class,p===null||p===void 0?void 0:p.className);let{variants:v,defaultVariants:y}=m,R=Object.keys(v).map((I)=>{let D=p===null||p===void 0?void 0:p[I],x=y===null||y===void 0?void 0:y[I];if(D===null)return null;let M=io(D)||io(x);return v[I][M]}),w=p&&Object.entries(p).reduce((I,D)=>{let[x,M]=D;if(M===void 0)return I;return I[x]=M,I},{}),E=m===null||m===void 0?void 0:(h=m.compoundVariants)===null||h===void 0?void 0:h.reduce((I,D)=>{let{class:x,className:M,...T}=D;return Object.entries(T).every((L)=>{let[N,F]=L;return Array.isArray(F)?F.includes({...y,...w}[N]):{...y,...w}[N]===F})?[...I,x,M]:I},[]);return co(t,R,E,p===null||p===void 0?void 0:p.class,p===null||p===void 0?void 0:p.className)};import{jsx as qc}from"react/jsx-runtime";var W=f("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",icon:"size-9",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5"},variant:{default:"bg-primary !text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80"}}}),n=({className:t,variant:m,size:p,asChild:h=!1,...v})=>qc(h?P:"button",{"data-slot":"button",className:e(W({className:t,size:p,variant:m})),...v});var re=!1;var Qc=Object.defineProperty,Vt=(t,m)=>Qc(t,"name",{value:m,configurable:!0}),so=!!(typeof window<"u"&&window.document&&window.document.createElement);function r(t,m,{checkForDefaultPrevented:p=!0}={}){return Vt(function(v){if(t?.(v),p===!1||!v||!v.defaultPrevented)return m?.(v)},"handleEvent")}Vt(r,"composeEventHandlers");function Jc(t){if(!so)throw Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}Vt(Jc,"getOwnerWindow");function Qn(t){if(!so)throw Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}Vt(Qn,"getOwnerDocument");function ao(t,m=!1){let{activeElement:p}=Qn(t);if(!p?.nodeName)return null;if(uo(p)&&p.contentDocument)return ao(p.contentDocument.body,m);if(m){let h=p.getAttribute("aria-activedescendant");if(h){let v=Qn(p).getElementById(h);if(v)return v}}return p}Vt(ao,"getActiveElement");function uo(t){return t.tagName==="IFRAME"}Vt(uo,"isFrame");import*as Je from"react";import{jsx as lo}from"react/jsx-runtime";var es=Object.defineProperty,Qe=(t,m)=>es(t,"name",{value:m,configurable:!0});function ts(t,m){let p=Je.createContext(m);p.displayName=t+"Context";let h=Qe((y)=>{let{children:R,...w}=y,E=Je.useMemo(()=>w,Object.values(w));return lo(p.Provider,{value:E,children:R})},"Provider");h.displayName=t+"Provider";function v(y,R={}){let{optional:w=!1}=R,E=Je.useContext(p);if(E)return E;if(m!==void 0)return m;if(w)return;throw Error(`\`${y}\` must be used within \`${t}\``)}return Qe(v,"useContext"),[h,v]}Qe(ts,"createContext");function i(t,m=[]){let p=[];function h(y,R){let w=Je.createContext(R);w.displayName=y+"Context";let E=p.length;p=[...p,R];let I=Qe((x)=>{let{scope:M,children:T,...L}=x,N=M?.[t]?.[E]||w,F=Je.useMemo(()=>L,Object.values(L));return lo(N.Provider,{value:F,children:T})},"Provider");I.displayName=y+"Provider";function D(x,M,T={}){let{optional:L=!1}=T,N=M?.[t]?.[E]||w,F=Je.useContext(N);if(F)return F;if(R!==void 0)return R;if(L)return;throw Error(`\`${x}\` must be used within \`${y}\``)}return Qe(D,"useContext"),[I,D]}Qe(h,"createContext");let v=Qe(()=>{let y=p.map((R)=>Je.createContext(R));return Qe(function(w){let E=w?.[t]||y;return Je.useMemo(()=>({[`__scope${t}`]:{...w,[t]:E}}),[w,E])},"useScope")},"createScope");return v.scopeName=t,[h,fo(v,...m)]}Qe(i,"createContextScope");function fo(...t){let m=t[0];if(t.length===1)return m;let p=Qe(()=>{let h=t.map((v)=>({useScope:v(),scopeName:v.scopeName}));return Qe(function(y){let R=h.reduce((w,{useScope:E,scopeName:I})=>{let x=E(y)[`__scope${I}`];return{...w,...x}},{});return Je.useMemo(()=>({[`__scope${m.scopeName}`]:R}),[R])},"useComposedScopes")},"createScope");return p.scopeName=m.scopeName,p}Qe(fo,"composeContextScopes");import*as mo from"react";import*as po from"react-dom";import{jsx as os}from"react/jsx-runtime";var ns=Object.defineProperty,rs=(t,m)=>ns(t,"name",{value:m,configurable:!0}),is=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],o=is.reduce((t,m)=>{let p=b(`Primitive.${m}`),h=mo.forwardRef((v,y)=>{let{asChild:R,...w}=v,E=R?p:m;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return os(E,{...w,ref:y})});return h.displayName=`Primitive.${m}`,{...t,[m]:h}},{});function be(t,m){if(t)po.flushSync(()=>t.dispatchEvent(m))}rs(be,"dispatchDiscreteCustomEvent");import*as X from"react";import*as rt from"react";import{jsx as Jn}from"react/jsx-runtime";import*as Ze from"react";import{jsx as $t}from"react/jsx-runtime";var cs=Object.defineProperty,We=(t,m)=>cs(t,"name",{value:m,configurable:!0});function S(t){let m=t+"CollectionProvider",[p,h]=i(m),[v,y]=p(m,{collectionRef:{current:null},itemMap:new Map}),R=We((N)=>{let{scope:F,children:V}=N,k=rt.useRef(null),B=rt.useRef(new Map).current;return Jn(v,{scope:F,itemMap:B,collectionRef:k,children:V})},"CollectionProvider");R.displayName=m;let w=t+"CollectionSlot",E=b(w),I=rt.forwardRef((N,F)=>{let{scope:V,children:k}=N,B=y(w,V),z=a(F,B.collectionRef);return Jn(E,{ref:z,children:k})});I.displayName=w;let D=t+"CollectionItemSlot",x="data-radix-collection-item",M=b(D),T=rt.forwardRef((N,F)=>{let{scope:V,children:k,...B}=N,z=rt.useRef(null),H=a(F,z),U=y(D,V);return rt.useEffect(()=>(U.itemMap.set(z,{ref:z,...B}),()=>void U.itemMap.delete(z))),Jn(M,{...{[x]:""},ref:H,children:k})});T.displayName=D;function L(N){let F=y(t+"CollectionConsumer",N);return rt.useCallback(()=>{let k=F.collectionRef.current;if(!k)return[];let B=Array.from(k.querySelectorAll(`[${x}]`));return Array.from(F.itemMap.values()).sort((U,G)=>B.indexOf(U.ref.current)-B.indexOf(G.ref.current))},[F.collectionRef,F.itemMap])}return We(L,"useCollection"),[{Provider:R,Slot:I,ItemSlot:T},L,h]}We(S,"createCollection");var ho=new WeakMap,er=class t extends Map{static{We(this,"OrderedDict")}#e;constructor(m){super(m);this.#e=[...super.keys()],ho.set(this,!0)}set(m,p){if(ho.get(this))if(this.has(m))this.#e[this.#e.indexOf(m)]=m;else this.#e.push(m);return super.set(m,p),this}insert(m,p,h){let v=this.has(p),y=this.#e.length,R=nr(m),w=R>=0?R:y+R,E=w<0||w>=y?-1:w;if(E===this.size||v&&E===this.size-1||E===-1)return this.set(p,h),this;let I=this.size+(v?0:1);if(R<0)w++;let D=[...this.#e],x,M=!1;for(let T=w;T<I;T++)if(w===T){let L=D[T];if(D[T]===p)L=D[T+1];if(v)this.delete(p);x=this.get(L),this.set(p,h)}else{if(!M&&D[T-1]===p)M=!0;let L=D[M?T:T-1],N=x;x=this.get(L),this.delete(L),this.set(L,N)}return this}with(m,p,h){let v=new t(this);return v.insert(m,p,h),v}before(m){let p=this.#e.indexOf(m)-1;if(p<0)return;return this.entryAt(p)}setBefore(m,p,h){let v=this.#e.indexOf(m);if(v===-1)return this;return this.insert(v,p,h)}after(m){let p=this.#e.indexOf(m);if(p=p===-1||p===this.size-1?-1:p+1,p===-1)return;return this.entryAt(p)}setAfter(m,p,h){let v=this.#e.indexOf(m);if(v===-1)return this;return this.insert(v+1,p,h)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(m){let p=super.delete(m);if(p)this.#e.splice(this.#e.indexOf(m),1);return p}deleteAt(m){let p=this.keyAt(m);if(p!==void 0)return this.delete(p);return!1}at(m){let p=Rn(this.#e,m);if(p!==void 0)return this.get(p)}entryAt(m){let p=Rn(this.#e,m);if(p!==void 0)return[p,this.get(p)]}indexOf(m){return this.#e.indexOf(m)}keyAt(m){return Rn(this.#e,m)}from(m,p){let h=this.indexOf(m);if(h===-1)return;let v=h+p;if(v<0)v=0;if(v>=this.size)v=this.size-1;return this.at(v)}keyFrom(m,p){let h=this.indexOf(m);if(h===-1)return;let v=h+p;if(v<0)v=0;if(v>=this.size)v=this.size-1;return this.keyAt(v)}find(m,p){let h=0;for(let v of this){if(Reflect.apply(m,p,[v,h,this]))return v;h++}return}findIndex(m,p){let h=0;for(let v of this){if(Reflect.apply(m,p,[v,h,this]))return h;h++}return-1}filter(m,p){let h=[],v=0;for(let y of this){if(Reflect.apply(m,p,[y,v,this]))h.push(y);v++}return new t(h)}map(m,p){let h=[],v=0;for(let y of this)h.push([y[0],Reflect.apply(m,p,[y,v,this])]),v++;return new t(h)}reduce(...m){let[p,h]=m,v=0,y=h??this.at(0);for(let R of this){if(v===0&&m.length===1)y=R;else y=Reflect.apply(p,this,[y,R,v,this]);v++}return y}reduceRight(...m){let[p,h]=m,v=h??this.at(-1);for(let y=this.size-1;y>=0;y--){let R=this.at(y);if(y===this.size-1&&m.length===1)v=R;else v=Reflect.apply(p,this,[v,R,y,this])}return v}toSorted(m){let p=[...this.entries()].sort(m);return new t(p)}toReversed(){let m=new t;for(let p=this.size-1;p>=0;p--){let h=this.keyAt(p),v=this.get(h);m.set(h,v)}return m}toSpliced(...m){let p=[...this.entries()];return p.splice(...m),new t(p)}slice(m,p){let h=new t,v=this.size-1;if(m===void 0)return h;if(m<0)m=m+this.size;if(p!==void 0&&p>0)v=p-1;for(let y=m;y<=v;y++){let R=this.keyAt(y),w=this.get(R);h.set(R,w)}return h}every(m,p){let h=0;for(let v of this){if(!Reflect.apply(m,p,[v,h,this]))return!1;h++}return!0}some(m,p){let h=0;for(let v of this){if(Reflect.apply(m,p,[v,h,this]))return!0;h++}return!1}};function Rn(t,m){if("at"in Array.prototype)return Array.prototype.at.call(t,m);let p=vo(t,m);return p===-1?void 0:t[p]}We(Rn,"at");function vo(t,m){let p=t.length,h=nr(m),v=h>=0?h:p+h;return v<0||v>=p?-1:v}We(vo,"toSafeIndex");function nr(t){return t!==t||t===0?0:Math.trunc(t)}We(nr,"toSafeInteger");function ss(t){let m=t+"CollectionProvider",[p,h]=i(m),[v,y]=p(m,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new er,setItemMap:We(()=>{return},"setItemMap")}),R=We(({state:B,...z})=>B?$t(E,{...z,state:B}):$t(w,{...z}),"CollectionProvider");R.displayName=m;let w=We((B)=>{let z=F();return $t(E,{...B,state:z})},"CollectionInit");w.displayName=m+"Init";let E=We((B)=>{let{scope:z,children:H,state:U}=B,G=Ze.useRef(null),[J,Z]=Ze.useState(null),ne=a(G,Z),[he,ee]=U;return Ze.useEffect(()=>{if(!J)return;let ie=Ro(()=>{});return ie.observe(J,{childList:!0,subtree:!0}),()=>{ie.disconnect()}},[J]),$t(v,{scope:z,itemMap:he,setItemMap:ee,collectionRef:ne,collectionRefObject:G,collectionElement:J,children:H})},"CollectionProviderImpl");E.displayName=m+"Impl";let I=t+"CollectionSlot",D=b(I),x=Ze.forwardRef((B,z)=>{let{scope:H,children:U}=B,G=y(I,H),J=a(z,G.collectionRef);return $t(D,{ref:J,children:U})});x.displayName=I;let M=t+"CollectionItemSlot",T="data-radix-collection-item",L=b(M),N=Ze.forwardRef((B,z)=>{let{scope:H,children:U,...G}=B,J=Ze.useRef(null),[Z,ne]=Ze.useState(null),he=a(z,J,ne),ee=y(M,H),{setItemMap:ie}=ee,pe=Ze.useRef(G);if(!go(pe.current,G))pe.current=G;let je=pe.current;return Ze.useEffect(()=>{let ge=je;return ie((se)=>{if(!Z)return se;if(!se.has(Z))return se.set(Z,{...ge,element:Z}),se.toSorted(tr);return se.set(Z,{...ge,element:Z}).toSorted(tr)}),()=>{ie((se)=>{if(!Z||!se.has(Z))return se;return se.delete(Z),new er(se)})}},[Z,je,ie]),$t(L,{...{[T]:""},ref:he,children:U})});N.displayName=M;function F(){return Ze.useState(new er)}We(F,"useInitCollection");function V(B){let{itemMap:z}=y(t+"CollectionConsumer",B);return z}return We(V,"useCollection"),[{Provider:R,Slot:x,ItemSlot:N},{createCollectionScope:h,useCollection:V,useInitCollection:F}]}We(ss,"createCollection");function go(t,m){if(t===m)return!0;if(typeof t!=="object"||typeof m!=="object")return!1;if(t==null||m==null)return!1;let p=Object.keys(t),h=Object.keys(m);if(p.length!==h.length)return!1;for(let v of p){if(!Object.prototype.hasOwnProperty.call(m,v))return!1;if(t[v]!==m[v])return!1}return!0}We(go,"shallowEqual");function yo(t,m){return!!(m.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}We(yo,"isElementPreceding");function tr(t,m){return!t[1].element||!m[1].element?0:yo(t[1].element,m[1].element)?-1:1}We(tr,"sortByDocumentPosition");function Ro(t){return new MutationObserver((p)=>{for(let h of p)if(h.type==="childList"){t();return}})}We(Ro,"getChildListObserver");import*as wn from"react";import{jsx as yl}from"react/jsx-runtime";var as=Object.defineProperty,us=(t,m)=>as(t,"name",{value:m,configurable:!0}),ls=wn.createContext(void 0);function g(t){let m=wn.useContext(ls);return t||m||"ltr"}us(g,"useDirection");import*as ve from"react";import*as zt from"react";var fs=Object.defineProperty,ds=(t,m)=>fs(t,"name",{value:m,configurable:!0});function u(t){let m=zt.useRef(t);return zt.useEffect(()=>{m.current=t}),zt.useMemo(()=>(...p)=>m.current?.(...p),[])}ds(u,"useCallbackRef");import{jsx as ps}from"react/jsx-runtime";var ms=Object.defineProperty,Ve=(t,m)=>ms(t,"name",{value:m,configurable:!0}),rr="dismissableLayer.update",hs="dismissableLayer.pointerDownOutside",vs="dismissableLayer.focusOutside",wo,bo=ve.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),A=ve.forwardRef(Ve(function(m,p){let{disableOutsidePointerEvents:h=!1,deferPointerDownOutside:v=!1,onEscapeKeyDown:y,onPointerDownOutside:R,onFocusOutside:w,onInteractOutside:E,onDismiss:I,...D}=m,x=ve.useContext(bo),[M,T]=ve.useState(null),L=M?.ownerDocument??globalThis?.document,[,N]=ve.useState({}),F=a(p,T),V=Array.from(x.layers),[k]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),B=k?V.indexOf(k):-1,z=M?V.indexOf(M):-1,H=x.layersWithOutsidePointerEventsDisabled.size>0,U=z>=B,G=ve.useRef(!1),J=xo((ee)=>{if(R?.(ee),E?.(ee),!ee.defaultPrevented)I?.()},{ownerDocument:L,deferPointerDownOutside:v,isDeferredPointerDownOutsideRef:G,dismissableSurfaces:x.dismissableSurfaces,shouldHandlePointerDownOutside:ve.useCallback((ee)=>{if(!(ee instanceof Node))return!1;let ie=[...x.branches].some((pe)=>pe.contains(ee));return U&&!ie},[x.branches,U])}),Z=So((ee)=>{if(v&&G.current)return;let ie=ee.target;if([...x.branches].some((je)=>je.contains(ie)))return;if(w?.(ee),E?.(ee),!ee.defaultPrevented)I?.()},L),ne=M?z===V.length-1:!1,he=u((ee)=>{if(ee.key!=="Escape")return;if(y?.(ee),!ee.defaultPrevented&&I)ee.preventDefault(),I()});return ve.useEffect(()=>{if(!ne)return;return L.addEventListener("keydown",he,{capture:!0}),()=>L.removeEventListener("keydown",he,{capture:!0})},[L,ne,he]),ve.useEffect(()=>{if(!M)return;if(h){if(x.layersWithOutsidePointerEventsDisabled.size===0)wo=L.body.style.pointerEvents,L.body.style.pointerEvents="none";x.layersWithOutsidePointerEventsDisabled.add(M)}return x.layers.add(M),or(),()=>{if(h){if(x.layersWithOutsidePointerEventsDisabled.delete(M),x.layersWithOutsidePointerEventsDisabled.size===0)L.body.style.pointerEvents=wo}}},[M,L,h,x]),ve.useEffect(()=>()=>{if(!M)return;x.layers.delete(M),x.layersWithOutsidePointerEventsDisabled.delete(M),or()},[M,x]),ve.useEffect(()=>{let ee=Ve(()=>N({}),"handleUpdate");return document.addEventListener(rr,ee),()=>document.removeEventListener(rr,ee)},[]),ps(o.div,{...D,ref:F,style:{pointerEvents:H?U?"auto":"none":void 0,...m.style},onFocusCapture:r(m.onFocusCapture,Z.onFocusCapture),onBlurCapture:r(m.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:r(m.onPointerDownCapture,J.onPointerDownCapture)})},"DismissableLayer"));function cr(){let t=ve.useContext(bo),[m,p]=ve.useState(null);return ve.useEffect(()=>{if(!m)return;return t.dismissableSurfaces.add(m),()=>{t.dismissableSurfaces.delete(m)}},[m,t.dismissableSurfaces]),p}Ve(cr,"useDismissableLayerSurface");var gs=Ve(()=>!0,"IS_TRUE");function xo(t,m){let{ownerDocument:p=globalThis?.document,deferPointerDownOutside:h=!1,isDeferredPointerDownOutsideRef:v,dismissableSurfaces:y,shouldHandlePointerDownOutside:R=gs}=m,w=u(t),E=ve.useRef(!1),I=ve.useRef(!1),D=ve.useRef(new Map),x=ve.useRef(()=>{});return ve.useEffect(()=>{function M(){I.current=!1,v.current=!1,D.current.clear()}Ve(M,"resetOutsideInteraction");function T(){return Array.from(D.current.values()).some(Boolean)}Ve(T,"isOutsideInteractionIntercepted");function L(B){if(!I.current)return;let z=B.target;if(!(z instanceof Node&&[...y].some((U)=>U.contains(z))))D.current.set(B.type,!0);if(B.type==="click")window.setTimeout(()=>{if(I.current)x.current()},0)}Ve(L,"handleInteractionCapture");function N(B){if(I.current)D.current.set(B.type,!1)}Ve(N,"handleInteractionBubble");let F=Ve((B)=>{if(B.target&&!E.current){let H=function(){p.removeEventListener("click",x.current);let G=T();if(M(),!G)ir(hs,w,U,{discrete:!0})};var z=H;if(Ve(H,"handleAndDispatchPointerDownOutsideEvent"),!R(B.target)){p.removeEventListener("click",x.current),M(),E.current=!1;return}let U={originalEvent:B};if(I.current=!0,v.current=h&&B.button===0,D.current.clear(),!h||B.button!==0)H();else p.removeEventListener("click",x.current),x.current=H,p.addEventListener("click",x.current,{once:!0})}else p.removeEventListener("click",x.current),M();E.current=!1},"handlePointerDown"),V=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let B of V)p.addEventListener(B,L,!0),p.addEventListener(B,N);let k=window.setTimeout(()=>{p.addEventListener("pointerdown",F)},0);return()=>{window.clearTimeout(k),p.removeEventListener("pointerdown",F),p.removeEventListener("click",x.current);for(let B of V)p.removeEventListener(B,L,!0),p.removeEventListener(B,N)}},[p,w,h,v,y,R]),{onPointerDownCapture:Ve(()=>E.current=!0,"onPointerDownCapture")}}Ve(xo,"usePointerDownOutside");function So(t,m=globalThis?.document){let p=u(t),h=ve.useRef(!1);return ve.useEffect(()=>{let v=Ve((y)=>{if(y.target&&!h.current)ir(vs,p,{originalEvent:y},{discrete:!1})},"handleFocus");return m.addEventListener("focusin",v),()=>m.removeEventListener("focusin",v)},[m,p]),{onFocusCapture:Ve(()=>h.current=!0,"onFocusCapture"),onBlurCapture:Ve(()=>h.current=!1,"onBlurCapture")}}Ve(So,"useFocusOutside");function or(){let t=new CustomEvent(rr);document.dispatchEvent(t)}Ve(or,"dispatchUpdate");function ir(t,m,p,{discrete:h}){let v=p.originalEvent.target,y=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:p});if(m)v.addEventListener(t,m,{once:!0});if(h)be(v,y);else v.dispatchEvent(y)}Ve(ir,"handleAndDispatchCustomEvent");import*as Co from"react";var ys=Object.defineProperty,ar=(t,m)=>ys(t,"name",{value:m,configurable:!0}),bn=0,Ht=null;function Rs(t){return q(),t.children}ar(Rs,"FocusGuards");function q(){Co.useEffect(()=>{if(!Ht)Ht={start:sr(),end:sr()};let{start:t,end:m}=Ht;if(document.body.firstElementChild!==t)document.body.insertAdjacentElement("afterbegin",t);if(document.body.lastElementChild!==m)document.body.insertAdjacentElement("beforeend",m);return bn++,()=>{if(bn===1)Ht?.start.remove(),Ht?.end.remove(),Ht=null;bn=Math.max(0,bn-1)}},[])}ar(q,"useFocusGuards");function sr(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}ar(sr,"createFocusGuard");import*as et from"react";import{jsx as bs}from"react/jsx-runtime";var ws=Object.defineProperty,Ye=(t,m)=>ws(t,"name",{value:m,configurable:!0}),ur="focusScope.autoFocusOnMount",fr="focusScope.autoFocusOnUnmount",Eo={bubbles:!1,cancelable:!0},ce=et.forwardRef(Ye(function(m,p){let{loop:h=!1,trapped:v=!1,onMountAutoFocus:y,onUnmountAutoFocus:R,...w}=m,[E,I]=et.useState(null),D=u(y),x=u(R),M=et.useRef(null),T=a(p,I),L=et.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;et.useEffect(()=>{if(v){let B=function(G){if(L.paused||!E)return;let J=G.target;if(E.contains(J))M.current=J;else vt(M.current,{select:!0})},z=function(G){if(L.paused||!E)return;let J=G.relatedTarget;if(J===null)return;if(!E.contains(J))vt(M.current,{select:!0})},H=function(G){if(document.activeElement!==document.body)return;for(let Z of G)if(Z.removedNodes.length>0)vt(E)};var F=B,V=z,k=H;Ye(B,"handleFocusIn"),Ye(z,"handleFocusOut"),Ye(H,"handleMutations"),document.addEventListener("focusin",B),document.addEventListener("focusout",z);let U=new MutationObserver(H);if(E)U.observe(E,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",z),U.disconnect()}}},[v,E,L.paused]),et.useEffect(()=>{if(E){Po.add(L);let F=document.activeElement;if(!E.contains(F)){let k=new CustomEvent(ur,Eo);if(E.addEventListener(ur,D),E.dispatchEvent(k),!k.defaultPrevented){if(Oo(To(pr(E)),{select:!0}),document.activeElement===F)vt(E)}}return()=>{E.removeEventListener(ur,D),setTimeout(()=>{let k=new CustomEvent(fr,Eo);if(E.addEventListener(fr,x),E.dispatchEvent(k),!k.defaultPrevented)vt(F??document.body,{select:!0});E.removeEventListener(fr,x),Po.remove(L)},0)}}},[E,D,x,L]);let N=et.useCallback((F)=>{if(!h&&!v)return;if(L.paused)return;let V=F.key==="Tab"&&!F.altKey&&!F.ctrlKey&&!F.metaKey,k=document.activeElement;if(V&&k){let B=F.currentTarget,[z,H]=_o(B);if(!(z&&H)){if(k===B)F.preventDefault()}else if(!F.shiftKey&&k===H){if(F.preventDefault(),h)vt(z,{select:!0})}else if(F.shiftKey&&k===z){if(F.preventDefault(),h)vt(H,{select:!0})}}},[h,v,L.paused]);return bs(o.div,{tabIndex:-1,...w,ref:T,onKeyDown:N})},"FocusScope"));function Oo(t,{select:m=!1}={}){let p=document.activeElement;for(let h of t)if(vt(h,{select:m}),document.activeElement!==p)return}Ye(Oo,"focusFirst");function _o(t){let m=pr(t),p=dr(m,t),h=dr(m.reverse(),t);return[p,h]}Ye(_o,"getTabbableEdges");function pr(t){let m=[],p=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Ye((h)=>{let v=h.tagName==="INPUT"&&h.type==="hidden";if(h.disabled||h.hidden||v)return NodeFilter.FILTER_SKIP;return h.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});while(p.nextNode())m.push(p.currentNode);return m}Ye(pr,"getTabbableCandidates");function dr(t,m){let p=typeof m.checkVisibility==="function"&&m.checkVisibility({checkVisibilityCSS:!0});for(let h of t)if(!(p?!h.checkVisibility({checkVisibilityCSS:!0}):Ao(h,{upTo:m})))return h}Ye(dr,"findVisible");function Ao(t,{upTo:m}){if(getComputedStyle(t).visibility==="hidden")return!0;while(t){if(m!==void 0&&t===m)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Ye(Ao,"isHidden");function Mo(t){return t instanceof HTMLInputElement&&"select"in t}Ye(Mo,"isSelectableInput");function vt(t,{select:m=!1}={}){if(t&&t.focus){let p=document.activeElement;if(t.focus({preventScroll:!0}),t!==p&&Mo(t)&&m)t.select()}}Ye(vt,"focus");var Po=Io();function Io(){let t=[];return{add(m){let p=t[0];if(m!==p)p?.pause();t=mr(t,m),t.unshift(m)},remove(m){t=mr(t,m),t[0]?.resume()}}}Ye(Io,"createFocusScopesStack");function mr(t,m){let p=[...t],h=p.indexOf(m);if(h!==-1)p.splice(h,1);return p}Ye(mr,"arrayRemove");function To(t){return t.filter((m)=>m.tagName!=="A")}Ye(To,"removeLinks");import*as hr from"react";import*as Do from"react";var l=globalThis?.document?Do.useLayoutEffect:()=>{};var xs=Object.defineProperty,Ss=(t,m)=>xs(t,"name",{value:m,configurable:!0}),Cs=hr[" useId ".trim().toString()]||(()=>{return}),Es=0;function c(t){let[m,p]=hr.useState(Cs());return l(()=>{if(!t)p((h)=>h??String(Es++))},[t]),t||(m?`radix-${m}`:"")}Ss(c,"useId");import*as He from"react";var Fo=["top","right","bottom","left"];var{min:ft,max:ot,round:on,floor:cn}=Math,dt=(t)=>({x:t,y:t}),Ps={left:"right",right:"left",bottom:"top",top:"bottom"};function vr(t,m,p){return ot(t,ft(m,p))}function mt(t,m){return typeof t==="function"?t(m):t}function gt(t){return t.split("-")[0]}function Pt(t){return t.split("-")[1]}function Sn(t){return t==="x"?"y":"x"}function Cn(t){return t==="y"?"height":"width"}function it(t){let m=t[0];return m==="t"||m==="b"?"y":"x"}function En(t){return Sn(it(t))}function ko(t,m,p){if(p===void 0)p=!1;let h=Pt(t),v=En(t),y=Cn(v),R=v==="x"?h===(p?"end":"start")?"right":"left":h==="start"?"bottom":"top";if(m.reference[y]>m.floating[y])R=rn(R);return[R,rn(R)]}function jo(t){let m=rn(t);return[xn(t),m,xn(m)]}function xn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var Lo=["left","right"],No=["right","left"],Os=["top","bottom"],_s=["bottom","top"];function As(t,m,p){switch(t){case"top":case"bottom":if(p)return m?No:Lo;return m?Lo:No;case"left":case"right":return m?Os:_s;default:return[]}}function Bo(t,m,p,h){let v=Pt(t),y=As(gt(t),p==="start",h);if(v){if(y=y.map((R)=>R+"-"+v),m)y=y.concat(y.map(xn))}return y}function rn(t){let m=gt(t);return Ps[m]+t.slice(m.length)}function Ms(t){var m,p,h,v;return{top:(m=t.top)!=null?m:0,right:(p=t.right)!=null?p:0,bottom:(h=t.bottom)!=null?h:0,left:(v=t.left)!=null?v:0}}function gr(t){return typeof t!=="number"?Ms(t):{top:t,right:t,bottom:t,left:t}}function Ot(t){let{x:m,y:p,width:h,height:v}=t;return{width:h,height:v,top:p,left:m,right:m+h,bottom:p+v,x:m,y:p}}function Wo(t,m,p){let{reference:h,floating:v}=t,y=it(m),R=En(m),w=Cn(R),E=gt(m),I=y==="y",D=h.x+h.width/2-v.width/2,x=h.y+h.height/2-v.height/2,M=h[w]/2-v[w]/2,T;switch(E){case"top":T={x:D,y:h.y-v.height};break;case"bottom":T={x:D,y:h.y+h.height};break;case"right":T={x:h.x+h.width,y:x};break;case"left":T={x:h.x-v.width,y:x};break;default:T={x:h.x,y:h.y}}let L=Pt(m);if(L)T[R]+=M*(L==="end"?1:-1)*(p&&I?-1:1);return T}async function zo(t,m){var p;if(m===void 0)m={};let{x:h,y:v,platform:y,rects:R,elements:w,strategy:E}=t,{boundary:I="clippingAncestors",rootBoundary:D="viewport",elementContext:x="floating",altBoundary:M=!1,padding:T=0}=mt(m,t),L=gr(T),F=w[M?x==="floating"?"reference":"floating":x],V=Ot(await y.getClippingRect({element:((p=await(y.isElement==null?void 0:y.isElement(F)))!=null?p:!0)?F:F.contextElement||await(y.getDocumentElement==null?void 0:y.getDocumentElement(w.floating)),boundary:I,rootBoundary:D,strategy:E})),k=x==="floating"?{x:h,y:v,width:R.floating.width,height:R.floating.height}:R.reference,B=await(y.getOffsetParent==null?void 0:y.getOffsetParent(w.floating)),z=await(y.isElement==null?void 0:y.isElement(B))&&await(y.getScale==null?void 0:y.getScale(B))||{x:1,y:1},H=Ot(y.convertOffsetParentRelativeRectToViewportRelativeRect?await y.convertOffsetParentRelativeRectToViewportRelativeRect({elements:w,rect:k,offsetParent:B,strategy:E}):k);return{top:(V.top-H.top+L.top)/z.y,bottom:(H.bottom-V.bottom+L.bottom)/z.y,left:(V.left-H.left+L.left)/z.x,right:(H.right-V.right+L.right)/z.x}}var Is=50,Ho=async(t,m,p)=>{let{placement:h="bottom",strategy:v="absolute",middleware:y=[],platform:R}=p,w=R.detectOverflow?R:{...R,detectOverflow:zo},E=await(R.isRTL==null?void 0:R.isRTL(m)),I=await R.getElementRects({reference:t,floating:m,strategy:v}),{x:D,y:x}=Wo(I,h,E),M=h,T=0,L={};for(let N=0;N<y.length;N++){let F=y[N];if(!F)continue;let{name:V,fn:k}=F,{x:B,y:z,data:H,reset:U}=await k({x:D,y:x,initialPlacement:h,placement:M,strategy:v,middlewareData:L,rects:I,platform:w,elements:{reference:t,floating:m}});if(D=B!=null?B:D,x=z!=null?z:x,L[V]={...L[V],...H},U&&T<Is){if(T++,typeof U==="object"){if(U.placement)M=U.placement;if(U.rects)I=U.rects===!0?await R.getElementRects({reference:t,floating:m,strategy:v}):U.rects;({x:D,y:x}=Wo(I,M,E))}N=-1}}return{x:D,y:x,placement:M,strategy:v,middlewareData:L}},Uo=(t)=>({name:"arrow",options:t,async fn(m){let{x:p,y:h,placement:v,rects:y,platform:R,elements:w,middlewareData:E}=m,{element:I,padding:D=0}=mt(t,m)||{};if(I==null)return{};let x=gr(D),M={x:p,y:h},T=En(v),L=Cn(T),N=await R.getDimensions(I),F=T==="y",V=F?"top":"left",k=F?"bottom":"right",B=F?"clientHeight":"clientWidth",z=y.reference[L]+y.reference[T]-M[T]-y.floating[L],H=M[T]-y.reference[T],U=await(R.getOffsetParent==null?void 0:R.getOffsetParent(I)),G=U?U[B]:0;if(!G||!await(R.isElement==null?void 0:R.isElement(U)))G=w.floating[B]||y.floating[L];let J=z/2-H/2,Z=G/2-N[L]/2-1,ne=ft(x[V],Z),he=ft(x[k],Z),ee=G-N[L]-he,ie=G/2-N[L]/2+J,pe=vr(ne,ie,ee),je=!E.arrow&&Pt(v)!=null&&ie!==pe&&y.reference[L]/2-(ie<ne?ne:he)-N[L]/2<0,ge=je?ie<ne?ie-ne:ie-ee:0;return{[T]:M[T]+ge,data:{[T]:pe,centerOffset:ie-pe-ge,...je&&{alignmentOffset:ge}},reset:je}}});var Go=function(t){if(t===void 0)t={};return{name:"flip",options:t,async fn(m){var p,h;let{placement:v,middlewareData:y,rects:R,initialPlacement:w,platform:E,elements:I}=m,{mainAxis:D=!0,crossAxis:x=!0,fallbackPlacements:M,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:N=!0,...F}=mt(t,m);if((p=y.arrow)!=null&&p.alignmentOffset)return{};let V=gt(v),k=it(w),B=gt(w)===w,z=await(E.isRTL==null?void 0:E.isRTL(I.floating)),H=M||(B||!N?[rn(w)]:jo(w)),U=L!=="none";if(!M&&U)H.push(...Bo(w,N,L,z));let G=[w,...H],J=await E.detectOverflow(m,F),Z=[],ne=((h=y.flip)==null?void 0:h.overflows)||[];if(D)Z.push(J[V]);if(x){let pe=ko(v,R,z);Z.push(J[pe[0]],J[pe[1]])}if(ne=[...ne,{placement:v,overflows:Z}],!Z.every((pe)=>pe<=0)){var he,ee;let pe=(((he=y.flip)==null?void 0:he.index)||0)+1,je=G[pe];if(je){if(!(x==="alignment"?k!==it(je):!1)||ne.every((me)=>it(me.placement)===k?me.overflows[0]>0:!0))return{data:{index:pe,overflows:ne},reset:{placement:je}}}let ge=(ee=ne.filter((se)=>se.overflows[0]<=0).sort((se,me)=>se.overflows[1]-me.overflows[1])[0])==null?void 0:ee.placement;if(!ge)switch(T){case"bestFit":{var ie;let se=(ie=ne.filter((me)=>{if(U){let Oe=it(me.placement);return Oe===k||Oe==="y"}return!0}).map((me)=>[me.placement,me.overflows.filter((Oe)=>Oe>0).reduce((Oe,Q)=>Oe+Q,0)]).sort((me,Oe)=>me[1]-Oe[1])[0])==null?void 0:ie[0];if(se)ge=se;break}case"initialPlacement":ge=w;break}if(v!==ge)return{reset:{placement:ge}}}return{}}}};function Vo(t,m){return{top:t.top-m.height,right:t.right-m.width,bottom:t.bottom-m.height,left:t.left-m.width}}function $o(t){return Fo.some((m)=>t[m]>=0)}var Ko=function(t){if(t===void 0)t={};return{name:"hide",options:t,async fn(m){let{rects:p,platform:h}=m,{strategy:v="referenceHidden",...y}=mt(t,m);switch(v){case"referenceHidden":{let R=await h.detectOverflow(m,{...y,elementContext:"reference"}),w=Vo(R,p.reference);return{data:{referenceHiddenOffsets:w,referenceHidden:$o(w)}}}case"escaped":{let R=await h.detectOverflow(m,{...y,altBoundary:!0}),w=Vo(R,p.floating);return{data:{escapedOffsets:w,escaped:$o(w)}}}default:return{}}}}};var Yo=new Set(["left","top"]);async function Ts(t,m){let{placement:p,platform:h,elements:v}=t,y=await(h.isRTL==null?void 0:h.isRTL(v.floating)),R=gt(p),w=Pt(p),E=it(p)==="y",I=Yo.has(R)?-1:1,D=y&&E?-1:1,x=mt(m,t),{mainAxis:M,crossAxis:T,alignmentAxis:L}=typeof x==="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};if(w&&typeof L==="number")T=w==="end"?L*-1:L;return E?{x:T*D,y:M*I}:{x:M*I,y:T*D}}var Xo=function(t){if(t===void 0)t=0;return{name:"offset",options:t,async fn(m){var p,h;let{x:v,y,placement:R,middlewareData:w}=m,E=await Ts(m,t);if(R===((p=w.offset)==null?void 0:p.placement)&&(h=w.arrow)!=null&&h.alignmentOffset)return{};return{x:v+E.x,y:y+E.y,data:{...E,placement:R}}}}},Zo=function(t){if(t===void 0)t={};return{name:"shift",options:t,async fn(m){let{x:p,y:h,placement:v,platform:y}=m,{mainAxis:R=!0,crossAxis:w=!1,limiter:E={fn:(k)=>{let{x:B,y:z}=k;return{x:B,y:z}}},...I}=mt(t,m),D={x:p,y:h},x=await y.detectOverflow(m,I),M=it(v),T=Sn(M),L=D[T],N=D[M],F=(k,B)=>vr(B+x[k==="y"?"top":"left"],B,B-x[k==="y"?"bottom":"right"]);if(R)L=F(T,L);if(w)N=F(M,N);let V=E.fn({...m,[T]:L,[M]:N});return{...V,data:{x:V.x-p,y:V.y-h,enabled:{[T]:R,[M]:w}}}}}},qo=function(t){if(t===void 0)t={};return{options:t,fn(m){var p,h;let{x:v,y,placement:R,rects:w,middlewareData:E}=m,{offset:I=0,mainAxis:D=!0,crossAxis:x=!0}=mt(t,m),M={x:v,y},T=it(R),L=Sn(T),N=M[L],F=M[T],V=mt(I,m),k=typeof V==="number"?{mainAxis:V,crossAxis:0}:{mainAxis:(p=V.mainAxis)!=null?p:0,crossAxis:(h=V.crossAxis)!=null?h:0};if(D){let H=L==="y"?"height":"width",U=w.reference[L]-w.floating[H]+k.mainAxis,G=w.reference[L]+w.reference[H]-k.mainAxis;if(N<U)N=U;else if(N>G)N=G}if(x){var B,z;let H=L==="y"?"width":"height",U=Yo.has(gt(R)),G=w.reference[T]-w.floating[H]+(U?((B=E.offset)==null?void 0:B[T])||0:0)+(U?0:k.crossAxis),J=w.reference[T]+w.reference[H]+(U?0:((z=E.offset)==null?void 0:z[T])||0)-(U?k.crossAxis:0);if(F<G)F=G;else if(F>J)F=J}return{[L]:N,[T]:F}}}},Qo=function(t){if(t===void 0)t={};return{name:"size",options:t,async fn(m){let{placement:p,rects:h,platform:v,elements:y}=m,{apply:R=()=>{},...w}=mt(t,m),E=await v.detectOverflow(m,w),I=gt(p),D=Pt(p),x=it(p)==="y",{width:M,height:T}=h.floating,L,N;if(I==="top"||I==="bottom")L=I,N=D===(await(v.isRTL==null?void 0:v.isRTL(y.floating))?"start":"end")?"left":"right";else N=I,L=D==="end"?"top":"bottom";let F=T-E.top-E.bottom,V=M-E.left-E.right,k=ft(T-E[L],F),B=ft(M-E[N],V),z=m.middlewareData.shift,H=!z,U=k,G=B;if(z!=null&&z.enabled.x)G=V;if(z!=null&&z.enabled.y)U=F;if(H&&!D)if(x)G=M-2*ot(E.left,E.right);else U=T-2*ot(E.top,E.bottom);await R({...m,availableWidth:G,availableHeight:U});let J=await v.getDimensions(y.floating);if(M!==J.width||T!==J.height)return{reset:{rects:!0}};return{}}}};function Pn(){return typeof window<"u"}function Mt(t){if(ei(t))return(t.nodeName||"").toLowerCase();return"#document"}function Xe(t){var m;return(t==null||(m=t.ownerDocument)==null?void 0:m.defaultView)||window}function pt(t){var m;return(m=(ei(t)?t.ownerDocument:t.document)||window.document)==null?void 0:m.documentElement}function ei(t){if(!Pn())return!1;return t instanceof Node||t instanceof Xe(t).Node}function ct(t){if(!Pn())return!1;return t instanceof Element||t instanceof Xe(t).Element}function yt(t){if(!Pn())return!1;return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function Jo(t){if(!Pn()||typeof ShadowRoot>"u")return!1;return t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function sn(t){let{overflow:m,overflowX:p,overflowY:h,display:v}=st(t);return/auto|scroll|overlay|hidden|clip/.test(m+h+p)&&v!=="inline"&&v!=="contents"}function ti(t){return/^(table|td|th)$/.test(Mt(t))}function an(t){try{if(t.matches(":popover-open"))return!0}catch(m){}try{return t.matches(":modal")}catch(m){return!1}}var Ds=/transform|translate|scale|rotate|perspective|filter/,Ls=/paint|layout|strict|content/,_t=(t)=>!!t&&t!=="none",yr;function On(t){let m=ct(t)?st(t):t;return _t(m.transform)||_t(m.translate)||_t(m.scale)||_t(m.rotate)||_t(m.perspective)||!_n()&&(_t(m.backdropFilter)||_t(m.filter))||Ds.test(m.willChange||"")||Ls.test(m.contain||"")}function ni(t){let m=St(t);while(yt(m)&&!Ut(m)){if(On(m))return m;else if(an(m))return null;m=St(m)}return null}function _n(){if(yr==null)yr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return yr}function Ut(t){return/^(html|body|#document)$/.test(Mt(t))}function st(t){return Xe(t).getComputedStyle(t)}function un(t){if(ct(t))return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop};return{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function St(t){if(Mt(t)==="html")return t;let m=t.assignedSlot||t.parentNode||Jo(t)&&t.host||pt(t);return Jo(m)?m.host:m}function ri(t){let m=St(t);if(Ut(m))return(t.ownerDocument||t).body;if(yt(m)&&sn(m))return m;return ri(m)}function At(t,m,p){var h;if(m===void 0)m=[];if(p===void 0)p=!0;let v=ri(t),y=v===((h=t.ownerDocument)==null?void 0:h.body),R=Xe(v);if(y){let w=An(R);return m.concat(R,R.visualViewport||[],sn(v)?v:[],w&&p?At(w):[])}else return m.concat(v,At(v,[],p))}function An(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ci(t){let m=st(t),p=parseFloat(m.width)||0,h=parseFloat(m.height)||0,v=yt(t),y=v?t.offsetWidth:p,R=v?t.offsetHeight:h,w=on(p)!==y||on(h)!==R;if(w)p=y,h=R;return{width:p,height:h,$:w}}function wr(t){return!ct(t)?t.contextElement:t}function Gt(t){let m=wr(t);if(!yt(m))return dt(1);let p=m.getBoundingClientRect(),{width:h,height:v,$:y}=ci(m),R=(y?on(p.width):p.width)/h,w=(y?on(p.height):p.height)/v;if(!R||!Number.isFinite(R))R=1;if(!w||!Number.isFinite(w))w=1;return{x:R,y:w}}var Ns=dt(0);function si(t){let m=Xe(t);if(!_n()||!m.visualViewport)return Ns;return{x:m.visualViewport.offsetLeft,y:m.visualViewport.offsetTop}}function Fs(t,m,p){if(m===void 0)m=!1;return!!p&&m&&p===Xe(t)}function It(t,m,p,h){if(m===void 0)m=!1;if(p===void 0)p=!1;let v=t.getBoundingClientRect(),y=wr(t),R=dt(1);if(m)if(h){if(ct(h))R=Gt(h)}else R=Gt(t);let w=Fs(y,p,h)?si(y):dt(0),E=(v.left+w.x)/R.x,I=(v.top+w.y)/R.y,D=v.width/R.x,x=v.height/R.y;if(y&&h){let M=Xe(y),T=ct(h)?Xe(h):h,L=M,N=An(L);while(N&&T!==L){let F=Gt(N),V=N.getBoundingClientRect(),k=st(N),B=V.left+(N.clientLeft+parseFloat(k.paddingLeft))*F.x,z=V.top+(N.clientTop+parseFloat(k.paddingTop))*F.y;E*=F.x,I*=F.y,D*=F.x,x*=F.y,E+=B,I+=z,L=Xe(N),N=An(L)}}return Ot({width:D,height:x,x:E,y:I})}function Mn(t,m){let p=un(t).scrollLeft;if(!m)return It(pt(t)).left+p;return m.left+p}function ai(t,m){let p=t.getBoundingClientRect(),h=p.left+m.scrollLeft-Mn(t,p),v=p.top+m.scrollTop;return{x:h,y:v}}function ks(t){let{elements:m,rect:p,offsetParent:h,strategy:v}=t,y=v==="fixed",R=pt(h),w=m?an(m.floating):!1;if(h===R||w&&y)return p;let E={scrollLeft:0,scrollTop:0},I=dt(1),D=dt(0),x=yt(h);if(x||!y){if(Mt(h)!=="body"||sn(R))E=un(h);if(x){let T=It(h);I=Gt(h),D.x=T.x+h.clientLeft,D.y=T.y+h.clientTop}}let M=R&&!x&&!y?ai(R,E):dt(0);return{width:p.width*I.x,height:p.height*I.y,x:p.x*I.x-E.scrollLeft*I.x+D.x+M.x,y:p.y*I.y-E.scrollTop*I.y+D.y+M.y}}function js(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bs(t){let m=un(t),p=t.ownerDocument.body,h=ot(t.scrollWidth,t.clientWidth,p.scrollWidth,p.clientWidth),v=ot(t.scrollHeight,t.clientHeight,p.scrollHeight,p.clientHeight),y=-m.scrollLeft+Mn(t),R=-m.scrollTop;if(st(p).direction==="rtl")y+=ot(t.clientWidth,p.clientWidth)-h;return{width:h,height:v,x:y,y:R}}var Ws=25;function Vs(t,m,p){if(p===void 0)p="viewport";let h=p==="layoutViewport",v=Xe(t),y=pt(t),R=v.visualViewport,{clientWidth:w,clientHeight:E}=y,I=0,D=0;if(R){let M=!_n()||m==="fixed";if(h){if(!M)I=-R.offsetLeft,D=-R.offsetTop}else if(w=R.width,E=R.height,M)I=R.offsetLeft,D=R.offsetTop}if(Mn(y)<=0){let M=y.ownerDocument,T=M.body,L=getComputedStyle(T),N=M.compatMode==="CSS1Compat"?parseFloat(L.marginLeft)+parseFloat(L.marginRight)||0:0,F=Math.abs(y.clientWidth-T.clientWidth-N),V=getComputedStyle(y).scrollbarGutter==="stable both-edges"?F/2:F;if(V<=Ws)w-=V}return{width:w,height:E,x:I,y:D}}function $s(t,m){let p=It(t,!0,m==="fixed"),h=p.top+t.clientTop,v=p.left+t.clientLeft,y=Gt(t),R=t.clientWidth*y.x,w=t.clientHeight*y.y,E=v*y.x,I=h*y.y;return{width:R,height:w,x:E,y:I}}function oi(t,m,p){let h;if(m==="viewport"||m==="layoutViewport")h=Vs(t,p,m);else if(m==="document")h=Bs(pt(t));else if(ct(m))h=$s(m,p);else{let v=si(t);h={x:m.x-v.x,y:m.y-v.y,width:m.width,height:m.height}}return Ot(h)}function zs(t,m){let p=m.get(t);if(p)return p;let h=At(t,[],!1).filter((w)=>ct(w)&&Mt(w)!=="body"),v=null,y=st(t).position==="fixed",R=y?St(t):t;while(ct(R)&&!Ut(R)){let w=st(R),E=On(R),I=v?v.position:y?"fixed":"";if(!E&&(I==="fixed"||I==="absolute"&&w.position==="static"))h=h.filter((x)=>x!==R);else v=w;R=St(R)}return m.set(t,h),h}function Hs(t){let{element:m,boundary:p,rootBoundary:h,strategy:v}=t,R=[...p==="clippingAncestors"?an(m)?[]:zs(m,this._c):[].concat(p),h],w=oi(m,R[0],v),{top:E,right:I,bottom:D,left:x}=w;for(let M=1;M<R.length;M++){let T=oi(m,R[M],v);E=ot(T.top,E),I=ft(T.right,I),D=ft(T.bottom,D),x=ot(T.left,x)}return{width:I-x,height:D-E,x,y:E}}function Us(t){let{width:m,height:p}=ci(t);return{width:m,height:p}}function Gs(t,m,p){let h=yt(m),v=pt(m),y=p==="fixed",R=It(t,!0,y,m),w={scrollLeft:0,scrollTop:0},E=dt(0);if(h||!y){if(Mt(m)!=="body"||sn(v))w=un(m);if(h){let M=It(m,!0,y,m);E.x=M.x+m.clientLeft,E.y=M.y+m.clientTop}}if(!h&&v)E.x=Mn(v);let I=v&&!h&&!y?ai(v,w):dt(0),D=R.left+w.scrollLeft-E.x-I.x,x=R.top+w.scrollTop-E.y-I.y;return{x:D,y:x,width:R.width,height:R.height}}function Rr(t){return st(t).position==="static"}function ii(t,m){if(!yt(t)||st(t).position==="fixed")return null;if(m)return m(t);let p=t.offsetParent;if(pt(t)===p)p=p.ownerDocument.body;return p}function ui(t,m){let p=Xe(t);if(an(t))return p;if(!yt(t)){let v=St(t);while(v&&!Ut(v)){if(ct(v)&&!Rr(v))return v;v=St(v)}return p}let h=ii(t,m);while(h&&ti(h)&&Rr(h))h=ii(h,m);if(h&&Ut(h)&&Rr(h)&&!On(h))return p;return h||ni(t)||p}var Ks=async function(t){let m=this.getOffsetParent||ui,p=this.getDimensions,h=await p(t.floating);return{reference:Gs(t.reference,await m(t.floating),t.strategy),floating:{x:0,y:0,width:h.width,height:h.height}}};function Ys(t){return st(t).direction==="rtl"}var li={convertOffsetParentRelativeRectToViewportRelativeRect:ks,getDocumentElement:pt,getClippingRect:Hs,getOffsetParent:ui,getElementRects:Ks,getClientRects:js,getDimensions:Us,getScale:Gt,isElement:ct,isRTL:Ys};function fi(t,m){return t.x===m.x&&t.y===m.y&&t.width===m.width&&t.height===m.height}function Xs(t,m,p){let h=null,v,y=pt(t);function R(){var D;clearTimeout(v),(D=h)==null||D.disconnect(),h=null}function w(D,x){if(D===void 0)D=!1;if(x===void 0)x=1;R();let M=t.getBoundingClientRect(),{left:T,top:L,width:N,height:F}=M;if(!D)m();if(!N||!F)return;let V=cn(L),k=cn(y.clientWidth-(T+N)),B=cn(y.clientHeight-(L+F)),z=cn(T),U={rootMargin:-V+"px "+-k+"px "+-B+"px "+-z+"px",threshold:ot(0,ft(1,x))||1},G=!0;function J(Z){let ne=Z[0].intersectionRatio;if(!fi(M,t.getBoundingClientRect()))return w();if(ne!==x){if(!G)return w();if(!ne)v=setTimeout(()=>{w(!1,0.0000001)},1000);else w(!1,ne)}G=!1}try{h=new IntersectionObserver(J,{...U,root:y.ownerDocument})}catch(Z){h=new IntersectionObserver(J,U)}h.observe(t)}let E=Xe(t),I=()=>w(p);return E.addEventListener("resize",I),w(!0),()=>{E.removeEventListener("resize",I),R()}}function br(t,m,p,h){if(h===void 0)h={};let{ancestorScroll:v=!0,ancestorResize:y=!0,elementResize:R=typeof ResizeObserver==="function",layoutShift:w=typeof IntersectionObserver==="function",animationFrame:E=!1}=h,I=wr(t),D=v||y?[...I?At(I):[],...m?At(m):[]]:[];D.forEach((V)=>{v&&V.addEventListener("scroll",p),y&&V.addEventListener("resize",p)});let x=I&&w?Xs(I,p,y):null,M=-1,T=null;if(R){if(T=new ResizeObserver((V)=>{let[k]=V;if(k&&k.target===I&&T&&m)T.unobserve(m),cancelAnimationFrame(M),M=requestAnimationFrame(()=>{var B;(B=T)==null||B.observe(m)});p()}),I&&!E)T.observe(I);if(m)T.observe(m)}let L,N=E?It(t):null;if(E)F();function F(){let V=It(t);if(N&&!fi(N,V))p();N=V,L=requestAnimationFrame(F)}return p(),()=>{var V;if(D.forEach((k)=>{v&&k.removeEventListener("scroll",p),y&&k.removeEventListener("resize",p)}),x==null||x(),(V=T)==null||V.disconnect(),T=null,E)cancelAnimationFrame(L)}}var di=Xo;var mi=Zo,pi=Go,hi=Qo,vi=Ko,xr=Uo;var gi=qo,Sr=(t,m,p)=>{let h=new Map,v=p!=null?p:{},y={...li,...v.platform,_c:h};return Ho(t,m,{...v,platform:y})};import*as Be from"react";import{useLayoutEffect as Zs}from"react";import*as Ri from"react-dom";var qs=typeof document<"u",Qs=function(){},In=qs?Zs:Qs;function Tn(t,m){if(t===m)return!0;if(typeof t!==typeof m)return!1;if(typeof t==="function"&&t.toString()===m.toString())return!0;let p,h,v;if(t&&m&&typeof t==="object"){if(Array.isArray(t)){if(p=t.length,p!==m.length)return!1;for(h=p;h--!==0;)if(!Tn(t[h],m[h]))return!1;return!0}if(v=Object.keys(t),p=v.length,p!==Object.keys(m).length)return!1;for(h=p;h--!==0;)if(!{}.hasOwnProperty.call(m,v[h]))return!1;for(h=p;h--!==0;){let y=v[h];if(y==="_owner"&&t.$$typeof)continue;if(!Tn(t[y],m[y]))return!1}return!0}return t!==t&&m!==m}function wi(t){if(typeof window>"u")return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function yi(t,m){let p=wi(t);return Math.round(m*p)/p}function Cr(t){let m=Be.useRef(t);return In(()=>{m.current=t}),m}function bi(t){if(t===void 0)t={};let{placement:m="bottom",strategy:p="absolute",middleware:h=[],platform:v,elements:{reference:y,floating:R}={},transform:w=!0,whileElementsMounted:E,open:I}=t,[D,x]=Be.useState({x:0,y:0,strategy:p,placement:m,middlewareData:{},isPositioned:!1}),[M,T]=Be.useState(h);if(!Tn(M,h))T(h);let[L,N]=Be.useState(null),[F,V]=Be.useState(null),k=Be.useCallback((me)=>{if(me!==U.current)U.current=me,N(me)},[]),B=Be.useCallback((me)=>{if(me!==G.current)G.current=me,V(me)},[]),z=y||L,H=R||F,U=Be.useRef(null),G=Be.useRef(null),J=Be.useRef(D),Z=E!=null,ne=Cr(E),he=Cr(v),ee=Cr(I),ie=Be.useCallback(()=>{if(!U.current||!G.current)return;let me={placement:m,strategy:p,middleware:M};if(he.current)me.platform=he.current;Sr(U.current,G.current,me).then((Oe)=>{let Q={...Oe,isPositioned:ee.current!==!1};if(pe.current&&!Tn(J.current,Q))J.current=Q,Ri.flushSync(()=>{x(Q)})})},[M,m,p,he,ee]);In(()=>{if(I===!1&&J.current.isPositioned)J.current.isPositioned=!1,x((me)=>({...me,isPositioned:!1}))},[I]);let pe=Be.useRef(!1);In(()=>(pe.current=!0,()=>{pe.current=!1}),[]),In(()=>{if(z)U.current=z;if(H)G.current=H;if(z&&H){if(ne.current)return ne.current(z,H,ie);ie()}},[z,H,ie,ne,Z]);let je=Be.useMemo(()=>({reference:U,floating:G,setReference:k,setFloating:B}),[k,B]),ge=Be.useMemo(()=>({reference:z,floating:H}),[z,H]),se=Be.useMemo(()=>{let me={position:p,left:0,top:0};if(!ge.floating)return me;let Oe=yi(ge.floating,D.x),Q=yi(ge.floating,D.y);if(w)return{...me,transform:"translate("+Oe+"px, "+Q+"px)",...wi(ge.floating)>=1.5&&{willChange:"transform"}};return{position:p,left:Oe,top:Q}},[p,w,ge.floating,D.x,D.y]);return Be.useMemo(()=>({...D,update:ie,refs:je,elements:ge,floatingStyles:se}),[D,ie,je,ge,se])}var Js=(t)=>{function m(p){return{}.hasOwnProperty.call(p,"current")}return{name:"arrow",options:t,fn(p){let{element:h,padding:v}=typeof t==="function"?t(p):t;if(h&&m(h)){if(h.current!=null)return xr({element:h.current,padding:v}).fn(p);return{}}if(h)return xr({element:h,padding:v}).fn(p);return{}}}},xi=(t,m)=>{let p=di(t);return{name:p.name,fn:p.fn,options:[t,m]}},Si=(t,m)=>{let p=mi(t);return{name:p.name,fn:p.fn,options:[t,m]}},Ci=(t,m)=>({fn:gi(t).fn,options:[t,m]}),Ei=(t,m)=>{let p=pi(t);return{name:p.name,fn:p.fn,options:[t,m]}},Pi=(t,m)=>{let p=hi(t);return{name:p.name,fn:p.fn,options:[t,m]}};var Oi=(t,m)=>{let p=vi(t);return{name:p.name,fn:p.fn,options:[t,m]}};var _i=(t,m)=>{let p=Js(t);return{name:p.name,fn:p.fn,options:[t,m]}};import*as Mi from"react";import{jsx as Ai}from"react/jsx-runtime";var ea=Object.defineProperty,ta=(t,m)=>ea(t,"name",{value:m,configurable:!0}),na=Mi.forwardRef(ta(function(m,p){let{children:h,width:v=10,height:y=5,...R}=m;return Ai(o.svg,{...R,ref:p,width:v,height:y,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:m.asChild?h:Ai("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),Ii=na;import*as Ti from"react";var oa=Object.defineProperty,ia=(t,m)=>oa(t,"name",{value:m,configurable:!0});function _(t){let[m,p]=Ti.useState(void 0);return l(()=>{if(t){p({width:t.offsetWidth,height:t.offsetHeight});let h=new ResizeObserver((v)=>{if(!Array.isArray(v))return;if(!v.length)return;let y=v[0],R,w;if("borderBoxSize"in y){let E=y.borderBoxSize,I=Array.isArray(E)?E[0]:E;R=I.inlineSize,w=I.blockSize}else R=t.offsetWidth,w=t.offsetHeight;p({width:R,height:w})});return h.observe(t,{box:"border-box"}),()=>h.unobserve(t)}else p(void 0)},[t]),m}ia(_,"useSize");import{jsx as Tt}from"react/jsx-runtime";var ca=Object.defineProperty,Rt=(t,m)=>ca(t,"name",{value:m,configurable:!0});var Di="Popper",[Li,O]=i(Di),[sa,Ni]=Li(Di),aa=Rt((t)=>{let{__scopePopper:m,children:p}=t,[h,v]=He.useState(null),[y,R]=He.useState(void 0);return Tt(sa,{scope:m,anchor:h,onAnchorChange:v,placementState:y,setPlacementState:R,children:p})},"Popper"),ua="PopperAnchor",la=He.forwardRef(Rt(function(m,p){let{__scopePopper:h,virtualRef:v,...y}=m,R=Ni(ua,h),w=He.useRef(null),E=R.onAnchorChange,I=He.useCallback((N)=>{if(w.current=N,N)E(N)},[E]),D=a(p,I),x=He.useRef(null);He.useEffect(()=>{if(!v)return;let N=x.current;if(x.current=v.current,N!==x.current)E(x.current)});let M=R.placementState&&Dn(R.placementState),T=M?.[0],L=M?.[1];return v?null:Tt(o.div,{"data-radix-popper-side":T,"data-radix-popper-align":L,...y,ref:D})},"PopperAnchor")),Fi="PopperContent",[fa,da]=Li(Fi),ma=He.forwardRef(Rt(function(m,p){let{__scopePopper:h,side:v="bottom",sideOffset:y=0,align:R="center",alignOffset:w=0,arrowPadding:E=0,avoidCollisions:I=!0,collisionBoundary:D=[],collisionPadding:x=0,sticky:M="partial",hideWhenDetached:T=!1,updatePositionStrategy:L="optimized",onPlaced:N,...F}=m,V=Ni(Fi,h),[k,B]=He.useState(null),z=a(p,B),[H,U]=He.useState(null),G=_(H),J=G?.width??0,Z=G?.height??0,ne=v+(R!=="center"?"-"+R:""),he=typeof x==="number"?x:{top:0,right:0,bottom:0,left:0,...x},ee=Array.isArray(D)?D:[D],ie=ee.length>0,pe={padding:he,boundary:ee.filter(ki),altBoundary:ie},{refs:je,floatingStyles:ge,placement:se,isPositioned:me,middlewareData:Oe}=bi({strategy:"fixed",placement:ne,whileElementsMounted:Rt((...Bt)=>br(...Bt,{animationFrame:L==="always"}),"whileElementsMounted"),elements:{reference:V.anchor},middleware:[xi({mainAxis:y+Z,alignmentAxis:w}),I&&Si({mainAxis:!0,crossAxis:!1,limiter:M==="partial"?Ci():void 0,...pe}),I&&Ei({...pe}),Pi({...pe,apply:Rt(({elements:Bt,rects:Qr,availableWidth:Vc,availableHeight:$c})=>{let{width:zc,height:Hc}=Qr.reference,gn=Bt.floating.style;gn.setProperty("--radix-popper-available-width",`${Vc}px`),gn.setProperty("--radix-popper-available-height",`${$c}px`),gn.setProperty("--radix-popper-anchor-width",`${zc}px`),gn.setProperty("--radix-popper-anchor-height",`${Hc}px`)},"apply")}),H&&_i({element:H,padding:E}),ga({arrowWidth:J,arrowHeight:Z}),T&&Oi({strategy:"referenceHidden",...pe,boundary:ie?pe.boundary:void 0})]}),Q=V.setPlacementState;l(()=>(Q(se),()=>{Q(void 0)}),[se,Q]);let[ht,lt]=Dn(se),bt=u(N);l(()=>{if(me)bt?.()},[me,bt]);let tn=Oe.arrow?.x,nn=Oe.arrow?.y,vn=Oe.arrow?.centerOffset!==0,[Et,Ke]=He.useState();return l(()=>{if(k)Ke(window.getComputedStyle(k).zIndex)},[k]),Tt("div",{ref:je.setFloating,"data-radix-popper-content-wrapper":"",style:{...ge,transform:me?ge.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Et,"--radix-popper-transform-origin":[Oe.transformOrigin?.x,Oe.transformOrigin?.y].join(" "),...Oe.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:m.dir,children:Tt(fa,{scope:h,placedSide:ht,placedAlign:lt,onArrowChange:U,arrowX:tn,arrowY:nn,shouldHideArrow:vn,children:Tt(o.div,{"data-side":ht,"data-align":lt,...F,ref:z,style:{...F.style,animation:!me?"none":F.style?.animation}})})})},"PopperContent")),pa="PopperArrow",ha={top:"bottom",right:"left",bottom:"top",left:"right"},va=He.forwardRef(Rt(function(m,p){let{__scopePopper:h,...v}=m,y=da(pa,h),R=ha[y.placedSide];return Tt("span",{ref:y.onArrowChange,style:{position:"absolute",left:y.arrowX,top:y.arrowY,[R]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[y.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[y.placedSide],visibility:y.shouldHideArrow?"hidden":void 0},children:Tt(Ii,{...v,ref:p,style:{...v.style,display:"block"}})})},"PopperArrow"));function ki(t){return t!==null}Rt(ki,"isNotNull");var ga=Rt((t)=>({name:"transformOrigin",options:t,fn(m){let{placement:p,rects:h,middlewareData:v}=m,R=v.arrow?.centerOffset!==0,w=R?0:t.arrowWidth,E=R?0:t.arrowHeight,[I,D]=Dn(p),x={start:"0%",center:"50%",end:"100%"}[D],M=(v.arrow?.x??0)+w/2,T=(v.arrow?.y??0)+E/2,L="",N="";if(I==="bottom")L=R?x:`${M}px`,N=`${-E}px`;else if(I==="top")L=R?x:`${M}px`,N=`${h.floating.height+E}px`;else if(I==="right")L=`${-E}px`,N=R?x:`${T}px`;else if(I==="left")L=`${h.floating.width+E}px`,N=R?x:`${T}px`;return{data:{x:L,y:N}}}}),"transformOrigin");function Dn(t){let[m,p="center"]=t.split("-");return[m,p]}Rt(Dn,"getSideAndAlignFromPlacement");var ue=aa,de=la,ye=ma,xt=va;import*as Ln from"react";import*as ji from"react-dom";import{jsx as ba}from"react/jsx-runtime";var Ra=Object.defineProperty,wa=(t,m)=>Ra(t,"name",{value:m,configurable:!0}),K=Ln.forwardRef(wa(function(m,p){let{container:h,...v}=m,[y,R]=Ln.useState(!1);l(()=>R(!0),[]);let w=h||y&&globalThis?.document?.body;return w?ji.createPortal(ba(o.div,{...v,ref:p}),w):null},"Portal"));import*as Ue from"react";import*as Bi from"react";var xa=Object.defineProperty,wt=(t,m)=>xa(t,"name",{value:m,configurable:!0});function Wi(t,m){return Bi.useReducer((p,h)=>m[p][h]??p,t)}wt(Wi,"useStateMachine");var d=wt((t)=>{let{present:m,children:p}=t,h=Vi(m),v=typeof p==="function"?p({present:h.isPresent}):Ue.Children.only(p),y=$i(h.ref,zi(v));return typeof p==="function"||h.isPresent?Ue.cloneElement(v,{ref:y}):null},"Presence");function Vi(t){let[m,p]=Ue.useState(),h=Ue.useRef(null),v=Ue.useRef(t),y=Ue.useRef("none"),R=Ue.useRef(void 0),w=t?"mounted":"unmounted",[E,I]=Wi(w,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ue.useEffect(()=>{if(E==="mounted")y.current=R.current??Kt(h.current),R.current=void 0;else y.current="none"},[E]),l(()=>{let D=h.current,x=v.current;if(x!==t){let T=y.current,L=Kt(D);if(t)R.current=L,I("MOUNT");else if(L==="none"||D?.display==="none")I("UNMOUNT");else if(x&&T!==L)I("ANIMATION_OUT");else I("UNMOUNT");v.current=t}},[t,I]),l(()=>{if(m){let D,x=m.ownerDocument.defaultView??window,M=wt((L)=>{let F=Kt(h.current).includes(CSS.escape(L.animationName));if(L.target===m&&F){if(I("ANIMATION_END"),!v.current){let V=m.style.animationFillMode;m.style.animationFillMode="forwards",D=x.setTimeout(()=>{if(m.style.animationFillMode==="forwards")m.style.animationFillMode=V})}}},"handleAnimationEnd"),T=wt((L)=>{if(L.target===m)y.current=Kt(h.current)},"handleAnimationStart");return m.addEventListener("animationstart",T),m.addEventListener("animationcancel",M),m.addEventListener("animationend",M),()=>{x.clearTimeout(D),m.removeEventListener("animationstart",T),m.removeEventListener("animationcancel",M),m.removeEventListener("animationend",M)}}else I("ANIMATION_END")},[m,I]),{isPresent:["mounted","unmountSuspended"].includes(E),ref:Ue.useCallback((D)=>{if(D){let x=getComputedStyle(D);h.current=x,R.current=Kt(x)}else h.current=null;p(D)},[])}}wt(Vi,"usePresence");function Er(t,m){if(typeof t==="function")return t(m);else if(t!==null&&t!==void 0)t.current=m}wt(Er,"setRef");function $i(...t){let m=Ue.useRef(t);return m.current=t,Ue.useCallback((p)=>{let h=m.current,v=!1,y=h.map((R)=>{let w=Er(R,p);if(!v&&typeof w==="function")v=!0;return w});if(v)return()=>{for(let R=0;R<y.length;R++){let w=y[R];if(typeof w==="function")w();else Er(h[R],null)}}},[])}wt($i,"useStableComposedRefs");function Kt(t){return t?.animationName||"none"}wt(Kt,"getAnimationName");function zi(t){let m=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,p=m&&"isReactWarning"in m&&m.isReactWarning;if(p)return t.ref;if(m=Object.getOwnPropertyDescriptor(t,"ref")?.get,p=m&&"isReactWarning"in m&&m.isReactWarning,p)return t.props.ref;return t.props.ref||t.ref}wt(zi,"getElementRef");import*as $e from"react";import*as tt from"react";import*as at from"react";import*as Yt from"react";var Sa=Object.defineProperty,Ca=(t,m)=>Sa(t,"name",{value:m,configurable:!0}),Hi=Yt[" useEffectEvent ".trim().toString()],Ui=Yt[" useInsertionEffect ".trim().toString()];function Pr(t){if(typeof Hi==="function")return Hi(t);let m=Yt.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});if(typeof Ui==="function")Ui(()=>{m.current=t});else l(()=>{m.current=t});return Yt.useMemo(()=>(...p)=>m.current?.(...p),[])}Ca(Pr,"useEffectEvent");var Ea=Object.defineProperty,ln=(t,m)=>Ea(t,"name",{value:m,configurable:!0}),Pa=tt[" useInsertionEffect ".trim().toString()]||l;function s({prop:t,defaultProp:m,onChange:p=ln(()=>{},"onChange"),caller:h}){let[v,y,R]=Ki({defaultProp:m,onChange:p}),w=t!==void 0,E=w?t:v;if(re){let D=tt.useRef(t!==void 0);tt.useEffect(()=>{let x=D.current;if(x!==w)console.warn(`${h} is changing from ${x?"controlled":"uncontrolled"} to ${w?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);D.current=w},[w,h])}let I=tt.useCallback((D)=>{if(w){let x=Yi(D)?D(t):D;if(x!==t)R.current?.(x)}else y(D)},[w,t,y,R]);return[E,I]}ln(s,"useControllableState");function Ki({defaultProp:t,onChange:m}){let[p,h]=tt.useState(t),v=tt.useRef(p),y=tt.useRef(m);return Pa(()=>{y.current=m},[m]),tt.useEffect(()=>{if(v.current!==p)y.current?.(p),v.current=p},[p,v]),[p,h,y]}ln(Ki,"useUncontrolledState");function Yi(t){return typeof t==="function"}ln(Yi,"isFunction");var Gi=Symbol("RADIX:SYNC_STATE");function Oa(t,m,p,h){let{prop:v,defaultProp:y,onChange:R,caller:w}=m,E=v!==void 0,I=Pr(R);if(re){let F=at.useRef(v!==void 0);at.useEffect(()=>{let V=F.current;if(V!==E)console.warn(`${w} is changing from ${V?"controlled":"uncontrolled"} to ${E?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);F.current=E},[E,w])}let D=[{...p,state:y}];if(h)D.push(h);let[x,M]=at.useReducer((F,V)=>{if(V.type===Gi)return{...F,state:V.state};let k=t(F,V);if(E&&!Object.is(k.state,F.state))I(k.state);return k},...D),T=x.state,L=at.useRef(T);at.useEffect(()=>{if(L.current!==T){if(L.current=T,!E)I(T)}},[T,L,E]);let N=at.useMemo(()=>{if(v!==void 0)return{...x,state:v};return x},[x,v]);return at.useEffect(()=>{if(E&&!Object.is(v,x.state))M({type:Gi,state:v})},[v,x.state,E]),[N,M]}ln(Oa,"useControllableStateReducer");import*as Aa from"react";import*as Nn from"react";var _a=Object.defineProperty,_r=(t,m)=>_a(t,"name",{value:m,configurable:!0}),Or=!1;function Xi(){let[t,m]=Nn.useState(Or);return Nn.useEffect(()=>{if(!Or)Or=!0,m(!0)},[]),t}_r(Xi,"useIsHydrated");var Zi=Aa[" useSyncExternalStore ".trim().toString()];function qi(){return()=>{}}_r(qi,"subscribe");function Qi(){return Zi(qi,()=>!0,()=>!1)}_r(Qi,"useIsHydratedModern");var Ji=typeof Zi==="function"?Qi:Xi;import{jsx as Dt}from"react/jsx-runtime";var Ma=Object.defineProperty,Lt=(t,m)=>Ma(t,"name",{value:m,configurable:!0}),Ar="rovingFocusGroup.onEntryFocus",Ia={bubbles:!1,cancelable:!0},Fn="RovingFocusGroup",[Mr,ec,Ta]=S(Fn),[Da,C]=i(Fn,[Ta]),[La,Na]=Da(Fn),Fa=$e.forwardRef(Lt(function(m,p){return Dt(Mr.Provider,{scope:m.__scopeRovingFocusGroup,children:Dt(Mr.Slot,{scope:m.__scopeRovingFocusGroup,children:Dt(ka,{...m,ref:p})})})},"RovingFocusGroup")),ka=$e.forwardRef(Lt(function(m,p){let{__scopeRovingFocusGroup:h,orientation:v,loop:y=!1,dir:R,currentTabStopId:w,defaultCurrentTabStopId:E,onCurrentTabStopIdChange:I,onEntryFocus:D,preventScrollOnEntryFocus:x=!1,...M}=m,T=$e.useRef(null),L=a(p,T),N=g(R),[F,V]=s({prop:w,defaultProp:E??null,onChange:I,caller:Fn}),[k,B]=$e.useState(!1),z=u(D),H=ec(h),U=$e.useRef(!1),[G,J]=$e.useState(0);return $e.useEffect(()=>{let Z=T.current;if(Z)return Z.addEventListener(Ar,z),()=>Z.removeEventListener(Ar,z)},[z]),Dt(La,{scope:h,orientation:v,dir:N,loop:y,currentTabStopId:F,onItemFocus:$e.useCallback((Z)=>V(Z),[V]),onItemShiftTab:$e.useCallback(()=>B(!0),[]),onFocusableItemAdd:$e.useCallback(()=>J((Z)=>Z+1),[]),onFocusableItemRemove:$e.useCallback(()=>J((Z)=>Z-1),[]),children:Dt(o.div,{tabIndex:k||G===0?-1:0,"data-orientation":v,...M,ref:L,style:{outline:"none",...m.style},onMouseDown:r(m.onMouseDown,()=>{U.current=!0}),onFocus:r(m.onFocus,(Z)=>{let ne=!U.current;if(Z.target===Z.currentTarget&&ne&&!k){let he=new CustomEvent(Ar,Ia);if(Z.currentTarget.dispatchEvent(he),!he.defaultPrevented){let ee=H().filter((se)=>se.focusable),ie=ee.find((se)=>se.active),pe=ee.find((se)=>se.id===F),ge=[ie,pe,...ee].filter(Boolean).map((se)=>se.ref.current);Ir(ge,x)}}U.current=!1}),onBlur:r(m.onBlur,()=>B(!1))})})},"RovingFocusGroupImpl")),ja="RovingFocusGroupItem",Ba=$e.forwardRef(Lt(function(m,p){let{__scopeRovingFocusGroup:h,focusable:v=!0,active:y=!1,tabStopId:R,children:w,...E}=m,I=c(),D=R||I,x=Na(ja,h),M=x.currentTabStopId===D,T=ec(h),{onFocusableItemAdd:L,onFocusableItemRemove:N,currentTabStopId:F}=x,V=Ji();return l(()=>{if(!V||!v)return;return L(),()=>N()},[V,v,L,N]),$e.useEffect(()=>{if(V||!v)return;return L(),()=>N()},[V,v,L,N]),Dt(Mr.ItemSlot,{scope:h,id:D,focusable:v,active:y,children:Dt(o.span,{tabIndex:M?0:-1,"data-orientation":x.orientation,...E,ref:p,onMouseDown:r(m.onMouseDown,(k)=>{if(!v)k.preventDefault();else x.onItemFocus(D)}),onFocus:r(m.onFocus,()=>x.onItemFocus(D)),onKeyDown:r(m.onKeyDown,(k)=>{if(k.key==="Tab"&&k.shiftKey){x.onItemShiftTab();return}if(k.target!==k.currentTarget)return;let B=nc(k,x.orientation,x.dir);if(B!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let H=T().filter((U)=>U.focusable).map((U)=>U.ref.current);if(B==="last")H.reverse();else if(B==="prev"||B==="next"){if(B==="prev")H.reverse();let U=H.indexOf(k.currentTarget);H=x.loop?rc(H,U+1):H.slice(U+1)}setTimeout(()=>Ir(H))}}),children:typeof w==="function"?w({isCurrentTabStop:M,hasTabStop:F!=null}):w})})},"RovingFocusGroupItem")),Wa={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tc(t,m){if(m!=="rtl")return t;return t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}Lt(tc,"getDirectionAwareKey");function nc(t,m,p){let h=tc(t.key,p);if(m==="vertical"&&["ArrowLeft","ArrowRight"].includes(h))return;if(m==="horizontal"&&["ArrowUp","ArrowDown"].includes(h))return;return Wa[h]}Lt(nc,"getFocusIntent");function Ir(t,m=!1){let p=document.activeElement;for(let h of t){if(h===p)return;if(h.focus({preventScroll:m}),document.activeElement!==p)return}}Lt(Ir,"focusFirst");function rc(t,m){return t.map((p,h)=>t[(m+h)%t.length])}Lt(rc,"wrapArray");var j=Fa,Y=Ba;var $a=function(t){if(typeof document>"u")return null;var m=Array.isArray(t)?t[0]:t;return m.ownerDocument.body},Xt=new WeakMap,kn=new WeakMap,jn={},Tr=0,oc=function(t){return t&&(t.host||oc(t.parentNode))},za=function(t,m){return m.map(function(p){if(t.contains(p))return p;var h=oc(p);if(h&&t.contains(h))return h;return console.error("aria-hidden",p,"in not contained inside",t,". Doing nothing"),null}).filter(function(p){return Boolean(p)})},Ha=function(t,m,p,h){var v=za(m,Array.isArray(t)?t:[t]);if(!jn[p])jn[p]=new WeakMap;var y=jn[p],R=[],w=new Set,E=new Set(v),I=function(x){if(!x||w.has(x))return;w.add(x),I(x.parentNode)};v.forEach(I);var D=function(x){if(!x||E.has(x))return;Array.prototype.forEach.call(x.children,function(M){if(w.has(M))D(M);else try{var T=M.getAttribute(h),L=T!==null&&T!=="false",N=(Xt.get(M)||0)+1,F=(y.get(M)||0)+1;if(Xt.set(M,N),y.set(M,F),R.push(M),N===1&&L)kn.set(M,!0);if(F===1)M.setAttribute(p,"true");if(!L)M.setAttribute(h,"true")}catch(V){console.error("aria-hidden: cannot operate on ",M,V)}})};return D(m),w.clear(),Tr++,function(){if(R.forEach(function(x){var M=Xt.get(x)-1,T=y.get(x)-1;if(Xt.set(x,M),y.set(x,T),!M){if(!kn.has(x))x.removeAttribute(h);kn.delete(x)}if(!T)x.removeAttribute(p)}),Tr--,!Tr)Xt=new WeakMap,Xt=new WeakMap,kn=new WeakMap,jn={}}},fe=function(t,m,p){if(p===void 0)p="data-aria-hidden";var h=Array.from(Array.isArray(t)?t:[t]),v=m||$a(t);if(!v)return function(){return null};return h.push.apply(h,Array.from(v.querySelectorAll("[aria-live], script"))),Ha(h,v,p,"aria-hidden")};var qe=function(){return qe=Object.assign||function(m){for(var p,h=1,v=arguments.length;h<v;h++){p=arguments[h];for(var y in p)if(Object.prototype.hasOwnProperty.call(p,y))m[y]=p[y]}return m},qe.apply(this,arguments)};function Bn(t,m){var p={};for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h)&&m.indexOf(h)<0)p[h]=t[h];if(t!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var v=0,h=Object.getOwnPropertySymbols(t);v<h.length;v++)if(m.indexOf(h[v])<0&&Object.prototype.propertyIsEnumerable.call(t,h[v]))p[h[v]]=t[h[v]]}return p}function ic(t,m,p){if(p||arguments.length===2){for(var h=0,v=m.length,y;h<v;h++)if(y||!(h in m)){if(!y)y=Array.prototype.slice.call(m,0,h);y[h]=m[h]}}return t.concat(y||Array.prototype.slice.call(m))}import*as Hn from"react";import*as Ge from"react";var Nt="right-scroll-bar-position",Ft="width-before-scroll-bar",Dr="with-scroll-bars-hidden",Lr="--removed-body-scroll-bar-size";import*as Vn from"react";function Wn(t,m){if(typeof t==="function")t(m);else if(t)t.current=m;return t}import{useState as Ua}from"react";function cc(t,m){var p=Ua(function(){return{value:t,callback:m,facade:{get current(){return p.value},set current(h){var v=p.value;if(v!==h)p.value=h,p.callback(h,v)}}}})[0];return p.callback=m,p.facade}var Ga=typeof window<"u"?Vn.useLayoutEffect:Vn.useEffect,sc=new WeakMap;function Nr(t,m){var p=cc(m||null,function(h){return t.forEach(function(v){return Wn(v,h)})});return Ga(function(){var h=sc.get(p);if(h){var v=new Set(h),y=new Set(t),R=p.current;v.forEach(function(w){if(!y.has(w))Wn(w,null)}),y.forEach(function(w){if(!v.has(w))Wn(w,R)})}sc.set(p,t)},[t]),p}function Ka(t){return t}function Ya(t,m){if(m===void 0)m=Ka;var p=[],h=!1,v={read:function(){if(h)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(p.length)return p[p.length-1];return t},useMedium:function(y){var R=m(y,h);return p.push(R),function(){p=p.filter(function(w){return w!==R})}},assignSyncMedium:function(y){h=!0;while(p.length){var R=p;p=[],R.forEach(y)}p={push:function(w){return y(w)},filter:function(){return p}}},assignMedium:function(y){h=!0;var R=[];if(p.length){var w=p;p=[],w.forEach(y),R=p}var E=function(){var D=R;R=[],D.forEach(y)},I=function(){return Promise.resolve().then(E)};I(),p={push:function(D){R.push(D),I()},filter:function(D){return R=R.filter(D),p}}}};return v}function Fr(t){if(t===void 0)t={};var m=Ya(null);return m.options=qe({async:!0,ssr:!1},t),m}import*as ac from"react";var uc=function(t){var m=t.sideCar,p=Bn(t,["sideCar"]);if(!m)throw Error("Sidecar: please provide `sideCar` property to import the right car");var h=m.read();if(!h)throw Error("Sidecar medium not found");return ac.createElement(h,qe({},p))};uc.isSideCarExport=!0;function kr(t,m){return t.useMedium(m),uc}var $n=Fr();var jr=function(){return},fn=Ge.forwardRef(function(t,m){var p=Ge.useRef(null),h=Ge.useState({onScrollCapture:jr,onWheelCapture:jr,onTouchMoveCapture:jr}),v=h[0],y=h[1],{forwardProps:R,children:w,className:E,removeScrollBar:I,enabled:D,shards:x,sideCar:M,noRelative:T,noIsolation:L,inert:N,allowPinchZoom:F,as:V}=t,k=V===void 0?"div":V,B=t.gapMode,z=Bn(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=M,U=Nr([p,m]),G=qe(qe({},z),v);return Ge.createElement(Ge.Fragment,null,D&&Ge.createElement(H,{sideCar:$n,removeScrollBar:I,shards:x,noRelative:T,noIsolation:L,inert:N,setCallbacks:y,allowPinchZoom:!!F,lockRef:p,gapMode:B}),R?Ge.cloneElement(Ge.Children.only(w),qe(qe({},G),{ref:U})):Ge.createElement(k,qe({},G,{className:E,ref:U}),w))});fn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fn.classNames={fullWidth:Ft,zeroRight:Nt};import*as Fe from"react";import*as qt from"react";import*as dc from"react";var lc;var fc=function(){if(lc)return lc;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function Xa(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var m=fc();if(m)t.setAttribute("nonce",m);return t}function Za(t,m){if(t.styleSheet)t.styleSheet.cssText=m;else t.appendChild(document.createTextNode(m))}function qa(t){var m=document.head||document.getElementsByTagName("head")[0];m.appendChild(t)}var Br=function(){var t=0,m=null;return{add:function(p){if(t==0){if(m=Xa())Za(m,p),qa(m)}t++},remove:function(){if(t--,!t&&m)m.parentNode&&m.parentNode.removeChild(m),m=null}}};var Wr=function(){var t=Br();return function(m,p){dc.useEffect(function(){return t.add(m),function(){t.remove()}},[m&&p])}};var dn=function(){var t=Wr(),m=function(p){var{styles:h,dynamic:v}=p;return t(h,v),null};return m};var Qa={left:0,top:0,right:0,gap:0},Vr=function(t){return parseInt(t||"",10)||0},Ja=function(t){var m=window.getComputedStyle(document.body),p=m[t==="padding"?"paddingLeft":"marginLeft"],h=m[t==="padding"?"paddingTop":"marginTop"],v=m[t==="padding"?"paddingRight":"marginRight"];return[Vr(p),Vr(h),Vr(v)]},$r=function(t){if(t===void 0)t="margin";if(typeof window>"u")return Qa;var m=Ja(t),p=document.documentElement.clientWidth,h=window.innerWidth;return{left:m[0],top:m[1],right:m[2],gap:Math.max(0,h-p+m[2]-m[0])}};var eu=dn(),Zt="data-scroll-locked",tu=function(t,m,p,h){var{left:v,top:y,right:R,gap:w}=t;if(p===void 0)p="margin";return`
|
|
2
|
+
.`.concat(Dr,` {
|
|
3
|
+
overflow: hidden `).concat(h,`;
|
|
4
|
+
padding-right: `).concat(w,"px ").concat(h,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(Zt,`] {
|
|
7
|
+
overflow: hidden `).concat(h,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([m&&"position: relative ".concat(h,";"),p==="margin"&&`
|
|
10
|
+
padding-left: `.concat(v,`px;
|
|
11
|
+
padding-top: `).concat(y,`px;
|
|
12
|
+
padding-right: `).concat(R,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(w,"px ").concat(h,`;
|
|
16
|
+
`),p==="padding"&&"padding-right: ".concat(w,"px ").concat(h,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(Nt,` {
|
|
20
|
+
right: `).concat(w,"px ").concat(h,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(Ft,` {
|
|
24
|
+
margin-right: `).concat(w,"px ").concat(h,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(Nt," .").concat(Nt,` {
|
|
28
|
+
right: 0 `).concat(h,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(Ft," .").concat(Ft,` {
|
|
32
|
+
margin-right: 0 `).concat(h,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(Zt,`] {
|
|
36
|
+
`).concat(Lr,": ").concat(w,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},mc=function(){var t=parseInt(document.body.getAttribute(Zt)||"0",10);return isFinite(t)?t:0},nu=function(){qt.useEffect(function(){return document.body.setAttribute(Zt,(mc()+1).toString()),function(){var t=mc()-1;if(t<=0)document.body.removeAttribute(Zt);else document.body.setAttribute(Zt,t.toString())}},[])},zr=function(t){var{noRelative:m,noImportant:p,gapMode:h}=t,v=h===void 0?"margin":h;nu();var y=qt.useMemo(function(){return $r(v)},[v]);return qt.createElement(eu,{styles:tu(y,!m,v,!p?"!important":"")})};var Hr=!1;if(typeof window<"u")try{Qt=Object.defineProperty({},"passive",{get:function(){return Hr=!0,!0}}),window.addEventListener("test",Qt,Qt),window.removeEventListener("test",Qt,Qt)}catch(t){Hr=!1}var Qt,kt=Hr?{passive:!1}:!1;var ru=function(t){return t.tagName==="TEXTAREA"},pc=function(t,m){if(!(t instanceof Element))return!1;var p=window.getComputedStyle(t);return p[m]!=="hidden"&&!(p.overflowY===p.overflowX&&!ru(t)&&p[m]==="visible")},ou=function(t){return pc(t,"overflowY")},iu=function(t){return pc(t,"overflowX")},Ur=function(t,m){var p=m.ownerDocument,h=m;do{if(typeof ShadowRoot<"u"&&h instanceof ShadowRoot)h=h.host;var v=hc(t,h);if(v){var y=vc(t,h),R=y[1],w=y[2];if(R>w)return!0}h=h.parentNode}while(h&&h!==p.body);return!1},cu=function(t){var{scrollTop:m,scrollHeight:p,clientHeight:h}=t;return[m,p,h]},su=function(t){var{scrollLeft:m,scrollWidth:p,clientWidth:h}=t;return[m,p,h]},hc=function(t,m){return t==="v"?ou(m):iu(m)},vc=function(t,m){return t==="v"?cu(m):su(m)},au=function(t,m){return t==="h"&&m==="rtl"?-1:1},gc=function(t,m,p,h,v){var y=au(t,window.getComputedStyle(m).direction),R=y*h,w=p.target,E=m.contains(w),I=!1,D=R>0,x=0,M=0;do{if(!w)break;var T=vc(t,w),L=T[0],N=T[1],F=T[2],V=N-F-y*L;if(L||V){if(hc(t,w))x+=V,M+=L}var k=w.parentNode;w=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!E&&w!==document.body||E&&(m.contains(w)||m===w));if(D&&(v&&Math.abs(x)<1||!v&&R>x))I=!0;else if(!D&&(v&&Math.abs(M)<1||!v&&-R>M))I=!0;return I};var zn=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},yc=function(t){return[t.deltaX,t.deltaY]},Rc=function(t){return t&&"current"in t?t.current:t},uu=function(t,m){return t[0]===m[0]&&t[1]===m[1]},lu=function(t){return`
|
|
39
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
41
|
+
`)},fu=0,Jt=[];function wc(t){var m=Fe.useRef([]),p=Fe.useRef([0,0]),h=Fe.useRef(),v=Fe.useState(fu++)[0],y=Fe.useState(dn)[0],R=Fe.useRef(t);Fe.useEffect(function(){R.current=t},[t]),Fe.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(v));var N=ic([t.lockRef.current],(t.shards||[]).map(Rc),!0).filter(Boolean);return N.forEach(function(F){return F.classList.add("allow-interactivity-".concat(v))}),function(){document.body.classList.remove("block-interactivity-".concat(v)),N.forEach(function(F){return F.classList.remove("allow-interactivity-".concat(v))})}}return},[t.inert,t.lockRef.current,t.shards]);var w=Fe.useCallback(function(N,F){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!R.current.allowPinchZoom;var V=zn(N),k=p.current,B="deltaX"in N?N.deltaX:k[0]-V[0],z="deltaY"in N?N.deltaY:k[1]-V[1],H,U=N.target,G=Math.abs(B)>Math.abs(z)?"h":"v";if("touches"in N&&G==="h"&&U.type==="range")return!1;var J=window.getSelection(),Z=J&&J.anchorNode,ne=Z?Z===U||Z.contains(U):!1;if(ne)return!1;var he=Ur(G,U);if(!he)return!0;if(he)H=G;else H=G==="v"?"h":"v",he=Ur(G,U);if(!he)return!1;if(!h.current&&"changedTouches"in N&&(B||z))h.current=H;if(!H)return!0;var ee=h.current||H;return gc(ee,F,N,ee==="h"?B:z,!0)},[]),E=Fe.useCallback(function(N){var F=N;if(!Jt.length||Jt[Jt.length-1]!==y)return;var V="deltaY"in F?yc(F):zn(F),k=m.current.filter(function(H){return H.name===F.type&&(H.target===F.target||F.target===H.shadowParent)&&uu(H.delta,V)})[0];if(k&&k.should){if(F.cancelable)F.preventDefault();return}if(!k){var B=(R.current.shards||[]).map(Rc).filter(Boolean).filter(function(H){return H.contains(F.target)}),z=B.length>0?w(F,B[0]):!R.current.noIsolation;if(z){if(F.cancelable)F.preventDefault()}}},[]),I=Fe.useCallback(function(N,F,V,k){var B={name:N,delta:F,target:V,should:k,shadowParent:du(V)};m.current.push(B),setTimeout(function(){m.current=m.current.filter(function(z){return z!==B})},1)},[]),D=Fe.useCallback(function(N){p.current=zn(N),h.current=void 0},[]),x=Fe.useCallback(function(N){I(N.type,yc(N),N.target,w(N,t.lockRef.current))},[]),M=Fe.useCallback(function(N){I(N.type,zn(N),N.target,w(N,t.lockRef.current))},[]);Fe.useEffect(function(){return Jt.push(y),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:M}),document.addEventListener("wheel",E,kt),document.addEventListener("touchmove",E,kt),document.addEventListener("touchstart",D,kt),function(){Jt=Jt.filter(function(N){return N!==y}),document.removeEventListener("wheel",E,kt),document.removeEventListener("touchmove",E,kt),document.removeEventListener("touchstart",D,kt)}},[]);var{removeScrollBar:T,inert:L}=t;return Fe.createElement(Fe.Fragment,null,L?Fe.createElement(y,{styles:lu(v)}):null,T?Fe.createElement(zr,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function du(t){var m=null;while(t!==null){if(t instanceof ShadowRoot)m=t.host,t=t.host;t=t.parentNode}return m}var bc=kr($n,wc);var xc=Hn.forwardRef(function(t,m){return Hn.createElement(fn,qe({},t,{ref:m,sideCar:bc}))});xc.classNames=fn.classNames;var oe=xc;import{jsx as te}from"react/jsx-runtime";var mu=Object.defineProperty,le=(t,m)=>mu(t,"name",{value:m,configurable:!0}),Gr=["Enter"," "],pu=["ArrowDown","PageUp","Home"],Cc=["ArrowUp","PageDown","End"],hu=[...pu,...Cc],vu={ltr:[...Gr,"ArrowRight"],rtl:[...Gr,"ArrowLeft"]},gu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Gn="Menu",[mn,yu,Ru]=S(Gn),[jt,ae]=i(Gn,[Ru,O,C]),Kn=O(),Ec=C(),[Pc,Ct]=jt(Gn),[wu,hn]=jt(Gn),bu=le((t)=>{let{__scopeMenu:m,open:p=!1,children:h,dir:v,onOpenChange:y,modal:R=!0}=t,w=Kn(m),[E,I]=X.useState(null),D=X.useRef(!1),x=u(y),M=g(v);return X.useEffect(()=>{let T=le(()=>{D.current=!0,document.addEventListener("pointerdown",L,{capture:!0,once:!0}),document.addEventListener("pointermove",L,{capture:!0,once:!0})},"handleKeyDown"),L=le(()=>D.current=!1,"handlePointer");return document.addEventListener("keydown",T,{capture:!0}),()=>{document.removeEventListener("keydown",T,{capture:!0}),document.removeEventListener("pointerdown",L,{capture:!0}),document.removeEventListener("pointermove",L,{capture:!0})}},[]),X.useEffect(()=>{if(!p)return;let T=le(()=>x(!1),"handleBlur");return window.addEventListener("blur",T),()=>window.removeEventListener("blur",T)},[p,x]),te(ue,{...w,children:te(Pc,{scope:m,open:p,onOpenChange:x,content:E,onContentChange:I,children:te(wu,{scope:m,onClose:X.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:D,dir:M,modal:R,children:h})})})},"Menu"),Oc=X.forwardRef(le(function(m,p){let{__scopeMenu:h,...v}=m,y=Kn(h);return te(de,{...y,...v,ref:p})},"MenuAnchor")),_c="MenuPortal",[xu,Ac]=jt(_c,{forceMount:void 0}),Su=le((t)=>{let{__scopeMenu:m,forceMount:p,children:h,container:v}=t,y=Ct(_c,m);return te(xu,{scope:m,forceMount:p,children:te(d,{present:p||y.open,children:te(K,{asChild:!0,container:v,children:h})})})},"MenuPortal"),ut="MenuContent",[Cu,Yr]=jt(ut),Eu=X.forwardRef(le(function(m,p){let h=Ac(ut,m.__scopeMenu),{forceMount:v=h.forceMount,...y}=m,R=Ct(ut,m.__scopeMenu),w=hn(ut,m.__scopeMenu);return te(mn.Provider,{scope:m.__scopeMenu,children:te(d,{present:v||R.open,children:te(mn.Slot,{scope:m.__scopeMenu,children:w.modal?te(Pu,{...y,ref:p}):te(Ou,{...y,ref:p})})})})},"MenuContent")),Pu=X.forwardRef(le(function(m,p){let h=Ct(ut,m.__scopeMenu),v=X.useRef(null),y=a(p,v);return X.useEffect(()=>{let R=v.current;if(R)return fe(R)},[]),te(Xr,{...m,ref:y,trapFocus:h.open,disableOutsidePointerEvents:h.open,disableOutsideScroll:!0,onFocusOutside:r(m.onFocusOutside,(R)=>R.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>h.onOpenChange(!1)})},"MenuRootContentModal")),Ou=X.forwardRef(le(function(m,p){let h=Ct(ut,m.__scopeMenu);return te(Xr,{...m,ref:p,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>h.onOpenChange(!1)})},"MenuRootContentNonModal")),_u=b("MenuContent.ScrollLock"),Xr=X.forwardRef(le(function(m,p){let{__scopeMenu:h,loop:v=!1,trapFocus:y,onOpenAutoFocus:R,onCloseAutoFocus:w,disableOutsidePointerEvents:E,onEntryFocus:I,onEscapeKeyDown:D,onPointerDownOutside:x,onFocusOutside:M,onInteractOutside:T,onDismiss:L,disableOutsideScroll:N,...F}=m,V=Ct(ut,h),k=hn(ut,h),B=Kn(h),z=Ec(h),H=yu(h),[U,G]=X.useState(null),J=X.useRef(null),Z=a(p,J,V.onContentChange),ne=X.useRef(0),he=X.useRef(""),ee=X.useRef(0),ie=X.useRef(null),pe=X.useRef("right"),je=X.useRef(0),ge=N?oe:X.Fragment,se=N?{as:_u,allowPinchZoom:!0}:void 0,me=le((Q)=>{let ht=he.current+Q,lt=H().filter((Ke)=>!Ke.disabled),bt=document.activeElement,tn=lt.find((Ke)=>Ke.ref.current===bt)?.textValue,nn=lt.map((Ke)=>Ke.textValue),vn=jc(nn,ht,tn),Et=lt.find((Ke)=>Ke.textValue===vn)?.ref.current;if(le(function Ke(Bt){if(he.current=Bt,window.clearTimeout(ne.current),Bt!=="")ne.current=window.setTimeout(()=>Ke(""),1000)},"updateSearch")(ht),Et)setTimeout(()=>Et.focus())},"handleTypeaheadSearch");X.useEffect(()=>()=>window.clearTimeout(ne.current),[]),q();let Oe=X.useCallback((Q)=>pe.current===ie.current?.side&&Wc(Q,ie.current?.area),[]);return te(Cu,{scope:h,searchRef:he,onItemEnter:X.useCallback((Q)=>{if(Oe(Q))Q.preventDefault()},[Oe]),onItemLeave:X.useCallback((Q)=>{if(Oe(Q))return;J.current?.focus(),G(null)},[Oe]),onTriggerLeave:X.useCallback((Q)=>{if(Oe(Q))Q.preventDefault()},[Oe]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:X.useCallback((Q)=>{ie.current=Q},[]),children:te(ge,{...se,children:te(ce,{asChild:!0,trapped:y,onMountAutoFocus:r(R,(Q)=>{Q.preventDefault(),J.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:w,children:te(A,{asChild:!0,disableOutsidePointerEvents:E,onEscapeKeyDown:D,onPointerDownOutside:x,onFocusOutside:M,onInteractOutside:T,onDismiss:L,children:te(j,{asChild:!0,...z,dir:k.dir,orientation:"vertical",loop:v,currentTabStopId:U,onCurrentTabStopIdChange:G,onEntryFocus:r(I,(Q)=>{if(!k.isUsingKeyboardRef.current)Q.preventDefault()}),preventScrollOnEntryFocus:!0,children:te(ye,{role:"menu","aria-orientation":"vertical","data-state":qr(V.open),"data-radix-menu-content":"",dir:k.dir,...B,...F,ref:Z,style:{outline:"none",...F.style},onKeyDown:r(F.onKeyDown,(Q)=>{let lt=Q.target.closest("[data-radix-menu-content]")===Q.currentTarget,bt=Q.ctrlKey||Q.altKey||Q.metaKey,tn=Q.key.length===1;if(lt){if(Q.key==="Tab")Q.preventDefault();if(!bt&&tn)me(Q.key)}let nn=J.current;if(Q.target!==nn)return;if(!hu.includes(Q.key))return;Q.preventDefault();let Et=H().filter((Ke)=>!Ke.disabled).map((Ke)=>Ke.ref.current);if(Cc.includes(Q.key))Et.reverse();Fc(Et)}),onBlur:r(m.onBlur,(Q)=>{if(!Q.currentTarget.contains(Q.target))window.clearTimeout(ne.current),he.current=""}),onPointerMove:r(m.onPointerMove,en((Q)=>{let ht=Q.target,lt=je.current!==Q.clientX;if(Q.currentTarget.contains(ht)&<){let bt=Q.clientX>je.current?"right":"left";pe.current=bt,je.current=Q.clientX}}))})})})})})})},"MenuContentImpl")),Mc=X.forwardRef(le(function(m,p){let{__scopeMenu:h,...v}=m;return te(o.div,{role:"group",...v,ref:p})},"MenuGroup")),Au=X.forwardRef(le(function(m,p){let{__scopeMenu:h,...v}=m;return te(o.div,{...v,ref:p})},"MenuLabel")),Kr="MenuItem",Sc="menu.itemSelect",Zr=X.forwardRef(le(function(m,p){let{disabled:h=!1,onSelect:v,...y}=m,R=X.useRef(null),w=hn(Kr,m.__scopeMenu),E=Yr(Kr,m.__scopeMenu),I=a(p,R),D=X.useRef(!1),x=le(()=>{let M=R.current;if(!h&&M){let T=new CustomEvent(Sc,{bubbles:!0,cancelable:!0});if(M.addEventListener(Sc,(L)=>v?.(L),{once:!0}),be(M,T),T.defaultPrevented)D.current=!1;else w.onClose()}},"handleSelect");return te(Ic,{...y,ref:I,disabled:h,onClick:r(m.onClick,x),onPointerDown:(M)=>{m.onPointerDown?.(M),D.current=!0},onPointerUp:r(m.onPointerUp,(M)=>{if(!D.current)M.currentTarget?.click()}),onKeyDown:r(m.onKeyDown,(M)=>{if(h||M.target!==M.currentTarget)return;if(E.searchRef.current!==""&&M.key===" ")return;if(Gr.includes(M.key))M.currentTarget.click(),M.preventDefault()})})},"MenuItem")),Ic=X.forwardRef(le(function(m,p){let{__scopeMenu:h,disabled:v=!1,textValue:y,...R}=m,w=Yr(Kr,h),E=Ec(h),I=X.useRef(null),D=a(p,I),[x,M]=X.useState(!1),[T,L]=X.useState("");return X.useEffect(()=>{let N=I.current;if(N)L((N.textContent??"").trim())},[R.children]),te(mn.ItemSlot,{scope:h,disabled:v,textValue:y??T,children:te(Y,{asChild:!0,...E,focusable:!v,children:te(o.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":v||void 0,"data-disabled":v?"":void 0,...R,ref:D,onPointerMove:r(m.onPointerMove,en((N)=>{if(v)w.onItemLeave(N);else if(w.onItemEnter(N),!N.defaultPrevented)N.currentTarget.focus({preventScroll:!0})})),onPointerLeave:r(m.onPointerLeave,en((N)=>w.onItemLeave(N))),onFocus:r(m.onFocus,()=>M(!0)),onBlur:r(m.onBlur,()=>M(!1))})})})},"MenuItemImpl")),Mu=X.forwardRef(le(function(m,p){let{checked:h=!1,onCheckedChange:v,...y}=m;return te(Dc,{scope:m.__scopeMenu,checked:h,children:te(Zr,{role:"menuitemcheckbox","aria-checked":pn(h)?"mixed":h,...y,ref:p,"data-state":Yn(h),onSelect:r(y.onSelect,()=>v?.(pn(h)?!0:!h),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),Iu="MenuRadioGroup",[Tu,Du]=jt(Iu,{value:void 0,onValueChange:le(()=>{},"onValueChange")}),Lu=X.forwardRef(le(function(m,p){let{value:h,onValueChange:v,...y}=m,R=u(v);return te(Tu,{scope:m.__scopeMenu,value:h,onValueChange:R,children:te(Mc,{...y,ref:p})})},"MenuRadioGroup")),Nu="MenuRadioItem",Fu=X.forwardRef(le(function(m,p){let{value:h,...v}=m,y=Du(Nu,m.__scopeMenu),R=h===y.value;return te(Dc,{scope:m.__scopeMenu,checked:R,children:te(Zr,{role:"menuitemradio","aria-checked":R,...v,ref:p,"data-state":Yn(R),onSelect:r(v.onSelect,()=>y.onValueChange?.(h),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),Tc="MenuItemIndicator",[Dc,ku]=jt(Tc,{checked:!1}),ju=X.forwardRef(le(function(m,p){let{__scopeMenu:h,forceMount:v,...y}=m,R=ku(Tc,h);return te(d,{present:v||pn(R.checked)||R.checked===!0,children:te(o.span,{...y,ref:p,"data-state":Yn(R.checked)})})},"MenuItemIndicator")),Bu=X.forwardRef(le(function(m,p){let{__scopeMenu:h,...v}=m;return te(o.div,{role:"separator","aria-orientation":"horizontal",...v,ref:p})},"MenuSeparator"));var Lc="MenuSub",[Wu,Nc]=jt(Lc),Vu=le((t)=>{let{__scopeMenu:m,children:p,open:h=!1,onOpenChange:v}=t,y=Ct(Lc,m),R=Kn(m),[w,E]=X.useState(null),[I,D]=X.useState(null),x=u(v);return X.useEffect(()=>{if(y.open===!1)x(!1);return()=>x(!1)},[y.open,x]),te(ue,{...R,children:te(Pc,{scope:m,open:h,onOpenChange:x,content:I,onContentChange:D,children:te(Wu,{scope:m,contentId:c(),triggerId:c(),trigger:w,onTriggerChange:E,children:p})})})},"MenuSub"),Un="MenuSubTrigger",$u=X.forwardRef(le(function(m,p){let h=Ct(Un,m.__scopeMenu),v=hn(Un,m.__scopeMenu),y=Nc(Un,m.__scopeMenu),R=Yr(Un,m.__scopeMenu),w=X.useRef(null),{pointerGraceTimerRef:E,onPointerGraceIntentChange:I}=R,D={__scopeMenu:m.__scopeMenu},x=X.useCallback(()=>{if(w.current)window.clearTimeout(w.current);w.current=null},[]);X.useEffect(()=>x,[x]),X.useEffect(()=>{let T=E.current;return()=>{window.clearTimeout(T),I(null)}},[E,I]);let M=a(p,y.onTriggerChange);return te(Oc,{asChild:!0,...D,children:te(Ic,{id:y.triggerId,"aria-haspopup":"menu","aria-expanded":h.open,"aria-controls":h.open?y.contentId:void 0,"data-state":qr(h.open),...m,ref:M,onClick:(T)=>{if(m.onClick?.(T),m.disabled||T.defaultPrevented)return;if(T.currentTarget.focus(),!h.open)h.onOpenChange(!0)},onPointerMove:r(m.onPointerMove,en((T)=>{if(R.onItemEnter(T),T.defaultPrevented)return;if(!m.disabled&&!h.open&&!w.current)R.onPointerGraceIntentChange(null),w.current=window.setTimeout(()=>{h.onOpenChange(!0),x()},100)})),onPointerLeave:r(m.onPointerLeave,en((T)=>{x();let L=h.content?.getBoundingClientRect();if(L){let N=h.content?.dataset.side,F=N==="right",V=F?-5:5,k=L[F?"left":"right"],B=L[F?"right":"left"];R.onPointerGraceIntentChange({area:[{x:T.clientX+V,y:T.clientY},{x:k,y:L.top},{x:B,y:L.top},{x:B,y:L.bottom},{x:k,y:L.bottom}],side:N}),window.clearTimeout(E.current),E.current=window.setTimeout(()=>R.onPointerGraceIntentChange(null),300)}else{if(R.onTriggerLeave(T),T.defaultPrevented)return;R.onPointerGraceIntentChange(null)}})),onKeyDown:r(m.onKeyDown,(T)=>{if(m.disabled||T.target!==T.currentTarget)return;if(R.searchRef.current!==""&&T.key===" ")return;if(vu[v.dir].includes(T.key))h.onOpenChange(!0),h.content?.focus(),T.preventDefault()})})})},"MenuSubTrigger")),zu="MenuSubContent",Hu=X.forwardRef(le(function(m,p){let h=Ac(ut,m.__scopeMenu),{forceMount:v=h.forceMount,align:y="start",...R}=m,w=Ct(ut,m.__scopeMenu),E=hn(ut,m.__scopeMenu),I=Nc(zu,m.__scopeMenu),D=X.useRef(null),x=a(p,D);return te(mn.Provider,{scope:m.__scopeMenu,children:te(d,{present:v||w.open,children:te(mn.Slot,{scope:m.__scopeMenu,children:te(Xr,{id:I.contentId,"aria-labelledby":I.triggerId,...R,ref:x,align:y,side:E.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(M)=>{if(E.isUsingKeyboardRef.current)D.current?.focus();M.preventDefault()},onCloseAutoFocus:(M)=>M.preventDefault(),onFocusOutside:r(m.onFocusOutside,(M)=>{if(M.target!==I.trigger)w.onOpenChange(!1)}),onEscapeKeyDown:r(m.onEscapeKeyDown,(M)=>{E.onClose(),M.preventDefault()}),onKeyDown:r(m.onKeyDown,(M)=>{let T=M.currentTarget.contains(M.target),L=gu[E.dir].includes(M.key);if(T&&L)w.onOpenChange(!1),I.trigger?.focus(),M.preventDefault()})})})})})},"MenuSubContent"));function qr(t){return t?"open":"closed"}le(qr,"getOpenState");function pn(t){return t==="indeterminate"}le(pn,"isIndeterminate");function Yn(t){return pn(t)?"indeterminate":t?"checked":"unchecked"}le(Yn,"getCheckedState");function Fc(t){let m=document.activeElement;for(let p of t){if(p===m)return;if(p.focus(),document.activeElement!==m)return}}le(Fc,"focusFirst");function kc(t,m){return t.map((p,h)=>t[(m+h)%t.length])}le(kc,"wrapArray");function jc(t,m,p){let v=m.length>1&&Array.from(m).every((I)=>I===m[0])?m[0]:m,y=p?t.indexOf(p):-1,R=kc(t,Math.max(y,0));if(v.length===1)R=R.filter((I)=>I!==p);let E=R.find((I)=>I.toLowerCase().startsWith(v.toLowerCase()));return E!==p?E:void 0}le(jc,"getNextMatch");function Bc(t,m){let{x:p,y:h}=t,v=!1;for(let y=0,R=m.length-1;y<m.length;R=y++){let w=m[y],E=m[R],{x:I,y:D}=w,{x,y:M}=E;if(D>h!==M>h&&p<(x-I)*(h-D)/(M-D)+I)v=!v}return v}le(Bc,"isPointInPolygon");function Wc(t,m){if(!m)return!1;let p={x:t.clientX,y:t.clientY};return Bc(p,m)}le(Wc,"isPointerInGraceArea");function en(t){return(m)=>m.pointerType==="mouse"?t(m):void 0}le(en,"whenMouse");var Se=bu,Ce=Oc,we=Su,Re=Eu,Le=Mc,Ie=Au,Pe=Zr,Te=Mu,ke=Lu,Ee=Fu,Me=ju,Ae=Bu;var De=Vu,Ne=$u,_e=Hu;
|
|
42
|
+
export{xe,a,b,P,lr,f,W,n,re,r,i,o,be,S,g,u,A,cr,q,ce,l,c,_,O,ue,de,ye,xt,K,d,s,C,j,Y,fe,oe,ae,Se,Ce,we,Re,Le,Ie,Pe,Te,ke,Ee,Me,Ae,De,Ne,_e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./index-
|
|
1
|
+
import{t}from"./index-0warxk1d.js";var c=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],it=t("ellipsis",c);var e=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],st=t("chevron-left",e);
|
|
2
2
|
export{it,st};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./index-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./index-0warxk1d.js";import{jsx as o}from"react/jsx-runtime";var $e=({className:a="",size:e=24,...c})=>o("svg",{className:`animate-spin ${a}`,width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading",...c,children:o("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none",strokeDasharray:"60",strokeDashoffset:"20"})});var r=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mr=t("circle-check",r);var n=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],yt=t("triangle-alert",n);var d=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],hr=t("code",d);var p=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ne=t("copy",p);var i=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],gr=t("download",i);var s=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],zt=t("external-link",s);var h=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],He=t("eye-off",h);var l=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pe=t("eye",l);var y=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],vr=t("file",y);var m=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],xr=t("folder-open",m);var k=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],br=t("folder",k);var f=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],yr=t("inbox",f);var u=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Sr=t("info",u);var x=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],lt=t("key",x);var _=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],St=t("link-2",_);var M=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ct=t("pencil",M);var v=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ge=t("plus",v);var L=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Cr=t("trash-2",L);var I=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],wr=t("upload",I);
|
|
2
|
+
export{mr,yt,hr,ne,gr,zt,He,pe,vr,xr,br,yr,Sr,lt,St,ct,Ge,Cr,wr,$e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./index-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./index-0warxk1d.js";var e=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Lr=t("moon",e);var o=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ir=t("sun",o);
|
|
2
|
+
export{Lr,Ir};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,r,i,o,c,s,
|
|
2
|
-
export{ot,
|
|
1
|
+
import{a,r,i,o,c,s,ae,Se,Ce,we,Re,Le,Ie,Pe,Te,ke,Ee,Me,Ae,De,Ne,_e}from"./index-50g897x2.js";import{p,m,w}from"./index-0warxk1d.js";import{e}from"./index-fwsd4nes.js";import*as M from"react";import{jsx as g}from"react/jsx-runtime";var B=Object.defineProperty,b=(t,n)=>B(t,"name",{value:n,configurable:!0}),S="DropdownMenu",[J,je]=i(S,[ae]),P=ae(),[Q,k]=J(S),V=b((t)=>{let{__scopeDropdownMenu:n,children:d,dir:u,open:l,defaultOpen:f,onOpenChange:D,modal:h=!0}=t,x=P(n),R=M.useRef(null),[I,C]=s({prop:l,defaultProp:f??!1,onChange:D,caller:S});return g(Q,{scope:n,triggerId:c(),triggerRef:R,contentId:c(),open:I,onOpenChange:C,onOpenToggle:M.useCallback(()=>C((q)=>!q),[C]),modal:h,children:g(Se,{...x,open:I,onOpenChange:C,dir:u,modal:h,children:d})})},"DropdownMenu"),X="DropdownMenuTrigger",Y=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,disabled:l=!1,...f}=n,D=k(X,u),h=P(u),x=a(d,D.triggerRef);return g(Ce,{asChild:!0,...h,children:g(o.button,{type:"button",id:D.triggerId,"aria-haspopup":"menu","aria-expanded":D.open,"aria-controls":D.open?D.contentId:void 0,"data-state":D.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...f,ref:x,onPointerDown:r(n.onPointerDown,(R)=>{if(!l&&R.button===0&&R.ctrlKey===!1){if(D.onOpenToggle(),!D.open)R.preventDefault()}}),onKeyDown:r(n.onKeyDown,(R)=>{if(l)return;if(["Enter"," "].includes(R.key))D.onOpenToggle();if(R.key==="ArrowDown")D.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(R.key))R.preventDefault()})})})},"DropdownMenuTrigger")),Z=b((t)=>{let{__scopeDropdownMenu:n,...d}=t,u=P(n);return g(we,{...u,...d})},"DropdownMenuPortal"),ee="DropdownMenuContent",oe=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=k(ee,u),D=P(u),h=M.useRef(!1);return g(Re,{id:f.contentId,"aria-labelledby":f.triggerId,...D,...l,ref:d,onCloseAutoFocus:r(n.onCloseAutoFocus,(x)=>{if(!h.current)f.triggerRef.current?.focus();h.current=!1,x.preventDefault()}),onInteractOutside:r(n.onInteractOutside,(x)=>{let R=x.detail.originalEvent,I=R.button===0&&R.ctrlKey===!0,C=R.button===2||I;if(!f.modal||C)h.current=!0}),style:{...n.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)"}}})},"DropdownMenuContent")),ne=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Le,{...f,...l,ref:d})},"DropdownMenuGroup")),te=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Ie,{...f,...l,ref:d})},"DropdownMenuLabel")),re=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Pe,{...f,...l,ref:d})},"DropdownMenuItem")),ie=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Te,{...f,...l,ref:d})},"DropdownMenuCheckboxItem")),de=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(ke,{...f,...l,ref:d})},"DropdownMenuRadioGroup")),pe=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Ee,{...f,...l,ref:d})},"DropdownMenuRadioItem")),ue=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Me,{...f,...l,ref:d})},"DropdownMenuItemIndicator")),se=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Ae,{...f,...l,ref:d})},"DropdownMenuSeparator"));var ce=b((t)=>{let{__scopeDropdownMenu:n,children:d,open:u,onOpenChange:l,defaultOpen:f}=t,D=P(n),[h,x]=s({prop:u,defaultProp:f??!1,onChange:l,caller:"DropdownMenuSub"});return g(De,{...D,open:h,onOpenChange:x,children:d})},"DropdownMenuSub"),me=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(Ne,{...f,...l,ref:d})},"DropdownMenuSubTrigger")),le=M.forwardRef(b(function(n,d){let{__scopeDropdownMenu:u,...l}=n,f=P(u);return g(_e,{...f,...l,ref:d,style:{...n.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)"}}})},"DropdownMenuSubContent")),G=V,N=Y,_=Z,O=oe,z=ne,A=te,E=re,L=ie,K=de,j=pe,y=ue,F=se;var H=ce,U=me,W=le;import{jsx as v,jsxs as T}from"react/jsx-runtime";var ot=({...t})=>v(G,{"data-slot":"dropdown-menu",...t}),yo=({...t})=>v(_,{"data-slot":"dropdown-menu-portal",...t}),at=({...t})=>v(N,{"data-slot":"dropdown-menu-trigger",...t}),nt=({className:t,sideOffset:n=4,...d})=>v(_,{children:v(O,{"data-slot":"dropdown-menu-content",sideOffset:n,className:e("bg-popover 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...d})}),So=({...t})=>v(z,{"data-slot":"dropdown-menu-group",...t}),Co=({className:t,inset:n,variant:d="default",...u})=>v(E,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":d,className:e("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...u}),vt=({className:t,children:n,...d})=>T(L,{"data-slot":"dropdown-menu-checkbox-item",className:e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...d,children:[v("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v(y,{children:v(p,{className:"size-4"})})}),n]}),wo=({...t})=>v(K,{"data-slot":"dropdown-menu-radio-group",...t}),Ro=({className:t,children:n,...d})=>T(j,{"data-slot":"dropdown-menu-radio-item",className:e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...d,children:[v("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v(y,{children:v(w,{className:"size-2 fill-current"})})}),n]}),ir=({className:t,inset:n,...d})=>v(A,{"data-slot":"dropdown-menu-label","data-inset":n,className:e("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...d}),sr=({className:t,...n})=>v(F,{"data-slot":"dropdown-menu-separator",className:e("bg-border -mx-1 my-1 h-px",t),...n}),Lo=({className:t,...n})=>v("span",{"data-slot":"dropdown-menu-shortcut",className:e("text-muted-foreground ml-auto text-xs tracking-widest",t),...n}),Io=({...t})=>v(H,{"data-slot":"dropdown-menu-sub",...t}),Po=({className:t,inset:n,children:d,...u})=>T(U,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",t),...u,children:[d,v(m,{className:"ml-auto size-4"})]}),To=({className:t,...n})=>v(W,{"data-slot":"dropdown-menu-sub-content",className:e("bg-popover 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n});
|
|
2
|
+
export{ot,yo,at,nt,So,Co,vt,wo,Ro,ir,sr,Lo,Io,Po,To};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t}from"./index-0warxk1d.js";var e=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],dr=t("panel-left",e);var o=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],fr=t("calendar",o);var a=[["path",{d:"M5 12h14",key:"1ays0h"}]],pr=t("minus",a);
|
|
2
|
+
export{dr,fr,pr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z,Q,r,i,o,s,ee,Se,Ce,we,Re,Le,Ie,Pe,Te,ke,Ee,Me,De,Ae,Ne,_e}from"./index-x5ks3173.js";import{f,m,w}from"./index-k2h122pf.js";import{it,st}from"./index-t67ch826.js";import{e}from"./index-fwsd4nes.js";import*as d from"react";import{Fragment as te,jsx as C,jsxs as ne}from"react/jsx-runtime";var Z=Object.defineProperty,x=(n,t)=>Z(n,"name",{value:t,configurable:!0}),T="ContextMenu",[oe,Qe]=i(T,[ee]),v=ee(),[ae,A]=oe(T),re=x((n)=>{let{__scopeContextMenu:t,children:a,onOpenChange:u,open:c,dir:p,modal:M=!0}=n,P=d.useRef(!1);if(Q){let S=d.useRef(!1);d.useEffect(()=>{if(c===!0&&!P.current&&!S.current)S.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport.")},[c])}let[g,y]=s({prop:c,defaultProp:!1,onChange:u,caller:T}),N=v(t);return C(ae,{scope:t,open:g,onOpenChange:y,modal:M,hasInteractedRef:P,children:C(Se,{...N,dir:p,open:g,onOpenChange:y,modal:M,children:a})})},"ContextMenu"),ie="ContextMenuTrigger",se=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,disabled:c=!1,...p}=t,M=A(ie,u),P=v(u),[g,y]=d.useState({x:0,y:0}),N=d.useMemo(()=>({current:{getBoundingClientRect:x(()=>DOMRect.fromRect({width:0,height:0,...g}),"getBoundingClientRect")}}),[g]),S=d.useRef(0),h=d.useCallback(()=>window.clearTimeout(S.current),[]),E=x((I)=>{M.hasInteractedRef.current=!0,y({x:I.clientX,y:I.clientY}),M.onOpenChange(!0)},"handleOpen");return d.useEffect(()=>h,[h]),d.useEffect(()=>void(c&&h()),[c,h]),ne(te,{children:[C(Ce,{...P,virtualRef:N}),C(o.span,{"data-state":M.open?"open":"closed","data-disabled":c?"":void 0,...p,ref:a,style:{WebkitTouchCallout:"none",...t.style},onContextMenu:c?t.onContextMenu:r(t.onContextMenu,(I)=>{h(),E(I),I.preventDefault()}),onPointerDown:c?t.onPointerDown:r(t.onPointerDown,_((I)=>{if(h(),M.open)M.onOpenChange(!1);S.current=window.setTimeout(()=>E(I),700)})),onPointerMove:c?t.onPointerMove:r(t.onPointerMove,_(h)),onPointerCancel:c?t.onPointerCancel:r(t.onPointerCancel,_(h)),onPointerUp:c?t.onPointerUp:r(t.onPointerUp,_(h))})]})},"ContextMenuTrigger")),ce=x((n)=>{let{__scopeContextMenu:t,...a}=n,u=v(t);return C(we,{...u,...a})},"ContextMenuPortal"),ue="ContextMenuContent",me=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=A(ue,u),M=v(u),P=d.useRef(!1);return C(Re,{...M,...c,ref:a,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:(g)=>{if(t.onCloseAutoFocus?.(g),!g.defaultPrevented&&P.current)g.preventDefault();P.current=!1},onInteractOutside:(g)=>{if(t.onInteractOutside?.(g),!g.defaultPrevented&&!p.modal)P.current=!0},style:{...t.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)"}}})},"ContextMenuContent")),de=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Le,{...p,...c,ref:a})},"ContextMenuGroup")),pe=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Ie,{...p,...c,ref:a})},"ContextMenuLabel")),le=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Pe,{...p,...c,ref:a})},"ContextMenuItem")),xe=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Te,{...p,...c,ref:a})},"ContextMenuCheckboxItem")),fe=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(ke,{...p,...c,ref:a})},"ContextMenuRadioGroup")),ve=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Ee,{...p,...c,ref:a})},"ContextMenuRadioItem")),ge=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Me,{...p,...c,ref:a})},"ContextMenuItemIndicator")),be=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(De,{...p,...c,ref:a})},"ContextMenuSeparator"));var he="ContextMenuSub",ye=x((n)=>{let{__scopeContextMenu:t,children:a,onOpenChange:u,open:c,defaultOpen:p}=n,M=v(t),[P,g]=s({prop:c,defaultProp:p??!1,onChange:u,caller:he});return C(Ae,{...M,open:P,onOpenChange:g,children:a})},"ContextMenuSub"),Ge=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(Ne,{...p,...c,ref:a})},"ContextMenuSubTrigger")),Oe=d.forwardRef(x(function(t,a){let{__scopeContextMenu:u,...c}=t,p=v(u);return C(_e,{...p,...c,ref:a,style:{...t.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)"}}})},"ContextMenuSubContent"));function _(n){return(t)=>t.pointerType!=="mouse"?n(t):void 0}x(_,"whenTouchOrPen");var D=re,B=se,k=ce,U=me,j=de,F=pe,H=le,V=xe,W=fe,X=ve,G=ge,Y=be;var q=ye,J=Ge,K=Oe;import{jsx as l,jsxs as O}from"react/jsx-runtime";var qt=({...n})=>l(D,{"data-slot":"context-menu",...n}),Kt=({...n})=>l(B,{"data-slot":"context-menu-trigger",...n}),eo=({...n})=>l(j,{"data-slot":"context-menu-group",...n}),to=({...n})=>l(k,{"data-slot":"context-menu-portal",...n}),ro=({...n})=>l(q,{"data-slot":"context-menu-sub",...n}),oo=({...n})=>l(W,{"data-slot":"context-menu-radio-group",...n}),ao=({className:n,inset:t,children:a,...u})=>O(J,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...u,children:[a,l(m,{className:"ml-auto"})]}),no=({className:n,...t})=>l(K,{"data-slot":"context-menu-sub-content",className:e("bg-popover 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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",n),...t}),jt=({className:n,...t})=>l(k,{children:l(U,{"data-slot":"context-menu-content",className:e("bg-popover 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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",n),...t})}),io=({className:n,inset:t,variant:a="default",...u})=>l(H,{"data-slot":"context-menu-item","data-inset":t,"data-variant":a,className:e("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...u}),so=({className:n,children:t,...a})=>O(V,{"data-slot":"context-menu-checkbox-item",className:e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a,children:[l("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:l(G,{children:l(f,{className:"size-4"})})}),t]}),lo=({className:n,children:t,...a})=>O(X,{"data-slot":"context-menu-radio-item",className:e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a,children:[l("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:l(G,{children:l(w,{className:"size-2 fill-current"})})}),t]}),co=({className:n,inset:t,...a})=>l(F,{"data-slot":"context-menu-label","data-inset":t,className:e("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n),...a}),uo=({className:n,...t})=>l(Y,{"data-slot":"context-menu-separator",className:e("bg-border -mx-1 my-1 h-px",n),...t}),fo=({className:n,...t})=>l("span",{"data-slot":"context-menu-shortcut",className:e("text-muted-foreground ml-auto text-xs tracking-widest",n),...t});import{jsx as b,jsxs as L}from"react/jsx-runtime";var Yt=({className:n,...t})=>b("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:e("mx-auto flex w-full justify-center",n),...t}),Xt=({className:n,children:t,...a})=>b("ul",{"data-slot":"pagination-content",className:e("flex flex-row items-center gap-1",n),...a,children:t}),ze=({...n})=>b("li",{"data-slot":"pagination-item",...n}),Ir=({className:n,children:t,isActive:a,size:u="icon",...c})=>b("a",{"aria-current":a===!0?"page":void 0,"data-slot":"pagination-link","data-active":a,className:e(z({size:u,variant:a===!0?"outline":"ghost"}),n),...c,children:t}),po=({className:n,...t})=>L(Ir,{"aria-label":"Go to previous page",size:"default",className:e("gap-1 px-2.5 sm:pl-2.5",n),...t,children:[b(st,{}),b("span",{className:"hidden sm:block",children:"Previous"})]}),mo=({className:n,...t})=>L(Ir,{"aria-label":"Go to next page",size:"default",className:e("gap-1 px-2.5 sm:pr-2.5",n),...t,children:[b("span",{className:"hidden sm:block",children:"Next"}),b(m,{})]}),Zt=({className:n,...t})=>L("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:e("flex size-9 items-center justify-center",n),...t,children:[b(it,{className:"size-4"}),b("span",{className:"sr-only",children:"More pages"})]});import{jsx as R}from"react/jsx-runtime";var Qt=({className:n,...t})=>R("div",{"data-slot":"table-container",className:"relative w-full max-w-full overflow-x-auto",children:R("table",{"data-slot":"table",className:e("min-w-full w-max caption-bottom text-sm",n),...t})}),Jt=({className:n,...t})=>R("thead",{"data-slot":"table-header",className:e("[&_tr]:border-b",n),...t}),er=({className:n,...t})=>R("tbody",{"data-slot":"table-body",className:e("[&_tr:last-child]:border-0",n),...t}),ho=({className:n,...t})=>R("tfoot",{"data-slot":"table-footer",className:e("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",n),...t}),We=({className:n,...t})=>R("tr",{"data-slot":"table-row",className:e("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...t}),Ct=({className:n,...t})=>R("th",{"data-slot":"table-head",className:e("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...t}),qe=({className:n,...t})=>R("td",{"data-slot":"table-cell",className:e("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...t}),tr=({className:n,...t})=>R("caption",{"data-slot":"table-caption",className:e("text-muted-foreground mt-4 text-sm",n),...t});
|
|
2
|
-
export{qt,Kt,
|
|
1
|
+
import{W,re,r,i,o,s,ae,Se,Ce,we,Re,Le,Ie,Pe,Te,ke,Ee,Me,Ae,De,Ne,_e}from"./index-50g897x2.js";import{p,m,w}from"./index-0warxk1d.js";import{it,st}from"./index-58jcemv5.js";import{e}from"./index-fwsd4nes.js";import*as d from"react";import{Fragment as Z,jsx as C,jsxs as ee}from"react/jsx-runtime";var Q=Object.defineProperty,f=(n,t)=>Q(n,"name",{value:t,configurable:!0}),T="ContextMenu",[te,Qe]=i(T,[ae]),v=ae(),[ne,E]=te(T),oe=f((n)=>{let{__scopeContextMenu:t,children:a,onOpenChange:u,open:c,dir:l,modal:M=!0}=n,P=d.useRef(!1);if(re){let S=d.useRef(!1);d.useEffect(()=>{if(c===!0&&!P.current&&!S.current)S.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport.")},[c])}let[g,y]=s({prop:c,defaultProp:!1,onChange:u,caller:T}),N=v(t);return C(ne,{scope:t,open:g,onOpenChange:y,modal:M,hasInteractedRef:P,children:C(Se,{...N,dir:l,open:g,onOpenChange:y,modal:M,children:a})})},"ContextMenu"),ie="ContextMenuTrigger",se=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,disabled:c=!1,...l}=t,M=E(ie,u),P=v(u),[g,y]=d.useState({x:0,y:0}),N=d.useMemo(()=>({current:{getBoundingClientRect:f(()=>DOMRect.fromRect({width:0,height:0,...g}),"getBoundingClientRect")}}),[g]),S=d.useRef(0),h=d.useCallback(()=>window.clearTimeout(S.current),[]),L=f((I)=>{M.hasInteractedRef.current=!0,y({x:I.clientX,y:I.clientY}),M.onOpenChange(!0)},"handleOpen");return d.useEffect(()=>h,[h]),d.useEffect(()=>void(c&&h()),[c,h]),ee(Z,{children:[C(Ce,{...P,virtualRef:N}),C(o.span,{"data-state":M.open?"open":"closed","data-disabled":c?"":void 0,...l,ref:a,style:{WebkitTouchCallout:"none",...t.style},onContextMenu:c?t.onContextMenu:r(t.onContextMenu,(I)=>{h(),L(I),I.preventDefault()}),onPointerDown:c?t.onPointerDown:r(t.onPointerDown,_((I)=>{if(h(),M.open)M.onOpenChange(!1);S.current=window.setTimeout(()=>L(I),700)})),onPointerMove:c?t.onPointerMove:r(t.onPointerMove,_(h)),onPointerCancel:c?t.onPointerCancel:r(t.onPointerCancel,_(h)),onPointerUp:c?t.onPointerUp:r(t.onPointerUp,_(h))})]})},"ContextMenuTrigger")),ce=f((n)=>{let{__scopeContextMenu:t,...a}=n,u=v(t);return C(we,{...u,...a})},"ContextMenuPortal"),ue="ContextMenuContent",me=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=E(ue,u),M=v(u),P=d.useRef(!1);return C(Re,{...M,...c,ref:a,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:(g)=>{if(t.onCloseAutoFocus?.(g),!g.defaultPrevented&&P.current)g.preventDefault();P.current=!1},onInteractOutside:(g)=>{if(t.onInteractOutside?.(g),!g.defaultPrevented&&!l.modal)P.current=!0},style:{...t.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)"}}})},"ContextMenuContent")),de=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Le,{...l,...c,ref:a})},"ContextMenuGroup")),pe=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Ie,{...l,...c,ref:a})},"ContextMenuLabel")),le=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Pe,{...l,...c,ref:a})},"ContextMenuItem")),xe=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Te,{...l,...c,ref:a})},"ContextMenuCheckboxItem")),fe=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(ke,{...l,...c,ref:a})},"ContextMenuRadioGroup")),ve=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Ee,{...l,...c,ref:a})},"ContextMenuRadioItem")),ge=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Me,{...l,...c,ref:a})},"ContextMenuItemIndicator")),be=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Ae,{...l,...c,ref:a})},"ContextMenuSeparator"));var he="ContextMenuSub",ye=f((n)=>{let{__scopeContextMenu:t,children:a,onOpenChange:u,open:c,defaultOpen:l}=n,M=v(t),[P,g]=s({prop:c,defaultProp:l??!1,onChange:u,caller:he});return C(De,{...M,open:P,onOpenChange:g,children:a})},"ContextMenuSub"),Ge=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(Ne,{...l,...c,ref:a})},"ContextMenuSubTrigger")),Oe=d.forwardRef(f(function(t,a){let{__scopeContextMenu:u,...c}=t,l=v(u);return C(_e,{...l,...c,ref:a,style:{...t.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)"}}})},"ContextMenuSubContent"));function _(n){return(t)=>t.pointerType!=="mouse"?n(t):void 0}f(_,"whenTouchOrPen");var A=oe,D=se,k=ce,B=me,U=de,j=pe,F=le,H=xe,V=fe,X=ve,z=ge,Y=be;var q=ye,J=Ge,K=Oe;import{jsx as x,jsxs as G}from"react/jsx-runtime";var qt=({...n})=>x(A,{"data-slot":"context-menu",...n}),Kt=({...n})=>x(D,{"data-slot":"context-menu-trigger",...n}),to=({...n})=>x(U,{"data-slot":"context-menu-group",...n}),ro=({...n})=>x(k,{"data-slot":"context-menu-portal",...n}),oo=({...n})=>x(q,{"data-slot":"context-menu-sub",...n}),ao=({...n})=>x(V,{"data-slot":"context-menu-radio-group",...n}),no=({className:n,inset:t,children:a,...u})=>G(J,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...u,children:[a,x(m,{className:"ml-auto"})]}),io=({className:n,...t})=>x(K,{"data-slot":"context-menu-sub-content",className:e("bg-popover 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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",n),...t}),jt=({className:n,...t})=>x(k,{children:x(B,{"data-slot":"context-menu-content",className:e("bg-popover 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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",n),...t})}),so=({className:n,inset:t,variant:a="default",...u})=>x(F,{"data-slot":"context-menu-item","data-inset":t,"data-variant":a,className:e("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...u}),lo=({className:n,children:t,...a})=>G(H,{"data-slot":"context-menu-checkbox-item",className:e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a,children:[x("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:x(z,{children:x(p,{className:"size-4"})})}),t]}),co=({className:n,children:t,...a})=>G(X,{"data-slot":"context-menu-radio-item",className:e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a,children:[x("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:x(z,{children:x(w,{className:"size-2 fill-current"})})}),t]}),uo=({className:n,inset:t,...a})=>x(j,{"data-slot":"context-menu-label","data-inset":t,className:e("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n),...a}),fo=({className:n,...t})=>x(Y,{"data-slot":"context-menu-separator",className:e("bg-border -mx-1 my-1 h-px",n),...t}),po=({className:n,...t})=>x("span",{"data-slot":"context-menu-shortcut",className:e("text-muted-foreground ml-auto text-xs tracking-widest",n),...t});import{jsx as b,jsxs as O}from"react/jsx-runtime";var Yt=({className:n,...t})=>b("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:e("mx-auto flex w-full justify-center",n),...t}),Xt=({className:n,children:t,...a})=>b("ul",{"data-slot":"pagination-content",className:e("flex flex-row items-center gap-1",n),...a,children:t}),ze=({...n})=>b("li",{"data-slot":"pagination-item",...n}),Pr=({className:n,children:t,isActive:a,size:u="icon",...c})=>b("a",{"aria-current":a===!0?"page":void 0,"data-slot":"pagination-link","data-active":a,className:e(W({size:u,variant:a===!0?"outline":"ghost"}),n),...c,children:t}),mo=({className:n,...t})=>O(Pr,{"aria-label":"Go to previous page",size:"default",className:e("gap-1 px-2.5 sm:pl-2.5",n),...t,children:[b(st,{}),b("span",{className:"hidden sm:block",children:"Previous"})]}),ho=({className:n,...t})=>O(Pr,{"aria-label":"Go to next page",size:"default",className:e("gap-1 px-2.5 sm:pr-2.5",n),...t,children:[b("span",{className:"hidden sm:block",children:"Next"}),b(m,{})]}),Zt=({className:n,...t})=>O("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:e("flex size-9 items-center justify-center",n),...t,children:[b(it,{className:"size-4"}),b("span",{className:"sr-only",children:"More pages"})]});import{jsx as R}from"react/jsx-runtime";var Qt=({className:n,...t})=>R("div",{"data-slot":"table-container",className:"relative w-full max-w-full overflow-x-auto",children:R("table",{"data-slot":"table",className:e("min-w-full w-max caption-bottom text-sm",n),...t})}),Jt=({className:n,...t})=>R("thead",{"data-slot":"table-header",className:e("[&_tr]:border-b",n),...t}),er=({className:n,...t})=>R("tbody",{"data-slot":"table-body",className:e("[&_tr:last-child]:border-0",n),...t}),go=({className:n,...t})=>R("tfoot",{"data-slot":"table-footer",className:e("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",n),...t}),We=({className:n,...t})=>R("tr",{"data-slot":"table-row",className:e("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...t}),Ct=({className:n,...t})=>R("th",{"data-slot":"table-head",className:e("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...t}),qe=({className:n,...t})=>R("td",{"data-slot":"table-cell",className:e("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...t}),tr=({className:n,...t})=>R("caption",{"data-slot":"table-caption",className:e("text-muted-foreground mt-4 text-sm",n),...t});
|
|
2
|
+
export{qt,Kt,to,ro,oo,ao,no,io,jt,so,lo,co,uo,fo,po,Yt,Xt,ze,Pr,mo,ho,Zt,Qt,Jt,er,go,We,Ct,qe,tr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./index-
|
|
1
|
+
import{n}from"./index-50g897x2.js";import{ot,at,nt,vt,ir,sr}from"./index-dcmmdjnn.js";import{Lr,Ir}from"./index-a27yrhds.js";import{e}from"./index-fwsd4nes.js";import{jsx as o,jsxs as a}from"react/jsx-runtime";var g={dark:"Dark",light:"Light",system:"System",title:"Theme",toggle:"Toggle theme"},d=({onThemeChange:r,value:s,labels:t=g,className:l})=>a(ot,{children:[o(at,{asChild:!0,children:a(n,{variant:"ghost",size:"icon",className:e("size-8",l),children:[o(Ir,{className:"size-4 scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),o(Lr,{className:"absolute size-4 scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),o("span",{className:"sr-only",children:t.toggle})]})}),a(nt,{align:"end",className:"min-w-40 rounded-lg p-1.5",children:[o(ir,{className:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:t.title}),o(sr,{}),o(vt,{checked:s==="light",className:"rounded-md",onSelect:()=>{r("light")},children:t.light}),o(vt,{checked:s==="dark",className:"rounded-md",onSelect:()=>{r("dark")},children:t.dark}),o(vt,{checked:s==="system",className:"rounded-md",onSelect:()=>{r("system")},children:t.system})]})]}),nr=d;
|
|
2
2
|
export{nr};
|