@geegeez/ui 0.0.41 → 0.0.44

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/dist/index.cjs CHANGED
@@ -1,76 +1,76 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),li=require("react-dom");function ny(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ny(w),ci=ny(li);function tT(e,t){const n=d.createContext(t),r=a=>{const{children:i,...s}=a,l=d.useMemo(()=>s,Object.values(s));return p.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(a){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ke(e,t=[]){let n=[];function r(a,i){const s=d.createContext(i),l=n.length;n=[...n,i];const u=c=>{const{scope:m,children:h,...v}=c,g=m?.[e]?.[l]||s,b=d.useMemo(()=>v,Object.values(v));return p.jsx(g.Provider,{value:b,children:h})};u.displayName=a+"Provider";function f(c,m){const h=m?.[e]?.[l]||s,v=d.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>d.createContext(i));return function(s){const l=s?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,nT(o,...t)]}function nT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(a)[`__scope${u}`];return{...s,...c}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function im(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ot(...e){return t=>{let n=!1;const r=e.map(o=>{const a=im(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():im(e[o],null)}}}}function ce(...e){return d.useCallback(Ot(...e),e)}function Wn(e){const t=rT(e),n=d.forwardRef((r,o)=>{const{children:a,...i}=r,s=d.Children.toArray(a),l=s.find(oT);if(l){const u=l.props.children,f=s.map(c=>c===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:c);return p.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return p.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function rT(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const i=iT(o),s=aT(a,o.props);return o.type!==d.Fragment&&(s.ref=r?Ot(r,i):i),d.cloneElement(o,s)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ry=Symbol("radix.slottable");function oy(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ry,t}function oT(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ry}function aT(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function iT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Nn(e){const t=e+"CollectionProvider",[n,r]=ke(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:b,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:S,collectionRef:x,children:y})};i.displayName=t;const s=e+"CollectionSlot",l=Wn(s),u=w.forwardRef((g,b)=>{const{scope:y,children:x}=g,S=a(s,y),C=ce(b,S.collectionRef);return p.jsx(l,{ref:C,children:x})});u.displayName=s;const f=e+"CollectionItemSlot",c="data-radix-collection-item",m=Wn(f),h=w.forwardRef((g,b)=>{const{scope:y,children:x,...S}=g,C=w.useRef(null),E=ce(b,C),R=a(f,y);return w.useEffect(()=>(R.itemMap.set(C,{ref:C,...S}),()=>void R.itemMap.delete(C))),p.jsx(m,{[c]:"",ref:E,children:x})});h.displayName=f;function v(g){const b=a(e+"CollectionConsumer",g);return w.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((R,_)=>S.indexOf(R.ref.current)-S.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},v,r]}function G(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Ie=globalThis?.document?d.useLayoutEffect:()=>{},sT=d[" useInsertionEffect ".trim().toString()]||Ie;function Ae({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=lT({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const c=f.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"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=s},[s,r])}const u=d.useCallback(f=>{if(s){const c=cT(f)?f(e):f;c!==e&&i.current?.(c)}else a(f)},[s,e,a,i]);return[l,u]}function lT({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return sT(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function cT(e){return typeof e=="function"}var uT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=uT.reduce((e,t)=>{const n=Wn(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Aa(e,t){e&&ci.flushSync(()=>e.dispatchEvent(t))}function dT(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var De=e=>{const{present:t,children:n}=e,r=fT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=ce(r.ref,pT(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};De.displayName="Presence";function fT(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),i=e?"mounted":"unmounted",[s,l]=dT(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=sa(r.current);a.current=s==="mounted"?u:"none"},[s]),Ie(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,h=sa(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=h=>{const g=sa(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=h=>{h.target===t&&(a.current=sa(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function sa(e){return e?.animationName||"none"}function pT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mT=d[" useId ".trim().toString()]||(()=>{}),hT=0;function Te(e){const[t,n]=d.useState(mT());return Ie(()=>{n(r=>r??String(hT++))},[e]),t?`radix-${t}`:""}var ui="Collapsible",[gT,ay]=ke(ui),[vT,Wd]=gT(ui),iy=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l,u]=Ae({prop:r,defaultProp:o??!1,onChange:i,caller:ui});return p.jsx(vT,{scope:n,disabled:a,contentId:Te(),open:l,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),children:p.jsx(ne.div,{"data-state":Ud(l),"data-disabled":a?"":void 0,...s,ref:t})})});iy.displayName=ui;var sy="CollapsibleTrigger",Hd=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Wd(sy,n);return p.jsx(ne.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ud(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:G(e.onClick,o.onOpenToggle)})});Hd.displayName=sy;var Gd="CollapsibleContent",Vd=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wd(Gd,e.__scopeCollapsible);return p.jsx(De,{present:n||o.open,children:({present:a})=>p.jsx(bT,{...r,ref:t,present:a})})});Vd.displayName=Gd;var bT=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Wd(Gd,n),[s,l]=d.useState(r),u=d.useRef(null),f=ce(t,u),c=d.useRef(0),m=c.current,h=d.useRef(0),v=h.current,g=i.open||s,b=d.useRef(g),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),Ie(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const S=x.getBoundingClientRect();c.current=S.height,h.current=S.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[i.open,r]),p.jsx(ne.div,{"data-state":Ud(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function Ud(e){return e?"open":"closed"}var ly=iy,yT=Hd,xT=Vd,wT=d.createContext(void 0);function It(e){const t=d.useContext(wT);return e||t||"ltr"}var kt="Accordion",ST=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Kd,CT,_T]=Nn(kt),[di]=ke(kt,[_T,ay]),Yd=ay(),cy=w.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return p.jsx(Kd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(PT,{...a,ref:t}):p.jsx(NT,{...o,ref:t})})});cy.displayName=kt;var[uy,ET]=di(kt),[dy,RT]=di(kt,{collapsible:!1}),NT=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=Ae({prop:n,defaultProp:r??"",onChange:o,caller:kt});return p.jsx(uy,{scope:e.__scopeAccordion,value:w.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:w.useCallback(()=>a&&l(""),[a,l]),children:p.jsx(dy,{scope:e.__scopeAccordion,collapsible:a,children:p.jsx(fy,{...i,ref:t})})})}),PT=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ae({prop:n,defaultProp:r??[],onChange:o,caller:kt}),l=w.useCallback(f=>s((c=[])=>[...c,f]),[s]),u=w.useCallback(f=>s((c=[])=>c.filter(m=>m!==f)),[s]);return p.jsx(uy,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:p.jsx(dy,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(fy,{...a,ref:t})})})}),[MT,fi]=di(kt),fy=w.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=w.useRef(null),l=ce(s,t),u=CT(n),c=It(o)==="ltr",m=G(e.onKeyDown,h=>{if(!ST.includes(h.key))return;const v=h.target,g=u().filter(P=>!P.ref.current?.disabled),b=g.findIndex(P=>P.ref.current===v),y=g.length;if(b===-1)return;h.preventDefault();let x=b;const S=0,C=y-1,E=()=>{x=b+1,x>C&&(x=S)},R=()=>{x=b-1,x<S&&(x=C)};switch(h.key){case"Home":x=S;break;case"End":x=C;break;case"ArrowRight":a==="horizontal"&&(c?E():R());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(c?R():E());break;case"ArrowUp":a==="vertical"&&R();break}const _=x%y;g[_].ref.current?.focus()});return p.jsx(MT,{scope:n,disabled:r,direction:o,orientation:a,children:p.jsx(Kd.Slot,{scope:n,children:p.jsx(ne.div,{...i,"data-orientation":a,ref:l,onKeyDown:r?void 0:m})})})}),Da="AccordionItem",[TT,Xd]=di(Da),py=w.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=fi(Da,n),i=ET(Da,n),s=Yd(n),l=Te(),u=r&&i.value.includes(r)||!1,f=a.disabled||e.disabled;return p.jsx(TT,{scope:n,open:u,disabled:f,triggerId:l,children:p.jsx(ly,{"data-orientation":a.orientation,"data-state":yy(u),...s,...o,ref:t,disabled:f,open:u,onOpenChange:c=>{c?i.onItemOpen(r):i.onItemClose(r)}})})});py.displayName=Da;var my="AccordionHeader",hy=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=fi(kt,n),a=Xd(my,n);return p.jsx(ne.h3,{"data-orientation":o.orientation,"data-state":yy(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});hy.displayName=my;var Gu="AccordionTrigger",gy=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=fi(kt,n),a=Xd(Gu,n),i=RT(Gu,n),s=Yd(n);return p.jsx(Kd.ItemSlot,{scope:n,children:p.jsx(yT,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});gy.displayName=Gu;var vy="AccordionContent",by=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=fi(kt,n),a=Xd(vy,n),i=Yd(n);return p.jsx(xT,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});by.displayName=vy;function yy(e){return e?"open":"closed"}var OT=cy,AT=py,DT=hy,xy=gy,wy=by;const IT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kT=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),sm=e=>{const t=kT(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),jT=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var $T={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"};const LT=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>w.createElement("svg",{ref:l,...$T,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sy("lucide",o),...!a&&!jT(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,f])=>w.createElement(u,f)),...Array.isArray(a)?a:[a]]));const at=(e,t)=>{const n=w.forwardRef(({className:r,...o},a)=>w.createElement(LT,{ref:a,iconNode:t,className:Sy(`lucide-${IT(sm(e))}`,`lucide-${e}`,r),...o}));return n.displayName=sm(e),n};const FT=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],BT=at("arrow-left",FT);const zT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qT=at("arrow-right",zT);const WT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],To=at("check",WT);const HT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Oo=at("chevron-down",HT);const GT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ar=at("chevron-right",GT);const VT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cy=at("chevron-left",VT);const UT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],KT=at("chevron-up",UT);const YT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],pi=at("circle",YT);const XT=[["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"}]],_y=at("ellipsis",XT);const ZT=[["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"}]],QT=at("grip-vertical",ZT);const JT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],eO=at("loader-circle",JT);const tO=[["path",{d:"M5 12h14",key:"1ays0h"}]],nO=at("minus",tO);const rO=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],oO=at("panel-left",rO);const aO=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],iO=at("search",aO);const sO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ey=at("x",sO);function Ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ry(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ry(e))&&(r&&(r+=" "),r+=t);return r}const Zd="-",lO=e=>{const t=uO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(Zd);return s[0]===""&&s.length!==1&&s.shift(),Ny(s,t)||cO(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&r[i]?[...l,...r[i]]:l}}},Ny=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ny(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Zd);return t.validators.find(({validator:i})=>i(a))?.classGroupId},lm=/^\[(.+)\]$/,cO=e=>{if(lm.test(e)){const t=lm.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},uO=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fO(Object.entries(e.classGroups),n).forEach(([a,i])=>{Vu(i,r,a,t)}),r},Vu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:cm(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(dO(o)){Vu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{Vu(i,cm(t,a),n,r)})})},cm=(e,t)=>{let n=e;return t.split(Zd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dO=e=>e.isThemeGetter,fO=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,pO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},Py="!",mO=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const l=[];let u=0,f=0,c;for(let b=0;b<s.length;b++){let y=s[b];if(u===0){if(y===o&&(r||s.slice(b,b+a)===t)){l.push(s.slice(f,b)),f=b+a;continue}if(y==="/"){c=b;continue}}y==="["?u++:y==="]"&&u--}const m=l.length===0?s:s.substring(f),h=m.startsWith(Py),v=h?m.substring(1):m,g=c&&c>f?c-f:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:g}};return n?s=>n({className:s,parseClassName:i}):i},hO=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},gO=e=>({cache:pO(e.cacheSize),parseClassName:mO(e),...lO(e)}),vO=/\s+/,bO=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(vO);let s="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:f,hasImportantModifier:c,baseClassName:m,maybePostfixModifierPosition:h}=n(u);let v=!!h,g=r(v?m.substring(0,h):m);if(!g){if(!v){s=u+(s.length>0?" "+s:s);continue}if(g=r(m),!g){s=u+(s.length>0?" "+s:s);continue}v=!1}const b=hO(f).join(":"),y=c?b+Py:b,x=y+g;if(a.includes(x))continue;a.push(x);const S=o(g,v);for(let C=0;C<S.length;++C){const E=S[C];a.push(y+E)}s=u+(s.length>0?" "+s:s)}return s};function yO(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=My(t))&&(r&&(r+=" "),r+=n);return r}const My=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=My(e[r]))&&(n&&(n+=" "),n+=t);return n};function xO(e,...t){let n,r,o,a=i;function i(l){const u=t.reduce((f,c)=>c(f),e());return n=gO(u),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const u=r(l);if(u)return u;const f=bO(l,n);return o(l,f),f}return function(){return a(yO.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ty=/^\[(?:([a-z-]+):)?(.+)\]$/i,wO=/^\d+\/\d+$/,SO=new Set(["px","full","screen"]),CO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_O=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,EO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,RO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=e=>gr(e)||SO.has(e)||wO.test(e),vn=e=>Dr(e,"length",kO),gr=e=>!!e&&!Number.isNaN(Number(e)),cs=e=>Dr(e,"number",gr),Vr=e=>!!e&&Number.isInteger(Number(e)),PO=e=>e.endsWith("%")&&gr(e.slice(0,-1)),he=e=>Ty.test(e),bn=e=>CO.test(e),MO=new Set(["length","size","percentage"]),TO=e=>Dr(e,MO,Oy),OO=e=>Dr(e,"position",Oy),AO=new Set(["image","url"]),DO=e=>Dr(e,AO,$O),IO=e=>Dr(e,"",jO),Ur=()=>!0,Dr=(e,t,n)=>{const r=Ty.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},kO=e=>_O.test(e)&&!EO.test(e),Oy=()=>!1,jO=e=>RO.test(e),$O=e=>NO.test(e),LO=()=>{const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),o=Oe("borderColor"),a=Oe("borderRadius"),i=Oe("borderSpacing"),s=Oe("borderWidth"),l=Oe("contrast"),u=Oe("grayscale"),f=Oe("hueRotate"),c=Oe("invert"),m=Oe("gap"),h=Oe("gradientColorStops"),v=Oe("gradientColorStopPositions"),g=Oe("inset"),b=Oe("margin"),y=Oe("opacity"),x=Oe("padding"),S=Oe("saturate"),C=Oe("scale"),E=Oe("sepia"),R=Oe("skew"),_=Oe("space"),P=Oe("translate"),M=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",he,t],j=()=>[he,t],O=()=>["",on,vn],F=()=>["auto",gr,he],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",he],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[gr,he];return{cacheSize:500,separator:":",theme:{colors:[Ur],spacing:[on,vn],blur:["none","",bn,he],brightness:J(),borderColor:[e],borderRadius:["none","","full",bn,he],borderSpacing:j(),borderWidth:O(),contrast:J(),grayscale:q(),hueRotate:J(),invert:q(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[PO,vn],inset:T(),margin:T(),opacity:J(),padding:j(),saturate:J(),scale:J(),sepia:q(),skew:J(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[bn]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),he]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vr,he]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Vr,he]}],"grid-cols":[{"grid-cols":[Ur]}],"col-start-end":[{col:["auto",{span:["full",Vr,he]},he]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Ur]}],"row-start-end":[{row:["auto",{span:[Vr,he]},he]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",he,t]}],"min-w":[{"min-w":[he,t,"min","max","fit"]}],"max-w":[{"max-w":[he,t,"none","full","min","max","fit","prose",{screen:[bn]},bn]}],h:[{h:[he,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bn,vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cs]}],"font-family":[{font:[Ur]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",gr,cs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",on,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",on,vn]}],"underline-offset":[{"underline-offset":["auto",on,he]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),OO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TO]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},DO]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[on,he]}],"outline-w":[{outline:[on,vn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[on,vn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bn,IO]}],"shadow-color":[{shadow:[Ur]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",bn,he]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",he]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Vr,he]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[on,vn,cs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},FO=xO(LO);function N(...e){return FO(dn(e))}const BO=OT,Ay=d.forwardRef(({className:e,...t},n)=>p.jsx(AT,{ref:n,className:N("border-b",e),...t}));Ay.displayName="AccordionItem";const Dy=d.forwardRef(({className:e,children:t,...n},r)=>p.jsx(DT,{className:"flex",children:p.jsxs(xy,{ref:r,className:N("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,p.jsx(Oo,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Dy.displayName=xy.displayName;const Iy=d.forwardRef(({className:e,children:t,...n},r)=>p.jsx(wy,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:p.jsx("div",{className:N("pb-4 pt-0",e),children:t})}));Iy.displayName=wy.displayName;function Me(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function zO(e,t=globalThis?.document){const n=Me(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var qO="DismissableLayer",Uu="dismissableLayer.update",WO="dismissableLayer.pointerDownOutside",HO="dismissableLayer.focusOutside",um,ky=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pn=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=d.useContext(ky),[f,c]=d.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=d.useState({}),v=ce(t,_=>c(_)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=f?g.indexOf(f):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=UO(_=>{const P=_.target,M=[...u.branches].some(k=>k.contains(P));!C||M||(o?.(_),i?.(_),_.defaultPrevented||s?.())},m),R=KO(_=>{const P=_.target;[...u.branches].some(k=>k.contains(P))||(a?.(_),i?.(_),_.defaultPrevented||s?.())},m);return zO(_=>{x===u.layers.size-1&&(r?.(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},m),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(um=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),dm(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=um)}},[f,m,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),dm())},[f,u]),d.useEffect(()=>{const _=()=>h({});return document.addEventListener(Uu,_),()=>document.removeEventListener(Uu,_)},[]),p.jsx(ne.div,{...l,ref:v,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:G(e.onFocusCapture,R.onFocusCapture),onBlurCapture:G(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,E.onPointerDownCapture)})});Pn.displayName=qO;var GO="DismissableLayerBranch",VO=d.forwardRef((e,t)=>{const n=d.useContext(ky),r=d.useRef(null),o=ce(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(ne.div,{...e,ref:o})});VO.displayName=GO;function UO(e,t=globalThis?.document){const n=Me(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){jy(WO,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function KO(e,t=globalThis?.document){const n=Me(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&jy(HO,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dm(){const e=new CustomEvent(Uu);document.dispatchEvent(e)}function jy(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Aa(o,a):o.dispatchEvent(a)}var us="focusScope.autoFocusOnMount",ds="focusScope.autoFocusOnUnmount",fm={bubbles:!1,cancelable:!0},YO="FocusScope",Ao=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=d.useState(null),u=Me(o),f=Me(a),c=d.useRef(null),m=ce(t,g=>l(g)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let g=function(S){if(h.paused||!s)return;const C=S.target;s.contains(C)?c.current=C:xn(c.current,{select:!0})},b=function(S){if(h.paused||!s)return;const C=S.relatedTarget;C!==null&&(s.contains(C)||xn(c.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&xn(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[r,s,h.paused]),d.useEffect(()=>{if(s){mm.add(h);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(us,fm);s.addEventListener(us,u),s.dispatchEvent(y),y.defaultPrevented||(XO(tA($y(s)),{select:!0}),document.activeElement===g&&xn(s))}return()=>{s.removeEventListener(us,u),setTimeout(()=>{const y=new CustomEvent(ds,fm);s.addEventListener(ds,f),s.dispatchEvent(y),y.defaultPrevented||xn(g??document.body,{select:!0}),s.removeEventListener(ds,f),mm.remove(h)},0)}}},[s,u,f,h]);const v=d.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const x=g.currentTarget,[S,C]=ZO(x);S&&C?!g.shiftKey&&y===C?(g.preventDefault(),n&&xn(S,{select:!0})):g.shiftKey&&y===S&&(g.preventDefault(),n&&xn(C,{select:!0})):y===x&&g.preventDefault()}},[n,r,h.paused]);return p.jsx(ne.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});Ao.displayName=YO;function XO(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xn(r,{select:t}),document.activeElement!==n)return}function ZO(e){const t=$y(e),n=pm(t,e),r=pm(t.reverse(),e);return[n,r]}function $y(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pm(e,t){for(const n of e)if(!QO(n,{upTo:t}))return n}function QO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function JO(e){return e instanceof HTMLInputElement&&"select"in e}function xn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&JO(e)&&t&&e.select()}}var mm=eA();function eA(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=hm(e,t),e.unshift(t)},remove(t){e=hm(e,t),e[0]?.resume()}}}function hm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tA(e){return e.filter(t=>t.tagName!=="A")}var nA="Portal",Ir=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=d.useState(!1);Ie(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?li.createPortal(p.jsx(ne.div,{...r,ref:t}),i):null});Ir.displayName=nA;var fs=0;function mi(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gm()),document.body.insertAdjacentElement("beforeend",e[1]??gm()),fs++,()=>{fs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fs--}},[])}function gm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Wt=function(){return Wt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Wt.apply(this,arguments)};function Ly(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function rA(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ea="right-scroll-bar-position",Ra="width-before-scroll-bar",oA="with-scroll-bars-hidden",aA="--removed-body-scroll-bar-size";function ps(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function iA(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var sA=typeof window<"u"?d.useLayoutEffect:d.useEffect,vm=new WeakMap;function lA(e,t){var n=iA(null,function(r){return e.forEach(function(o){return ps(o,r)})});return sA(function(){var r=vm.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||ps(s,null)}),a.forEach(function(s){o.has(s)||ps(s,i)})}vm.set(n,e)},[e]),n}function cA(e){return e}function uA(e,t){t===void 0&&(t=cA);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function dA(e){e===void 0&&(e={});var t=uA(null);return t.options=Wt({async:!0,ssr:!1},e),t}var Fy=function(e){var t=e.sideCar,n=Ly(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Wt({},n))};Fy.isSideCarExport=!0;function fA(e,t){return e.useMedium(t),Fy}var By=dA(),ms=function(){},hi=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:ms,onWheelCapture:ms,onTouchMoveCapture:ms}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,m=e.sideCar,h=e.noRelative,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,S=e.gapMode,C=Ly(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,R=lA([n,t]),_=Wt(Wt({},C),o);return d.createElement(d.Fragment,null,f&&d.createElement(E,{sideCar:By,removeScrollBar:u,shards:c,noRelative:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:S}),i?d.cloneElement(d.Children.only(s),Wt(Wt({},_),{ref:R})):d.createElement(x,Wt({},_,{className:l,ref:R}),s))});hi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hi.classNames={fullWidth:Ra,zeroRight:Ea};var pA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pA();return t&&e.setAttribute("nonce",t),e}function hA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mA())&&(hA(t,n),gA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bA=function(){var e=vA();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zy=function(){var e=bA(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},yA={left:0,top:0,right:0,gap:0},hs=function(e){return parseInt(e||"",10)||0},xA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[hs(n),hs(r),hs(o)]},wA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yA;var t=xA(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},SA=zy(),vr="data-scroll-locked",CA=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(oA,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),fs=require("react-dom");function ly(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ly(w),ps=ly(fs);function uT(e,t){const n=d.createContext(t),r=a=>{const{children:s,...i}=a,l=d.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ke(e,t=[]){let n=[];function r(a,s){const i=d.createContext(s),l=n.length;n=[...n,s];const u=c=>{const{scope:m,children:h,...v}=c,g=m?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return p.jsx(g.Provider,{value:b,children:h})};u.displayName=a+"Provider";function f(c,m){const h=m?.[e]?.[l]||i,v=d.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,dT(o,...t)]}function dT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:u})=>{const c=l(a)[`__scope${u}`];return{...i,...c}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function At(...e){return t=>{let n=!1;const r=e.map(o=>{const a=pm(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():pm(e[o],null)}}}}function ce(...e){return d.useCallback(At(...e),e)}function Hn(e){const t=fT(e),n=d.forwardRef((r,o)=>{const{children:a,...s}=r,i=d.Children.toArray(a),l=i.find(pT);if(l){const u=l.props.children,f=i.map(c=>c===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:c);return p.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return p.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function fT(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const s=hT(o),i=mT(a,o.props);return o.type!==d.Fragment&&(i.ref=r?At(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cy=Symbol("radix.slottable");function uy(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=cy,t}function pT(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cy}function mT(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function hT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pn(e){const t=e+"CollectionProvider",[n,r]=ke(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:S,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=Hn(i),u=w.forwardRef((g,b)=>{const{scope:y,children:x}=g,S=a(i,y),C=ce(b,S.collectionRef);return p.jsx(l,{ref:C,children:x})});u.displayName=i;const f=e+"CollectionItemSlot",c="data-radix-collection-item",m=Hn(f),h=w.forwardRef((g,b)=>{const{scope:y,children:x,...S}=g,C=w.useRef(null),E=ce(b,C),R=a(f,y);return w.useEffect(()=>(R.itemMap.set(C,{ref:C,...S}),()=>void R.itemMap.delete(C))),p.jsx(m,{[c]:"",ref:E,children:x})});h.displayName=f;function v(g){const b=a(e+"CollectionConsumer",g);return w.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((R,_)=>S.indexOf(R.ref.current)-S.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,r]}function U(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Ie=globalThis?.document?d.useLayoutEffect:()=>{},gT=d[" useInsertionEffect ".trim().toString()]||Ie;function Ae({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=vT({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const c=f.current;c!==i&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${i?"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=i},[i,r])}const u=d.useCallback(f=>{if(i){const c=bT(f)?f(e):f;c!==e&&s.current?.(c)}else a(f)},[i,e,a,s]);return[l,u]}function vT({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return gT(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function bT(e){return typeof e=="function"}var yT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=yT.reduce((e,t)=>{const n=Hn(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ka(e,t){e&&ps.flushSync(()=>e.dispatchEvent(t))}function xT(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var De=e=>{const{present:t,children:n}=e,r=wT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=ce(r.ref,ST(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};De.displayName="Presence";function wT(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=xT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=ua(r.current);a.current=i==="mounted"?u:"none"},[i]),Ie(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,h=ua(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=h=>{const g=ua(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=h=>{h.target===t&&(a.current=ua(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ua(e){return e?.animationName||"none"}function ST(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var CT=d[" useId ".trim().toString()]||(()=>{}),_T=0;function Te(e){const[t,n]=d.useState(CT());return Ie(()=>{n(r=>r??String(_T++))},[e]),t?`radix-${t}`:""}var ms="Collapsible",[ET,dy]=ke(ms),[RT,Xd]=ET(ms),fy=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,u]=Ae({prop:r,defaultProp:o??!1,onChange:s,caller:ms});return p.jsx(RT,{scope:n,disabled:a,contentId:Te(),open:l,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),children:p.jsx(ne.div,{"data-state":ef(l),"data-disabled":a?"":void 0,...i,ref:t})})});fy.displayName=ms;var py="CollapsibleTrigger",Zd=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Xd(py,n);return p.jsx(ne.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ef(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Zd.displayName=py;var Qd="CollapsibleContent",Jd=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xd(Qd,e.__scopeCollapsible);return p.jsx(De,{present:n||o.open,children:({present:a})=>p.jsx(NT,{...r,ref:t,present:a})})});Jd.displayName=Qd;var NT=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=Xd(Qd,n),[i,l]=d.useState(r),u=d.useRef(null),f=ce(t,u),c=d.useRef(0),m=c.current,h=d.useRef(0),v=h.current,g=s.open||i,b=d.useRef(g),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),Ie(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const S=x.getBoundingClientRect();c.current=S.height,h.current=S.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),p.jsx(ne.div,{"data-state":ef(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function ef(e){return e?"open":"closed"}var my=fy,PT=Zd,MT=Jd,TT=d.createContext(void 0);function kt(e){const t=d.useContext(TT);return e||t||"ltr"}var jt="Accordion",OT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[tf,AT,DT]=Pn(jt),[hs]=ke(jt,[DT,dy]),nf=dy(),hy=w.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return p.jsx(tf.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx($T,{...a,ref:t}):p.jsx(jT,{...o,ref:t})})});hy.displayName=jt;var[gy,IT]=hs(jt),[vy,kT]=hs(jt,{collapsible:!1}),jT=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,l]=Ae({prop:n,defaultProp:r??"",onChange:o,caller:jt});return p.jsx(gy,{scope:e.__scopeAccordion,value:w.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:w.useCallback(()=>a&&l(""),[a,l]),children:p.jsx(vy,{scope:e.__scopeAccordion,collapsible:a,children:p.jsx(by,{...s,ref:t})})})}),$T=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=Ae({prop:n,defaultProp:r??[],onChange:o,caller:jt}),l=w.useCallback(f=>i((c=[])=>[...c,f]),[i]),u=w.useCallback(f=>i((c=[])=>c.filter(m=>m!==f)),[i]);return p.jsx(gy,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:p.jsx(vy,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(by,{...a,ref:t})})})}),[LT,gs]=hs(jt),by=w.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,i=w.useRef(null),l=ce(i,t),u=AT(n),c=kt(o)==="ltr",m=U(e.onKeyDown,h=>{if(!OT.includes(h.key))return;const v=h.target,g=u().filter(P=>!P.ref.current?.disabled),b=g.findIndex(P=>P.ref.current===v),y=g.length;if(b===-1)return;h.preventDefault();let x=b;const S=0,C=y-1,E=()=>{x=b+1,x>C&&(x=S)},R=()=>{x=b-1,x<S&&(x=C)};switch(h.key){case"Home":x=S;break;case"End":x=C;break;case"ArrowRight":a==="horizontal"&&(c?E():R());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(c?R():E());break;case"ArrowUp":a==="vertical"&&R();break}const _=x%y;g[_].ref.current?.focus()});return p.jsx(LT,{scope:n,disabled:r,direction:o,orientation:a,children:p.jsx(tf.Slot,{scope:n,children:p.jsx(ne.div,{...s,"data-orientation":a,ref:l,onKeyDown:r?void 0:m})})})}),ja="AccordionItem",[FT,rf]=hs(ja),yy=w.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=gs(ja,n),s=IT(ja,n),i=nf(n),l=Te(),u=r&&s.value.includes(r)||!1,f=a.disabled||e.disabled;return p.jsx(FT,{scope:n,open:u,disabled:f,triggerId:l,children:p.jsx(my,{"data-orientation":a.orientation,"data-state":Ey(u),...i,...o,ref:t,disabled:f,open:u,onOpenChange:c=>{c?s.onItemOpen(r):s.onItemClose(r)}})})});yy.displayName=ja;var xy="AccordionHeader",wy=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gs(jt,n),a=rf(xy,n);return p.jsx(ne.h3,{"data-orientation":o.orientation,"data-state":Ey(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});wy.displayName=xy;var Yu="AccordionTrigger",Sy=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gs(jt,n),a=rf(Yu,n),s=kT(Yu,n),i=nf(n);return p.jsx(tf.ItemSlot,{scope:n,children:p.jsx(PT,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...r,ref:t})})});Sy.displayName=Yu;var Cy="AccordionContent",_y=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gs(jt,n),a=rf(Cy,n),s=nf(n);return p.jsx(MT,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});_y.displayName=Cy;function Ey(e){return e?"open":"closed"}var BT=hy,zT=yy,qT=wy,Ry=Sy,Ny=_y;const WT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),HT=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),mm=e=>{const t=HT(e);return t.charAt(0).toUpperCase()+t.slice(1)},Py=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),VT=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var GT={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"};const UT=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>w.createElement("svg",{ref:l,...GT,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Py("lucide",o),...!a&&!VT(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,f])=>w.createElement(u,f)),...Array.isArray(a)?a:[a]]));const at=(e,t)=>{const n=w.forwardRef(({className:r,...o},a)=>w.createElement(UT,{ref:a,iconNode:t,className:Py(`lucide-${WT(mm(e))}`,`lucide-${e}`,r),...o}));return n.displayName=mm(e),n};const KT=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],YT=at("arrow-left",KT);const XT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ZT=at("arrow-right",XT);const QT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Do=at("check",QT);const JT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Io=at("chevron-down",JT);const eO=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ir=at("chevron-right",eO);const tO=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],My=at("chevron-left",tO);const nO=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rO=at("chevron-up",nO);const oO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],vs=at("circle",oO);const aO=[["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"}]],Ty=at("ellipsis",aO);const sO=[["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"}]],iO=at("grip-vertical",sO);const lO=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],cO=at("loader-circle",lO);const uO=[["path",{d:"M5 12h14",key:"1ays0h"}]],dO=at("minus",uO);const fO=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],pO=at("panel-left",fO);const mO=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hO=at("search",mO);const gO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oy=at("x",gO);var vO=/\s+/g,bO=e=>typeof e!="string"||!e?e:e.replace(vO," ").trim(),$a=(...e)=>{const t=[],n=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let a=0,s=r.length;a<s;a++)n(r[a]);return}const o=typeof r;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&r!==r)return;t.push(String(r))}else if(o==="object"){const a=Object.keys(r);for(let s=0,i=a.length;s<i;s++){const l=a[s];r[l]&&t.push(l)}}};for(let r=0,o=e.length;r<o;r++){const a=e[r];a!=null&&n(a)}return t.length>0?bO(t.join(" ")):void 0},hm=e=>e===!1?"false":e===!0?"true":e===0?"0":e,ct=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},yO=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){const a=n[o];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},xO=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n in e?e[n]=$a(e[n],r):e[n]=r}return e},Ay=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)?Ay(r,t):r&&t.push(r)}},Dy=(...e)=>{const t=[];Ay(e,t);const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},Xu=(e,t)=>{const n={};for(const r in e){const o=e[r];if(r in t){const a=t[r];Array.isArray(o)||Array.isArray(a)?n[r]=Dy(a,o):typeof o=="object"&&typeof a=="object"&&o&&a?n[r]=Xu(o,a):n[r]=a+" "+o}else n[r]=o}for(const r in t)r in e||(n[r]=t[r]);return n},wO={twMerge:!0,twMergeConfig:{}};function SO(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var ln=SO(),CO=e=>{const t=(r,o)=>{const{extend:a=null,slots:s={},variants:i={},compoundVariants:l=[],compoundSlots:u=[],defaultVariants:f={}}=r,c={...wO,...o},m=a?.base?$a(a.base,r?.base):r?.base,h=a?.variants&&!ct(a.variants)?Xu(i,a.variants):i,v=a?.defaultVariants&&!ct(a.defaultVariants)?{...a.defaultVariants,...f}:f;!ct(c.twMergeConfig)&&!yO(c.twMergeConfig,ln.cachedTwMergeConfig)&&(ln.didTwMergeConfigChange=!0,ln.cachedTwMergeConfig=c.twMergeConfig);const g=ct(a?.slots),b=ct(s)?{}:{base:$a(r?.base,g&&a?.base),...s},y=g?b:xO({...a?.slots},ct(b)?{base:r?.base}:b),x=ct(a?.compoundVariants)?l:Dy(a?.compoundVariants,l),S=E=>{if(ct(h)&&ct(s)&&g)return e(m,E?.class,E?.className)(c);if(x&&!Array.isArray(x))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof x}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const R=(L,F=h,D=null,V=null)=>{const H=F[L];if(!H||ct(H))return null;const B=V?.[L]??E?.[L];if(B===null)return null;const Z=hm(B);if(typeof Z=="object")return null;const Q=v?.[L],q=Z??hm(Q);return H[q||"false"]},_=()=>{if(!h)return null;const L=Object.keys(h),F=[];for(let D=0;D<L.length;D++){const V=R(L[D],h);V&&F.push(V)}return F},P=(L,F)=>{if(!h||typeof h!="object")return null;const D=[];for(const V in h){const H=R(V,h,L,F),B=L==="base"&&typeof H=="string"?H:H&&H[L];B&&D.push(B)}return D},M={};for(const L in E){const F=E[L];F!==void 0&&(M[L]=F)}const k=(L,F)=>{const D=typeof E?.[L]=="object"?{[L]:E[L]?.initial}:{};return{...v,...M,...D,...F}},T=(L=[],F)=>{const D=[],V=L.length;for(let H=0;H<V;H++){const{class:B,className:Z,...Q}=L[H];let q=!0;const A=k(null,F);for(const W in Q){const z=Q[W],K=A[W];if(Array.isArray(z)){if(!z.includes(K)){q=!1;break}}else{if((z==null||z===!1)&&(K==null||K===!1))continue;if(K!==z){q=!1;break}}}q&&(B&&D.push(B),Z&&D.push(Z))}return D},$=L=>{const F=T(x,L);if(!Array.isArray(F))return F;const D={},V=e;for(let H=0;H<F.length;H++){const B=F[H];if(typeof B=="string")D.base=V(D.base,B)(c);else if(typeof B=="object")for(const Z in B)D[Z]=V(D[Z],B[Z])(c)}return D},O=L=>{if(u.length<1)return null;const F={},D=k(null,L);for(let V=0;V<u.length;V++){const{slots:H=[],class:B,className:Z,...Q}=u[V];if(!ct(Q)){let q=!0;for(const A in Q){const W=D[A],z=Q[A];if(W===void 0||(Array.isArray(z)?!z.includes(W):z!==W)){q=!1;break}}if(!q)continue}for(let q=0;q<H.length;q++){const A=H[q];F[A]||(F[A]=[]),F[A].push([B,Z])}}return F};if(!ct(s)||!g){const L={};if(typeof y=="object"&&!ct(y)){const F=e;for(const D in y)L[D]=V=>{const H=$(V),B=O(V);return F(y[D],P(D,V),H?H[D]:void 0,B?B[D]:void 0,V?.class,V?.className)(c)}}return L}return e(m,_(),T(x),E?.class,E?.className)(c)},C=()=>{if(!(!h||typeof h!="object"))return Object.keys(h)};return S.variantKeys=C(),S.extend=a,S.base=m,S.slots=y,S.variants=h,S.defaultVariants=v,S.compoundSlots=u,S.compoundVariants=x,S};return{tv:t,createTV:r=>(o,a)=>t(o,a?Xu(r,a):r)}};const of="-",_O=e=>{const t=RO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(of);return i[0]===""&&i.length!==1&&i.shift(),Iy(i,t)||EO(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Iy=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Iy(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(of);return t.validators.find(({validator:s})=>s(a))?.classGroupId},gm=/^\[(.+)\]$/,EO=e=>{if(gm.test(e)){const t=gm.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},RO=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return PO(Object.entries(e.classGroups),n).forEach(([a,s])=>{Zu(s,r,a,t)}),r},Zu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:vm(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(NO(o)){Zu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Zu(s,vm(t,a),n,r)})})},vm=(e,t)=>{let n=e;return t.split(of).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},NO=e=>e.isThemeGetter,PO=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[n,o]}):e,MO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},ky="!",TO=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,s=i=>{const l=[];let u=0,f=0,c;for(let b=0;b<i.length;b++){let y=i[b];if(u===0){if(y===o&&(r||i.slice(b,b+a)===t)){l.push(i.slice(f,b)),f=b+a;continue}if(y==="/"){c=b;continue}}y==="["?u++:y==="]"&&u--}const m=l.length===0?i:i.substring(f),h=m.startsWith(ky),v=h?m.substring(1):m,g=c&&c>f?c-f:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:g}};return n?i=>n({className:i,parseClassName:s}):s},OO=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},AO=e=>({cache:MO(e.cacheSize),parseClassName:TO(e),..._O(e)}),DO=/\s+/,IO=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(DO);let i="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:f,hasImportantModifier:c,baseClassName:m,maybePostfixModifierPosition:h}=n(u);let v=!!h,g=r(v?m.substring(0,h):m);if(!g){if(!v){i=u+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=u+(i.length>0?" "+i:i);continue}v=!1}const b=OO(f).join(":"),y=c?b+ky:b,x=y+g;if(a.includes(x))continue;a.push(x);const S=o(g,v);for(let C=0;C<S.length;++C){const E=S[C];a.push(y+E)}i=u+(i.length>0?" "+i:i)}return i};function kO(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=jy(t))&&(r&&(r+=" "),r+=n);return r}const jy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jy(e[r]))&&(n&&(n+=" "),n+=t);return n};function Qu(e,...t){let n,r,o,a=s;function s(l){const u=t.reduce((f,c)=>c(f),e());return n=AO(u),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const u=r(l);if(u)return u;const f=IO(l,n);return o(l,f),f}return function(){return a(kO.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$y=/^\[(?:([a-z-]+):)?(.+)\]$/i,jO=/^\d+\/\d+$/,$O=new Set(["px","full","screen"]),LO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>br(e)||$O.has(e)||jO.test(e),bn=e=>kr(e,"length",XO),br=e=>!!e&&!Number.isNaN(Number(e)),pi=e=>kr(e,"number",br),Kr=e=>!!e&&Number.isInteger(Number(e)),WO=e=>e.endsWith("%")&&br(e.slice(0,-1)),he=e=>$y.test(e),yn=e=>LO.test(e),HO=new Set(["length","size","percentage"]),VO=e=>kr(e,HO,Ly),GO=e=>kr(e,"position",Ly),UO=new Set(["image","url"]),KO=e=>kr(e,UO,QO),YO=e=>kr(e,"",ZO),Yr=()=>!0,kr=(e,t,n)=>{const r=$y.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},XO=e=>FO.test(e)&&!BO.test(e),Ly=()=>!1,ZO=e=>zO.test(e),QO=e=>qO.test(e),Ju=()=>{const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),o=Oe("borderColor"),a=Oe("borderRadius"),s=Oe("borderSpacing"),i=Oe("borderWidth"),l=Oe("contrast"),u=Oe("grayscale"),f=Oe("hueRotate"),c=Oe("invert"),m=Oe("gap"),h=Oe("gradientColorStops"),v=Oe("gradientColorStopPositions"),g=Oe("inset"),b=Oe("margin"),y=Oe("opacity"),x=Oe("padding"),S=Oe("saturate"),C=Oe("scale"),E=Oe("sepia"),R=Oe("skew"),_=Oe("space"),P=Oe("translate"),M=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",he,t],$=()=>[he,t],O=()=>["",an,bn],L=()=>["auto",br,he],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",he],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[br,he];return{cacheSize:500,separator:":",theme:{colors:[Yr],spacing:[an,bn],blur:["none","",yn,he],brightness:Q(),borderColor:[e],borderRadius:["none","","full",yn,he],borderSpacing:$(),borderWidth:O(),contrast:Q(),grayscale:B(),hueRotate:Q(),invert:B(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[WO,bn],inset:T(),margin:T(),opacity:Q(),padding:$(),saturate:Q(),scale:Q(),sepia:B(),skew:Q(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[yn]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...F(),he]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kr,he]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Kr,he]}],"grid-cols":[{"grid-cols":[Yr]}],"col-start-end":[{col:["auto",{span:["full",Kr,he]},he]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Yr]}],"row-start-end":[{row:["auto",{span:[Kr,he]},he]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",he,t]}],"min-w":[{"min-w":[he,t,"min","max","fit"]}],"max-w":[{"max-w":[he,t,"none","full","min","max","fit","prose",{screen:[yn]},yn]}],h:[{h:[he,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pi]}],"font-family":[{font:[Yr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",br,pi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",an,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",an,bn]}],"underline-offset":[{"underline-offset":["auto",an,he]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),GO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",VO]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KO]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:D()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[an,he]}],"outline-w":[{outline:[an,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[an,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yn,YO]}],"shadow-color":[{shadow:[Yr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",yn,he]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",he]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Kr,he]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[an,bn,pi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},JO=(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:o,extend:a={},override:s={}})=>{ro(e,"cacheSize",t),ro(e,"prefix",n),ro(e,"separator",r),ro(e,"experimentalParseClassName",o);for(const i in s)eA(e[i],s[i]);for(const i in a)tA(e[i],a[i]);return e},ro=(e,t,n)=>{n!==void 0&&(e[t]=n)},eA=(e,t)=>{if(t)for(const n in t)ro(e,n,t[n])},tA=(e,t)=>{if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}},nA=(e,...t)=>typeof e=="function"?Qu(Ju,e,...t):Qu(()=>JO(Ju(),e),...t),rA=Qu(Ju);var oA=e=>ct(e)?rA:nA({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Fy=(e,t)=>{const n=$a(e);return!n||!(t?.twMerge??!0)?n:((!ln.cachedTwMerge||ln.didTwMergeConfigChange)&&(ln.didTwMergeConfigChange=!1,ln.cachedTwMerge=oA(ln.cachedTwMergeConfig)),ln.cachedTwMerge(n)||void 0)},N=(...e)=>Fy(e,{}),aA=(...e)=>t=>Fy(e,t),{tv:Ke}=CO(aA);const sA=BT,By=d.forwardRef(({className:e,...t},n)=>p.jsx(zT,{ref:n,className:N("border-b",e),...t}));By.displayName="AccordionItem";const zy=d.forwardRef(({className:e,children:t,...n},r)=>p.jsx(qT,{className:"flex",children:p.jsxs(Ry,{ref:r,className:N("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,p.jsx(Io,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));zy.displayName=Ry.displayName;const qy=d.forwardRef(({className:e,children:t,...n},r)=>p.jsx(Ny,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:p.jsx("div",{className:N("pb-4 pt-0",e),children:t})}));qy.displayName=Ny.displayName;function Me(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function iA(e,t=globalThis?.document){const n=Me(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var lA="DismissableLayer",ed="dismissableLayer.update",cA="dismissableLayer.pointerDownOutside",uA="dismissableLayer.focusOutside",bm,Wy=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mn=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,u=d.useContext(Wy),[f,c]=d.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=d.useState({}),v=ce(t,_=>c(_)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=f?g.indexOf(f):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=pA(_=>{const P=_.target,M=[...u.branches].some(k=>k.contains(P));!C||M||(o?.(_),s?.(_),_.defaultPrevented||i?.())},m),R=mA(_=>{const P=_.target;[...u.branches].some(k=>k.contains(P))||(a?.(_),s?.(_),_.defaultPrevented||i?.())},m);return iA(_=>{x===u.layers.size-1&&(r?.(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},m),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(bm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ym(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=bm)}},[f,m,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ym())},[f,u]),d.useEffect(()=>{const _=()=>h({});return document.addEventListener(ed,_),()=>document.removeEventListener(ed,_)},[]),p.jsx(ne.div,{...l,ref:v,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,R.onFocusCapture),onBlurCapture:U(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});Mn.displayName=lA;var dA="DismissableLayerBranch",fA=d.forwardRef((e,t)=>{const n=d.useContext(Wy),r=d.useRef(null),o=ce(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(ne.div,{...e,ref:o})});fA.displayName=dA;function pA(e,t=globalThis?.document){const n=Me(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){Hy(cA,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function mA(e,t=globalThis?.document){const n=Me(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&Hy(uA,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ym(){const e=new CustomEvent(ed);document.dispatchEvent(e)}function Hy(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ka(o,a):o.dispatchEvent(a)}var mi="focusScope.autoFocusOnMount",hi="focusScope.autoFocusOnUnmount",xm={bubbles:!1,cancelable:!0},hA="FocusScope",ko=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=d.useState(null),u=Me(o),f=Me(a),c=d.useRef(null),m=ce(t,g=>l(g)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let g=function(S){if(h.paused||!i)return;const C=S.target;i.contains(C)?c.current=C:wn(c.current,{select:!0})},b=function(S){if(h.paused||!i)return;const C=S.relatedTarget;C!==null&&(i.contains(C)||wn(c.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&wn(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,h.paused]),d.useEffect(()=>{if(i){Sm.add(h);const g=document.activeElement;if(!i.contains(g)){const y=new CustomEvent(mi,xm);i.addEventListener(mi,u),i.dispatchEvent(y),y.defaultPrevented||(gA(wA(Vy(i)),{select:!0}),document.activeElement===g&&wn(i))}return()=>{i.removeEventListener(mi,u),setTimeout(()=>{const y=new CustomEvent(hi,xm);i.addEventListener(hi,f),i.dispatchEvent(y),y.defaultPrevented||wn(g??document.body,{select:!0}),i.removeEventListener(hi,f),Sm.remove(h)},0)}}},[i,u,f,h]);const v=d.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const x=g.currentTarget,[S,C]=vA(x);S&&C?!g.shiftKey&&y===C?(g.preventDefault(),n&&wn(S,{select:!0})):g.shiftKey&&y===S&&(g.preventDefault(),n&&wn(C,{select:!0})):y===x&&g.preventDefault()}},[n,r,h.paused]);return p.jsx(ne.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})});ko.displayName=hA;function gA(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wn(r,{select:t}),document.activeElement!==n)return}function vA(e){const t=Vy(e),n=wm(t,e),r=wm(t.reverse(),e);return[n,r]}function Vy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wm(e,t){for(const n of e)if(!bA(n,{upTo:t}))return n}function bA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yA(e){return e instanceof HTMLInputElement&&"select"in e}function wn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yA(e)&&t&&e.select()}}var Sm=xA();function xA(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Cm(e,t),e.unshift(t)},remove(t){e=Cm(e,t),e[0]?.resume()}}}function Cm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wA(e){return e.filter(t=>t.tagName!=="A")}var SA="Portal",jr=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=d.useState(!1);Ie(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?fs.createPortal(p.jsx(ne.div,{...r,ref:t}),s):null});jr.displayName=SA;var gi=0;function bs(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_m()),document.body.insertAdjacentElement("beforeend",e[1]??_m()),gi++,()=>{gi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gi--}},[])}function _m(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ht=function(){return Ht=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ht.apply(this,arguments)};function Gy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function CA(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Pa="right-scroll-bar-position",Ma="width-before-scroll-bar",_A="with-scroll-bars-hidden",EA="--removed-body-scroll-bar-size";function vi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function RA(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var NA=typeof window<"u"?d.useLayoutEffect:d.useEffect,Em=new WeakMap;function PA(e,t){var n=RA(null,function(r){return e.forEach(function(o){return vi(o,r)})});return NA(function(){var r=Em.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||vi(i,null)}),a.forEach(function(i){o.has(i)||vi(i,s)})}Em.set(n,e)},[e]),n}function MA(e){return e}function TA(e,t){t===void 0&&(t=MA);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function OA(e){e===void 0&&(e={});var t=TA(null);return t.options=Ht({async:!0,ssr:!1},e),t}var Uy=function(e){var t=e.sideCar,n=Gy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Ht({},n))};Uy.isSideCarExport=!0;function AA(e,t){return e.useMedium(t),Uy}var Ky=OA(),bi=function(){},ys=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:bi,onWheelCapture:bi,onTouchMoveCapture:bi}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,m=e.sideCar,h=e.noRelative,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,S=e.gapMode,C=Gy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,R=PA([n,t]),_=Ht(Ht({},C),o);return d.createElement(d.Fragment,null,f&&d.createElement(E,{sideCar:Ky,removeScrollBar:u,shards:c,noRelative:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:S}),s?d.cloneElement(d.Children.only(i),Ht(Ht({},_),{ref:R})):d.createElement(x,Ht({},_,{className:l,ref:R}),i))});ys.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ys.classNames={fullWidth:Ma,zeroRight:Pa};var DA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DA();return t&&e.setAttribute("nonce",t),e}function kA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $A=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IA())&&(kA(t,n),jA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LA=function(){var e=$A();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yy=function(){var e=LA(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},FA={left:0,top:0,right:0,gap:0},yi=function(e){return parseInt(e||"",10)||0},BA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yi(n),yi(r),yi(o)]},zA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FA;var t=BA(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qA=Yy(),yr="data-scroll-locked",WA=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(_A,` {
3
3
  overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(s,"px ").concat(r,`;
4
+ padding-right: `).concat(i,"px ").concat(r,`;
5
5
  }
6
- body[`).concat(vr,`] {
6
+ body[`).concat(yr,`] {
7
7
  overflow: hidden `).concat(r,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
10
  padding-left: `.concat(o,`px;
11
11
  padding-top: `).concat(a,`px;
12
- padding-right: `).concat(i,`px;
12
+ padding-right: `).concat(s,`px;
13
13
  margin-left:0;
14
14
  margin-top:0;
15
- margin-right: `).concat(s,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
15
+ margin-right: `).concat(i,"px ").concat(r,`;
16
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Ea,` {
20
- right: `).concat(s,"px ").concat(r,`;
19
+ .`).concat(Pa,` {
20
+ right: `).concat(i,"px ").concat(r,`;
21
21
  }
22
22
 
23
- .`).concat(Ra,` {
24
- margin-right: `).concat(s,"px ").concat(r,`;
23
+ .`).concat(Ma,` {
24
+ margin-right: `).concat(i,"px ").concat(r,`;
25
25
  }
26
26
 
27
- .`).concat(Ea," .").concat(Ea,` {
27
+ .`).concat(Pa," .").concat(Pa,` {
28
28
  right: 0 `).concat(r,`;
29
29
  }
30
30
 
31
- .`).concat(Ra," .").concat(Ra,` {
31
+ .`).concat(Ma," .").concat(Ma,` {
32
32
  margin-right: 0 `).concat(r,`;
33
33
  }
34
34
 
35
- body[`).concat(vr,`] {
36
- `).concat(aA,": ").concat(s,`px;
35
+ body[`).concat(yr,`] {
36
+ `).concat(EA,": ").concat(i,`px;
37
37
  }
38
- `)},bm=function(){var e=parseInt(document.body.getAttribute(vr)||"0",10);return isFinite(e)?e:0},_A=function(){d.useEffect(function(){return document.body.setAttribute(vr,(bm()+1).toString()),function(){var e=bm()-1;e<=0?document.body.removeAttribute(vr):document.body.setAttribute(vr,e.toString())}},[])},EA=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_A();var a=d.useMemo(function(){return wA(o)},[o]);return d.createElement(SA,{styles:CA(a,!t,o,n?"":"!important")})},Ku=!1;if(typeof window<"u")try{var la=Object.defineProperty({},"passive",{get:function(){return Ku=!0,!0}});window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{Ku=!1}var ir=Ku?{passive:!1}:!1,RA=function(e){return e.tagName==="TEXTAREA"},qy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!RA(e)&&n[t]==="visible")},NA=function(e){return qy(e,"overflowY")},PA=function(e){return qy(e,"overflowX")},ym=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wy(e,r);if(o){var a=Hy(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},MA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},TA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wy=function(e,t){return e==="v"?NA(t):PA(t)},Hy=function(e,t){return e==="v"?MA(t):TA(t)},OA=function(e,t){return e==="h"&&t==="rtl"?-1:1},AA=function(e,t,n,r,o){var a=OA(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),u=!1,f=i>0,c=0,m=0;do{if(!s)break;var h=Hy(e,s),v=h[0],g=h[1],b=h[2],y=g-b-a*v;(v||y)&&Wy(e,s)&&(c+=y,m+=v);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(m)<1)&&(u=!0),u},ca=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xm=function(e){return[e.deltaX,e.deltaY]},wm=function(e){return e&&"current"in e?e.current:e},DA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},IA=function(e){return`
38
+ `)},Rm=function(){var e=parseInt(document.body.getAttribute(yr)||"0",10);return isFinite(e)?e:0},HA=function(){d.useEffect(function(){return document.body.setAttribute(yr,(Rm()+1).toString()),function(){var e=Rm()-1;e<=0?document.body.removeAttribute(yr):document.body.setAttribute(yr,e.toString())}},[])},VA=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;HA();var a=d.useMemo(function(){return zA(o)},[o]);return d.createElement(qA,{styles:WA(a,!t,o,n?"":"!important")})},td=!1;if(typeof window<"u")try{var da=Object.defineProperty({},"passive",{get:function(){return td=!0,!0}});window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{td=!1}var lr=td?{passive:!1}:!1,GA=function(e){return e.tagName==="TEXTAREA"},Xy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!GA(e)&&n[t]==="visible")},UA=function(e){return Xy(e,"overflowY")},KA=function(e){return Xy(e,"overflowX")},Nm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Zy(e,r);if(o){var a=Qy(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},YA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},XA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Zy=function(e,t){return e==="v"?UA(t):KA(t)},Qy=function(e,t){return e==="v"?YA(t):XA(t)},ZA=function(e,t){return e==="h"&&t==="rtl"?-1:1},QA=function(e,t,n,r,o){var a=ZA(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),u=!1,f=s>0,c=0,m=0;do{if(!i)break;var h=Qy(e,i),v=h[0],g=h[1],b=h[2],y=g-b-a*v;(v||y)&&Zy(e,i)&&(c+=y,m+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(c)<1||!f&&Math.abs(m)<1)&&(u=!0),u},fa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pm=function(e){return[e.deltaX,e.deltaY]},Mm=function(e){return e&&"current"in e?e.current:e},JA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eD=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},kA=0,sr=[];function jA(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(kA++)[0],a=d.useState(zy)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=rA([e.lockRef.current],(e.shards||[]).map(wm),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=ca(g),x=n.current,S="deltaX"in g?g.deltaX:x[0]-y[0],C="deltaY"in g?g.deltaY:x[1]-y[1],E,R=g.target,_=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in g&&_==="h"&&R.type==="range")return!1;var P=ym(_,R);if(!P)return!0;if(P?E=_:(E=_==="v"?"h":"v",P=ym(_,R)),!P)return!1;if(!r.current&&"changedTouches"in g&&(S||C)&&(r.current=E),!E)return!0;var M=r.current||E;return AA(M,b,g,M==="h"?S:C)},[]),l=d.useCallback(function(g){var b=g;if(!(!sr.length||sr[sr.length-1]!==a)){var y="deltaY"in b?xm(b):ca(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&DA(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(wm).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=S.length>0?s(b,S[0]):!i.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),u=d.useCallback(function(g,b,y,x){var S={name:g,delta:b,target:y,should:x,shadowParent:$A(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),f=d.useCallback(function(g){n.current=ca(g),r.current=void 0},[]),c=d.useCallback(function(g){u(g.type,xm(g),g.target,s(g,e.lockRef.current))},[]),m=d.useCallback(function(g){u(g.type,ca(g),g.target,s(g,e.lockRef.current))},[]);d.useEffect(function(){return sr.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",l,ir),document.addEventListener("touchmove",l,ir),document.addEventListener("touchstart",f,ir),function(){sr=sr.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,ir),document.removeEventListener("touchmove",l,ir),document.removeEventListener("touchstart",f,ir)}},[]);var h=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:IA(o)}):null,h?d.createElement(EA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function $A(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const LA=fA(By,jA);var Do=d.forwardRef(function(e,t){return d.createElement(hi,Wt({},e,{ref:t,sideCar:LA}))});Do.classNames=hi.classNames;var FA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lr=new WeakMap,ua=new WeakMap,da={},gs=0,Gy=function(e){return e&&(e.host||Gy(e.parentNode))},BA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Gy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zA=function(e,t,n,r){var o=BA(t,Array.isArray(e)?e:[e]);da[n]||(da[n]=new WeakMap);var a=da[n],i=[],s=new Set,l=new Set(o),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(m){if(s.has(m))f(m);else try{var h=m.getAttribute(r),v=h!==null&&h!=="false",g=(lr.get(m)||0)+1,b=(a.get(m)||0)+1;lr.set(m,g),a.set(m,b),i.push(m),g===1&&v&&ua.set(m,!0),b===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),s.clear(),gs++,function(){i.forEach(function(c){var m=lr.get(c)-1,h=a.get(c)-1;lr.set(c,m),a.set(c,h),m||(ua.has(c)||c.removeAttribute(r),ua.delete(c)),h||c.removeAttribute(n)}),gs--,gs||(lr=new WeakMap,lr=new WeakMap,ua=new WeakMap,da={})}},gi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=FA(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zA(r,o,n,"aria-hidden")):function(){return null}},vi="Dialog",[Vy,Uy]=ke(vi),[qA,jt]=Vy(vi),Ky=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=d.useRef(null),l=d.useRef(null),[u,f]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:vi});return p.jsx(qA,{scope:t,triggerRef:s,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(c=>!c),[f]),modal:i,children:n})};Ky.displayName=vi;var Yy="DialogTrigger",Xy=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=jt(Yy,n),a=ce(t,o.triggerRef);return p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ef(o.open),...r,ref:a,onClick:G(e.onClick,o.onOpenToggle)})});Xy.displayName=Yy;var Qd="DialogPortal",[WA,Zy]=Vy(Qd,{forceMount:void 0}),Qy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=jt(Qd,t);return p.jsx(WA,{scope:t,forceMount:n,children:d.Children.map(r,i=>p.jsx(De,{present:n||a.open,children:p.jsx(Ir,{asChild:!0,container:o,children:i})}))})};Qy.displayName=Qd;var Ia="DialogOverlay",Jy=d.forwardRef((e,t)=>{const n=Zy(Ia,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=jt(Ia,e.__scopeDialog);return a.modal?p.jsx(De,{present:r||a.open,children:p.jsx(GA,{...o,ref:t})}):null});Jy.displayName=Ia;var HA=Wn("DialogOverlay.RemoveScroll"),GA=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=jt(Ia,n);return p.jsx(Do,{as:HA,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ne.div,{"data-state":ef(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Hn="DialogContent",ex=d.forwardRef((e,t)=>{const n=Zy(Hn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=jt(Hn,e.__scopeDialog);return p.jsx(De,{present:r||a.open,children:a.modal?p.jsx(VA,{...o,ref:t}):p.jsx(UA,{...o,ref:t})})});ex.displayName=Hn;var VA=d.forwardRef((e,t)=>{const n=jt(Hn,e.__scopeDialog),r=d.useRef(null),o=ce(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return gi(a)},[]),p.jsx(tx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:G(e.onFocusOutside,a=>a.preventDefault())})}),UA=d.forwardRef((e,t)=>{const n=jt(Hn,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return p.jsx(tx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),tx=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=jt(Hn,n),l=d.useRef(null),u=ce(t,l);return mi(),p.jsxs(p.Fragment,{children:[p.jsx(Ao,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Pn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ef(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(YA,{titleId:s.titleId}),p.jsx(ZA,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Jd="DialogTitle",nx=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=jt(Jd,n);return p.jsx(ne.h2,{id:o.titleId,...r,ref:t})});nx.displayName=Jd;var rx="DialogDescription",ox=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=jt(rx,n);return p.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});ox.displayName=rx;var ax="DialogClose",ix=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=jt(ax,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:G(e.onClick,()=>o.onOpenChange(!1))})});ix.displayName=ax;function ef(e){return e?"open":"closed"}var sx="DialogTitleWarning",[KA,lx]=tT(sx,{contentName:Hn,titleName:Jd,docsSlug:"dialog"}),YA=({titleId:e})=>{const t=lx(sx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},tD=0,cr=[];function nD(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(tD++)[0],a=d.useState(Yy)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=CA([e.lockRef.current],(e.shards||[]).map(Mm),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=fa(g),x=n.current,S="deltaX"in g?g.deltaX:x[0]-y[0],C="deltaY"in g?g.deltaY:x[1]-y[1],E,R=g.target,_=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in g&&_==="h"&&R.type==="range")return!1;var P=Nm(_,R);if(!P)return!0;if(P?E=_:(E=_==="v"?"h":"v",P=Nm(_,R)),!P)return!1;if(!r.current&&"changedTouches"in g&&(S||C)&&(r.current=E),!E)return!0;var M=r.current||E;return QA(M,b,g,M==="h"?S:C)},[]),l=d.useCallback(function(g){var b=g;if(!(!cr.length||cr[cr.length-1]!==a)){var y="deltaY"in b?Pm(b):fa(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&JA(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var S=(s.current.shards||[]).map(Mm).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=S.length>0?i(b,S[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),u=d.useCallback(function(g,b,y,x){var S={name:g,delta:b,target:y,should:x,shadowParent:rD(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),f=d.useCallback(function(g){n.current=fa(g),r.current=void 0},[]),c=d.useCallback(function(g){u(g.type,Pm(g),g.target,i(g,e.lockRef.current))},[]),m=d.useCallback(function(g){u(g.type,fa(g),g.target,i(g,e.lockRef.current))},[]);d.useEffect(function(){return cr.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",l,lr),document.addEventListener("touchmove",l,lr),document.addEventListener("touchstart",f,lr),function(){cr=cr.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,lr),document.removeEventListener("touchmove",l,lr),document.removeEventListener("touchstart",f,lr)}},[]);var h=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:eD(o)}):null,h?d.createElement(VA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oD=AA(Ky,nD);var jo=d.forwardRef(function(e,t){return d.createElement(ys,Ht({},e,{ref:t,sideCar:oD}))});jo.classNames=ys.classNames;var aD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ur=new WeakMap,pa=new WeakMap,ma={},xi=0,Jy=function(e){return e&&(e.host||Jy(e.parentNode))},sD=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Jy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},iD=function(e,t,n,r){var o=sD(t,Array.isArray(e)?e:[e]);ma[n]||(ma[n]=new WeakMap);var a=ma[n],s=[],i=new Set,l=new Set(o),u=function(c){!c||i.has(c)||(i.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(m){if(i.has(m))f(m);else try{var h=m.getAttribute(r),v=h!==null&&h!=="false",g=(ur.get(m)||0)+1,b=(a.get(m)||0)+1;ur.set(m,g),a.set(m,b),s.push(m),g===1&&v&&pa.set(m,!0),b===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),i.clear(),xi++,function(){s.forEach(function(c){var m=ur.get(c)-1,h=a.get(c)-1;ur.set(c,m),a.set(c,h),m||(pa.has(c)||c.removeAttribute(r),pa.delete(c)),h||c.removeAttribute(n)}),xi--,xi||(ur=new WeakMap,ur=new WeakMap,pa=new WeakMap,ma={})}},xs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=aD(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),iD(r,o,n,"aria-hidden")):function(){return null}},ws="Dialog",[ex,tx]=ke(ws),[lD,$t]=ex(ws),nx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),l=d.useRef(null),[u,f]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:ws});return p.jsx(lD,{scope:t,triggerRef:i,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(c=>!c),[f]),modal:s,children:n})};nx.displayName=ws;var rx="DialogTrigger",ox=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$t(rx,n),a=ce(t,o.triggerRef);return p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lf(o.open),...r,ref:a,onClick:U(e.onClick,o.onOpenToggle)})});ox.displayName=rx;var af="DialogPortal",[cD,ax]=ex(af,{forceMount:void 0}),sx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=$t(af,t);return p.jsx(cD,{scope:t,forceMount:n,children:d.Children.map(r,s=>p.jsx(De,{present:n||a.open,children:p.jsx(jr,{asChild:!0,container:o,children:s})}))})};sx.displayName=af;var La="DialogOverlay",ix=d.forwardRef((e,t)=>{const n=ax(La,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=$t(La,e.__scopeDialog);return a.modal?p.jsx(De,{present:r||a.open,children:p.jsx(dD,{...o,ref:t})}):null});ix.displayName=La;var uD=Hn("DialogOverlay.RemoveScroll"),dD=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$t(La,n);return p.jsx(jo,{as:uD,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ne.div,{"data-state":lf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Vn="DialogContent",lx=d.forwardRef((e,t)=>{const n=ax(Vn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=$t(Vn,e.__scopeDialog);return p.jsx(De,{present:r||a.open,children:a.modal?p.jsx(fD,{...o,ref:t}):p.jsx(pD,{...o,ref:t})})});lx.displayName=Vn;var fD=d.forwardRef((e,t)=>{const n=$t(Vn,e.__scopeDialog),r=d.useRef(null),o=ce(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return xs(a)},[]),p.jsx(cx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault())})}),pD=d.forwardRef((e,t)=>{const n=$t(Vn,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return p.jsx(cx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),cx=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=$t(Vn,n),l=d.useRef(null),u=ce(t,l);return bs(),p.jsxs(p.Fragment,{children:[p.jsx(ko,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Mn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":lf(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(hD,{titleId:i.titleId}),p.jsx(vD,{contentRef:l,descriptionId:i.descriptionId})]})]})}),sf="DialogTitle",ux=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$t(sf,n);return p.jsx(ne.h2,{id:o.titleId,...r,ref:t})});ux.displayName=sf;var dx="DialogDescription",fx=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$t(dx,n);return p.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});fx.displayName=dx;var px="DialogClose",mx=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$t(px,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});mx.displayName=px;function lf(e){return e?"open":"closed"}var hx="DialogTitleWarning",[mD,gx]=uT(hx,{contentName:Vn,titleName:sf,docsSlug:"dialog"}),hD=({titleId:e})=>{const t=gx(hx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},XA="DialogDescriptionWarning",ZA=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lx(XA).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Io=Ky,bi=Xy,ko=Qy,Qn=Jy,Jn=ex,kr=nx,jr=ox,er=ix,cx="AlertDialog",[QA]=ke(cx,[Uy]),mn=Uy(),ux=e=>{const{__scopeAlertDialog:t,...n}=e,r=mn(t);return p.jsx(Io,{...r,...n,modal:!0})};ux.displayName=cx;var JA="AlertDialogTrigger",dx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=mn(n);return p.jsx(bi,{...o,...r,ref:t})});dx.displayName=JA;var eD="AlertDialogPortal",fx=e=>{const{__scopeAlertDialog:t,...n}=e,r=mn(t);return p.jsx(ko,{...r,...n})};fx.displayName=eD;var tD="AlertDialogOverlay",px=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=mn(n);return p.jsx(Qn,{...o,...r,ref:t})});px.displayName=tD;var br="AlertDialogContent",[nD,rD]=QA(br),oD=oy("AlertDialogContent"),mx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=mn(n),i=d.useRef(null),s=ce(t,i),l=d.useRef(null);return p.jsx(KA,{contentName:br,titleName:hx,docsSlug:"alert-dialog",children:p.jsx(nD,{scope:n,cancelRef:l,children:p.jsxs(Jn,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:G(o.onOpenAutoFocus,u=>{u.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[p.jsx(oD,{children:r}),p.jsx(iD,{contentRef:i})]})})})});mx.displayName=br;var hx="AlertDialogTitle",gx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=mn(n);return p.jsx(kr,{...o,...r,ref:t})});gx.displayName=hx;var vx="AlertDialogDescription",bx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=mn(n);return p.jsx(jr,{...o,...r,ref:t})});bx.displayName=vx;var aD="AlertDialogAction",yx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=mn(n);return p.jsx(er,{...o,...r,ref:t})});yx.displayName=aD;var xx="AlertDialogCancel",wx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=rD(xx,n),a=mn(n),i=ce(t,o);return p.jsx(er,{...a,...r,ref:i})});wx.displayName=xx;var iD=({contentRef:e})=>{const t=`\`${br}\` requires a description for the component to be accessible for screen reader users.
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},gD="DialogDescriptionWarning",vD=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gx(gD).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$o=nx,Ss=ox,Lo=sx,er=ix,tr=lx,$r=ux,Lr=fx,nr=mx,vx="AlertDialog",[bD]=ke(vx,[tx]),hn=tx(),bx=e=>{const{__scopeAlertDialog:t,...n}=e,r=hn(t);return p.jsx($o,{...r,...n,modal:!0})};bx.displayName=vx;var yD="AlertDialogTrigger",yx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=hn(n);return p.jsx(Ss,{...o,...r,ref:t})});yx.displayName=yD;var xD="AlertDialogPortal",xx=e=>{const{__scopeAlertDialog:t,...n}=e,r=hn(t);return p.jsx(Lo,{...r,...n})};xx.displayName=xD;var wD="AlertDialogOverlay",wx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=hn(n);return p.jsx(er,{...o,...r,ref:t})});wx.displayName=wD;var xr="AlertDialogContent",[SD,CD]=bD(xr),_D=uy("AlertDialogContent"),Sx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=hn(n),s=d.useRef(null),i=ce(t,s),l=d.useRef(null);return p.jsx(mD,{contentName:xr,titleName:Cx,docsSlug:"alert-dialog",children:p.jsx(SD,{scope:n,cancelRef:l,children:p.jsxs(tr,{role:"alertdialog",...a,...o,ref:i,onOpenAutoFocus:U(o.onOpenAutoFocus,u=>{u.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[p.jsx(_D,{children:r}),p.jsx(RD,{contentRef:s})]})})})});Sx.displayName=xr;var Cx="AlertDialogTitle",_x=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=hn(n);return p.jsx($r,{...o,...r,ref:t})});_x.displayName=Cx;var Ex="AlertDialogDescription",Rx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=hn(n);return p.jsx(Lr,{...o,...r,ref:t})});Rx.displayName=Ex;var ED="AlertDialogAction",Nx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=hn(n);return p.jsx(nr,{...o,...r,ref:t})});Nx.displayName=ED;var Px="AlertDialogCancel",Mx=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=CD(Px,n),a=hn(n),s=ce(t,o);return p.jsx(nr,{...a,...r,ref:s})});Mx.displayName=Px;var RD=({contentRef:e})=>{const t=`\`${xr}\` requires a description for the component to be accessible for screen reader users.
46
46
 
47
- You can add a description to the \`${br}\` by passing a \`${vx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
47
+ You can add a description to the \`${xr}\` by passing a \`${Ex}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
48
48
 
49
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${br}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
49
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${xr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
50
50
 
51
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},sD=ux,lD=dx,cD=fx,Sx=px,Cx=mx,_x=yx,Ex=wx,Rx=gx,Nx=bx,uD=Symbol.for("react.lazy"),ka=d[" use ".trim().toString()];function dD(e){return typeof e=="object"&&e!==null&&"then"in e}function Px(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===uD&&"_payload"in e&&dD(e._payload)}function Mx(e){const t=fD(e),n=d.forwardRef((r,o)=>{let{children:a,...i}=r;Px(a)&&typeof ka=="function"&&(a=ka(a._payload));const s=d.Children.toArray(a),l=s.find(mD);if(l){const u=l.props.children,f=s.map(c=>c===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:c);return p.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return p.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Kt=Mx("Slot");function fD(e){const t=d.forwardRef((n,r)=>{let{children:o,...a}=n;if(Px(o)&&typeof ka=="function"&&(o=ka(o._payload)),d.isValidElement(o)){const i=gD(o),s=hD(a,o.props);return o.type!==d.Fragment&&(s.ref=r?Ot(r,i):i),d.cloneElement(o,s)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pD=Symbol("radix.slottable");function mD(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pD}function hD(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function gD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Sm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cm=dn,Ke=(e,t)=>n=>{var r;if(t?.variants==null)return Cm(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=n?.[u],c=a?.[u];if(f===null)return null;const m=Sm(f)||Sm(c);return o[u][m]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,m]=f;return m===void 0||(u[c]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:m,...h}=f;return Object.entries(h).every(v=>{let[g,b]=v;return Array.isArray(b)?b.includes({...a,...s}[g]):{...a,...s}[g]===b})?[...u,c,m]:u},[]);return Cm(e,i,l,n?.class,n?.className)},cr={xs:"text-[0.6875rem]",sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg","2xl":"text-xl"},wr=Ke("font-medium inline-flex items-center transition-colors duration-300 justify-center rounded-md disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 outline-none",{variants:{variant:{default:"bg-[--btn-bg] text-[--btn-fg] hover:bg-[--btn-bg-hover]",outline:"font-semibold bg-transparent text-foreground hover:bg-[--btn-outline-bg-hover] border border-border hover:border-[--btn-outline-border-hover]",link:"text-[--btn-link-fg] underline-offset-4 hover:underline",ghost:"bg-transparent text-[--btn-ghost-fg] hover:text-[--btn-ghost-fg-hover] hover:bg-[--btn-bg-hover]",light:"bg-transparent text-[--btn-light-fg] hover:text-[--btn-light-fg-hover] hover:bg-[--btn-light-bg-hover]",flat:"bg-[--btn-flat-bg] text-[--btn-flat-fg] hover:text-[--btn-flat-fg-hover] hover:bg-[--btn-flat-bg-hover]"},size:{xs:`h-8 ${cr.xs} gap-1`,sm:`h-9 ${cr.sm} gap-1.5`,md:`h-10 ${cr.md} gap-2`,lg:`h-11 ${cr.lg} gap-2`,xl:`h-12 ${cr.xl} gap-2.5`,"2xl":`h-14 ${cr["2xl"]} gap-2.5`},shape:{rectangle:"",square:"!aspect-square"},density:{compact:"",default:"",relaxed:""}},compoundVariants:[{shape:"rectangle",size:"xs",density:"compact",className:"px-2 py-1"},{shape:"rectangle",size:"sm",density:"compact",className:"px-2.5 py-1.5"},{shape:"rectangle",size:"md",density:"compact",className:"px-3 py-1.5"},{shape:"rectangle",size:"lg",density:"compact",className:"px-3.5 py-1.5"},{shape:"rectangle",size:"xl",density:"compact",className:"px-4 py-2"},{shape:"rectangle",size:"2xl",density:"compact",className:"px-4 py-2"},{shape:"rectangle",size:"xs",density:"default",className:"px-2.5 py-1.5"},{shape:"rectangle",size:"sm",density:"default",className:"px-3 py-1.5"},{shape:"rectangle",size:"md",density:"default",className:"px-4 py-2"},{shape:"rectangle",size:"lg",density:"default",className:"px-5 py-2.5"},{shape:"rectangle",size:"xl",density:"default",className:"px-6 py-3"},{shape:"rectangle",size:"2xl",density:"default",className:"px-6 py-3"},{shape:"rectangle",size:"xs",density:"relaxed",className:"px-3 py-1.5"},{shape:"rectangle",size:"sm",density:"relaxed",className:"px-4 py-2"},{shape:"rectangle",size:"md",density:"relaxed",className:"px-5 py-2.5"},{shape:"rectangle",size:"lg",density:"relaxed",className:"px-6 py-3"},{shape:"rectangle",size:"xl",density:"relaxed",className:"px-8 py-4"},{shape:"rectangle",size:"2xl",density:"relaxed",className:"px-8 py-4"},{shape:"square",size:"xs",density:"compact",className:"w-6 p-1"},{shape:"square",size:"sm",density:"compact",className:"w-8 p-1.5"},{shape:"square",size:"md",density:"compact",className:"w-9 p-1.5"},{shape:"square",size:"lg",density:"compact",className:"w-10 p-2"},{shape:"square",size:"xl",density:"compact",className:"w-11 p-2"},{shape:"square",size:"2xl",density:"compact",className:"w-12 p-2.5"},{shape:"square",size:"xs",density:"default",className:"w-7 p-1.5"},{shape:"square",size:"sm",density:"default",className:"w-9 p-2"},{shape:"square",size:"md",density:"default",className:"w-10 p-2"},{shape:"square",size:"lg",density:"default",className:"w-11 p-2.5"},{shape:"square",size:"xl",density:"default",className:"w-12 p-2.5"},{shape:"square",size:"2xl",density:"default",className:"w-14 p-3"},{shape:"square",size:"xs",density:"relaxed",className:"w-8 p-2"},{shape:"square",size:"sm",density:"relaxed",className:"w-10 p-2.5"},{shape:"square",size:"md",density:"relaxed",className:"w-11 p-2.5"},{shape:"square",size:"lg",density:"relaxed",className:"w-12 p-3"},{shape:"square",size:"xl",density:"relaxed",className:"w-14 p-3"},{shape:"square",size:"2xl",density:"relaxed",className:"w-16 p-4"}],defaultVariants:{variant:"default",size:"md",density:"default",shape:"rectangle"}}),vD={neutral:{"--btn-bg":"hsl(var(--neutral-dark))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--neutral))","--btn-outline-border-hover":"hsla(var(--neutral-light))","--btn-outline-bg-hover":"hsla(var(--neutral-light) / 0.15)","--btn-link-fg":"hsla(var(--neutral-light))","--btn-ghost-fg":"hsla(var(--neutral-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--foreground))","--btn-light-bg-hover":"hsla(var(--neutral-light) / 0.15)","--btn-light-fg":"hsla(var(--foreground) / 0.8)","--btn-flat-fg":"hsla(var(--foreground) / 0.7)","--btn-flat-bg":"hsla(var(--neutral) / 0.15)","--btn-flat-bg-hover":"hsla(var(--neutral) / 0.3)","--btn-flat-fg-hover":"hsla(var(--foreground))"},primary:{"--btn-bg":"hsl(var(--primary))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--primary-light))","--btn-outline-border-hover":"hsla(var(--primary-light))","--btn-outline-bg-hover":"hsla(var(--primary-light) / 0.15)","--btn-link-fg":"hsla(var(--primary-light))","--btn-ghost-fg":"hsla(var(--primary-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--primary-light))","--btn-light-bg-hover":"hsla(var(--primary-light) / 0.15)","--btn-light-fg":"hsla(var(--primary-light))","--btn-flat-fg":"hsla(var(--primary-light))","--btn-flat-bg":"hsla(var(--primary) / 0.15)","--btn-flat-bg-hover":"hsla(var(--primary) / 0.3)","--btn-flat-fg-hover":"hsla(var(--primary-light))"},secondary:{"--btn-bg":"hsl(var(--secondary-dark))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--secondary-light))","--btn-outline-border-hover":"hsla(var(--secondary-light))","--btn-outline-bg-hover":"hsla(var(--secondary-light) / 0.15)","--btn-link-fg":"hsla(var(--secondary-light))","--btn-ghost-fg":"hsla(var(--secondary-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--secondary-light))","--btn-light-bg-hover":"hsla(var(--secondary-light) / 0.15)","--btn-light-fg":"hsla(var(--secondary-light))","--btn-flat-fg":"hsla(var(--secondary-light))","--btn-flat-bg":"hsla(var(--secondary-dark) / 0.15)","--btn-flat-bg-hover":"hsla(var(--secondary-dark) / 0.3)","--btn-flat-fg-hover":"hsla(var(--secondary-light))"},error:{"--btn-bg":"hsl(var(--error))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--error-light))","--btn-outline-border-hover":"hsla(var(--error-light))","--btn-outline-bg-hover":"hsla(var(--error-light) / 0.15)","--btn-link-fg":"hsla(var(--error-light))","--btn-ghost-fg":"hsla(var(--error-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--error-light))","--btn-light-bg-hover":"hsla(var(--error-light) / 0.15)","--btn-light-fg":"hsla(var(--error-light))","--btn-flat-fg":"hsla(var(--error-light))","--btn-flat-bg":"hsla(var(--error) / 0.15)","--btn-flat-bg-hover":"hsla(var(--error) / 0.3)","--btn-flat-fg-hover":"hsla(var(--error-light))"},warning:{"--btn-bg":"hsl(var(--warning))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--warning-light))","--btn-outline-border-hover":"hsla(var(--warning-light))","--btn-outline-bg-hover":"hsla(var(--warning-light) / 0.15)","--btn-link-fg":"hsla(var(--warning-light))","--btn-ghost-fg":"hsla(var(--warning-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--warning-light))","--btn-light-bg-hover":"hsla(var(--warning-light) / 0.15)","--btn-light-fg":"hsla(var(--warning-light))","--btn-flat-fg":"hsla(var(--warning-light))","--btn-flat-bg":"hsla(var(--warning) / 0.15)","--btn-flat-bg-hover":"hsla(var(--warning) / 0.3)","--btn-flat-fg-hover":"hsla(var(--warning-light))"},info:{"--btn-bg":"hsl(var(--info))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--info-light))","--btn-outline-border-hover":"hsla(var(--info-light))","--btn-outline-bg-hover":"hsla(var(--info-light) / 0.15)","--btn-link-fg":"hsla(var(--info-light))","--btn-ghost-fg":"hsla(var(--info-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--info-light))","--btn-light-bg-hover":"hsla(var(--info-light) / 0.15)","--btn-light-fg":"hsla(var(--info-light))","--btn-flat-fg":"hsla(var(--info-light))","--btn-flat-bg":"hsla(var(--info) / 0.15)","--btn-flat-bg-hover":"hsla(var(--info) / 0.3)","--btn-flat-fg-hover":"hsla(var(--info-light))"},success:{"--btn-bg":"hsl(var(--success))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--success-light))","--btn-outline-border-hover":"hsla(var(--success-light))","--btn-outline-bg-hover":"hsla(var(--success-light) / 0.15)","--btn-link-fg":"hsla(var(--success-light))","--btn-ghost-fg":"hsla(var(--success-light))","--btn-ghost-fg-hover":"hsla(var(--foreground))","--btn-light-fg-hover":"hsla(var(--success-light))","--btn-light-bg-hover":"hsla(var(--success-light) / 0.15)","--btn-light-fg":"hsla(var(--success-light))","--btn-flat-fg":"hsla(var(--success-light))","--btn-flat-bg":"hsla(var(--success) / 0.15)","--btn-flat-bg-hover":"hsla(var(--success) / 0.3)","--btn-flat-fg-hover":"hsla(var(--success-light))"}};function Mn({className:e,variant:t,color:n="primary",shape:r,size:o,density:a,asChild:i=!1,...s}){const l=i?Kt:"button";return p.jsx(l,{"data-slot":"button",className:N(wr({variant:t,size:o,className:e,density:a,shape:r})),style:{...vD[n]},...s})}const bD=sD,yD=lD,Tx=cD,tf=d.forwardRef(({className:e,...t},n)=>p.jsx(Sx,{className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));tf.displayName=Sx.displayName;const Ox=d.forwardRef(({className:e,...t},n)=>p.jsxs(Tx,{children:[p.jsx(tf,{}),p.jsx(Cx,{ref:n,className:N("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Ox.displayName=Cx.displayName;const Ax=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ax.displayName="AlertDialogHeader";const Dx=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Dx.displayName="AlertDialogFooter";const Ix=d.forwardRef(({className:e,...t},n)=>p.jsx(Rx,{ref:n,className:N("text-lg font-semibold",e),...t}));Ix.displayName=Rx.displayName;const kx=d.forwardRef(({className:e,...t},n)=>p.jsx(Nx,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));kx.displayName=Nx.displayName;const jx=d.forwardRef(({className:e,...t},n)=>p.jsx(_x,{ref:n,asChild:!0,className:N(wr(),e),...t,children:p.jsx(Mn,{children:t.children})}));jx.displayName=_x.displayName;const $x=d.forwardRef(({className:e,...t},n)=>p.jsx(Ex,{ref:n,asChild:!0,className:N("mt-2 sm:mt-0",e),...t,children:p.jsx(Mn,{color:"error",variant:"outline",children:t.children})}));$x.displayName=Ex.displayName;const xD=Ke("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Lx=d.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:N(xD({variant:t}),e),...n}));Lx.displayName="Alert";const Fx=d.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:N("mb-1 font-medium leading-none tracking-tight",e),...t}));Fx.displayName="AlertTitle";const Bx=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:N("text-sm [&_p]:leading-relaxed",e),...t}));Bx.displayName="AlertDescription";var wD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tt=wD.reduce((e,t)=>{const n=Mx(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),SD="AspectRatio",zx=d.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return p.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:p.jsx(tt.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});zx.displayName=SD;var CD=zx;const _D=CD;function qx(e,t=[]){let n=[];function r(a,i){const s=d.createContext(i);s.displayName=a+"Context";const l=n.length;n=[...n,i];const u=c=>{const{scope:m,children:h,...v}=c,g=m?.[e]?.[l]||s,b=d.useMemo(()=>v,Object.values(v));return p.jsx(g.Provider,{value:b,children:h})};u.displayName=a+"Provider";function f(c,m){const h=m?.[e]?.[l]||s,v=d.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>d.createContext(i));return function(s){const l=s?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ED(o,...t)]}function ED(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(a)[`__scope${u}`];return{...s,...c}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var fa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pa={exports:{}},vs={};var _m;function RD(){if(_m)return vs;_m=1;var e=w;function t(c,m){return c===m&&(c!==0||1/c===1/m)||c!==c&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,m){var h=m(),v=r({inst:{value:h,getSnapshot:m}}),g=v[0].inst,b=v[1];return a(function(){g.value=h,g.getSnapshot=m,l(g)&&b({inst:g})},[c,h,m]),o(function(){return l(g)&&b({inst:g}),c(function(){l(g)&&b({inst:g})})},[c]),i(h),h}function l(c){var m=c.getSnapshot;c=c.value;try{var h=m();return!n(c,h)}catch{return!0}}function u(c,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return vs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,vs}var bs={};var Em;function ND(){return Em||(Em=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=v();if(!c){var b=v();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}b=i({inst:{value:g,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=g,y.getSnapshot=v,n(y)&&x({inst:y})},[h,g,v]),s(function(){return n(y)&&x({inst:y}),h(function(){n(y)&&x({inst:y})})},[h]),u(g),g}function n(h){var v=h.getSnapshot;h=h.value;try{var g=v();return!a(h,g)}catch{return!0}}function r(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=w,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,f=!1,c=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;bs.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),bs}var Rm;function PD(){return Rm||(Rm=1,process.env.NODE_ENV==="production"?pa.exports=RD():pa.exports=ND()),pa.exports}var MD=PD();function TD(){return MD.useSyncExternalStore(OD,()=>!0,()=>!1)}function OD(){return()=>{}}var nf="Avatar",[AD]=qx(nf),[DD,Wx]=AD(nf),Hx=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return p.jsx(DD,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:p.jsx(tt.span,{...r,ref:t})})});Hx.displayName=nf;var Gx="AvatarImage",Vx=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Wx(Gx,n),s=ID(r,a),l=Me(u=>{o(u),i.onImageLoadingStatusChange(u)});return Ie(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?p.jsx(tt.img,{...a,ref:t,src:r}):null});Vx.displayName=Gx;var Ux="AvatarFallback",Kx=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Wx(Ux,n),[i,s]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?p.jsx(tt.span,{...o,ref:t}):null});Kx.displayName=Ux;function Nm(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ID(e,{referrerPolicy:t,crossOrigin:n}){const r=TD(),o=d.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[i,s]=d.useState(()=>Nm(a,e));return Ie(()=>{s(Nm(a,e))},[a,e]),Ie(()=>{const l=c=>()=>{s(c)};if(!a)return;const u=l("loaded"),f=l("error");return a.addEventListener("load",u),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",f)}},[a,n,t]),i}var Yx=Hx,Xx=Vx,Zx=Kx;const Qx=d.forwardRef(({className:e,...t},n)=>p.jsx(Yx,{ref:n,className:N("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Qx.displayName=Yx.displayName;const Jx=d.forwardRef(({className:e,...t},n)=>p.jsx(Xx,{ref:n,className:N("aspect-square h-full w-full",e),...t}));Jx.displayName=Xx.displayName;const ew=d.forwardRef(({className:e,...t},n)=>p.jsx(Zx,{ref:n,className:N("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ew.displayName=Zx.displayName;const tw=Ke("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function kD({className:e,variant:t,...n}){return p.jsx("div",{className:N(tw({variant:t}),e),...n})}const nw=d.forwardRef(({...e},t)=>p.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));nw.displayName="Breadcrumb";const rw=d.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:N("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));rw.displayName="BreadcrumbList";const ow=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:N("inline-flex items-center gap-1.5",e),...t}));ow.displayName="BreadcrumbItem";const aw=d.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?Kt:"a";return p.jsx(o,{ref:r,className:N("transition-colors hover:text-foreground",t),...n})});aw.displayName="BreadcrumbLink";const iw=d.forwardRef(({className:e,...t},n)=>p.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:N("font-normal text-foreground",e),...t}));iw.displayName="BreadcrumbPage";const sw=({children:e,className:t,...n})=>p.jsx("li",{role:"presentation","aria-hidden":"true",className:N("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??p.jsx(Ar,{})});sw.displayName="BreadcrumbSeparator";const lw=({className:e,...t})=>p.jsxs("span",{role:"presentation","aria-hidden":"true",className:N("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(_y,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More"})]});lw.displayName="BreadcrumbElipssis";var jD="Separator",Pm="horizontal",$D=["horizontal","vertical"],cw=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Pm,...o}=e,a=LD(r)?r:Pm,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return p.jsx(tt.div,{"data-orientation":a,...s,...o,ref:t})});cw.displayName=jD;function LD(e){return $D.includes(e)}var uw=cw;const $r=d.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx(uw,{ref:o,decorative:n,orientation:t,className:N("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));$r.displayName=uw.displayName;const dw=Ke("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function FD({className:e,orientation:t,...n}){return p.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:N(dw({orientation:t}),e),...n})}function BD({className:e,asChild:t=!1,...n}){const r=t?Kt:"div";return p.jsx(r,{className:N("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...n})}function zD({className:e,orientation:t="vertical",...n}){return p.jsx($r,{"data-slot":"button-group-separator",orientation:t,className:N("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),...n})}function qD(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const WD={},to={};function zn(e,t){try{const r=(WD[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in to?to[r]:Mm(r,r.split(":"))}catch{if(e in to)return to[e];const n=e?.match(HD);return n?Mm(e,n.slice(1)):NaN}}const HD=/([+-]\d\d):?(\d\d)?/;function Mm(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return to[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Ht extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(zn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),fw(this),Yu(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ht(...n,t):new Ht(Date.now(),t)}withTimeZone(t){return new Ht(+this,t)}getTimezoneOffset(){const t=-zn(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Yu(this),+this}[Symbol.for("constructDateFrom")](t){return new Ht(+new Date(t),this.timeZone)}}const Tm=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Tm.test(e))return;const t=e.replace(Tm,"$1UTC");Ht.prototype[t]&&(e.startsWith("get")?Ht.prototype[e]=function(){return this.internal[t]()}:(Ht.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),GD(this),+this},Ht.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Yu(this),+this}))});function Yu(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-zn(e.timeZone,e)*60))}function GD(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),fw(e)}function fw(e){const t=zn(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),i=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,c=Math.round(-(zn(e.timeZone,e)*60))%60;(c||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+c+f));const m=zn(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,b=h!==n,y=g-l;if(b&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const x=zn(e.timeZone,e),S=x>0?Math.floor(x):Math.ceil(x),C=h-S;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class ln extends Ht{static tz(t,...n){return n.length?new ln(...n,t):new ln(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${qD(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new ln(+this,t)}[Symbol.for("constructDateFrom")](t){return new ln(+new Date(t),this.timeZone)}}const pw=6048e5,VD=864e5,Om=Symbol.for("constructDateFrom");function Ue(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Om in e?e[Om](t):e instanceof Date?new e.constructor(t):new Date(t)}function Pe(e,t){return Ue(t||e,e)}function mw(e,t,n){const r=Pe(e,n?.in);return isNaN(t)?Ue(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function hw(e,t,n){const r=Pe(e,n?.in);if(isNaN(t))return Ue(e,NaN);if(!t)return r;const o=r.getDate(),a=Ue(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let UD={};function jo(){return UD}function Sr(e,t){const n=jo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Pe(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function fo(e,t){return Sr(e,{...t,weekStartsOn:1})}function gw(e,t){const n=Pe(e,t?.in),r=n.getFullYear(),o=Ue(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=fo(o),i=Ue(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=fo(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Am(e){const t=Pe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Lr(e,...t){const n=Ue.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function po(e,t){const n=Pe(e,t?.in);return n.setHours(0,0,0,0),n}function vw(e,t,n){const[r,o]=Lr(n?.in,e,t),a=po(r),i=po(o),s=+a-Am(a),l=+i-Am(i);return Math.round((s-l)/VD)}function KD(e,t){const n=gw(e,t),r=Ue(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),fo(r)}function YD(e,t,n){return mw(e,t*7,n)}function XD(e,t,n){return hw(e,t*12,n)}function ZD(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ue.bind(null,o));const a=Pe(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),Ue(r,n||NaN)}function QD(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ue.bind(null,o));const a=Pe(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),Ue(r,n||NaN)}function JD(e,t,n){const[r,o]=Lr(n?.in,e,t);return+po(r)==+po(o)}function bw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function eI(e){return!(!bw(e)&&typeof e!="number"||isNaN(+Pe(e)))}function tI(e,t,n){const[r,o]=Lr(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function nI(e,t){const n=Pe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function yw(e,t){const[n,r]=Lr(e,t.start,t.end);return{start:n,end:r}}function rI(e,t){const{start:n,end:r}=yw(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=1;const l=[];for(;+i<=a;)l.push(Ue(n,i)),i.setMonth(i.getMonth()+s);return o?l.reverse():l}function oI(e,t){const n=Pe(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function aI(e,t){const n=Pe(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function xw(e,t){const n=Pe(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function iI(e,t){const{start:n,end:r}=yw(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setMonth(0,1);let s=1;const l=[];for(;+i<=a;)l.push(Ue(n,i)),i.setFullYear(i.getFullYear()+s);return o?l.reverse():l}function ww(e,t){const n=jo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Pe(e,t?.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function sI(e,t){return ww(e,{...t,weekStartsOn:1})}const lI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cI=(e,t,n)=>{let r;const o=lI[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ys(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const uI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pI={date:ys({formats:uI,defaultWidth:"full"}),time:ys({formats:dI,defaultWidth:"full"}),dateTime:ys({formats:fI,defaultWidth:"full"})},mI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hI=(e,t,n,r)=>mI[e];function Kr(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const gI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SI=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},CI={ordinalNumber:SI,era:Kr({values:gI,defaultWidth:"wide"}),quarter:Kr({values:vI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Kr({values:bI,defaultWidth:"wide"}),day:Kr({values:yI,defaultWidth:"wide"}),dayPeriod:Kr({values:xI,defaultWidth:"wide",formattingValues:wI,defaultFormattingWidth:"wide"})};function Yr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?EI(s,c=>c.test(i)):_I(s,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function _I(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function EI(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function RI(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const NI=/^(\d+)(th|st|nd|rd)?/i,PI=/\d+/i,MI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},TI={any:[/^b/i,/^(a|c)/i]},OI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AI={any:[/1/i,/2/i,/3/i,/4/i]},DI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},II={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$I={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},LI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FI={ordinalNumber:RI({matchPattern:NI,parsePattern:PI,valueCallback:e=>parseInt(e,10)}),era:Yr({matchPatterns:MI,defaultMatchWidth:"wide",parsePatterns:TI,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:OI,defaultMatchWidth:"wide",parsePatterns:AI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Yr({matchPatterns:DI,defaultMatchWidth:"wide",parsePatterns:II,defaultParseWidth:"any"}),day:Yr({matchPatterns:kI,defaultMatchWidth:"wide",parsePatterns:jI,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:$I,defaultMatchWidth:"any",parsePatterns:LI,defaultParseWidth:"any"})},rf={code:"en-US",formatDistance:cI,formatLong:pI,formatRelative:hI,localize:CI,match:FI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function BI(e,t){const n=Pe(e,t?.in);return vw(n,xw(n))+1}function Sw(e,t){const n=Pe(e,t?.in),r=+fo(n)-+KD(n);return Math.round(r/pw)+1}function Cw(e,t){const n=Pe(e,t?.in),r=n.getFullYear(),o=jo(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=Ue(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Sr(i,t),l=Ue(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=Sr(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function zI(e,t){const n=jo(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Cw(e,t),a=Ue(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Sr(a,t)}function _w(e,t){const n=Pe(e,t?.in),r=+Sr(n,t)-+zI(n,t);return Math.round(r/pw)+1}function Ne(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const yn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ne(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ne(n+1,2)},d(e,t){return Ne(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ne(e.getHours()%12||12,t.length)},H(e,t){return Ne(e.getHours(),t.length)},m(e,t){return Ne(e.getMinutes(),t.length)},s(e,t){return Ne(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ne(o,t.length)}},ur={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dm={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return yn.y(e,t)},Y:function(e,t,n,r){const o=Cw(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return Ne(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ne(a,t.length)},R:function(e,t){const n=gw(e);return Ne(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ne(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ne(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ne(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return yn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ne(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=_w(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Ne(o,t.length)},I:function(e,t,n){const r=Sw(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ne(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):yn.d(e,t)},D:function(e,t,n){const r=BI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ne(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ne(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ne(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Ne(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=ur.noon:r===0?o=ur.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=ur.evening:r>=12?o=ur.afternoon:r>=4?o=ur.morning:o=ur.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return yn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):yn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):yn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):yn.s(e,t)},S:function(e,t){return yn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return km(r);case"XXXX":case"XX":return Fn(r);case"XXXXX":case"XXX":default:return Fn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return km(r);case"xxxx":case"xx":return Fn(r);case"xxxxx":case"xxx":default:return Fn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Im(r,":");case"OOOO":default:return"GMT"+Fn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Im(r,":");case"zzzz":default:return"GMT"+Fn(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ne(r,t.length)},T:function(e,t,n){return Ne(+e,t.length)}};function Im(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Ne(a,2)}function km(e,t){return e%60===0?(e>0?"-":"+")+Ne(Math.abs(e)/60,2):Fn(e,t)}function Fn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ne(Math.trunc(r/60),2),a=Ne(r%60,2);return n+o+t+a}const jm=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ew=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},qI=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return jm(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",jm(r,t)).replace("{{time}}",Ew(o,t))},WI={p:Ew,P:qI},HI=/^D+$/,GI=/^Y+$/,VI=["D","DD","YY","YYYY"];function UI(e){return HI.test(e)}function KI(e){return GI.test(e)}function YI(e,t,n){const r=XI(e,t,n);if(console.warn(r),VI.includes(e))throw new RangeError(r)}function XI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ZI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JI=/^'([^]*?)'?$/,ek=/''/g,tk=/[a-zA-Z]/;function nk(e,t,n){const r=jo(),o=n?.locale??r.locale??rf,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Pe(e,n?.in);if(!eI(s))throw new RangeError("Invalid time value");let l=t.match(QI).map(f=>{const c=f[0];if(c==="p"||c==="P"){const m=WI[c];return m(f,o.formatLong)}return f}).join("").match(ZI).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const c=f[0];if(c==="'")return{isToken:!1,value:rk(f)};if(Dm[c])return{isToken:!0,value:f};if(c.match(tk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const c=f.value;(!n?.useAdditionalWeekYearTokens&&KI(c)||!n?.useAdditionalDayOfYearTokens&&UI(c))&&YI(c,t,String(e));const m=Dm[c[0]];return m(s,c,o.localize,u)}).join("")}function rk(e){const t=e.match(JI);return t?t[1].replace(ek,"'"):e}function ok(e,t){const n=Pe(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=Ue(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function ak(e,t){return Pe(e,t?.in).getMonth()}function ik(e,t){return Pe(e,t?.in).getFullYear()}function sk(e,t){return+Pe(e)>+Pe(t)}function lk(e,t){return+Pe(e)<+Pe(t)}function ck(e,t,n){const[r,o]=Lr(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function uk(e,t,n){const[r,o]=Lr(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function dk(e,t,n){const r=Pe(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=Ue(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=ok(i);return r.setMonth(t,Math.min(a,s)),r}function fk(e,t,n){const r=Pe(e,n?.in);return isNaN(+r)?Ue(e,NaN):(r.setFullYear(t),r)}const $m=5,pk=4;function mk(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,$m*7-1);return t.getMonth(e)===t.getMonth(a)?$m:pk}function Rw(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function hk(e,t){const n=Rw(e,t),r=mk(e,t);return t.addDays(n,r*7-1)}class gt{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?ln.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,a)=>this.overrides?.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new ln(r,o,a,this.options.timeZone):new Date(r,o,a),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):mw(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):hw(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):YD(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):XD(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):vw(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):tI(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):rI(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):iI(r),a=new Set(o.map(s=>this.getYear(s)));if(a.size===o.length)return o;const i=[];return a.forEach(s=>{i.push(new Date(s,0,1))}),i},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):hk(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):sI(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):nI(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):ww(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):aI(r),this.format=(r,o,a)=>{const i=this.overrides?.format?this.overrides.format(r,o,this.options):nk(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(i):i},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Sw(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):ak(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):ik(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):_w(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):sk(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):lk(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):bw(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):JD(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):ck(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):uk(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):ZD(r),this.min=r=>this.overrides?.min?this.overrides.min(r):QD(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):dk(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):fk(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Rw(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):po(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):fo(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):oI(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):Sr(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):xw(r),this.options={locale:rf,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&gt.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n?.code;if(a&&gt.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const i=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,i)}}gt.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Xt=new gt;class Nw{constructor(t,n,r=Xt){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class gk{constructor(t,n){this.date=t,this.weeks=n}}class vk{constructor(t,n){this.days=n,this.weekNumber=t}}function bk(e){return w.createElement("button",{...e})}function yk(e){return w.createElement("span",{...e})}function xk(e){const{size:t=24,orientation:n="left",className:r}=e;return w.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&w.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&w.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&w.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&w.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function wk(e){const{day:t,modifiers:n,...r}=e;return w.createElement("td",{...r})}function Sk(e){const{day:t,modifiers:n,...r}=e,o=w.useRef(null);return w.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),w.createElement("button",{ref:o,...r})}var ue;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(ue||(ue={}));var Fe;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Fe||(Fe={}));var Pt;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Pt||(Pt={}));var ft;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ft||(ft={}));function Ck(e){const{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[ue.Dropdown],n].join(" "),s=t?.find(({value:l})=>l===a.value);return w.createElement("span",{"data-disabled":a.disabled,className:o[ue.DropdownRoot]},w.createElement(r.Select,{className:i,...a},t?.map(({value:l,label:u,disabled:f})=>w.createElement(r.Option,{key:l,value:l,disabled:f},u))),w.createElement("span",{className:o[ue.CaptionLabel],"aria-hidden":!0},s?.label,w.createElement(r.Chevron,{orientation:"down",size:18,className:o[ue.Chevron]})))}function _k(e){return w.createElement("div",{...e})}function Ek(e){return w.createElement("div",{...e})}function Rk(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r},e.children)}function Nk(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r})}function Pk(e){return w.createElement("table",{...e})}function Mk(e){return w.createElement("div",{...e})}const Pw=w.createContext(void 0);function $o(){const e=w.useContext(Pw);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Tk(e){const{components:t}=$o();return w.createElement(t.Dropdown,{...e})}function Ok(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:s,labels:{labelPrevious:l,labelNext:u}}=$o(),f=w.useCallback(m=>{o&&n?.(m)},[o,n]),c=w.useCallback(m=>{r&&t?.(m)},[r,t]);return w.createElement("nav",{...a},w.createElement(i.PreviousMonthButton,{type:"button",className:s[ue.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:c},w.createElement(i.Chevron,{disabled:r?void 0:!0,className:s[ue.Chevron],orientation:"left"})),w.createElement(i.NextMonthButton,{type:"button",className:s[ue.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},w.createElement(i.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[ue.Chevron]})))}function Ak(e){const{components:t}=$o();return w.createElement(t.Button,{...e})}function Dk(e){return w.createElement("option",{...e})}function Ik(e){const{components:t}=$o();return w.createElement(t.Button,{...e})}function kk(e){const{rootRef:t,...n}=e;return w.createElement("div",{...n,ref:t})}function jk(e){return w.createElement("select",{...e})}function $k(e){const{week:t,...n}=e;return w.createElement("tr",{...n})}function Lk(e){return w.createElement("th",{...e})}function Fk(e){return w.createElement("thead",{"aria-hidden":!0},w.createElement("tr",{...e}))}function Bk(e){const{week:t,...n}=e;return w.createElement("th",{...n})}function zk(e){return w.createElement("th",{...e})}function qk(e){return w.createElement("tbody",{...e})}function Wk(e){const{components:t}=$o();return w.createElement(t.Dropdown,{...e})}const Hk=Object.freeze(Object.defineProperty({__proto__:null,Button:bk,CaptionLabel:yk,Chevron:xk,Day:wk,DayButton:Sk,Dropdown:Ck,DropdownNav:_k,Footer:Ek,Month:Rk,MonthCaption:Nk,MonthGrid:Pk,Months:Mk,MonthsDropdown:Tk,Nav:Ok,NextMonthButton:Ak,Option:Dk,PreviousMonthButton:Ik,Root:kk,Select:jk,Week:$k,WeekNumber:Bk,WeekNumberHeader:zk,Weekday:Lk,Weekdays:Fk,Weeks:qk,YearsDropdown:Wk},Symbol.toStringTag,{value:"Module"}));function cn(e,t,n=!1,r=Xt){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!n&&o?s(o,t):!1}function of(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function yi(e){return!!(e&&typeof e=="object"&&"from"in e)}function af(e){return!!(e&&typeof e=="object"&&"after"in e)}function sf(e){return!!(e&&typeof e=="object"&&"before"in e)}function Mw(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Tw(e,t){return Array.isArray(e)&&e.every(t.isDate)}function un(e,t,n=Xt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(Tw(s,n))return s.includes(e);if(yi(s))return cn(s,e,!1,n);if(Mw(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(of(s)){const l=a(s.before,e),u=a(s.after,e),f=l>0,c=u<0;return i(s.before,s.after)?c&&f:f||c}return af(s)?a(e,s.after)>0:sf(s)?a(s.before,e)>0:typeof s=="function"?s(e):!1})}function Gk(e,t,n,r,o){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:c,isSameMonth:m,startOfMonth:h,isBefore:v,endOfMonth:g,isAfter:b}=o,y=n&&h(n),x=r&&g(r),S={[Fe.focused]:[],[Fe.outside]:[],[Fe.disabled]:[],[Fe.hidden]:[],[Fe.today]:[]},C={};for(const E of e){const{date:R,displayMonth:_}=E,P=!!(_&&!m(R,_)),M=!!(y&&v(R,y)),k=!!(x&&b(R,x)),T=!!(a&&un(R,a,o)),j=!!(i&&un(R,i,o))||M||k||!u&&!l&&P||u&&l===!1&&P,O=c(R,f);P&&S.outside.push(E),T&&S.disabled.push(E),j&&S.hidden.push(E),O&&S.today.push(E),s&&Object.keys(s).forEach(F=>{const H=s?.[F];H&&un(R,H,o)&&(C[F]?C[F].push(E):C[F]=[E])})}return E=>{const R={[Fe.focused]:!1,[Fe.disabled]:!1,[Fe.hidden]:!1,[Fe.outside]:!1,[Fe.today]:!1},_={};for(const P in S){const M=S[P];R[P]=M.some(k=>k===E)}for(const P in C)_[P]=C[P].some(M=>M===E);return{...R,..._}}}function Vk(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[Fe[a]]?o.push(t[Fe[a]]):t[Pt[a]]&&o.push(t[Pt[a]]),o),[t[ue.Day]])}function Uk(e){return{...Hk,...e}}function Kk(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function lf(){const e={};for(const t in ue)e[ue[t]]=`rdp-${ue[t]}`;for(const t in Fe)e[Fe[t]]=`rdp-${Fe[t]}`;for(const t in Pt)e[Pt[t]]=`rdp-${Pt[t]}`;for(const t in ft)e[ft[t]]=`rdp-${ft[t]}`;return e}function Ow(e,t,n){return(n??new gt(t)).formatMonthYear(e)}const Yk=Ow;function Xk(e,t,n){return(n??new gt(t)).format(e,"d")}function Zk(e,t=Xt){return t.format(e,"LLLL")}function Qk(e,t,n){return(n??new gt(t)).format(e,"cccccc")}function Jk(e,t=Xt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function ej(){return""}function Aw(e,t=Xt){return t.format(e,"yyyy")}const tj=Aw,nj=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Ow,formatDay:Xk,formatMonthCaption:Yk,formatMonthDropdown:Zk,formatWeekNumber:Jk,formatWeekNumberHeader:ej,formatWeekdayName:Qk,formatYearCaption:tj,formatYearDropdown:Aw},Symbol.toStringTag,{value:"Module"}));function rj(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...nj,...e}}function oj(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=o;return l({start:i(e),end:s(e)}).map(m=>{const h=r.formatMonthDropdown(m,o),v=u(m),g=t&&m<a(t)||n&&m>a(n)||!1;return{value:v,label:h,disabled:g}})}function aj(e,t={},n={}){let r={...t?.[ue.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function ij(e,t,n,r){const o=r??e.today(),a=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),i=[];for(let s=0;s<7;s++){const l=e.addDays(a,s);i.push(l)}return i}function sj(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:i,eachYearOfInterval:s,getYear:l}=r,u=a(e),f=i(t),c=s({start:u,end:f});return o&&c.reverse(),c.map(m=>{const h=n.formatYearDropdown(m,r);return{value:l(m),label:h,disabled:!1}})}function Dw(e,t,n,r){let o=(r??new gt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const lj=Dw;function Iw(e,t,n){return(n??new gt(t)).formatMonthYear(e)}const cj=Iw;function uj(e,t,n,r){let o=(r??new gt(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function dj(e){return"Choose the Month"}function fj(){return""}function pj(e){return"Go to the Next Month"}function mj(e){return"Go to the Previous Month"}function hj(e,t,n){return(n??new gt(t)).format(e,"cccc")}function gj(e,t){return`Week ${e}`}function vj(e){return"Week Number"}function bj(e){return"Choose the Year"}const yj=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:cj,labelDay:lj,labelDayButton:Dw,labelGrid:Iw,labelGridcell:uj,labelMonthDropdown:dj,labelNav:fj,labelNext:pj,labelPrevious:mj,labelWeekNumber:gj,labelWeekNumberHeader:vj,labelWeekday:hj,labelYearDropdown:bj},Symbol.toStringTag,{value:"Module"})),Lo=e=>e instanceof HTMLElement?e:null,xs=e=>[...e.querySelectorAll("[data-animated-month]")??[]],xj=e=>Lo(e.querySelector("[data-animated-month]")),ws=e=>Lo(e.querySelector("[data-animated-caption]")),Ss=e=>Lo(e.querySelector("[data-animated-weeks]")),wj=e=>Lo(e.querySelector("[data-animated-nav]")),Sj=e=>Lo(e.querySelector("[data-animated-weekdays]"));function Cj(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const i=w.useRef(null),s=w.useRef(r),l=w.useRef(!1);w.useLayoutEffect(()=>{const u=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=a.isSameMonth(r[0].date,u[0].date),c=a.isAfter(r[0].date,u[0].date),m=c?n[ft.caption_after_enter]:n[ft.caption_before_enter],h=c?n[ft.weeks_after_enter]:n[ft.weeks_before_enter],v=i.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(xs(g).forEach(S=>{if(!(S instanceof HTMLElement))return;const C=xj(S);C&&S.contains(C)&&S.removeChild(C);const E=ws(S);E&&E.classList.remove(m);const R=Ss(S);R&&R.classList.remove(h)}),i.current=g):i.current=null,l.current||f||o)return;const b=v instanceof HTMLElement?xs(v):[],y=xs(e.current);if(y?.every(x=>x instanceof HTMLElement)&&b&&b.every(x=>x instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const x=wj(e.current);x&&(x.style.zIndex="1"),y.forEach((S,C)=>{const E=b[C];if(!E)return;S.style.position="relative",S.style.overflow="hidden";const R=ws(S);R&&R.classList.add(m);const _=Ss(S);_&&_.classList.add(h);const P=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),R&&R.classList.remove(m),_&&_.classList.remove(h),S.style.position="",S.style.overflow="",S.contains(E)&&S.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const M=Sj(E);M&&(M.style.opacity="0");const k=ws(E);k&&(k.classList.add(c?n[ft.caption_before_exit]:n[ft.caption_after_exit]),k.addEventListener("animationend",P));const T=Ss(E);T&&T.classList.add(c?n[ft.weeks_before_exit]:n[ft.weeks_after_exit]),S.insertBefore(E,S.firstChild)})}})}function _j(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:c,endOfBroadcastWeek:m,endOfISOWeek:h,endOfMonth:v,endOfWeek:g,isAfter:b,startOfBroadcastWeek:y,startOfISOWeek:x,startOfWeek:S}=r,C=l?y(o,r):i?x(o):S(o),E=l?m(a):i?h(v(a)):g(v(a)),R=f(E,C),_=c(a,o)+1,P=[];for(let T=0;T<=R;T++){const j=u(C,T);if(t&&b(j,t))break;P.push(j)}const k=(l?35:42)*_;if(s&&P.length<k){const T=k-P.length;for(let j=0;j<T;j++){const O=u(P[P.length-1],1);P.push(O)}}return P}function Ej(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,i)=>a.concat(i.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Rj(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let i=0;i<o;i++){const s=r.addMonths(e,i);if(t&&s>t)break;a.push(s)}return a}function Lm(e,t,n,r){const{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:s=1}=e;let l=o||a||i;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:c}=r;if(n&&u(n,l)<s-1){const m=-1*(s-1);l=f(n,m)}return t&&u(l,t)<0&&(l=t),c(l)}function Nj(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:c,startOfISOWeek:m,startOfWeek:h}=r,v=e.reduce((g,b)=>{const y=n.broadcastCalendar?c(b,r):n.ISOWeek?m(b):h(b),x=n.broadcastCalendar?a(b):n.ISOWeek?i(s(b)):l(s(b)),S=t.filter(_=>_>=y&&_<=x),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<C){const _=t.filter(P=>{const M=C-S.length;return P>x&&P<=o(x,M)});S.push(..._)}const E=S.reduce((_,P)=>{const M=n.ISOWeek?u(P):f(P),k=_.find(j=>j.weekNumber===M),T=new Nw(P,b,r);return k?k.days.push(T):_.push(new vk(M,[T])),_},[]),R=new gk(b,E);return g.push(R),g},[]);return n.reverseMonths?v.reverse():v}function Pj(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:l,endOfYear:u,newDate:f,today:c}=t,{fromYear:m,toYear:h,fromMonth:v,toMonth:g}=e;!n&&v&&(n=v),!n&&m&&(n=t.newDate(m,0,1)),!r&&g&&(r=g),!r&&h&&(r=f(h,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=i(n):m?n=f(m,0,1):!n&&b&&(n=o(l(e.today??c(),-100))),r?r=s(r):h?r=f(h,11,31):!r&&b&&(r=u(e.today??c())),[n&&a(n),r&&a(r)]}function Mj(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=r,u=o?a:1,f=i(e);if(!t)return s(f,u);if(!(l(t,e)<a))return s(f,u)}function Tj(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=r,u=o?a??1:1,f=i(e);if(!t)return s(f,-u);if(!(l(f,t)<=0))return s(f,-u)}function Oj(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function xi(e,t){const[n,r]=w.useState(e);return[t===void 0?n:t,r]}function Aj(e,t){const[n,r]=Pj(e,t),{startOfMonth:o,endOfMonth:a}=t,i=Lm(e,n,r,t),[s,l]=xi(i,e.month?i:void 0);w.useEffect(()=>{const C=Lm(e,n,r,t);l(C)},[e.timeZone]);const{months:u,weeks:f,days:c,previousMonth:m,nextMonth:h}=w.useMemo(()=>{const C=Rj(s,r,{numberOfMonths:e.numberOfMonths},t),E=_j(C,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),R=Nj(C,E,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),_=Oj(R),P=Ej(R),M=Tj(s,n,e,t),k=Mj(s,r,e,t);return{months:R,weeks:_,days:P,previousMonth:M,nextMonth:k}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:v,onMonthChange:g}=e,b=C=>f.some(E=>E.days.some(R=>R.isEqualTo(C))),y=C=>{if(v)return;let E=o(C);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),g?.(E)};return{months:u,weeks:f,days:c,navStart:n,navEnd:r,previousMonth:m,nextMonth:h,goToMonth:y,goToDay:C=>{b(C)||y(C.date)}}}var qt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(qt||(qt={}));function Fm(e){return!e[Fe.disabled]&&!e[Fe.hidden]&&!e[Fe.outside]}function Dj(e,t,n,r){let o,a=-1;for(const i of e){const s=t(i);Fm(s)&&(s[Fe.focused]&&a<qt.FocusedModifier?(o=i,a=qt.FocusedModifier):r?.isEqualTo(i)&&a<qt.LastFocused?(o=i,a=qt.LastFocused):n(i.date)&&a<qt.Selected?(o=i,a=qt.Selected):s[Fe.today]&&a<qt.Today&&(o=i,a=qt.Today))}return o||(o=e.find(i=>Fm(t(i)))),o}function Ij(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:l}=a,{addDays:u,addMonths:f,addWeeks:c,addYears:m,endOfBroadcastWeek:h,endOfISOWeek:v,endOfWeek:g,max:b,min:y,startOfBroadcastWeek:x,startOfISOWeek:S,startOfWeek:C}=i;let R={day:u,week:c,month:f,year:m,startOfWeek:_=>l?x(_,i):s?S(_):C(_),endOfWeek:_=>l?h(_):s?v(_):g(_)}[e](n,t==="after"?1:-1);return t==="before"&&r?R=b([r,R]):t==="after"&&o&&(R=y([o,R])),R}function kw(e,t,n,r,o,a,i,s=0){if(s>365)return;const l=Ij(e,t,n.date,r,o,a,i),u=!!(a.disabled&&un(l,a.disabled,i)),f=!!(a.hidden&&un(l,a.hidden,i)),c=l,m=new Nw(l,c,i);return!u&&!f?m:kw(e,t,m,r,o,a,i,s+1)}function kj(e,t,n,r,o){const{autoFocus:a}=e,[i,s]=w.useState(),l=Dj(t.days,n,r||(()=>!1),i),[u,f]=w.useState(a?l:void 0);return{isFocusTarget:g=>!!l?.isEqualTo(g),setFocused:f,focused:u,blur:()=>{s(u),f(void 0)},moveFocus:(g,b)=>{if(!u)return;const y=kw(g,b,u,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(S=>S.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function jj(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=xi(n,o?n:void 0),s=o?n:a,{isSameDay:l}=t,u=h=>s?.some(v=>l(v,h))??!1,{min:f,max:c}=e;return{selected:s,select:(h,v,g)=>{let b=[...s??[]];if(u(h)){if(s?.length===f||r&&s?.length===1)return;b=s?.filter(y=>!l(y,h))}else s?.length===c?b=[h]:b=[...b,h];return o||i(b),o?.(b,h,v,g),b},isSelected:u}}function $j(e,t,n=0,r=0,o=!1,a=Xt){const{from:i,to:s}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=a;let c;if(!i&&!s)c={from:e,to:n>0?void 0:e};else if(i&&!s)l(i,e)?n===0?c={from:i,to:e}:o?c={from:i,to:void 0}:c=void 0:f(e,i)?c={from:e,to:i}:c={from:i,to:e};else if(i&&s)if(l(i,e)&&l(s,e))o?c={from:i,to:s}:c=void 0;else if(l(i,e))c={from:i,to:n>0?void 0:e};else if(l(s,e))c={from:e,to:n>0?void 0:e};else if(f(e,i))c={from:e,to:s};else if(u(e,i))c={from:i,to:e};else if(u(e,s))c={from:i,to:e};else throw new Error("Invalid range");if(c?.from&&c?.to){const m=a.differenceInCalendarDays(c.to,c.from);r>0&&m>r?c={from:e,to:void 0}:n>1&&m<n&&(c={from:e,to:void 0})}return c}function Lj(e,t,n=Xt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let s=0;s<=i;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Bm(e,t,n=Xt){return cn(e,t.from,!1,n)||cn(e,t.to,!1,n)||cn(t,e.from,!1,n)||cn(t,e.to,!1,n)}function Fj(e,t,n=Xt){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?cn(e,s,!1,n):Tw(s,n)?s.some(l=>cn(e,l,!1,n)):yi(s)?s.from&&s.to?Bm(e,{from:s.from,to:s.to},n):!1:Mw(s)?Lj(e,s.dayOfWeek,n):of(s)?n.isAfter(s.before,s.after)?Bm(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):un(e.from,s,n)||un(e.to,s,n):af(s)||sf(s)?un(e.from,s,n)||un(e.to,s,n):!1))return!0;const i=r.filter(s=>typeof s=="function");if(i.length){let s=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(i.some(f=>f(s)))return!0;s=n.addDays(s,1)}}return!1}function Bj(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,l]=xi(o,i?o:void 0),u=i?o:s;return{selected:u,select:(m,h,v)=>{const{min:g,max:b}=e,y=m?$j(m,u,g,b,a,t):void 0;return r&&n&&y?.from&&y.to&&Fj({from:y.from,to:y.to},n,t)&&(y.from=m,y.to=void 0),i||l(y),i?.(y,m,h,v),y},isSelected:m=>u&&cn(u,m,!1,t)}}function zj(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=xi(n,o?n:void 0),s=o?n:a,{isSameDay:l}=t;return{selected:s,select:(c,m,h)=>{let v=c;return!r&&s&&s&&l(c,s)&&(v=void 0),o||i(v),o?.(v,c,m,h),v},isSelected:c=>s?l(s,c):!1}}function qj(e,t){const n=zj(e,t),r=jj(e,t),o=Bj(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Qe(e,t){return e instanceof ln&&e.timeZone===t?e:new ln(e,t)}function zm(e,t){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Qe(e,t):Array.isArray(e)?e.map(n=>n instanceof Date?Qe(n,t):n):yi(e)?{...e,from:e.from?Qe(e.from,t):e.from,to:e.to?Qe(e.to,t):e.to}:of(e)?{before:Qe(e.before,t),after:Qe(e.after,t)}:af(e)?{after:Qe(e.after,t)}:sf(e)?{before:Qe(e.before,t)}:e}function Cs(e,t){return e&&(Array.isArray(e)?e.map(n=>zm(n,t)):zm(e,t))}function Wj(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Qe(t.today,n)),t.month&&(t.month=Qe(t.month,n)),t.defaultMonth&&(t.defaultMonth=Qe(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Qe(t.startMonth,n)),t.endMonth&&(t.endMonth=Qe(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Qe(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(X=>Qe(X,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Qe(t.selected.from,n):t.selected.from,to:t.selected.to?Qe(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Cs(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Cs(t.hidden,n)),t.modifiers)){const X={};Object.keys(t.modifiers).forEach(le=>{X[le]=Cs(t.modifiers?.[le],n)}),t.modifiers=X}const{components:r,formatters:o,labels:a,dateLib:i,locale:s,classNames:l}=w.useMemo(()=>{const X={...rf,...t.locale};return{dateLib:new gt({locale:X,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Uk(t.components),formatters:rj(t.formatters),labels:{...yj,...t.labels},locale:X,classNames:{...lf(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:i.today()});const{captionLayout:u,mode:f,navLayout:c,numberOfMonths:m=1,onDayBlur:h,onDayClick:v,onDayFocus:g,onDayKeyDown:b,onDayMouseEnter:y,onDayMouseLeave:x,onNextClick:S,onPrevClick:C,showWeekNumber:E,styles:R}=t,{formatCaption:_,formatDay:P,formatMonthDropdown:M,formatWeekNumber:k,formatWeekNumberHeader:T,formatWeekdayName:j,formatYearDropdown:O}=o,F=Aj(t,i),{days:H,months:$,navStart:K,navEnd:V,previousMonth:q,nextMonth:ee,goToMonth:J}=F,B=Gk(H,t,K,V,i),{isSelected:D,select:z,selected:L}=qj(t,i)??{},{blur:U,focused:I,isFocusTarget:W,moveFocus:Q,setFocused:te}=kj(t,F,B,D??(()=>!1),i),{labelDayButton:re,labelGridcell:Y,labelGrid:ie,labelMonthDropdown:A,labelNav:oe,labelPrevious:fe,labelNext:pe,labelWeekday:me,labelWeekNumber:de,labelWeekNumberHeader:xe,labelYearDropdown:je}=a,ye=w.useMemo(()=>ij(i,t.ISOWeek,t.broadcastCalendar,t.today),[i,t.ISOWeek,t.broadcastCalendar,t.today]),Ee=f!==void 0||v!==void 0,qe=w.useCallback(()=>{q&&(J(q),C?.(q))},[q,J,C]),We=w.useCallback(()=>{ee&&(J(ee),S?.(ee))},[J,ee,S]),Ye=w.useCallback((X,le)=>ae=>{ae.preventDefault(),ae.stopPropagation(),te(X),z?.(X.date,le,ae),v?.(X.date,le,ae)},[z,v,te]),Je=w.useCallback((X,le)=>ae=>{te(X),g?.(X.date,le,ae)},[g,te]),it=w.useCallback((X,le)=>ae=>{U(),h?.(X.date,le,ae)},[U,h]),st=w.useCallback((X,le)=>ae=>{const se={ArrowLeft:[ae.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ae.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ae.shiftKey?"year":"week","after"],ArrowUp:[ae.shiftKey?"year":"week","before"],PageUp:[ae.shiftKey?"year":"month","before"],PageDown:[ae.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(se[ae.key]){ae.preventDefault(),ae.stopPropagation();const[be,Z]=se[ae.key];Q(be,Z)}b?.(X.date,le,ae)},[Q,b,t.dir]),He=w.useCallback((X,le)=>ae=>{y?.(X.date,le,ae)},[y]),vt=w.useCallback((X,le)=>ae=>{x?.(X.date,le,ae)},[x]),Ge=w.useCallback(X=>le=>{const ae=Number(le.target.value),se=i.setMonth(i.startOfMonth(X),ae);J(se)},[i,J]),Xe=w.useCallback(X=>le=>{const ae=Number(le.target.value),se=i.setYear(i.startOfMonth(X),ae);J(se)},[i,J]),{className:_t,style:Bt}=w.useMemo(()=>({className:[l[ue.Root],t.className].filter(Boolean).join(" "),style:{...R?.[ue.Root],...t.style}}),[l,t.className,t.style,R]),hn=Kk(t),gn=w.useRef(null);Cj(gn,!!t.animate,{classNames:l,months:$,focused:I,dateLib:i});const nn={dayPickerProps:t,selected:L,select:z,isSelected:D,months:$,nextMonth:ee,previousMonth:q,goToMonth:J,getModifiers:B,components:r,classNames:l,styles:R,labels:a,formatters:o};return w.createElement(Pw.Provider,{value:nn},w.createElement(r.Root,{rootRef:t.animate?gn:void 0,className:_t,style:Bt,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...hn},w.createElement(r.Months,{className:l[ue.Months],style:R?.[ue.Months]},!t.hideNavigation&&!c&&w.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ue.Nav],style:R?.[ue.Nav],"aria-label":oe(),onPreviousClick:qe,onNextClick:We,previousMonth:q,nextMonth:ee}),$.map((X,le)=>w.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[ue.Month],style:R?.[ue.Month],key:le,displayIndex:le,calendarMonth:X},c==="around"&&!t.hideNavigation&&le===0&&w.createElement(r.PreviousMonthButton,{type:"button",className:l[ue.PreviousMonthButton],tabIndex:q?void 0:-1,"aria-disabled":q?void 0:!0,"aria-label":fe(q),onClick:qe,"data-animated-button":t.animate?"true":void 0},w.createElement(r.Chevron,{disabled:q?void 0:!0,className:l[ue.Chevron],orientation:t.dir==="rtl"?"right":"left"})),w.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[ue.MonthCaption],style:R?.[ue.MonthCaption],calendarMonth:X,displayIndex:le},u?.startsWith("dropdown")?w.createElement(r.DropdownNav,{className:l[ue.Dropdowns],style:R?.[ue.Dropdowns]},(()=>{const ae=u==="dropdown"||u==="dropdown-months"?w.createElement(r.MonthsDropdown,{key:"month",className:l[ue.MonthsDropdown],"aria-label":A(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Ge(X.date),options:oj(X.date,K,V,o,i),style:R?.[ue.Dropdown],value:i.getMonth(X.date)}):w.createElement("span",{key:"month"},M(X.date,i)),se=u==="dropdown"||u==="dropdown-years"?w.createElement(r.YearsDropdown,{key:"year",className:l[ue.YearsDropdown],"aria-label":je(i.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Xe(X.date),options:sj(K,V,o,i,!!t.reverseYears),style:R?.[ue.Dropdown],value:i.getYear(X.date)}):w.createElement("span",{key:"year"},O(X.date,i));return i.getMonthYearOrder()==="year-first"?[se,ae]:[ae,se]})(),w.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},_(X.date,i.options,i))):w.createElement(r.CaptionLabel,{className:l[ue.CaptionLabel],role:"status","aria-live":"polite"},_(X.date,i.options,i))),c==="around"&&!t.hideNavigation&&le===m-1&&w.createElement(r.NextMonthButton,{type:"button",className:l[ue.NextMonthButton],tabIndex:ee?void 0:-1,"aria-disabled":ee?void 0:!0,"aria-label":pe(ee),onClick:We,"data-animated-button":t.animate?"true":void 0},w.createElement(r.Chevron,{disabled:ee?void 0:!0,className:l[ue.Chevron],orientation:t.dir==="rtl"?"left":"right"})),le===m-1&&c==="after"&&!t.hideNavigation&&w.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ue.Nav],style:R?.[ue.Nav],"aria-label":oe(),onPreviousClick:qe,onNextClick:We,previousMonth:q,nextMonth:ee}),w.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":ie(X.date,i.options,i)||void 0,className:l[ue.MonthGrid],style:R?.[ue.MonthGrid]},!t.hideWeekdays&&w.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[ue.Weekdays],style:R?.[ue.Weekdays]},E&&w.createElement(r.WeekNumberHeader,{"aria-label":xe(i.options),className:l[ue.WeekNumberHeader],style:R?.[ue.WeekNumberHeader],scope:"col"},T()),ye.map(ae=>w.createElement(r.Weekday,{"aria-label":me(ae,i.options,i),className:l[ue.Weekday],key:String(ae),style:R?.[ue.Weekday],scope:"col"},j(ae,i.options,i)))),w.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[ue.Weeks],style:R?.[ue.Weeks]},X.weeks.map(ae=>w.createElement(r.Week,{className:l[ue.Week],key:ae.weekNumber,style:R?.[ue.Week],week:ae},E&&w.createElement(r.WeekNumber,{week:ae,style:R?.[ue.WeekNumber],"aria-label":de(ae.weekNumber,{locale:s}),className:l[ue.WeekNumber],scope:"row",role:"rowheader"},k(ae.weekNumber,i)),ae.days.map(se=>{const{date:be}=se,Z=B(se);if(Z[Fe.focused]=!Z.hidden&&!!I?.isEqualTo(se),Z[Pt.selected]=D?.(be)||Z.selected,yi(L)){const{from:et,to:Se}=L;Z[Pt.range_start]=!!(et&&Se&&i.isSameDay(be,et)),Z[Pt.range_end]=!!(et&&Se&&i.isSameDay(be,Se)),Z[Pt.range_middle]=cn(L,be,!0,i)}const ve=aj(Z,R,t.modifiersStyles),we=Vk(Z,l,t.modifiersClassNames),Re=!Ee&&!Z.hidden?Y(be,Z,i.options,i):void 0;return w.createElement(r.Day,{key:`${se.isoDate}_${se.displayMonthId}`,day:se,modifiers:Z,className:we.join(" "),style:ve,role:"gridcell","aria-selected":Z.selected||void 0,"aria-label":Re,"data-day":se.isoDate,"data-month":se.outside?se.dateMonthId:void 0,"data-selected":Z.selected||void 0,"data-disabled":Z.disabled||void 0,"data-hidden":Z.hidden||void 0,"data-outside":se.outside||void 0,"data-focused":Z.focused||void 0,"data-today":Z.today||void 0},!Z.hidden&&Ee?w.createElement(r.DayButton,{className:l[ue.DayButton],style:R?.[ue.DayButton],type:"button",day:se,modifiers:Z,disabled:!Z.focused&&Z.disabled||void 0,"aria-disabled":Z.focused&&Z.disabled||void 0,tabIndex:W(se)?0:-1,"aria-label":re(be,Z,i.options,i),onClick:Ye(se,Z),onBlur:it(se,Z),onFocus:Je(se,Z),onKeyDown:st(se,Z),onMouseEnter:He(se,Z),onMouseLeave:vt(se,Z)},P(be,i.options,i)):!Z.hidden&&P(se.date,i.options,i))})))))))),t.footer&&w.createElement(r.Footer,{className:l[ue.Footer],style:R?.[ue.Footer],role:"status","aria-live":"polite"},t.footer)))}function Hj({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:a,components:i,...s}){const l=lf();return p.jsx(Wj,{showOutsideDays:n,className:N("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...a},classNames:{root:N("w-fit",l.root),months:N("relative flex flex-col gap-4 md:flex-row",l.months),month:N("flex w-full flex-col gap-4",l.month),nav:N("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:N(wr({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:N(wr({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:N("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",l.month_caption),dropdowns:N("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:N("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:N("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:N("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-foreground/50 flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:N("flex",l.weekdays),weekday:N("text-foreground/50 flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:N("mt-2 flex w-full",l.week),week_number_header:N("w-[--cell-size] select-none",l.week_number_header),week_number:N("text-foreground/50 select-none text-[0.8rem]",l.week_number),day:N("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:N("bg-primary rounded-l-md",l.range_start),range_middle:N("rounded-none bg-primary",l.range_middle),range_end:N("bg-primary rounded-r-md",l.range_end),today:N("bg-primary text-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:N("text-foreground/50 aria-selected:text-foreground/50",l.outside),disabled:N("text-foreground/65 opacity-50",l.disabled),hidden:N("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:f,...c})=>p.jsx("div",{"data-slot":"calendar",ref:f,className:N(u),...c}),Chevron:({className:u,orientation:f,...c})=>f==="left"?p.jsx(Cy,{className:N("size-4",u),...c}):f==="right"?p.jsx(Ar,{className:N("size-4",u),...c}):p.jsx(Oo,{className:N("size-4",u),...c}),DayButton:jw,WeekNumber:({children:u,...f})=>p.jsx("td",{...f,children:p.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:u})}),...i},...s})}function jw({className:e,day:t,modifiers:n,color:r,...o}){const a=lf(),i=d.useRef(null);return d.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),p.jsx(Mn,{ref:i,variant:"ghost",size:"sm",shape:"square",color:"error","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:N("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",a.day,e),...o})}const Gj=Ke("rounded-xl transition-colors",{variants:{variant:{unstyled:"text-[",outline:"bg-transparent border border-[--card-outline-border]"},size:{sm:"",md:"",lg:"",xl:""},density:{compact:"",default:"",relaxed:""}},defaultVariants:{variant:"outline",size:"md",density:"default"}}),Vj={neutral:{"--card-outline-border":"hsl(var(--neutral))"},primary:{"--card-outline-border":"hsl(var(--surface-1))"},secondary:{"--card-outline-border":"hsl(var(--secondary-dark) / 0.6)"},success:{"--card-outline-border":"hsl(var(--success))"},warning:{"--card-outline-border":"hsl(var(--warning))"},error:{"--card-outline-border":"hsl(var(--error))"},info:{"--card-outline-border":"hsl(var(--info))"}},Uj={sm:{compact:"p-3 pb-2",default:"p-4 pb-2",relaxed:"p-5 pb-3"},md:{compact:"p-4 pb-2",default:"p-5 pb-3",relaxed:"p-6 pb-3"},lg:{compact:"p-5 pb-3",default:"p-6 pb-3",relaxed:"p-8 pb-4"},xl:{compact:"p-6 pb-3",default:"p-8 pb-4",relaxed:"p-10 pb-5"}},Kj={sm:{compact:"px-3 pb-3",default:"px-4 pb-4",relaxed:"px-5 pb-5"},md:{compact:"px-4 pb-4",default:"px-5 pb-5",relaxed:"px-6 pb-6"},lg:{compact:"px-5 pb-5",default:"px-6 pb-6",relaxed:"px-8 pb-8"},xl:{compact:"px-6 pb-6",default:"px-8 pb-8",relaxed:"px-10 pb-10"}},Yj={sm:{compact:"p-3 pt-2",default:"p-4 pt-2",relaxed:"p-5 pt-3"},md:{compact:"p-4 pt-2",default:"p-5 pt-3",relaxed:"p-6 pt-3"},lg:{compact:"p-5 pt-3",default:"p-6 pt-3",relaxed:"p-8 pt-4"},xl:{compact:"p-6 pt-3",default:"p-8 pt-4",relaxed:"p-10 pt-5"}},Xj={sm:"text-base",md:"text-lg",lg:"text-xl",xl:"text-2xl"},Zj={sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Qj={sm:{compact:"space-y-0.5",default:"space-y-1",relaxed:"space-y-1.5"},md:{compact:"space-y-1",default:"space-y-1.5",relaxed:"space-y-2"},lg:{compact:"space-y-1.5",default:"space-y-2",relaxed:"space-y-2.5"},xl:{compact:"space-y-2",default:"space-y-2.5",relaxed:"space-y-3"}},$w=d.createContext({size:"md",density:"default"}),Fo=()=>d.useContext($w),Lw=d.forwardRef(({className:e,variant:t,size:n="md",density:r="default",color:o="primary",style:a,...i},s)=>p.jsx($w.Provider,{value:{size:n,density:r},children:p.jsx("div",{ref:s,"data-slot":"card",className:N(Gj({variant:t,size:n,density:r,className:e})),style:{...Vj[o],...a},...i})}));Lw.displayName="Card";const Fw=d.forwardRef(({className:e,...t},n)=>{const{size:r,density:o}=Fo();return p.jsx("div",{ref:n,"data-slot":"card-header",className:N("flex flex-col",Qj[r][o],Uj[r][o],e),...t})});Fw.displayName="CardHeader";const Bw=d.forwardRef(({className:e,...t},n)=>{const{size:r}=Fo();return p.jsx("div",{ref:n,"data-slot":"card-title",className:N("font-semibold leading-none tracking-tight",Xj[r],e),...t})});Bw.displayName="CardTitle";const zw=d.forwardRef(({className:e,...t},n)=>{const{size:r}=Fo();return p.jsx("div",{ref:n,"data-slot":"card-description",className:N("text-foreground/60",Zj[r],e),...t})});zw.displayName="CardDescription";const qw=d.forwardRef(({className:e,...t},n)=>{const{size:r,density:o}=Fo();return p.jsx("div",{ref:n,"data-slot":"card-content",className:N(Kj[r][o],e),...t})});qw.displayName="CardContent";const Ww=d.forwardRef(({className:e,...t},n)=>{const{size:r,density:o}=Fo();return p.jsx("div",{ref:n,"data-slot":"card-footer",className:N("flex items-center",Yj[r][o],e),...t})});Ww.displayName="CardFooter";function Jj(e){return Object.prototype.toString.call(e)==="[object Object]"}function qm(e){return Jj(e)||Array.isArray(e)}function e$(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function cf(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!qm(s)||!qm(l)?s===l:cf(s,l)})}function Wm(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function t$(e,t){if(e.length!==t.length)return!1;const n=Wm(e),r=Wm(t);return n.every((o,a)=>{const i=r[a];return cf(o,i)})}function uf(e){return typeof e=="number"}function Xu(e){return typeof e=="string"}function wi(e){return typeof e=="boolean"}function Hm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Be(e){return Math.abs(e)}function df(e){return Math.sign(e)}function uo(e,t){return Be(e-t)}function n$(e,t){if(e===0||t===0||Be(e)<=Be(t))return 0;const n=uo(Be(e),Be(t));return Be(n/e)}function r$(e){return Math.round(e*100)/100}function mo(e){return ho(e).map(Number)}function Mt(e){return e[Bo(e)]}function Bo(e){return Math.max(0,e.length-1)}function ff(e,t){return t===Bo(e)}function Gm(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function ho(e){return Object.keys(e)}function Hw(e,t){return[e,t].reduce((n,r)=>(ho(r).forEach(o=>{const a=n[o],i=r[o],s=Hm(a)&&Hm(i);n[o]=s?Hw(a,i):i}),n),{})}function Zu(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function o$(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,u){return Xu(e)?n[e](l):e(t,l,u)}return{measure:i}}function go(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const u=o;u.addListener(i),l=()=>u.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function a$(e,t,n,r){const o=go(),a=1e3/60;let i=null,s=0,l=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&v()})}function f(){h(),o.clear()}function c(b){if(!l)return;i||(i=b,n(),n());const y=b-i;for(i=b,s+=y;s>=a;)n(),s-=a;const x=s/a;r(x),l&&(l=t.requestAnimationFrame(c))}function m(){l||(l=t.requestAnimationFrame(c))}function h(){t.cancelAnimationFrame(l),i=null,s=0,l=0}function v(){i=null,s=0}return{init:u,destroy:f,start:m,stop:h,update:n,render:r}}function i$(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",i=!r&&n?-1:1,s=f(),l=c();function u(v){const{height:g,width:b}=v;return r?g:b}function f(){return r?"top":n?"right":"left"}function c(){return r?"bottom":n?"left":"right"}function m(v){return v*i}return{scroll:o,cross:a,startEdge:s,endEdge:l,measureSize:u,direction:m}}function Gn(e=0,t=0){const n=Be(e-t);function r(u){return u<e}function o(u){return u>t}function a(u){return r(u)||o(u)}function i(u){return a(u)?r(u)?e:t:u}function s(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function Gw(e,t,n){const{constrain:r}=Gn(0,e),o=e+1;let a=i(t);function i(m){return n?Be((o+m)%o):r(m)}function s(){return a}function l(m){return a=i(m),c}function u(m){return f().set(s()+m)}function f(){return Gw(e,s(),n)}const c={get:s,set:l,add:u,clone:f};return c}function s$(e,t,n,r,o,a,i,s,l,u,f,c,m,h,v,g,b,y,x){const{cross:S,direction:C}=e,E=["INPUT","SELECT","TEXTAREA"],R={passive:!1},_=go(),P=go(),M=Gn(50,225).constrain(h.measure(20)),k={mouse:300,touch:400},T={mouse:500,touch:600},j=v?43:25;let O=!1,F=0,H=0,$=!1,K=!1,V=!1,q=!1;function ee(Y){if(!x)return;function ie(oe){(wi(x)||x(Y,oe))&&U(oe)}const A=t;_.add(A,"dragstart",oe=>oe.preventDefault(),R).add(A,"touchmove",()=>{},R).add(A,"touchend",()=>{}).add(A,"touchstart",ie).add(A,"mousedown",ie).add(A,"touchcancel",W).add(A,"contextmenu",W).add(A,"click",Q,!0)}function J(){_.clear(),P.clear()}function B(){const Y=q?n:t;P.add(Y,"touchmove",I,R).add(Y,"touchend",W).add(Y,"mousemove",I,R).add(Y,"mouseup",W)}function D(Y){const ie=Y.nodeName||"";return E.includes(ie)}function z(){return(v?T:k)[q?"mouse":"touch"]}function L(Y,ie){const A=c.add(df(Y)*-1),oe=f.byDistance(Y,!v).distance;return v||Be(Y)<M?oe:b&&ie?oe*.5:f.byIndex(A.get(),0).distance}function U(Y){const ie=Zu(Y,r);q=ie,V=v&&ie&&!Y.buttons&&O,O=uo(o.get(),i.get())>=2,!(ie&&Y.button!==0)&&(D(Y.target)||($=!0,a.pointerDown(Y),u.useFriction(0).useDuration(0),o.set(i),B(),F=a.readPoint(Y),H=a.readPoint(Y,S),m.emit("pointerDown")))}function I(Y){if(!Zu(Y,r)&&Y.touches.length>=2)return W(Y);const A=a.readPoint(Y),oe=a.readPoint(Y,S),fe=uo(A,F),pe=uo(oe,H);if(!K&&!q&&(!Y.cancelable||(K=fe>pe,!K)))return W(Y);const me=a.pointerMove(Y);fe>g&&(V=!0),u.useFriction(.3).useDuration(.75),s.start(),o.add(C(me)),Y.preventDefault()}function W(Y){const A=f.byDistance(0,!1).index!==c.get(),oe=a.pointerUp(Y)*z(),fe=L(C(oe),A),pe=n$(oe,fe),me=j-10*pe,de=y+pe/50;K=!1,$=!1,P.clear(),u.useDuration(me).useFriction(de),l.distance(fe,!v),q=!1,m.emit("pointerUp")}function Q(Y){V&&(Y.stopPropagation(),Y.preventDefault(),V=!1)}function te(){return $}return{init:ee,destroy:J,pointerDown:te}}function l$(e,t){let r,o;function a(c){return c.timeStamp}function i(c,m){const v=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Zu(c,t)?c:c.touches[0])[v]}function s(c){return r=c,o=c,i(c)}function l(c){const m=i(c)-i(o),h=a(c)-a(r)>170;return o=c,h&&(r=c),m}function u(c){if(!r||!o)return 0;const m=i(o)-i(r),h=a(c)-a(r),v=a(c)-a(o)>170,g=m/h;return h&&!v&&Be(g)>.1?g:0}return{pointerDown:s,pointerMove:l,pointerUp:u,readPoint:i}}function c$(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function u$(e){function t(r){return e*(r/100)}return{measure:t}}function d$(e,t,n,r,o,a,i){const s=[e].concat(r);let l,u,f=[],c=!1;function m(b){return o.measureSize(i.measure(b))}function h(b){if(!a)return;u=m(e),f=r.map(m);function y(x){for(const S of x){if(c)return;const C=S.target===e,E=r.indexOf(S.target),R=C?u:f[E],_=m(C?e:r[E]);if(Be(_-R)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(x=>{(wi(a)||a(b,x))&&y(x)}),n.requestAnimationFrame(()=>{s.forEach(x=>l.observe(x))})}function v(){c=!0,l&&l.disconnect()}return{init:h,destroy:v}}function f$(e,t,n,r,o,a){let i=0,s=0,l=o,u=a,f=e.get(),c=0;function m(){const R=r.get()-e.get(),_=!l;let P=0;return _?(i=0,n.set(r),e.set(r),P=R):(n.set(e),i+=R/l,i*=u,f+=i,e.add(i),P=f-c),s=df(P),c=f,E}function h(){const R=r.get()-t.get();return Be(R)<.001}function v(){return l}function g(){return s}function b(){return i}function y(){return S(o)}function x(){return C(a)}function S(R){return l=R,E}function C(R){return u=R,E}const E={direction:g,duration:v,velocity:b,seek:m,settled:h,useBaseFriction:x,useBaseDuration:y,useFriction:C,useDuration:S};return E}function p$(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=Gn(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(h){if(!u())return;const v=e.reachedMin(t.get())?"min":"max",g=Be(e[v]-t.get()),b=n.get()-t.get(),y=s.constrain(g/i);n.subtract(b*y),!h&&Be(b)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function c(h){l=!h}return{shouldConstrain:u,constrain:f,toggleActive:c}}function m$(e,t,n,r,o){const a=Gn(-t+e,0),i=c(),s=f(),l=m();function u(v,g){return uo(v,g)<=1}function f(){const v=i[0],g=Mt(i),b=i.lastIndexOf(v),y=i.indexOf(g)+1;return Gn(b,y)}function c(){return n.map((v,g)=>{const{min:b,max:y}=a,x=a.constrain(v),S=!g,C=ff(n,g);return S?y:C||u(b,x)?b:u(y,x)?y:x}).map(v=>parseFloat(v.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return i;const{min:v,max:g}=s;return i.slice(v,g)}return{snapsContained:l,scrollContainLimit:s}}function h$(e,t,n){const r=t[0],o=n?r-e:Mt(t);return{limit:Gn(o,r)}}function g$(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=Gn(a,i);function u(m){return m===1?l(n.get()):m===-1?s(n.get()):!1}function f(m){if(!u(m))return;const h=e*(m*-1);r.forEach(v=>v.add(h))}return{loop:f}}function v$(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function b$(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=c().map(t.measure),u=m(),f=h();function c(){return s(r).map(g=>Mt(g)[i]-g[0][a]).map(Be)}function m(){return r.map(g=>n[a]-g[a]).map(g=>-Be(g))}function h(){return s(u).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:u,snapsAligned:f}}function y$(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:l}=r,u=f();function f(){const m=i(a),h=!e||t==="keepSnaps";return n.length===1?[a]:h?m:m.slice(s,l).map((v,g,b)=>{const y=!g,x=ff(b,g);if(y){const S=Mt(b[0])+1;return Gm(S)}if(x){const S=Bo(a)-Mt(b)[0]+1;return Gm(S,Mt(b)[0])}return v})}return{slideRegistry:u}}function x$(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(v){return v.concat().sort((g,b)=>Be(g)-Be(b))[0]}function u(v){const g=e?i(v):s(v),b=t.map((x,S)=>({diff:f(x-g,0),index:S})).sort((x,S)=>Be(x.diff)-Be(S.diff)),{index:y}=b[0];return{index:y,distance:g}}function f(v,g){const b=[v,v+n,v-n];if(!e)return v;if(!g)return l(b);const y=b.filter(x=>df(x)===g);return y.length?l(y):Mt(b)-n}function c(v,g){const b=t[v]-o.get(),y=f(b,g);return{index:v,distance:y}}function m(v,g){const b=o.get()+v,{index:y,distance:x}=u(b),S=!e&&a(b);if(!g||S)return{index:y,distance:v};const C=t[y]-x,E=v+f(C,0);return{index:y,distance:E}}return{byDistance:m,byIndex:c,shortcut:f}}function w$(e,t,n,r,o,a,i){function s(c){const m=c.distance,h=c.index!==t.get();a.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(n.set(t.get()),t.set(c.index),i.emit("select"))}function l(c,m){const h=o.byDistance(c,m);s(h)}function u(c,m){const h=t.clone().set(c),v=o.byIndex(h.get(),m);s(v)}return{distance:l,index:u}}function S$(e,t,n,r,o,a,i,s){const l={passive:!0,capture:!0};let u=0;function f(h){if(!s)return;function v(g){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(S=>S.includes(g));uf(x)&&(o.useDuration(0),r.index(x,0),i.emit("slideFocus"))}a.add(document,"keydown",c,!1),t.forEach((g,b)=>{a.add(g,"focus",y=>{(wi(s)||s(h,y))&&v(b)},l)})}function c(h){h.code==="Tab"&&(u=new Date().getTime())}return{init:f}}function no(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return uf(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function Vw(e,t){const n=e.scroll==="x"?i:s,r=t.style;let o=null,a=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function s(m){return`translate3d(0px,${m}px,0px)`}function l(m){if(a)return;const h=r$(e.direction(m));h!==o&&(r.transform=n(h),o=h)}function u(m){a=!m}function f(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:f,to:l,toggleActive:u}}function C$(e,t,n,r,o,a,i,s,l){const f=mo(o),c=mo(o).reverse(),m=y().concat(x());function h(_,P){return _.reduce((M,k)=>M-o[k],P)}function v(_,P){return _.reduce((M,k)=>h(M,P)>0?M.concat([k]):M,[])}function g(_){return a.map((P,M)=>({start:P-r[M]+.5+_,end:P+t-.5+_}))}function b(_,P,M){const k=g(P);return _.map(T=>{const j=M?0:-n,O=M?n:0,F=M?"end":"start",H=k[T][F];return{index:T,loopPoint:H,slideLocation:no(-1),translate:Vw(e,l[T]),target:()=>s.get()>H?j:O}})}function y(){const _=i[0],P=v(c,_);return b(P,n,!1)}function x(){const _=t-i[0]-1,P=v(f,_);return b(P,-n,!0)}function S(){return m.every(({index:_})=>{const P=f.filter(M=>M!==_);return h(P,t)<=.1})}function C(){m.forEach(_=>{const{target:P,translate:M,slideLocation:k}=_,T=P();T!==k.get()&&(M.to(T),k.set(T))})}function E(){m.forEach(_=>_.translate.clear())}return{canLoop:S,clear:E,loop:C,loopPoints:m}}function _$(e,t,n){let r,o=!1;function a(l){if(!n)return;function u(f){for(const c of f)if(c.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(wi(n)||n(l,f))&&u(f)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function E$(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function u(){s=new IntersectionObserver(v=>{l||(v.forEach(g=>{const b=t.indexOf(g.target);o[b]=g}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(v=>s.observe(v))}function f(){s&&s.disconnect(),l=!0}function c(v){return ho(o).reduce((g,b)=>{const y=parseInt(b),{isIntersecting:x}=o[y];return(v&&x||!v&&!x)&&g.push(y),g},[])}function m(v=!0){if(v&&a)return a;if(!v&&i)return i;const g=c(v);return v&&(a=g),v||(i=g),g}return{init:u,destroy:f,get:m}}function R$(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,u=n[0]&&o,f=v(),c=g(),m=n.map(i),h=b();function v(){if(!u)return 0;const x=n[0];return Be(t[s]-x[s])}function g(){if(!u)return 0;const x=a.getComputedStyle(Mt(r));return parseFloat(x.getPropertyValue(`margin-${l}`))}function b(){return n.map((x,S,C)=>{const E=!S,R=ff(C,S);return E?m[S]+f:R?m[S]+c:C[S+1][s]-x[s]}).map(Be)}return{slideSizes:m,slideSizesWithGaps:h,startGap:f,endGap:c}}function N$(e,t,n,r,o,a,i,s,l){const{startEdge:u,endEdge:f,direction:c}=e,m=uf(n);function h(y,x){return mo(y).filter(S=>S%x===0).map(S=>y.slice(S,S+x))}function v(y){return y.length?mo(y).reduce((x,S,C)=>{const E=Mt(x)||0,R=E===0,_=S===Bo(y),P=o[u]-a[E][u],M=o[u]-a[S][f],k=!r&&R?c(i):0,T=!r&&_?c(s):0,j=Be(M-T-(P+k));return C&&j>t+l&&x.push(S),_&&x.push(y.length),x},[]).map((x,S,C)=>{const E=Math.max(C[S-1]||0);return y.slice(E,x)}):[]}function g(y){return m?h(y,n):v(y)}return{groupSlides:g}}function P$(e,t,n,r,o,a,i){const{align:s,axis:l,direction:u,startIndex:f,loop:c,duration:m,dragFree:h,dragThreshold:v,inViewThreshold:g,slidesToScroll:b,skipSnaps:y,containScroll:x,watchResize:S,watchSlides:C,watchDrag:E,watchFocus:R}=a,_=2,P=c$(),M=P.measure(t),k=n.map(P.measure),T=i$(l,u),j=T.measureSize(M),O=u$(j),F=o$(s,j),H=!c&&!!x,$=c||!!x,{slideSizes:K,slideSizesWithGaps:V,startGap:q,endGap:ee}=R$(T,M,k,n,$,o),J=N$(T,j,b,c,M,k,q,ee,_),{snaps:B,snapsAligned:D}=b$(T,F,M,k,J),z=-Mt(B)+Mt(V),{snapsContained:L,scrollContainLimit:U}=m$(j,z,D,x,_),I=H?L:D,{limit:W}=h$(z,I,c),Q=Gw(Bo(I),f,c),te=Q.clone(),re=mo(n),Y=({dragHandler:He,scrollBody:vt,scrollBounds:Ge,options:{loop:Xe}})=>{Xe||Ge.constrain(He.pointerDown()),vt.seek()},ie=({scrollBody:He,translate:vt,location:Ge,offsetLocation:Xe,previousLocation:_t,scrollLooper:Bt,slideLooper:hn,dragHandler:gn,animation:nn,eventHandler:X,scrollBounds:le,options:{loop:ae}},se)=>{const be=He.settled(),Z=!le.shouldConstrain(),ve=ae?be:be&&Z,we=ve&&!gn.pointerDown();we&&nn.stop();const Re=Ge.get()*se+_t.get()*(1-se);Xe.set(Re),ae&&(Bt.loop(He.direction()),hn.loop()),vt.to(Xe.get()),we&&X.emit("settle"),ve||X.emit("scroll")},A=a$(r,o,()=>Y(st),He=>ie(st,He)),oe=.68,fe=I[Q.get()],pe=no(fe),me=no(fe),de=no(fe),xe=no(fe),je=f$(pe,de,me,xe,m,oe),ye=x$(c,I,z,W,xe),Ee=w$(A,Q,te,je,ye,xe,i),qe=v$(W),We=go(),Ye=E$(t,n,i,g),{slideRegistry:Je}=y$(H,x,I,U,J,re),it=S$(e,n,Je,Ee,je,We,i,R),st={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:M,slideRects:k,animation:A,axis:T,dragHandler:s$(T,e,r,o,xe,l$(T,o),pe,A,Ee,je,ye,Q,i,O,h,v,y,oe,E),eventStore:We,percentOfView:O,index:Q,indexPrevious:te,limit:W,location:pe,offsetLocation:de,previousLocation:me,options:a,resizeHandler:d$(t,i,o,n,T,S,P),scrollBody:je,scrollBounds:p$(W,de,xe,je,O),scrollLooper:g$(z,W,de,[pe,de,me,xe]),scrollProgress:qe,scrollSnapList:I.map(qe.get),scrollSnaps:I,scrollTarget:ye,scrollTo:Ee,slideLooper:C$(T,j,z,K,V,B,I,de,n),slideFocus:it,slidesHandler:_$(t,i,C),slidesInView:Ye,slideIndexes:re,slideRegistry:Je,slidesToScroll:J,target:xe,translate:Vw(T,t)};return st}function M$(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(f=>f(t,u)),l}function a(u,f){return e[u]=r(u).concat([f]),l}function i(u,f){return e[u]=r(u).filter(c=>c!==f),l}function s(){e={}}const l={init:n,emit:o,off:i,on:a,clear:s};return l}const T$={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function O$(e){function t(a,i){return Hw(a,i||{})}function n(a){const i=a.breakpoints||{},s=ho(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,u)=>t(l,u),{});return t(a,s)}function r(a){return a.map(i=>ho(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function A$(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function ja(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=O$(o),i=A$(a),s=go(),l=M$(),{mergeOptions:u,optionsAtMedia:f,optionsMediaQueries:c}=a,{on:m,off:h,emit:v}=l,g=T;let b=!1,y,x=u(T$,ja.globalOptions),S=u(x),C=[],E,R,_;function P(){const{container:re,slides:Y}=S;R=(Xu(re)?e.querySelector(re):re)||e.children[0];const A=Xu(Y)?R.querySelectorAll(Y):Y;_=[].slice.call(A||R.children)}function M(re){const Y=P$(e,R,_,r,o,re,l);if(re.loop&&!Y.slideLooper.canLoop()){const ie=Object.assign({},re,{loop:!1});return M(ie)}return Y}function k(re,Y){b||(x=u(x,re),S=f(x),C=Y||C,P(),y=M(S),c([x,...C.map(({options:ie})=>ie)]).forEach(ie=>s.add(ie,"change",T)),S.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(te),y.eventHandler.init(te),y.resizeHandler.init(te),y.slidesHandler.init(te),y.options.loop&&y.slideLooper.loop(),R.offsetParent&&_.length&&y.dragHandler.init(te),E=i.init(te,C)))}function T(re,Y){const ie=J();j(),k(u({startIndex:ie},re),Y),l.emit("reInit")}function j(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function O(){b||(b=!0,s.clear(),j(),l.emit("destroy"),l.clear())}function F(re,Y,ie){!S.active||b||(y.scrollBody.useBaseFriction().useDuration(Y===!0?0:S.duration),y.scrollTo.index(re,ie||0))}function H(re){const Y=y.index.add(1).get();F(Y,re,-1)}function $(re){const Y=y.index.add(-1).get();F(Y,re,1)}function K(){return y.index.add(1).get()!==J()}function V(){return y.index.add(-1).get()!==J()}function q(){return y.scrollSnapList}function ee(){return y.scrollProgress.get(y.offsetLocation.get())}function J(){return y.index.get()}function B(){return y.indexPrevious.get()}function D(){return y.slidesInView.get()}function z(){return y.slidesInView.get(!1)}function L(){return E}function U(){return y}function I(){return e}function W(){return R}function Q(){return _}const te={canScrollNext:K,canScrollPrev:V,containerNode:W,internalEngine:U,destroy:O,off:h,on:m,emit:v,plugins:L,previousScrollSnap:B,reInit:g,rootNode:I,scrollNext:H,scrollPrev:$,scrollProgress:ee,scrollSnapList:q,scrollTo:F,selectedScrollSnap:J,slideNodes:Q,slidesInView:D,slidesNotInView:z};return k(t,n),setTimeout(()=>l.emit("init"),0),te}ja.globalOptions=void 0;function pf(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[o,a]=w.useState(),[i,s]=w.useState(),l=w.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return w.useEffect(()=>{cf(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{t$(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(e$()&&i){ja.globalOptions=pf.globalOptions;const u=ja(i,n.current,r.current);return a(u),()=>u.destroy()}else a(void 0)},[i,a]),[s,o]}pf.globalOptions=void 0;const Uw=d.createContext(null);function Si(){const e=d.useContext(Uw);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Kw=d.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},s)=>{const[l,u]=pf({...t,axis:e==="horizontal"?"x":"y"},r),[f,c]=d.useState(!1),[m,h]=d.useState(!1),v=d.useCallback(x=>{x&&(c(x.canScrollPrev()),h(x.canScrollNext()))},[]),g=d.useCallback(()=>{u?.scrollPrev()},[u]),b=d.useCallback(()=>{u?.scrollNext()},[u]),y=d.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),g()):x.key==="ArrowRight"&&(x.preventDefault(),b())},[g,b]);return d.useEffect(()=>{!u||!n||n(u)},[u,n]),d.useEffect(()=>{if(u)return v(u),u.on("reInit",v),u.on("select",v),()=>{u?.off("select",v)}},[u,v]),p.jsx(Uw.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:f,canScrollNext:m},children:p.jsx("div",{ref:s,onKeyDownCapture:y,className:N("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})});Kw.displayName="Carousel";const Yw=d.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Si();return p.jsx("div",{ref:r,className:"overflow-hidden",children:p.jsx("div",{ref:n,className:N("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Yw.displayName="CarouselContent";const Xw=d.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Si();return p.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:N("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Xw.displayName="CarouselItem";const Zw=d.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollPrev:i,canScrollPrev:s}=Si();return p.jsxs(Mn,{ref:o,variant:t,size:n,className:N("absolute h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...r,children:[p.jsx(BT,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Zw.displayName="CarouselPrevious";const Qw=d.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollNext:i,canScrollNext:s}=Si();return p.jsxs(Mn,{ref:o,variant:t,size:n,className:N("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...r,children:[p.jsx(qT,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Next slide"})]})});Qw.displayName="CarouselNext";var _s,Vm;function $t(){if(Vm)return _s;Vm=1;var e=Array.isArray;return _s=e,_s}var Es,Um;function Jw(){if(Um)return Es;Um=1;var e=typeof fa=="object"&&fa&&fa.Object===Object&&fa;return Es=e,Es}var Rs,Km;function Zt(){if(Km)return Rs;Km=1;var e=Jw(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Rs=n,Rs}var Ns,Ym;function zo(){if(Ym)return Ns;Ym=1;var e=Zt(),t=e.Symbol;return Ns=t,Ns}var Ps,Xm;function D$(){if(Xm)return Ps;Xm=1;var e=zo(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=n.call(i,o),l=i[o];try{i[o]=void 0;var u=!0}catch{}var f=r.call(i);return u&&(s?i[o]=l:delete i[o]),f}return Ps=a,Ps}var Ms,Zm;function I$(){if(Zm)return Ms;Zm=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Ms=n,Ms}var Ts,Qm;function tr(){if(Qm)return Ts;Qm=1;var e=zo(),t=D$(),n=I$(),r="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:r:a&&a in Object(s)?t(s):n(s)}return Ts=i,Ts}var Os,Jm;function nr(){if(Jm)return Os;Jm=1;function e(t){return t!=null&&typeof t=="object"}return Os=e,Os}var As,eh;function qo(){if(eh)return As;eh=1;var e=tr(),t=nr(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return As=r,As}var Ds,th;function mf(){if(th)return Ds;th=1;var e=$t(),t=qo(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||i!=null&&a in Object(i)}return Ds=o,Ds}var Is,nh;function Tn(){if(nh)return Is;nh=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Is=e,Is}var ks,rh;function hf(){if(rh)return ks;rh=1;var e=tr(),t=Tn(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var l=e(s);return l==r||l==o||l==n||l==a}return ks=i,ks}var js,oh;function k$(){if(oh)return js;oh=1;var e=Zt(),t=e["__core-js_shared__"];return js=t,js}var $s,ah;function j$(){if(ah)return $s;ah=1;var e=k$(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return $s=n,$s}var Ls,ih;function e0(){if(ih)return Ls;ih=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Ls=n,Ls}var Fs,sh;function $$(){if(sh)return Fs;sh=1;var e=hf(),t=j$(),n=Tn(),r=e0(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,l=i.toString,u=s.hasOwnProperty,f=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(m){if(!n(m)||t(m))return!1;var h=e(m)?f:a;return h.test(r(m))}return Fs=c,Fs}var Bs,lh;function L$(){if(lh)return Bs;lh=1;function e(t,n){return t?.[n]}return Bs=e,Bs}var zs,ch;function rr(){if(ch)return zs;ch=1;var e=$$(),t=L$();function n(r,o){var a=t(r,o);return e(a)?a:void 0}return zs=n,zs}var qs,uh;function Ci(){if(uh)return qs;uh=1;var e=rr(),t=e(Object,"create");return qs=t,qs}var Ws,dh;function F$(){if(dh)return Ws;dh=1;var e=Ci();function t(){this.__data__=e?e(null):{},this.size=0}return Ws=t,Ws}var Hs,fh;function B$(){if(fh)return Hs;fh=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Hs=e,Hs}var Gs,ph;function z$(){if(ph)return Gs;ph=1;var e=Ci(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return r.call(i,a)?i[a]:void 0}return Gs=o,Gs}var Vs,mh;function q$(){if(mh)return Vs;mh=1;var e=Ci(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var a=this.__data__;return e?a[o]!==void 0:n.call(a,o)}return Vs=r,Vs}var Us,hh;function W$(){if(hh)return Us;hh=1;var e=Ci(),t="__lodash_hash_undefined__";function n(r,o){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&o===void 0?t:o,this}return Us=n,Us}var Ks,gh;function H$(){if(gh)return Ks;gh=1;var e=F$(),t=B$(),n=z$(),r=q$(),o=W$();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var u=i[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Ks=a,Ks}var Ys,vh;function G$(){if(vh)return Ys;vh=1;function e(){this.__data__=[],this.size=0}return Ys=e,Ys}var Xs,bh;function gf(){if(bh)return Xs;bh=1;function e(t,n){return t===n||t!==t&&n!==n}return Xs=e,Xs}var Zs,yh;function _i(){if(yh)return Zs;yh=1;var e=gf();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return Zs=t,Zs}var Qs,xh;function V$(){if(xh)return Qs;xh=1;var e=_i(),t=Array.prototype,n=t.splice;function r(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():n.call(a,i,1),--this.size,!0}return Qs=r,Qs}var Js,wh;function U$(){if(wh)return Js;wh=1;var e=_i();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return Js=t,Js}var el,Sh;function K$(){if(Sh)return el;Sh=1;var e=_i();function t(n){return e(this.__data__,n)>-1}return el=t,el}var tl,Ch;function Y$(){if(Ch)return tl;Ch=1;var e=_i();function t(n,r){var o=this.__data__,a=e(o,n);return a<0?(++this.size,o.push([n,r])):o[a][1]=r,this}return tl=t,tl}var nl,_h;function Ei(){if(_h)return nl;_h=1;var e=G$(),t=V$(),n=U$(),r=K$(),o=Y$();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var u=i[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,nl=a,nl}var rl,Eh;function vf(){if(Eh)return rl;Eh=1;var e=rr(),t=Zt(),n=e(t,"Map");return rl=n,rl}var ol,Rh;function X$(){if(Rh)return ol;Rh=1;var e=H$(),t=Ei(),n=vf();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ol=r,ol}var al,Nh;function Z$(){if(Nh)return al;Nh=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return al=e,al}var il,Ph;function Ri(){if(Ph)return il;Ph=1;var e=Z$();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return il=t,il}var sl,Mh;function Q$(){if(Mh)return sl;Mh=1;var e=Ri();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return sl=t,sl}var ll,Th;function J$(){if(Th)return ll;Th=1;var e=Ri();function t(n){return e(this,n).get(n)}return ll=t,ll}var cl,Oh;function eL(){if(Oh)return cl;Oh=1;var e=Ri();function t(n){return e(this,n).has(n)}return cl=t,cl}var ul,Ah;function tL(){if(Ah)return ul;Ah=1;var e=Ri();function t(n,r){var o=e(this,n),a=o.size;return o.set(n,r),this.size+=o.size==a?0:1,this}return ul=t,ul}var dl,Dh;function bf(){if(Dh)return dl;Dh=1;var e=X$(),t=Q$(),n=J$(),r=eL(),o=tL();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var u=i[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,dl=a,dl}var fl,Ih;function nL(){if(Ih)return fl;Ih=1;var e=bf(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],l=a.cache;if(l.has(s))return l.get(s);var u=r.apply(this,i);return a.cache=l.set(s,u)||l,u};return a.cache=new(n.Cache||e),a}return n.Cache=e,fl=n,fl}var pl,kh;function rL(){if(kh)return pl;kh=1;var e=nL(),t=500;function n(r){var o=e(r,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return pl=n,pl}var ml,jh;function oL(){if(jh)return ml;jh=1;var e=rL(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,l,u){a.push(l?u.replace(n,"$1"):s||i)}),a});return ml=r,ml}var hl,$h;function t0(){if($h)return hl;$h=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return hl=e,hl}var gl,Lh;function aL(){if(Lh)return gl;Lh=1;var e=zo(),t=t0(),n=$t(),r=qo(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(n(s))return t(s,i)+"";if(r(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return gl=i,gl}var vl,Fh;function n0(){if(Fh)return vl;Fh=1;var e=aL();function t(n){return n==null?"":e(n)}return vl=t,vl}var bl,Bh;function r0(){if(Bh)return bl;Bh=1;var e=$t(),t=mf(),n=oL(),r=n0();function o(a,i){return e(a)?a:t(a,i)?[a]:n(r(a))}return bl=o,bl}var yl,zh;function Ni(){if(zh)return yl;zh=1;var e=qo();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return yl=t,yl}var xl,qh;function yf(){if(qh)return xl;qh=1;var e=r0(),t=Ni();function n(r,o){o=e(o,r);for(var a=0,i=o.length;r!=null&&a<i;)r=r[t(o[a++])];return a&&a==i?r:void 0}return xl=n,xl}var wl,Wh;function o0(){if(Wh)return wl;Wh=1;var e=yf();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return wl=t,wl}o0();var Sl,Hh;function iL(){if(Hh)return Sl;Hh=1;function e(t){return t==null}return Sl=e,Sl}var sL=iL();const lL=Yt(sL);var Cl,Gh;function cL(){if(Gh)return Cl;Gh=1;var e=tr(),t=$t(),n=nr(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return Cl=o,Cl}var uL=cL();const a0=Yt(uL);var dL=hf();const $a=Yt(dL);var fL=Tn();const i0=Yt(fL);var ma={exports:{}},Ce={};var Vh;function pL(){if(Vh)return Ce;Vh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function g(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case e:switch(b=b.type,b){case n:case o:case r:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case s:case i:case l:case m:case c:case a:return b;default:return y}}case t:return y}}}return Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=l,Ce.Fragment=n,Ce.Lazy=m,Ce.Memo=c,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=r,Ce.Suspense=u,Ce.SuspenseList=f,Ce.isAsyncMode=function(){return!1},Ce.isConcurrentMode=function(){return!1},Ce.isContextConsumer=function(b){return g(b)===i},Ce.isContextProvider=function(b){return g(b)===a},Ce.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ce.isForwardRef=function(b){return g(b)===l},Ce.isFragment=function(b){return g(b)===n},Ce.isLazy=function(b){return g(b)===m},Ce.isMemo=function(b){return g(b)===c},Ce.isPortal=function(b){return g(b)===t},Ce.isProfiler=function(b){return g(b)===o},Ce.isStrictMode=function(b){return g(b)===r},Ce.isSuspense=function(b){return g(b)===u},Ce.isSuspenseList=function(b){return g(b)===f},Ce.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===u||b===f||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===c||b.$$typeof===a||b.$$typeof===i||b.$$typeof===l||b.$$typeof===v||b.getModuleId!==void 0)},Ce.typeOf=g,Ce}var _e={};var Uh;function mL(){return Uh||(Uh=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,g=!1,b=!1,y=!1,x=!1,S;S=Symbol.for("react.module.reference");function C(A){return!!(typeof A=="string"||typeof A=="function"||A===n||A===o||x||A===r||A===u||A===f||y||A===h||v||g||b||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===c||A.$$typeof===a||A.$$typeof===i||A.$$typeof===l||A.$$typeof===S||A.getModuleId!==void 0))}function E(A){if(typeof A=="object"&&A!==null){var oe=A.$$typeof;switch(oe){case e:var fe=A.type;switch(fe){case n:case o:case r:case u:case f:return fe;default:var pe=fe&&fe.$$typeof;switch(pe){case s:case i:case l:case m:case c:case a:return pe;default:return oe}}case t:return oe}}}var R=i,_=a,P=e,M=l,k=n,T=m,j=c,O=t,F=o,H=r,$=u,K=f,V=!1,q=!1;function ee(A){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(A){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(A){return E(A)===i}function D(A){return E(A)===a}function z(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function L(A){return E(A)===l}function U(A){return E(A)===n}function I(A){return E(A)===m}function W(A){return E(A)===c}function Q(A){return E(A)===t}function te(A){return E(A)===o}function re(A){return E(A)===r}function Y(A){return E(A)===u}function ie(A){return E(A)===f}_e.ContextConsumer=R,_e.ContextProvider=_,_e.Element=P,_e.ForwardRef=M,_e.Fragment=k,_e.Lazy=T,_e.Memo=j,_e.Portal=O,_e.Profiler=F,_e.StrictMode=H,_e.Suspense=$,_e.SuspenseList=K,_e.isAsyncMode=ee,_e.isConcurrentMode=J,_e.isContextConsumer=B,_e.isContextProvider=D,_e.isElement=z,_e.isForwardRef=L,_e.isFragment=U,_e.isLazy=I,_e.isMemo=W,_e.isPortal=Q,_e.isProfiler=te,_e.isStrictMode=re,_e.isSuspense=Y,_e.isSuspenseList=ie,_e.isValidElementType=C,_e.typeOf=E})()),_e}var Kh;function hL(){return Kh||(Kh=1,process.env.NODE_ENV==="production"?ma.exports=pL():ma.exports=mL()),ma.exports}hL();var _l,Yh;function s0(){if(Yh)return _l;Yh=1;var e=tr(),t=nr(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return _l=r,_l}var El,Xh;function gL(){if(Xh)return El;Xh=1;var e=s0();function t(n){return e(n)&&n!=+n}return El=t,El}var vL=gL();const bL=Yt(vL);var yL=s0();const xL=Yt(yL);var ha=function(t){return a0(t)&&t.indexOf("%")===t.length-1},Nt=function(t){return xL(t)&&!bL(t)},La=function(t){return Nt(t)||a0(t)};function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}var wL=["viewBox","children"],SL=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Zh=["points","pathLength"],Rl={svg:wL,polygon:Zh,polyline:Zh},l0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],CL=function(t,n,r){return function(o){return t(n,r,o),null}},_L=function(t,n,r){if(!i0(t)||Qu(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];l0.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=CL(i,n,r))}),o},EL=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},RL=function(t,n,r,o){var a,i=(a=Rl?.[o])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!$a(t)&&(o&&i.includes(n)||SL.includes(n))||l0.includes(n)},c0=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(w.isValidElement(t)&&(o=t.props),!i0(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;RL((s=o)===null||s===void 0?void 0:s[i],i,n,r)&&(a[i]=o[i])}),a},NL=["children","width","height","viewBox","className","style","title","desc"];function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ju.apply(this,arguments)}function PL(e,t){if(e==null)return{};var n=ML(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ML(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TL(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,l=e.desc,u=PL(e,NL),f=o||{width:n,height:r,x:0,y:0},c=dn("recharts-surface",a);return w.createElement("svg",Ju({},c0(u,!0,"svg"),{className:c,width:n,height:r,style:i,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),w.createElement("title",null,s),w.createElement("desc",null,l),t)}var OL=process.env.NODE_ENV!=="production",Na=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(OL&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(n.replace(/%s/g,function(){return o[i++]}))}},Nl,Qh;function AL(){if(Qh)return Nl;Qh=1;function e(t,n,r){var o=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+n];return i}return Nl=e,Nl}var Pl,Jh;function DL(){if(Jh)return Pl;Jh=1;var e=AL();function t(n,r,o){var a=n.length;return o=o===void 0?a:o,!r&&o>=a?n:e(n,r,o)}return Pl=t,Pl}var Ml,eg;function u0(){if(eg)return Ml;eg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function l(u){return s.test(u)}return Ml=l,Ml}var Tl,tg;function IL(){if(tg)return Tl;tg=1;function e(t){return t.split("")}return Tl=e,Tl}var Ol,ng;function kL(){if(ng)return Ol;ng=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",f="[^"+e+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",v=u+"?",g="["+a+"]?",b="(?:"+h+"(?:"+[f,c,m].join("|")+")"+g+v+")*",y=g+v+b,x="(?:"+[f+s+"?",s,c,m,i].join("|")+")",S=RegExp(l+"(?="+l+")|"+x+y,"g");function C(E){return E.match(S)||[]}return Ol=C,Ol}var Al,rg;function jL(){if(rg)return Al;rg=1;var e=IL(),t=u0(),n=kL();function r(o){return t(o)?n(o):e(o)}return Al=r,Al}var Dl,og;function $L(){if(og)return Dl;og=1;var e=DL(),t=u0(),n=jL(),r=n0();function o(a){return function(i){i=r(i);var s=t(i)?n(i):void 0,l=s?s[0]:i.charAt(0),u=s?e(s,1).join(""):i.slice(1);return l[a]()+u}}return Dl=o,Dl}var Il,ag;function LL(){if(ag)return Il;ag=1;var e=$L(),t=e("toUpperCase");return Il=t,Il}var FL=LL();const d0=Yt(FL);function ga(e){return function(){return e}}const f0=Math.cos,Fa=Math.sin,Lt=Math.sqrt,Ba=Math.PI,Pi=2*Ba,ed=Math.PI,td=2*ed,Bn=1e-6,BL=td-Bn;function p0(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return p0;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class qL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?p0:zL(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,l=r-t,u=o-n,f=i-t,c=s-n,m=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>Bn)if(!(Math.abs(c*l-u*f)>Bn)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-i,v=o-s,g=l*l+u*u,b=h*h+v*v,y=Math.sqrt(g),x=Math.sqrt(m),S=a*Math.tan((ed-Math.acos((g+m-b)/(2*y*x)))/2),C=S/x,E=S/y;Math.abs(C-1)>Bn&&this._append`L${t+C*f},${n+C*c}`,this._append`A${a},${a},0,0,${+(c*h>f*v)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,f=n+l,c=1^i,m=i?o-a:a-o;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Bn||Math.abs(this._y1-f)>Bn)&&this._append`L${u},${f}`,r&&(m<0&&(m=m%td+td),m>BL?this._append`A${r},${r},0,1,${c},${t-s},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:m>Bn&&this._append`A${r},${r},0,${+(m>=ed)},${c},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function WL(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new qL(t)}const xf={draw(e,t){const n=Lt(t/Ba);e.moveTo(n,0),e.arc(0,0,n,0,Pi)}},HL={draw(e,t){const n=Lt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},m0=Lt(1/3),GL=m0*2,VL={draw(e,t){const n=Lt(t/GL),r=n*m0;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},UL={draw(e,t){const n=Lt(t),r=-n/2;e.rect(r,r,n,n)}},KL=.8908130915292852,h0=Fa(Ba/10)/Fa(7*Ba/10),YL=Fa(Pi/10)*h0,XL=-f0(Pi/10)*h0,ZL={draw(e,t){const n=Lt(t*KL),r=YL*n,o=XL*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const i=Pi*a/5,s=f0(i),l=Fa(i);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},kl=Lt(3),QL={draw(e,t){const n=-Lt(t/(kl*3));e.moveTo(0,n*2),e.lineTo(-kl*n,-n),e.lineTo(kl*n,-n),e.closePath()}},bt=-.5,yt=Lt(3)/2,nd=1/Lt(12),JL=(nd/2+1)*3,e2={draw(e,t){const n=Lt(t/JL),r=n/2,o=n*nd,a=r,i=n*nd+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(bt*r-yt*o,yt*r+bt*o),e.lineTo(bt*a-yt*i,yt*a+bt*i),e.lineTo(bt*s-yt*l,yt*s+bt*l),e.lineTo(bt*r+yt*o,bt*o-yt*r),e.lineTo(bt*a+yt*i,bt*i-yt*a),e.lineTo(bt*s+yt*l,bt*l-yt*s),e.closePath()}};function t2(e,t){let n=null,r=WL(o);e=typeof e=="function"?e:ga(e||xf),t=typeof t=="function"?t:ga(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:ga(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:ga(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}var n2=["type","size","sizeType"];function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}function ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(n),!0).forEach(function(r){r2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ig(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r2(e,t,n){return t=o2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o2(e){var t=a2(e,"string");return vo(t)=="symbol"?t:t+""}function a2(e,t){if(vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i2(e,t){if(e==null)return{};var n=s2(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s2(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var g0={symbolCircle:xf,symbolCross:HL,symbolDiamond:VL,symbolSquare:UL,symbolStar:ZL,symbolTriangle:QL,symbolWye:e2},l2=Math.PI/180,c2=function(t){var n="symbol".concat(d0(t));return g0[n]||xf},u2=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*l2;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},d2=function(t,n){g0["symbol".concat(d0(t))]=n},v0=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,l=i2(t,n2),u=sg(sg({},l),{},{type:r,size:a,sizeType:s}),f=function(){var b=c2(r),y=t2().type(b).size(u2(a,s,r));return y()},c=u.className,m=u.cx,h=u.cy,v=c0(u,!0);return m===+m&&h===+h&&a===+a?w.createElement("path",rd({},v,{className:dn("recharts-symbols",c),transform:"translate(".concat(m,", ").concat(h,")"),d:f()})):null};v0.registerSymbol=d2;function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},od.apply(this,arguments)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function f2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lg(Object(n),!0).forEach(function(r){bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y0(r.key),r)}}function h2(e,t,n){return t&&m2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g2(e,t,n){return t=za(t),v2(e,b0()?Reflect.construct(t,n||[],za(e).constructor):t.apply(e,n))}function v2(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b2(e)}function b2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b0=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},za(e)}function y2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ad(e,t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ad(e,t)}function bo(e,t,n){return t=y0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0(e){var t=x2(e,"string");return Cr(t)=="symbol"?t:t+""}function x2(e,t){if(Cr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xt=32,wf=(function(e){function t(){return p2(this,t),g2(this,t,arguments)}return y2(t,e),h2(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=xt/2,i=xt/6,s=xt/3,l=r.inactive?o:r.color;if(r.type==="plainline")return w.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:xt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return w.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
52
- A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
53
- H`).concat(xt,"M").concat(2*s,",").concat(a,`
54
- A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return w.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(xt/8,"h").concat(xt,"v").concat(xt*3/4,"h").concat(-xt,"z"),className:"recharts-legend-icon"});if(w.isValidElement(r.legendIcon)){var u=f2({},r);return delete u.legendIcon,w.cloneElement(r.legendIcon,u)}return w.createElement(v0,{fill:l,cx:a,cy:a,size:xt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,l=o.formatter,u=o.inactiveColor,f={x:0,y:0,width:xt,height:xt},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,v){var g=h.formatter||l,b=dn(bo(bo({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=$a(h.value)?null:h.value;Na(!$a(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?u:h.color;return w.createElement("li",od({className:b,style:c,key:"legend-item-".concat(v)},_L(r.props,h,v)),w.createElement(TL,{width:i,height:i,viewBox:f,style:m},r.renderIcon(h)),w.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(y,h,v):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return w.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(w.PureComponent);bo(wf,"displayName","Legend");bo(wf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var jl,cg;function w2(){if(cg)return jl;cg=1;var e=Ei();function t(){this.__data__=new e,this.size=0}return jl=t,jl}var $l,ug;function S2(){if(ug)return $l;ug=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return $l=e,$l}var Ll,dg;function C2(){if(dg)return Ll;dg=1;function e(t){return this.__data__.get(t)}return Ll=e,Ll}var Fl,fg;function _2(){if(fg)return Fl;fg=1;function e(t){return this.__data__.has(t)}return Fl=e,Fl}var Bl,pg;function E2(){if(pg)return Bl;pg=1;var e=Ei(),t=vf(),n=bf(),r=200;function o(a,i){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([a,i]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(a,i),this.size=s.size,this}return Bl=o,Bl}var zl,mg;function x0(){if(mg)return zl;mg=1;var e=Ei(),t=w2(),n=S2(),r=C2(),o=_2(),a=E2();function i(s){var l=this.__data__=new e(s);this.size=l.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=o,i.prototype.set=a,zl=i,zl}var ql,hg;function R2(){if(hg)return ql;hg=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return ql=t,ql}var Wl,gg;function N2(){if(gg)return Wl;gg=1;function e(t){return this.__data__.has(t)}return Wl=e,Wl}var Hl,vg;function w0(){if(vg)return Hl;vg=1;var e=bf(),t=R2(),n=N2();function r(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Hl=r,Hl}var Gl,bg;function P2(){if(bg)return Gl;bg=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Gl=e,Gl}var Vl,yg;function S0(){if(yg)return Vl;yg=1;function e(t,n){return t.has(n)}return Vl=e,Vl}var Ul,xg;function C0(){if(xg)return Ul;xg=1;var e=w0(),t=P2(),n=S0(),r=1,o=2;function a(i,s,l,u,f,c){var m=l&r,h=i.length,v=s.length;if(h!=v&&!(m&&v>h))return!1;var g=c.get(i),b=c.get(s);if(g&&b)return g==s&&b==i;var y=-1,x=!0,S=l&o?new e:void 0;for(c.set(i,s),c.set(s,i);++y<h;){var C=i[y],E=s[y];if(u)var R=m?u(E,C,y,s,i,c):u(C,E,y,i,s,c);if(R!==void 0){if(R)continue;x=!1;break}if(S){if(!t(s,function(_,P){if(!n(S,P)&&(C===_||f(C,_,l,u,c)))return S.push(P)})){x=!1;break}}else if(!(C===E||f(C,E,l,u,c))){x=!1;break}}return c.delete(i),c.delete(s),x}return Ul=a,Ul}var Kl,wg;function M2(){if(wg)return Kl;wg=1;var e=Zt(),t=e.Uint8Array;return Kl=t,Kl}var Yl,Sg;function T2(){if(Sg)return Yl;Sg=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Yl=e,Yl}var Xl,Cg;function Sf(){if(Cg)return Xl;Cg=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Xl=e,Xl}var Zl,_g;function O2(){if(_g)return Zl;_g=1;var e=zo(),t=M2(),n=gf(),r=C0(),o=T2(),a=Sf(),i=1,s=2,l="[object Boolean]",u="[object Date]",f="[object Error]",c="[object Map]",m="[object Number]",h="[object RegExp]",v="[object Set]",g="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",S=e?e.prototype:void 0,C=S?S.valueOf:void 0;function E(R,_,P,M,k,T,j){switch(P){case x:if(R.byteLength!=_.byteLength||R.byteOffset!=_.byteOffset)return!1;R=R.buffer,_=_.buffer;case y:return!(R.byteLength!=_.byteLength||!T(new t(R),new t(_)));case l:case u:case m:return n(+R,+_);case f:return R.name==_.name&&R.message==_.message;case h:case g:return R==_+"";case c:var O=o;case v:var F=M&i;if(O||(O=a),R.size!=_.size&&!F)return!1;var H=j.get(R);if(H)return H==_;M|=s,j.set(R,_);var $=r(O(R),O(_),M,k,T,j);return j.delete(R),$;case b:if(C)return C.call(R)==C.call(_)}return!1}return Zl=E,Zl}var Ql,Eg;function _0(){if(Eg)return Ql;Eg=1;function e(t,n){for(var r=-1,o=n.length,a=t.length;++r<o;)t[a+r]=n[r];return t}return Ql=e,Ql}var Jl,Rg;function A2(){if(Rg)return Jl;Rg=1;var e=_0(),t=$t();function n(r,o,a){var i=o(r);return t(r)?i:e(i,a(r))}return Jl=n,Jl}var ec,Ng;function D2(){if(Ng)return ec;Ng=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=0,i=[];++r<o;){var s=t[r];n(s,r,t)&&(i[a++]=s)}return i}return ec=e,ec}var tc,Pg;function I2(){if(Pg)return tc;Pg=1;function e(){return[]}return tc=e,tc}var nc,Mg;function k2(){if(Mg)return nc;Mg=1;var e=D2(),t=I2(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return r.call(i,s)}))}:t;return nc=a,nc}var rc,Tg;function j2(){if(Tg)return rc;Tg=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return rc=e,rc}var oc,Og;function $2(){if(Og)return oc;Og=1;var e=tr(),t=nr(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return oc=r,oc}var ac,Ag;function Cf(){if(Ag)return ac;Ag=1;var e=$2(),t=nr(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(i){return t(i)&&r.call(i,"callee")&&!o.call(i,"callee")};return ac=a,ac}var ro={exports:{}},ic,Dg;function L2(){if(Dg)return ic;Dg=1;function e(){return!1}return ic=e,ic}ro.exports;var Ig;function E0(){return Ig||(Ig=1,(function(e,t){var n=Zt(),r=L2(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(ro,ro.exports)),ro.exports}var sc,kg;function _f(){if(kg)return sc;kg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var a=typeof r;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return sc=n,sc}var lc,jg;function Ef(){if(jg)return lc;jg=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return lc=t,lc}var cc,$g;function F2(){if($g)return cc;$g=1;var e=tr(),t=Ef(),n=nr(),r="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",f="[object Number]",c="[object Object]",m="[object RegExp]",h="[object Set]",v="[object String]",g="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",R="[object Int32Array]",_="[object Uint8Array]",P="[object Uint8ClampedArray]",M="[object Uint16Array]",k="[object Uint32Array]",T={};T[x]=T[S]=T[C]=T[E]=T[R]=T[_]=T[P]=T[M]=T[k]=!0,T[r]=T[o]=T[b]=T[a]=T[y]=T[i]=T[s]=T[l]=T[u]=T[f]=T[c]=T[m]=T[h]=T[v]=T[g]=!1;function j(O){return n(O)&&t(O.length)&&!!T[e(O)]}return cc=j,cc}var uc,Lg;function R0(){if(Lg)return uc;Lg=1;function e(t){return function(n){return t(n)}}return uc=e,uc}var oo={exports:{}};oo.exports;var Fg;function B2(){return Fg||(Fg=1,(function(e,t){var n=Jw(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=(function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}})();e.exports=s})(oo,oo.exports)),oo.exports}var dc,Bg;function N0(){if(Bg)return dc;Bg=1;var e=F2(),t=R0(),n=B2(),r=n&&n.isTypedArray,o=r?t(r):e;return dc=o,dc}var fc,zg;function z2(){if(zg)return fc;zg=1;var e=j2(),t=Cf(),n=$t(),r=E0(),o=_f(),a=N0(),i=Object.prototype,s=i.hasOwnProperty;function l(u,f){var c=n(u),m=!c&&t(u),h=!c&&!m&&r(u),v=!c&&!m&&!h&&a(u),g=c||m||h||v,b=g?e(u.length,String):[],y=b.length;for(var x in u)(f||s.call(u,x))&&!(g&&(x=="length"||h&&(x=="offset"||x=="parent")||v&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,y)))&&b.push(x);return b}return fc=l,fc}var pc,qg;function q2(){if(qg)return pc;qg=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return pc=t,pc}var mc,Wg;function W2(){if(Wg)return mc;Wg=1;function e(t,n){return function(r){return t(n(r))}}return mc=e,mc}var hc,Hg;function H2(){if(Hg)return hc;Hg=1;var e=W2(),t=e(Object.keys,Object);return hc=t,hc}var gc,Gg;function G2(){if(Gg)return gc;Gg=1;var e=q2(),t=H2(),n=Object.prototype,r=n.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&i.push(s);return i}return gc=o,gc}var vc,Vg;function Mi(){if(Vg)return vc;Vg=1;var e=hf(),t=Ef();function n(r){return r!=null&&t(r.length)&&!e(r)}return vc=n,vc}var bc,Ug;function Rf(){if(Ug)return bc;Ug=1;var e=z2(),t=G2(),n=Mi();function r(o){return n(o)?e(o):t(o)}return bc=r,bc}var yc,Kg;function V2(){if(Kg)return yc;Kg=1;var e=A2(),t=k2(),n=Rf();function r(o){return e(o,n,t)}return yc=r,yc}var xc,Yg;function U2(){if(Yg)return xc;Yg=1;var e=V2(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,i,s,l,u,f){var c=s&t,m=e(a),h=m.length,v=e(i),g=v.length;if(h!=g&&!c)return!1;for(var b=h;b--;){var y=m[b];if(!(c?y in i:r.call(i,y)))return!1}var x=f.get(a),S=f.get(i);if(x&&S)return x==i&&S==a;var C=!0;f.set(a,i),f.set(i,a);for(var E=c;++b<h;){y=m[b];var R=a[y],_=i[y];if(l)var P=c?l(_,R,y,i,a,f):l(R,_,y,a,i,f);if(!(P===void 0?R===_||u(R,_,s,l,f):P)){C=!1;break}E||(E=y=="constructor")}if(C&&!E){var M=a.constructor,k=i.constructor;M!=k&&"constructor"in a&&"constructor"in i&&!(typeof M=="function"&&M instanceof M&&typeof k=="function"&&k instanceof k)&&(C=!1)}return f.delete(a),f.delete(i),C}return xc=o,xc}var wc,Xg;function K2(){if(Xg)return wc;Xg=1;var e=rr(),t=Zt(),n=e(t,"DataView");return wc=n,wc}var Sc,Zg;function Y2(){if(Zg)return Sc;Zg=1;var e=rr(),t=Zt(),n=e(t,"Promise");return Sc=n,Sc}var Cc,Qg;function P0(){if(Qg)return Cc;Qg=1;var e=rr(),t=Zt(),n=e(t,"Set");return Cc=n,Cc}var _c,Jg;function X2(){if(Jg)return _c;Jg=1;var e=rr(),t=Zt(),n=e(t,"WeakMap");return _c=n,_c}var Ec,ev;function Z2(){if(ev)return Ec;ev=1;var e=K2(),t=vf(),n=Y2(),r=P0(),o=X2(),a=tr(),i=e0(),s="[object Map]",l="[object Object]",u="[object Promise]",f="[object Set]",c="[object WeakMap]",m="[object DataView]",h=i(e),v=i(t),g=i(n),b=i(r),y=i(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=m||t&&x(new t)!=s||n&&x(n.resolve())!=u||r&&x(new r)!=f||o&&x(new o)!=c)&&(x=function(S){var C=a(S),E=C==l?S.constructor:void 0,R=E?i(E):"";if(R)switch(R){case h:return m;case v:return s;case g:return u;case b:return f;case y:return c}return C}),Ec=x,Ec}var Rc,tv;function Q2(){if(tv)return Rc;tv=1;var e=x0(),t=C0(),n=O2(),r=U2(),o=Z2(),a=$t(),i=E0(),s=N0(),l=1,u="[object Arguments]",f="[object Array]",c="[object Object]",m=Object.prototype,h=m.hasOwnProperty;function v(g,b,y,x,S,C){var E=a(g),R=a(b),_=E?f:o(g),P=R?f:o(b);_=_==u?c:_,P=P==u?c:P;var M=_==c,k=P==c,T=_==P;if(T&&i(g)){if(!i(b))return!1;E=!0,M=!1}if(T&&!M)return C||(C=new e),E||s(g)?t(g,b,y,x,S,C):n(g,b,_,y,x,S,C);if(!(y&l)){var j=M&&h.call(g,"__wrapped__"),O=k&&h.call(b,"__wrapped__");if(j||O){var F=j?g.value():g,H=O?b.value():b;return C||(C=new e),S(F,H,y,x,C)}}return T?(C||(C=new e),r(g,b,y,x,S,C)):!1}return Rc=v,Rc}var Nc,nv;function M0(){if(nv)return Nc;nv=1;var e=Q2(),t=nr();function n(r,o,a,i,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,i,n,s)}return Nc=n,Nc}var Pc,rv;function J2(){if(rv)return Pc;rv=1;var e=x0(),t=M0(),n=1,r=2;function o(a,i,s,l){var u=s.length,f=u,c=!l;if(a==null)return!f;for(a=Object(a);u--;){var m=s[u];if(c&&m[2]?m[1]!==a[m[0]]:!(m[0]in a))return!1}for(;++u<f;){m=s[u];var h=m[0],v=a[h],g=m[1];if(c&&m[2]){if(v===void 0&&!(h in a))return!1}else{var b=new e;if(l)var y=l(v,g,h,a,i,b);if(!(y===void 0?t(g,v,n|r,l,b):y))return!1}}return!0}return Pc=o,Pc}var Mc,ov;function T0(){if(ov)return Mc;ov=1;var e=Tn();function t(n){return n===n&&!e(n)}return Mc=t,Mc}var Tc,av;function eF(){if(av)return Tc;av=1;var e=T0(),t=Rf();function n(r){for(var o=t(r),a=o.length;a--;){var i=o[a],s=r[i];o[a]=[i,s,e(s)]}return o}return Tc=n,Tc}var Oc,iv;function O0(){if(iv)return Oc;iv=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Oc=e,Oc}var Ac,sv;function tF(){if(sv)return Ac;sv=1;var e=J2(),t=eF(),n=O0();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return Ac=r,Ac}var Dc,lv;function nF(){if(lv)return Dc;lv=1;function e(t,n){return t!=null&&n in Object(t)}return Dc=e,Dc}var Ic,cv;function rF(){if(cv)return Ic;cv=1;var e=r0(),t=Cf(),n=$t(),r=_f(),o=Ef(),a=Ni();function i(s,l,u){l=e(l,s);for(var f=-1,c=l.length,m=!1;++f<c;){var h=a(l[f]);if(!(m=s!=null&&u(s,h)))break;s=s[h]}return m||++f!=c?m:(c=s==null?0:s.length,!!c&&o(c)&&r(h,c)&&(n(s)||t(s)))}return Ic=i,Ic}var kc,uv;function oF(){if(uv)return kc;uv=1;var e=nF(),t=rF();function n(r,o){return r!=null&&t(r,o,e)}return kc=n,kc}var jc,dv;function aF(){if(dv)return jc;dv=1;var e=M0(),t=o0(),n=oF(),r=mf(),o=T0(),a=O0(),i=Ni(),s=1,l=2;function u(f,c){return r(f)&&o(c)?a(i(f),c):function(m){var h=t(m,f);return h===void 0&&h===c?n(m,f):e(c,h,s|l)}}return jc=u,jc}var $c,fv;function Ti(){if(fv)return $c;fv=1;function e(t){return t}return $c=e,$c}var Lc,pv;function iF(){if(pv)return Lc;pv=1;function e(t){return function(n){return n?.[t]}}return Lc=e,Lc}var Fc,mv;function sF(){if(mv)return Fc;mv=1;var e=yf();function t(n){return function(r){return e(r,n)}}return Fc=t,Fc}var Bc,hv;function lF(){if(hv)return Bc;hv=1;var e=iF(),t=sF(),n=mf(),r=Ni();function o(a){return n(a)?e(r(a)):t(a)}return Bc=o,Bc}var zc,gv;function A0(){if(gv)return zc;gv=1;var e=tF(),t=aF(),n=Ti(),r=$t(),o=lF();function a(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):o(i)}return zc=a,zc}var qc,vv;function cF(){if(vv)return qc;vv=1;function e(t,n,r,o){for(var a=t.length,i=r+(o?1:-1);o?i--:++i<a;)if(n(t[i],i,t))return i;return-1}return qc=e,qc}var Wc,bv;function uF(){if(bv)return Wc;bv=1;function e(t){return t!==t}return Wc=e,Wc}var Hc,yv;function dF(){if(yv)return Hc;yv=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return Hc=e,Hc}var Gc,xv;function fF(){if(xv)return Gc;xv=1;var e=cF(),t=uF(),n=dF();function r(o,a,i){return a===a?n(o,a,i):e(o,t,i)}return Gc=r,Gc}var Vc,wv;function pF(){if(wv)return Vc;wv=1;var e=fF();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Vc=t,Vc}var Uc,Sv;function mF(){if(Sv)return Uc;Sv=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return Uc=e,Uc}var Kc,Cv;function hF(){if(Cv)return Kc;Cv=1;function e(){}return Kc=e,Kc}var Yc,_v;function gF(){if(_v)return Yc;_v=1;var e=P0(),t=hF(),n=Sf(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return Yc=o,Yc}var Xc,Ev;function vF(){if(Ev)return Xc;Ev=1;var e=w0(),t=pF(),n=mF(),r=S0(),o=gF(),a=Sf(),i=200;function s(l,u,f){var c=-1,m=t,h=l.length,v=!0,g=[],b=g;if(f)v=!1,m=n;else if(h>=i){var y=u?null:o(l);if(y)return a(y);v=!1,m=r,b=new e}else b=u?[]:g;e:for(;++c<h;){var x=l[c],S=u?u(x):x;if(x=f||x!==0?x:0,v&&S===S){for(var C=b.length;C--;)if(b[C]===S)continue e;u&&b.push(S),g.push(x)}else m(b,S,f)||(b!==g&&b.push(S),g.push(x))}return g}return Xc=s,Xc}var Zc,Rv;function bF(){if(Rv)return Zc;Rv=1;var e=A0(),t=vF();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return Zc=n,Zc}var yF=bF();const Nv=Yt(yF);function D0(e,t,n){return t===!0?Nv(e,n):$a(t)?Nv(e,t):e}function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}var xF=["ref"];function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pv(Object(n),!0).forEach(function(r){Oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k0(r.key),r)}}function SF(e,t,n){return t&&Mv(e.prototype,t),n&&Mv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CF(e,t,n){return t=qa(t),_F(e,I0()?Reflect.construct(t,n||[],qa(e).constructor):t.apply(e,n))}function _F(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EF(e)}function EF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I0=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qa(e)}function RF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},id(e,t)}function Oi(e,t,n){return t=k0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k0(e){var t=NF(e,"string");return _r(t)=="symbol"?t:t+""}function NF(e,t){if(_r(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_r(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function PF(e,t){if(e==null)return{};var n=MF(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TF(e){return e.value}function OF(e,t){if(w.isValidElement(e))return w.cloneElement(e,t);if(typeof e=="function")return w.createElement(e,t);t.ref;var n=PF(t,xF);return w.createElement(wf,n)}var Tv=1,Nf=(function(e){function t(){var n;wF(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=CF(this,t,[].concat(o)),Oi(n,"lastBoundingBox",{width:-1,height:-1}),n}return RF(t,e),SF(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>Tv||Math.abs(o.height-this.lastBoundingBox.height)>Tv)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?an({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,l=o.margin,u=o.chartWidth,f=o.chartHeight,c,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(i==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();c={left:((u||0)-h.width)/2}}else c=i==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var v=this.getBBoxSnapshot();m={top:((f||0)-v.height)/2}}else m=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return an(an({},c),m)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,i=o.width,s=o.height,l=o.wrapperStyle,u=o.payloadUniqBy,f=o.payload,c=an(an({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return w.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},OF(a,an(an({},this.props),{},{payload:D0(f,u,TF)})))}}],[{key:"getWithHeight",value:function(r,o){var a=an(an({},this.defaultProps),r.props),i=a.layout;return i==="vertical"&&Nt(r.props.height)?{height:r.props.height}:i==="horizontal"?{width:r.props.width||o}:null}}])})(w.PureComponent);Oi(Nf,"displayName","Legend");Oi(Nf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Qc,Ov;function AF(){if(Ov)return Qc;Ov=1;var e=zo(),t=Cf(),n=$t(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Qc=o,Qc}var Jc,Av;function DF(){if(Av)return Jc;Av=1;var e=_0(),t=AF();function n(r,o,a,i,s){var l=-1,u=r.length;for(a||(a=t),s||(s=[]);++l<u;){var f=r[l];o>0&&a(f)?o>1?n(f,o-1,a,i,s):e(s,f):i||(s[s.length]=f)}return s}return Jc=n,Jc}var eu,Dv;function IF(){if(Dv)return eu;Dv=1;function e(t){return function(n,r,o){for(var a=-1,i=Object(n),s=o(n),l=s.length;l--;){var u=s[t?l:++a];if(r(i[u],u,i)===!1)break}return n}}return eu=e,eu}var tu,Iv;function kF(){if(Iv)return tu;Iv=1;var e=IF(),t=e();return tu=t,tu}var nu,kv;function jF(){if(kv)return nu;kv=1;var e=kF(),t=Rf();function n(r,o){return r&&e(r,o,t)}return nu=n,nu}var ru,jv;function $F(){if(jv)return ru;jv=1;var e=Mi();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var i=o.length,s=r?i:-1,l=Object(o);(r?s--:++s<i)&&a(l[s],s,l)!==!1;);return o}}return ru=t,ru}var ou,$v;function LF(){if($v)return ou;$v=1;var e=jF(),t=$F(),n=t(e);return ou=n,ou}var au,Lv;function FF(){if(Lv)return au;Lv=1;var e=LF(),t=Mi();function n(r,o){var a=-1,i=t(r)?Array(r.length):[];return e(r,function(s,l,u){i[++a]=o(s,l,u)}),i}return au=n,au}var iu,Fv;function BF(){if(Fv)return iu;Fv=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return iu=e,iu}var su,Bv;function zF(){if(Bv)return su;Bv=1;var e=qo();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,i=n===n,s=e(n),l=r!==void 0,u=r===null,f=r===r,c=e(r);if(!u&&!c&&!s&&n>r||s&&l&&f&&!u&&!c||a&&l&&f||!o&&f||!i)return 1;if(!a&&!s&&!c&&n<r||c&&o&&i&&!a&&!s||u&&o&&i||!l&&i||!f)return-1}return 0}return su=t,su}var lu,zv;function qF(){if(zv)return lu;zv=1;var e=zF();function t(n,r,o){for(var a=-1,i=n.criteria,s=r.criteria,l=i.length,u=o.length;++a<l;){var f=e(i[a],s[a]);if(f){if(a>=u)return f;var c=o[a];return f*(c=="desc"?-1:1)}}return n.index-r.index}return lu=t,lu}var cu,qv;function WF(){if(qv)return cu;qv=1;var e=t0(),t=yf(),n=A0(),r=FF(),o=BF(),a=R0(),i=qF(),s=Ti(),l=$t();function u(f,c,m){c.length?c=e(c,function(g){return l(g)?function(b){return t(b,g.length===1?g[0]:g)}:g}):c=[s];var h=-1;c=e(c,a(n));var v=r(f,function(g,b,y){var x=e(c,function(S){return S(g)});return{criteria:x,index:++h,value:g}});return o(v,function(g,b){return i(g,b,m)})}return cu=u,cu}var uu,Wv;function HF(){if(Wv)return uu;Wv=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return uu=e,uu}var du,Hv;function GF(){if(Hv)return du;Hv=1;var e=HF(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var i=arguments,s=-1,l=t(i.length-o,0),u=Array(l);++s<l;)u[s]=i[o+s];s=-1;for(var f=Array(o+1);++s<o;)f[s]=i[s];return f[o]=a(u),e(r,this,f)}}return du=n,du}var fu,Gv;function VF(){if(Gv)return fu;Gv=1;function e(t){return function(){return t}}return fu=e,fu}var pu,Vv;function UF(){if(Vv)return pu;Vv=1;var e=rr(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return pu=t,pu}var mu,Uv;function KF(){if(Uv)return mu;Uv=1;var e=VF(),t=UF(),n=Ti(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return mu=r,mu}var hu,Kv;function YF(){if(Kv)return hu;Kv=1;var e=800,t=16,n=Date.now;function r(o){var a=0,i=0;return function(){var s=n(),l=t-(s-i);if(i=s,l>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return hu=r,hu}var gu,Yv;function XF(){if(Yv)return gu;Yv=1;var e=KF(),t=YF(),n=t(e);return gu=n,gu}var vu,Xv;function ZF(){if(Xv)return vu;Xv=1;var e=Ti(),t=GF(),n=XF();function r(o,a){return n(t(o,a,e),o+"")}return vu=r,vu}var bu,Zv;function QF(){if(Zv)return bu;Zv=1;var e=gf(),t=Mi(),n=_f(),r=Tn();function o(a,i,s){if(!r(s))return!1;var l=typeof i;return(l=="number"?t(s)&&n(i,s.length):l=="string"&&i in s)?e(s[i],a):!1}return bu=o,bu}var yu,Qv;function JF(){if(Qv)return yu;Qv=1;var e=DF(),t=WF(),n=ZF(),r=QF(),o=n(function(a,i){if(a==null)return[];var s=i.length;return s>1&&r(a,i[0],i[1])?i=[]:s>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return yu=o,yu}var eB=JF();const tB=Yt(eB);function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sd.apply(this,arguments)}function nB(e,t){return iB(e)||aB(e,t)||oB(e,t)||rB()}function rB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oB(e,t){if(e){if(typeof e=="string")return Jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jv(e,t)}}function Jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function iB(e){if(Array.isArray(e))return e}function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(n),!0).forEach(function(r){sB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sB(e,t,n){return t=lB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e){var t=cB(e,"string");return yo(t)=="symbol"?t:t+""}function cB(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uB(e){return Array.isArray(e)&&La(e[0])&&La(e[1])?e.join(" ~ "):e}var dB=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,m=t.itemSorter,h=t.wrapperClassName,v=t.labelClassName,g=t.label,b=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,S=function(){if(f&&f.length){var j={padding:0,margin:0},O=(m?tB(f,m):f).map(function(F,H){if(F.type==="none")return null;var $=xu({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},s),K=F.formatter||c||uB,V=F.value,q=F.name,ee=V,J=q;if(K&&ee!=null&&J!=null){var B=K(V,q,F,H,f);if(Array.isArray(B)){var D=nB(B,2);ee=D[0],J=D[1]}else ee=B}return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(H),style:$},La(J)?w.createElement("span",{className:"recharts-tooltip-item-name"},J):null,La(J)?w.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,w.createElement("span",{className:"recharts-tooltip-item-value"},ee),w.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:j},O)}return null},C=xu({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),E=xu({margin:0},u),R=!lL(g),_=R?g:"",P=dn("recharts-default-tooltip",h),M=dn("recharts-tooltip-label",v);R&&b&&f!==void 0&&f!==null&&(_=b(g,f));var k=x?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",sd({className:P,style:C},k),w.createElement("p",{className:M,style:E},w.isValidElement(_)?_:"".concat(_)),S())};function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function va(e,t,n){return t=fB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e){var t=pB(e,"string");return xo(t)=="symbol"?t:t+""}function pB(e,t){if(xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xr="recharts-tooltip-wrapper",mB={visibility:"hidden"};function hB(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return dn(Xr,va(va(va(va({},"".concat(Xr,"-right"),Nt(n)&&t&&Nt(t.x)&&n>=t.x),"".concat(Xr,"-left"),Nt(n)&&t&&Nt(t.x)&&n<t.x),"".concat(Xr,"-bottom"),Nt(r)&&t&&Nt(t.y)&&r>=t.y),"".concat(Xr,"-top"),Nt(r)&&t&&Nt(t.y)&&r<t.y))}function tb(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&Nt(a[r]))return a[r];var f=n[r]-s-o,c=n[r]+o;if(t[r])return i[r]?f:c;if(i[r]){var m=f,h=l[r];return m<h?Math.max(c,l[r]):Math.max(f,l[r])}var v=c+s,g=l[r]+u;return v>g?Math.max(f,l[r]):Math.max(c,l[r])}function gB(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function vB(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return i.height>0&&i.width>0&&n?(f=tb({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:l,viewBoxDimension:l.width}),c=tb({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:l,viewBoxDimension:l.height}),u=gB({translateX:f,translateY:c,useTranslate3d:s})):u=mB,{cssProperties:u,cssClasses:hB({translateX:f,translateY:c,coordinate:n})}}function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(r){cd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$0(r.key),r)}}function xB(e,t,n){return t&&yB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wB(e,t,n){return t=Wa(t),SB(e,j0()?Reflect.construct(t,n||[],Wa(e).constructor):t.apply(e,n))}function SB(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CB(e)}function CB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j0=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wa(e)}function _B(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ld(e,t)}function cd(e,t,n){return t=$0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0(e){var t=EB(e,"string");return Er(t)=="symbol"?t:t+""}function EB(e,t){if(Er(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Er(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ob=1,RB=(function(e){function t(){var n;bB(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=wB(this,t,[].concat(o)),cd(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),cd(n,"handleKeyDown",function(i){if(i.key==="Escape"){var s,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return _B(t,e),xB(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ob||Math.abs(r.height-this.state.lastBoundingBox.height)>ob)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.children,f=o.coordinate,c=o.hasPayload,m=o.isAnimationActive,h=o.offset,v=o.position,g=o.reverseDirection,b=o.useTranslate3d,y=o.viewBox,x=o.wrapperStyle,S=vB({allowEscapeViewBox:i,coordinate:f,offsetTopLeft:h,position:v,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),C=S.cssClasses,E=S.cssProperties,R=rb(rb({transition:m&&a?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},x);return w.createElement("div",{tabIndex:-1,className:C,style:R,ref:function(P){r.wrapperNode=P}},u)}}])})(w.PureComponent),NB=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},PB={isSsr:NB()};function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ib(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(n),!0).forEach(function(r){Pf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F0(r.key),r)}}function OB(e,t,n){return t&&TB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AB(e,t,n){return t=Ha(t),DB(e,L0()?Reflect.construct(t,n||[],Ha(e).constructor):t.apply(e,n))}function DB(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IB(e)}function IB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L0=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ha(e)}function kB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ud(e,t)}function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ud(e,t)}function Pf(e,t,n){return t=F0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F0(e){var t=jB(e,"string");return Rr(t)=="symbol"?t:t+""}function jB(e,t){if(Rr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $B(e){return e.dataKey}function LB(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(dB,t)}var Mf=(function(e){function t(){return MB(this,t),AB(this,t,arguments)}return kB(t,e),OB(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.content,f=o.coordinate,c=o.filterNull,m=o.isAnimationActive,h=o.offset,v=o.payload,g=o.payloadUniqBy,b=o.position,y=o.reverseDirection,x=o.useTranslate3d,S=o.viewBox,C=o.wrapperStyle,E=v??[];c&&E.length&&(E=D0(v.filter(function(_){return _.value!=null&&(_.hide!==!0||r.props.includeHidden)}),g,$B));var R=E.length>0;return w.createElement(RB,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:m,active:a,coordinate:f,hasPayload:R,offset:h,position:b,reverseDirection:y,useTranslate3d:x,viewBox:S,wrapperStyle:C},LB(u,ib(ib({},this.props),{},{payload:E})))}}])})(w.PureComponent);Pf(Mf,"displayName","Tooltip");Pf(Mf,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!PB.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var wu,sb;function FB(){if(sb)return wu;sb=1;var e=Zt(),t=function(){return e.Date.now()};return wu=t,wu}var Su,lb;function BB(){if(lb)return Su;lb=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Su=t,Su}var Cu,cb;function zB(){if(cb)return Cu;cb=1;var e=BB(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Cu=n,Cu}var _u,ub;function qB(){if(ub)return _u;ub=1;var e=zB(),t=Tn(),n=qo(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=t(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=e(u);var c=a.test(u);return c||i.test(u)?s(u.slice(2),c?2:8):o.test(u)?r:+u}return _u=l,_u}var Eu,db;function WB(){if(db)return Eu;db=1;var e=Tn(),t=FB(),n=qB(),r="Expected a function",o=Math.max,a=Math.min;function i(s,l,u){var f,c,m,h,v,g,b=0,y=!1,x=!1,S=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(u)&&(y=!!u.leading,x="maxWait"in u,m=x?o(n(u.maxWait)||0,l):m,S="trailing"in u?!!u.trailing:S);function C(O){var F=f,H=c;return f=c=void 0,b=O,h=s.apply(H,F),h}function E(O){return b=O,v=setTimeout(P,l),y?C(O):h}function R(O){var F=O-g,H=O-b,$=l-F;return x?a($,m-H):$}function _(O){var F=O-g,H=O-b;return g===void 0||F>=l||F<0||x&&H>=m}function P(){var O=t();if(_(O))return M(O);v=setTimeout(P,R(O))}function M(O){return v=void 0,S&&f?C(O):(f=c=void 0,h)}function k(){v!==void 0&&clearTimeout(v),b=0,f=g=c=v=void 0}function T(){return v===void 0?h:M(t())}function j(){var O=t(),F=_(O);if(f=arguments,c=this,g=O,F){if(v===void 0)return E(g);if(x)return clearTimeout(v),v=setTimeout(P,l),C(g)}return v===void 0&&(v=setTimeout(P,l)),h}return j.cancel=k,j.flush=T,j}return Eu=i,Eu}var Ru,fb;function HB(){if(fb)return Ru;fb=1;var e=WB(),t=Tn(),n="Expected a function";function r(o,a,i){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),e(o,a,{leading:s,maxWait:a,trailing:l})}return Ru=r,Ru}var GB=HB();const VB=Yt(GB);function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pb(Object(n),!0).forEach(function(r){UB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UB(e,t,n){return t=KB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KB(e){var t=YB(e,"string");return wo(t)=="symbol"?t:t+""}function YB(e,t){if(wo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XB(e,t){return ez(e)||JB(e,t)||QB(e,t)||ZB()}function ZB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QB(e,t){if(e){if(typeof e=="string")return mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mb(e,t)}}function mb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function ez(e){if(Array.isArray(e))return e}var tz=w.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,i=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,m=e.maxHeight,h=e.children,v=e.debounce,g=v===void 0?0:v,b=e.id,y=e.className,x=e.onResize,S=e.style,C=S===void 0?{}:S,E=w.useRef(null),R=w.useRef();R.current=x,w.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var _=w.useState({containerWidth:o.width,containerHeight:o.height}),P=XB(_,2),M=P[0],k=P[1],T=w.useCallback(function(O,F){k(function(H){var $=Math.round(O),K=Math.round(F);return H.containerWidth===$&&H.containerHeight===K?H:{containerWidth:$,containerHeight:K}})},[]);w.useEffect(function(){var O=function(q){var ee,J=q[0].contentRect,B=J.width,D=J.height;T(B,D),(ee=R.current)===null||ee===void 0||ee.call(R,B,D)};g>0&&(O=VB(O,g,{trailing:!0,leading:!1}));var F=new ResizeObserver(O),H=E.current.getBoundingClientRect(),$=H.width,K=H.height;return T($,K),F.observe(E.current),function(){F.disconnect()}},[T,g]);var j=w.useMemo(function(){var O=M.containerWidth,F=M.containerHeight;if(O<0||F<0)return null;Na(ha(i)||ha(l),`The width(%s) and height(%s) are both fixed numbers,
57
- maybe you don't need to use a ResponsiveContainer.`,i,l),Na(!n||n>0,"The aspect(%s) must be greater than zero.",n);var H=ha(i)?O:i,$=ha(l)?F:l;n&&n>0&&(H?$=H/n:$&&(H=$*n),m&&$>m&&($=m)),Na(H>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
51
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},ND=bx,PD=yx,MD=xx,Tx=wx,Ox=Sx,Ax=Nx,Dx=Mx,Ix=_x,kx=Rx,TD=Symbol.for("react.lazy"),Fa=d[" use ".trim().toString()];function OD(e){return typeof e=="object"&&e!==null&&"then"in e}function jx(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===TD&&"_payload"in e&&OD(e._payload)}function $x(e){const t=AD(e),n=d.forwardRef((r,o)=>{let{children:a,...s}=r;jx(a)&&typeof Fa=="function"&&(a=Fa(a._payload));const i=d.Children.toArray(a),l=i.find(ID);if(l){const u=l.props.children,f=i.map(c=>c===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:c);return p.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return p.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Yt=$x("Slot");function AD(e){const t=d.forwardRef((n,r)=>{let{children:o,...a}=n;if(jx(o)&&typeof Fa=="function"&&(o=Fa(o._payload)),d.isValidElement(o)){const s=jD(o),i=kD(a,o.props);return o.type!==d.Fragment&&(i.ref=r?At(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var DD=Symbol("radix.slottable");function ID(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DD}function kD(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function jD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const dr={xs:"text-[0.6875rem]",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},Cr=Ke({base:"font-medium inline-flex items-center transition-colors duration-300 justify-center rounded-md disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 outline-none",variants:{variant:{default:"bg-[--btn-bg] text-[--btn-fg] hover:bg-[--btn-bg-hover]",outline:"font-semibold bg-transparent text-foreground hover:bg-[--btn-outline-bg-hover] border border-border hover:border-[--btn-outline-border-hover]",link:"text-[--btn-link-fg] underline-offset-4 hover:underline",light:"bg-transparent text-[--btn-light-fg] hover:text-[--btn-light-fg-hover] hover:bg-[--btn-light-bg-hover]",text:"hover:text-[--btn-text-fg-hover]",flat:"bg-[--btn-flat-bg] text-[--btn-flat-fg] hover:text-[--btn-flat-fg-hover] hover:bg-[--btn-flat-bg-hover]"},size:{xs:`h-7 ${dr.xs} gap-1`,sm:`h-9 ${dr.xs} gap-1.5`,md:`h-10 ${dr.sm} gap-2`,lg:`h-11 ${dr.md} gap-2`,xl:`h-12 ${dr.lg} gap-2.5`,"2xl":`h-14 ${dr.xl} gap-2.5`},shape:{rectangle:"",square:"!aspect-square"},density:{compact:"",default:"",relaxed:""}},compoundVariants:[{shape:"rectangle",size:"xs",density:"compact",className:"px-2 py-1"},{shape:"rectangle",size:"sm",density:"compact",className:"px-2.5 py-1.5"},{shape:"rectangle",size:"md",density:"compact",className:"px-3 py-1.5"},{shape:"rectangle",size:"lg",density:"compact",className:"px-3.5 py-1.5"},{shape:"rectangle",size:"xl",density:"compact",className:"px-4 py-2"},{shape:"rectangle",size:"2xl",density:"compact",className:"px-4 py-2"},{shape:"rectangle",size:"xs",density:"default",className:"px-2.5 py-1.5"},{shape:"rectangle",size:"sm",density:"default",className:"px-3 py-1.5"},{shape:"rectangle",size:"md",density:"default",className:"px-4 py-2"},{shape:"rectangle",size:"lg",density:"default",className:"px-5 py-2.5"},{shape:"rectangle",size:"xl",density:"default",className:"px-6 py-3"},{shape:"rectangle",size:"2xl",density:"default",className:"px-6 py-3"},{shape:"rectangle",size:"xs",density:"relaxed",className:"px-3 py-1.5"},{shape:"rectangle",size:"sm",density:"relaxed",className:"px-4 py-2"},{shape:"rectangle",size:"md",density:"relaxed",className:"px-5 py-2.5"},{shape:"rectangle",size:"lg",density:"relaxed",className:"px-6 py-3"},{shape:"rectangle",size:"xl",density:"relaxed",className:"px-8 py-4"},{shape:"rectangle",size:"2xl",density:"relaxed",className:"px-8 py-4"},{shape:"square",size:"xs",density:"compact",className:"w-6 p-1"},{shape:"square",size:"sm",density:"compact",className:"w-8 p-1.5"},{shape:"square",size:"md",density:"compact",className:"w-9 p-1.5"},{shape:"square",size:"lg",density:"compact",className:"w-10 p-2"},{shape:"square",size:"xl",density:"compact",className:"w-11 p-2"},{shape:"square",size:"2xl",density:"compact",className:"w-12 p-2.5"},{shape:"square",size:"xs",density:"default",className:"w-7 p-1.5"},{shape:"square",size:"sm",density:"default",className:"w-9 p-2"},{shape:"square",size:"md",density:"default",className:"w-10 p-2"},{shape:"square",size:"lg",density:"default",className:"w-11 p-2.5"},{shape:"square",size:"xl",density:"default",className:"w-12 p-2.5"},{shape:"square",size:"2xl",density:"default",className:"w-14 p-3"},{shape:"square",size:"xs",density:"relaxed",className:"w-8 p-2"},{shape:"square",size:"sm",density:"relaxed",className:"w-10 p-2.5"},{shape:"square",size:"md",density:"relaxed",className:"w-11 p-2.5"},{shape:"square",size:"lg",density:"relaxed",className:"w-12 p-3"},{shape:"square",size:"xl",density:"relaxed",className:"w-14 p-3"},{shape:"square",size:"2xl",density:"relaxed",className:"w-16 p-4"}],defaultVariants:{variant:"default",size:"md",density:"default",shape:"rectangle"}}),$D={neutral:{"--btn-bg":"hsl(var(--neutral-dark))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--neutral))","--btn-text-fg-hover":"hsla(var(--neutral-light))","--btn-outline-border-hover":"hsla(var(--neutral-light))","--btn-outline-bg-hover":"hsla(var(--neutral-light) / 0.15)","--btn-link-fg":"hsla(var(--neutral-light))","--btn-light-fg-hover":"hsla(var(--foreground))","--btn-light-bg-hover":"hsla(var(--neutral-light) / 0.15)","--btn-light-fg":"hsla(var(--foreground) / 0.8)","--btn-flat-fg":"hsla(var(--foreground) / 0.7)","--btn-flat-bg":"hsla(var(--neutral) / 0.15)","--btn-flat-bg-hover":"hsla(var(--neutral) / 0.3)","--btn-flat-fg-hover":"hsla(var(--foreground))"},primary:{"--btn-bg":"hsl(var(--primary))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--primary-light))","--btn-text-fg-hover":"hsla(var(--primary-light))","--btn-outline-border-hover":"hsla(var(--primary-light))","--btn-outline-bg-hover":"hsla(var(--primary-light) / 0.15)","--btn-link-fg":"hsla(var(--primary-light))","--btn-light-fg-hover":"hsla(var(--primary-light))","--btn-light-bg-hover":"hsla(var(--primary-light) / 0.15)","--btn-light-fg":"hsla(var(--primary-light))","--btn-flat-fg":"hsla(var(--primary-light))","--btn-flat-bg":"hsla(var(--primary) / 0.15)","--btn-flat-bg-hover":"hsla(var(--primary) / 0.3)","--btn-flat-fg-hover":"hsla(var(--primary-light))"},secondary:{"--btn-bg":"hsl(var(--secondary-dark))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--secondary-light))","--btn-text-fg-hover":"hsla(var(--secondary-light))","--btn-outline-border-hover":"hsla(var(--secondary-light))","--btn-outline-bg-hover":"hsla(var(--secondary-light) / 0.15)","--btn-link-fg":"hsla(var(--secondary-light))","--btn-light-fg-hover":"hsla(var(--secondary-light))","--btn-light-bg-hover":"hsla(var(--secondary-light) / 0.15)","--btn-light-fg":"hsla(var(--secondary-light))","--btn-flat-fg":"hsla(var(--secondary-light))","--btn-flat-bg":"hsla(var(--secondary-dark) / 0.15)","--btn-flat-bg-hover":"hsla(var(--secondary-dark) / 0.3)","--btn-flat-fg-hover":"hsla(var(--secondary-light))"},error:{"--btn-bg":"hsl(var(--error))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--error-light))","--btn-text-fg-hover":"hsla(var(--error-light))","--btn-outline-border-hover":"hsla(var(--error-light))","--btn-outline-bg-hover":"hsla(var(--error-light) / 0.15)","--btn-link-fg":"hsla(var(--error-light))","--btn-light-fg-hover":"hsla(var(--error-light))","--btn-light-bg-hover":"hsla(var(--error-light) / 0.15)","--btn-light-fg":"hsla(var(--error-light))","--btn-flat-fg":"hsla(var(--error-light))","--btn-flat-bg":"hsla(var(--error) / 0.15)","--btn-flat-bg-hover":"hsla(var(--error) / 0.3)","--btn-flat-fg-hover":"hsla(var(--error-light))"},warning:{"--btn-bg":"hsl(var(--warning))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--warning-light))","--btn-text-fg-hover":"hsla(var(--warning-light))","--btn-outline-border-hover":"hsla(var(--warning-light))","--btn-outline-bg-hover":"hsla(var(--warning-light) / 0.15)","--btn-link-fg":"hsla(var(--warning-light))","--btn-light-fg-hover":"hsla(var(--warning-light))","--btn-light-bg-hover":"hsla(var(--warning-light) / 0.15)","--btn-light-fg":"hsla(var(--warning-light))","--btn-flat-fg":"hsla(var(--warning-light))","--btn-flat-bg":"hsla(var(--warning) / 0.15)","--btn-flat-bg-hover":"hsla(var(--warning) / 0.3)","--btn-flat-fg-hover":"hsla(var(--warning-light))"},info:{"--btn-bg":"hsl(var(--info))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--info-light))","--btn-text-fg-hover":"hsla(var(--info-light))","--btn-outline-border-hover":"hsla(var(--info-light))","--btn-outline-bg-hover":"hsla(var(--info-light) / 0.15)","--btn-link-fg":"hsla(var(--info-light))","--btn-light-fg-hover":"hsla(var(--info-light))","--btn-light-bg-hover":"hsla(var(--info-light) / 0.15)","--btn-light-fg":"hsla(var(--info-light))","--btn-flat-fg":"hsla(var(--info-light))","--btn-flat-bg":"hsla(var(--info) / 0.15)","--btn-flat-bg-hover":"hsla(var(--info) / 0.3)","--btn-flat-fg-hover":"hsla(var(--info-light))"},success:{"--btn-bg":"hsl(var(--success))","--btn-fg":"hsl(var(--foreground))","--btn-bg-hover":"hsla(var(--success-light))","--btn-text-fg-hover":"hsla(var(--success-light))","--btn-outline-border-hover":"hsla(var(--success-light))","--btn-outline-bg-hover":"hsla(var(--success-light) / 0.15)","--btn-link-fg":"hsla(var(--success-light))","--btn-light-fg-hover":"hsla(var(--success-light))","--btn-light-bg-hover":"hsla(var(--success-light) / 0.15)","--btn-light-fg":"hsla(var(--success-light))","--btn-flat-fg":"hsla(var(--success-light))","--btn-flat-bg":"hsla(var(--success) / 0.15)","--btn-flat-bg-hover":"hsla(var(--success) / 0.3)","--btn-flat-fg-hover":"hsla(var(--success-light))"}};function Tn({className:e,variant:t,color:n="primary",shape:r,size:o,density:a,asChild:s=!1,...i}){const l=s?Yt:"button";return p.jsx(l,{"data-slot":"button",className:N(Cr({variant:t,size:o,className:e,density:a,shape:r})),style:{...$D[n]},...i})}const LD=ND,FD=PD,Lx=MD,cf=d.forwardRef(({className:e,...t},n)=>p.jsx(Tx,{className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));cf.displayName=Tx.displayName;const Fx=d.forwardRef(({className:e,...t},n)=>p.jsxs(Lx,{children:[p.jsx(cf,{}),p.jsx(Ox,{ref:n,className:N("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Fx.displayName=Ox.displayName;const Bx=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t});Bx.displayName="AlertDialogHeader";const zx=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});zx.displayName="AlertDialogFooter";const qx=d.forwardRef(({className:e,...t},n)=>p.jsx(Ix,{ref:n,className:N("text-lg font-semibold",e),...t}));qx.displayName=Ix.displayName;const Wx=d.forwardRef(({className:e,...t},n)=>p.jsx(kx,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));Wx.displayName=kx.displayName;const Hx=d.forwardRef(({className:e,...t},n)=>p.jsx(Ax,{ref:n,asChild:!0,className:N(Cr(),e),...t,children:p.jsx(Tn,{children:t.children})}));Hx.displayName=Ax.displayName;const Vx=d.forwardRef(({className:e,...t},n)=>p.jsx(Dx,{ref:n,asChild:!0,className:N("mt-2 sm:mt-0",e),...t,children:p.jsx(Tn,{color:"error",variant:"outline",children:t.children})}));Vx.displayName=Dx.displayName;const BD=Ke({base:"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Gx=d.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:N(BD({variant:t}),e),...n}));Gx.displayName="Alert";const Ux=d.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:N("mb-1 font-medium leading-none tracking-tight",e),...t}));Ux.displayName="AlertTitle";const Kx=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:N("text-sm [&_p]:leading-relaxed",e),...t}));Kx.displayName="AlertDescription";var zD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tt=zD.reduce((e,t)=>{const n=$x(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qD="AspectRatio",Yx=d.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return p.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:p.jsx(tt.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});Yx.displayName=qD;var WD=Yx;const HD=WD;function Xx(e,t=[]){let n=[];function r(a,s){const i=d.createContext(s);i.displayName=a+"Context";const l=n.length;n=[...n,s];const u=c=>{const{scope:m,children:h,...v}=c,g=m?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return p.jsx(g.Provider,{value:b,children:h})};u.displayName=a+"Provider";function f(c,m){const h=m?.[e]?.[l]||i,v=d.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,VD(o,...t)]}function VD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:u})=>{const c=l(a)[`__scope${u}`];return{...i,...c}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ha=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ga={exports:{}},wi={};var Tm;function GD(){if(Tm)return wi;Tm=1;var e=w;function t(c,m){return c===m&&(c!==0||1/c===1/m)||c!==c&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(c,m){var h=m(),v=r({inst:{value:h,getSnapshot:m}}),g=v[0].inst,b=v[1];return a(function(){g.value=h,g.getSnapshot=m,l(g)&&b({inst:g})},[c,h,m]),o(function(){return l(g)&&b({inst:g}),c(function(){l(g)&&b({inst:g})})},[c]),s(h),h}function l(c){var m=c.getSnapshot;c=c.value;try{var h=m();return!n(c,h)}catch{return!0}}function u(c,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return wi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,wi}var Si={};var Om;function UD(){return Om||(Om=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=v();if(!c){var b=v();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}b=s({inst:{value:g,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=g,y.getSnapshot=v,n(y)&&x({inst:y})},[h,g,v]),i(function(){return n(y)&&x({inst:y}),h(function(){n(y)&&x({inst:y})})},[h]),u(g),g}function n(h){var v=h.getSnapshot;h=h.value;try{var g=v();return!a(h,g)}catch{return!0}}function r(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=w,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,f=!1,c=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Si.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Si}var Am;function KD(){return Am||(Am=1,process.env.NODE_ENV==="production"?ga.exports=GD():ga.exports=UD()),ga.exports}var YD=KD();function XD(){return YD.useSyncExternalStore(ZD,()=>!0,()=>!1)}function ZD(){return()=>{}}var uf="Avatar",[QD]=Xx(uf),[JD,Zx]=QD(uf),Qx=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return p.jsx(JD,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:p.jsx(tt.span,{...r,ref:t})})});Qx.displayName=uf;var Jx="AvatarImage",ew=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Zx(Jx,n),i=eI(r,a),l=Me(u=>{o(u),s.onImageLoadingStatusChange(u)});return Ie(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?p.jsx(tt.img,{...a,ref:t,src:r}):null});ew.displayName=Jx;var tw="AvatarFallback",nw=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Zx(tw,n),[s,i]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?p.jsx(tt.span,{...o,ref:t}):null});nw.displayName=tw;function Dm(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function eI(e,{referrerPolicy:t,crossOrigin:n}){const r=XD(),o=d.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=d.useState(()=>Dm(a,e));return Ie(()=>{i(Dm(a,e))},[a,e]),Ie(()=>{const l=c=>()=>{i(c)};if(!a)return;const u=l("loaded"),f=l("error");return a.addEventListener("load",u),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",f)}},[a,n,t]),s}var rw=Qx,ow=ew,aw=nw;const sw=d.forwardRef(({className:e,...t},n)=>p.jsx(rw,{ref:n,className:N("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));sw.displayName=rw.displayName;const iw=d.forwardRef(({className:e,...t},n)=>p.jsx(ow,{ref:n,className:N("aspect-square h-full w-full",e),...t}));iw.displayName=ow.displayName;const lw=d.forwardRef(({className:e,...t},n)=>p.jsx(aw,{ref:n,className:N("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));lw.displayName=aw.displayName;const cw=Ke({base:"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function tI({className:e,variant:t,...n}){return p.jsx("div",{className:N(cw({variant:t}),e),...n})}const uw=d.forwardRef(({...e},t)=>p.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));uw.displayName="Breadcrumb";const dw=d.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:N("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));dw.displayName="BreadcrumbList";const fw=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:N("inline-flex items-center gap-1.5",e),...t}));fw.displayName="BreadcrumbItem";const pw=d.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?Yt:"a";return p.jsx(o,{ref:r,className:N("transition-colors hover:text-foreground",t),...n})});pw.displayName="BreadcrumbLink";const mw=d.forwardRef(({className:e,...t},n)=>p.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:N("font-normal text-foreground",e),...t}));mw.displayName="BreadcrumbPage";const hw=({children:e,className:t,...n})=>p.jsx("li",{role:"presentation","aria-hidden":"true",className:N("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??p.jsx(Ir,{})});hw.displayName="BreadcrumbSeparator";const gw=({className:e,...t})=>p.jsxs("span",{role:"presentation","aria-hidden":"true",className:N("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(Ty,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More"})]});gw.displayName="BreadcrumbElipssis";var nI="Separator",Im="horizontal",rI=["horizontal","vertical"],vw=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Im,...o}=e,a=oI(r)?r:Im,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return p.jsx(tt.div,{"data-orientation":a,...i,...o,ref:t})});vw.displayName=nI;function oI(e){return rI.includes(e)}var bw=vw;const Fr=d.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx(bw,{ref:o,decorative:n,orientation:t,className:N("shrink-0 bg-border/45",t==="horizontal"?"h-[2px] w-full":"h-full w-[2px]",e),...r}));Fr.displayName=bw.displayName;const yw=Ke({base:"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function aI({className:e,orientation:t,...n}){return p.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:N(yw({orientation:t}),e),...n})}function sI({className:e,asChild:t=!1,...n}){const r=t?Yt:"div";return p.jsx(r,{className:N("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...n})}function iI({className:e,orientation:t="vertical",...n}){return p.jsx(Fr,{"data-slot":"button-group-separator",orientation:t,className:N("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),...n})}function lI(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const cI={},oo={};function qn(e,t){try{const r=(cI[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in oo?oo[r]:km(r,r.split(":"))}catch{if(e in oo)return oo[e];const n=e?.match(uI);return n?km(e,n.slice(1)):NaN}}const uI=/([+-]\d\d):?(\d\d)?/;function km(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return oo[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Vt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(qn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),xw(this),nd(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Vt(...n,t):new Vt(Date.now(),t)}withTimeZone(t){return new Vt(+this,t)}getTimezoneOffset(){const t=-qn(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),nd(this),+this}[Symbol.for("constructDateFrom")](t){return new Vt(+new Date(t),this.timeZone)}}const jm=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!jm.test(e))return;const t=e.replace(jm,"$1UTC");Vt.prototype[t]&&(e.startsWith("get")?Vt.prototype[e]=function(){return this.internal[t]()}:(Vt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),dI(this),+this},Vt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),nd(this),+this}))});function nd(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-qn(e.timeZone,e)*60))}function dI(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),xw(e)}function xw(e){const t=qn(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),s=o-a,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,c=Math.round(-(qn(e.timeZone,e)*60))%60;(c||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+c+f));const m=qn(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,b=h!==n,y=g-l;if(b&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const x=qn(e.timeZone,e),S=x>0?Math.floor(x):Math.ceil(x),C=h-S;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class un extends Vt{static tz(t,...n){return n.length?new un(...n,t):new un(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${lI(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new un(+this,t)}[Symbol.for("constructDateFrom")](t){return new un(+new Date(t),this.timeZone)}}const ww=6048e5,fI=864e5,$m=Symbol.for("constructDateFrom");function Ue(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&$m in e?e[$m](t):e instanceof Date?new e.constructor(t):new Date(t)}function Pe(e,t){return Ue(t||e,e)}function Sw(e,t,n){const r=Pe(e,n?.in);return isNaN(t)?Ue(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Cw(e,t,n){const r=Pe(e,n?.in);if(isNaN(t))return Ue(e,NaN);if(!t)return r;const o=r.getDate(),a=Ue(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let pI={};function Fo(){return pI}function _r(e,t){const n=Fo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Pe(e,t?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function ho(e,t){return _r(e,{...t,weekStartsOn:1})}function _w(e,t){const n=Pe(e,t?.in),r=n.getFullYear(),o=Ue(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=ho(o),s=Ue(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=ho(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Lm(e){const t=Pe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Br(e,...t){const n=Ue.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function go(e,t){const n=Pe(e,t?.in);return n.setHours(0,0,0,0),n}function Ew(e,t,n){const[r,o]=Br(n?.in,e,t),a=go(r),s=go(o),i=+a-Lm(a),l=+s-Lm(s);return Math.round((i-l)/fI)}function mI(e,t){const n=_w(e,t),r=Ue(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ho(r)}function hI(e,t,n){return Sw(e,t*7,n)}function gI(e,t,n){return Cw(e,t*12,n)}function vI(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ue.bind(null,o));const a=Pe(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),Ue(r,n||NaN)}function bI(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ue.bind(null,o));const a=Pe(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),Ue(r,n||NaN)}function yI(e,t,n){const[r,o]=Br(n?.in,e,t);return+go(r)==+go(o)}function Rw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xI(e){return!(!Rw(e)&&typeof e!="number"||isNaN(+Pe(e)))}function wI(e,t,n){const[r,o]=Br(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function SI(e,t){const n=Pe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Nw(e,t){const[n,r]=Br(e,t.start,t.end);return{start:n,end:r}}function CI(e,t){const{start:n,end:r}=Nw(t?.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push(Ue(n,s)),s.setMonth(s.getMonth()+i);return o?l.reverse():l}function _I(e,t){const n=Pe(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function EI(e,t){const n=Pe(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Pw(e,t){const n=Pe(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function RI(e,t){const{start:n,end:r}=Nw(t?.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setMonth(0,1);let i=1;const l=[];for(;+s<=a;)l.push(Ue(n,s)),s.setFullYear(s.getFullYear()+i);return o?l.reverse():l}function Mw(e,t){const n=Fo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Pe(e,t?.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function NI(e,t){return Mw(e,{...t,weekStartsOn:1})}const PI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},MI=(e,t,n)=>{let r;const o=PI[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ci(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const TI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},AI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DI={date:Ci({formats:TI,defaultWidth:"full"}),time:Ci({formats:OI,defaultWidth:"full"}),dateTime:Ci({formats:AI,defaultWidth:"full"})},II={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},kI=(e,t,n,r)=>II[e];function Xr(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const jI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$I={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},LI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},BI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qI=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},WI={ordinalNumber:qI,era:Xr({values:jI,defaultWidth:"wide"}),quarter:Xr({values:$I,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xr({values:LI,defaultWidth:"wide"}),day:Xr({values:FI,defaultWidth:"wide"}),dayPeriod:Xr({values:BI,defaultWidth:"wide",formattingValues:zI,defaultFormattingWidth:"wide"})};function Zr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?VI(i,c=>c.test(s)):HI(i,c=>c.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(s.length);return{value:u,rest:f}}}function HI(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function VI(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function GI(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const UI=/^(\d+)(th|st|nd|rd)?/i,KI=/\d+/i,YI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XI={any:[/^b/i,/^(a|c)/i]},ZI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},QI={any:[/1/i,/2/i,/3/i,/4/i]},JI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ek={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tk={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nk={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},rk={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ok={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ak={ordinalNumber:GI({matchPattern:UI,parsePattern:KI,valueCallback:e=>parseInt(e,10)}),era:Zr({matchPatterns:YI,defaultMatchWidth:"wide",parsePatterns:XI,defaultParseWidth:"any"}),quarter:Zr({matchPatterns:ZI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Zr({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:ek,defaultParseWidth:"any"}),day:Zr({matchPatterns:tk,defaultMatchWidth:"wide",parsePatterns:nk,defaultParseWidth:"any"}),dayPeriod:Zr({matchPatterns:rk,defaultMatchWidth:"any",parsePatterns:ok,defaultParseWidth:"any"})},df={code:"en-US",formatDistance:MI,formatLong:DI,formatRelative:kI,localize:WI,match:ak,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sk(e,t){const n=Pe(e,t?.in);return Ew(n,Pw(n))+1}function Tw(e,t){const n=Pe(e,t?.in),r=+ho(n)-+mI(n);return Math.round(r/ww)+1}function Ow(e,t){const n=Pe(e,t?.in),r=n.getFullYear(),o=Fo(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=Ue(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=_r(s,t),l=Ue(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=_r(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function ik(e,t){const n=Fo(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Ow(e,t),a=Ue(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),_r(a,t)}function Aw(e,t){const n=Pe(e,t?.in),r=+_r(n,t)-+ik(n,t);return Math.round(r/ww)+1}function Ne(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ne(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ne(n+1,2)},d(e,t){return Ne(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ne(e.getHours()%12||12,t.length)},H(e,t){return Ne(e.getHours(),t.length)},m(e,t){return Ne(e.getMinutes(),t.length)},s(e,t){return Ne(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ne(o,t.length)}},fr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fm={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return xn.y(e,t)},Y:function(e,t,n,r){const o=Ow(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return Ne(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ne(a,t.length)},R:function(e,t){const n=_w(e);return Ne(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ne(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ne(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ne(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return xn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ne(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Aw(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Ne(o,t.length)},I:function(e,t,n){const r=Tw(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ne(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xn.d(e,t)},D:function(e,t,n){const r=sk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ne(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ne(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ne(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Ne(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=fr.noon:r===0?o=fr.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=fr.evening:r>=12?o=fr.afternoon:r>=4?o=fr.morning:o=fr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return xn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xn.s(e,t)},S:function(e,t){return xn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return zm(r);case"XXXX":case"XX":return Bn(r);case"XXXXX":case"XXX":default:return Bn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return zm(r);case"xxxx":case"xx":return Bn(r);case"xxxxx":case"xxx":default:return Bn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Bm(r,":");case"OOOO":default:return"GMT"+Bn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Bm(r,":");case"zzzz":default:return"GMT"+Bn(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ne(r,t.length)},T:function(e,t,n){return Ne(+e,t.length)}};function Bm(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Ne(a,2)}function zm(e,t){return e%60===0?(e>0?"-":"+")+Ne(Math.abs(e)/60,2):Bn(e,t)}function Bn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ne(Math.trunc(r/60),2),a=Ne(r%60,2);return n+o+t+a}const qm=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Dw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},lk=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return qm(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",qm(r,t)).replace("{{time}}",Dw(o,t))},ck={p:Dw,P:lk},uk=/^D+$/,dk=/^Y+$/,fk=["D","DD","YY","YYYY"];function pk(e){return uk.test(e)}function mk(e){return dk.test(e)}function hk(e,t,n){const r=gk(e,t,n);if(console.warn(r),fk.includes(e))throw new RangeError(r)}function gk(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const vk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yk=/^'([^]*?)'?$/,xk=/''/g,wk=/[a-zA-Z]/;function Sk(e,t,n){const r=Fo(),o=n?.locale??r.locale??df,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Pe(e,n?.in);if(!xI(i))throw new RangeError("Invalid time value");let l=t.match(bk).map(f=>{const c=f[0];if(c==="p"||c==="P"){const m=ck[c];return m(f,o.formatLong)}return f}).join("").match(vk).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const c=f[0];if(c==="'")return{isToken:!1,value:Ck(f)};if(Fm[c])return{isToken:!0,value:f};if(c.match(wk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const c=f.value;(!n?.useAdditionalWeekYearTokens&&mk(c)||!n?.useAdditionalDayOfYearTokens&&pk(c))&&hk(c,t,String(e));const m=Fm[c[0]];return m(i,c,o.localize,u)}).join("")}function Ck(e){const t=e.match(yk);return t?t[1].replace(xk,"'"):e}function _k(e,t){const n=Pe(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=Ue(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Ek(e,t){return Pe(e,t?.in).getMonth()}function Rk(e,t){return Pe(e,t?.in).getFullYear()}function Nk(e,t){return+Pe(e)>+Pe(t)}function Pk(e,t){return+Pe(e)<+Pe(t)}function Mk(e,t,n){const[r,o]=Br(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Tk(e,t,n){const[r,o]=Br(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Ok(e,t,n){const r=Pe(e,n?.in),o=r.getFullYear(),a=r.getDate(),s=Ue(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=_k(s);return r.setMonth(t,Math.min(a,i)),r}function Ak(e,t,n){const r=Pe(e,n?.in);return isNaN(+r)?Ue(e,NaN):(r.setFullYear(t),r)}const Wm=5,Dk=4;function Ik(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Wm*7-1);return t.getMonth(e)===t.getMonth(a)?Wm:Dk}function Iw(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function kk(e,t){const n=Iw(e,t),r=Ik(e,t);return t.addDays(n,r*7-1)}class vt{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?un.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,a)=>this.overrides?.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new un(r,o,a,this.options.timeZone):new Date(r,o,a),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Sw(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Cw(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):hI(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):gI(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Ew(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):wI(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):CI(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):RI(r),a=new Set(o.map(i=>this.getYear(i)));if(a.size===o.length)return o;const s=[];return a.forEach(i=>{s.push(new Date(i,0,1))}),s},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):kk(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):NI(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):SI(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Mw(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):EI(r),this.format=(r,o,a)=>{const s=this.overrides?.format?this.overrides.format(r,o,this.options):Sk(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Tw(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):Ek(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):Rk(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Aw(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):Nk(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):Pk(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Rw(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):yI(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):Mk(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):Tk(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):vI(r),this.min=r=>this.overrides?.min?this.overrides.min(r):bI(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):Ok(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):Ak(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Iw(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):go(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):ho(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):_I(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):_r(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Pw(r),this.options={locale:df,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&vt.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n?.code;if(a&&vt.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}}vt.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Zt=new vt;class kw{constructor(t,n,r=Zt){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class jk{constructor(t,n){this.date=t,this.weeks=n}}class $k{constructor(t,n){this.days=n,this.weekNumber=t}}function Lk(e){return w.createElement("button",{...e})}function Fk(e){return w.createElement("span",{...e})}function Bk(e){const{size:t=24,orientation:n="left",className:r}=e;return w.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&w.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&w.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&w.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&w.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function zk(e){const{day:t,modifiers:n,...r}=e;return w.createElement("td",{...r})}function qk(e){const{day:t,modifiers:n,...r}=e,o=w.useRef(null);return w.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),w.createElement("button",{ref:o,...r})}var ue;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(ue||(ue={}));var Fe;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Fe||(Fe={}));var Mt;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Mt||(Mt={}));var pt;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(pt||(pt={}));function Wk(e){const{options:t,className:n,components:r,classNames:o,...a}=e,s=[o[ue.Dropdown],n].join(" "),i=t?.find(({value:l})=>l===a.value);return w.createElement("span",{"data-disabled":a.disabled,className:o[ue.DropdownRoot]},w.createElement(r.Select,{className:s,...a},t?.map(({value:l,label:u,disabled:f})=>w.createElement(r.Option,{key:l,value:l,disabled:f},u))),w.createElement("span",{className:o[ue.CaptionLabel],"aria-hidden":!0},i?.label,w.createElement(r.Chevron,{orientation:"down",size:18,className:o[ue.Chevron]})))}function Hk(e){return w.createElement("div",{...e})}function Vk(e){return w.createElement("div",{...e})}function Gk(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r},e.children)}function Uk(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r})}function Kk(e){return w.createElement("table",{...e})}function Yk(e){return w.createElement("div",{...e})}const jw=w.createContext(void 0);function Bo(){const e=w.useContext(jw);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Xk(e){const{components:t}=Bo();return w.createElement(t.Dropdown,{...e})}function Zk(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:s,classNames:i,labels:{labelPrevious:l,labelNext:u}}=Bo(),f=w.useCallback(m=>{o&&n?.(m)},[o,n]),c=w.useCallback(m=>{r&&t?.(m)},[r,t]);return w.createElement("nav",{...a},w.createElement(s.PreviousMonthButton,{type:"button",className:i[ue.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:c},w.createElement(s.Chevron,{disabled:r?void 0:!0,className:i[ue.Chevron],orientation:"left"})),w.createElement(s.NextMonthButton,{type:"button",className:i[ue.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},w.createElement(s.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[ue.Chevron]})))}function Qk(e){const{components:t}=Bo();return w.createElement(t.Button,{...e})}function Jk(e){return w.createElement("option",{...e})}function ej(e){const{components:t}=Bo();return w.createElement(t.Button,{...e})}function tj(e){const{rootRef:t,...n}=e;return w.createElement("div",{...n,ref:t})}function nj(e){return w.createElement("select",{...e})}function rj(e){const{week:t,...n}=e;return w.createElement("tr",{...n})}function oj(e){return w.createElement("th",{...e})}function aj(e){return w.createElement("thead",{"aria-hidden":!0},w.createElement("tr",{...e}))}function sj(e){const{week:t,...n}=e;return w.createElement("th",{...n})}function ij(e){return w.createElement("th",{...e})}function lj(e){return w.createElement("tbody",{...e})}function cj(e){const{components:t}=Bo();return w.createElement(t.Dropdown,{...e})}const uj=Object.freeze(Object.defineProperty({__proto__:null,Button:Lk,CaptionLabel:Fk,Chevron:Bk,Day:zk,DayButton:qk,Dropdown:Wk,DropdownNav:Hk,Footer:Vk,Month:Gk,MonthCaption:Uk,MonthGrid:Kk,Months:Yk,MonthsDropdown:Xk,Nav:Zk,NextMonthButton:Qk,Option:Jk,PreviousMonthButton:ej,Root:tj,Select:nj,Week:rj,WeekNumber:sj,WeekNumberHeader:ij,Weekday:oj,Weekdays:aj,Weeks:lj,YearsDropdown:cj},Symbol.toStringTag,{value:"Module"}));function dn(e,t,n=!1,r=Zt){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=r;return o&&a?(s(a,o)<0&&([o,a]=[a,o]),s(t,o)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?i(a,t):!n&&o?i(o,t):!1}function ff(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Cs(e){return!!(e&&typeof e=="object"&&"from"in e)}function pf(e){return!!(e&&typeof e=="object"&&"after"in e)}function mf(e){return!!(e&&typeof e=="object"&&"before"in e)}function $w(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Lw(e,t){return Array.isArray(e)&&e.every(t.isDate)}function fn(e,t,n=Zt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:s}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Lw(i,n))return i.includes(e);if(Cs(i))return dn(i,e,!1,n);if($w(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(ff(i)){const l=a(i.before,e),u=a(i.after,e),f=l>0,c=u<0;return s(i.before,i.after)?c&&f:f||c}return pf(i)?a(e,i.after)>0:mf(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function dj(e,t,n,r,o){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:c,isSameMonth:m,startOfMonth:h,isBefore:v,endOfMonth:g,isAfter:b}=o,y=n&&h(n),x=r&&g(r),S={[Fe.focused]:[],[Fe.outside]:[],[Fe.disabled]:[],[Fe.hidden]:[],[Fe.today]:[]},C={};for(const E of e){const{date:R,displayMonth:_}=E,P=!!(_&&!m(R,_)),M=!!(y&&v(R,y)),k=!!(x&&b(R,x)),T=!!(a&&fn(R,a,o)),$=!!(s&&fn(R,s,o))||M||k||!u&&!l&&P||u&&l===!1&&P,O=c(R,f);P&&S.outside.push(E),T&&S.disabled.push(E),$&&S.hidden.push(E),O&&S.today.push(E),i&&Object.keys(i).forEach(L=>{const F=i?.[L];F&&fn(R,F,o)&&(C[L]?C[L].push(E):C[L]=[E])})}return E=>{const R={[Fe.focused]:!1,[Fe.disabled]:!1,[Fe.hidden]:!1,[Fe.outside]:!1,[Fe.today]:!1},_={};for(const P in S){const M=S[P];R[P]=M.some(k=>k===E)}for(const P in C)_[P]=C[P].some(M=>M===E);return{...R,..._}}}function fj(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[Fe[a]]?o.push(t[Fe[a]]):t[Mt[a]]&&o.push(t[Mt[a]]),o),[t[ue.Day]])}function pj(e){return{...uj,...e}}function mj(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function hf(){const e={};for(const t in ue)e[ue[t]]=`rdp-${ue[t]}`;for(const t in Fe)e[Fe[t]]=`rdp-${Fe[t]}`;for(const t in Mt)e[Mt[t]]=`rdp-${Mt[t]}`;for(const t in pt)e[pt[t]]=`rdp-${pt[t]}`;return e}function Fw(e,t,n){return(n??new vt(t)).formatMonthYear(e)}const hj=Fw;function gj(e,t,n){return(n??new vt(t)).format(e,"d")}function vj(e,t=Zt){return t.format(e,"LLLL")}function bj(e,t,n){return(n??new vt(t)).format(e,"cccccc")}function yj(e,t=Zt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function xj(){return""}function Bw(e,t=Zt){return t.format(e,"yyyy")}const wj=Bw,Sj=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Fw,formatDay:gj,formatMonthCaption:hj,formatMonthDropdown:vj,formatWeekNumber:yj,formatWeekNumberHeader:xj,formatWeekdayName:bj,formatYearCaption:wj,formatYearDropdown:Bw},Symbol.toStringTag,{value:"Module"}));function Cj(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Sj,...e}}function _j(e,t,n,r,o){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:s(e),end:i(e)}).map(m=>{const h=r.formatMonthDropdown(m,o),v=u(m),g=t&&m<a(t)||n&&m>a(n)||!1;return{value:v,label:h,disabled:g}})}function Ej(e,t={},n={}){let r={...t?.[ue.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function Rj(e,t,n,r){const o=r??e.today(),a=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),s=[];for(let i=0;i<7;i++){const l=e.addDays(a,i);s.push(l)}return s}function Nj(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:s,eachYearOfInterval:i,getYear:l}=r,u=a(e),f=s(t),c=i({start:u,end:f});return o&&c.reverse(),c.map(m=>{const h=n.formatYearDropdown(m,r);return{value:l(m),label:h,disabled:!1}})}function zw(e,t,n,r){let o=(r??new vt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Pj=zw;function qw(e,t,n){return(n??new vt(t)).formatMonthYear(e)}const Mj=qw;function Tj(e,t,n,r){let o=(r??new vt(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function Oj(e){return"Choose the Month"}function Aj(){return""}function Dj(e){return"Go to the Next Month"}function Ij(e){return"Go to the Previous Month"}function kj(e,t,n){return(n??new vt(t)).format(e,"cccc")}function jj(e,t){return`Week ${e}`}function $j(e){return"Week Number"}function Lj(e){return"Choose the Year"}const Fj=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Mj,labelDay:Pj,labelDayButton:zw,labelGrid:qw,labelGridcell:Tj,labelMonthDropdown:Oj,labelNav:Aj,labelNext:Dj,labelPrevious:Ij,labelWeekNumber:jj,labelWeekNumberHeader:$j,labelWeekday:kj,labelYearDropdown:Lj},Symbol.toStringTag,{value:"Module"})),zo=e=>e instanceof HTMLElement?e:null,_i=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Bj=e=>zo(e.querySelector("[data-animated-month]")),Ei=e=>zo(e.querySelector("[data-animated-caption]")),Ri=e=>zo(e.querySelector("[data-animated-weeks]")),zj=e=>zo(e.querySelector("[data-animated-nav]")),qj=e=>zo(e.querySelector("[data-animated-weekdays]"));function Wj(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const s=w.useRef(null),i=w.useRef(r),l=w.useRef(!1);w.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=a.isSameMonth(r[0].date,u[0].date),c=a.isAfter(r[0].date,u[0].date),m=c?n[pt.caption_after_enter]:n[pt.caption_before_enter],h=c?n[pt.weeks_after_enter]:n[pt.weeks_before_enter],v=s.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(_i(g).forEach(S=>{if(!(S instanceof HTMLElement))return;const C=Bj(S);C&&S.contains(C)&&S.removeChild(C);const E=Ei(S);E&&E.classList.remove(m);const R=Ri(S);R&&R.classList.remove(h)}),s.current=g):s.current=null,l.current||f||o)return;const b=v instanceof HTMLElement?_i(v):[],y=_i(e.current);if(y?.every(x=>x instanceof HTMLElement)&&b&&b.every(x=>x instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const x=zj(e.current);x&&(x.style.zIndex="1"),y.forEach((S,C)=>{const E=b[C];if(!E)return;S.style.position="relative",S.style.overflow="hidden";const R=Ei(S);R&&R.classList.add(m);const _=Ri(S);_&&_.classList.add(h);const P=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),R&&R.classList.remove(m),_&&_.classList.remove(h),S.style.position="",S.style.overflow="",S.contains(E)&&S.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const M=qj(E);M&&(M.style.opacity="0");const k=Ei(E);k&&(k.classList.add(c?n[pt.caption_before_exit]:n[pt.caption_after_exit]),k.addEventListener("animationend",P));const T=Ri(E);T&&T.classList.add(c?n[pt.weeks_before_exit]:n[pt.weeks_after_exit]),S.insertBefore(E,S.firstChild)})}})}function Hj(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:c,endOfBroadcastWeek:m,endOfISOWeek:h,endOfMonth:v,endOfWeek:g,isAfter:b,startOfBroadcastWeek:y,startOfISOWeek:x,startOfWeek:S}=r,C=l?y(o,r):s?x(o):S(o),E=l?m(a):s?h(v(a)):g(v(a)),R=f(E,C),_=c(a,o)+1,P=[];for(let T=0;T<=R;T++){const $=u(C,T);if(t&&b($,t))break;P.push($)}const k=(l?35:42)*_;if(i&&P.length<k){const T=k-P.length;for(let $=0;$<T;$++){const O=u(P[P.length-1],1);P.push(O)}}return P}function Vj(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,s)=>a.concat(s.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Gj(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let s=0;s<o;s++){const i=r.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function Hm(e,t,n,r){const{month:o,defaultMonth:a,today:s=r.today(),numberOfMonths:i=1}=e;let l=o||a||s;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:c}=r;if(n&&u(n,l)<i-1){const m=-1*(i-1);l=f(n,m)}return t&&u(l,t)<0&&(l=t),c(l)}function Uj(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:c,startOfISOWeek:m,startOfWeek:h}=r,v=e.reduce((g,b)=>{const y=n.broadcastCalendar?c(b,r):n.ISOWeek?m(b):h(b),x=n.broadcastCalendar?a(b):n.ISOWeek?s(i(b)):l(i(b)),S=t.filter(_=>_>=y&&_<=x),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<C){const _=t.filter(P=>{const M=C-S.length;return P>x&&P<=o(x,M)});S.push(..._)}const E=S.reduce((_,P)=>{const M=n.ISOWeek?u(P):f(P),k=_.find($=>$.weekNumber===M),T=new kw(P,b,r);return k?k.days.push(T):_.push(new $k(M,[T])),_},[]),R=new jk(b,E);return g.push(R),g},[]);return n.reverseMonths?v.reverse():v}function Kj(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:u,newDate:f,today:c}=t,{fromYear:m,toYear:h,fromMonth:v,toMonth:g}=e;!n&&v&&(n=v),!n&&m&&(n=t.newDate(m,0,1)),!r&&g&&(r=g),!r&&h&&(r=f(h,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=s(n):m?n=f(m,0,1):!n&&b&&(n=o(l(e.today??c(),-100))),r?r=i(r):h?r=f(h,11,31):!r&&b&&(r=u(e.today??c())),[n&&a(n),r&&a(r)]}function Yj(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,u=o?a:1,f=s(e);if(!t)return i(f,u);if(!(l(t,e)<a))return i(f,u)}function Xj(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,u=o?a??1:1,f=s(e);if(!t)return i(f,-u);if(!(l(f,t)<=0))return i(f,-u)}function Zj(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function _s(e,t){const[n,r]=w.useState(e);return[t===void 0?n:t,r]}function Qj(e,t){const[n,r]=Kj(e,t),{startOfMonth:o,endOfMonth:a}=t,s=Hm(e,n,r,t),[i,l]=_s(s,e.month?s:void 0);w.useEffect(()=>{const C=Hm(e,n,r,t);l(C)},[e.timeZone]);const{months:u,weeks:f,days:c,previousMonth:m,nextMonth:h}=w.useMemo(()=>{const C=Gj(i,r,{numberOfMonths:e.numberOfMonths},t),E=Hj(C,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),R=Uj(C,E,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),_=Zj(R),P=Vj(R),M=Xj(i,n,e,t),k=Yj(i,r,e,t);return{months:R,weeks:_,days:P,previousMonth:M,nextMonth:k}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:v,onMonthChange:g}=e,b=C=>f.some(E=>E.days.some(R=>R.isEqualTo(C))),y=C=>{if(v)return;let E=o(C);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),g?.(E)};return{months:u,weeks:f,days:c,navStart:n,navEnd:r,previousMonth:m,nextMonth:h,goToMonth:y,goToDay:C=>{b(C)||y(C.date)}}}var Wt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Wt||(Wt={}));function Vm(e){return!e[Fe.disabled]&&!e[Fe.hidden]&&!e[Fe.outside]}function Jj(e,t,n,r){let o,a=-1;for(const s of e){const i=t(s);Vm(i)&&(i[Fe.focused]&&a<Wt.FocusedModifier?(o=s,a=Wt.FocusedModifier):r?.isEqualTo(s)&&a<Wt.LastFocused?(o=s,a=Wt.LastFocused):n(s.date)&&a<Wt.Selected?(o=s,a=Wt.Selected):i[Fe.today]&&a<Wt.Today&&(o=s,a=Wt.Today))}return o||(o=e.find(s=>Vm(t(s)))),o}function e$(e,t,n,r,o,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:u,addMonths:f,addWeeks:c,addYears:m,endOfBroadcastWeek:h,endOfISOWeek:v,endOfWeek:g,max:b,min:y,startOfBroadcastWeek:x,startOfISOWeek:S,startOfWeek:C}=s;let R={day:u,week:c,month:f,year:m,startOfWeek:_=>l?x(_,s):i?S(_):C(_),endOfWeek:_=>l?h(_):i?v(_):g(_)}[e](n,t==="after"?1:-1);return t==="before"&&r?R=b([r,R]):t==="after"&&o&&(R=y([o,R])),R}function Ww(e,t,n,r,o,a,s,i=0){if(i>365)return;const l=e$(e,t,n.date,r,o,a,s),u=!!(a.disabled&&fn(l,a.disabled,s)),f=!!(a.hidden&&fn(l,a.hidden,s)),c=l,m=new kw(l,c,s);return!u&&!f?m:Ww(e,t,m,r,o,a,s,i+1)}function t$(e,t,n,r,o){const{autoFocus:a}=e,[s,i]=w.useState(),l=Jj(t.days,n,r||(()=>!1),s),[u,f]=w.useState(a?l:void 0);return{isFocusTarget:g=>!!l?.isEqualTo(g),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(g,b)=>{if(!u)return;const y=Ww(g,b,u,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(S=>S.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function n$(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=_s(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t,u=h=>i?.some(v=>l(v,h))??!1,{min:f,max:c}=e;return{selected:i,select:(h,v,g)=>{let b=[...i??[]];if(u(h)){if(i?.length===f||r&&i?.length===1)return;b=i?.filter(y=>!l(y,h))}else i?.length===c?b=[h]:b=[...b,h];return o||s(b),o?.(b,h,v,g),b},isSelected:u}}function r$(e,t,n=0,r=0,o=!1,a=Zt){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=a;let c;if(!s&&!i)c={from:e,to:n>0?void 0:e};else if(s&&!i)l(s,e)?n===0?c={from:s,to:e}:o?c={from:s,to:void 0}:c=void 0:f(e,s)?c={from:e,to:s}:c={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))o?c={from:s,to:i}:c=void 0;else if(l(s,e))c={from:s,to:n>0?void 0:e};else if(l(i,e))c={from:e,to:n>0?void 0:e};else if(f(e,s))c={from:e,to:i};else if(u(e,s))c={from:s,to:e};else if(u(e,i))c={from:s,to:e};else throw new Error("Invalid range");if(c?.from&&c?.to){const m=a.differenceInCalendarDays(c.to,c.from);r>0&&m>r?c={from:e,to:void 0}:n>1&&m<n&&(c={from:e,to:void 0})}return c}function o$(e,t,n=Zt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Gm(e,t,n=Zt){return dn(e,t.from,!1,n)||dn(e,t.to,!1,n)||dn(t,e.from,!1,n)||dn(t,e.to,!1,n)}function a$(e,t,n=Zt){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?dn(e,i,!1,n):Lw(i,n)?i.some(l=>dn(e,l,!1,n)):Cs(i)?i.from&&i.to?Gm(e,{from:i.from,to:i.to},n):!1:$w(i)?o$(e,i.dayOfWeek,n):ff(i)?n.isAfter(i.before,i.after)?Gm(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):fn(e.from,i,n)||fn(e.to,i,n):pf(i)||mf(i)?fn(e.from,i,n)||fn(e.to,i,n):!1))return!0;const s=r.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(s.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function s$(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:s}=e,[i,l]=_s(o,s?o:void 0),u=s?o:i;return{selected:u,select:(m,h,v)=>{const{min:g,max:b}=e,y=m?r$(m,u,g,b,a,t):void 0;return r&&n&&y?.from&&y.to&&a$({from:y.from,to:y.to},n,t)&&(y.from=m,y.to=void 0),s||l(y),s?.(y,m,h,v),y},isSelected:m=>u&&dn(u,m,!1,t)}}function i$(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=_s(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t;return{selected:i,select:(c,m,h)=>{let v=c;return!r&&i&&i&&l(c,i)&&(v=void 0),o||s(v),o?.(v,c,m,h),v},isSelected:c=>i?l(i,c):!1}}function l$(e,t){const n=i$(e,t),r=n$(e,t),o=s$(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Qe(e,t){return e instanceof un&&e.timeZone===t?e:new un(e,t)}function Um(e,t){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Qe(e,t):Array.isArray(e)?e.map(n=>n instanceof Date?Qe(n,t):n):Cs(e)?{...e,from:e.from?Qe(e.from,t):e.from,to:e.to?Qe(e.to,t):e.to}:ff(e)?{before:Qe(e.before,t),after:Qe(e.after,t)}:pf(e)?{after:Qe(e.after,t)}:mf(e)?{before:Qe(e.before,t)}:e}function Ni(e,t){return e&&(Array.isArray(e)?e.map(n=>Um(n,t)):Um(e,t))}function c$(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Qe(t.today,n)),t.month&&(t.month=Qe(t.month,n)),t.defaultMonth&&(t.defaultMonth=Qe(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Qe(t.startMonth,n)),t.endMonth&&(t.endMonth=Qe(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Qe(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(X=>Qe(X,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Qe(t.selected.from,n):t.selected.from,to:t.selected.to?Qe(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Ni(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Ni(t.hidden,n)),t.modifiers)){const X={};Object.keys(t.modifiers).forEach(le=>{X[le]=Ni(t.modifiers?.[le],n)}),t.modifiers=X}const{components:r,formatters:o,labels:a,dateLib:s,locale:i,classNames:l}=w.useMemo(()=>{const X={...df,...t.locale};return{dateLib:new vt({locale:X,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:pj(t.components),formatters:Cj(t.formatters),labels:{...Fj,...t.labels},locale:X,classNames:{...hf(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});const{captionLayout:u,mode:f,navLayout:c,numberOfMonths:m=1,onDayBlur:h,onDayClick:v,onDayFocus:g,onDayKeyDown:b,onDayMouseEnter:y,onDayMouseLeave:x,onNextClick:S,onPrevClick:C,showWeekNumber:E,styles:R}=t,{formatCaption:_,formatDay:P,formatMonthDropdown:M,formatWeekNumber:k,formatWeekNumberHeader:T,formatWeekdayName:$,formatYearDropdown:O}=o,L=Qj(t,s),{days:F,months:D,navStart:V,navEnd:H,previousMonth:B,nextMonth:Z,goToMonth:Q}=L,q=dj(F,t,V,H,s),{isSelected:A,select:W,selected:z}=l$(t,s)??{},{blur:K,focused:j,isFocusTarget:G,moveFocus:ee,setFocused:te}=t$(t,L,q,A??(()=>!1),s),{labelDayButton:re,labelGridcell:Y,labelGrid:se,labelMonthDropdown:I,labelNav:oe,labelPrevious:fe,labelNext:pe,labelWeekday:me,labelWeekNumber:de,labelWeekNumberHeader:xe,labelYearDropdown:je}=a,ye=w.useMemo(()=>Rj(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),Ee=f!==void 0||v!==void 0,qe=w.useCallback(()=>{B&&(Q(B),C?.(B))},[B,Q,C]),We=w.useCallback(()=>{Z&&(Q(Z),S?.(Z))},[Q,Z,S]),Ye=w.useCallback((X,le)=>ae=>{ae.preventDefault(),ae.stopPropagation(),te(X),W?.(X.date,le,ae),v?.(X.date,le,ae)},[W,v,te]),Je=w.useCallback((X,le)=>ae=>{te(X),g?.(X.date,le,ae)},[g,te]),st=w.useCallback((X,le)=>ae=>{K(),h?.(X.date,le,ae)},[K,h]),it=w.useCallback((X,le)=>ae=>{const ie={ArrowLeft:[ae.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ae.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ae.shiftKey?"year":"week","after"],ArrowUp:[ae.shiftKey?"year":"week","before"],PageUp:[ae.shiftKey?"year":"month","before"],PageDown:[ae.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ie[ae.key]){ae.preventDefault(),ae.stopPropagation();const[be,J]=ie[ae.key];ee(be,J)}b?.(X.date,le,ae)},[ee,b,t.dir]),He=w.useCallback((X,le)=>ae=>{y?.(X.date,le,ae)},[y]),bt=w.useCallback((X,le)=>ae=>{x?.(X.date,le,ae)},[x]),Ve=w.useCallback(X=>le=>{const ae=Number(le.target.value),ie=s.setMonth(s.startOfMonth(X),ae);Q(ie)},[s,Q]),Xe=w.useCallback(X=>le=>{const ae=Number(le.target.value),ie=s.setYear(s.startOfMonth(X),ae);Q(ie)},[s,Q]),{className:Et,style:zt}=w.useMemo(()=>({className:[l[ue.Root],t.className].filter(Boolean).join(" "),style:{...R?.[ue.Root],...t.style}}),[l,t.className,t.style,R]),gn=mj(t),vn=w.useRef(null);Wj(vn,!!t.animate,{classNames:l,months:D,focused:j,dateLib:s});const rn={dayPickerProps:t,selected:z,select:W,isSelected:A,months:D,nextMonth:Z,previousMonth:B,goToMonth:Q,getModifiers:q,components:r,classNames:l,styles:R,labels:a,formatters:o};return w.createElement(jw.Provider,{value:rn},w.createElement(r.Root,{rootRef:t.animate?vn:void 0,className:Et,style:zt,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...gn},w.createElement(r.Months,{className:l[ue.Months],style:R?.[ue.Months]},!t.hideNavigation&&!c&&w.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ue.Nav],style:R?.[ue.Nav],"aria-label":oe(),onPreviousClick:qe,onNextClick:We,previousMonth:B,nextMonth:Z}),D.map((X,le)=>w.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[ue.Month],style:R?.[ue.Month],key:le,displayIndex:le,calendarMonth:X},c==="around"&&!t.hideNavigation&&le===0&&w.createElement(r.PreviousMonthButton,{type:"button",className:l[ue.PreviousMonthButton],tabIndex:B?void 0:-1,"aria-disabled":B?void 0:!0,"aria-label":fe(B),onClick:qe,"data-animated-button":t.animate?"true":void 0},w.createElement(r.Chevron,{disabled:B?void 0:!0,className:l[ue.Chevron],orientation:t.dir==="rtl"?"right":"left"})),w.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[ue.MonthCaption],style:R?.[ue.MonthCaption],calendarMonth:X,displayIndex:le},u?.startsWith("dropdown")?w.createElement(r.DropdownNav,{className:l[ue.Dropdowns],style:R?.[ue.Dropdowns]},(()=>{const ae=u==="dropdown"||u==="dropdown-months"?w.createElement(r.MonthsDropdown,{key:"month",className:l[ue.MonthsDropdown],"aria-label":I(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Ve(X.date),options:_j(X.date,V,H,o,s),style:R?.[ue.Dropdown],value:s.getMonth(X.date)}):w.createElement("span",{key:"month"},M(X.date,s)),ie=u==="dropdown"||u==="dropdown-years"?w.createElement(r.YearsDropdown,{key:"year",className:l[ue.YearsDropdown],"aria-label":je(s.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Xe(X.date),options:Nj(V,H,o,s,!!t.reverseYears),style:R?.[ue.Dropdown],value:s.getYear(X.date)}):w.createElement("span",{key:"year"},O(X.date,s));return s.getMonthYearOrder()==="year-first"?[ie,ae]:[ae,ie]})(),w.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},_(X.date,s.options,s))):w.createElement(r.CaptionLabel,{className:l[ue.CaptionLabel],role:"status","aria-live":"polite"},_(X.date,s.options,s))),c==="around"&&!t.hideNavigation&&le===m-1&&w.createElement(r.NextMonthButton,{type:"button",className:l[ue.NextMonthButton],tabIndex:Z?void 0:-1,"aria-disabled":Z?void 0:!0,"aria-label":pe(Z),onClick:We,"data-animated-button":t.animate?"true":void 0},w.createElement(r.Chevron,{disabled:Z?void 0:!0,className:l[ue.Chevron],orientation:t.dir==="rtl"?"left":"right"})),le===m-1&&c==="after"&&!t.hideNavigation&&w.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ue.Nav],style:R?.[ue.Nav],"aria-label":oe(),onPreviousClick:qe,onNextClick:We,previousMonth:B,nextMonth:Z}),w.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":se(X.date,s.options,s)||void 0,className:l[ue.MonthGrid],style:R?.[ue.MonthGrid]},!t.hideWeekdays&&w.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[ue.Weekdays],style:R?.[ue.Weekdays]},E&&w.createElement(r.WeekNumberHeader,{"aria-label":xe(s.options),className:l[ue.WeekNumberHeader],style:R?.[ue.WeekNumberHeader],scope:"col"},T()),ye.map(ae=>w.createElement(r.Weekday,{"aria-label":me(ae,s.options,s),className:l[ue.Weekday],key:String(ae),style:R?.[ue.Weekday],scope:"col"},$(ae,s.options,s)))),w.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[ue.Weeks],style:R?.[ue.Weeks]},X.weeks.map(ae=>w.createElement(r.Week,{className:l[ue.Week],key:ae.weekNumber,style:R?.[ue.Week],week:ae},E&&w.createElement(r.WeekNumber,{week:ae,style:R?.[ue.WeekNumber],"aria-label":de(ae.weekNumber,{locale:i}),className:l[ue.WeekNumber],scope:"row",role:"rowheader"},k(ae.weekNumber,s)),ae.days.map(ie=>{const{date:be}=ie,J=q(ie);if(J[Fe.focused]=!J.hidden&&!!j?.isEqualTo(ie),J[Mt.selected]=A?.(be)||J.selected,Cs(z)){const{from:et,to:Se}=z;J[Mt.range_start]=!!(et&&Se&&s.isSameDay(be,et)),J[Mt.range_end]=!!(et&&Se&&s.isSameDay(be,Se)),J[Mt.range_middle]=dn(z,be,!0,s)}const ve=Ej(J,R,t.modifiersStyles),we=fj(J,l,t.modifiersClassNames),Re=!Ee&&!J.hidden?Y(be,J,s.options,s):void 0;return w.createElement(r.Day,{key:`${ie.isoDate}_${ie.displayMonthId}`,day:ie,modifiers:J,className:we.join(" "),style:ve,role:"gridcell","aria-selected":J.selected||void 0,"aria-label":Re,"data-day":ie.isoDate,"data-month":ie.outside?ie.dateMonthId:void 0,"data-selected":J.selected||void 0,"data-disabled":J.disabled||void 0,"data-hidden":J.hidden||void 0,"data-outside":ie.outside||void 0,"data-focused":J.focused||void 0,"data-today":J.today||void 0},!J.hidden&&Ee?w.createElement(r.DayButton,{className:l[ue.DayButton],style:R?.[ue.DayButton],type:"button",day:ie,modifiers:J,disabled:!J.focused&&J.disabled||void 0,"aria-disabled":J.focused&&J.disabled||void 0,tabIndex:G(ie)?0:-1,"aria-label":re(be,J,s.options,s),onClick:Ye(ie,J),onBlur:st(ie,J),onFocus:Je(ie,J),onKeyDown:it(ie,J),onMouseEnter:He(ie,J),onMouseLeave:bt(ie,J)},P(be,s.options,s)):!J.hidden&&P(ie.date,s.options,s))})))))))),t.footer&&w.createElement(r.Footer,{className:l[ue.Footer],style:R?.[ue.Footer],role:"status","aria-live":"polite"},t.footer)))}function u$({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="flat",formatters:a,components:s,...i}){const l=hf();return p.jsx(c$,{showOutsideDays:n,className:N("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...a},classNames:{root:N("w-fit",l.root),months:N("relative flex flex-col gap-4 md:flex-row",l.months),month:N("flex w-full flex-col gap-4",l.month),nav:N("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:N(Cr({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:N(Cr({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:N("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",l.month_caption),dropdowns:N("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:N("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:N("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:N("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-foreground/50 flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:N("flex",l.weekdays),weekday:N("text-foreground/50 flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:N("mt-2 flex w-full",l.week),week_number_header:N("w-[--cell-size] select-none",l.week_number_header),week_number:N("text-foreground/50 select-none text-[0.8rem]",l.week_number),day:N("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:N("bg-primary rounded-l-md",l.range_start),range_middle:N("rounded-none bg-primary",l.range_middle),range_end:N("bg-primary rounded-r-md",l.range_end),today:N("bg-primary text-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:N("text-foreground/50 aria-selected:text-foreground/50",l.outside),disabled:N("text-foreground/65 opacity-50",l.disabled),hidden:N("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:f,...c})=>p.jsx("div",{"data-slot":"calendar",ref:f,className:N(u),...c}),Chevron:({className:u,orientation:f,...c})=>f==="left"?p.jsx(My,{className:N("size-4",u),...c}):f==="right"?p.jsx(Ir,{className:N("size-4",u),...c}):p.jsx(Io,{className:N("size-4",u),...c}),DayButton:Hw,WeekNumber:({children:u,...f})=>p.jsx("td",{...f,children:p.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:u})}),...s},...i})}function Hw({className:e,day:t,modifiers:n,color:r,...o}){const a=hf(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),p.jsx(Tn,{ref:s,variant:"flat",size:"sm",shape:"square",color:"error","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:N("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",a.day,e),...o})}const d$=Ke({base:"rounded-[--radius] transition-colors",variants:{variant:{unstyled:"",outline:"bg-transparent border border-[--card-outline-border]"},size:{sm:"",md:"",lg:"",xl:""},density:{compact:"",default:"",relaxed:""}},defaultVariants:{variant:"outline",size:"md",density:"default"}}),f$={neutral:{"--card-outline-border":"hsl(var(--neutral) / 0.3)"},primary:{"--card-outline-border":"hsl(var(--primary))"},secondary:{"--card-outline-border":"hsl(var(--surface-1))"},success:{"--card-outline-border":"hsl(var(--success))"},warning:{"--card-outline-border":"hsl(var(--warning))"},error:{"--card-outline-border":"hsl(var(--error))"},info:{"--card-outline-border":"hsl(var(--info))"}},p$={sm:{compact:"p-3 pb-2",default:"p-4 pb-2",relaxed:"p-5 pb-3"},md:{compact:"p-4 pb-2",default:"p-5 pb-3",relaxed:"p-6 pb-3"},lg:{compact:"p-5 pb-3",default:"p-6 pb-3",relaxed:"p-8 pb-4"},xl:{compact:"p-6 pb-3",default:"p-8 pb-4",relaxed:"p-10 pb-5"}},m$={sm:{compact:"px-3 pb-3",default:"px-4 pb-4",relaxed:"px-5 pb-5"},md:{compact:"px-4 pb-4",default:"px-5 pb-5",relaxed:"px-6 pb-6"},lg:{compact:"px-5 pb-5",default:"px-6 pb-6",relaxed:"px-8 pb-8"},xl:{compact:"px-6 pb-6",default:"px-8 pb-8",relaxed:"px-10 pb-10"}},h$={sm:{compact:"p-3 pt-2",default:"p-4 pt-2",relaxed:"p-5 pt-3"},md:{compact:"p-4 pt-2",default:"p-5 pt-3",relaxed:"p-6 pt-3"},lg:{compact:"p-5 pt-3",default:"p-6 pt-3",relaxed:"p-8 pt-4"},xl:{compact:"p-6 pt-3",default:"p-8 pt-4",relaxed:"p-10 pt-5"}},g$={sm:"text-base",md:"text-lg",lg:"text-xl",xl:"text-2xl"},v$={sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},b$={sm:{compact:"space-y-0.5",default:"space-y-1",relaxed:"space-y-1.5"},md:{compact:"space-y-1",default:"space-y-1.5",relaxed:"space-y-2"},lg:{compact:"space-y-1.5",default:"space-y-2",relaxed:"space-y-2.5"},xl:{compact:"space-y-2",default:"space-y-2.5",relaxed:"space-y-3"}},Vw=d.createContext({size:"md",density:"default"}),qo=()=>d.useContext(Vw),Gw=d.forwardRef(({className:e,variant:t,size:n="md",density:r="default",color:o="neutral",style:a,...s},i)=>p.jsx(Vw.Provider,{value:{size:n,density:r},children:p.jsx("div",{ref:i,"data-slot":"card",className:N(d$({variant:t,size:n,density:r,className:e})),style:{...f$[o],...a},...s})}));Gw.displayName="Card";const Uw=d.forwardRef(({className:e,...t},n)=>{const{size:r,density:o}=qo();return p.jsx("div",{ref:n,"data-slot":"card-header",className:N("flex flex-col items-center",b$[r][o],p$[r][o],e),...t})});Uw.displayName="CardHeader";const Kw=d.forwardRef(({className:e,...t},n)=>{const{size:r}=qo();return p.jsx("div",{ref:n,"data-slot":"card-title",className:N("font-semibold leading-none tracking-tight",g$[r],e),...t})});Kw.displayName="CardTitle";const Yw=d.forwardRef(({className:e,...t},n)=>{const{size:r}=qo();return p.jsx("div",{ref:n,"data-slot":"card-description",className:N("text-foreground/60",v$[r],e),...t})});Yw.displayName="CardDescription";const Xw=d.forwardRef(({className:e,...t},n)=>{const{size:r,density:o}=qo();return p.jsx("div",{ref:n,"data-slot":"card-content",className:N(m$[r][o],e),...t})});Xw.displayName="CardContent";const Zw=d.forwardRef(({className:e,...t},n)=>{const{size:r,density:o}=qo();return p.jsx("div",{ref:n,"data-slot":"card-footer",className:N("flex items-center",h$[r][o],e),...t})});Zw.displayName="CardFooter";function y$(e){return Object.prototype.toString.call(e)==="[object Object]"}function Km(e){return y$(e)||Array.isArray(e)}function x$(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gf(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(s=>{const i=e[s],l=t[s];return typeof i=="function"?`${i}`==`${l}`:!Km(i)||!Km(l)?i===l:gf(i,l)})}function Ym(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function w$(e,t){if(e.length!==t.length)return!1;const n=Ym(e),r=Ym(t);return n.every((o,a)=>{const s=r[a];return gf(o,s)})}function vf(e){return typeof e=="number"}function rd(e){return typeof e=="string"}function Es(e){return typeof e=="boolean"}function Xm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Be(e){return Math.abs(e)}function bf(e){return Math.sign(e)}function mo(e,t){return Be(e-t)}function S$(e,t){if(e===0||t===0||Be(e)<=Be(t))return 0;const n=mo(Be(e),Be(t));return Be(n/e)}function C$(e){return Math.round(e*100)/100}function vo(e){return bo(e).map(Number)}function Tt(e){return e[Wo(e)]}function Wo(e){return Math.max(0,e.length-1)}function yf(e,t){return t===Wo(e)}function Zm(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function bo(e){return Object.keys(e)}function Qw(e,t){return[e,t].reduce((n,r)=>(bo(r).forEach(o=>{const a=n[o],s=r[o],i=Xm(a)&&Xm(s);n[o]=i?Qw(a,s):s}),n),{})}function od(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function _$(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function s(l,u){return rd(e)?n[e](l):e(t,l,u)}return{measure:s}}function yo(){let e=[];function t(o,a,s,i={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,s,i),l=()=>o.removeEventListener(a,s,i);else{const u=o;u.addListener(s),l=()=>u.removeListener(s)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function E$(e,t,n,r){const o=yo(),a=1e3/60;let s=null,i=0,l=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&v()})}function f(){h(),o.clear()}function c(b){if(!l)return;s||(s=b,n(),n());const y=b-s;for(s=b,i+=y;i>=a;)n(),i-=a;const x=i/a;r(x),l&&(l=t.requestAnimationFrame(c))}function m(){l||(l=t.requestAnimationFrame(c))}function h(){t.cancelAnimationFrame(l),s=null,i=0,l=0}function v(){s=null,i=0}return{init:u,destroy:f,start:m,stop:h,update:n,render:r}}function R$(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",s=!r&&n?-1:1,i=f(),l=c();function u(v){const{height:g,width:b}=v;return r?g:b}function f(){return r?"top":n?"right":"left"}function c(){return r?"bottom":n?"left":"right"}function m(v){return v*s}return{scroll:o,cross:a,startEdge:i,endEdge:l,measureSize:u,direction:m}}function Gn(e=0,t=0){const n=Be(e-t);function r(u){return u<e}function o(u){return u>t}function a(u){return r(u)||o(u)}function s(u){return a(u)?r(u)?e:t:u}function i(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:s,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:i}}function Jw(e,t,n){const{constrain:r}=Gn(0,e),o=e+1;let a=s(t);function s(m){return n?Be((o+m)%o):r(m)}function i(){return a}function l(m){return a=s(m),c}function u(m){return f().set(i()+m)}function f(){return Jw(e,i(),n)}const c={get:i,set:l,add:u,clone:f};return c}function N$(e,t,n,r,o,a,s,i,l,u,f,c,m,h,v,g,b,y,x){const{cross:S,direction:C}=e,E=["INPUT","SELECT","TEXTAREA"],R={passive:!1},_=yo(),P=yo(),M=Gn(50,225).constrain(h.measure(20)),k={mouse:300,touch:400},T={mouse:500,touch:600},$=v?43:25;let O=!1,L=0,F=0,D=!1,V=!1,H=!1,B=!1;function Z(Y){if(!x)return;function se(oe){(Es(x)||x(Y,oe))&&K(oe)}const I=t;_.add(I,"dragstart",oe=>oe.preventDefault(),R).add(I,"touchmove",()=>{},R).add(I,"touchend",()=>{}).add(I,"touchstart",se).add(I,"mousedown",se).add(I,"touchcancel",G).add(I,"contextmenu",G).add(I,"click",ee,!0)}function Q(){_.clear(),P.clear()}function q(){const Y=B?n:t;P.add(Y,"touchmove",j,R).add(Y,"touchend",G).add(Y,"mousemove",j,R).add(Y,"mouseup",G)}function A(Y){const se=Y.nodeName||"";return E.includes(se)}function W(){return(v?T:k)[B?"mouse":"touch"]}function z(Y,se){const I=c.add(bf(Y)*-1),oe=f.byDistance(Y,!v).distance;return v||Be(Y)<M?oe:b&&se?oe*.5:f.byIndex(I.get(),0).distance}function K(Y){const se=od(Y,r);B=se,H=v&&se&&!Y.buttons&&O,O=mo(o.get(),s.get())>=2,!(se&&Y.button!==0)&&(A(Y.target)||(D=!0,a.pointerDown(Y),u.useFriction(0).useDuration(0),o.set(s),q(),L=a.readPoint(Y),F=a.readPoint(Y,S),m.emit("pointerDown")))}function j(Y){if(!od(Y,r)&&Y.touches.length>=2)return G(Y);const I=a.readPoint(Y),oe=a.readPoint(Y,S),fe=mo(I,L),pe=mo(oe,F);if(!V&&!B&&(!Y.cancelable||(V=fe>pe,!V)))return G(Y);const me=a.pointerMove(Y);fe>g&&(H=!0),u.useFriction(.3).useDuration(.75),i.start(),o.add(C(me)),Y.preventDefault()}function G(Y){const I=f.byDistance(0,!1).index!==c.get(),oe=a.pointerUp(Y)*W(),fe=z(C(oe),I),pe=S$(oe,fe),me=$-10*pe,de=y+pe/50;V=!1,D=!1,P.clear(),u.useDuration(me).useFriction(de),l.distance(fe,!v),B=!1,m.emit("pointerUp")}function ee(Y){H&&(Y.stopPropagation(),Y.preventDefault(),H=!1)}function te(){return D}return{init:Z,destroy:Q,pointerDown:te}}function P$(e,t){let r,o;function a(c){return c.timeStamp}function s(c,m){const v=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(od(c,t)?c:c.touches[0])[v]}function i(c){return r=c,o=c,s(c)}function l(c){const m=s(c)-s(o),h=a(c)-a(r)>170;return o=c,h&&(r=c),m}function u(c){if(!r||!o)return 0;const m=s(o)-s(r),h=a(c)-a(r),v=a(c)-a(o)>170,g=m/h;return h&&!v&&Be(g)>.1?g:0}return{pointerDown:i,pointerMove:l,pointerUp:u,readPoint:s}}function M$(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:s}=n;return{top:r,right:o+a,bottom:r+s,left:o,width:a,height:s}}return{measure:e}}function T$(e){function t(r){return e*(r/100)}return{measure:t}}function O$(e,t,n,r,o,a,s){const i=[e].concat(r);let l,u,f=[],c=!1;function m(b){return o.measureSize(s.measure(b))}function h(b){if(!a)return;u=m(e),f=r.map(m);function y(x){for(const S of x){if(c)return;const C=S.target===e,E=r.indexOf(S.target),R=C?u:f[E],_=m(C?e:r[E]);if(Be(_-R)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(x=>{(Es(a)||a(b,x))&&y(x)}),n.requestAnimationFrame(()=>{i.forEach(x=>l.observe(x))})}function v(){c=!0,l&&l.disconnect()}return{init:h,destroy:v}}function A$(e,t,n,r,o,a){let s=0,i=0,l=o,u=a,f=e.get(),c=0;function m(){const R=r.get()-e.get(),_=!l;let P=0;return _?(s=0,n.set(r),e.set(r),P=R):(n.set(e),s+=R/l,s*=u,f+=s,e.add(s),P=f-c),i=bf(P),c=f,E}function h(){const R=r.get()-t.get();return Be(R)<.001}function v(){return l}function g(){return i}function b(){return s}function y(){return S(o)}function x(){return C(a)}function S(R){return l=R,E}function C(R){return u=R,E}const E={direction:g,duration:v,velocity:b,seek:m,settled:h,useBaseFriction:x,useBaseDuration:y,useFriction:C,useDuration:S};return E}function D$(e,t,n,r,o){const a=o.measure(10),s=o.measure(50),i=Gn(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(h){if(!u())return;const v=e.reachedMin(t.get())?"min":"max",g=Be(e[v]-t.get()),b=n.get()-t.get(),y=i.constrain(g/s);n.subtract(b*y),!h&&Be(b)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function c(h){l=!h}return{shouldConstrain:u,constrain:f,toggleActive:c}}function I$(e,t,n,r,o){const a=Gn(-t+e,0),s=c(),i=f(),l=m();function u(v,g){return mo(v,g)<=1}function f(){const v=s[0],g=Tt(s),b=s.lastIndexOf(v),y=s.indexOf(g)+1;return Gn(b,y)}function c(){return n.map((v,g)=>{const{min:b,max:y}=a,x=a.constrain(v),S=!g,C=yf(n,g);return S?y:C||u(b,x)?b:u(y,x)?y:x}).map(v=>parseFloat(v.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return s;const{min:v,max:g}=i;return s.slice(v,g)}return{snapsContained:l,scrollContainLimit:i}}function k$(e,t,n){const r=t[0],o=n?r-e:Tt(t);return{limit:Gn(o,r)}}function j$(e,t,n,r){const a=t.min+.1,s=t.max+.1,{reachedMin:i,reachedMax:l}=Gn(a,s);function u(m){return m===1?l(n.get()):m===-1?i(n.get()):!1}function f(m){if(!u(m))return;const h=e*(m*-1);r.forEach(v=>v.add(h))}return{loop:f}}function $$(e){const{max:t,length:n}=e;function r(a){const s=a-t;return n?s/-n:0}return{get:r}}function L$(e,t,n,r,o){const{startEdge:a,endEdge:s}=e,{groupSlides:i}=o,l=c().map(t.measure),u=m(),f=h();function c(){return i(r).map(g=>Tt(g)[s]-g[0][a]).map(Be)}function m(){return r.map(g=>n[a]-g[a]).map(g=>-Be(g))}function h(){return i(u).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:u,snapsAligned:f}}function F$(e,t,n,r,o,a){const{groupSlides:s}=o,{min:i,max:l}=r,u=f();function f(){const m=s(a),h=!e||t==="keepSnaps";return n.length===1?[a]:h?m:m.slice(i,l).map((v,g,b)=>{const y=!g,x=yf(b,g);if(y){const S=Tt(b[0])+1;return Zm(S)}if(x){const S=Wo(a)-Tt(b)[0]+1;return Zm(S,Tt(b)[0])}return v})}return{slideRegistry:u}}function B$(e,t,n,r,o){const{reachedAny:a,removeOffset:s,constrain:i}=r;function l(v){return v.concat().sort((g,b)=>Be(g)-Be(b))[0]}function u(v){const g=e?s(v):i(v),b=t.map((x,S)=>({diff:f(x-g,0),index:S})).sort((x,S)=>Be(x.diff)-Be(S.diff)),{index:y}=b[0];return{index:y,distance:g}}function f(v,g){const b=[v,v+n,v-n];if(!e)return v;if(!g)return l(b);const y=b.filter(x=>bf(x)===g);return y.length?l(y):Tt(b)-n}function c(v,g){const b=t[v]-o.get(),y=f(b,g);return{index:v,distance:y}}function m(v,g){const b=o.get()+v,{index:y,distance:x}=u(b),S=!e&&a(b);if(!g||S)return{index:y,distance:v};const C=t[y]-x,E=v+f(C,0);return{index:y,distance:E}}return{byDistance:m,byIndex:c,shortcut:f}}function z$(e,t,n,r,o,a,s){function i(c){const m=c.distance,h=c.index!==t.get();a.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(n.set(t.get()),t.set(c.index),s.emit("select"))}function l(c,m){const h=o.byDistance(c,m);i(h)}function u(c,m){const h=t.clone().set(c),v=o.byIndex(h.get(),m);i(v)}return{distance:l,index:u}}function q$(e,t,n,r,o,a,s,i){const l={passive:!0,capture:!0};let u=0;function f(h){if(!i)return;function v(g){if(new Date().getTime()-u>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(S=>S.includes(g));vf(x)&&(o.useDuration(0),r.index(x,0),s.emit("slideFocus"))}a.add(document,"keydown",c,!1),t.forEach((g,b)=>{a.add(g,"focus",y=>{(Es(i)||i(h,y))&&v(b)},l)})}function c(h){h.code==="Tab"&&(u=new Date().getTime())}return{init:f}}function ao(e){let t=e;function n(){return t}function r(l){t=s(l)}function o(l){t+=s(l)}function a(l){t-=s(l)}function s(l){return vf(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function e0(e,t){const n=e.scroll==="x"?s:i,r=t.style;let o=null,a=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function i(m){return`translate3d(0px,${m}px,0px)`}function l(m){if(a)return;const h=C$(e.direction(m));h!==o&&(r.transform=n(h),o=h)}function u(m){a=!m}function f(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:f,to:l,toggleActive:u}}function W$(e,t,n,r,o,a,s,i,l){const f=vo(o),c=vo(o).reverse(),m=y().concat(x());function h(_,P){return _.reduce((M,k)=>M-o[k],P)}function v(_,P){return _.reduce((M,k)=>h(M,P)>0?M.concat([k]):M,[])}function g(_){return a.map((P,M)=>({start:P-r[M]+.5+_,end:P+t-.5+_}))}function b(_,P,M){const k=g(P);return _.map(T=>{const $=M?0:-n,O=M?n:0,L=M?"end":"start",F=k[T][L];return{index:T,loopPoint:F,slideLocation:ao(-1),translate:e0(e,l[T]),target:()=>i.get()>F?$:O}})}function y(){const _=s[0],P=v(c,_);return b(P,n,!1)}function x(){const _=t-s[0]-1,P=v(f,_);return b(P,-n,!0)}function S(){return m.every(({index:_})=>{const P=f.filter(M=>M!==_);return h(P,t)<=.1})}function C(){m.forEach(_=>{const{target:P,translate:M,slideLocation:k}=_,T=P();T!==k.get()&&(M.to(T),k.set(T))})}function E(){m.forEach(_=>_.translate.clear())}return{canLoop:S,clear:E,loop:C,loopPoints:m}}function H$(e,t,n){let r,o=!1;function a(l){if(!n)return;function u(f){for(const c of f)if(c.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(Es(n)||n(l,f))&&u(f)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),o=!0}return{init:a,destroy:s}}function V$(e,t,n,r){const o={};let a=null,s=null,i,l=!1;function u(){i=new IntersectionObserver(v=>{l||(v.forEach(g=>{const b=t.indexOf(g.target);o[b]=g}),a=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(v=>i.observe(v))}function f(){i&&i.disconnect(),l=!0}function c(v){return bo(o).reduce((g,b)=>{const y=parseInt(b),{isIntersecting:x}=o[y];return(v&&x||!v&&!x)&&g.push(y),g},[])}function m(v=!0){if(v&&a)return a;if(!v&&s)return s;const g=c(v);return v&&(a=g),v||(s=g),g}return{init:u,destroy:f,get:m}}function G$(e,t,n,r,o,a){const{measureSize:s,startEdge:i,endEdge:l}=e,u=n[0]&&o,f=v(),c=g(),m=n.map(s),h=b();function v(){if(!u)return 0;const x=n[0];return Be(t[i]-x[i])}function g(){if(!u)return 0;const x=a.getComputedStyle(Tt(r));return parseFloat(x.getPropertyValue(`margin-${l}`))}function b(){return n.map((x,S,C)=>{const E=!S,R=yf(C,S);return E?m[S]+f:R?m[S]+c:C[S+1][i]-x[i]}).map(Be)}return{slideSizes:m,slideSizesWithGaps:h,startGap:f,endGap:c}}function U$(e,t,n,r,o,a,s,i,l){const{startEdge:u,endEdge:f,direction:c}=e,m=vf(n);function h(y,x){return vo(y).filter(S=>S%x===0).map(S=>y.slice(S,S+x))}function v(y){return y.length?vo(y).reduce((x,S,C)=>{const E=Tt(x)||0,R=E===0,_=S===Wo(y),P=o[u]-a[E][u],M=o[u]-a[S][f],k=!r&&R?c(s):0,T=!r&&_?c(i):0,$=Be(M-T-(P+k));return C&&$>t+l&&x.push(S),_&&x.push(y.length),x},[]).map((x,S,C)=>{const E=Math.max(C[S-1]||0);return y.slice(E,x)}):[]}function g(y){return m?h(y,n):v(y)}return{groupSlides:g}}function K$(e,t,n,r,o,a,s){const{align:i,axis:l,direction:u,startIndex:f,loop:c,duration:m,dragFree:h,dragThreshold:v,inViewThreshold:g,slidesToScroll:b,skipSnaps:y,containScroll:x,watchResize:S,watchSlides:C,watchDrag:E,watchFocus:R}=a,_=2,P=M$(),M=P.measure(t),k=n.map(P.measure),T=R$(l,u),$=T.measureSize(M),O=T$($),L=_$(i,$),F=!c&&!!x,D=c||!!x,{slideSizes:V,slideSizesWithGaps:H,startGap:B,endGap:Z}=G$(T,M,k,n,D,o),Q=U$(T,$,b,c,M,k,B,Z,_),{snaps:q,snapsAligned:A}=L$(T,L,M,k,Q),W=-Tt(q)+Tt(H),{snapsContained:z,scrollContainLimit:K}=I$($,W,A,x,_),j=F?z:A,{limit:G}=k$(W,j,c),ee=Jw(Wo(j),f,c),te=ee.clone(),re=vo(n),Y=({dragHandler:He,scrollBody:bt,scrollBounds:Ve,options:{loop:Xe}})=>{Xe||Ve.constrain(He.pointerDown()),bt.seek()},se=({scrollBody:He,translate:bt,location:Ve,offsetLocation:Xe,previousLocation:Et,scrollLooper:zt,slideLooper:gn,dragHandler:vn,animation:rn,eventHandler:X,scrollBounds:le,options:{loop:ae}},ie)=>{const be=He.settled(),J=!le.shouldConstrain(),ve=ae?be:be&&J,we=ve&&!vn.pointerDown();we&&rn.stop();const Re=Ve.get()*ie+Et.get()*(1-ie);Xe.set(Re),ae&&(zt.loop(He.direction()),gn.loop()),bt.to(Xe.get()),we&&X.emit("settle"),ve||X.emit("scroll")},I=E$(r,o,()=>Y(it),He=>se(it,He)),oe=.68,fe=j[ee.get()],pe=ao(fe),me=ao(fe),de=ao(fe),xe=ao(fe),je=A$(pe,de,me,xe,m,oe),ye=B$(c,j,W,G,xe),Ee=z$(I,ee,te,je,ye,xe,s),qe=$$(G),We=yo(),Ye=V$(t,n,s,g),{slideRegistry:Je}=F$(F,x,j,K,Q,re),st=q$(e,n,Je,Ee,je,We,s,R),it={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:M,slideRects:k,animation:I,axis:T,dragHandler:N$(T,e,r,o,xe,P$(T,o),pe,I,Ee,je,ye,ee,s,O,h,v,y,oe,E),eventStore:We,percentOfView:O,index:ee,indexPrevious:te,limit:G,location:pe,offsetLocation:de,previousLocation:me,options:a,resizeHandler:O$(t,s,o,n,T,S,P),scrollBody:je,scrollBounds:D$(G,de,xe,je,O),scrollLooper:j$(W,G,de,[pe,de,me,xe]),scrollProgress:qe,scrollSnapList:j.map(qe.get),scrollSnaps:j,scrollTarget:ye,scrollTo:Ee,slideLooper:W$(T,$,W,V,H,q,j,de,n),slideFocus:st,slidesHandler:H$(t,s,C),slidesInView:Ye,slideIndexes:re,slideRegistry:Je,slidesToScroll:Q,target:xe,translate:e0(T,t)};return it}function Y$(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(f=>f(t,u)),l}function a(u,f){return e[u]=r(u).concat([f]),l}function s(u,f){return e[u]=r(u).filter(c=>c!==f),l}function i(){e={}}const l={init:n,emit:o,off:s,on:a,clear:i};return l}const X$={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Z$(e){function t(a,s){return Qw(a,s||{})}function n(a){const s=a.breakpoints||{},i=bo(s).filter(l=>e.matchMedia(l).matches).map(l=>s[l]).reduce((l,u)=>t(l,u),{});return t(a,i)}function r(a){return a.map(s=>bo(s.breakpoints||{})).reduce((s,i)=>s.concat(i),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Q$(e){let t=[];function n(a,s){return t=s.filter(({options:i})=>e.optionsAtMedia(i).active!==!1),t.forEach(i=>i.init(a,e)),s.reduce((i,l)=>Object.assign(i,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Ba(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=Z$(o),s=Q$(a),i=yo(),l=Y$(),{mergeOptions:u,optionsAtMedia:f,optionsMediaQueries:c}=a,{on:m,off:h,emit:v}=l,g=T;let b=!1,y,x=u(X$,Ba.globalOptions),S=u(x),C=[],E,R,_;function P(){const{container:re,slides:Y}=S;R=(rd(re)?e.querySelector(re):re)||e.children[0];const I=rd(Y)?R.querySelectorAll(Y):Y;_=[].slice.call(I||R.children)}function M(re){const Y=K$(e,R,_,r,o,re,l);if(re.loop&&!Y.slideLooper.canLoop()){const se=Object.assign({},re,{loop:!1});return M(se)}return Y}function k(re,Y){b||(x=u(x,re),S=f(x),C=Y||C,P(),y=M(S),c([x,...C.map(({options:se})=>se)]).forEach(se=>i.add(se,"change",T)),S.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(te),y.eventHandler.init(te),y.resizeHandler.init(te),y.slidesHandler.init(te),y.options.loop&&y.slideLooper.loop(),R.offsetParent&&_.length&&y.dragHandler.init(te),E=s.init(te,C)))}function T(re,Y){const se=Q();$(),k(u({startIndex:se},re),Y),l.emit("reInit")}function $(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),s.destroy(),i.clear()}function O(){b||(b=!0,i.clear(),$(),l.emit("destroy"),l.clear())}function L(re,Y,se){!S.active||b||(y.scrollBody.useBaseFriction().useDuration(Y===!0?0:S.duration),y.scrollTo.index(re,se||0))}function F(re){const Y=y.index.add(1).get();L(Y,re,-1)}function D(re){const Y=y.index.add(-1).get();L(Y,re,1)}function V(){return y.index.add(1).get()!==Q()}function H(){return y.index.add(-1).get()!==Q()}function B(){return y.scrollSnapList}function Z(){return y.scrollProgress.get(y.offsetLocation.get())}function Q(){return y.index.get()}function q(){return y.indexPrevious.get()}function A(){return y.slidesInView.get()}function W(){return y.slidesInView.get(!1)}function z(){return E}function K(){return y}function j(){return e}function G(){return R}function ee(){return _}const te={canScrollNext:V,canScrollPrev:H,containerNode:G,internalEngine:K,destroy:O,off:h,on:m,emit:v,plugins:z,previousScrollSnap:q,reInit:g,rootNode:j,scrollNext:F,scrollPrev:D,scrollProgress:Z,scrollSnapList:B,scrollTo:L,selectedScrollSnap:Q,slideNodes:ee,slidesInView:A,slidesNotInView:W};return k(t,n),setTimeout(()=>l.emit("init"),0),te}Ba.globalOptions=void 0;function xf(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[o,a]=w.useState(),[s,i]=w.useState(),l=w.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return w.useEffect(()=>{gf(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{w$(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(x$()&&s){Ba.globalOptions=xf.globalOptions;const u=Ba(s,n.current,r.current);return a(u),()=>u.destroy()}else a(void 0)},[s,a]),[i,o]}xf.globalOptions=void 0;const t0=d.createContext(null);function Rs(){const e=d.useContext(t0);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const n0=d.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...s},i)=>{const[l,u]=xf({...t,axis:e==="horizontal"?"x":"y"},r),[f,c]=d.useState(!1),[m,h]=d.useState(!1),v=d.useCallback(x=>{x&&(c(x.canScrollPrev()),h(x.canScrollNext()))},[]),g=d.useCallback(()=>{u?.scrollPrev()},[u]),b=d.useCallback(()=>{u?.scrollNext()},[u]),y=d.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),g()):x.key==="ArrowRight"&&(x.preventDefault(),b())},[g,b]);return d.useEffect(()=>{!u||!n||n(u)},[u,n]),d.useEffect(()=>{if(u)return v(u),u.on("reInit",v),u.on("select",v),()=>{u?.off("select",v)}},[u,v]),p.jsx(t0.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:f,canScrollNext:m},children:p.jsx("div",{ref:i,onKeyDownCapture:y,className:N("relative",o),role:"region","aria-roledescription":"carousel",...s,children:a})})});n0.displayName="Carousel";const r0=d.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Rs();return p.jsx("div",{ref:r,className:"overflow-hidden",children:p.jsx("div",{ref:n,className:N("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});r0.displayName="CarouselContent";const o0=d.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Rs();return p.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:N("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});o0.displayName="CarouselItem";const a0=d.forwardRef(({className:e,variant:t="outline",size:n="sm",shape:r="square",...o},a)=>{const{orientation:s,scrollPrev:i,canScrollPrev:l}=Rs();return p.jsxs(Tn,{ref:a,variant:t,size:n,className:N("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:i,...o,children:[p.jsx(YT,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Previous slide"})]})});a0.displayName="CarouselPrevious";const s0=d.forwardRef(({className:e,variant:t="outline",size:n="sm",shape:r="square",...o},a)=>{const{orientation:s,scrollNext:i,canScrollNext:l}=Rs();return p.jsxs(Tn,{ref:a,variant:t,size:n,className:N("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:i,...o,children:[p.jsx(ZT,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Next slide"})]})});s0.displayName="CarouselNext";function i0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=i0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Un(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=i0(e))&&(r&&(r+=" "),r+=t);return r}var Pi,Qm;function Lt(){if(Qm)return Pi;Qm=1;var e=Array.isArray;return Pi=e,Pi}var Mi,Jm;function l0(){if(Jm)return Mi;Jm=1;var e=typeof ha=="object"&&ha&&ha.Object===Object&&ha;return Mi=e,Mi}var Ti,eh;function Qt(){if(eh)return Ti;eh=1;var e=l0(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ti=n,Ti}var Oi,th;function Ho(){if(th)return Oi;th=1;var e=Qt(),t=e.Symbol;return Oi=t,Oi}var Ai,nh;function J$(){if(nh)return Ai;nh=1;var e=Ho(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function a(s){var i=n.call(s,o),l=s[o];try{s[o]=void 0;var u=!0}catch{}var f=r.call(s);return u&&(i?s[o]=l:delete s[o]),f}return Ai=a,Ai}var Di,rh;function eL(){if(rh)return Di;rh=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Di=n,Di}var Ii,oh;function rr(){if(oh)return Ii;oh=1;var e=Ho(),t=J$(),n=eL(),r="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function s(i){return i==null?i===void 0?o:r:a&&a in Object(i)?t(i):n(i)}return Ii=s,Ii}var ki,ah;function or(){if(ah)return ki;ah=1;function e(t){return t!=null&&typeof t=="object"}return ki=e,ki}var ji,sh;function Vo(){if(sh)return ji;sh=1;var e=rr(),t=or(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return ji=r,ji}var $i,ih;function wf(){if(ih)return $i;ih=1;var e=Lt(),t=Vo(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,s){if(e(a))return!1;var i=typeof a;return i=="number"||i=="symbol"||i=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return $i=o,$i}var Li,lh;function On(){if(lh)return Li;lh=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Li=e,Li}var Fi,ch;function Sf(){if(ch)return Fi;ch=1;var e=rr(),t=On(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function s(i){if(!t(i))return!1;var l=e(i);return l==r||l==o||l==n||l==a}return Fi=s,Fi}var Bi,uh;function tL(){if(uh)return Bi;uh=1;var e=Qt(),t=e["__core-js_shared__"];return Bi=t,Bi}var zi,dh;function nL(){if(dh)return zi;dh=1;var e=tL(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return zi=n,zi}var qi,fh;function c0(){if(fh)return qi;fh=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return qi=n,qi}var Wi,ph;function rL(){if(ph)return Wi;ph=1;var e=Sf(),t=nL(),n=On(),r=c0(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,i=Object.prototype,l=s.toString,u=i.hasOwnProperty,f=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(m){if(!n(m)||t(m))return!1;var h=e(m)?f:a;return h.test(r(m))}return Wi=c,Wi}var Hi,mh;function oL(){if(mh)return Hi;mh=1;function e(t,n){return t?.[n]}return Hi=e,Hi}var Vi,hh;function ar(){if(hh)return Vi;hh=1;var e=rL(),t=oL();function n(r,o){var a=t(r,o);return e(a)?a:void 0}return Vi=n,Vi}var Gi,gh;function Ns(){if(gh)return Gi;gh=1;var e=ar(),t=e(Object,"create");return Gi=t,Gi}var Ui,vh;function aL(){if(vh)return Ui;vh=1;var e=Ns();function t(){this.__data__=e?e(null):{},this.size=0}return Ui=t,Ui}var Ki,bh;function sL(){if(bh)return Ki;bh=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ki=e,Ki}var Yi,yh;function iL(){if(yh)return Yi;yh=1;var e=Ns(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(a){var s=this.__data__;if(e){var i=s[a];return i===t?void 0:i}return r.call(s,a)?s[a]:void 0}return Yi=o,Yi}var Xi,xh;function lL(){if(xh)return Xi;xh=1;var e=Ns(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var a=this.__data__;return e?a[o]!==void 0:n.call(a,o)}return Xi=r,Xi}var Zi,wh;function cL(){if(wh)return Zi;wh=1;var e=Ns(),t="__lodash_hash_undefined__";function n(r,o){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&o===void 0?t:o,this}return Zi=n,Zi}var Qi,Sh;function uL(){if(Sh)return Qi;Sh=1;var e=aL(),t=sL(),n=iL(),r=lL(),o=cL();function a(s){var i=-1,l=s==null?0:s.length;for(this.clear();++i<l;){var u=s[i];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Qi=a,Qi}var Ji,Ch;function dL(){if(Ch)return Ji;Ch=1;function e(){this.__data__=[],this.size=0}return Ji=e,Ji}var el,_h;function Cf(){if(_h)return el;_h=1;function e(t,n){return t===n||t!==t&&n!==n}return el=e,el}var tl,Eh;function Ps(){if(Eh)return tl;Eh=1;var e=Cf();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return tl=t,tl}var nl,Rh;function fL(){if(Rh)return nl;Rh=1;var e=Ps(),t=Array.prototype,n=t.splice;function r(o){var a=this.__data__,s=e(a,o);if(s<0)return!1;var i=a.length-1;return s==i?a.pop():n.call(a,s,1),--this.size,!0}return nl=r,nl}var rl,Nh;function pL(){if(Nh)return rl;Nh=1;var e=Ps();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return rl=t,rl}var ol,Ph;function mL(){if(Ph)return ol;Ph=1;var e=Ps();function t(n){return e(this.__data__,n)>-1}return ol=t,ol}var al,Mh;function hL(){if(Mh)return al;Mh=1;var e=Ps();function t(n,r){var o=this.__data__,a=e(o,n);return a<0?(++this.size,o.push([n,r])):o[a][1]=r,this}return al=t,al}var sl,Th;function Ms(){if(Th)return sl;Th=1;var e=dL(),t=fL(),n=pL(),r=mL(),o=hL();function a(s){var i=-1,l=s==null?0:s.length;for(this.clear();++i<l;){var u=s[i];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,sl=a,sl}var il,Oh;function _f(){if(Oh)return il;Oh=1;var e=ar(),t=Qt(),n=e(t,"Map");return il=n,il}var ll,Ah;function gL(){if(Ah)return ll;Ah=1;var e=uL(),t=Ms(),n=_f();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ll=r,ll}var cl,Dh;function vL(){if(Dh)return cl;Dh=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return cl=e,cl}var ul,Ih;function Ts(){if(Ih)return ul;Ih=1;var e=vL();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return ul=t,ul}var dl,kh;function bL(){if(kh)return dl;kh=1;var e=Ts();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return dl=t,dl}var fl,jh;function yL(){if(jh)return fl;jh=1;var e=Ts();function t(n){return e(this,n).get(n)}return fl=t,fl}var pl,$h;function xL(){if($h)return pl;$h=1;var e=Ts();function t(n){return e(this,n).has(n)}return pl=t,pl}var ml,Lh;function wL(){if(Lh)return ml;Lh=1;var e=Ts();function t(n,r){var o=e(this,n),a=o.size;return o.set(n,r),this.size+=o.size==a?0:1,this}return ml=t,ml}var hl,Fh;function Ef(){if(Fh)return hl;Fh=1;var e=gL(),t=bL(),n=yL(),r=xL(),o=wL();function a(s){var i=-1,l=s==null?0:s.length;for(this.clear();++i<l;){var u=s[i];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,hl=a,hl}var gl,Bh;function SL(){if(Bh)return gl;Bh=1;var e=Ef(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var s=arguments,i=o?o.apply(this,s):s[0],l=a.cache;if(l.has(i))return l.get(i);var u=r.apply(this,s);return a.cache=l.set(i,u)||l,u};return a.cache=new(n.Cache||e),a}return n.Cache=e,gl=n,gl}var vl,zh;function CL(){if(zh)return vl;zh=1;var e=SL(),t=500;function n(r){var o=e(r,function(s){return a.size===t&&a.clear(),s}),a=o.cache;return o}return vl=n,vl}var bl,qh;function _L(){if(qh)return bl;qh=1;var e=CL(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(s,i,l,u){a.push(l?u.replace(n,"$1"):i||s)}),a});return bl=r,bl}var yl,Wh;function u0(){if(Wh)return yl;Wh=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return yl=e,yl}var xl,Hh;function EL(){if(Hh)return xl;Hh=1;var e=Ho(),t=u0(),n=Lt(),r=Vo(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(i){if(typeof i=="string")return i;if(n(i))return t(i,s)+"";if(r(i))return a?a.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}return xl=s,xl}var wl,Vh;function d0(){if(Vh)return wl;Vh=1;var e=EL();function t(n){return n==null?"":e(n)}return wl=t,wl}var Sl,Gh;function f0(){if(Gh)return Sl;Gh=1;var e=Lt(),t=wf(),n=_L(),r=d0();function o(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return Sl=o,Sl}var Cl,Uh;function Os(){if(Uh)return Cl;Uh=1;var e=Vo();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Cl=t,Cl}var _l,Kh;function Rf(){if(Kh)return _l;Kh=1;var e=f0(),t=Os();function n(r,o){o=e(o,r);for(var a=0,s=o.length;r!=null&&a<s;)r=r[t(o[a++])];return a&&a==s?r:void 0}return _l=n,_l}var El,Yh;function p0(){if(Yh)return El;Yh=1;var e=Rf();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return El=t,El}p0();var Rl,Xh;function RL(){if(Xh)return Rl;Xh=1;function e(t){return t==null}return Rl=e,Rl}var NL=RL();const PL=Xt(NL);var Nl,Zh;function ML(){if(Zh)return Nl;Zh=1;var e=rr(),t=Lt(),n=or(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return Nl=o,Nl}var TL=ML();const m0=Xt(TL);var OL=Sf();const za=Xt(OL);var AL=On();const h0=Xt(AL);var va={exports:{}},Ce={};var Qh;function DL(){if(Qh)return Ce;Qh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),i=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function g(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case e:switch(b=b.type,b){case n:case o:case r:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case i:case s:case l:case m:case c:case a:return b;default:return y}}case t:return y}}}return Ce.ContextConsumer=s,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=l,Ce.Fragment=n,Ce.Lazy=m,Ce.Memo=c,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=r,Ce.Suspense=u,Ce.SuspenseList=f,Ce.isAsyncMode=function(){return!1},Ce.isConcurrentMode=function(){return!1},Ce.isContextConsumer=function(b){return g(b)===s},Ce.isContextProvider=function(b){return g(b)===a},Ce.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ce.isForwardRef=function(b){return g(b)===l},Ce.isFragment=function(b){return g(b)===n},Ce.isLazy=function(b){return g(b)===m},Ce.isMemo=function(b){return g(b)===c},Ce.isPortal=function(b){return g(b)===t},Ce.isProfiler=function(b){return g(b)===o},Ce.isStrictMode=function(b){return g(b)===r},Ce.isSuspense=function(b){return g(b)===u},Ce.isSuspenseList=function(b){return g(b)===f},Ce.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===u||b===f||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===c||b.$$typeof===a||b.$$typeof===s||b.$$typeof===l||b.$$typeof===v||b.getModuleId!==void 0)},Ce.typeOf=g,Ce}var _e={};var Jh;function IL(){return Jh||(Jh=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),i=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,g=!1,b=!1,y=!1,x=!1,S;S=Symbol.for("react.module.reference");function C(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===o||x||I===r||I===u||I===f||y||I===h||v||g||b||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===c||I.$$typeof===a||I.$$typeof===s||I.$$typeof===l||I.$$typeof===S||I.getModuleId!==void 0))}function E(I){if(typeof I=="object"&&I!==null){var oe=I.$$typeof;switch(oe){case e:var fe=I.type;switch(fe){case n:case o:case r:case u:case f:return fe;default:var pe=fe&&fe.$$typeof;switch(pe){case i:case s:case l:case m:case c:case a:return pe;default:return oe}}case t:return oe}}}var R=s,_=a,P=e,M=l,k=n,T=m,$=c,O=t,L=o,F=r,D=u,V=f,H=!1,B=!1;function Z(I){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(I){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(I){return E(I)===s}function A(I){return E(I)===a}function W(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function z(I){return E(I)===l}function K(I){return E(I)===n}function j(I){return E(I)===m}function G(I){return E(I)===c}function ee(I){return E(I)===t}function te(I){return E(I)===o}function re(I){return E(I)===r}function Y(I){return E(I)===u}function se(I){return E(I)===f}_e.ContextConsumer=R,_e.ContextProvider=_,_e.Element=P,_e.ForwardRef=M,_e.Fragment=k,_e.Lazy=T,_e.Memo=$,_e.Portal=O,_e.Profiler=L,_e.StrictMode=F,_e.Suspense=D,_e.SuspenseList=V,_e.isAsyncMode=Z,_e.isConcurrentMode=Q,_e.isContextConsumer=q,_e.isContextProvider=A,_e.isElement=W,_e.isForwardRef=z,_e.isFragment=K,_e.isLazy=j,_e.isMemo=G,_e.isPortal=ee,_e.isProfiler=te,_e.isStrictMode=re,_e.isSuspense=Y,_e.isSuspenseList=se,_e.isValidElementType=C,_e.typeOf=E})()),_e}var eg;function kL(){return eg||(eg=1,process.env.NODE_ENV==="production"?va.exports=DL():va.exports=IL()),va.exports}kL();var Pl,tg;function g0(){if(tg)return Pl;tg=1;var e=rr(),t=or(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return Pl=r,Pl}var Ml,ng;function jL(){if(ng)return Ml;ng=1;var e=g0();function t(n){return e(n)&&n!=+n}return Ml=t,Ml}var $L=jL();const LL=Xt($L);var FL=g0();const BL=Xt(FL);var ba=function(t){return m0(t)&&t.indexOf("%")===t.length-1},Pt=function(t){return BL(t)&&!LL(t)},qa=function(t){return Pt(t)||m0(t)};function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}var zL=["viewBox","children"],qL=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rg=["points","pathLength"],Tl={svg:zL,polygon:rg,polyline:rg},v0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],WL=function(t,n,r){return function(o){return t(n,r,o),null}},HL=function(t,n,r){if(!h0(t)||ad(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var s=t[a];v0.includes(a)&&typeof s=="function"&&(o||(o={}),o[a]=WL(s,n,r))}),o},VL=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},GL=function(t,n,r,o){var a,s=(a=Tl?.[o])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!za(t)&&(o&&s.includes(n)||qL.includes(n))||v0.includes(n)},b0=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(w.isValidElement(t)&&(o=t.props),!h0(o))return null;var a={};return Object.keys(o).forEach(function(s){var i;GL((i=o)===null||i===void 0?void 0:i[s],s,n,r)&&(a[s]=o[s])}),a},UL=["children","width","height","viewBox","className","style","title","desc"];function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sd.apply(this,arguments)}function KL(e,t){if(e==null)return{};var n=YL(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XL(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,s=e.style,i=e.title,l=e.desc,u=KL(e,UL),f=o||{width:n,height:r,x:0,y:0},c=Un("recharts-surface",a);return w.createElement("svg",sd({},b0(u,!0,"svg"),{className:c,width:n,height:r,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),w.createElement("title",null,i),w.createElement("desc",null,l),t)}var ZL=process.env.NODE_ENV!=="production",Ta=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(ZL&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;console.warn(n.replace(/%s/g,function(){return o[s++]}))}},Ol,og;function QL(){if(og)return Ol;og=1;function e(t,n,r){var o=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(a);++o<a;)s[o]=t[o+n];return s}return Ol=e,Ol}var Al,ag;function JL(){if(ag)return Al;ag=1;var e=QL();function t(n,r,o){var a=n.length;return o=o===void 0?a:o,!r&&o>=a?n:e(n,r,o)}return Al=t,Al}var Dl,sg;function y0(){if(sg)return Dl;sg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",i=RegExp("["+s+e+o+a+"]");function l(u){return i.test(u)}return Dl=l,Dl}var Il,ig;function e2(){if(ig)return Il;ig=1;function e(t){return t.split("")}return Il=e,Il}var kl,lg;function t2(){if(lg)return kl;lg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",i="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+i+"|"+l+")",f="[^"+e+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",v=u+"?",g="["+a+"]?",b="(?:"+h+"(?:"+[f,c,m].join("|")+")"+g+v+")*",y=g+v+b,x="(?:"+[f+i+"?",i,c,m,s].join("|")+")",S=RegExp(l+"(?="+l+")|"+x+y,"g");function C(E){return E.match(S)||[]}return kl=C,kl}var jl,cg;function n2(){if(cg)return jl;cg=1;var e=e2(),t=y0(),n=t2();function r(o){return t(o)?n(o):e(o)}return jl=r,jl}var $l,ug;function r2(){if(ug)return $l;ug=1;var e=JL(),t=y0(),n=n2(),r=d0();function o(a){return function(s){s=r(s);var i=t(s)?n(s):void 0,l=i?i[0]:s.charAt(0),u=i?e(i,1).join(""):s.slice(1);return l[a]()+u}}return $l=o,$l}var Ll,dg;function o2(){if(dg)return Ll;dg=1;var e=r2(),t=e("toUpperCase");return Ll=t,Ll}var a2=o2();const x0=Xt(a2);function ya(e){return function(){return e}}const w0=Math.cos,Wa=Math.sin,Ft=Math.sqrt,Ha=Math.PI,As=2*Ha,id=Math.PI,ld=2*id,zn=1e-6,s2=ld-zn;function S0(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function i2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return S0;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class l2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?S0:i2(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,s){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+s}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,i=this._y1,l=r-t,u=o-n,f=s-t,c=i-n,m=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>zn)if(!(Math.abs(c*l-u*f)>zn)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,v=o-i,g=l*l+u*u,b=h*h+v*v,y=Math.sqrt(g),x=Math.sqrt(m),S=a*Math.tan((id-Math.acos((g+m-b)/(2*y*x)))/2),C=S/x,E=S/y;Math.abs(C-1)>zn&&this._append`L${t+C*f},${n+C*c}`,this._append`A${a},${a},0,0,${+(c*h>f*v)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,o,a,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let i=r*Math.cos(o),l=r*Math.sin(o),u=t+i,f=n+l,c=1^s,m=s?o-a:a-o;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>zn||Math.abs(this._y1-f)>zn)&&this._append`L${u},${f}`,r&&(m<0&&(m=m%ld+ld),m>s2?this._append`A${r},${r},0,1,${c},${t-i},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:m>zn&&this._append`A${r},${r},0,${+(m>=id)},${c},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function c2(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new l2(t)}const Nf={draw(e,t){const n=Ft(t/Ha);e.moveTo(n,0),e.arc(0,0,n,0,As)}},u2={draw(e,t){const n=Ft(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},C0=Ft(1/3),d2=C0*2,f2={draw(e,t){const n=Ft(t/d2),r=n*C0;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},p2={draw(e,t){const n=Ft(t),r=-n/2;e.rect(r,r,n,n)}},m2=.8908130915292852,_0=Wa(Ha/10)/Wa(7*Ha/10),h2=Wa(As/10)*_0,g2=-w0(As/10)*_0,v2={draw(e,t){const n=Ft(t*m2),r=h2*n,o=g2*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const s=As*a/5,i=w0(s),l=Wa(s);e.lineTo(l*n,-i*n),e.lineTo(i*r-l*o,l*r+i*o)}e.closePath()}},Fl=Ft(3),b2={draw(e,t){const n=-Ft(t/(Fl*3));e.moveTo(0,n*2),e.lineTo(-Fl*n,-n),e.lineTo(Fl*n,-n),e.closePath()}},yt=-.5,xt=Ft(3)/2,cd=1/Ft(12),y2=(cd/2+1)*3,x2={draw(e,t){const n=Ft(t/y2),r=n/2,o=n*cd,a=r,s=n*cd+n,i=-a,l=s;e.moveTo(r,o),e.lineTo(a,s),e.lineTo(i,l),e.lineTo(yt*r-xt*o,xt*r+yt*o),e.lineTo(yt*a-xt*s,xt*a+yt*s),e.lineTo(yt*i-xt*l,xt*i+yt*l),e.lineTo(yt*r+xt*o,yt*o-xt*r),e.lineTo(yt*a+xt*s,yt*s-xt*a),e.lineTo(yt*i+xt*l,yt*l-xt*i),e.closePath()}};function w2(e,t){let n=null,r=c2(o);e=typeof e=="function"?e:ya(e||Nf),t=typeof t=="function"?t:ya(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:ya(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:ya(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}var S2=["type","size","sizeType"];function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ud.apply(this,arguments)}function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fg(Object(n),!0).forEach(function(r){C2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C2(e,t,n){return t=_2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _2(e){var t=E2(e,"string");return xo(t)=="symbol"?t:t+""}function E2(e,t){if(xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R2(e,t){if(e==null)return{};var n=N2(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function N2(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var E0={symbolCircle:Nf,symbolCross:u2,symbolDiamond:f2,symbolSquare:p2,symbolStar:v2,symbolTriangle:b2,symbolWye:x2},P2=Math.PI/180,M2=function(t){var n="symbol".concat(x0(t));return E0[n]||Nf},T2=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*P2;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},O2=function(t,n){E0["symbol".concat(x0(t))]=n},R0=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,s=t.sizeType,i=s===void 0?"area":s,l=R2(t,S2),u=pg(pg({},l),{},{type:r,size:a,sizeType:i}),f=function(){var b=M2(r),y=w2().type(b).size(T2(a,i,r));return y()},c=u.className,m=u.cx,h=u.cy,v=b0(u,!0);return m===+m&&h===+h&&a===+a?w.createElement("path",ud({},v,{className:Un("recharts-symbols",c),transform:"translate(".concat(m,", ").concat(h,")"),d:f()})):null};R0.registerSymbol=O2;function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dd.apply(this,arguments)}function mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(n),!0).forEach(function(r){wo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P0(r.key),r)}}function k2(e,t,n){return t&&I2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j2(e,t,n){return t=Va(t),$2(e,N0()?Reflect.construct(t,n||[],Va(e).constructor):t.apply(e,n))}function $2(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L2(e)}function L2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N0=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Va(e)}function F2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fd(e,t)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fd(e,t)}function wo(e,t,n){return t=P0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P0(e){var t=B2(e,"string");return Er(t)=="symbol"?t:t+""}function B2(e,t){if(Er(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Er(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wt=32,Pf=(function(e){function t(){return D2(this,t),j2(this,t,arguments)}return F2(t,e),k2(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=wt/2,s=wt/6,i=wt/3,l=r.inactive?o:r.color;if(r.type==="plainline")return w.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:wt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return w.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(i,`
52
+ A`).concat(s,",").concat(s,",0,1,1,").concat(2*i,",").concat(a,`
53
+ H`).concat(wt,"M").concat(2*i,",").concat(a,`
54
+ A`).concat(s,",").concat(s,",0,1,1,").concat(i,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return w.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(wt/8,"h").concat(wt,"v").concat(wt*3/4,"h").concat(-wt,"z"),className:"recharts-legend-icon"});if(w.isValidElement(r.legendIcon)){var u=A2({},r);return delete u.legendIcon,w.cloneElement(r.legendIcon,u)}return w.createElement(R0,{fill:l,cx:a,cy:a,size:wt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,s=o.iconSize,i=o.layout,l=o.formatter,u=o.inactiveColor,f={x:0,y:0,width:wt,height:wt},c={display:i==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,v){var g=h.formatter||l,b=Un(wo(wo({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=za(h.value)?null:h.value;Ta(!za(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?u:h.color;return w.createElement("li",dd({className:b,style:c,key:"legend-item-".concat(v)},HL(r.props,h,v)),w.createElement(XL,{width:s,height:s,viewBox:f,style:m},r.renderIcon(h)),w.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(y,h,v):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,s=r.align;if(!o||!o.length)return null;var i={padding:0,margin:0,textAlign:a==="horizontal"?s:"left"};return w.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])})(w.PureComponent);wo(Pf,"displayName","Legend");wo(Pf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Bl,hg;function z2(){if(hg)return Bl;hg=1;var e=Ms();function t(){this.__data__=new e,this.size=0}return Bl=t,Bl}var zl,gg;function q2(){if(gg)return zl;gg=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return zl=e,zl}var ql,vg;function W2(){if(vg)return ql;vg=1;function e(t){return this.__data__.get(t)}return ql=e,ql}var Wl,bg;function H2(){if(bg)return Wl;bg=1;function e(t){return this.__data__.has(t)}return Wl=e,Wl}var Hl,yg;function V2(){if(yg)return Hl;yg=1;var e=Ms(),t=_f(),n=Ef(),r=200;function o(a,s){var i=this.__data__;if(i instanceof e){var l=i.__data__;if(!t||l.length<r-1)return l.push([a,s]),this.size=++i.size,this;i=this.__data__=new n(l)}return i.set(a,s),this.size=i.size,this}return Hl=o,Hl}var Vl,xg;function M0(){if(xg)return Vl;xg=1;var e=Ms(),t=z2(),n=q2(),r=W2(),o=H2(),a=V2();function s(i){var l=this.__data__=new e(i);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=a,Vl=s,Vl}var Gl,wg;function G2(){if(wg)return Gl;wg=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Gl=t,Gl}var Ul,Sg;function U2(){if(Sg)return Ul;Sg=1;function e(t){return this.__data__.has(t)}return Ul=e,Ul}var Kl,Cg;function T0(){if(Cg)return Kl;Cg=1;var e=Ef(),t=G2(),n=U2();function r(o){var a=-1,s=o==null?0:o.length;for(this.__data__=new e;++a<s;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Kl=r,Kl}var Yl,_g;function K2(){if(_g)return Yl;_g=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Yl=e,Yl}var Xl,Eg;function O0(){if(Eg)return Xl;Eg=1;function e(t,n){return t.has(n)}return Xl=e,Xl}var Zl,Rg;function A0(){if(Rg)return Zl;Rg=1;var e=T0(),t=K2(),n=O0(),r=1,o=2;function a(s,i,l,u,f,c){var m=l&r,h=s.length,v=i.length;if(h!=v&&!(m&&v>h))return!1;var g=c.get(s),b=c.get(i);if(g&&b)return g==i&&b==s;var y=-1,x=!0,S=l&o?new e:void 0;for(c.set(s,i),c.set(i,s);++y<h;){var C=s[y],E=i[y];if(u)var R=m?u(E,C,y,i,s,c):u(C,E,y,s,i,c);if(R!==void 0){if(R)continue;x=!1;break}if(S){if(!t(i,function(_,P){if(!n(S,P)&&(C===_||f(C,_,l,u,c)))return S.push(P)})){x=!1;break}}else if(!(C===E||f(C,E,l,u,c))){x=!1;break}}return c.delete(s),c.delete(i),x}return Zl=a,Zl}var Ql,Ng;function Y2(){if(Ng)return Ql;Ng=1;var e=Qt(),t=e.Uint8Array;return Ql=t,Ql}var Jl,Pg;function X2(){if(Pg)return Jl;Pg=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Jl=e,Jl}var ec,Mg;function Mf(){if(Mg)return ec;Mg=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return ec=e,ec}var tc,Tg;function Z2(){if(Tg)return tc;Tg=1;var e=Ho(),t=Y2(),n=Cf(),r=A0(),o=X2(),a=Mf(),s=1,i=2,l="[object Boolean]",u="[object Date]",f="[object Error]",c="[object Map]",m="[object Number]",h="[object RegExp]",v="[object Set]",g="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",S=e?e.prototype:void 0,C=S?S.valueOf:void 0;function E(R,_,P,M,k,T,$){switch(P){case x:if(R.byteLength!=_.byteLength||R.byteOffset!=_.byteOffset)return!1;R=R.buffer,_=_.buffer;case y:return!(R.byteLength!=_.byteLength||!T(new t(R),new t(_)));case l:case u:case m:return n(+R,+_);case f:return R.name==_.name&&R.message==_.message;case h:case g:return R==_+"";case c:var O=o;case v:var L=M&s;if(O||(O=a),R.size!=_.size&&!L)return!1;var F=$.get(R);if(F)return F==_;M|=i,$.set(R,_);var D=r(O(R),O(_),M,k,T,$);return $.delete(R),D;case b:if(C)return C.call(R)==C.call(_)}return!1}return tc=E,tc}var nc,Og;function D0(){if(Og)return nc;Og=1;function e(t,n){for(var r=-1,o=n.length,a=t.length;++r<o;)t[a+r]=n[r];return t}return nc=e,nc}var rc,Ag;function Q2(){if(Ag)return rc;Ag=1;var e=D0(),t=Lt();function n(r,o,a){var s=o(r);return t(r)?s:e(s,a(r))}return rc=n,rc}var oc,Dg;function J2(){if(Dg)return oc;Dg=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=0,s=[];++r<o;){var i=t[r];n(i,r,t)&&(s[a++]=i)}return s}return oc=e,oc}var ac,Ig;function eF(){if(Ig)return ac;Ig=1;function e(){return[]}return ac=e,ac}var sc,kg;function tF(){if(kg)return sc;kg=1;var e=J2(),t=eF(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(s){return s==null?[]:(s=Object(s),e(o(s),function(i){return r.call(s,i)}))}:t;return sc=a,sc}var ic,jg;function nF(){if(jg)return ic;jg=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return ic=e,ic}var lc,$g;function rF(){if($g)return lc;$g=1;var e=rr(),t=or(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return lc=r,lc}var cc,Lg;function Tf(){if(Lg)return cc;Lg=1;var e=rF(),t=or(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!o.call(s,"callee")};return cc=a,cc}var so={exports:{}},uc,Fg;function oF(){if(Fg)return uc;Fg=1;function e(){return!1}return uc=e,uc}so.exports;var Bg;function I0(){return Bg||(Bg=1,(function(e,t){var n=Qt(),r=oF(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===o,i=s?n.Buffer:void 0,l=i?i.isBuffer:void 0,u=l||r;e.exports=u})(so,so.exports)),so.exports}var dc,zg;function Of(){if(zg)return dc;zg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var a=typeof r;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return dc=n,dc}var fc,qg;function Af(){if(qg)return fc;qg=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return fc=t,fc}var pc,Wg;function aF(){if(Wg)return pc;Wg=1;var e=rr(),t=Af(),n=or(),r="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",i="[object Error]",l="[object Function]",u="[object Map]",f="[object Number]",c="[object Object]",m="[object RegExp]",h="[object Set]",v="[object String]",g="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",R="[object Int32Array]",_="[object Uint8Array]",P="[object Uint8ClampedArray]",M="[object Uint16Array]",k="[object Uint32Array]",T={};T[x]=T[S]=T[C]=T[E]=T[R]=T[_]=T[P]=T[M]=T[k]=!0,T[r]=T[o]=T[b]=T[a]=T[y]=T[s]=T[i]=T[l]=T[u]=T[f]=T[c]=T[m]=T[h]=T[v]=T[g]=!1;function $(O){return n(O)&&t(O.length)&&!!T[e(O)]}return pc=$,pc}var mc,Hg;function k0(){if(Hg)return mc;Hg=1;function e(t){return function(n){return t(n)}}return mc=e,mc}var io={exports:{}};io.exports;var Vg;function sF(){return Vg||(Vg=1,(function(e,t){var n=l0(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,s=a&&n.process,i=(function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();e.exports=i})(io,io.exports)),io.exports}var hc,Gg;function j0(){if(Gg)return hc;Gg=1;var e=aF(),t=k0(),n=sF(),r=n&&n.isTypedArray,o=r?t(r):e;return hc=o,hc}var gc,Ug;function iF(){if(Ug)return gc;Ug=1;var e=nF(),t=Tf(),n=Lt(),r=I0(),o=Of(),a=j0(),s=Object.prototype,i=s.hasOwnProperty;function l(u,f){var c=n(u),m=!c&&t(u),h=!c&&!m&&r(u),v=!c&&!m&&!h&&a(u),g=c||m||h||v,b=g?e(u.length,String):[],y=b.length;for(var x in u)(f||i.call(u,x))&&!(g&&(x=="length"||h&&(x=="offset"||x=="parent")||v&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,y)))&&b.push(x);return b}return gc=l,gc}var vc,Kg;function lF(){if(Kg)return vc;Kg=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return vc=t,vc}var bc,Yg;function cF(){if(Yg)return bc;Yg=1;function e(t,n){return function(r){return t(n(r))}}return bc=e,bc}var yc,Xg;function uF(){if(Xg)return yc;Xg=1;var e=cF(),t=e(Object.keys,Object);return yc=t,yc}var xc,Zg;function dF(){if(Zg)return xc;Zg=1;var e=lF(),t=uF(),n=Object.prototype,r=n.hasOwnProperty;function o(a){if(!e(a))return t(a);var s=[];for(var i in Object(a))r.call(a,i)&&i!="constructor"&&s.push(i);return s}return xc=o,xc}var wc,Qg;function Ds(){if(Qg)return wc;Qg=1;var e=Sf(),t=Af();function n(r){return r!=null&&t(r.length)&&!e(r)}return wc=n,wc}var Sc,Jg;function Df(){if(Jg)return Sc;Jg=1;var e=iF(),t=dF(),n=Ds();function r(o){return n(o)?e(o):t(o)}return Sc=r,Sc}var Cc,ev;function fF(){if(ev)return Cc;ev=1;var e=Q2(),t=tF(),n=Df();function r(o){return e(o,n,t)}return Cc=r,Cc}var _c,tv;function pF(){if(tv)return _c;tv=1;var e=fF(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,s,i,l,u,f){var c=i&t,m=e(a),h=m.length,v=e(s),g=v.length;if(h!=g&&!c)return!1;for(var b=h;b--;){var y=m[b];if(!(c?y in s:r.call(s,y)))return!1}var x=f.get(a),S=f.get(s);if(x&&S)return x==s&&S==a;var C=!0;f.set(a,s),f.set(s,a);for(var E=c;++b<h;){y=m[b];var R=a[y],_=s[y];if(l)var P=c?l(_,R,y,s,a,f):l(R,_,y,a,s,f);if(!(P===void 0?R===_||u(R,_,i,l,f):P)){C=!1;break}E||(E=y=="constructor")}if(C&&!E){var M=a.constructor,k=s.constructor;M!=k&&"constructor"in a&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof k=="function"&&k instanceof k)&&(C=!1)}return f.delete(a),f.delete(s),C}return _c=o,_c}var Ec,nv;function mF(){if(nv)return Ec;nv=1;var e=ar(),t=Qt(),n=e(t,"DataView");return Ec=n,Ec}var Rc,rv;function hF(){if(rv)return Rc;rv=1;var e=ar(),t=Qt(),n=e(t,"Promise");return Rc=n,Rc}var Nc,ov;function $0(){if(ov)return Nc;ov=1;var e=ar(),t=Qt(),n=e(t,"Set");return Nc=n,Nc}var Pc,av;function gF(){if(av)return Pc;av=1;var e=ar(),t=Qt(),n=e(t,"WeakMap");return Pc=n,Pc}var Mc,sv;function vF(){if(sv)return Mc;sv=1;var e=mF(),t=_f(),n=hF(),r=$0(),o=gF(),a=rr(),s=c0(),i="[object Map]",l="[object Object]",u="[object Promise]",f="[object Set]",c="[object WeakMap]",m="[object DataView]",h=s(e),v=s(t),g=s(n),b=s(r),y=s(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=m||t&&x(new t)!=i||n&&x(n.resolve())!=u||r&&x(new r)!=f||o&&x(new o)!=c)&&(x=function(S){var C=a(S),E=C==l?S.constructor:void 0,R=E?s(E):"";if(R)switch(R){case h:return m;case v:return i;case g:return u;case b:return f;case y:return c}return C}),Mc=x,Mc}var Tc,iv;function bF(){if(iv)return Tc;iv=1;var e=M0(),t=A0(),n=Z2(),r=pF(),o=vF(),a=Lt(),s=I0(),i=j0(),l=1,u="[object Arguments]",f="[object Array]",c="[object Object]",m=Object.prototype,h=m.hasOwnProperty;function v(g,b,y,x,S,C){var E=a(g),R=a(b),_=E?f:o(g),P=R?f:o(b);_=_==u?c:_,P=P==u?c:P;var M=_==c,k=P==c,T=_==P;if(T&&s(g)){if(!s(b))return!1;E=!0,M=!1}if(T&&!M)return C||(C=new e),E||i(g)?t(g,b,y,x,S,C):n(g,b,_,y,x,S,C);if(!(y&l)){var $=M&&h.call(g,"__wrapped__"),O=k&&h.call(b,"__wrapped__");if($||O){var L=$?g.value():g,F=O?b.value():b;return C||(C=new e),S(L,F,y,x,C)}}return T?(C||(C=new e),r(g,b,y,x,S,C)):!1}return Tc=v,Tc}var Oc,lv;function L0(){if(lv)return Oc;lv=1;var e=bF(),t=or();function n(r,o,a,s,i){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,s,n,i)}return Oc=n,Oc}var Ac,cv;function yF(){if(cv)return Ac;cv=1;var e=M0(),t=L0(),n=1,r=2;function o(a,s,i,l){var u=i.length,f=u,c=!l;if(a==null)return!f;for(a=Object(a);u--;){var m=i[u];if(c&&m[2]?m[1]!==a[m[0]]:!(m[0]in a))return!1}for(;++u<f;){m=i[u];var h=m[0],v=a[h],g=m[1];if(c&&m[2]){if(v===void 0&&!(h in a))return!1}else{var b=new e;if(l)var y=l(v,g,h,a,s,b);if(!(y===void 0?t(g,v,n|r,l,b):y))return!1}}return!0}return Ac=o,Ac}var Dc,uv;function F0(){if(uv)return Dc;uv=1;var e=On();function t(n){return n===n&&!e(n)}return Dc=t,Dc}var Ic,dv;function xF(){if(dv)return Ic;dv=1;var e=F0(),t=Df();function n(r){for(var o=t(r),a=o.length;a--;){var s=o[a],i=r[s];o[a]=[s,i,e(i)]}return o}return Ic=n,Ic}var kc,fv;function B0(){if(fv)return kc;fv=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return kc=e,kc}var jc,pv;function wF(){if(pv)return jc;pv=1;var e=yF(),t=xF(),n=B0();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===o||e(s,o,a)}}return jc=r,jc}var $c,mv;function SF(){if(mv)return $c;mv=1;function e(t,n){return t!=null&&n in Object(t)}return $c=e,$c}var Lc,hv;function CF(){if(hv)return Lc;hv=1;var e=f0(),t=Tf(),n=Lt(),r=Of(),o=Af(),a=Os();function s(i,l,u){l=e(l,i);for(var f=-1,c=l.length,m=!1;++f<c;){var h=a(l[f]);if(!(m=i!=null&&u(i,h)))break;i=i[h]}return m||++f!=c?m:(c=i==null?0:i.length,!!c&&o(c)&&r(h,c)&&(n(i)||t(i)))}return Lc=s,Lc}var Fc,gv;function _F(){if(gv)return Fc;gv=1;var e=SF(),t=CF();function n(r,o){return r!=null&&t(r,o,e)}return Fc=n,Fc}var Bc,vv;function EF(){if(vv)return Bc;vv=1;var e=L0(),t=p0(),n=_F(),r=wf(),o=F0(),a=B0(),s=Os(),i=1,l=2;function u(f,c){return r(f)&&o(c)?a(s(f),c):function(m){var h=t(m,f);return h===void 0&&h===c?n(m,f):e(c,h,i|l)}}return Bc=u,Bc}var zc,bv;function Is(){if(bv)return zc;bv=1;function e(t){return t}return zc=e,zc}var qc,yv;function RF(){if(yv)return qc;yv=1;function e(t){return function(n){return n?.[t]}}return qc=e,qc}var Wc,xv;function NF(){if(xv)return Wc;xv=1;var e=Rf();function t(n){return function(r){return e(r,n)}}return Wc=t,Wc}var Hc,wv;function PF(){if(wv)return Hc;wv=1;var e=RF(),t=NF(),n=wf(),r=Os();function o(a){return n(a)?e(r(a)):t(a)}return Hc=o,Hc}var Vc,Sv;function z0(){if(Sv)return Vc;Sv=1;var e=wF(),t=EF(),n=Is(),r=Lt(),o=PF();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return Vc=a,Vc}var Gc,Cv;function MF(){if(Cv)return Gc;Cv=1;function e(t,n,r,o){for(var a=t.length,s=r+(o?1:-1);o?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return Gc=e,Gc}var Uc,_v;function TF(){if(_v)return Uc;_v=1;function e(t){return t!==t}return Uc=e,Uc}var Kc,Ev;function OF(){if(Ev)return Kc;Ev=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return Kc=e,Kc}var Yc,Rv;function AF(){if(Rv)return Yc;Rv=1;var e=MF(),t=TF(),n=OF();function r(o,a,s){return a===a?n(o,a,s):e(o,t,s)}return Yc=r,Yc}var Xc,Nv;function DF(){if(Nv)return Xc;Nv=1;var e=AF();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Xc=t,Xc}var Zc,Pv;function IF(){if(Pv)return Zc;Pv=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return Zc=e,Zc}var Qc,Mv;function kF(){if(Mv)return Qc;Mv=1;function e(){}return Qc=e,Qc}var Jc,Tv;function jF(){if(Tv)return Jc;Tv=1;var e=$0(),t=kF(),n=Mf(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return Jc=o,Jc}var eu,Ov;function $F(){if(Ov)return eu;Ov=1;var e=T0(),t=DF(),n=IF(),r=O0(),o=jF(),a=Mf(),s=200;function i(l,u,f){var c=-1,m=t,h=l.length,v=!0,g=[],b=g;if(f)v=!1,m=n;else if(h>=s){var y=u?null:o(l);if(y)return a(y);v=!1,m=r,b=new e}else b=u?[]:g;e:for(;++c<h;){var x=l[c],S=u?u(x):x;if(x=f||x!==0?x:0,v&&S===S){for(var C=b.length;C--;)if(b[C]===S)continue e;u&&b.push(S),g.push(x)}else m(b,S,f)||(b!==g&&b.push(S),g.push(x))}return g}return eu=i,eu}var tu,Av;function LF(){if(Av)return tu;Av=1;var e=z0(),t=$F();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return tu=n,tu}var FF=LF();const Dv=Xt(FF);function q0(e,t,n){return t===!0?Dv(e,n):za(t)?Dv(e,t):e}function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}var BF=["ref"];function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(n),!0).forEach(function(r){ks(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H0(r.key),r)}}function qF(e,t,n){return t&&kv(e.prototype,t),n&&kv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WF(e,t,n){return t=Ga(t),HF(e,W0()?Reflect.construct(t,n||[],Ga(e).constructor):t.apply(e,n))}function HF(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VF(e)}function VF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W0=function(){return!!e})()}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ga(e)}function GF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pd(e,t)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pd(e,t)}function ks(e,t,n){return t=H0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(e){var t=UF(e,"string");return Rr(t)=="symbol"?t:t+""}function UF(e,t){if(Rr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KF(e,t){if(e==null)return{};var n=YF(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XF(e){return e.value}function ZF(e,t){if(w.isValidElement(e))return w.cloneElement(e,t);if(typeof e=="function")return w.createElement(e,t);t.ref;var n=KF(t,BF);return w.createElement(Pf,n)}var jv=1,If=(function(e){function t(){var n;zF(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=WF(this,t,[].concat(o)),ks(n,"lastBoundingBox",{width:-1,height:-1}),n}return GF(t,e),qF(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>jv||Math.abs(o.height-this.lastBoundingBox.height)>jv)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?sn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,s=o.align,i=o.verticalAlign,l=o.margin,u=o.chartWidth,f=o.chartHeight,c,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();c={left:((u||0)-h.width)/2}}else c=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(i==="middle"){var v=this.getBBoxSnapshot();m={top:((f||0)-v.height)/2}}else m=i==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return sn(sn({},c),m)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,s=o.width,i=o.height,l=o.wrapperStyle,u=o.payloadUniqBy,f=o.payload,c=sn(sn({position:"absolute",width:s||"auto",height:i||"auto"},this.getDefaultPosition(l)),l);return w.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},ZF(a,sn(sn({},this.props),{},{payload:q0(f,u,XF)})))}}],[{key:"getWithHeight",value:function(r,o){var a=sn(sn({},this.defaultProps),r.props),s=a.layout;return s==="vertical"&&Pt(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||o}:null}}])})(w.PureComponent);ks(If,"displayName","Legend");ks(If,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var nu,$v;function QF(){if($v)return nu;$v=1;var e=Ho(),t=Tf(),n=Lt(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return nu=o,nu}var ru,Lv;function JF(){if(Lv)return ru;Lv=1;var e=D0(),t=QF();function n(r,o,a,s,i){var l=-1,u=r.length;for(a||(a=t),i||(i=[]);++l<u;){var f=r[l];o>0&&a(f)?o>1?n(f,o-1,a,s,i):e(i,f):s||(i[i.length]=f)}return i}return ru=n,ru}var ou,Fv;function eB(){if(Fv)return ou;Fv=1;function e(t){return function(n,r,o){for(var a=-1,s=Object(n),i=o(n),l=i.length;l--;){var u=i[t?l:++a];if(r(s[u],u,s)===!1)break}return n}}return ou=e,ou}var au,Bv;function tB(){if(Bv)return au;Bv=1;var e=eB(),t=e();return au=t,au}var su,zv;function nB(){if(zv)return su;zv=1;var e=tB(),t=Df();function n(r,o){return r&&e(r,o,t)}return su=n,su}var iu,qv;function rB(){if(qv)return iu;qv=1;var e=Ds();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var s=o.length,i=r?s:-1,l=Object(o);(r?i--:++i<s)&&a(l[i],i,l)!==!1;);return o}}return iu=t,iu}var lu,Wv;function oB(){if(Wv)return lu;Wv=1;var e=nB(),t=rB(),n=t(e);return lu=n,lu}var cu,Hv;function aB(){if(Hv)return cu;Hv=1;var e=oB(),t=Ds();function n(r,o){var a=-1,s=t(r)?Array(r.length):[];return e(r,function(i,l,u){s[++a]=o(i,l,u)}),s}return cu=n,cu}var uu,Vv;function sB(){if(Vv)return uu;Vv=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return uu=e,uu}var du,Gv;function iB(){if(Gv)return du;Gv=1;var e=Vo();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,s=n===n,i=e(n),l=r!==void 0,u=r===null,f=r===r,c=e(r);if(!u&&!c&&!i&&n>r||i&&l&&f&&!u&&!c||a&&l&&f||!o&&f||!s)return 1;if(!a&&!i&&!c&&n<r||c&&o&&s&&!a&&!i||u&&o&&s||!l&&s||!f)return-1}return 0}return du=t,du}var fu,Uv;function lB(){if(Uv)return fu;Uv=1;var e=iB();function t(n,r,o){for(var a=-1,s=n.criteria,i=r.criteria,l=s.length,u=o.length;++a<l;){var f=e(s[a],i[a]);if(f){if(a>=u)return f;var c=o[a];return f*(c=="desc"?-1:1)}}return n.index-r.index}return fu=t,fu}var pu,Kv;function cB(){if(Kv)return pu;Kv=1;var e=u0(),t=Rf(),n=z0(),r=aB(),o=sB(),a=k0(),s=lB(),i=Is(),l=Lt();function u(f,c,m){c.length?c=e(c,function(g){return l(g)?function(b){return t(b,g.length===1?g[0]:g)}:g}):c=[i];var h=-1;c=e(c,a(n));var v=r(f,function(g,b,y){var x=e(c,function(S){return S(g)});return{criteria:x,index:++h,value:g}});return o(v,function(g,b){return s(g,b,m)})}return pu=u,pu}var mu,Yv;function uB(){if(Yv)return mu;Yv=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return mu=e,mu}var hu,Xv;function dB(){if(Xv)return hu;Xv=1;var e=uB(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,i=-1,l=t(s.length-o,0),u=Array(l);++i<l;)u[i]=s[o+i];i=-1;for(var f=Array(o+1);++i<o;)f[i]=s[i];return f[o]=a(u),e(r,this,f)}}return hu=n,hu}var gu,Zv;function fB(){if(Zv)return gu;Zv=1;function e(t){return function(){return t}}return gu=e,gu}var vu,Qv;function pB(){if(Qv)return vu;Qv=1;var e=ar(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return vu=t,vu}var bu,Jv;function mB(){if(Jv)return bu;Jv=1;var e=fB(),t=pB(),n=Is(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return bu=r,bu}var yu,eb;function hB(){if(eb)return yu;eb=1;var e=800,t=16,n=Date.now;function r(o){var a=0,s=0;return function(){var i=n(),l=t-(i-s);if(s=i,l>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return yu=r,yu}var xu,tb;function gB(){if(tb)return xu;tb=1;var e=mB(),t=hB(),n=t(e);return xu=n,xu}var wu,nb;function vB(){if(nb)return wu;nb=1;var e=Is(),t=dB(),n=gB();function r(o,a){return n(t(o,a,e),o+"")}return wu=r,wu}var Su,rb;function bB(){if(rb)return Su;rb=1;var e=Cf(),t=Ds(),n=Of(),r=On();function o(a,s,i){if(!r(i))return!1;var l=typeof s;return(l=="number"?t(i)&&n(s,i.length):l=="string"&&s in i)?e(i[s],a):!1}return Su=o,Su}var Cu,ob;function yB(){if(ob)return Cu;ob=1;var e=JF(),t=cB(),n=vB(),r=bB(),o=n(function(a,s){if(a==null)return[];var i=s.length;return i>1&&r(a,s[0],s[1])?s=[]:i>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return Cu=o,Cu}var xB=yB();const wB=Xt(xB);function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function md(){return md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},md.apply(this,arguments)}function SB(e,t){return RB(e)||EB(e,t)||_B(e,t)||CB()}function CB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _B(e,t){if(e){if(typeof e=="string")return ab(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ab(e,t)}}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,s,i=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return i}}function RB(e){if(Array.isArray(e))return e}function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(n),!0).forEach(function(r){NB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NB(e,t,n){return t=PB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PB(e){var t=MB(e,"string");return So(t)=="symbol"?t:t+""}function MB(e,t){if(So(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(So(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TB(e){return Array.isArray(e)&&qa(e[0])&&qa(e[1])?e.join(" ~ "):e}var OB=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,s=t.itemStyle,i=s===void 0?{}:s,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,m=t.itemSorter,h=t.wrapperClassName,v=t.labelClassName,g=t.label,b=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,S=function(){if(f&&f.length){var $={padding:0,margin:0},O=(m?wB(f,m):f).map(function(L,F){if(L.type==="none")return null;var D=_u({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},i),V=L.formatter||c||TB,H=L.value,B=L.name,Z=H,Q=B;if(V&&Z!=null&&Q!=null){var q=V(H,B,L,F,f);if(Array.isArray(q)){var A=SB(q,2);Z=A[0],Q=A[1]}else Z=q}return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(F),style:D},qa(Q)?w.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,qa(Q)?w.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,w.createElement("span",{className:"recharts-tooltip-item-value"},Z),w.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:$},O)}return null},C=_u({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),E=_u({margin:0},u),R=!PL(g),_=R?g:"",P=Un("recharts-default-tooltip",h),M=Un("recharts-tooltip-label",v);R&&b&&f!==void 0&&f!==null&&(_=b(g,f));var k=x?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",md({className:P,style:C},k),w.createElement("p",{className:M,style:E},w.isValidElement(_)?_:"".concat(_)),S())};function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function xa(e,t,n){return t=AB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AB(e){var t=DB(e,"string");return Co(t)=="symbol"?t:t+""}function DB(e,t){if(Co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qr="recharts-tooltip-wrapper",IB={visibility:"hidden"};function kB(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Un(Qr,xa(xa(xa(xa({},"".concat(Qr,"-right"),Pt(n)&&t&&Pt(t.x)&&n>=t.x),"".concat(Qr,"-left"),Pt(n)&&t&&Pt(t.x)&&n<t.x),"".concat(Qr,"-bottom"),Pt(r)&&t&&Pt(t.y)&&r>=t.y),"".concat(Qr,"-top"),Pt(r)&&t&&Pt(t.y)&&r<t.y))}function ib(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,s=e.reverseDirection,i=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&Pt(a[r]))return a[r];var f=n[r]-i-o,c=n[r]+o;if(t[r])return s[r]?f:c;if(s[r]){var m=f,h=l[r];return m<h?Math.max(c,l[r]):Math.max(f,l[r])}var v=c+i,g=l[r]+u;return v>g?Math.max(f,l[r]):Math.max(c,l[r])}function jB(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function $B(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipBox,i=e.useTranslate3d,l=e.viewBox,u,f,c;return s.height>0&&s.width>0&&n?(f=ib({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),c=ib({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=jB({translateX:f,translateY:c,useTranslate3d:i})):u=IB,{cssProperties:u,cssClasses:kB({translateX:f,translateY:c,coordinate:n})}}function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(n),!0).forEach(function(r){gd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G0(r.key),r)}}function BB(e,t,n){return t&&FB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zB(e,t,n){return t=Ua(t),qB(e,V0()?Reflect.construct(t,n||[],Ua(e).constructor):t.apply(e,n))}function qB(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WB(e)}function WB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V0=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ua(e)}function HB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hd(e,t)}function hd(e,t){return hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hd(e,t)}function gd(e,t,n){return t=G0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G0(e){var t=VB(e,"string");return Nr(t)=="symbol"?t:t+""}function VB(e,t){if(Nr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ub=1,GB=(function(e){function t(){var n;LB(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=zB(this,t,[].concat(o)),gd(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),gd(n,"handleKeyDown",function(s){if(s.key==="Escape"){var i,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(i=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&i!==void 0?i:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return HB(t,e),BB(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ub||Math.abs(r.height-this.state.lastBoundingBox.height)>ub)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,a=o.active,s=o.allowEscapeViewBox,i=o.animationDuration,l=o.animationEasing,u=o.children,f=o.coordinate,c=o.hasPayload,m=o.isAnimationActive,h=o.offset,v=o.position,g=o.reverseDirection,b=o.useTranslate3d,y=o.viewBox,x=o.wrapperStyle,S=$B({allowEscapeViewBox:s,coordinate:f,offsetTopLeft:h,position:v,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),C=S.cssClasses,E=S.cssProperties,R=cb(cb({transition:m&&a?"transform ".concat(i,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},x);return w.createElement("div",{tabIndex:-1,className:C,style:R,ref:function(P){r.wrapperNode=P}},u)}}])})(w.PureComponent),UB=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},KB={isSsr:UB()};function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?db(Object(n),!0).forEach(function(r){kf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K0(r.key),r)}}function ZB(e,t,n){return t&&XB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QB(e,t,n){return t=Ka(t),JB(e,U0()?Reflect.construct(t,n||[],Ka(e).constructor):t.apply(e,n))}function JB(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ez(e)}function ez(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U0=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ka(e)}function tz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vd(e,t)}function vd(e,t){return vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vd(e,t)}function kf(e,t,n){return t=K0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K0(e){var t=nz(e,"string");return Pr(t)=="symbol"?t:t+""}function nz(e,t){if(Pr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rz(e){return e.dataKey}function oz(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(OB,t)}var jf=(function(e){function t(){return YB(this,t),QB(this,t,arguments)}return tz(t,e),ZB(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,s=o.allowEscapeViewBox,i=o.animationDuration,l=o.animationEasing,u=o.content,f=o.coordinate,c=o.filterNull,m=o.isAnimationActive,h=o.offset,v=o.payload,g=o.payloadUniqBy,b=o.position,y=o.reverseDirection,x=o.useTranslate3d,S=o.viewBox,C=o.wrapperStyle,E=v??[];c&&E.length&&(E=q0(v.filter(function(_){return _.value!=null&&(_.hide!==!0||r.props.includeHidden)}),g,rz));var R=E.length>0;return w.createElement(GB,{allowEscapeViewBox:s,animationDuration:i,animationEasing:l,isAnimationActive:m,active:a,coordinate:f,hasPayload:R,offset:h,position:b,reverseDirection:y,useTranslate3d:x,viewBox:S,wrapperStyle:C},oz(u,fb(fb({},this.props),{},{payload:E})))}}])})(w.PureComponent);kf(jf,"displayName","Tooltip");kf(jf,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!KB.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Eu,pb;function az(){if(pb)return Eu;pb=1;var e=Qt(),t=function(){return e.Date.now()};return Eu=t,Eu}var Ru,mb;function sz(){if(mb)return Ru;mb=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Ru=t,Ru}var Nu,hb;function iz(){if(hb)return Nu;hb=1;var e=sz(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Nu=n,Nu}var Pu,gb;function lz(){if(gb)return Pu;gb=1;var e=iz(),t=On(),n=Vo(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,i=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=t(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=e(u);var c=a.test(u);return c||s.test(u)?i(u.slice(2),c?2:8):o.test(u)?r:+u}return Pu=l,Pu}var Mu,vb;function cz(){if(vb)return Mu;vb=1;var e=On(),t=az(),n=lz(),r="Expected a function",o=Math.max,a=Math.min;function s(i,l,u){var f,c,m,h,v,g,b=0,y=!1,x=!1,S=!0;if(typeof i!="function")throw new TypeError(r);l=n(l)||0,e(u)&&(y=!!u.leading,x="maxWait"in u,m=x?o(n(u.maxWait)||0,l):m,S="trailing"in u?!!u.trailing:S);function C(O){var L=f,F=c;return f=c=void 0,b=O,h=i.apply(F,L),h}function E(O){return b=O,v=setTimeout(P,l),y?C(O):h}function R(O){var L=O-g,F=O-b,D=l-L;return x?a(D,m-F):D}function _(O){var L=O-g,F=O-b;return g===void 0||L>=l||L<0||x&&F>=m}function P(){var O=t();if(_(O))return M(O);v=setTimeout(P,R(O))}function M(O){return v=void 0,S&&f?C(O):(f=c=void 0,h)}function k(){v!==void 0&&clearTimeout(v),b=0,f=g=c=v=void 0}function T(){return v===void 0?h:M(t())}function $(){var O=t(),L=_(O);if(f=arguments,c=this,g=O,L){if(v===void 0)return E(g);if(x)return clearTimeout(v),v=setTimeout(P,l),C(g)}return v===void 0&&(v=setTimeout(P,l)),h}return $.cancel=k,$.flush=T,$}return Mu=s,Mu}var Tu,bb;function uz(){if(bb)return Tu;bb=1;var e=cz(),t=On(),n="Expected a function";function r(o,a,s){var i=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(s)&&(i="leading"in s?!!s.leading:i,l="trailing"in s?!!s.trailing:l),e(o,a,{leading:i,maxWait:a,trailing:l})}return Tu=r,Tu}var dz=uz();const fz=Xt(dz);function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(n),!0).forEach(function(r){pz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pz(e,t,n){return t=mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mz(e){var t=hz(e,"string");return _o(t)=="symbol"?t:t+""}function hz(e,t){if(_o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gz(e,t){return xz(e)||yz(e,t)||bz(e,t)||vz()}function vz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bz(e,t){if(e){if(typeof e=="string")return xb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xb(e,t)}}function xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,s,i=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return i}}function xz(e){if(Array.isArray(e))return e}var wz=w.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,s=a===void 0?"100%":a,i=e.height,l=i===void 0?"100%":i,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,m=e.maxHeight,h=e.children,v=e.debounce,g=v===void 0?0:v,b=e.id,y=e.className,x=e.onResize,S=e.style,C=S===void 0?{}:S,E=w.useRef(null),R=w.useRef();R.current=x,w.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var _=w.useState({containerWidth:o.width,containerHeight:o.height}),P=gz(_,2),M=P[0],k=P[1],T=w.useCallback(function(O,L){k(function(F){var D=Math.round(O),V=Math.round(L);return F.containerWidth===D&&F.containerHeight===V?F:{containerWidth:D,containerHeight:V}})},[]);w.useEffect(function(){var O=function(B){var Z,Q=B[0].contentRect,q=Q.width,A=Q.height;T(q,A),(Z=R.current)===null||Z===void 0||Z.call(R,q,A)};g>0&&(O=fz(O,g,{trailing:!0,leading:!1}));var L=new ResizeObserver(O),F=E.current.getBoundingClientRect(),D=F.width,V=F.height;return T(D,V),L.observe(E.current),function(){L.disconnect()}},[T,g]);var $=w.useMemo(function(){var O=M.containerWidth,L=M.containerHeight;if(O<0||L<0)return null;Ta(ba(s)||ba(l),`The width(%s) and height(%s) are both fixed numbers,
57
+ maybe you don't need to use a ResponsiveContainer.`,s,l),Ta(!n||n>0,"The aspect(%s) must be greater than zero.",n);var F=ba(s)?O:s,D=ba(l)?L:l;n&&n>0&&(F?D=F/n:D&&(F=D*n),m&&D>m&&(D=m)),Ta(F>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
58
58
  please check the style of container, or the props width(%s) and height(%s),
59
59
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
60
- height and width.`,H,$,i,l,f,c,n);var K=!Array.isArray(h)&&EL(h.type).endsWith("Chart");return w.Children.map(h,function(V){return w.isValidElement(V)?w.cloneElement(V,ba({width:H,height:$},K?{style:ba({height:"100%",width:"100%",maxHeight:$,maxWidth:H},V.props.style)}:{})):V})},[n,h,l,m,c,f,M,i]);return w.createElement("div",{id:b?"".concat(b):void 0,className:dn("recharts-responsive-container",y),style:ba(ba({},C),{},{width:i,height:l,minWidth:f,minHeight:c,maxHeight:m}),ref:E},j)});const nz={light:"",dark:".dark"},B0=d.createContext(null);function z0(){const e=d.useContext(B0);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const q0=d.forwardRef(({id:e,className:t,children:n,config:r,...o},a)=>{const i=d.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return p.jsx(B0.Provider,{value:{config:r},children:p.jsxs("div",{"data-chart":s,ref:a,className:N("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[p.jsx(W0,{id:s,config:r}),p.jsx(tz,{children:n})]})})});q0.displayName="Chart";const W0=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?p.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(nz).map(([r,o])=>`
60
+ height and width.`,F,D,s,l,f,c,n);var V=!Array.isArray(h)&&VL(h.type).endsWith("Chart");return w.Children.map(h,function(H){return w.isValidElement(H)?w.cloneElement(H,wa({width:F,height:D},V?{style:wa({height:"100%",width:"100%",maxHeight:D,maxWidth:F},H.props.style)}:{})):H})},[n,h,l,m,c,f,M,s]);return w.createElement("div",{id:b?"".concat(b):void 0,className:Un("recharts-responsive-container",y),style:wa(wa({},C),{},{width:s,height:l,minWidth:f,minHeight:c,maxHeight:m}),ref:E},$)});const Sz={light:"",dark:".dark"},Y0=d.createContext(null);function X0(){const e=d.useContext(Y0);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Z0=d.forwardRef(({id:e,className:t,children:n,config:r,...o},a)=>{const s=d.useId(),i=`chart-${e||s.replace(/:/g,"")}`;return p.jsx(Y0.Provider,{value:{config:r},children:p.jsxs("div",{"data-chart":i,ref:a,className:N("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[p.jsx(Q0,{id:i,config:r}),p.jsx(wz,{children:n})]})})});Z0.displayName="Chart";const Q0=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?p.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Sz).map(([r,o])=>`
61
61
  ${o} [data-chart=${e}] {
62
- ${n.map(([a,i])=>{const s=i.theme?.[r]||i.color;return s?` --color-${a}: ${s};`:null}).join(`
62
+ ${n.map(([a,s])=>{const i=s.theme?.[r]||s.color;return i?` --color-${a}: ${i};`:null}).join(`
63
63
  `)}
64
64
  }
65
65
  `).join(`
66
- `)}}):null},rz=Mf,H0=d.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:l,formatter:u,color:f,nameKey:c,labelKey:m},h)=>{const{config:v}=z0(),g=d.useMemo(()=>{if(o||!t?.length)return null;const[y]=t,x=`${m||y?.dataKey||y?.name||"value"}`,S=dd(v,y,x),C=!m&&typeof i=="string"?v[i]?.label||i:S?.label;return s?p.jsx("div",{className:N("font-medium",l),children:s(C,t)}):C?p.jsx("div",{className:N("font-medium",l),children:C}):null},[i,s,t,o,l,v,m]);if(!e||!t?.length)return null;const b=t.length===1&&r!=="dot";return p.jsxs("div",{ref:h,className:N("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[b?null:g,p.jsx("div",{className:"grid gap-1.5",children:t.filter(y=>y.type!=="none").map((y,x)=>{const S=`${c||y.name||y.dataKey||"value"}`,C=dd(v,y,S),E=f||y.payload.fill||y.color;return p.jsx("div",{className:N("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&y?.value!==void 0&&y.name?u(y.value,y.name,y,x,y.payload):p.jsxs(p.Fragment,{children:[C?.icon?p.jsx(C.icon,{}):!a&&p.jsx("div",{className:N("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":b&&r==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),p.jsxs("div",{className:N("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[p.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,p.jsx("span",{className:"text-muted-foreground",children:C?.label||y.name})]}),y.value&&p.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});H0.displayName="ChartTooltip";const oz=Nf,G0=d.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},a)=>{const{config:i}=z0();return n?.length?p.jsx("div",{ref:a,className:N("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.filter(s=>s.type!=="none").map(s=>{const l=`${o||s.dataKey||"value"}`,u=dd(i,s,l);return p.jsxs("div",{className:N("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u?.icon&&!t?p.jsx(u.icon,{}):p.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),u?.label]},s.value)})}):null});G0.displayName="ChartLegend";function dd(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function Fr(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Wo(e){const[t,n]=d.useState(void 0);return Ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ai="Checkbox",[az]=ke(Ai),[iz,Tf]=az(Ai);function sz(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:l,required:u,value:f="on",internal_do_not_use_render:c}=e,[m,h]=Ae({prop:n,defaultProp:o??!1,onChange:l,caller:Ai}),[v,g]=d.useState(null),[b,y]=d.useState(null),x=d.useRef(!1),S=v?!!i||!!v.closest("form"):!0,C={checked:m,disabled:a,setChecked:h,control:v,setControl:g,name:s,form:i,value:f,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:Cn(o)?!1:o,isFormControl:S,bubbleInput:b,setBubbleInput:y};return p.jsx(iz,{scope:t,...C,children:lz(c)?c(C):r})}var V0="CheckboxTrigger",U0=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:l,required:u,setControl:f,setChecked:c,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:v}=Tf(V0,e),g=ce(o,f),b=d.useRef(l);return d.useEffect(()=>{const y=a?.form;if(y){const x=()=>c(b.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,c]),p.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":Cn(l)?"mixed":l,"aria-required":u,"data-state":Q0(l),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:g,onKeyDown:G(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:G(n,y=>{c(x=>Cn(x)?!0:!x),v&&h&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});U0.displayName=V0;var Of=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l,onCheckedChange:u,form:f,...c}=e;return p.jsx(sz,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:u,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:m})=>p.jsxs(p.Fragment,{children:[p.jsx(U0,{...c,ref:t,__scopeCheckbox:n}),m&&p.jsx(Z0,{__scopeCheckbox:n})]})})});Of.displayName=Ai;var K0="CheckboxIndicator",Y0=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Tf(K0,n);return p.jsx(De,{present:r||Cn(a.checked)||a.checked===!0,children:p.jsx(ne.span,{"data-state":Q0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Y0.displayName=K0;var X0="CheckboxBubbleInput",Z0=d.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:l,name:u,value:f,form:c,bubbleInput:m,setBubbleInput:h}=Tf(X0,e),v=ce(n,h),g=Fr(a),b=Wo(r);d.useEffect(()=>{const x=m;if(!x)return;const S=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(S,"checked").set,R=!o.current;if(g!==a&&E){const _=new Event("click",{bubbles:R});x.indeterminate=Cn(a),E.call(x,Cn(a)?!1:a),x.dispatchEvent(_)}},[m,g,a,o]);const y=d.useRef(Cn(a)?!1:a);return p.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:s,disabled:l,name:u,value:f,form:c,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Z0.displayName=X0;function lz(e){return typeof e=="function"}function Cn(e){return e==="indeterminate"}function Q0(e){return Cn(e)?"indeterminate":e?"checked":"unchecked"}const J0=d.forwardRef(({className:e,...t},n)=>p.jsx(Of,{ref:n,className:N("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-border shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary-light data-[state=checked]:border-primary-light data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(Y0,{className:N("grid place-content-center text-current"),children:p.jsx(To,{className:"h-4 w-4"})})}));J0.displayName=Of.displayName;const cz=ly,uz=Hd,dz=Vd;var hb=1,fz=.9,pz=.8,mz=.17,Nu=.1,Pu=.999,hz=.9999,gz=.99,vz=/[\\\/_+.#"@\[\(\{&]/,bz=/[\\\/_+.#"@\[\(\{&]/g,yz=/[\s-]/,eS=/[\s-]/g;function fd(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?hb:gz;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var l=r.charAt(a),u=n.indexOf(l,o),f=0,c,m,h,v;u>=0;)c=fd(e,t,n,r,u+1,a+1,i),c>f&&(u===o?c*=hb:vz.test(e.charAt(u-1))?(c*=pz,h=e.slice(o,u-1).match(bz),h&&o>0&&(c*=Math.pow(Pu,h.length))):yz.test(e.charAt(u-1))?(c*=fz,v=e.slice(o,u-1).match(eS),v&&o>0&&(c*=Math.pow(Pu,v.length))):(c*=mz,o>0&&(c*=Math.pow(Pu,u-o))),e.charAt(u)!==t.charAt(a)&&(c*=hz)),(c<Nu&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(m=fd(e,t,n,r,u+1,a+2,i),m*Nu>c&&(c=m*Nu)),c>f&&(f=c),u=n.indexOf(l,u+1);return i[s]=f,f}function gb(e){return e.toLowerCase().replace(eS," ")}function xz(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,fd(e,t,gb(e),gb(t),0,0,{})}var Zr='[cmdk-group=""]',Mu='[cmdk-group-items=""]',wz='[cmdk-group-heading=""]',tS='[cmdk-item=""]',vb=`${tS}:not([aria-disabled="true"])`,pd="cmdk-item-select",fr="data-value",Sz=(e,t,n)=>xz(e,t,n),nS=d.createContext(void 0),Ho=()=>d.useContext(nS),rS=d.createContext(void 0),Af=()=>d.useContext(rS),oS=d.createContext(void 0),aS=d.forwardRef((e,t)=>{let n=pr(()=>{var B,D;return{search:"",value:(D=(B=e.value)!=null?B:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=pr(()=>new Set),o=pr(()=>new Map),a=pr(()=>new Map),i=pr(()=>new Set),s=iS(e),{label:l,children:u,value:f,onValueChange:c,filter:m,shouldFilter:h,loop:v,disablePointerSelection:g=!1,vimBindings:b=!0,...y}=e,x=Te(),S=Te(),C=Te(),E=d.useRef(null),R=Dz();Vn(()=>{if(f!==void 0){let B=f.trim();n.current.value=B,_.emit()}},[f]),Vn(()=>{R(6,O)},[]);let _=d.useMemo(()=>({subscribe:B=>(i.current.add(B),()=>i.current.delete(B)),snapshot:()=>n.current,setState:(B,D,z)=>{var L,U,I,W;if(!Object.is(n.current[B],D)){if(n.current[B]=D,B==="search")j(),k(),R(1,T);else if(B==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(C);Q?Q.focus():(L=document.getElementById(x))==null||L.focus()}if(R(7,()=>{var Q;n.current.selectedItemId=(Q=F())==null?void 0:Q.id,_.emit()}),z||R(5,O),((U=s.current)==null?void 0:U.value)!==void 0){let Q=D??"";(W=(I=s.current).onValueChange)==null||W.call(I,Q);return}}_.emit()}},emit:()=>{i.current.forEach(B=>B())}}),[]),P=d.useMemo(()=>({value:(B,D,z)=>{var L;D!==((L=a.current.get(B))==null?void 0:L.value)&&(a.current.set(B,{value:D,keywords:z}),n.current.filtered.items.set(B,M(D,z)),R(2,()=>{k(),_.emit()}))},item:(B,D)=>(r.current.add(B),D&&(o.current.has(D)?o.current.get(D).add(B):o.current.set(D,new Set([B]))),R(3,()=>{j(),k(),n.current.value||T(),_.emit()}),()=>{a.current.delete(B),r.current.delete(B),n.current.filtered.items.delete(B);let z=F();R(4,()=>{j(),z?.getAttribute("id")===B&&T(),_.emit()})}),group:B=>(o.current.has(B)||o.current.set(B,new Set),()=>{a.current.delete(B),o.current.delete(B)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:C,labelId:S,listInnerRef:E}),[]);function M(B,D){var z,L;let U=(L=(z=s.current)==null?void 0:z.filter)!=null?L:Sz;return B?U(B,n.current.search,D):0}function k(){if(!n.current.search||s.current.shouldFilter===!1)return;let B=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(L=>{let U=o.current.get(L),I=0;U.forEach(W=>{let Q=B.get(W);I=Math.max(Q,I)}),D.push([L,I])});let z=E.current;H().sort((L,U)=>{var I,W;let Q=L.getAttribute("id"),te=U.getAttribute("id");return((I=B.get(te))!=null?I:0)-((W=B.get(Q))!=null?W:0)}).forEach(L=>{let U=L.closest(Mu);U?U.appendChild(L.parentElement===U?L:L.closest(`${Mu} > *`)):z.appendChild(L.parentElement===z?L:L.closest(`${Mu} > *`))}),D.sort((L,U)=>U[1]-L[1]).forEach(L=>{var U;let I=(U=E.current)==null?void 0:U.querySelector(`${Zr}[${fr}="${encodeURIComponent(L[0])}"]`);I?.parentElement.appendChild(I)})}function T(){let B=H().find(z=>z.getAttribute("aria-disabled")!=="true"),D=B?.getAttribute(fr);_.setState("value",D||void 0)}function j(){var B,D,z,L;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let U=0;for(let I of r.current){let W=(D=(B=a.current.get(I))==null?void 0:B.value)!=null?D:"",Q=(L=(z=a.current.get(I))==null?void 0:z.keywords)!=null?L:[],te=M(W,Q);n.current.filtered.items.set(I,te),te>0&&U++}for(let[I,W]of o.current)for(let Q of W)if(n.current.filtered.items.get(Q)>0){n.current.filtered.groups.add(I);break}n.current.filtered.count=U}function O(){var B,D,z;let L=F();L&&(((B=L.parentElement)==null?void 0:B.firstChild)===L&&((z=(D=L.closest(Zr))==null?void 0:D.querySelector(wz))==null||z.scrollIntoView({block:"nearest"})),L.scrollIntoView({block:"nearest"}))}function F(){var B;return(B=E.current)==null?void 0:B.querySelector(`${tS}[aria-selected="true"]`)}function H(){var B;return Array.from(((B=E.current)==null?void 0:B.querySelectorAll(vb))||[])}function $(B){let D=H()[B];D&&_.setState("value",D.getAttribute(fr))}function K(B){var D;let z=F(),L=H(),U=L.findIndex(W=>W===z),I=L[U+B];(D=s.current)!=null&&D.loop&&(I=U+B<0?L[L.length-1]:U+B===L.length?L[0]:L[U+B]),I&&_.setState("value",I.getAttribute(fr))}function V(B){let D=F(),z=D?.closest(Zr),L;for(;z&&!L;)z=B>0?Oz(z,Zr):Az(z,Zr),L=z?.querySelector(vb);L?_.setState("value",L.getAttribute(fr)):K(B)}let q=()=>$(H().length-1),ee=B=>{B.preventDefault(),B.metaKey?q():B.altKey?V(1):K(1)},J=B=>{B.preventDefault(),B.metaKey?$(0):B.altKey?V(-1):K(-1)};return d.createElement(tt.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:B=>{var D;(D=y.onKeyDown)==null||D.call(y,B);let z=B.nativeEvent.isComposing||B.keyCode===229;if(!(B.defaultPrevented||z))switch(B.key){case"n":case"j":{b&&B.ctrlKey&&ee(B);break}case"ArrowDown":{ee(B);break}case"p":case"k":{b&&B.ctrlKey&&J(B);break}case"ArrowUp":{J(B);break}case"Home":{B.preventDefault(),$(0);break}case"End":{B.preventDefault(),q();break}case"Enter":{B.preventDefault();let L=F();if(L){let U=new Event(pd);L.dispatchEvent(U)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:kz},l),Di(e,B=>d.createElement(rS.Provider,{value:_},d.createElement(nS.Provider,{value:P},B))))}),Cz=d.forwardRef((e,t)=>{var n,r;let o=Te(),a=d.useRef(null),i=d.useContext(oS),s=Ho(),l=iS(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:i?.forceMount;Vn(()=>{if(!u)return s.item(o,i?.id)},[u]);let f=sS(o,a,[e.value,e.children,a],e.keywords),c=Af(),m=_n(R=>R.value&&R.value===f.current),h=_n(R=>u||s.filter()===!1?!0:R.search?R.filtered.items.get(o)>0:!0);d.useEffect(()=>{let R=a.current;if(!(!R||e.disabled))return R.addEventListener(pd,v),()=>R.removeEventListener(pd,v)},[h,e.onSelect,e.disabled]);function v(){var R,_;g(),(_=(R=l.current).onSelect)==null||_.call(R,f.current)}function g(){c.setState("value",f.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:x,forceMount:S,keywords:C,...E}=e;return d.createElement(tt.div,{ref:Ot(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!m,"data-disabled":!!b,"data-selected":!!m,onPointerMove:b||s.getDisablePointerSelection()?void 0:g,onClick:b?void 0:v},e.children)}),_z=d.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Te(),s=d.useRef(null),l=d.useRef(null),u=Te(),f=Ho(),c=_n(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);Vn(()=>f.group(i),[]),sS(i,s,[e.value,e.heading,l]);let m=d.useMemo(()=>({id:i,forceMount:o}),[o]);return d.createElement(tt.div,{ref:Ot(s,t),...a,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&d.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Di(e,h=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},d.createElement(oS.Provider,{value:m},h))))}),Ez=d.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=d.useRef(null),a=_n(i=>!i.search);return!n&&!a?null:d.createElement(tt.div,{ref:Ot(o,t),...r,"cmdk-separator":"",role:"separator"})}),Rz=d.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Af(),i=_n(u=>u.search),s=_n(u=>u.selectedItemId),l=Ho();return d.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),d.createElement(tt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),n?.(u.target.value)}})}),Nz=d.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=d.useRef(null),i=d.useRef(null),s=_n(u=>u.selectedItemId),l=Ho();return d.useEffect(()=>{if(i.current&&a.current){let u=i.current,f=a.current,c,m=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let h=u.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(c),m.unobserve(u)}}},[]),d.createElement(tt.div,{ref:Ot(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},Di(e,u=>d.createElement("div",{ref:Ot(i,l.listInnerRef),"cmdk-list-sizer":""},u)))}),Pz=d.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return d.createElement(Io,{open:n,onOpenChange:r},d.createElement(ko,{container:i},d.createElement(Qn,{"cmdk-overlay":"",className:o}),d.createElement(Jn,{"aria-label":e.label,"cmdk-dialog":"",className:a},d.createElement(aS,{ref:t,...s}))))}),Mz=d.forwardRef((e,t)=>_n(n=>n.filtered.count===0)?d.createElement(tt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Tz=d.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return d.createElement(tt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Di(e,i=>d.createElement("div",{"aria-hidden":!0},i)))}),dt=Object.assign(aS,{List:Nz,Item:Cz,Input:Rz,Group:_z,Separator:Ez,Dialog:Pz,Empty:Mz,Loading:Tz});function Oz(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Az(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function iS(e){let t=d.useRef(e);return Vn(()=>{t.current=e}),t}var Vn=typeof window>"u"?d.useEffect:d.useLayoutEffect;function pr(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function _n(e){let t=Af(),n=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,n,n)}function sS(e,t,n,r=[]){let o=d.useRef(),a=Ho();return Vn(()=>{var i;let s=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,s,l),(i=t.current)==null||i.setAttribute(fr,s),o.current=s}),o}var Dz=()=>{let[e,t]=d.useState(),n=pr(()=>new Map);return Vn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Iz(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Di({asChild:e,children:t},n){return e&&d.isValidElement(t)?d.cloneElement(Iz(t),{ref:t.ref},n(t.props.children)):n(t)}var kz={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const lS=d.createContext({density:"default"}),Df=()=>d.useContext(lS),jz=Ke("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",{variants:{density:{compact:"p-4 pb-0",default:"p-5 pb-0",relaxed:"p-6 pb-0"}},defaultVariants:{density:"default"}}),$z=Ke("absolute rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground/50",{variants:{density:{compact:"right-3 top-3",default:"right-5 top-4",relaxed:"right-5 top-5"}},defaultVariants:{density:"default"}}),Lz=Ke("flex flex-col text-center sm:text-left",{variants:{density:{compact:"pb-0",default:"pb-0",relaxed:"pb-0"}},defaultVariants:{density:"default"}}),Fz=Ke("flex flex-col-reverse sm:flex-row sm:justify-end",{variants:{density:{compact:"pb-4",default:"pb-5",relaxed:"pb-6"}},defaultVariants:{density:"default"}}),cS=({density:e="relaxed",...t})=>p.jsx(lS.Provider,{value:{density:e},children:p.jsx(Io,{...t})}),Bz=bi,uS=ko,zz=er,If=d.forwardRef(({className:e,...t},n)=>p.jsx(Qn,{ref:n,className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));If.displayName=Qn.displayName;const kf=d.forwardRef(({className:e,children:t,...n},r)=>{const{density:o}=Df();return p.jsxs(uS,{children:[p.jsx(If,{}),p.jsxs(Jn,{ref:r,className:N(jz({density:o}),e),...n,children:[t,p.jsxs(er,{className:N($z({density:o})),children:[p.jsx(Ey,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});kf.displayName=Jn.displayName;const dS=({className:e,...t})=>{const{density:n}=Df();return p.jsx("div",{className:N(Lz({density:n}),e),...t})};dS.displayName="DialogHeader";const fS=({className:e,...t})=>{const{density:n}=Df();return p.jsx("div",{className:N(Fz({density:n}),e),...t})};fS.displayName="DialogFooter";const pS=d.forwardRef(({className:e,...t},n)=>p.jsx(kr,{ref:n,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));pS.displayName=kr.displayName;const mS=d.forwardRef(({className:e,...t},n)=>p.jsx(jr,{ref:n,className:N("text-sm text-foreground/50",e),...t}));mS.displayName=jr.displayName;const jf=d.forwardRef(({className:e,...t},n)=>p.jsx(dt,{ref:n,className:N("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));jf.displayName=dt.displayName;const qz=({children:e,...t})=>p.jsx(cS,{...t,children:p.jsx(kf,{className:"overflow-hidden p-0",children:p.jsx(jf,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),hS=d.forwardRef(({className:e,...t},n)=>p.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[p.jsx(iO,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx(dt.Input,{ref:n,className:N("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));hS.displayName=dt.Input.displayName;const gS=d.forwardRef(({className:e,...t},n)=>p.jsx(dt.List,{ref:n,className:N("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));gS.displayName=dt.List.displayName;const vS=d.forwardRef((e,t)=>p.jsx(dt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));vS.displayName=dt.Empty.displayName;const bS=d.forwardRef(({className:e,...t},n)=>p.jsx(dt.Group,{ref:n,className:N("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));bS.displayName=dt.Group.displayName;const yS=d.forwardRef(({className:e,...t},n)=>p.jsx(dt.Separator,{ref:n,className:N("-mx-1 h-px bg-border",e),...t}));yS.displayName=dt.Separator.displayName;const xS=d.forwardRef(({className:e,...t},n)=>p.jsx(dt.Item,{ref:n,className:N("relative flex transition-colors duration-300 cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));xS.displayName=dt.Item.displayName;const wS=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});wS.displayName="CommandShortcut";const Wz=["top","right","bottom","left"],En=Math.min,mt=Math.max,Ga=Math.round,ya=Math.floor,Vt=e=>({x:e,y:e}),Hz={left:"right",right:"left",bottom:"top",top:"bottom"},Gz={start:"end",end:"start"};function md(e,t,n){return mt(e,En(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function Br(e){return e.split("-")[1]}function $f(e){return e==="x"?"y":"x"}function Lf(e){return e==="y"?"height":"width"}const Vz=new Set(["top","bottom"]);function Gt(e){return Vz.has(pn(e))?"y":"x"}function Ff(e){return $f(Gt(e))}function Uz(e,t,n){n===void 0&&(n=!1);const r=Br(e),o=Ff(e),a=Lf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Va(i)),[i,Va(i)]}function Kz(e){const t=Va(e);return[hd(e),t,hd(t)]}function hd(e){return e.replace(/start|end/g,t=>Gz[t])}const bb=["left","right"],yb=["right","left"],Yz=["top","bottom"],Xz=["bottom","top"];function Zz(e,t,n){switch(e){case"top":case"bottom":return n?t?yb:bb:t?bb:yb;case"left":case"right":return t?Yz:Xz;default:return[]}}function Qz(e,t,n,r){const o=Br(e);let a=Zz(pn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(hd)))),a}function Va(e){return e.replace(/left|right|bottom|top/g,t=>Hz[t])}function Jz(e){return{top:0,right:0,bottom:0,left:0,...e}}function SS(e){return typeof e!="number"?Jz(e):{top:e,right:e,bottom:e,left:e}}function Ua(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function xb(e,t,n){let{reference:r,floating:o}=e;const a=Gt(t),i=Ff(t),s=Lf(i),l=pn(t),u=a==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Br(t)){case"start":h[i]-=m*(n&&u?-1:1);break;case"end":h[i]+=m*(n&&u?-1:1);break}return h}const eq=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=xb(u,r,l),m=r,h={},v=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x,y:S,data:C,reset:E}=await y({x:f,y:c,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,c=S??c,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:c}=xb(u,m,l)),g=-1)}return{x:f,y:c,placement:m,strategy:o,middlewareData:h}};async function So(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:m=!1,padding:h=0}=fn(t,e),v=SS(h),b=s[m?c==="floating"?"reference":"floating":c],y=Ua(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),x=c==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=Ua(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:l}):x);return{top:(y.top-E.top+v.top)/C.y,bottom:(E.bottom-y.bottom+v.bottom)/C.y,left:(y.left-E.left+v.left)/C.x,right:(E.right-y.right+v.right)/C.x}}const tq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=fn(e,t)||{};if(u==null)return{};const c=SS(f),m={x:n,y:r},h=Ff(o),v=Lf(h),g=await i.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-m[h]-a.floating[v],E=m[h]-a.reference[h],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=R?R[S]:0;(!_||!await(i.isElement==null?void 0:i.isElement(R)))&&(_=s.floating[S]||a.floating[v]);const P=C/2-E/2,M=_/2-g[v]/2-1,k=En(c[y],M),T=En(c[x],M),j=k,O=_-g[v]-T,F=_/2-g[v]/2+P,H=md(j,F,O),$=!l.arrow&&Br(o)!=null&&F!==H&&a.reference[v]/2-(F<j?k:T)-g[v]/2<0,K=$?F<j?F-j:F-O:0;return{[h]:m[h]+K,data:{[h]:H,centerOffset:F-H-K,...$&&{alignmentOffset:K}},reset:$}}}),nq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=fn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=pn(o),x=Gt(s),S=pn(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(S||!g?[Va(s)]:Kz(s)),R=v!=="none";!m&&R&&E.push(...Qz(s,g,v,C));const _=[s,...E],P=await So(t,b),M=[];let k=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&M.push(P[y]),c){const F=Uz(o,i,C);M.push(P[F[0]],P[F[1]])}if(k=[...k,{placement:o,overflows:M}],!M.every(F=>F<=0)){var T,j;const F=(((T=a.flip)==null?void 0:T.index)||0)+1,H=_[F];if(H&&(!(c==="alignment"?x!==Gt(H):!1)||k.every(V=>Gt(V.placement)===x?V.overflows[0]>0:!0)))return{data:{index:F,overflows:k},reset:{placement:H}};let $=(j=k.filter(K=>K.overflows[0]<=0).sort((K,V)=>K.overflows[1]-V.overflows[1])[0])==null?void 0:j.placement;if(!$)switch(h){case"bestFit":{var O;const K=(O=k.filter(V=>{if(R){const q=Gt(V.placement);return q===x||q==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(q=>q>0).reduce((q,ee)=>q+ee,0)]).sort((V,q)=>V[1]-q[1])[0])==null?void 0:O[0];K&&($=K);break}case"initialPlacement":$=s;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function wb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sb(e){return Wz.some(t=>e[t]>=0)}const rq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const a=await So(t,{...o,elementContext:"reference"}),i=wb(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Sb(i)}}}case"escaped":{const a=await So(t,{...o,altBoundary:!0}),i=wb(a,n.floating);return{data:{escapedOffsets:i,escaped:Sb(i)}}}default:return{}}}}},CS=new Set(["left","top"]);async function oq(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=pn(n),s=Br(n),l=Gt(n)==="y",u=CS.has(i)?-1:1,f=a&&l?-1:1,c=fn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const aq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await oq(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},iq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=fn(e,t),u={x:n,y:r},f=await So(t,l),c=Gt(pn(o)),m=$f(c);let h=u[m],v=u[c];if(a){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=h+f[b],S=h-f[y];h=md(x,h,S)}if(i){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",x=v+f[b],S=v-f[y];v=md(x,v,S)}const g=s.fn({...t,[m]:h,[c]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[c]:i}}}}}},sq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fn(e,t),f={x:n,y:r},c=Gt(o),m=$f(c);let h=f[m],v=f[c];const g=fn(s,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=m==="y"?"height":"width",C=a.reference[m]-a.floating[S]+b.mainAxis,E=a.reference[m]+a.reference[S]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(u){var y,x;const S=m==="y"?"width":"height",C=CS.has(pn(o)),E=a.reference[c]-a.floating[S]+(C&&((y=i.offset)==null?void 0:y[c])||0)+(C?0:b.crossAxis),R=a.reference[c]+a.reference[S]+(C?0:((x=i.offset)==null?void 0:x[c])||0)-(C?b.crossAxis:0);v<E?v=E:v>R&&(v=R)}return{[m]:h,[c]:v}}}},lq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=fn(e,t),f=await So(t,u),c=pn(o),m=Br(o),h=Gt(o)==="y",{width:v,height:g}=a.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,b=m==="end"?"top":"bottom");const x=g-f.top-f.bottom,S=v-f.left-f.right,C=En(g-f[b],x),E=En(v-f[y],S),R=!t.middlewareData.shift;let _=C,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),R&&!m){const k=mt(f.left,0),T=mt(f.right,0),j=mt(f.top,0),O=mt(f.bottom,0);h?P=v-2*(k!==0||T!==0?k+T:mt(f.left,f.right)):_=g-2*(j!==0||O!==0?j+O:mt(f.top,f.bottom))}await l({...t,availableWidth:P,availableHeight:_});const M=await i.getDimensions(s.floating);return v!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ii(){return typeof window<"u"}function zr(e){return _S(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(_S(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _S(e){return Ii()?e instanceof Node||e instanceof ht(e).Node:!1}function At(e){return Ii()?e instanceof Element||e instanceof ht(e).Element:!1}function Ut(e){return Ii()?e instanceof HTMLElement||e instanceof ht(e).HTMLElement:!1}function Cb(e){return!Ii()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot}const cq=new Set(["inline","contents"]);function Go(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!cq.has(o)}const uq=new Set(["table","td","th"]);function dq(e){return uq.has(zr(e))}const fq=[":popover-open",":modal"];function ki(e){return fq.some(t=>{try{return e.matches(t)}catch{return!1}})}const pq=["transform","translate","scale","rotate","perspective"],mq=["transform","translate","scale","rotate","perspective","filter"],hq=["paint","layout","strict","content"];function Bf(e){const t=zf(),n=At(e)?Dt(e):e;return pq.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||mq.some(r=>(n.willChange||"").includes(r))||hq.some(r=>(n.contain||"").includes(r))}function gq(e){let t=Rn(e);for(;Ut(t)&&!Nr(t);){if(Bf(t))return t;if(ki(t))return null;t=Rn(t)}return null}function zf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vq=new Set(["html","body","#document"]);function Nr(e){return vq.has(zr(e))}function Dt(e){return ht(e).getComputedStyle(e)}function ji(e){return At(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rn(e){if(zr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cb(e)&&e.host||Qt(e);return Cb(t)?t.host:t}function ES(e){const t=Rn(e);return Nr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&Go(t)?t:ES(t)}function Co(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ES(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=ht(o);if(a){const s=gd(i);return t.concat(i,i.visualViewport||[],Go(o)?o:[],s&&n?Co(s):[])}return t.concat(o,Co(o,[],n))}function gd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function RS(e){const t=Dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ut(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Ga(n)!==a||Ga(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function qf(e){return At(e)?e:e.contextElement}function yr(e){const t=qf(e);if(!Ut(t))return Vt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=RS(t);let i=(a?Ga(n.width):n.width)/r,s=(a?Ga(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const bq=Vt(0);function NS(e){const t=ht(e);return!zf()||!t.visualViewport?bq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ht(e)?!1:t}function Un(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=qf(e);let i=Vt(1);t&&(r?At(r)&&(i=yr(r)):i=yr(e));const s=yq(a,n,r)?NS(a):Vt(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,f=o.width/i.x,c=o.height/i.y;if(a){const m=ht(a),h=r&&At(r)?ht(r):r;let v=m,g=gd(v);for(;g&&r&&h!==v;){const b=yr(g),y=g.getBoundingClientRect(),x=Dt(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,C=y.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,c*=b.y,l+=S,u+=C,v=ht(g),g=gd(v)}}return Ua({width:f,height:c,x:l,y:u})}function $i(e,t){const n=ji(e).scrollLeft;return t?t.left+n:Un(Qt(e)).left+n}function PS(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-$i(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xq(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Qt(r),s=t?ki(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Vt(1);const f=Vt(0),c=Ut(r);if((c||!c&&!a)&&((zr(r)!=="body"||Go(i))&&(l=ji(r)),Ut(r))){const h=Un(r);u=yr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=i&&!c&&!a?PS(i,l):Vt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function wq(e){return Array.from(e.getClientRects())}function Sq(e){const t=Qt(e),n=ji(e),r=e.ownerDocument.body,o=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+$i(e);const s=-n.scrollTop;return Dt(r).direction==="rtl"&&(i+=mt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const _b=25;function Cq(e,t){const n=ht(e),r=Qt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const f=zf();(!f||f&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=$i(r);if(u<=0){const f=r.ownerDocument,c=f.body,m=getComputedStyle(c),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-h);v<=_b&&(a-=v)}else u<=_b&&(a+=u);return{width:a,height:i,x:s,y:l}}const _q=new Set(["absolute","fixed"]);function Eq(e,t){const n=Un(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ut(e)?yr(e):Vt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:i,height:s,x:l,y:u}}function Eb(e,t,n){let r;if(t==="viewport")r=Cq(e,n);else if(t==="document")r=Sq(Qt(e));else if(At(t))r=Eq(t,n);else{const o=NS(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ua(r)}function MS(e,t){const n=Rn(e);return n===t||!At(n)||Nr(n)?!1:Dt(n).position==="fixed"||MS(n,t)}function Rq(e,t){const n=t.get(e);if(n)return n;let r=Co(e,[],!1).filter(s=>At(s)&&zr(s)!=="body"),o=null;const a=Dt(e).position==="fixed";let i=a?Rn(e):e;for(;At(i)&&!Nr(i);){const s=Dt(i),l=Bf(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&_q.has(o.position)||Go(i)&&!l&&MS(e,i))?r=r.filter(f=>f!==i):o=s,i=Rn(i)}return t.set(e,r),r}function Nq(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ki(t)?[]:Rq(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((u,f)=>{const c=Eb(t,f,o);return u.top=mt(c.top,u.top),u.right=En(c.right,u.right),u.bottom=En(c.bottom,u.bottom),u.left=mt(c.left,u.left),u},Eb(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Pq(e){const{width:t,height:n}=RS(e);return{width:t,height:n}}function Mq(e,t,n){const r=Ut(t),o=Qt(t),a=n==="fixed",i=Un(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Vt(0);function u(){l.x=$i(o)}if(r||!r&&!a)if((zr(t)!=="body"||Go(o))&&(s=ji(t)),r){const h=Un(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const f=o&&!r&&!a?PS(o,s):Vt(0),c=i.left+s.scrollLeft-l.x-f.x,m=i.top+s.scrollTop-l.y-f.y;return{x:c,y:m,width:i.width,height:i.height}}function Tu(e){return Dt(e).position==="static"}function Rb(e,t){if(!Ut(e)||Dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function TS(e,t){const n=ht(e);if(ki(e))return n;if(!Ut(e)){let o=Rn(e);for(;o&&!Nr(o);){if(At(o)&&!Tu(o))return o;o=Rn(o)}return n}let r=Rb(e,t);for(;r&&dq(r)&&Tu(r);)r=Rb(r,t);return r&&Nr(r)&&Tu(r)&&!Bf(r)?n:r||gq(e)||n}const Tq=async function(e){const t=this.getOffsetParent||TS,n=this.getDimensions,r=await n(e.floating);return{reference:Mq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Oq(e){return Dt(e).direction==="rtl"}const Aq={convertOffsetParentRelativeRectToViewportRelativeRect:xq,getDocumentElement:Qt,getClippingRect:Nq,getOffsetParent:TS,getElementRects:Tq,getClientRects:wq,getDimensions:Pq,getScale:yr,isElement:At,isRTL:Oq};function OS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dq(e,t){let n=null,r;const o=Qt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:f,top:c,width:m,height:h}=u;if(s||t(),!m||!h)return;const v=ya(c),g=ya(o.clientWidth-(f+m)),b=ya(o.clientHeight-(c+h)),y=ya(f),S={rootMargin:-v+"px "+-g+"px "+-b+"px "+-y+"px",threshold:mt(0,En(1,l))||1};let C=!0;function E(R){const _=R[0].intersectionRatio;if(_!==l){if(!C)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!OS(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return i(!0),a}function Iq(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=qf(e),f=o||a?[...u?Co(u):[],...Co(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const c=u&&s?Dq(u,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let v,g=l?Un(e):null;l&&b();function b(){const y=Un(e);g&&!OS(g,y)&&n(),g=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),c?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const kq=aq,jq=iq,$q=nq,Lq=lq,Fq=rq,Nb=tq,Bq=sq,zq=(e,t,n)=>{const r=new Map,o={platform:Aq,...n},a={...o.platform,_c:r};return eq(e,t,{...o,platform:a})};var qq=typeof document<"u",Wq=function(){},Pa=qq?w.useLayoutEffect:Wq;function Ka(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ka(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ka(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function AS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pb(e,t){const n=AS(e);return Math.round(t*n)/n}function Ou(e){const t=d.useRef(e);return Pa(()=>{t.current=e}),t}function Hq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=d.useState(r);Ka(m,r)||h(r);const[v,g]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(V=>{V!==R.current&&(R.current=V,g(V))},[]),S=d.useCallback(V=>{V!==_.current&&(_.current=V,y(V))},[]),C=a||v,E=i||b,R=d.useRef(null),_=d.useRef(null),P=d.useRef(f),M=l!=null,k=Ou(l),T=Ou(o),j=Ou(u),O=d.useCallback(()=>{if(!R.current||!_.current)return;const V={placement:t,strategy:n,middleware:m};T.current&&(V.platform=T.current),zq(R.current,_.current,V).then(q=>{const ee={...q,isPositioned:j.current!==!1};F.current&&!Ka(P.current,ee)&&(P.current=ee,ci.flushSync(()=>{c(ee)}))})},[m,t,n,T,j]);Pa(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,c(V=>({...V,isPositioned:!1})))},[u]);const F=d.useRef(!1);Pa(()=>(F.current=!0,()=>{F.current=!1}),[]),Pa(()=>{if(C&&(R.current=C),E&&(_.current=E),C&&E){if(k.current)return k.current(C,E,O);O()}},[C,E,O,k,M]);const H=d.useMemo(()=>({reference:R,floating:_,setReference:x,setFloating:S}),[x,S]),$=d.useMemo(()=>({reference:C,floating:E}),[C,E]),K=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!$.floating)return V;const q=Pb($.floating,f.x),ee=Pb($.floating,f.y);return s?{...V,transform:"translate("+q+"px, "+ee+"px)",...AS($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:ee}},[n,s,$.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:O,refs:H,elements:$,floatingStyles:K}),[f,O,H,$,K])}const Gq=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Nb({element:r.current,padding:o}).fn(n):{}:r?Nb({element:r,padding:o}).fn(n):{}}}},Vq=(e,t)=>({...kq(e),options:[e,t]}),Uq=(e,t)=>({...jq(e),options:[e,t]}),Kq=(e,t)=>({...Bq(e),options:[e,t]}),Yq=(e,t)=>({...$q(e),options:[e,t]}),Xq=(e,t)=>({...Lq(e),options:[e,t]}),Zq=(e,t)=>({...Fq(e),options:[e,t]}),Qq=(e,t)=>({...Gq(e),options:[e,t]});var Jq="Arrow",DS=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return p.jsx(ne.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});DS.displayName=Jq;var eW=DS,Wf="Popper",[IS,Jt]=ke(Wf),[tW,kS]=IS(Wf),jS=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return p.jsx(tW,{scope:t,anchor:r,onAnchorChange:o,children:n})};jS.displayName=Wf;var $S="PopperAnchor",LS=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=kS($S,n),i=d.useRef(null),s=ce(t,i),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=r?.current||i.current,u!==l.current&&a.onAnchorChange(l.current)}),r?null:p.jsx(ne.div,{...o,ref:s})});LS.displayName=$S;var Hf="PopperContent",[nW,rW]=IS(Hf),FS=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...g}=e,b=kS(Hf,n),[y,x]=d.useState(null),S=ce(t,I=>x(I)),[C,E]=d.useState(null),R=Wo(C),_=R?.width??0,P=R?.height??0,M=r+(a!=="center"?"-"+a:""),k=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(u)?u:[u],j=T.length>0,O={padding:k,boundary:T.filter(aW),altBoundary:j},{refs:F,floatingStyles:H,placement:$,isPositioned:K,middlewareData:V}=Hq({strategy:"fixed",placement:M,whileElementsMounted:(...I)=>Iq(...I,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Vq({mainAxis:o+P,alignmentAxis:i}),l&&Uq({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Kq():void 0,...O}),l&&Yq({...O}),Xq({...O,apply:({elements:I,rects:W,availableWidth:Q,availableHeight:te})=>{const{width:re,height:Y}=W.reference,ie=I.floating.style;ie.setProperty("--radix-popper-available-width",`${Q}px`),ie.setProperty("--radix-popper-available-height",`${te}px`),ie.setProperty("--radix-popper-anchor-width",`${re}px`),ie.setProperty("--radix-popper-anchor-height",`${Y}px`)}}),C&&Qq({element:C,padding:s}),iW({arrowWidth:_,arrowHeight:P}),m&&Zq({strategy:"referenceHidden",...O})]}),[q,ee]=qS($),J=Me(v);Ie(()=>{K&&J?.()},[K,J]);const B=V.arrow?.x,D=V.arrow?.y,z=V.arrow?.centerOffset!==0,[L,U]=d.useState();return Ie(()=>{y&&U(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:K?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:L,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(nW,{scope:n,placedSide:q,onArrowChange:E,arrowX:B,arrowY:D,shouldHideArrow:z,children:p.jsx(ne.div,{"data-side":q,"data-align":ee,...g,ref:S,style:{...g.style,animation:K?void 0:"none"}})})})});FS.displayName=Hf;var BS="PopperArrow",oW={top:"bottom",right:"left",bottom:"top",left:"right"},zS=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=rW(BS,r),i=oW[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(eW,{...o,ref:n,style:{...o.style,display:"block"}})})});zS.displayName=BS;function aW(e){return e!==null}var iW=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=qS(n),c={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+l/2;let v="",g="";return u==="bottom"?(v=i?c:`${m}px`,g=`${-l}px`):u==="top"?(v=i?c:`${m}px`,g=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,g=i?c:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,g=i?c:`${h}px`),{data:{x:v,y:g}}}});function qS(e){const[t,n="center"]=e.split("-");return[t,n]}var qr=jS,Wr=LS,Vo=FS,Uo=zS,Au="rovingFocusGroup.onEntryFocus",sW={bubbles:!1,cancelable:!0},Ko="RovingFocusGroup",[vd,WS,lW]=Nn(Ko),[cW,en]=ke(Ko,[lW]),[uW,dW]=cW(Ko),HS=d.forwardRef((e,t)=>p.jsx(vd.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(vd.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(fW,{...e,ref:t})})}));HS.displayName=Ko;var fW=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...c}=e,m=d.useRef(null),h=ce(t,m),v=It(a),[g,b]=Ae({prop:i,defaultProp:s??null,onChange:l,caller:Ko}),[y,x]=d.useState(!1),S=Me(u),C=WS(n),E=d.useRef(!1),[R,_]=d.useState(0);return d.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(Au,S),()=>P.removeEventListener(Au,S)},[S]),p.jsx(uW,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:d.useCallback(P=>b(P),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>_(P=>P+1),[]),onFocusableItemRemove:d.useCallback(()=>_(P=>P-1),[]),children:p.jsx(ne.div,{tabIndex:y||R===0?-1:0,"data-orientation":r,...c,ref:h,style:{outline:"none",...e.style},onMouseDown:G(e.onMouseDown,()=>{E.current=!0}),onFocus:G(e.onFocus,P=>{const M=!E.current;if(P.target===P.currentTarget&&M&&!y){const k=new CustomEvent(Au,sW);if(P.currentTarget.dispatchEvent(k),!k.defaultPrevented){const T=C().filter($=>$.focusable),j=T.find($=>$.active),O=T.find($=>$.id===g),H=[j,O,...T].filter(Boolean).map($=>$.ref.current);US(H,f)}}E.current=!1}),onBlur:G(e.onBlur,()=>x(!1))})})}),GS="RovingFocusGroupItem",VS=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=Te(),u=a||l,f=dW(GS,n),c=f.currentTabStopId===u,m=WS(n),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=f;return d.useEffect(()=>{if(r)return h(),()=>v()},[r,h,v]),p.jsx(vd.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:G(e.onMouseDown,b=>{r?f.onItemFocus(u):b.preventDefault()}),onFocus:G(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:G(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=hW(b,f.orientation,f.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let S=m().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const C=S.indexOf(b.currentTarget);S=f.loop?gW(S,C+1):S.slice(C+1)}setTimeout(()=>US(S))}}),children:typeof i=="function"?i({isCurrentTabStop:c,hasTabStop:g!=null}):i})})});VS.displayName=GS;var pW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mW(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hW(e,t,n){const r=mW(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pW[r]}function US(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function gW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Yo=HS,Xo=VS,bd=["Enter"," "],vW=["ArrowDown","PageUp","Home"],KS=["ArrowUp","PageDown","End"],bW=[...vW,...KS],yW={ltr:[...bd,"ArrowRight"],rtl:[...bd,"ArrowLeft"]},xW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Zo="Menu",[_o,wW,SW]=Nn(Zo),[or,Qo]=ke(Zo,[SW,Jt,en]),Jo=Jt(),YS=en(),[XS,On]=or(Zo),[CW,ea]=or(Zo),ZS=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Jo(t),[l,u]=d.useState(null),f=d.useRef(!1),c=Me(a),m=It(o);return d.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),p.jsx(qr,{...s,children:p.jsx(XS,{scope:t,open:n,onOpenChange:c,content:l,onContentChange:u,children:p.jsx(CW,{scope:t,onClose:d.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:m,modal:i,children:r})})})};ZS.displayName=Zo;var _W="MenuAnchor",Gf=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Jo(n);return p.jsx(Wr,{...o,...r,ref:t})});Gf.displayName=_W;var Vf="MenuPortal",[EW,QS]=or(Vf,{forceMount:void 0}),JS=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=On(Vf,t);return p.jsx(EW,{scope:t,forceMount:n,children:p.jsx(De,{present:n||a.open,children:p.jsx(Ir,{asChild:!0,container:o,children:r})})})};JS.displayName=Vf;var wt="MenuContent",[RW,Uf]=or(wt),eC=d.forwardRef((e,t)=>{const n=QS(wt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=On(wt,e.__scopeMenu),i=ea(wt,e.__scopeMenu);return p.jsx(_o.Provider,{scope:e.__scopeMenu,children:p.jsx(De,{present:r||a.open,children:p.jsx(_o.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(NW,{...o,ref:t}):p.jsx(PW,{...o,ref:t})})})})}),NW=d.forwardRef((e,t)=>{const n=On(wt,e.__scopeMenu),r=d.useRef(null),o=ce(t,r);return d.useEffect(()=>{const a=r.current;if(a)return gi(a)},[]),p.jsx(Kf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),PW=d.forwardRef((e,t)=>{const n=On(wt,e.__scopeMenu);return p.jsx(Kf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),MW=Wn("MenuContent.ScrollLock"),Kf=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:m,onDismiss:h,disableOutsideScroll:v,...g}=e,b=On(wt,n),y=ea(wt,n),x=Jo(n),S=YS(n),C=wW(n),[E,R]=d.useState(null),_=d.useRef(null),P=ce(t,_,b.onContentChange),M=d.useRef(0),k=d.useRef(""),T=d.useRef(0),j=d.useRef(null),O=d.useRef("right"),F=d.useRef(0),H=v?Do:d.Fragment,$=v?{as:MW,allowPinchZoom:!0}:void 0,K=q=>{const ee=k.current+q,J=C().filter(I=>!I.disabled),B=document.activeElement,D=J.find(I=>I.ref.current===B)?.textValue,z=J.map(I=>I.textValue),L=zW(z,ee,D),U=J.find(I=>I.textValue===L)?.ref.current;(function I(W){k.current=W,window.clearTimeout(M.current),W!==""&&(M.current=window.setTimeout(()=>I(""),1e3))})(ee),U&&setTimeout(()=>U.focus())};d.useEffect(()=>()=>window.clearTimeout(M.current),[]),mi();const V=d.useCallback(q=>O.current===j.current?.side&&WW(q,j.current?.area),[]);return p.jsx(RW,{scope:n,searchRef:k,onItemEnter:d.useCallback(q=>{V(q)&&q.preventDefault()},[V]),onItemLeave:d.useCallback(q=>{V(q)||(_.current?.focus(),R(null))},[V]),onTriggerLeave:d.useCallback(q=>{V(q)&&q.preventDefault()},[V]),pointerGraceTimerRef:T,onPointerGraceIntentChange:d.useCallback(q=>{j.current=q},[]),children:p.jsx(H,{...$,children:p.jsx(Ao,{asChild:!0,trapped:o,onMountAutoFocus:G(a,q=>{q.preventDefault(),_.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:m,onDismiss:h,children:p.jsx(Yo,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:R,onEntryFocus:G(l,q=>{y.isUsingKeyboardRef.current||q.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Vo,{role:"menu","aria-orientation":"vertical","data-state":vC(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...g,ref:P,style:{outline:"none",...g.style},onKeyDown:G(g.onKeyDown,q=>{const J=q.target.closest("[data-radix-menu-content]")===q.currentTarget,B=q.ctrlKey||q.altKey||q.metaKey,D=q.key.length===1;J&&(q.key==="Tab"&&q.preventDefault(),!B&&D&&K(q.key));const z=_.current;if(q.target!==z||!bW.includes(q.key))return;q.preventDefault();const U=C().filter(I=>!I.disabled).map(I=>I.ref.current);KS.includes(q.key)&&U.reverse(),FW(U)}),onBlur:G(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(M.current),k.current="")}),onPointerMove:G(e.onPointerMove,Eo(q=>{const ee=q.target,J=F.current!==q.clientX;if(q.currentTarget.contains(ee)&&J){const B=q.clientX>F.current?"right":"left";O.current=B,F.current=q.clientX}}))})})})})})})});eC.displayName=wt;var TW="MenuGroup",Yf=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Yf.displayName=TW;var OW="MenuLabel",tC=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});tC.displayName=OW;var Ya="MenuItem",Mb="menu.itemSelect",Li=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),i=ea(Ya,e.__scopeMenu),s=Uf(Ya,e.__scopeMenu),l=ce(t,a),u=d.useRef(!1),f=()=>{const c=a.current;if(!n&&c){const m=new CustomEvent(Mb,{bubbles:!0,cancelable:!0});c.addEventListener(Mb,h=>r?.(h),{once:!0}),Aa(c,m),m.defaultPrevented?u.current=!1:i.onClose()}};return p.jsx(nC,{...o,ref:l,disabled:n,onClick:G(e.onClick,f),onPointerDown:c=>{e.onPointerDown?.(c),u.current=!0},onPointerUp:G(e.onPointerUp,c=>{u.current||c.currentTarget?.click()}),onKeyDown:G(e.onKeyDown,c=>{const m=s.searchRef.current!=="";n||m&&c.key===" "||bd.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});Li.displayName=Ya;var nC=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Uf(Ya,n),s=YS(n),l=d.useRef(null),u=ce(t,l),[f,c]=d.useState(!1),[m,h]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&h((v.textContent??"").trim())},[a.children]),p.jsx(_o.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(Xo,{asChild:!0,...s,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:G(e.onPointerMove,Eo(v=>{r?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,Eo(v=>i.onItemLeave(v))),onFocus:G(e.onFocus,()=>c(!0)),onBlur:G(e.onBlur,()=>c(!1))})})})}),AW="MenuCheckboxItem",rC=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(lC,{scope:e.__scopeMenu,checked:n,children:p.jsx(Li,{role:"menuitemcheckbox","aria-checked":Xa(n)?"mixed":n,...o,ref:t,"data-state":Qf(n),onSelect:G(o.onSelect,()=>r?.(Xa(n)?!0:!n),{checkForDefaultPrevented:!1})})})});rC.displayName=AW;var oC="MenuRadioGroup",[DW,IW]=or(oC,{value:void 0,onValueChange:()=>{}}),aC=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Me(r);return p.jsx(DW,{scope:e.__scopeMenu,value:n,onValueChange:a,children:p.jsx(Yf,{...o,ref:t})})});aC.displayName=oC;var iC="MenuRadioItem",sC=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=IW(iC,e.__scopeMenu),a=n===o.value;return p.jsx(lC,{scope:e.__scopeMenu,checked:a,children:p.jsx(Li,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Qf(a),onSelect:G(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});sC.displayName=iC;var Xf="MenuItemIndicator",[lC,kW]=or(Xf,{checked:!1}),cC=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=kW(Xf,n);return p.jsx(De,{present:r||Xa(a.checked)||a.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Qf(a.checked)})})});cC.displayName=Xf;var jW="MenuSeparator",uC=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});uC.displayName=jW;var $W="MenuArrow",dC=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Jo(n);return p.jsx(Uo,{...o,...r,ref:t})});dC.displayName=$W;var Zf="MenuSub",[LW,fC]=or(Zf),pC=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=On(Zf,t),i=Jo(t),[s,l]=d.useState(null),[u,f]=d.useState(null),c=Me(o);return d.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),p.jsx(qr,{...i,children:p.jsx(XS,{scope:t,open:r,onOpenChange:c,content:u,onContentChange:f,children:p.jsx(LW,{scope:t,contentId:Te(),triggerId:Te(),trigger:s,onTriggerChange:l,children:n})})})};pC.displayName=Zf;var ao="MenuSubTrigger",mC=d.forwardRef((e,t)=>{const n=On(ao,e.__scopeMenu),r=ea(ao,e.__scopeMenu),o=fC(ao,e.__scopeMenu),a=Uf(ao,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},f=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>f,[f]),d.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),l(null)}},[s,l]),p.jsx(Gf,{asChild:!0,...u,children:p.jsx(nC,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":vC(n.open),...e,ref:Ot(t,o.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:G(e.onPointerMove,Eo(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:G(e.onPointerLeave,Eo(c=>{f();const m=n.content?.getBoundingClientRect();if(m){const h=n.content?.dataset.side,v=h==="right",g=v?-5:5,b=m[v?"left":"right"],y=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:b,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:G(e.onKeyDown,c=>{const m=a.searchRef.current!=="";e.disabled||m&&c.key===" "||yW[r.dir].includes(c.key)&&(n.onOpenChange(!0),n.content?.focus(),c.preventDefault())})})})});mC.displayName=ao;var hC="MenuSubContent",gC=d.forwardRef((e,t)=>{const n=QS(wt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=On(wt,e.__scopeMenu),i=ea(wt,e.__scopeMenu),s=fC(hC,e.__scopeMenu),l=d.useRef(null),u=ce(t,l);return p.jsx(_o.Provider,{scope:e.__scopeMenu,children:p.jsx(De,{present:r||a.open,children:p.jsx(_o.Slot,{scope:e.__scopeMenu,children:p.jsx(Kf,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{i.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:G(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:G(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:G(e.onKeyDown,f=>{const c=f.currentTarget.contains(f.target),m=xW[i.dir].includes(f.key);c&&m&&(a.onOpenChange(!1),s.trigger?.focus(),f.preventDefault())})})})})})});gC.displayName=hC;function vC(e){return e?"open":"closed"}function Xa(e){return e==="indeterminate"}function Qf(e){return Xa(e)?"indeterminate":e?"checked":"unchecked"}function FW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function BW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function zW(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=BW(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function qW(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],u=s.x,f=s.y,c=l.x,m=l.y;f>r!=m>r&&n<(c-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function WW(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return qW(n,t)}function Eo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Jf=ZS,ep=Gf,tp=JS,np=eC,rp=Yf,op=tC,ap=Li,ip=rC,sp=aC,lp=sC,cp=cC,up=uC,dp=dC,fp=pC,pp=mC,mp=gC,hp="ContextMenu",[HW]=ke(hp,[Qo]),nt=Qo(),[GW,bC]=HW(hp),yC=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[i,s]=d.useState(!1),l=nt(t),u=Me(r),f=d.useCallback(c=>{s(c),u(c)},[u]);return p.jsx(GW,{scope:t,open:i,onOpenChange:f,modal:a,children:p.jsx(Jf,{...l,dir:o,open:i,onOpenChange:f,modal:a,children:n})})};yC.displayName=hp;var xC="ContextMenuTrigger",wC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=bC(xC,n),i=nt(n),s=d.useRef({x:0,y:0}),l=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),u=d.useRef(0),f=d.useCallback(()=>window.clearTimeout(u.current),[]),c=m=>{s.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return d.useEffect(()=>f,[f]),d.useEffect(()=>void(r&&f()),[r,f]),p.jsxs(p.Fragment,{children:[p.jsx(ep,{...i,virtualRef:l}),p.jsx(ne.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:G(e.onContextMenu,m=>{f(),c(m),m.preventDefault()}),onPointerDown:r?e.onPointerDown:G(e.onPointerDown,xa(m=>{f(),u.current=window.setTimeout(()=>c(m),700)})),onPointerMove:r?e.onPointerMove:G(e.onPointerMove,xa(f)),onPointerCancel:r?e.onPointerCancel:G(e.onPointerCancel,xa(f)),onPointerUp:r?e.onPointerUp:G(e.onPointerUp,xa(f))})]})});wC.displayName=xC;var VW="ContextMenuPortal",SC=e=>{const{__scopeContextMenu:t,...n}=e,r=nt(t);return p.jsx(tp,{...r,...n})};SC.displayName=VW;var CC="ContextMenuContent",_C=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=bC(CC,n),a=nt(n),i=d.useRef(!1);return p.jsx(np,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&i.current&&s.preventDefault(),i.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!o.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_C.displayName=CC;var UW="ContextMenuGroup",EC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(rp,{...o,...r,ref:t})});EC.displayName=UW;var KW="ContextMenuLabel",RC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(op,{...o,...r,ref:t})});RC.displayName=KW;var YW="ContextMenuItem",NC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(ap,{...o,...r,ref:t})});NC.displayName=YW;var XW="ContextMenuCheckboxItem",PC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(ip,{...o,...r,ref:t})});PC.displayName=XW;var ZW="ContextMenuRadioGroup",MC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(sp,{...o,...r,ref:t})});MC.displayName=ZW;var QW="ContextMenuRadioItem",TC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(lp,{...o,...r,ref:t})});TC.displayName=QW;var JW="ContextMenuItemIndicator",OC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(cp,{...o,...r,ref:t})});OC.displayName=JW;var e5="ContextMenuSeparator",AC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(up,{...o,...r,ref:t})});AC.displayName=e5;var t5="ContextMenuArrow",n5=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(dp,{...o,...r,ref:t})});n5.displayName=t5;var DC="ContextMenuSub",IC=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=nt(t),[s,l]=Ae({prop:o,defaultProp:a??!1,onChange:r,caller:DC});return p.jsx(fp,{...i,open:s,onOpenChange:l,children:n})};IC.displayName=DC;var r5="ContextMenuSubTrigger",kC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(pp,{...o,...r,ref:t})});kC.displayName=r5;var o5="ContextMenuSubContent",jC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(mp,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});jC.displayName=o5;function xa(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var a5=yC,i5=wC,$C=SC,LC=_C,s5=EC,FC=RC,BC=NC,zC=PC,l5=MC,qC=TC,WC=OC,HC=AC,c5=IC,GC=kC,VC=jC;const u5=a5,d5=i5,f5=s5,p5=$C,m5=c5,h5=l5,UC=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(GC,{ref:o,className:N("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[state=open]:bg-primary data-[state=open]:text-primary-foreground",t&&"pl-8",e),...r,children:[n,p.jsx(Ar,{className:"ml-auto h-4 w-4"})]}));UC.displayName=GC.displayName;const KC=d.forwardRef(({className:e,...t},n)=>p.jsx(VC,{ref:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));KC.displayName=VC.displayName;const YC=d.forwardRef(({className:e,...t},n)=>p.jsx($C,{children:p.jsx(LC,{ref:n,className:N("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));YC.displayName=LC.displayName;const XC=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(BC,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));XC.displayName=BC.displayName;const ZC=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(zC,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(WC,{children:p.jsx(To,{className:"h-4 w-4"})})}),t]}));ZC.displayName=zC.displayName;const QC=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(qC,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(WC,{children:p.jsx(pi,{className:"h-4 w-4 fill-current"})})}),t]}));QC.displayName=qC.displayName;const JC=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(FC,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));JC.displayName=FC.displayName;const e_=d.forwardRef(({className:e,...t},n)=>p.jsx(HC,{ref:n,className:N("-mx-1 my-1 h-px bg-border",e),...t}));e_.displayName=HC.displayName;const t_=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});t_.displayName="ContextMenuShortcut";function g5(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const n_=w.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),ta=()=>{const e=w.useContext(n_);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};g5(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
66
+ `)}}):null},Cz=jf,J0=d.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:s,labelFormatter:i,labelClassName:l,formatter:u,color:f,nameKey:c,labelKey:m},h)=>{const{config:v}=X0(),g=d.useMemo(()=>{if(o||!t?.length)return null;const[y]=t,x=`${m||y?.dataKey||y?.name||"value"}`,S=bd(v,y,x),C=!m&&typeof s=="string"?v[s]?.label||s:S?.label;return i?p.jsx("div",{className:N("font-medium",l),children:i(C,t)}):C?p.jsx("div",{className:N("font-medium",l),children:C}):null},[s,i,t,o,l,v,m]);if(!e||!t?.length)return null;const b=t.length===1&&r!=="dot";return p.jsxs("div",{ref:h,className:N("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[b?null:g,p.jsx("div",{className:"grid gap-1.5",children:t.filter(y=>y.type!=="none").map((y,x)=>{const S=`${c||y.name||y.dataKey||"value"}`,C=bd(v,y,S),E=f||y.payload.fill||y.color;return p.jsx("div",{className:N("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&y?.value!==void 0&&y.name?u(y.value,y.name,y,x,y.payload):p.jsxs(p.Fragment,{children:[C?.icon?p.jsx(C.icon,{}):!a&&p.jsx("div",{className:N("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":b&&r==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),p.jsxs("div",{className:N("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[p.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,p.jsx("span",{className:"text-muted-foreground",children:C?.label||y.name})]}),y.value&&p.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});J0.displayName="ChartTooltip";const _z=If,eS=d.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},a)=>{const{config:s}=X0();return n?.length?p.jsx("div",{ref:a,className:N("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.filter(i=>i.type!=="none").map(i=>{const l=`${o||i.dataKey||"value"}`,u=bd(s,i,l);return p.jsxs("div",{className:N("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u?.icon&&!t?p.jsx(u.icon,{}):p.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:i.color}}),u?.label]},i.value)})}):null});eS.displayName="ChartLegend";function bd(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function zr(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Go(e){const[t,n]=d.useState(void 0);return Ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var js="Checkbox",[Ez]=ke(js),[Rz,$f]=Ez(js);function Nz(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:l,required:u,value:f="on",internal_do_not_use_render:c}=e,[m,h]=Ae({prop:n,defaultProp:o??!1,onChange:l,caller:js}),[v,g]=d.useState(null),[b,y]=d.useState(null),x=d.useRef(!1),S=v?!!s||!!v.closest("form"):!0,C={checked:m,disabled:a,setChecked:h,control:v,setControl:g,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:_n(o)?!1:o,isFormControl:S,bubbleInput:b,setBubbleInput:y};return p.jsx(Rz,{scope:t,...C,children:Pz(c)?c(C):r})}var tS="CheckboxTrigger",nS=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:i,checked:l,required:u,setControl:f,setChecked:c,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:v}=$f(tS,e),g=ce(o,f),b=d.useRef(l);return d.useEffect(()=>{const y=a?.form;if(y){const x=()=>c(b.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,c]),p.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":_n(l)?"mixed":l,"aria-required":u,"data-state":iS(l),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:g,onKeyDown:U(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:U(n,y=>{c(x=>_n(x)?!0:!x),v&&h&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});nS.displayName=tS;var Lf=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l,onCheckedChange:u,form:f,...c}=e;return p.jsx(Nz,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:u,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:m})=>p.jsxs(p.Fragment,{children:[p.jsx(nS,{...c,ref:t,__scopeCheckbox:n}),m&&p.jsx(sS,{__scopeCheckbox:n})]})})});Lf.displayName=js;var rS="CheckboxIndicator",oS=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=$f(rS,n);return p.jsx(De,{present:r||_n(a.checked)||a.checked===!0,children:p.jsx(ne.span,{"data-state":iS(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});oS.displayName=rS;var aS="CheckboxBubbleInput",sS=d.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:l,name:u,value:f,form:c,bubbleInput:m,setBubbleInput:h}=$f(aS,e),v=ce(n,h),g=zr(a),b=Go(r);d.useEffect(()=>{const x=m;if(!x)return;const S=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(S,"checked").set,R=!o.current;if(g!==a&&E){const _=new Event("click",{bubbles:R});x.indeterminate=_n(a),E.call(x,_n(a)?!1:a),x.dispatchEvent(_)}},[m,g,a,o]);const y=d.useRef(_n(a)?!1:a);return p.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:i,disabled:l,name:u,value:f,form:c,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});sS.displayName=aS;function Pz(e){return typeof e=="function"}function _n(e){return e==="indeterminate"}function iS(e){return _n(e)?"indeterminate":e?"checked":"unchecked"}const lS=d.forwardRef(({className:e,...t},n)=>p.jsx(Lf,{ref:n,className:N("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border-2 border-border shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary-light data-[state=checked]:border-primary-light data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(oS,{className:N("grid place-content-center text-current"),children:p.jsx(Do,{className:"h-4 w-4"})})}));lS.displayName=Lf.displayName;const Mz=my,Tz=Zd,Oz=Jd;var wb=1,Az=.9,Dz=.8,Iz=.17,Ou=.1,Au=.999,kz=.9999,jz=.99,$z=/[\\\/_+.#"@\[\(\{&]/,Lz=/[\\\/_+.#"@\[\(\{&]/g,Fz=/[\s-]/,cS=/[\s-]/g;function yd(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?wb:jz;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),u=n.indexOf(l,o),f=0,c,m,h,v;u>=0;)c=yd(e,t,n,r,u+1,a+1,s),c>f&&(u===o?c*=wb:$z.test(e.charAt(u-1))?(c*=Dz,h=e.slice(o,u-1).match(Lz),h&&o>0&&(c*=Math.pow(Au,h.length))):Fz.test(e.charAt(u-1))?(c*=Az,v=e.slice(o,u-1).match(cS),v&&o>0&&(c*=Math.pow(Au,v.length))):(c*=Iz,o>0&&(c*=Math.pow(Au,u-o))),e.charAt(u)!==t.charAt(a)&&(c*=kz)),(c<Ou&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(m=yd(e,t,n,r,u+1,a+2,s),m*Ou>c&&(c=m*Ou)),c>f&&(f=c),u=n.indexOf(l,u+1);return s[i]=f,f}function Sb(e){return e.toLowerCase().replace(cS," ")}function Bz(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,yd(e,t,Sb(e),Sb(t),0,0,{})}var Jr='[cmdk-group=""]',Du='[cmdk-group-items=""]',zz='[cmdk-group-heading=""]',uS='[cmdk-item=""]',Cb=`${uS}:not([aria-disabled="true"])`,xd="cmdk-item-select",mr="data-value",qz=(e,t,n)=>Bz(e,t,n),dS=d.createContext(void 0),Uo=()=>d.useContext(dS),fS=d.createContext(void 0),Ff=()=>d.useContext(fS),pS=d.createContext(void 0),mS=d.forwardRef((e,t)=>{let n=hr(()=>{var q,A;return{search:"",value:(A=(q=e.value)!=null?q:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=hr(()=>new Set),o=hr(()=>new Map),a=hr(()=>new Map),s=hr(()=>new Set),i=hS(e),{label:l,children:u,value:f,onValueChange:c,filter:m,shouldFilter:h,loop:v,disablePointerSelection:g=!1,vimBindings:b=!0,...y}=e,x=Te(),S=Te(),C=Te(),E=d.useRef(null),R=Jz();Kn(()=>{if(f!==void 0){let q=f.trim();n.current.value=q,_.emit()}},[f]),Kn(()=>{R(6,O)},[]);let _=d.useMemo(()=>({subscribe:q=>(s.current.add(q),()=>s.current.delete(q)),snapshot:()=>n.current,setState:(q,A,W)=>{var z,K,j,G;if(!Object.is(n.current[q],A)){if(n.current[q]=A,q==="search")$(),k(),R(1,T);else if(q==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ee=document.getElementById(C);ee?ee.focus():(z=document.getElementById(x))==null||z.focus()}if(R(7,()=>{var ee;n.current.selectedItemId=(ee=L())==null?void 0:ee.id,_.emit()}),W||R(5,O),((K=i.current)==null?void 0:K.value)!==void 0){let ee=A??"";(G=(j=i.current).onValueChange)==null||G.call(j,ee);return}}_.emit()}},emit:()=>{s.current.forEach(q=>q())}}),[]),P=d.useMemo(()=>({value:(q,A,W)=>{var z;A!==((z=a.current.get(q))==null?void 0:z.value)&&(a.current.set(q,{value:A,keywords:W}),n.current.filtered.items.set(q,M(A,W)),R(2,()=>{k(),_.emit()}))},item:(q,A)=>(r.current.add(q),A&&(o.current.has(A)?o.current.get(A).add(q):o.current.set(A,new Set([q]))),R(3,()=>{$(),k(),n.current.value||T(),_.emit()}),()=>{a.current.delete(q),r.current.delete(q),n.current.filtered.items.delete(q);let W=L();R(4,()=>{$(),W?.getAttribute("id")===q&&T(),_.emit()})}),group:q=>(o.current.has(q)||o.current.set(q,new Set),()=>{a.current.delete(q),o.current.delete(q)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:C,labelId:S,listInnerRef:E}),[]);function M(q,A){var W,z;let K=(z=(W=i.current)==null?void 0:W.filter)!=null?z:qz;return q?K(q,n.current.search,A):0}function k(){if(!n.current.search||i.current.shouldFilter===!1)return;let q=n.current.filtered.items,A=[];n.current.filtered.groups.forEach(z=>{let K=o.current.get(z),j=0;K.forEach(G=>{let ee=q.get(G);j=Math.max(ee,j)}),A.push([z,j])});let W=E.current;F().sort((z,K)=>{var j,G;let ee=z.getAttribute("id"),te=K.getAttribute("id");return((j=q.get(te))!=null?j:0)-((G=q.get(ee))!=null?G:0)}).forEach(z=>{let K=z.closest(Du);K?K.appendChild(z.parentElement===K?z:z.closest(`${Du} > *`)):W.appendChild(z.parentElement===W?z:z.closest(`${Du} > *`))}),A.sort((z,K)=>K[1]-z[1]).forEach(z=>{var K;let j=(K=E.current)==null?void 0:K.querySelector(`${Jr}[${mr}="${encodeURIComponent(z[0])}"]`);j?.parentElement.appendChild(j)})}function T(){let q=F().find(W=>W.getAttribute("aria-disabled")!=="true"),A=q?.getAttribute(mr);_.setState("value",A||void 0)}function $(){var q,A,W,z;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let j of r.current){let G=(A=(q=a.current.get(j))==null?void 0:q.value)!=null?A:"",ee=(z=(W=a.current.get(j))==null?void 0:W.keywords)!=null?z:[],te=M(G,ee);n.current.filtered.items.set(j,te),te>0&&K++}for(let[j,G]of o.current)for(let ee of G)if(n.current.filtered.items.get(ee)>0){n.current.filtered.groups.add(j);break}n.current.filtered.count=K}function O(){var q,A,W;let z=L();z&&(((q=z.parentElement)==null?void 0:q.firstChild)===z&&((W=(A=z.closest(Jr))==null?void 0:A.querySelector(zz))==null||W.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function L(){var q;return(q=E.current)==null?void 0:q.querySelector(`${uS}[aria-selected="true"]`)}function F(){var q;return Array.from(((q=E.current)==null?void 0:q.querySelectorAll(Cb))||[])}function D(q){let A=F()[q];A&&_.setState("value",A.getAttribute(mr))}function V(q){var A;let W=L(),z=F(),K=z.findIndex(G=>G===W),j=z[K+q];(A=i.current)!=null&&A.loop&&(j=K+q<0?z[z.length-1]:K+q===z.length?z[0]:z[K+q]),j&&_.setState("value",j.getAttribute(mr))}function H(q){let A=L(),W=A?.closest(Jr),z;for(;W&&!z;)W=q>0?Zz(W,Jr):Qz(W,Jr),z=W?.querySelector(Cb);z?_.setState("value",z.getAttribute(mr)):V(q)}let B=()=>D(F().length-1),Z=q=>{q.preventDefault(),q.metaKey?B():q.altKey?H(1):V(1)},Q=q=>{q.preventDefault(),q.metaKey?D(0):q.altKey?H(-1):V(-1)};return d.createElement(tt.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:q=>{var A;(A=y.onKeyDown)==null||A.call(y,q);let W=q.nativeEvent.isComposing||q.keyCode===229;if(!(q.defaultPrevented||W))switch(q.key){case"n":case"j":{b&&q.ctrlKey&&Z(q);break}case"ArrowDown":{Z(q);break}case"p":case"k":{b&&q.ctrlKey&&Q(q);break}case"ArrowUp":{Q(q);break}case"Home":{q.preventDefault(),D(0);break}case"End":{q.preventDefault(),B();break}case"Enter":{q.preventDefault();let z=L();if(z){let K=new Event(xd);z.dispatchEvent(K)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:tq},l),$s(e,q=>d.createElement(fS.Provider,{value:_},d.createElement(dS.Provider,{value:P},q))))}),Wz=d.forwardRef((e,t)=>{var n,r;let o=Te(),a=d.useRef(null),s=d.useContext(pS),i=Uo(),l=hS(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s?.forceMount;Kn(()=>{if(!u)return i.item(o,s?.id)},[u]);let f=gS(o,a,[e.value,e.children,a],e.keywords),c=Ff(),m=En(R=>R.value&&R.value===f.current),h=En(R=>u||i.filter()===!1?!0:R.search?R.filtered.items.get(o)>0:!0);d.useEffect(()=>{let R=a.current;if(!(!R||e.disabled))return R.addEventListener(xd,v),()=>R.removeEventListener(xd,v)},[h,e.onSelect,e.disabled]);function v(){var R,_;g(),(_=(R=l.current).onSelect)==null||_.call(R,f.current)}function g(){c.setState("value",f.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:x,forceMount:S,keywords:C,...E}=e;return d.createElement(tt.div,{ref:At(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!m,"data-disabled":!!b,"data-selected":!!m,onPointerMove:b||i.getDisablePointerSelection()?void 0:g,onClick:b?void 0:v},e.children)}),Hz=d.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=Te(),i=d.useRef(null),l=d.useRef(null),u=Te(),f=Uo(),c=En(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Kn(()=>f.group(s),[]),gS(s,i,[e.value,e.heading,l]);let m=d.useMemo(()=>({id:s,forceMount:o}),[o]);return d.createElement(tt.div,{ref:At(i,t),...a,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&d.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),$s(e,h=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},d.createElement(pS.Provider,{value:m},h))))}),Vz=d.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=d.useRef(null),a=En(s=>!s.search);return!n&&!a?null:d.createElement(tt.div,{ref:At(o,t),...r,"cmdk-separator":"",role:"separator"})}),Gz=d.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Ff(),s=En(u=>u.search),i=En(u=>u.selectedItemId),l=Uo();return d.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),d.createElement(tt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),n?.(u.target.value)}})}),Uz=d.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=d.useRef(null),s=d.useRef(null),i=En(u=>u.selectedItemId),l=Uo();return d.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,c,m=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let h=u.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(c),m.unobserve(u)}}},[]),d.createElement(tt.div,{ref:At(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},$s(e,u=>d.createElement("div",{ref:At(s,l.listInnerRef),"cmdk-list-sizer":""},u)))}),Kz=d.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return d.createElement($o,{open:n,onOpenChange:r},d.createElement(Lo,{container:s},d.createElement(er,{"cmdk-overlay":"",className:o}),d.createElement(tr,{"aria-label":e.label,"cmdk-dialog":"",className:a},d.createElement(mS,{ref:t,...i}))))}),Yz=d.forwardRef((e,t)=>En(n=>n.filtered.count===0)?d.createElement(tt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Xz=d.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return d.createElement(tt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},$s(e,s=>d.createElement("div",{"aria-hidden":!0},s)))}),ft=Object.assign(mS,{List:Uz,Item:Wz,Input:Gz,Group:Hz,Separator:Vz,Dialog:Kz,Empty:Yz,Loading:Xz});function Zz(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Qz(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function hS(e){let t=d.useRef(e);return Kn(()=>{t.current=e}),t}var Kn=typeof window>"u"?d.useEffect:d.useLayoutEffect;function hr(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function En(e){let t=Ff(),n=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,n,n)}function gS(e,t,n,r=[]){let o=d.useRef(),a=Uo();return Kn(()=>{var s;let i=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(mr,i),o.current=i}),o}var Jz=()=>{let[e,t]=d.useState(),n=hr(()=>new Map);return Kn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function eq(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function $s({asChild:e,children:t},n){return e&&d.isValidElement(t)?d.cloneElement(eq(t),{ref:t.ref},n(t.props.children)):n(t)}var tq={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const vS=d.createContext({density:"default"}),Bf=()=>d.useContext(vS),nq=Ke({base:"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border border-border/45 bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",variants:{density:{compact:"p-4 pb-0",default:"p-5 pb-0",relaxed:"p-6 pb-0"}},defaultVariants:{density:"default"}}),rq=Ke({base:"absolute rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground/50",variants:{density:{compact:"right-3 top-3",default:"right-5 top-4",relaxed:"right-5 top-5"}},defaultVariants:{density:"default"}}),oq=Ke({base:"flex flex-col text-center sm:text-left",variants:{density:{compact:"pb-0",default:"pb-0",relaxed:"pb-0"}},defaultVariants:{density:"default"}}),aq=Ke({base:"flex flex-col-reverse sm:flex-row sm:justify-end",variants:{density:{compact:"pb-4",default:"pb-5",relaxed:"pb-6"}},defaultVariants:{density:"default"}}),bS=({density:e="relaxed",...t})=>p.jsx(vS.Provider,{value:{density:e},children:p.jsx($o,{...t})}),sq=Ss,yS=Lo,iq=nr,zf=d.forwardRef(({className:e,...t},n)=>p.jsx(er,{ref:n,className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));zf.displayName=er.displayName;const qf=d.forwardRef(({className:e,children:t,...n},r)=>{const{density:o}=Bf();return p.jsxs(yS,{children:[p.jsx(zf,{}),p.jsxs(tr,{ref:r,className:N(nq({density:o}),e),...n,children:[t,p.jsxs(nr,{className:N(rq({density:o})),children:[p.jsx(Oy,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});qf.displayName=tr.displayName;const xS=({className:e,...t})=>{const{density:n}=Bf();return p.jsx("div",{className:N(oq({density:n}),e),...t})};xS.displayName="DialogHeader";const wS=({className:e,...t})=>{const{density:n}=Bf();return p.jsx("div",{className:N(aq({density:n}),e),...t})};wS.displayName="DialogFooter";const SS=d.forwardRef(({className:e,...t},n)=>p.jsx($r,{ref:n,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));SS.displayName=$r.displayName;const CS=d.forwardRef(({className:e,...t},n)=>p.jsx(Lr,{ref:n,className:N("text-sm text-foreground/50",e),...t}));CS.displayName=Lr.displayName;const Wf=d.forwardRef(({className:e,...t},n)=>p.jsx(ft,{ref:n,className:N("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Wf.displayName=ft.displayName;const lq=({children:e,...t})=>p.jsx(bS,{...t,children:p.jsx(qf,{className:"overflow-hidden p-0",children:p.jsx(Wf,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),_S=d.forwardRef(({className:e,...t},n)=>p.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[p.jsx(hO,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx(ft.Input,{ref:n,className:N("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));_S.displayName=ft.Input.displayName;const ES=d.forwardRef(({className:e,...t},n)=>p.jsx(ft.List,{ref:n,className:N("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ES.displayName=ft.List.displayName;const RS=d.forwardRef((e,t)=>p.jsx(ft.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));RS.displayName=ft.Empty.displayName;const NS=d.forwardRef(({className:e,...t},n)=>p.jsx(ft.Group,{ref:n,className:N("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));NS.displayName=ft.Group.displayName;const PS=d.forwardRef(({className:e,...t},n)=>p.jsx(ft.Separator,{ref:n,className:N("-mx-1 h-px bg-border",e),...t}));PS.displayName=ft.Separator.displayName;const MS=d.forwardRef(({className:e,...t},n)=>p.jsx(ft.Item,{ref:n,className:N("relative flex transition-colors duration-300 cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));MS.displayName=ft.Item.displayName;const TS=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});TS.displayName="CommandShortcut";const cq=["top","right","bottom","left"],Rn=Math.min,ht=Math.max,Ya=Math.round,Sa=Math.floor,Ut=e=>({x:e,y:e}),uq={left:"right",right:"left",bottom:"top",top:"bottom"},dq={start:"end",end:"start"};function wd(e,t,n){return ht(e,Rn(t,n))}function pn(e,t){return typeof e=="function"?e(t):e}function mn(e){return e.split("-")[0]}function qr(e){return e.split("-")[1]}function Hf(e){return e==="x"?"y":"x"}function Vf(e){return e==="y"?"height":"width"}const fq=new Set(["top","bottom"]);function Gt(e){return fq.has(mn(e))?"y":"x"}function Gf(e){return Hf(Gt(e))}function pq(e,t,n){n===void 0&&(n=!1);const r=qr(e),o=Gf(e),a=Vf(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Xa(s)),[s,Xa(s)]}function mq(e){const t=Xa(e);return[Sd(e),t,Sd(t)]}function Sd(e){return e.replace(/start|end/g,t=>dq[t])}const _b=["left","right"],Eb=["right","left"],hq=["top","bottom"],gq=["bottom","top"];function vq(e,t,n){switch(e){case"top":case"bottom":return n?t?Eb:_b:t?_b:Eb;case"left":case"right":return t?hq:gq;default:return[]}}function bq(e,t,n,r){const o=qr(e);let a=vq(mn(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Sd)))),a}function Xa(e){return e.replace(/left|right|bottom|top/g,t=>uq[t])}function yq(e){return{top:0,right:0,bottom:0,left:0,...e}}function OS(e){return typeof e!="number"?yq(e):{top:e,right:e,bottom:e,left:e}}function Za(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Rb(e,t,n){let{reference:r,floating:o}=e;const a=Gt(t),s=Gf(t),i=Vf(s),l=mn(t),u=a==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(qr(t)){case"start":h[s]-=m*(n&&u?-1:1);break;case"end":h[s]+=m*(n&&u?-1:1);break}return h}const xq=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Rb(u,r,l),m=r,h={},v=0;for(let g=0;g<i.length;g++){const{name:b,fn:y}=i[g],{x,y:S,data:C,reset:E}=await y({x:f,y:c,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=x??f,c=S??c,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:c}=Rb(u,m,l)),g=-1)}return{x:f,y:c,placement:m,strategy:o,middlewareData:h}};async function Eo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:m=!1,padding:h=0}=pn(t,e),v=OS(h),b=i[m?c==="floating"?"reference":"floating":c],y=Za(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),x=c==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=Za(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:S,strategy:l}):x);return{top:(y.top-E.top+v.top)/C.y,bottom:(E.bottom-y.bottom+v.bottom)/C.y,left:(y.left-E.left+v.left)/C.x,right:(E.right-y.right+v.right)/C.x}}const wq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:f=0}=pn(e,t)||{};if(u==null)return{};const c=OS(f),m={x:n,y:r},h=Gf(o),v=Vf(h),g=await s.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-m[h]-a.floating[v],E=m[h]-a.reference[h],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let _=R?R[S]:0;(!_||!await(s.isElement==null?void 0:s.isElement(R)))&&(_=i.floating[S]||a.floating[v]);const P=C/2-E/2,M=_/2-g[v]/2-1,k=Rn(c[y],M),T=Rn(c[x],M),$=k,O=_-g[v]-T,L=_/2-g[v]/2+P,F=wd($,L,O),D=!l.arrow&&qr(o)!=null&&L!==F&&a.reference[v]/2-(L<$?k:T)-g[v]/2<0,V=D?L<$?L-$:L-O:0;return{[h]:m[h]+V,data:{[h]:F,centerOffset:L-F-V,...D&&{alignmentOffset:V}},reset:D}}}),Sq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=pn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=mn(o),x=Gt(i),S=mn(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(S||!g?[Xa(i)]:mq(i)),R=v!=="none";!m&&R&&E.push(...bq(i,g,v,C));const _=[i,...E],P=await Eo(t,b),M=[];let k=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&M.push(P[y]),c){const L=pq(o,s,C);M.push(P[L[0]],P[L[1]])}if(k=[...k,{placement:o,overflows:M}],!M.every(L=>L<=0)){var T,$;const L=(((T=a.flip)==null?void 0:T.index)||0)+1,F=_[L];if(F&&(!(c==="alignment"?x!==Gt(F):!1)||k.every(H=>Gt(H.placement)===x?H.overflows[0]>0:!0)))return{data:{index:L,overflows:k},reset:{placement:F}};let D=($=k.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:$.placement;if(!D)switch(h){case"bestFit":{var O;const V=(O=k.filter(H=>{if(R){const B=Gt(H.placement);return B===x||B==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(B=>B>0).reduce((B,Z)=>B+Z,0)]).sort((H,B)=>H[1]-B[1])[0])==null?void 0:O[0];V&&(D=V);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Nb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pb(e){return cq.some(t=>e[t]>=0)}const Cq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pn(e,t);switch(r){case"referenceHidden":{const a=await Eo(t,{...o,elementContext:"reference"}),s=Nb(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pb(s)}}}case"escaped":{const a=await Eo(t,{...o,altBoundary:!0}),s=Nb(a,n.floating);return{data:{escapedOffsets:s,escaped:Pb(s)}}}default:return{}}}}},AS=new Set(["left","top"]);async function _q(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=mn(n),i=qr(n),l=Gt(n)==="y",u=AS.has(s)?-1:1,f=a&&l?-1:1,c=pn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),l?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const Eq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await _q(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Rq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=pn(e,t),u={x:n,y:r},f=await Eo(t,l),c=Gt(mn(o)),m=Hf(c);let h=u[m],v=u[c];if(a){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=h+f[b],S=h-f[y];h=wd(x,h,S)}if(s){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",x=v+f[b],S=v-f[y];v=wd(x,v,S)}const g=i.fn({...t,[m]:h,[c]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[c]:s}}}}}},Nq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=pn(e,t),f={x:n,y:r},c=Gt(o),m=Hf(c);let h=f[m],v=f[c];const g=pn(i,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=m==="y"?"height":"width",C=a.reference[m]-a.floating[S]+b.mainAxis,E=a.reference[m]+a.reference[S]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(u){var y,x;const S=m==="y"?"width":"height",C=AS.has(mn(o)),E=a.reference[c]-a.floating[S]+(C&&((y=s.offset)==null?void 0:y[c])||0)+(C?0:b.crossAxis),R=a.reference[c]+a.reference[S]+(C?0:((x=s.offset)==null?void 0:x[c])||0)-(C?b.crossAxis:0);v<E?v=E:v>R&&(v=R)}return{[m]:h,[c]:v}}}},Pq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...u}=pn(e,t),f=await Eo(t,u),c=mn(o),m=qr(o),h=Gt(o)==="y",{width:v,height:g}=a.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=c,b=m==="end"?"top":"bottom");const x=g-f.top-f.bottom,S=v-f.left-f.right,C=Rn(g-f[b],x),E=Rn(v-f[y],S),R=!t.middlewareData.shift;let _=C,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),R&&!m){const k=ht(f.left,0),T=ht(f.right,0),$=ht(f.top,0),O=ht(f.bottom,0);h?P=v-2*(k!==0||T!==0?k+T:ht(f.left,f.right)):_=g-2*($!==0||O!==0?$+O:ht(f.top,f.bottom))}await l({...t,availableWidth:P,availableHeight:_});const M=await s.getDimensions(i.floating);return v!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ls(){return typeof window<"u"}function Wr(e){return DS(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jt(e){var t;return(t=(DS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function DS(e){return Ls()?e instanceof Node||e instanceof gt(e).Node:!1}function Dt(e){return Ls()?e instanceof Element||e instanceof gt(e).Element:!1}function Kt(e){return Ls()?e instanceof HTMLElement||e instanceof gt(e).HTMLElement:!1}function Mb(e){return!Ls()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}const Mq=new Set(["inline","contents"]);function Ko(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Mq.has(o)}const Tq=new Set(["table","td","th"]);function Oq(e){return Tq.has(Wr(e))}const Aq=[":popover-open",":modal"];function Fs(e){return Aq.some(t=>{try{return e.matches(t)}catch{return!1}})}const Dq=["transform","translate","scale","rotate","perspective"],Iq=["transform","translate","scale","rotate","perspective","filter"],kq=["paint","layout","strict","content"];function Uf(e){const t=Kf(),n=Dt(e)?It(e):e;return Dq.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Iq.some(r=>(n.willChange||"").includes(r))||kq.some(r=>(n.contain||"").includes(r))}function jq(e){let t=Nn(e);for(;Kt(t)&&!Mr(t);){if(Uf(t))return t;if(Fs(t))return null;t=Nn(t)}return null}function Kf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $q=new Set(["html","body","#document"]);function Mr(e){return $q.has(Wr(e))}function It(e){return gt(e).getComputedStyle(e)}function Bs(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nn(e){if(Wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mb(e)&&e.host||Jt(e);return Mb(t)?t.host:t}function IS(e){const t=Nn(e);return Mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kt(t)&&Ko(t)?t:IS(t)}function Ro(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=IS(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=gt(o);if(a){const i=Cd(s);return t.concat(s,s.visualViewport||[],Ko(o)?o:[],i&&n?Ro(i):[])}return t.concat(o,Ro(o,[],n))}function Cd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kS(e){const t=It(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Kt(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Ya(n)!==a||Ya(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Yf(e){return Dt(e)?e:e.contextElement}function wr(e){const t=Yf(e);if(!Kt(t))return Ut(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=kS(t);let s=(a?Ya(n.width):n.width)/r,i=(a?Ya(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Lq=Ut(0);function jS(e){const t=gt(e);return!Kf()||!t.visualViewport?Lq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gt(e)?!1:t}function Yn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Yf(e);let s=Ut(1);t&&(r?Dt(r)&&(s=wr(r)):s=wr(e));const i=Fq(a,n,r)?jS(a):Ut(0);let l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,f=o.width/s.x,c=o.height/s.y;if(a){const m=gt(a),h=r&&Dt(r)?gt(r):r;let v=m,g=Cd(v);for(;g&&r&&h!==v;){const b=wr(g),y=g.getBoundingClientRect(),x=It(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,C=y.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,c*=b.y,l+=S,u+=C,v=gt(g),g=Cd(v)}}return Za({width:f,height:c,x:l,y:u})}function zs(e,t){const n=Bs(e).scrollLeft;return t?t.left+n:Yn(Jt(e)).left+n}function $S(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zs(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Bq(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Jt(r),i=t?Fs(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Ut(1);const f=Ut(0),c=Kt(r);if((c||!c&&!a)&&((Wr(r)!=="body"||Ko(s))&&(l=Bs(r)),Kt(r))){const h=Yn(r);u=wr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=s&&!c&&!a?$S(s,l):Ut(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function zq(e){return Array.from(e.getClientRects())}function qq(e){const t=Jt(e),n=Bs(e),r=e.ownerDocument.body,o=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+zs(e);const i=-n.scrollTop;return It(r).direction==="rtl"&&(s+=ht(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Tb=25;function Wq(e,t){const n=gt(e),r=Jt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const f=Kf();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const u=zs(r);if(u<=0){const f=r.ownerDocument,c=f.body,m=getComputedStyle(c),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-h);v<=Tb&&(a-=v)}else u<=Tb&&(a+=u);return{width:a,height:s,x:i,y:l}}const Hq=new Set(["absolute","fixed"]);function Vq(e,t){const n=Yn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Kt(e)?wr(e):Ut(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:i,x:l,y:u}}function Ob(e,t,n){let r;if(t==="viewport")r=Wq(e,n);else if(t==="document")r=qq(Jt(e));else if(Dt(t))r=Vq(t,n);else{const o=jS(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Za(r)}function LS(e,t){const n=Nn(e);return n===t||!Dt(n)||Mr(n)?!1:It(n).position==="fixed"||LS(n,t)}function Gq(e,t){const n=t.get(e);if(n)return n;let r=Ro(e,[],!1).filter(i=>Dt(i)&&Wr(i)!=="body"),o=null;const a=It(e).position==="fixed";let s=a?Nn(e):e;for(;Dt(s)&&!Mr(s);){const i=It(s),l=Uf(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Hq.has(o.position)||Ko(s)&&!l&&LS(e,s))?r=r.filter(f=>f!==s):o=i,s=Nn(s)}return t.set(e,r),r}function Uq(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Fs(t)?[]:Gq(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((u,f)=>{const c=Ob(t,f,o);return u.top=ht(c.top,u.top),u.right=Rn(c.right,u.right),u.bottom=Rn(c.bottom,u.bottom),u.left=ht(c.left,u.left),u},Ob(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Kq(e){const{width:t,height:n}=kS(e);return{width:t,height:n}}function Yq(e,t,n){const r=Kt(t),o=Jt(t),a=n==="fixed",s=Yn(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Ut(0);function u(){l.x=zs(o)}if(r||!r&&!a)if((Wr(t)!=="body"||Ko(o))&&(i=Bs(t)),r){const h=Yn(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const f=o&&!r&&!a?$S(o,i):Ut(0),c=s.left+i.scrollLeft-l.x-f.x,m=s.top+i.scrollTop-l.y-f.y;return{x:c,y:m,width:s.width,height:s.height}}function Iu(e){return It(e).position==="static"}function Ab(e,t){if(!Kt(e)||It(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Jt(e)===n&&(n=n.ownerDocument.body),n}function FS(e,t){const n=gt(e);if(Fs(e))return n;if(!Kt(e)){let o=Nn(e);for(;o&&!Mr(o);){if(Dt(o)&&!Iu(o))return o;o=Nn(o)}return n}let r=Ab(e,t);for(;r&&Oq(r)&&Iu(r);)r=Ab(r,t);return r&&Mr(r)&&Iu(r)&&!Uf(r)?n:r||jq(e)||n}const Xq=async function(e){const t=this.getOffsetParent||FS,n=this.getDimensions,r=await n(e.floating);return{reference:Yq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Zq(e){return It(e).direction==="rtl"}const Qq={convertOffsetParentRelativeRectToViewportRelativeRect:Bq,getDocumentElement:Jt,getClippingRect:Uq,getOffsetParent:FS,getElementRects:Xq,getClientRects:zq,getDimensions:Kq,getScale:wr,isElement:Dt,isRTL:Zq};function BS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jq(e,t){let n=null,r;const o=Jt(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:f,top:c,width:m,height:h}=u;if(i||t(),!m||!h)return;const v=Sa(c),g=Sa(o.clientWidth-(f+m)),b=Sa(o.clientHeight-(c+h)),y=Sa(f),S={rootMargin:-v+"px "+-g+"px "+-b+"px "+-y+"px",threshold:ht(0,Rn(1,l))||1};let C=!0;function E(R){const _=R[0].intersectionRatio;if(_!==l){if(!C)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!BS(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return s(!0),a}function eW(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Yf(e),f=o||a?[...u?Ro(u):[],...Ro(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const c=u&&i?Jq(u,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let v,g=l?Yn(e):null;l&&b();function b(){const y=Yn(e);g&&!BS(g,y)&&n(),g=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),c?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const tW=Eq,nW=Rq,rW=Sq,oW=Pq,aW=Cq,Db=wq,sW=Nq,iW=(e,t,n)=>{const r=new Map,o={platform:Qq,...n},a={...o.platform,_c:r};return xq(e,t,{...o,platform:a})};var lW=typeof document<"u",cW=function(){},Oa=lW?w.useLayoutEffect:cW;function Qa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Qa(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function zS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ib(e,t){const n=zS(e);return Math.round(t*n)/n}function ku(e){const t=d.useRef(e);return Oa(()=>{t.current=e}),t}function uW(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[f,c]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=d.useState(r);Qa(m,r)||h(r);const[v,g]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(H=>{H!==R.current&&(R.current=H,g(H))},[]),S=d.useCallback(H=>{H!==_.current&&(_.current=H,y(H))},[]),C=a||v,E=s||b,R=d.useRef(null),_=d.useRef(null),P=d.useRef(f),M=l!=null,k=ku(l),T=ku(o),$=ku(u),O=d.useCallback(()=>{if(!R.current||!_.current)return;const H={placement:t,strategy:n,middleware:m};T.current&&(H.platform=T.current),iW(R.current,_.current,H).then(B=>{const Z={...B,isPositioned:$.current!==!1};L.current&&!Qa(P.current,Z)&&(P.current=Z,ps.flushSync(()=>{c(Z)}))})},[m,t,n,T,$]);Oa(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,c(H=>({...H,isPositioned:!1})))},[u]);const L=d.useRef(!1);Oa(()=>(L.current=!0,()=>{L.current=!1}),[]),Oa(()=>{if(C&&(R.current=C),E&&(_.current=E),C&&E){if(k.current)return k.current(C,E,O);O()}},[C,E,O,k,M]);const F=d.useMemo(()=>({reference:R,floating:_,setReference:x,setFloating:S}),[x,S]),D=d.useMemo(()=>({reference:C,floating:E}),[C,E]),V=d.useMemo(()=>{const H={position:n,left:0,top:0};if(!D.floating)return H;const B=Ib(D.floating,f.x),Z=Ib(D.floating,f.y);return i?{...H,transform:"translate("+B+"px, "+Z+"px)",...zS(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:Z}},[n,i,D.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:O,refs:F,elements:D,floatingStyles:V}),[f,O,F,D,V])}const dW=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Db({element:r.current,padding:o}).fn(n):{}:r?Db({element:r,padding:o}).fn(n):{}}}},fW=(e,t)=>({...tW(e),options:[e,t]}),pW=(e,t)=>({...nW(e),options:[e,t]}),mW=(e,t)=>({...sW(e),options:[e,t]}),hW=(e,t)=>({...rW(e),options:[e,t]}),gW=(e,t)=>({...oW(e),options:[e,t]}),vW=(e,t)=>({...aW(e),options:[e,t]}),bW=(e,t)=>({...dW(e),options:[e,t]});var yW="Arrow",qS=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return p.jsx(ne.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});qS.displayName=yW;var xW=qS,Xf="Popper",[WS,en]=ke(Xf),[wW,HS]=WS(Xf),VS=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return p.jsx(wW,{scope:t,anchor:r,onAnchorChange:o,children:n})};VS.displayName=Xf;var GS="PopperAnchor",US=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=HS(GS,n),s=d.useRef(null),i=ce(t,s),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=r?.current||s.current,u!==l.current&&a.onAnchorChange(l.current)}),r?null:p.jsx(ne.div,{...o,ref:i})});US.displayName=GS;var Zf="PopperContent",[SW,CW]=WS(Zf),KS=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...g}=e,b=HS(Zf,n),[y,x]=d.useState(null),S=ce(t,j=>x(j)),[C,E]=d.useState(null),R=Go(C),_=R?.width??0,P=R?.height??0,M=r+(a!=="center"?"-"+a:""),k=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(u)?u:[u],$=T.length>0,O={padding:k,boundary:T.filter(EW),altBoundary:$},{refs:L,floatingStyles:F,placement:D,isPositioned:V,middlewareData:H}=uW({strategy:"fixed",placement:M,whileElementsMounted:(...j)=>eW(...j,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[fW({mainAxis:o+P,alignmentAxis:s}),l&&pW({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?mW():void 0,...O}),l&&hW({...O}),gW({...O,apply:({elements:j,rects:G,availableWidth:ee,availableHeight:te})=>{const{width:re,height:Y}=G.reference,se=j.floating.style;se.setProperty("--radix-popper-available-width",`${ee}px`),se.setProperty("--radix-popper-available-height",`${te}px`),se.setProperty("--radix-popper-anchor-width",`${re}px`),se.setProperty("--radix-popper-anchor-height",`${Y}px`)}}),C&&bW({element:C,padding:i}),RW({arrowWidth:_,arrowHeight:P}),m&&vW({strategy:"referenceHidden",...O})]}),[B,Z]=ZS(D),Q=Me(v);Ie(()=>{V&&Q?.()},[V,Q]);const q=H.arrow?.x,A=H.arrow?.y,W=H.arrow?.centerOffset!==0,[z,K]=d.useState();return Ie(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:V?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(SW,{scope:n,placedSide:B,onArrowChange:E,arrowX:q,arrowY:A,shouldHideArrow:W,children:p.jsx(ne.div,{"data-side":B,"data-align":Z,...g,ref:S,style:{...g.style,animation:V?void 0:"none"}})})})});KS.displayName=Zf;var YS="PopperArrow",_W={top:"bottom",right:"left",bottom:"top",left:"right"},XS=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=CW(YS,r),s=_W[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(xW,{...o,ref:n,style:{...o.style,display:"block"}})})});XS.displayName=YS;function EW(e){return e!==null}var RW=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,f]=ZS(n),c={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2;let v="",g="";return u==="bottom"?(v=s?c:`${m}px`,g=`${-l}px`):u==="top"?(v=s?c:`${m}px`,g=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,g=s?c:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,g=s?c:`${h}px`),{data:{x:v,y:g}}}});function ZS(e){const[t,n="center"]=e.split("-");return[t,n]}var Hr=VS,Vr=US,Yo=KS,Xo=XS,ju="rovingFocusGroup.onEntryFocus",NW={bubbles:!1,cancelable:!0},Zo="RovingFocusGroup",[_d,QS,PW]=Pn(Zo),[MW,tn]=ke(Zo,[PW]),[TW,OW]=MW(Zo),JS=d.forwardRef((e,t)=>p.jsx(_d.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(_d.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(AW,{...e,ref:t})})}));JS.displayName=Zo;var AW=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...c}=e,m=d.useRef(null),h=ce(t,m),v=kt(a),[g,b]=Ae({prop:s,defaultProp:i??null,onChange:l,caller:Zo}),[y,x]=d.useState(!1),S=Me(u),C=QS(n),E=d.useRef(!1),[R,_]=d.useState(0);return d.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(ju,S),()=>P.removeEventListener(ju,S)},[S]),p.jsx(TW,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:d.useCallback(P=>b(P),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>_(P=>P+1),[]),onFocusableItemRemove:d.useCallback(()=>_(P=>P-1),[]),children:p.jsx(ne.div,{tabIndex:y||R===0?-1:0,"data-orientation":r,...c,ref:h,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{E.current=!0}),onFocus:U(e.onFocus,P=>{const M=!E.current;if(P.target===P.currentTarget&&M&&!y){const k=new CustomEvent(ju,NW);if(P.currentTarget.dispatchEvent(k),!k.defaultPrevented){const T=C().filter(D=>D.focusable),$=T.find(D=>D.active),O=T.find(D=>D.id===g),F=[$,O,...T].filter(Boolean).map(D=>D.ref.current);nC(F,f)}}E.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),eC="RovingFocusGroupItem",tC=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=Te(),u=a||l,f=OW(eC,n),c=f.currentTabStopId===u,m=QS(n),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=f;return d.useEffect(()=>{if(r)return h(),()=>v()},[r,h,v]),p.jsx(_d.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:U(e.onMouseDown,b=>{r?f.onItemFocus(u):b.preventDefault()}),onFocus:U(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:U(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=kW(b,f.orientation,f.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let S=m().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const C=S.indexOf(b.currentTarget);S=f.loop?jW(S,C+1):S.slice(C+1)}setTimeout(()=>nC(S))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:g!=null}):s})})});tC.displayName=eC;var DW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function IW(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kW(e,t,n){const r=IW(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return DW[r]}function nC(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Qo=JS,Jo=tC,Ed=["Enter"," "],$W=["ArrowDown","PageUp","Home"],rC=["ArrowUp","PageDown","End"],LW=[...$W,...rC],FW={ltr:[...Ed,"ArrowRight"],rtl:[...Ed,"ArrowLeft"]},BW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[No,zW,qW]=Pn(ea),[sr,ta]=ke(ea,[qW,en,tn]),na=en(),oC=tn(),[aC,An]=sr(ea),[WW,ra]=sr(ea),sC=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=na(t),[l,u]=d.useState(null),f=d.useRef(!1),c=Me(a),m=kt(o);return d.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),p.jsx(Hr,{...i,children:p.jsx(aC,{scope:t,open:n,onOpenChange:c,content:l,onContentChange:u,children:p.jsx(WW,{scope:t,onClose:d.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};sC.displayName=ea;var HW="MenuAnchor",Qf=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=na(n);return p.jsx(Vr,{...o,...r,ref:t})});Qf.displayName=HW;var Jf="MenuPortal",[VW,iC]=sr(Jf,{forceMount:void 0}),lC=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=An(Jf,t);return p.jsx(VW,{scope:t,forceMount:n,children:p.jsx(De,{present:n||a.open,children:p.jsx(jr,{asChild:!0,container:o,children:r})})})};lC.displayName=Jf;var St="MenuContent",[GW,ep]=sr(St),cC=d.forwardRef((e,t)=>{const n=iC(St,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=An(St,e.__scopeMenu),s=ra(St,e.__scopeMenu);return p.jsx(No.Provider,{scope:e.__scopeMenu,children:p.jsx(De,{present:r||a.open,children:p.jsx(No.Slot,{scope:e.__scopeMenu,children:s.modal?p.jsx(UW,{...o,ref:t}):p.jsx(KW,{...o,ref:t})})})})}),UW=d.forwardRef((e,t)=>{const n=An(St,e.__scopeMenu),r=d.useRef(null),o=ce(t,r);return d.useEffect(()=>{const a=r.current;if(a)return xs(a)},[]),p.jsx(tp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),KW=d.forwardRef((e,t)=>{const n=An(St,e.__scopeMenu);return p.jsx(tp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),YW=Hn("MenuContent.ScrollLock"),tp=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:m,onDismiss:h,disableOutsideScroll:v,...g}=e,b=An(St,n),y=ra(St,n),x=na(n),S=oC(n),C=zW(n),[E,R]=d.useState(null),_=d.useRef(null),P=ce(t,_,b.onContentChange),M=d.useRef(0),k=d.useRef(""),T=d.useRef(0),$=d.useRef(null),O=d.useRef("right"),L=d.useRef(0),F=v?jo:d.Fragment,D=v?{as:YW,allowPinchZoom:!0}:void 0,V=B=>{const Z=k.current+B,Q=C().filter(j=>!j.disabled),q=document.activeElement,A=Q.find(j=>j.ref.current===q)?.textValue,W=Q.map(j=>j.textValue),z=i5(W,Z,A),K=Q.find(j=>j.textValue===z)?.ref.current;(function j(G){k.current=G,window.clearTimeout(M.current),G!==""&&(M.current=window.setTimeout(()=>j(""),1e3))})(Z),K&&setTimeout(()=>K.focus())};d.useEffect(()=>()=>window.clearTimeout(M.current),[]),bs();const H=d.useCallback(B=>O.current===$.current?.side&&c5(B,$.current?.area),[]);return p.jsx(GW,{scope:n,searchRef:k,onItemEnter:d.useCallback(B=>{H(B)&&B.preventDefault()},[H]),onItemLeave:d.useCallback(B=>{H(B)||(_.current?.focus(),R(null))},[H]),onTriggerLeave:d.useCallback(B=>{H(B)&&B.preventDefault()},[H]),pointerGraceTimerRef:T,onPointerGraceIntentChange:d.useCallback(B=>{$.current=B},[]),children:p.jsx(F,{...D,children:p.jsx(ko,{asChild:!0,trapped:o,onMountAutoFocus:U(a,B=>{B.preventDefault(),_.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:p.jsx(Mn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:m,onDismiss:h,children:p.jsx(Qo,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:R,onEntryFocus:U(l,B=>{y.isUsingKeyboardRef.current||B.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Yo,{role:"menu","aria-orientation":"vertical","data-state":RC(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...g,ref:P,style:{outline:"none",...g.style},onKeyDown:U(g.onKeyDown,B=>{const Q=B.target.closest("[data-radix-menu-content]")===B.currentTarget,q=B.ctrlKey||B.altKey||B.metaKey,A=B.key.length===1;Q&&(B.key==="Tab"&&B.preventDefault(),!q&&A&&V(B.key));const W=_.current;if(B.target!==W||!LW.includes(B.key))return;B.preventDefault();const K=C().filter(j=>!j.disabled).map(j=>j.ref.current);rC.includes(B.key)&&K.reverse(),a5(K)}),onBlur:U(e.onBlur,B=>{B.currentTarget.contains(B.target)||(window.clearTimeout(M.current),k.current="")}),onPointerMove:U(e.onPointerMove,Po(B=>{const Z=B.target,Q=L.current!==B.clientX;if(B.currentTarget.contains(Z)&&Q){const q=B.clientX>L.current?"right":"left";O.current=q,L.current=B.clientX}}))})})})})})})});cC.displayName=St;var XW="MenuGroup",np=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});np.displayName=XW;var ZW="MenuLabel",uC=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});uC.displayName=ZW;var Ja="MenuItem",kb="menu.itemSelect",qs=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),s=ra(Ja,e.__scopeMenu),i=ep(Ja,e.__scopeMenu),l=ce(t,a),u=d.useRef(!1),f=()=>{const c=a.current;if(!n&&c){const m=new CustomEvent(kb,{bubbles:!0,cancelable:!0});c.addEventListener(kb,h=>r?.(h),{once:!0}),ka(c,m),m.defaultPrevented?u.current=!1:s.onClose()}};return p.jsx(dC,{...o,ref:l,disabled:n,onClick:U(e.onClick,f),onPointerDown:c=>{e.onPointerDown?.(c),u.current=!0},onPointerUp:U(e.onPointerUp,c=>{u.current||c.currentTarget?.click()}),onKeyDown:U(e.onKeyDown,c=>{const m=i.searchRef.current!=="";n||m&&c.key===" "||Ed.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});qs.displayName=Ja;var dC=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=ep(Ja,n),i=oC(n),l=d.useRef(null),u=ce(t,l),[f,c]=d.useState(!1),[m,h]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&h((v.textContent??"").trim())},[a.children]),p.jsx(No.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(Jo,{asChild:!0,...i,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:U(e.onPointerMove,Po(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,Po(v=>s.onItemLeave(v))),onFocus:U(e.onFocus,()=>c(!0)),onBlur:U(e.onBlur,()=>c(!1))})})})}),QW="MenuCheckboxItem",fC=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(vC,{scope:e.__scopeMenu,checked:n,children:p.jsx(qs,{role:"menuitemcheckbox","aria-checked":es(n)?"mixed":n,...o,ref:t,"data-state":ap(n),onSelect:U(o.onSelect,()=>r?.(es(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fC.displayName=QW;var pC="MenuRadioGroup",[JW,e5]=sr(pC,{value:void 0,onValueChange:()=>{}}),mC=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Me(r);return p.jsx(JW,{scope:e.__scopeMenu,value:n,onValueChange:a,children:p.jsx(np,{...o,ref:t})})});mC.displayName=pC;var hC="MenuRadioItem",gC=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=e5(hC,e.__scopeMenu),a=n===o.value;return p.jsx(vC,{scope:e.__scopeMenu,checked:a,children:p.jsx(qs,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":ap(a),onSelect:U(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});gC.displayName=hC;var rp="MenuItemIndicator",[vC,t5]=sr(rp,{checked:!1}),bC=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=t5(rp,n);return p.jsx(De,{present:r||es(a.checked)||a.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":ap(a.checked)})})});bC.displayName=rp;var n5="MenuSeparator",yC=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});yC.displayName=n5;var r5="MenuArrow",xC=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=na(n);return p.jsx(Xo,{...o,...r,ref:t})});xC.displayName=r5;var op="MenuSub",[o5,wC]=sr(op),SC=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=An(op,t),s=na(t),[i,l]=d.useState(null),[u,f]=d.useState(null),c=Me(o);return d.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),p.jsx(Hr,{...s,children:p.jsx(aC,{scope:t,open:r,onOpenChange:c,content:u,onContentChange:f,children:p.jsx(o5,{scope:t,contentId:Te(),triggerId:Te(),trigger:i,onTriggerChange:l,children:n})})})};SC.displayName=op;var lo="MenuSubTrigger",CC=d.forwardRef((e,t)=>{const n=An(lo,e.__scopeMenu),r=ra(lo,e.__scopeMenu),o=wC(lo,e.__scopeMenu),a=ep(lo,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},f=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>f,[f]),d.useEffect(()=>{const c=i.current;return()=>{window.clearTimeout(c),l(null)}},[i,l]),p.jsx(Qf,{asChild:!0,...u,children:p.jsx(dC,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":RC(n.open),...e,ref:At(t,o.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,Po(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:U(e.onPointerLeave,Po(c=>{f();const m=n.content?.getBoundingClientRect();if(m){const h=n.content?.dataset.side,v=h==="right",g=v?-5:5,b=m[v?"left":"right"],y=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:b,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:U(e.onKeyDown,c=>{const m=a.searchRef.current!=="";e.disabled||m&&c.key===" "||FW[r.dir].includes(c.key)&&(n.onOpenChange(!0),n.content?.focus(),c.preventDefault())})})})});CC.displayName=lo;var _C="MenuSubContent",EC=d.forwardRef((e,t)=>{const n=iC(St,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=An(St,e.__scopeMenu),s=ra(St,e.__scopeMenu),i=wC(_C,e.__scopeMenu),l=d.useRef(null),u=ce(t,l);return p.jsx(No.Provider,{scope:e.__scopeMenu,children:p.jsx(De,{present:r||a.open,children:p.jsx(No.Slot,{scope:e.__scopeMenu,children:p.jsx(tp,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:U(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:U(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:U(e.onKeyDown,f=>{const c=f.currentTarget.contains(f.target),m=BW[s.dir].includes(f.key);c&&m&&(a.onOpenChange(!1),i.trigger?.focus(),f.preventDefault())})})})})})});EC.displayName=_C;function RC(e){return e?"open":"closed"}function es(e){return e==="indeterminate"}function ap(e){return es(e)?"indeterminate":e?"checked":"unchecked"}function a5(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function s5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function i5(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=s5(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function l5(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,f=i.y,c=l.x,m=l.y;f>r!=m>r&&n<(c-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function c5(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return l5(n,t)}function Po(e){return t=>t.pointerType==="mouse"?e(t):void 0}var sp=sC,ip=Qf,lp=lC,cp=cC,up=np,dp=uC,fp=qs,pp=fC,mp=mC,hp=gC,gp=bC,vp=yC,bp=xC,yp=SC,xp=CC,wp=EC,Sp="ContextMenu",[u5]=ke(Sp,[ta]),nt=ta(),[d5,NC]=u5(Sp),PC=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[s,i]=d.useState(!1),l=nt(t),u=Me(r),f=d.useCallback(c=>{i(c),u(c)},[u]);return p.jsx(d5,{scope:t,open:s,onOpenChange:f,modal:a,children:p.jsx(sp,{...l,dir:o,open:s,onOpenChange:f,modal:a,children:n})})};PC.displayName=Sp;var MC="ContextMenuTrigger",TC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=NC(MC,n),s=nt(n),i=d.useRef({x:0,y:0}),l=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=d.useRef(0),f=d.useCallback(()=>window.clearTimeout(u.current),[]),c=m=>{i.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return d.useEffect(()=>f,[f]),d.useEffect(()=>void(r&&f()),[r,f]),p.jsxs(p.Fragment,{children:[p.jsx(ip,{...s,virtualRef:l}),p.jsx(ne.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:U(e.onContextMenu,m=>{f(),c(m),m.preventDefault()}),onPointerDown:r?e.onPointerDown:U(e.onPointerDown,Ca(m=>{f(),u.current=window.setTimeout(()=>c(m),700)})),onPointerMove:r?e.onPointerMove:U(e.onPointerMove,Ca(f)),onPointerCancel:r?e.onPointerCancel:U(e.onPointerCancel,Ca(f)),onPointerUp:r?e.onPointerUp:U(e.onPointerUp,Ca(f))})]})});TC.displayName=MC;var f5="ContextMenuPortal",OC=e=>{const{__scopeContextMenu:t,...n}=e,r=nt(t);return p.jsx(lp,{...r,...n})};OC.displayName=f5;var AC="ContextMenuContent",DC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=NC(AC,n),a=nt(n),s=d.useRef(!1);return p.jsx(cp,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&s.current&&i.preventDefault(),s.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!o.modal&&(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DC.displayName=AC;var p5="ContextMenuGroup",IC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(up,{...o,...r,ref:t})});IC.displayName=p5;var m5="ContextMenuLabel",kC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(dp,{...o,...r,ref:t})});kC.displayName=m5;var h5="ContextMenuItem",jC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(fp,{...o,...r,ref:t})});jC.displayName=h5;var g5="ContextMenuCheckboxItem",$C=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(pp,{...o,...r,ref:t})});$C.displayName=g5;var v5="ContextMenuRadioGroup",LC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(mp,{...o,...r,ref:t})});LC.displayName=v5;var b5="ContextMenuRadioItem",FC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(hp,{...o,...r,ref:t})});FC.displayName=b5;var y5="ContextMenuItemIndicator",BC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(gp,{...o,...r,ref:t})});BC.displayName=y5;var x5="ContextMenuSeparator",zC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(vp,{...o,...r,ref:t})});zC.displayName=x5;var w5="ContextMenuArrow",S5=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(bp,{...o,...r,ref:t})});S5.displayName=w5;var qC="ContextMenuSub",WC=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,s=nt(t),[i,l]=Ae({prop:o,defaultProp:a??!1,onChange:r,caller:qC});return p.jsx(yp,{...s,open:i,onOpenChange:l,children:n})};WC.displayName=qC;var C5="ContextMenuSubTrigger",HC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(xp,{...o,...r,ref:t})});HC.displayName=C5;var _5="ContextMenuSubContent",VC=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nt(n);return p.jsx(wp,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});VC.displayName=_5;function Ca(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var E5=PC,R5=TC,GC=OC,UC=DC,N5=IC,KC=kC,YC=jC,XC=$C,P5=LC,ZC=FC,QC=BC,JC=zC,M5=WC,e_=HC,t_=VC;const T5=E5,O5=R5,A5=N5,D5=GC,I5=M5,k5=P5,n_=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(e_,{ref:o,className:N("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[state=open]:bg-primary data-[state=open]:text-primary-foreground",t&&"pl-8",e),...r,children:[n,p.jsx(Ir,{className:"ml-auto h-4 w-4"})]}));n_.displayName=e_.displayName;const r_=d.forwardRef(({className:e,...t},n)=>p.jsx(t_,{ref:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));r_.displayName=t_.displayName;const o_=d.forwardRef(({className:e,...t},n)=>p.jsx(GC,{children:p.jsx(UC,{ref:n,className:N("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));o_.displayName=UC.displayName;const a_=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(YC,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));a_.displayName=YC.displayName;const s_=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(XC,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(QC,{children:p.jsx(Do,{className:"h-4 w-4"})})}),t]}));s_.displayName=XC.displayName;const i_=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(ZC,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(QC,{children:p.jsx(vs,{className:"h-4 w-4 fill-current"})})}),t]}));i_.displayName=ZC.displayName;const l_=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(KC,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));l_.displayName=KC.displayName;const c_=d.forwardRef(({className:e,...t},n)=>p.jsx(JC,{ref:n,className:N("-mx-1 my-1 h-px bg-border",e),...t}));c_.displayName=JC.displayName;const u_=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});u_.displayName="ContextMenuShortcut";function j5(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const d_=w.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),oa=()=>{const e=w.useContext(d_);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};j5(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
67
67
  [data-state=closed]
68
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function v5(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function b5(){return gp(/^Mac/)}function y5(){return gp(/^iPhone/)}function Tb(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function x5(){return gp(/^iPad/)||b5()&&navigator.maxTouchPoints>1}function r_(){return y5()||x5()}function gp(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const w5=24,S5=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Ob(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Du=typeof document<"u"&&window.visualViewport;function Ab(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function o_(e){for(Ab(e)&&(e=e.parentElement);e&&!Ab(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const C5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let wa=0,Iu;function _5(e={}){let{isDisabled:t}=e;S5(()=>{if(!t)return wa++,wa===1&&r_()&&(Iu=E5()),()=>{wa--,wa===0&&Iu?.()}},[t])}function E5(){let e,t=0,n=c=>{e=o_(c.target),!(e===document.documentElement&&e===document.body)&&(t=c.changedTouches[0].pageY)},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}let m=c.changedTouches[0].pageY,h=e.scrollTop,v=e.scrollHeight-e.clientHeight;v!==0&&((h<=0&&m>t||h>=v&&m<t)&&c.preventDefault(),t=m)},o=c=>{let m=c.target;yd(m)&&m!==document.activeElement&&(c.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=c=>{let m=c.target;yd(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",Du&&(Du.height<window.innerHeight?requestAnimationFrame(()=>{Db(m)}):Du.addEventListener("resize",()=>Db(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,u=Ob(R5(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=Ob(Qr(document,"touchstart",n,{passive:!1,capture:!0}),Qr(document,"touchmove",r,{passive:!1,capture:!0}),Qr(document,"touchend",o,{passive:!1,capture:!0}),Qr(document,"focus",a,!0),Qr(window,"scroll",i));return()=>{u(),f(),window.scrollTo(s,l)}}function R5(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Qr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Db(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=o_(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+w5;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function yd(e){return e instanceof HTMLInputElement&&!C5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function N5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function P5(...e){return t=>e.forEach(n=>N5(n,t))}function a_(...e){return d.useCallback(P5(...e),e)}const i_=new WeakMap;function Ze(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&i_.set(e,r)}function M5(e,t){if(!e||!(e instanceof HTMLElement))return;let n=i_.get(e);n&&(e.style[t]=n[t])}const Ve=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Sa(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Ve(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ve(t)?5:4]):null)}function T5(e){return 8*(Math.log(e+1)-2)}function ku(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function O5(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Le={DURATION:.5,EASE:[.32,.72,0,1]},s_=.4,A5=.25,D5=100,l_=8,$n=16,xd=26,ju="vaul-dragging";function c_(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function I5({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),a=c_(t);return w.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function u_({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=I5({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=c_(n),l=w.useCallback(u=>{if(a){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[a,e,o,s]);return[i,l]}function k5({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:l,snapToSequentialPoint:u}){const[f,c]=u_({prop:e,defaultProp:n?.[0],onChange:t}),[m,h]=w.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);w.useEffect(()=>{function _(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[]);const v=w.useMemo(()=>f===n?.[n.length-1]||null,[n,f]),g=w.useMemo(()=>{var _;return(_=n?.findIndex(P=>P===f))!=null?_:null},[n,f]),b=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===f||!n,y=w.useMemo(()=>{const _=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var P;return(P=n?.map(M=>{const k=typeof M=="string";let T=0;if(k&&(T=parseInt(M,10)),Ve(s)){const O=k?T:m?M*_.height:0;return m?s==="bottom"?_.height-O:-_.height+O:O}const j=k?T:m?M*_.width:0;return m?s==="right"?_.width-j:-_.width+j:j}))!=null?P:[]},[n,m,l]),x=w.useMemo(()=>g!==null?y?.[g]:null,[y,g]),S=w.useCallback(_=>{var P;const M=(P=y?.findIndex(k=>k===_))!=null?P:null;i(M),Ze(r.current,{transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,transform:Ve(s)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`}),y&&M!==y.length-1&&a!==void 0&&M!==a&&M<a?Ze(o.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,opacity:"0"}):Ze(o.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,opacity:"1"}),c(n?.[Math.max(M,0)])},[r.current,n,y,a,o,c]);w.useEffect(()=>{if(f||e){var _;const P=(_=n?.findIndex(M=>M===e||M===f))!=null?_:-1;y&&P!==-1&&typeof y[P]=="number"&&S(y[P])}},[f,e,n,y,S]);function C({draggedDistance:_,closeDrawer:P,velocity:M,dismissible:k}){if(a===void 0)return;const T=s==="bottom"||s==="right"?(x??0)-_:(x??0)+_,j=g===a-1,O=g===0,F=_>0;if(j&&Ze(o.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`}),!u&&M>2&&!F){k?P():S(y[0]);return}if(!u&&M>2&&F&&y&&n){S(y[n.length-1]);return}const H=y?.reduce((K,V)=>typeof K!="number"||typeof V!="number"?K:Math.abs(V-T)<Math.abs(K-T)?V:K),$=Ve(s)?window.innerHeight:window.innerWidth;if(M>s_&&Math.abs(_)<$*.4){const K=F?1:-1;if(K>0&&v&&n){S(y[n.length-1]);return}if(O&&K<0&&k&&P(),g===null)return;S(y[g+K]);return}S(H)}function E({draggedDistance:_}){if(x===null)return;const P=s==="bottom"||s==="right"?x-_:x+_;(s==="bottom"||s==="right")&&P<y[y.length-1]||(s==="top"||s==="left")&&P>y[y.length-1]||Ze(r.current,{transform:Ve(s)?`translate3d(0, ${P}px, 0)`:`translate3d(${P}px, 0, 0)`})}function R(_,P){if(!n||typeof g!="number"||!y||a===void 0)return null;const M=g===a-1;if(g>=a&&P)return 0;if(M&&!P)return 1;if(!b&&!M)return null;const T=M?g+1:g-1,j=M?y[T]-y[T-1]:y[T+1]-y[T],O=_/Math.abs(j);return M?1-O:O}return{isLastSnapPoint:v,activeSnapPoint:f,shouldFade:b,getPercentageDragged:R,setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:C,onDrag:E,snapPointsOffset:y}}const j5=()=>()=>{};function $5(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=ta(),a=w.useRef(null),i=w.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-xd)/window.innerWidth}w.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;O5(r&&!o?ku(document.body,{background:"black"}):j5,ku(l,{transformOrigin:Ve(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Le.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Le.EASE.join(",")})`}));const u=ku(l,{borderRadius:`${l_}px`,overflow:"hidden",...Ve(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},Le.DURATION*1e3)}}},[t,n,i])}let Jr=null;function L5({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=w.useState(()=>typeof window<"u"?window.location.href:""),l=w.useRef(0),u=w.useCallback(()=>{if(Tb()&&Jr===null&&e&&!a){Jr={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:c,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-c}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=m-window.innerHeight;h&&l.current>=m&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[e]),f=w.useCallback(()=>{if(Tb()&&Jr!==null&&!a){const c=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Jr),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(m,c)}),Jr=null}},[i]);return w.useEffect(()=>{function c(){l.current=window.scrollY}return c(),window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}},[]),w.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||f()}},[t,f]),w.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{f()},500)):f())},[e,r,i,t,n,u,f]),{restorePositionSetting:f}}function F5({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=A5,scrollLockTimeout:u=D5,dismissible:f=!0,handleOnly:c=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:h,setActiveSnapPoint:v,fixed:g,modal:b=!0,onClose:y,nested:x,noBodyStyles:S=!1,direction:C="bottom",defaultOpen:E=!1,disablePreventScroll:R=!0,snapToSequentialPoint:_=!1,preventScrollRestoration:P=!1,repositionInputs:M=!0,onAnimationEnd:k,container:T,autoFocus:j=!1}){var O,F;const[H=!1,$]=u_({defaultProp:E,prop:e,onChange:X=>{t?.(X),!X&&!x&&Je(),setTimeout(()=>{k?.(X)},Le.DURATION*1e3),X&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),X||(document.body.style.pointerEvents="auto")}}),[K,V]=w.useState(!1),[q,ee]=w.useState(!1),[J,B]=w.useState(!1),D=w.useRef(null),z=w.useRef(null),L=w.useRef(null),U=w.useRef(null),I=w.useRef(null),W=w.useRef(!1),Q=w.useRef(null),te=w.useRef(0),re=w.useRef(!1),Y=w.useRef(!E),ie=w.useRef(0),A=w.useRef(null),oe=w.useRef(((O=A.current)==null?void 0:O.getBoundingClientRect().height)||0),fe=w.useRef(((F=A.current)==null?void 0:F.getBoundingClientRect().width)||0),pe=w.useRef(0),me=w.useCallback(X=>{a&&X===Ee.length-1&&(z.current=new Date)},[]),{activeSnapPoint:de,activeSnapPointIndex:xe,setActiveSnapPoint:je,onRelease:ye,snapPointsOffset:Ee,onDrag:qe,shouldFade:We,getPercentageDragged:Ye}=k5({snapPoints:a,activeSnapPointProp:h,setActiveSnapPointProp:v,drawerRef:A,fadeFromIndex:m,overlayRef:D,onSnapPointChange:me,direction:C,container:T,snapToSequentialPoint:_});_5({isDisabled:!H||q||!b||J||!K||!M||!R});const{restorePositionSetting:Je}=L5({isOpen:H,modal:b,nested:x??!1,hasBeenOpened:K,preventScrollRestoration:P,noBodyStyles:S});function it(){return(window.innerWidth-xd)/window.innerWidth}function st(X){var le,ae;!f&&!a||A.current&&!A.current.contains(X.target)||(oe.current=((le=A.current)==null?void 0:le.getBoundingClientRect().height)||0,fe.current=((ae=A.current)==null?void 0:ae.getBoundingClientRect().width)||0,ee(!0),L.current=new Date,r_()&&window.addEventListener("touchend",()=>W.current=!1,{once:!0}),X.target.setPointerCapture(X.pointerId),te.current=Ve(C)?X.pageY:X.pageX)}function He(X,le){var ae;let se=X;const be=(ae=window.getSelection())==null?void 0:ae.toString(),Z=A.current?Sa(A.current,C):null,ve=new Date;if(se.tagName==="SELECT"||se.hasAttribute("data-vaul-no-drag")||se.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;if(z.current&&ve.getTime()-z.current.getTime()<500)return!1;if(Z!==null&&(C==="bottom"?Z>0:Z<0))return!0;if(be&&be.length>0)return!1;if(I.current&&ve.getTime()-I.current.getTime()<u&&Z===0||le)return I.current=ve,!1;for(;se;){if(se.scrollHeight>se.clientHeight){if(se.scrollTop!==0)return I.current=new Date,!1;if(se.getAttribute("role")==="dialog")return!0}se=se.parentNode}return!0}function vt(X){if(A.current&&q){const le=C==="bottom"||C==="right"?1:-1,ae=(te.current-(Ve(C)?X.pageY:X.pageX))*le,se=ae>0,be=a&&!f&&!se;if(be&&xe===0)return;const Z=Math.abs(ae),ve=document.querySelector("[data-vaul-drawer-wrapper]"),we=C==="bottom"||C==="top"?oe.current:fe.current;let Re=Z/we;const et=Ye(Z,se);if(et!==null&&(Re=et),be&&Re>=1||!W.current&&!He(X.target,se))return;if(A.current.classList.add(ju),W.current=!0,Ze(A.current,{transition:"none"}),Ze(D.current,{transition:"none"}),a&&qe({draggedDistance:ae}),se&&!a){const $e=T5(ae),rn=Math.min($e*-1,0)*le;Ze(A.current,{transform:Ve(C)?`translate3d(0, ${rn}px, 0)`:`translate3d(${rn}px, 0, 0)`});return}const Se=1-Re;if((We||m&&xe===m-1)&&(r?.(X,Re),Ze(D.current,{opacity:`${Se}`,transition:"none"},!0)),ve&&D.current&&i){const $e=Math.min(it()+Re*(1-it()),1),rn=8-Re*8,lt=Math.max(0,14-Re*14);Ze(ve,{borderRadius:`${rn}px`,transform:Ve(C)?`scale(${$e}) translate3d(0, ${lt}px, 0)`:`scale(${$e}) translate3d(${lt}px, 0, 0)`,transition:"none"},!0)}if(!a){const $e=Z*le;Ze(A.current,{transform:Ve(C)?`translate3d(0, ${$e}px, 0)`:`translate3d(${$e}px, 0, 0)`})}}}w.useEffect(()=>{window.requestAnimationFrame(()=>{Y.current=!0})},[]),w.useEffect(()=>{var X;function le(){if(!A.current||!M)return;const ae=document.activeElement;if(yd(ae)||re.current){var se;const be=((se=window.visualViewport)==null?void 0:se.height)||0,Z=window.innerHeight;let ve=Z-be;const we=A.current.getBoundingClientRect().height||0,Re=we>Z*.8;pe.current||(pe.current=we);const et=A.current.getBoundingClientRect().top;if(Math.abs(ie.current-ve)>60&&(re.current=!re.current),a&&a.length>0&&Ee&&xe){const Se=Ee[xe]||0;ve+=Se}if(ie.current=ve,we>be||re.current){const Se=A.current.getBoundingClientRect().height;let $e=Se;Se>be&&($e=be-(Re?et:xd)),g?A.current.style.height=`${Se-Math.max(ve,0)}px`:A.current.style.height=`${Math.max($e,be-et)}px`}else v5()||(A.current.style.height=`${pe.current}px`);a&&a.length>0&&!re.current?A.current.style.bottom="0px":A.current.style.bottom=`${Math.max(ve,0)}px`}}return(X=window.visualViewport)==null||X.addEventListener("resize",le),()=>{var ae;return(ae=window.visualViewport)==null?void 0:ae.removeEventListener("resize",le)}},[xe,a,Ee]);function Ge(X){_t(),y?.(),X||$(!1),setTimeout(()=>{a&&je(a[0])},Le.DURATION*1e3)}function Xe(){if(!A.current)return;const X=document.querySelector("[data-vaul-drawer-wrapper]"),le=Sa(A.current,C);Ze(A.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`}),Ze(D.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,opacity:"1"}),i&&le&&le>0&&H&&Ze(X,{borderRadius:`${l_}px`,overflow:"hidden",...Ve(C)?{transform:`scale(${it()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${it()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Le.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Le.EASE.join(",")})`},!0)}function _t(){!q||!A.current||(A.current.classList.remove(ju),W.current=!1,ee(!1),U.current=new Date)}function Bt(X){if(!q||!A.current)return;A.current.classList.remove(ju),W.current=!1,ee(!1),U.current=new Date;const le=Sa(A.current,C);if(!X||!He(X.target,!1)||!le||Number.isNaN(le)||L.current===null)return;const ae=U.current.getTime()-L.current.getTime(),se=te.current-(Ve(C)?X.pageY:X.pageX),be=Math.abs(se)/ae;if(be>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),a){ye({draggedDistance:se*(C==="bottom"||C==="right"?1:-1),closeDrawer:Ge,velocity:be,dismissible:f}),o?.(X,!0);return}if(C==="bottom"||C==="right"?se>0:se<0){Xe(),o?.(X,!0);return}if(be>s_){Ge(),o?.(X,!1);return}var Z;const ve=Math.min((Z=A.current.getBoundingClientRect().height)!=null?Z:0,window.innerHeight);var we;const Re=Math.min((we=A.current.getBoundingClientRect().width)!=null?we:0,window.innerWidth),et=C==="left"||C==="right";if(Math.abs(le)>=(et?Re:ve)*l){Ge(),o?.(X,!1);return}o?.(X,!0),Xe()}w.useEffect(()=>(H&&(Ze(document.documentElement,{scrollBehavior:"auto"}),z.current=new Date),()=>{M5(document.documentElement,"scrollBehavior")}),[H]);function hn(X){const le=X?(window.innerWidth-$n)/window.innerWidth:1,ae=X?-$n:0;Q.current&&window.clearTimeout(Q.current),Ze(A.current,{transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,transform:Ve(C)?`scale(${le}) translate3d(0, ${ae}px, 0)`:`scale(${le}) translate3d(${ae}px, 0, 0)`}),!X&&A.current&&(Q.current=setTimeout(()=>{const se=Sa(A.current,C);Ze(A.current,{transition:"none",transform:Ve(C)?`translate3d(0, ${se}px, 0)`:`translate3d(${se}px, 0, 0)`})},500))}function gn(X,le){if(le<0)return;const ae=(window.innerWidth-$n)/window.innerWidth,se=ae+le*(1-ae),be=-$n+le*$n;Ze(A.current,{transform:Ve(C)?`scale(${se}) translate3d(0, ${be}px, 0)`:`scale(${se}) translate3d(${be}px, 0, 0)`,transition:"none"})}function nn(X,le){const ae=Ve(C)?window.innerHeight:window.innerWidth,se=le?(ae-$n)/ae:1,be=le?-$n:0;le&&Ze(A.current,{transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,transform:Ve(C)?`scale(${se}) translate3d(0, ${be}px, 0)`:`scale(${se}) translate3d(${be}px, 0, 0)`})}return w.useEffect(()=>{b||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[b]),w.createElement(Io,{defaultOpen:E,onOpenChange:X=>{!f&&!X||(X?V(!0):Ge(!0),$(X))},open:H},w.createElement(n_.Provider,{value:{activeSnapPoint:de,snapPoints:a,setActiveSnapPoint:je,drawerRef:A,overlayRef:D,onOpenChange:t,onPress:st,onRelease:Bt,onDrag:vt,dismissible:f,shouldAnimate:Y,handleOnly:c,isOpen:H,isDragging:q,shouldFade:We,closeDrawer:Ge,onNestedDrag:gn,onNestedOpenChange:hn,onNestedRelease:nn,keyboardIsOpen:re,modal:b,snapPointsOffset:Ee,activeSnapPointIndex:xe,direction:C,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:S,container:T,autoFocus:j}},n))}const d_=w.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:l}=ta(),u=a_(t,n),f=r&&r.length>0;if(!s)return null;const c=w.useCallback(m=>o(m),[o]);return w.createElement(Qn,{onMouseUp:c,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":i&&f?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":l?.current?"true":"false",...e})});d_.displayName="Drawer.Overlay";const f_=w.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:l,keyboardIsOpen:u,snapPointsOffset:f,activeSnapPointIndex:c,modal:m,isOpen:h,direction:v,snapPoints:g,container:b,handleOnly:y,shouldAnimate:x,autoFocus:S}=ta(),[C,E]=w.useState(!1),R=a_(o,a),_=w.useRef(null),P=w.useRef(null),M=w.useRef(!1),k=g&&g.length>0;$5();const T=(O,F,H=0)=>{if(M.current)return!0;const $=Math.abs(O.y),K=Math.abs(O.x),V=K>$,q=["bottom","right"].includes(F)?1:-1;if(F==="left"||F==="right"){if(!(O.x*q<0)&&K>=0&&K<=H)return V}else if(!(O.y*q<0)&&$>=0&&$<=H)return!V;return M.current=!0,!0};w.useEffect(()=>{k&&window.requestAnimationFrame(()=>{E(!0)})},[]);function j(O){_.current=null,M.current=!1,s(O)}return w.createElement(Jn,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":C?"true":"false","data-vaul-snap-points":h&&k?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":x?.current?"true":"false",...r,ref:R,style:f&&f.length>0?{"--snap-point-height":`${f[c??0]}px`,...t}:t,onPointerDown:O=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,O),_.current={x:O.pageX,y:O.pageY},i(O))},onOpenAutoFocus:O=>{n?.(O),S||O.preventDefault()},onPointerDownOutside:O=>{if(e?.(O),!m||O.defaultPrevented){O.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:O=>{if(!m){O.preventDefault();return}},onPointerMove:O=>{if(P.current=O,y||(r.onPointerMove==null||r.onPointerMove.call(r,O),!_.current))return;const F=O.pageY-_.current.y,H=O.pageX-_.current.x,$=O.pointerType==="touch"?10:2;T({x:H,y:F},v,$)?l(O):(Math.abs(H)>$||Math.abs(F)>$)&&(_.current=null)},onPointerUp:O=>{r.onPointerUp==null||r.onPointerUp.call(r,O),_.current=null,M.current=!1,s(O)},onPointerOut:O=>{r.onPointerOut==null||r.onPointerOut.call(r,O),j(P.current)},onContextMenu:O=>{r.onContextMenu==null||r.onContextMenu.call(r,O),P.current&&j(P.current)}})});f_.displayName="Drawer.Content";const B5=250,z5=120,q5=w.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:u,handleOnly:f,isOpen:c,onPress:m,onDrag:h}=ta(),v=w.useRef(null),g=w.useRef(!1);function b(){if(g.current){S();return}window.setTimeout(()=>{y()},z5)}function y(){if(a||e||g.current){S();return}if(S(),!i||i.length===0){u||o();return}if(s===i[i.length-1]&&u){o();return}const E=i.findIndex(_=>_===s);if(E===-1)return;const R=i[E+1];l(R)}function x(){v.current=window.setTimeout(()=>{g.current=!0},B5)}function S(){v.current&&window.clearTimeout(v.current),g.current=!1}return w.createElement("div",{onClick:b,onPointerCancel:S,onPointerDown:C=>{f&&m(C),x()},onPointerMove:C=>{f&&h(C)},ref:r,"data-vaul-drawer-visible":c?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},w.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});q5.displayName="Drawer.Handle";function W5(e){const t=ta(),{container:n=t.container,...r}=e;return w.createElement(ko,{container:n,...r})}const Ft={Root:F5,Content:f_,Overlay:d_,Trigger:bi,Portal:W5,Close:er,Title:kr,Description:jr},p_=({shouldScaleBackground:e=!0,...t})=>p.jsx(Ft.Root,{shouldScaleBackground:e,...t});p_.displayName="Drawer";const H5=Ft.Trigger,m_=Ft.Portal,G5=Ft.Close,vp=d.forwardRef(({className:e,...t},n)=>p.jsx(Ft.Overlay,{ref:n,className:N("fixed inset-0 z-50 bg-black/80",e),...t}));vp.displayName=Ft.Overlay.displayName;const h_=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(m_,{children:[p.jsx(vp,{}),p.jsxs(Ft.Content,{ref:r,className:N("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[p.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));h_.displayName="DrawerContent";const g_=({className:e,...t})=>p.jsx("div",{className:N("grid gap-1.5 p-4 text-center sm:text-left",e),...t});g_.displayName="DrawerHeader";const v_=({className:e,...t})=>p.jsx("div",{className:N("mt-auto flex flex-col gap-2 p-4",e),...t});v_.displayName="DrawerFooter";const b_=d.forwardRef(({className:e,...t},n)=>p.jsx(Ft.Title,{ref:n,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));b_.displayName=Ft.Title.displayName;const y_=d.forwardRef(({className:e,...t},n)=>p.jsx(Ft.Description,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));y_.displayName=Ft.Description.displayName;var Fi="DropdownMenu",[V5]=ke(Fi,[Qo]),rt=Qo(),[U5,x_]=V5(Fi),w_=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=rt(t),u=d.useRef(null),[f,c]=Ae({prop:o,defaultProp:a??!1,onChange:i,caller:Fi});return p.jsx(U5,{scope:t,triggerId:Te(),triggerRef:u,contentId:Te(),open:f,onOpenChange:c,onOpenToggle:d.useCallback(()=>c(m=>!m),[c]),modal:s,children:p.jsx(Jf,{...l,open:f,onOpenChange:c,dir:r,modal:s,children:n})})};w_.displayName=Fi;var S_="DropdownMenuTrigger",C_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=x_(S_,n),i=rt(n);return p.jsx(ep,{asChild:!0,...i,children:p.jsx(ne.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ot(t,a.triggerRef),onPointerDown:G(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:G(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});C_.displayName=S_;var K5="DropdownMenuPortal",__=e=>{const{__scopeDropdownMenu:t,...n}=e,r=rt(t);return p.jsx(tp,{...r,...n})};__.displayName=K5;var E_="DropdownMenuContent",R_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=x_(E_,n),a=rt(n),i=d.useRef(!1);return p.jsx(np,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:G(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R_.displayName=E_;var Y5="DropdownMenuGroup",N_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(rp,{...o,...r,ref:t})});N_.displayName=Y5;var X5="DropdownMenuLabel",P_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(op,{...o,...r,ref:t})});P_.displayName=X5;var Z5="DropdownMenuItem",M_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(ap,{...o,...r,ref:t})});M_.displayName=Z5;var Q5="DropdownMenuCheckboxItem",T_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(ip,{...o,...r,ref:t})});T_.displayName=Q5;var J5="DropdownMenuRadioGroup",O_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(sp,{...o,...r,ref:t})});O_.displayName=J5;var eH="DropdownMenuRadioItem",A_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(lp,{...o,...r,ref:t})});A_.displayName=eH;var tH="DropdownMenuItemIndicator",D_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(cp,{...o,...r,ref:t})});D_.displayName=tH;var nH="DropdownMenuSeparator",I_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(up,{...o,...r,ref:t})});I_.displayName=nH;var rH="DropdownMenuArrow",oH=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(dp,{...o,...r,ref:t})});oH.displayName=rH;var aH=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=rt(t),[s,l]=Ae({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(fp,{...i,open:s,onOpenChange:l,children:n})},iH="DropdownMenuSubTrigger",k_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(pp,{...o,...r,ref:t})});k_.displayName=iH;var sH="DropdownMenuSubContent",j_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(mp,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});j_.displayName=sH;var lH=w_,cH=C_,$_=__,L_=R_,uH=N_,F_=P_,B_=M_,z_=T_,dH=O_,q_=A_,W_=D_,H_=I_,fH=aH,G_=k_,V_=j_;const pH=lH,mH=cH,hH=uH,gH=$_,vH=fH,bH=dH,U_=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(G_,{ref:o,className:N("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary data-[state=open]:bg-primary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,p.jsx(Ar,{className:"ml-auto"})]}));U_.displayName=G_.displayName;const K_=d.forwardRef(({className:e,...t},n)=>p.jsx(V_,{ref:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));K_.displayName=V_.displayName;const Y_=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx($_,{children:p.jsx(L_,{ref:r,sideOffset:t,className:N("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));Y_.displayName=L_.displayName;const X_=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(B_,{ref:r,className:N("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));X_.displayName=B_.displayName;const Z_=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(z_,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(W_,{children:p.jsx(To,{className:"h-4 w-4"})})}),t]}));Z_.displayName=z_.displayName;const Q_=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(q_,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(W_,{children:p.jsx(pi,{className:"h-2 w-2 fill-current"})})}),t]}));Q_.displayName=q_.displayName;const J_=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(F_,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));J_.displayName=F_.displayName;const eE=d.forwardRef(({className:e,...t},n)=>p.jsx(H_,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));eE.displayName=H_.displayName;const tE=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...t});tE.displayName="DropdownMenuShortcut";function yH({className:e,...t}){return p.jsx("div",{"data-slot":"empty",className:N("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),...t})}function xH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-header",className:N("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const wH=Ke("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function SH({className:e,variant:t="default",...n}){return p.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:N(wH({variant:t,className:e})),...n})}function CH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-title",className:N("text-lg font-medium tracking-tight",e),...t})}function _H({className:e,...t}){return p.jsx("div",{"data-slot":"empty-description",className:N("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function EH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-content",className:N("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e),...t})}var RH="Label",nE=d.forwardRef((e,t)=>p.jsx(tt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));nE.displayName=RH;var rE=nE;const NH=Ke("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bi=d.forwardRef(({className:e,...t},n)=>p.jsx(rE,{ref:n,className:N(NH(),e),...t}));Bi.displayName=rE.displayName;function PH({className:e,...t}){return p.jsx("fieldset",{"data-slot":"field-set",className:N("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function MH({className:e,variant:t="legend",...n}){return p.jsx("legend",{"data-slot":"field-legend","data-variant":t,className:N("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...n})}function TH({className:e,...t}){return p.jsx("div",{"data-slot":"field-group",className:N("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}const OH=Ke("group/field data-[invalid=true]:text-error flex w-full gap-3",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function AH({className:e,orientation:t="vertical",...n}){return p.jsx("div",{role:"group","data-slot":"field","data-orientation":t,className:N(OH({orientation:t}),e),...n})}function DH({className:e,...t}){return p.jsx("div",{"data-slot":"field-content",className:N("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function IH({className:e,...t}){return p.jsx(Bi,{"data-slot":"field-label",className:N("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function kH({className:e,...t}){return p.jsx("div",{"data-slot":"field-label",className:N("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50",e),...t})}function jH({className:e,...t}){return p.jsx("p",{"data-slot":"field-description",className:N("text-foreground/50 text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function $H({children:e,className:t,...n}){return p.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:N("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...n,children:[p.jsx($r,{className:"absolute inset-0 top-1/2"}),e&&p.jsx("span",{className:"bg-background text-foreground/50 relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:e})]})}function LH({className:e,children:t,errors:n,...r}){const o=w.useMemo(()=>t||(n?n?.length===1&&n[0]?.message?n[0].message:p.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:n.map((a,i)=>a?.message&&p.jsx("li",{children:a.message},i))}):null),[t,n]);return o?p.jsx("div",{role:"alert","data-slot":"field-error",className:N("text-error text-sm font-normal",e),...r,children:o}):null}var FH=e=>e.type==="checkbox",io=e=>e instanceof Date,bp=e=>e==null;const oE=e=>typeof e=="object";var Kn=e=>!bp(e)&&!Array.isArray(e)&&oE(e)&&!io(e),BH=e=>Kn(e)&&e.target?FH(e.target)?e.target.checked:e.target.value:e,zH=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,qH=(e,t)=>e.has(zH(t)),WH=e=>{const t=e.constructor&&e.constructor.prototype;return Kn(t)&&t.hasOwnProperty("isPrototypeOf")},HH=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function aE(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(HH&&(e instanceof Blob||r))&&(n||Kn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!WH(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=aE(e[o]));else return e;return t}var iE=e=>/^\w*$/.test(e),wd=e=>e===void 0,GH=e=>Array.isArray(e)?e.filter(Boolean):[],sE=e=>GH(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ct=(e,t,n)=>{if(!t||!Kn(e))return n;const r=(iE(t)?[t]:sE(t)).reduce((o,a)=>bp(o)?o:o[a],e);return wd(r)||r===e?wd(e[t])?n:e[t]:r},$u=e=>typeof e=="boolean",Ib=(e,t,n)=>{let r=-1;const o=iE(t)?[t]:sE(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let l=n;if(r!==i){const u=e[s];l=Kn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const kb={BLUR:"blur",CHANGE:"change"},jb={all:"all"},yp=w.createContext(null);yp.displayName="HookFormContext";const zi=()=>w.useContext(yp),VH=e=>{const{children:t,...n}=e;return w.createElement(yp.Provider,{value:n},t)};var UH=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==jb.all&&(t._proxyFormState[i]=!r||jb.all),n&&(n[i]=!0),e[i]}});return o};const lE=typeof window<"u"?w.useLayoutEffect:w.useEffect;function KH(e){const t=zi(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=w.useState(n._formState),l=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return lE(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,a]),w.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),w.useMemo(()=>UH(i,n,l.current,!1),[i,n])}var YH=e=>typeof e=="string",$b=(e,t,n,r,o)=>YH(e)?ct(n,e,o):Array.isArray(e)?e.map(a=>ct(n,a)):n,Lb=e=>bp(e)||!oE(e);function Ma(e,t,n=new WeakSet){if(Lb(e)||Lb(t))return Object.is(e,t);if(io(e)&&io(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(io(i)&&io(s)||Kn(i)&&Kn(s)||Array.isArray(i)&&Array.isArray(s)?!Ma(i,s,n):!Object.is(i,s))return!1}}return!0}function XH(e){const t=zi(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},l=w.useRef(o),u=w.useRef(s),f=w.useRef(void 0),c=w.useRef(n),m=w.useRef(r);u.current=s;const[h,v]=w.useState(()=>{const C=n._getWatch(r,l.current);return u.current?u.current(C):C}),g=w.useCallback(C=>{const E=$b(r,n._names,C||n._formValues,!1,l.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),b=w.useCallback(C=>{if(!a){const E=$b(r,n._names,C||n._formValues,!1,l.current);if(u.current){const R=u.current(E);Ma(R,f.current)||(v(R),f.current=R)}else v(E)}},[n._formValues,n._names,a,r]);lE(()=>((c.current!==n||!Ma(m.current,r))&&(c.current=n,m.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:C=>{b(C.values)}})),[n,i,r,b]),w.useEffect(()=>n._removeUnmounted());const y=c.current!==n,x=m.current,S=w.useMemo(()=>{if(a)return null;const C=!y&&!Ma(x,r);return y||C?g():null},[a,y,r,x,g]);return S!==null?S:h}function ZH(e){const t=zi(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:i}=e,s=qH(o._names.array,n),l=w.useMemo(()=>ct(o._formValues,n,ct(o._defaultValues,n,i)),[o,n,i]),u=XH({control:o,name:n,defaultValue:l,exact:!0}),f=KH({control:o,name:n,exact:!0}),c=w.useRef(e),m=w.useRef(void 0),h=w.useRef(o.register(n,{...e.rules,value:u,...$u(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const v=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ct(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!ct(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ct(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ct(f.validatingFields,n)},error:{enumerable:!0,get:()=>ct(f.errors,n)}}),[f,n]),g=w.useCallback(S=>h.current.onChange({target:{value:BH(S),name:n},type:kb.CHANGE}),[n]),b=w.useCallback(()=>h.current.onBlur({target:{value:ct(o._formValues,n),name:n},type:kb.BLUR}),[n,o._formValues]),y=w.useCallback(S=>{const C=ct(o._fields,n);C&&S&&(C._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:E=>S.setCustomValidity(E),reportValidity:()=>S.reportValidity()})},[o._fields,n]),x=w.useMemo(()=>({name:n,value:u,...$u(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g,onBlur:b,ref:y}),[n,r,f.disabled,g,b,y,u]);return w.useEffect(()=>{const S=o._options.shouldUnregister||a,C=m.current;C&&C!==n&&!s&&o.unregister(C),o.register(n,{...c.current.rules,...$u(c.current.disabled)?{disabled:c.current.disabled}:{}});const E=(R,_)=>{const P=ct(o._fields,R);P&&P._f&&(P._f.mount=_)};if(E(n,!0),S){const R=aE(ct(o._options.defaultValues,n,c.current.defaultValue));Ib(o._defaultValues,n,R),wd(ct(o._formValues,n))&&Ib(o._formValues,n,R)}return!s&&o.register(n),m.current=n,()=>{(s?S&&!o._state.action:S)?o.unregister(n):E(n,!1)}},[n,o,s,a]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),w.useMemo(()=>({field:x,formState:f,fieldState:v}),[x,f,v])}const QH=e=>e.render(ZH(e)),JH=VH,cE=d.createContext(null),eG=({...e})=>p.jsx(cE.Provider,{value:{name:e.name},children:p.jsx(QH,{...e})}),na=()=>{const e=d.useContext(cE),t=d.useContext(uE),{getFieldState:n,formState:r}=zi();if(!e)throw new Error("useFormField should be used within <FormField>");if(!t)throw new Error("useFormField should be used within <FormItem>");const o=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},uE=d.createContext(null),dE=d.forwardRef(({className:e,...t},n)=>{const r=d.useId();return p.jsx(uE.Provider,{value:{id:r},children:p.jsx("div",{ref:n,className:N("space-y-2",e),...t})})});dE.displayName="FormItem";const fE=d.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=na();return p.jsx(Bi,{ref:n,className:N(r&&"text-destructive",e),htmlFor:o,...t})});fE.displayName="FormLabel";const pE=d.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=na();return p.jsx(Kt,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});pE.displayName="FormControl";const mE=d.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=na();return p.jsx("p",{ref:n,id:r,className:N("text-[0.8rem] text-muted-foreground",e),...t})});mE.displayName="FormDescription";const hE=d.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=na(),i=o?String(o?.message??""):t;return i?p.jsx("p",{ref:r,id:a,className:N("text-[0.8rem] font-medium text-destructive",e),...n,children:i}):null});hE.displayName="FormMessage";const qi=d.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:N("flex h-10 w-full rounded-md border border-border bg-transparent p-4 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));qi.displayName="Input";const xp=d.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:N("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));xp.displayName="Textarea";function tG({className:e,...t}){return p.jsx("div",{"data-slot":"input-group",role:"group",className:N("group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}const nG=Ke("text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]","block-start":"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5","block-end":"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function rG({className:e,align:t="inline-start",...n}){return p.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:N(nG({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}const oG=Ke("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function aG({className:e,type:t="button",variant:n="ghost",size:r="xs",...o}){return p.jsx(Mn,{type:t,"data-size":r,variant:n,className:N(oG({size:r}),e),...o})}function iG({className:e,...t}){return p.jsx("span",{className:N("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...t})}function sG({className:e,...t}){return p.jsx(qi,{"data-slot":"input-group-control",className:N("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function lG({className:e,...t}){return p.jsx(xp,{"data-slot":"input-group-control",className:N("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function cG({className:e,...t}){return p.jsx("div",{role:"list","data-slot":"item-group",className:N("group/item-group flex flex-col",e),...t})}function uG({className:e,...t}){return p.jsx($r,{"data-slot":"item-separator",orientation:"horizontal",className:N("my-0",e),...t})}const dG=Ke("group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"gap-4 p-4 ",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function fG({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Kt:"div";return p.jsx(a,{"data-slot":"item","data-variant":t,"data-size":n,className:N(dG({variant:t,size:n,className:e})),...o})}const pG=Ke("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function mG({className:e,variant:t="default",...n}){return p.jsx("div",{"data-slot":"item-media","data-variant":t,className:N(pG({variant:t,className:e})),...n})}function hG({className:e,...t}){return p.jsx("div",{"data-slot":"item-content",className:N("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function gG({className:e,...t}){return p.jsx("div",{"data-slot":"item-title",className:N("flex w-fit items-center gap-2 text-sm font-medium leading-snug",e),...t})}function vG({className:e,...t}){return p.jsx("p",{"data-slot":"item-description",className:N("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function bG({className:e,...t}){return p.jsx("div",{"data-slot":"item-actions",className:N("flex items-center gap-2",e),...t})}function yG({className:e,...t}){return p.jsx("div",{"data-slot":"item-header",className:N("flex basis-full items-center justify-between gap-2",e),...t})}function xG({className:e,...t}){return p.jsx("div",{"data-slot":"item-footer",className:N("flex basis-full items-center justify-between gap-2",e),...t})}function wG({className:e,...t}){return p.jsx("kbd",{"data-slot":"kbd",className:N("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}function SG({className:e,...t}){return p.jsx("kbd",{"data-slot":"kbd-group",className:N("inline-flex items-center gap-1",e),...t})}var ra="Menubar",[Sd,CG,_G]=Nn(ra),[gE]=ke(ra,[_G,en]),ot=Qo(),vE=en(),[EG,wp]=gE(ra),bE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:i=!0,dir:s,...l}=e,u=It(s),f=vE(n),[c,m]=Ae({prop:r,onChange:o,defaultProp:a??"",caller:ra}),[h,v]=d.useState(null);return p.jsx(EG,{scope:n,value:c,onMenuOpen:d.useCallback(g=>{m(g),v(g)},[m]),onMenuClose:d.useCallback(()=>m(""),[m]),onMenuToggle:d.useCallback(g=>{m(b=>b?"":g),v(g)},[m]),dir:u,loop:i,children:p.jsx(Sd.Provider,{scope:n,children:p.jsx(Sd.Slot,{scope:n,children:p.jsx(Yo,{asChild:!0,...f,orientation:"horizontal",loop:i,dir:u,currentTabStopId:h,onCurrentTabStopIdChange:v,children:p.jsx(ne.div,{role:"menubar",...l,ref:t})})})})})});bE.displayName=ra;var Sp="MenubarMenu",[RG,yE]=gE(Sp),xE=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Te(),a=n||o||"LEGACY_REACT_AUTO_VALUE",i=wp(Sp,t),s=ot(t),l=d.useRef(null),u=d.useRef(!1),f=i.value===a;return d.useEffect(()=>{f||(u.current=!1)},[f]),p.jsx(RG,{scope:t,value:a,triggerId:Te(),triggerRef:l,contentId:Te(),wasKeyboardTriggerOpenRef:u,children:p.jsx(Jf,{...s,open:f,onOpenChange:c=>{c||i.onMenuClose()},modal:!1,dir:i.dir,...r})})};xE.displayName=Sp;var Cd="MenubarTrigger",wE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=vE(n),i=ot(n),s=wp(Cd,n),l=yE(Cd,n),u=d.useRef(null),f=ce(t,u,l.triggerRef),[c,m]=d.useState(!1),h=s.value===l.value;return p.jsx(Sd.ItemSlot,{scope:n,value:l.value,disabled:r,children:p.jsx(Xo,{asChild:!0,...a,focusable:!r,tabStopId:l.value,children:p.jsx(ep,{asChild:!0,...i,children:p.jsx(ne.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?l.contentId:void 0,"data-highlighted":c?"":void 0,"data-state":h?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:f,onPointerDown:G(e.onPointerDown,v=>{!r&&v.button===0&&v.ctrlKey===!1&&(s.onMenuOpen(l.value),h||v.preventDefault())}),onPointerEnter:G(e.onPointerEnter,()=>{!!s.value&&!h&&(s.onMenuOpen(l.value),u.current?.focus())}),onKeyDown:G(e.onKeyDown,v=>{r||(["Enter"," "].includes(v.key)&&s.onMenuToggle(l.value),v.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(v.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,v.preventDefault()))}),onFocus:G(e.onFocus,()=>m(!0)),onBlur:G(e.onBlur,()=>m(!1))})})})})});wE.displayName=Cd;var NG="MenubarPortal",SE=e=>{const{__scopeMenubar:t,...n}=e,r=ot(t);return p.jsx(tp,{...r,...n})};SE.displayName=NG;var _d="MenubarContent",CE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=ot(n),i=wp(_d,n),s=yE(_d,n),l=CG(n),u=d.useRef(!1);return p.jsx(np,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:r,onCloseAutoFocus:G(e.onCloseAutoFocus,f=>{!!!i.value&&!u.current&&s.triggerRef.current?.focus(),u.current=!1,f.preventDefault()}),onFocusOutside:G(e.onFocusOutside,f=>{const c=f.target;l().some(h=>h.ref.current?.contains(c))&&f.preventDefault()}),onInteractOutside:G(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:f=>{s.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:G(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const c=f.target,m=c.hasAttribute("data-radix-menubar-subtrigger"),h=c.closest("[data-radix-menubar-content]")!==f.currentTarget,g=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!g&&m||h&&g)return;let x=l().filter(E=>!E.disabled).map(E=>E.value);g&&x.reverse();const S=x.indexOf(s.value);x=i.loop?BG(x,S+1):x.slice(S+1);const[C]=x;C&&i.onMenuOpen(C)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});CE.displayName=_d;var PG="MenubarGroup",_E=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(rp,{...o,...r,ref:t})});_E.displayName=PG;var MG="MenubarLabel",EE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(op,{...o,...r,ref:t})});EE.displayName=MG;var TG="MenubarItem",RE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(ap,{...o,...r,ref:t})});RE.displayName=TG;var OG="MenubarCheckboxItem",NE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(ip,{...o,...r,ref:t})});NE.displayName=OG;var AG="MenubarRadioGroup",PE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(sp,{...o,...r,ref:t})});PE.displayName=AG;var DG="MenubarRadioItem",ME=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(lp,{...o,...r,ref:t})});ME.displayName=DG;var IG="MenubarItemIndicator",TE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(cp,{...o,...r,ref:t})});TE.displayName=IG;var kG="MenubarSeparator",OE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(up,{...o,...r,ref:t})});OE.displayName=kG;var jG="MenubarArrow",$G=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(dp,{...o,...r,ref:t})});$G.displayName=jG;var AE="MenubarSub",DE=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=ot(t),[s,l]=Ae({prop:r,defaultProp:a??!1,onChange:o,caller:AE});return p.jsx(fp,{...i,open:s,onOpenChange:l,children:n})};DE.displayName=AE;var LG="MenubarSubTrigger",IE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(pp,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});IE.displayName=LG;var FG="MenubarSubContent",kE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(mp,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});kE.displayName=FG;function BG(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jE=bE,zG=xE,$E=wE,LE=SE,FE=CE,qG=_E,BE=EE,zE=RE,qE=NE,WG=PE,WE=ME,HE=TE,GE=OE,HG=DE,VE=IE,UE=kE;function GG({...e}){return p.jsx(zG,{...e})}function VG({...e}){return p.jsx(qG,{...e})}function UG({...e}){return p.jsx(LE,{...e})}function KG({...e}){return p.jsx(WG,{...e})}function YG({...e}){return p.jsx(HG,{"data-slot":"menubar-sub",...e})}const KE=d.forwardRef(({className:e,...t},n)=>p.jsx(jE,{ref:n,className:N("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));KE.displayName=jE.displayName;const YE=d.forwardRef(({className:e,...t},n)=>p.jsx($E,{ref:n,className:N("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));YE.displayName=$E.displayName;const XE=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(VE,{ref:o,className:N("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,p.jsx(Ar,{className:"ml-auto h-4 w-4"})]}));XE.displayName=VE.displayName;const ZE=d.forwardRef(({className:e,...t},n)=>p.jsx(UE,{ref:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",e),...t}));ZE.displayName=UE.displayName;const QE=d.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},a)=>p.jsx(LE,{children:p.jsx(FE,{ref:a,align:t,alignOffset:n,sideOffset:r,className:N("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",e),...o})}));QE.displayName=FE.displayName;const JE=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(zE,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));JE.displayName=zE.displayName;const eR=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(qE,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(HE,{children:p.jsx(To,{className:"h-4 w-4"})})}),t]}));eR.displayName=qE.displayName;const tR=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(WE,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(HE,{children:p.jsx(pi,{className:"h-4 w-4 fill-current"})})}),t]}));tR.displayName=WE.displayName;const nR=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(BE,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));nR.displayName=BE.displayName;const rR=d.forwardRef(({className:e,...t},n)=>p.jsx(GE,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));rR.displayName=GE.displayName;const oR=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});oR.displayname="MenubarShortcut";var aR=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),XG="VisuallyHidden",iR=d.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...aR,...e.style}}));iR.displayName=XG;var sR=iR,ar="NavigationMenu",[Cp,lR,ZG]=Nn(ar),[Ed,QG,JG]=Nn(ar),[_p]=ke(ar,[ZG,JG]),[eV,St]=_p(ar),[tV,nV]=_p(ar),cR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[c,m]=d.useState(null),h=ce(t,M=>m(M)),v=It(u),g=d.useRef(0),b=d.useRef(0),y=d.useRef(0),[x,S]=d.useState(!0),[C,E]=Ae({prop:r,onChange:M=>{const k=M!=="",T=s>0;k?(window.clearTimeout(y.current),T&&S(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>S(!0),s)),o?.(M)},defaultProp:a??"",caller:ar}),R=d.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>E(""),150)},[E]),_=d.useCallback(M=>{window.clearTimeout(b.current),E(M)},[E]),P=d.useCallback(M=>{C===M?window.clearTimeout(b.current):g.current=window.setTimeout(()=>{window.clearTimeout(b.current),E(M)},i)},[C,E,i]);return d.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(y.current)},[]),p.jsx(uR,{scope:n,isRootMenu:!0,value:C,dir:v,orientation:l,rootNavigationMenu:c,onTriggerEnter:M=>{window.clearTimeout(g.current),x?P(M):_(M)},onTriggerLeave:()=>{window.clearTimeout(g.current),R()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:R,onItemSelect:M=>{E(k=>k===M?"":M)},onItemDismiss:()=>E(""),children:p.jsx(ne.nav,{"aria-label":"Main","data-orientation":l,dir:v,...f,ref:h})})});cR.displayName=ar;var Rd="NavigationMenuSub",rV=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=St(Rd,n),[u,f]=Ae({prop:r,onChange:o,defaultProp:a??"",caller:Rd});return p.jsx(uR,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:c=>f(c),onItemSelect:c=>f(c),onItemDismiss:()=>f(""),children:p.jsx(ne.div,{"data-orientation":i,...s,ref:t})})});rV.displayName=Rd;var uR=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:m,onContentLeave:h}=e,[v,g]=d.useState(null),[b,y]=d.useState(new Map),[x,S]=d.useState(null);return p.jsx(eV,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Fr(s),baseId:Te(),dir:o,orientation:a,viewport:v,onViewportChange:g,indicatorTrack:x,onIndicatorTrackChange:S,onTriggerEnter:Me(f),onTriggerLeave:Me(c),onContentEnter:Me(m),onContentLeave:Me(h),onItemSelect:Me(l),onItemDismiss:Me(u),onViewportContentChange:d.useCallback((C,E)=>{y(R=>(R.set(C,E),new Map(R)))},[]),onViewportContentRemove:d.useCallback(C=>{y(E=>E.has(C)?(E.delete(C),new Map(E)):E)},[]),children:p.jsx(Cp.Provider,{scope:t,children:p.jsx(tV,{scope:t,items:b,children:i})})})},dR="NavigationMenuList",fR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=St(dR,n),a=p.jsx(ne.ul,{"data-orientation":o.orientation,...r,ref:t});return p.jsx(ne.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:p.jsx(Cp.Slot,{scope:n,children:o.isRootMenu?p.jsx(SR,{asChild:!0,children:a}):a})})});fR.displayName=dR;var pR="NavigationMenuItem",[oV,mR]=_p(pR),hR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=Te(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(()=>{}),c=d.useRef(!1),m=d.useCallback((v="start")=>{if(s.current){f.current();const g=Pd(s.current);g.length&&Np(v==="start"?g:g.reverse())}},[]),h=d.useCallback(()=>{if(s.current){const v=Pd(s.current);v.length&&(f.current=dV(v))}},[]);return p.jsx(oV,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:p.jsx(ne.li,{...o,ref:t})})});hR.displayName=pR;var Nd="NavigationMenuTrigger",gR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=St(Nd,e.__scopeNavigationMenu),i=mR(Nd,e.__scopeNavigationMenu),s=d.useRef(null),l=ce(s,i.triggerRef,t),u=_R(a.baseId,i.value),f=ER(a.baseId,i.value),c=d.useRef(!1),m=d.useRef(!1),h=i.value===a.value;return p.jsxs(p.Fragment,{children:[p.jsx(Cp.ItemSlot,{scope:n,value:i.value,children:p.jsx(CR,{asChild:!0,children:p.jsx(ne.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Pp(h),"aria-expanded":h,"aria-controls":f,...o,ref:l,onPointerEnter:G(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:G(e.onPointerMove,Za(()=>{r||m.current||i.wasEscapeCloseRef.current||c.current||(a.onTriggerEnter(i.value),c.current=!0)})),onPointerLeave:G(e.onPointerLeave,Za(()=>{r||(a.onTriggerLeave(),c.current=!1)})),onClick:G(e.onClick,()=>{a.onItemSelect(i.value),m.current=h}),onKeyDown:G(e.onKeyDown,v=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];h&&v.key===b&&(i.onEntryKeyDown(),v.preventDefault())})})})}),h&&p.jsxs(p.Fragment,{children:[p.jsx(sR,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:v=>{const g=i.contentRef.current,b=v.relatedTarget,y=b===s.current,x=g?.contains(b);(y||!x)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&p.jsx("span",{"aria-owns":f})]})]})});gR.displayName=Nd;var aV="NavigationMenuLink",Fb="navigationMenu.linkSelect",vR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return p.jsx(CR,{asChild:!0,children:p.jsx(ne.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:G(e.onClick,i=>{const s=i.target,l=new CustomEvent(Fb,{bubbles:!0,cancelable:!0});if(s.addEventListener(Fb,u=>o?.(u),{once:!0}),Aa(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Ta,{bubbles:!0,cancelable:!0});Aa(s,u)}},{checkForDefaultPrevented:!1})})})});vR.displayName=aV;var Ep="NavigationMenuIndicator",bR=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(Ep,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?li.createPortal(p.jsx(De,{present:n||a,children:p.jsx(iV,{...r,ref:t})}),o.indicatorTrack):null});bR.displayName=Ep;var iV=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=St(Ep,n),a=lR(n),[i,s]=d.useState(null),[l,u]=d.useState(null),f=o.orientation==="horizontal",c=!!o.value;d.useEffect(()=>{const v=a().find(g=>g.value===o.value)?.ref.current;v&&s(v)},[a,o.value]);const m=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return Md(i,m),Md(o.indicatorTrack,m),l?p.jsx(ne.div,{"aria-hidden":!0,"data-state":c?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Pr="NavigationMenuContent",yR=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(Pr,e.__scopeNavigationMenu),a=mR(Pr,e.__scopeNavigationMenu),i=ce(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?p.jsx(sV,{forceMount:n,...l,ref:i}):p.jsx(De,{present:n||s,children:p.jsx(xR,{"data-state":Pp(s),...l,ref:i,onPointerEnter:G(e.onPointerEnter,o.onContentEnter),onPointerLeave:G(e.onPointerLeave,Za(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});yR.displayName=Pr;var sV=d.forwardRef((e,t)=>{const n=St(Pr,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Ie(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Ie(()=>()=>o(e.value),[e.value,o]),null}),Ta="navigationMenu.rootContentDismiss",xR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=St(Pr,n),c=d.useRef(null),m=ce(c,t),h=_R(f.baseId,r),v=ER(f.baseId,r),g=lR(n),b=d.useRef(null),{onItemDismiss:y}=f;d.useEffect(()=>{const S=c.current;if(f.isRootMenu&&S){const C=()=>{y(),s(),S.contains(document.activeElement)&&o.current?.focus()};return S.addEventListener(Ta,C),()=>S.removeEventListener(Ta,C)}},[f.isRootMenu,e.value,o,y,s]);const x=d.useMemo(()=>{const C=g().map(k=>k.value);f.dir==="rtl"&&C.reverse();const E=C.indexOf(f.value),R=C.indexOf(f.previousValue),_=r===f.value,P=R===C.indexOf(r);if(!_&&!P)return b.current;const M=(()=>{if(E!==R){if(_&&R!==-1)return E>R?"from-end":"from-start";if(P&&E!==-1)return E>R?"to-start":"to-end"}return null})();return b.current=M,M},[f.previousValue,f.value,f.dir,g,r]);return p.jsx(SR,{asChild:!0,children:p.jsx(Pn,{id:v,"aria-labelledby":h,"data-motion":x,"data-orientation":f.orientation,...u,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{const S=new Event(Ta,{bubbles:!0,cancelable:!0});c.current?.dispatchEvent(S)},onFocusOutside:G(e.onFocusOutside,S=>{l();const C=S.target;f.rootNavigationMenu?.contains(C)&&S.preventDefault()}),onPointerDownOutside:G(e.onPointerDownOutside,S=>{const C=S.target,E=g().some(_=>_.ref.current?.contains(C)),R=f.isRootMenu&&f.viewport?.contains(C);(E||R||!f.isRootMenu)&&S.preventDefault()}),onKeyDown:G(e.onKeyDown,S=>{const C=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!C){const R=Pd(S.currentTarget),_=document.activeElement,P=R.findIndex(T=>T===_),k=S.shiftKey?R.slice(0,P).reverse():R.slice(P+1,R.length);Np(k)?S.preventDefault():a.current?.focus()}}),onEscapeKeyDown:G(e.onEscapeKeyDown,S=>{i.current=!0})})})}),Rp="NavigationMenuViewport",wR=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!St(Rp,e.__scopeNavigationMenu).value;return p.jsx(De,{present:n||a,children:p.jsx(lV,{...r,ref:t})})});wR.displayName=Rp;var lV=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=St(Rp,n),i=ce(t,a.onViewportChange),s=nV(Pr,e.__scopeNavigationMenu),[l,u]=d.useState(null),[f,c]=d.useState(null),m=l?l?.width+"px":void 0,h=l?l?.height+"px":void 0,v=!!a.value,g=v?a.value:a.previousValue;return Md(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),p.jsx(ne.div,{"data-state":Pp(v),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!v&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:G(e.onPointerEnter,a.onContentEnter),onPointerLeave:G(e.onPointerLeave,Za(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:x,forceMount:S,...C}])=>{const E=g===y;return p.jsx(De,{present:S||E,children:p.jsx(xR,{...C,ref:Ot(x,R=>{E&&R&&c(R)})})},y)})})}),cV="FocusGroup",SR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=St(cV,n);return p.jsx(Ed.Provider,{scope:n,children:p.jsx(Ed.Slot,{scope:n,children:p.jsx(ne.div,{dir:o.dir,...r,ref:t})})})}),Bb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],uV="FocusGroupItem",CR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=QG(n),a=St(uV,n);return p.jsx(Ed.ItemSlot,{scope:n,children:p.jsx(ne.button,{...r,ref:t,onKeyDown:G(e.onKeyDown,i=>{if(["Home","End",...Bb].includes(i.key)){let l=o().map(c=>c.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),Bb.includes(i.key)){const c=l.indexOf(i.currentTarget);l=l.slice(c+1)}setTimeout(()=>Np(l)),i.preventDefault()}})})})});function Pd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Np(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function dV(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Md(e,t){const n=Me(t);Ie(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Pp(e){return e?"open":"closed"}function _R(e,t){return`${e}-trigger-${t}`}function ER(e,t){return`${e}-content-${t}`}function Za(e){return t=>t.pointerType==="mouse"?e(t):void 0}var RR=cR,NR=fR,fV=hR,PR=gR,pV=vR,MR=bR,TR=yR,OR=wR;const AR=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(RR,{ref:r,className:N("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,p.jsx(Mp,{})]}));AR.displayName=RR.displayName;const DR=d.forwardRef(({className:e,...t},n)=>p.jsx(NR,{ref:n,className:N("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));DR.displayName=NR.displayName;const mV=fV,IR=Ke("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),kR=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(PR,{ref:r,className:N(IR(),"group",e),...n,children:[t," ",p.jsx(Oo,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));kR.displayName=PR.displayName;const jR=d.forwardRef(({className:e,...t},n)=>p.jsx(TR,{ref:n,className:N("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));jR.displayName=TR.displayName;const hV=pV,Mp=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:N("absolute left-0 top-full flex justify-center"),children:p.jsx(OR,{className:N("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Mp.displayName=OR.displayName;const $R=d.forwardRef(({className:e,...t},n)=>p.jsx(MR,{ref:n,className:N("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:p.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));$R.displayName=MR.displayName;const LR=({className:e,...t})=>p.jsx("nav",{role:"navigation","aria-label":"pagination",className:N("mx-auto flex w-full justify-center",e),...t});LR.displayName="Pagination";const FR=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,className:N("flex flex-row items-center gap-1",e),...t}));FR.displayName="PaginationContent";const BR=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:N("",e),...t}));BR.displayName="PaginationItem";const Wi=({className:e,isActive:t,size:n="md",shape:r="square",...o})=>p.jsx("a",{"aria-current":t?"page":void 0,className:N(wr({variant:t?"outline":"ghost",size:n,shape:r}),e),...o});Wi.displayName="PaginationLink";const zR=({className:e,...t})=>p.jsxs(Wi,{"aria-label":"Go to previous page",size:"md",shape:"rectangle",className:N("gap-1 pl-2.5",e),...t,children:[p.jsx(Cy,{className:"h-4 w-4"}),p.jsx("span",{children:"Previous"})]});zR.displayName="PaginationPrevious";const qR=({className:e,...t})=>p.jsxs(Wi,{"aria-label":"Go to next page",size:"md",shape:"rectangle",className:N("gap-1 pr-2.5",e),...t,children:[p.jsx("span",{children:"Next"}),p.jsx(Ar,{className:"h-4 w-4"})]});qR.displayName="PaginationNext";const WR=({className:e,...t})=>p.jsxs("span",{"aria-hidden":!0,className:N("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(_y,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More pages"})]});WR.displayName="PaginationEllipsis";var Hi="Popover",[HR]=ke(Hi,[Jt]),oa=Jt(),[gV,An]=HR(Hi),GR=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=oa(t),l=d.useRef(null),[u,f]=d.useState(!1),[c,m]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:Hi});return p.jsx(qr,{...s,children:p.jsx(gV,{scope:t,contentId:Te(),triggerRef:l,open:c,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(h=>!h),[m]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:i,children:n})})};GR.displayName=Hi;var VR="PopoverAnchor",UR=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=An(VR,n),a=oa(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return d.useEffect(()=>(i(),()=>s()),[i,s]),p.jsx(Wr,{...a,...r,ref:t})});UR.displayName=VR;var KR="PopoverTrigger",YR=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=An(KR,n),a=oa(n),i=ce(t,o.triggerRef),s=p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eN(o.open),...r,ref:i,onClick:G(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:p.jsx(Wr,{asChild:!0,...a,children:s})});YR.displayName=KR;var Tp="PopoverPortal",[vV,bV]=HR(Tp,{forceMount:void 0}),XR=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=An(Tp,t);return p.jsx(vV,{scope:t,forceMount:n,children:p.jsx(De,{present:n||a.open,children:p.jsx(Ir,{asChild:!0,container:o,children:r})})})};XR.displayName=Tp;var Mr="PopoverContent",ZR=d.forwardRef((e,t)=>{const n=bV(Mr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=An(Mr,e.__scopePopover);return p.jsx(De,{present:r||a.open,children:a.modal?p.jsx(xV,{...o,ref:t}):p.jsx(wV,{...o,ref:t})})});ZR.displayName=Mr;var yV=Wn("PopoverContent.RemoveScroll"),xV=d.forwardRef((e,t)=>{const n=An(Mr,e.__scopePopover),r=d.useRef(null),o=ce(t,r),a=d.useRef(!1);return d.useEffect(()=>{const i=r.current;if(i)return gi(i)},[]),p.jsx(Do,{as:yV,allowPinchZoom:!0,children:p.jsx(QR,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:G(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),wV=d.forwardRef((e,t)=>{const n=An(Mr,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return p.jsx(QR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),QR=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...c}=e,m=An(Mr,n),h=oa(n);return mi(),p.jsx(Ao,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:p.jsx(Vo,{"data-state":eN(m.open),role:"dialog",id:m.contentId,...h,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),JR="PopoverClose",SV=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=An(JR,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:G(e.onClick,()=>o.onOpenChange(!1))})});SV.displayName=JR;var CV="PopoverArrow",_V=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=oa(n);return p.jsx(Uo,{...o,...r,ref:t})});_V.displayName=CV;function eN(e){return e?"open":"closed"}var EV=GR,RV=UR,NV=YR,PV=XR,tN=ZR;const MV=EV,TV=NV,OV=RV,nN=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(PV,{children:p.jsx(tN,{ref:o,align:t,sideOffset:n,className:N("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));nN.displayName=tN.displayName;var Op="Progress",Ap=100,[AV]=qx(Op),[DV,IV]=AV(Op),rN=d.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=kV,...i}=e;(o||o===0)&&!zb(o)&&console.error(jV(`${o}`,"Progress"));const s=zb(o)?o:Ap;r!==null&&!qb(r,s)&&console.error($V(`${r}`,"Progress"));const l=qb(r,s)?r:null,u=Qa(l)?a(l,s):void 0;return p.jsx(DV,{scope:n,value:l,max:s,children:p.jsx(tt.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Qa(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":iN(l,s),"data-value":l??void 0,"data-max":s,...i,ref:t})})});rN.displayName=Op;var oN="ProgressIndicator",aN=d.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=IV(oN,n);return p.jsx(tt.div,{"data-state":iN(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});aN.displayName=oN;function kV(e,t){return`${Math.round(e/t*100)}%`}function iN(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Qa(e){return typeof e=="number"}function zb(e){return Qa(e)&&!isNaN(e)&&e>0}function qb(e,t){return Qa(e)&&!isNaN(e)&&e<=t&&e>=0}function jV(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ap}\`.`}function $V(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
68
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function $5(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function L5(){return Cp(/^Mac/)}function F5(){return Cp(/^iPhone/)}function jb(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function B5(){return Cp(/^iPad/)||L5()&&navigator.maxTouchPoints>1}function f_(){return F5()||B5()}function Cp(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const z5=24,q5=typeof window<"u"?w.useLayoutEffect:w.useEffect;function $b(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $u=typeof document<"u"&&window.visualViewport;function Lb(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function p_(e){for(Lb(e)&&(e=e.parentElement);e&&!Lb(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const W5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let _a=0,Lu;function H5(e={}){let{isDisabled:t}=e;q5(()=>{if(!t)return _a++,_a===1&&f_()&&(Lu=V5()),()=>{_a--,_a===0&&Lu?.()}},[t])}function V5(){let e,t=0,n=c=>{e=p_(c.target),!(e===document.documentElement&&e===document.body)&&(t=c.changedTouches[0].pageY)},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}let m=c.changedTouches[0].pageY,h=e.scrollTop,v=e.scrollHeight-e.clientHeight;v!==0&&((h<=0&&m>t||h>=v&&m<t)&&c.preventDefault(),t=m)},o=c=>{let m=c.target;Rd(m)&&m!==document.activeElement&&(c.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=c=>{let m=c.target;Rd(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",$u&&($u.height<window.innerHeight?requestAnimationFrame(()=>{Fb(m)}):$u.addEventListener("resize",()=>Fb(m),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},i=window.pageXOffset,l=window.pageYOffset,u=$b(G5(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=$b(eo(document,"touchstart",n,{passive:!1,capture:!0}),eo(document,"touchmove",r,{passive:!1,capture:!0}),eo(document,"touchend",o,{passive:!1,capture:!0}),eo(document,"focus",a,!0),eo(window,"scroll",s));return()=>{u(),f(),window.scrollTo(i,l)}}function G5(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function eo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Fb(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=p_(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const s=n.getBoundingClientRect().bottom+z5;a>s&&(n.scrollTop+=o-r)}e=n.parentElement}}function Rd(e){return e instanceof HTMLInputElement&&!W5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function U5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function K5(...e){return t=>e.forEach(n=>U5(n,t))}function m_(...e){return d.useCallback(K5(...e),e)}const h_=new WeakMap;function Ze(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&h_.set(e,r)}function Y5(e,t){if(!e||!(e instanceof HTMLElement))return;let n=h_.get(e);n&&(e.style[t]=n[t])}const Ge=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Ea(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Ge(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ge(t)?5:4]):null)}function X5(e){return 8*(Math.log(e+1)-2)}function Fu(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Z5(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Le={DURATION:.5,EASE:[.32,.72,0,1]},g_=.4,Q5=.25,J5=100,v_=8,Ln=16,Nd=26,Bu="vaul-dragging";function b_(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function eH({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),a=b_(t);return w.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function y_({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=eH({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=b_(n),l=w.useCallback(u=>{if(a){const c=typeof u=="function"?u(e):u;c!==e&&i(c)}else o(u)},[a,e,o,i]);return[s,l]}function tH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:s,direction:i="bottom",container:l,snapToSequentialPoint:u}){const[f,c]=y_({prop:e,defaultProp:n?.[0],onChange:t}),[m,h]=w.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);w.useEffect(()=>{function _(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[]);const v=w.useMemo(()=>f===n?.[n.length-1]||null,[n,f]),g=w.useMemo(()=>{var _;return(_=n?.findIndex(P=>P===f))!=null?_:null},[n,f]),b=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===f||!n,y=w.useMemo(()=>{const _=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var P;return(P=n?.map(M=>{const k=typeof M=="string";let T=0;if(k&&(T=parseInt(M,10)),Ge(i)){const O=k?T:m?M*_.height:0;return m?i==="bottom"?_.height-O:-_.height+O:O}const $=k?T:m?M*_.width:0;return m?i==="right"?_.width-$:-_.width+$:$}))!=null?P:[]},[n,m,l]),x=w.useMemo(()=>g!==null?y?.[g]:null,[y,g]),S=w.useCallback(_=>{var P;const M=(P=y?.findIndex(k=>k===_))!=null?P:null;s(M),Ze(r.current,{transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,transform:Ge(i)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`}),y&&M!==y.length-1&&a!==void 0&&M!==a&&M<a?Ze(o.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,opacity:"0"}):Ze(o.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,opacity:"1"}),c(n?.[Math.max(M,0)])},[r.current,n,y,a,o,c]);w.useEffect(()=>{if(f||e){var _;const P=(_=n?.findIndex(M=>M===e||M===f))!=null?_:-1;y&&P!==-1&&typeof y[P]=="number"&&S(y[P])}},[f,e,n,y,S]);function C({draggedDistance:_,closeDrawer:P,velocity:M,dismissible:k}){if(a===void 0)return;const T=i==="bottom"||i==="right"?(x??0)-_:(x??0)+_,$=g===a-1,O=g===0,L=_>0;if($&&Ze(o.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`}),!u&&M>2&&!L){k?P():S(y[0]);return}if(!u&&M>2&&L&&y&&n){S(y[n.length-1]);return}const F=y?.reduce((V,H)=>typeof V!="number"||typeof H!="number"?V:Math.abs(H-T)<Math.abs(V-T)?H:V),D=Ge(i)?window.innerHeight:window.innerWidth;if(M>g_&&Math.abs(_)<D*.4){const V=L?1:-1;if(V>0&&v&&n){S(y[n.length-1]);return}if(O&&V<0&&k&&P(),g===null)return;S(y[g+V]);return}S(F)}function E({draggedDistance:_}){if(x===null)return;const P=i==="bottom"||i==="right"?x-_:x+_;(i==="bottom"||i==="right")&&P<y[y.length-1]||(i==="top"||i==="left")&&P>y[y.length-1]||Ze(r.current,{transform:Ge(i)?`translate3d(0, ${P}px, 0)`:`translate3d(${P}px, 0, 0)`})}function R(_,P){if(!n||typeof g!="number"||!y||a===void 0)return null;const M=g===a-1;if(g>=a&&P)return 0;if(M&&!P)return 1;if(!b&&!M)return null;const T=M?g+1:g-1,$=M?y[T]-y[T-1]:y[T+1]-y[T],O=_/Math.abs($);return M?1-O:O}return{isLastSnapPoint:v,activeSnapPoint:f,shouldFade:b,getPercentageDragged:R,setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:C,onDrag:E,snapPointsOffset:y}}const nH=()=>()=>{};function rH(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=oa(),a=w.useRef(null),s=w.useMemo(()=>document.body.style.backgroundColor,[]);function i(){return(window.innerWidth-Nd)/window.innerWidth}w.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;Z5(r&&!o?Fu(document.body,{background:"black"}):nH,Fu(l,{transformOrigin:Ge(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Le.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Le.EASE.join(",")})`}));const u=Fu(l,{borderRadius:`${v_}px`,overflow:"hidden",...Ge(e)?{transform:`scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},Le.DURATION*1e3)}}},[t,n,s])}let to=null;function oH({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[s,i]=w.useState(()=>typeof window<"u"?window.location.href:""),l=w.useRef(0),u=w.useCallback(()=>{if(jb()&&to===null&&e&&!a){to={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:c,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-c}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=m-window.innerHeight;h&&l.current>=m&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[e]),f=w.useCallback(()=>{if(jb()&&to!==null&&!a){const c=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,to),window.requestAnimationFrame(()=>{if(o&&s!==window.location.href){i(window.location.href);return}window.scrollTo(m,c)}),to=null}},[s]);return w.useEffect(()=>{function c(){l.current=window.scrollY}return c(),window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}},[]),w.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||f()}},[t,f]),w.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{f()},500)):f())},[e,r,s,t,n,u,f]),{restorePositionSetting:f}}function aH({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:s=!1,setBackgroundColorOnScale:i=!0,closeThreshold:l=Q5,scrollLockTimeout:u=J5,dismissible:f=!0,handleOnly:c=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:h,setActiveSnapPoint:v,fixed:g,modal:b=!0,onClose:y,nested:x,noBodyStyles:S=!1,direction:C="bottom",defaultOpen:E=!1,disablePreventScroll:R=!0,snapToSequentialPoint:_=!1,preventScrollRestoration:P=!1,repositionInputs:M=!0,onAnimationEnd:k,container:T,autoFocus:$=!1}){var O,L;const[F=!1,D]=y_({defaultProp:E,prop:e,onChange:X=>{t?.(X),!X&&!x&&Je(),setTimeout(()=>{k?.(X)},Le.DURATION*1e3),X&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),X||(document.body.style.pointerEvents="auto")}}),[V,H]=w.useState(!1),[B,Z]=w.useState(!1),[Q,q]=w.useState(!1),A=w.useRef(null),W=w.useRef(null),z=w.useRef(null),K=w.useRef(null),j=w.useRef(null),G=w.useRef(!1),ee=w.useRef(null),te=w.useRef(0),re=w.useRef(!1),Y=w.useRef(!E),se=w.useRef(0),I=w.useRef(null),oe=w.useRef(((O=I.current)==null?void 0:O.getBoundingClientRect().height)||0),fe=w.useRef(((L=I.current)==null?void 0:L.getBoundingClientRect().width)||0),pe=w.useRef(0),me=w.useCallback(X=>{a&&X===Ee.length-1&&(W.current=new Date)},[]),{activeSnapPoint:de,activeSnapPointIndex:xe,setActiveSnapPoint:je,onRelease:ye,snapPointsOffset:Ee,onDrag:qe,shouldFade:We,getPercentageDragged:Ye}=tH({snapPoints:a,activeSnapPointProp:h,setActiveSnapPointProp:v,drawerRef:I,fadeFromIndex:m,overlayRef:A,onSnapPointChange:me,direction:C,container:T,snapToSequentialPoint:_});H5({isDisabled:!F||B||!b||Q||!V||!M||!R});const{restorePositionSetting:Je}=oH({isOpen:F,modal:b,nested:x??!1,hasBeenOpened:V,preventScrollRestoration:P,noBodyStyles:S});function st(){return(window.innerWidth-Nd)/window.innerWidth}function it(X){var le,ae;!f&&!a||I.current&&!I.current.contains(X.target)||(oe.current=((le=I.current)==null?void 0:le.getBoundingClientRect().height)||0,fe.current=((ae=I.current)==null?void 0:ae.getBoundingClientRect().width)||0,Z(!0),z.current=new Date,f_()&&window.addEventListener("touchend",()=>G.current=!1,{once:!0}),X.target.setPointerCapture(X.pointerId),te.current=Ge(C)?X.pageY:X.pageX)}function He(X,le){var ae;let ie=X;const be=(ae=window.getSelection())==null?void 0:ae.toString(),J=I.current?Ea(I.current,C):null,ve=new Date;if(ie.tagName==="SELECT"||ie.hasAttribute("data-vaul-no-drag")||ie.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;if(W.current&&ve.getTime()-W.current.getTime()<500)return!1;if(J!==null&&(C==="bottom"?J>0:J<0))return!0;if(be&&be.length>0)return!1;if(j.current&&ve.getTime()-j.current.getTime()<u&&J===0||le)return j.current=ve,!1;for(;ie;){if(ie.scrollHeight>ie.clientHeight){if(ie.scrollTop!==0)return j.current=new Date,!1;if(ie.getAttribute("role")==="dialog")return!0}ie=ie.parentNode}return!0}function bt(X){if(I.current&&B){const le=C==="bottom"||C==="right"?1:-1,ae=(te.current-(Ge(C)?X.pageY:X.pageX))*le,ie=ae>0,be=a&&!f&&!ie;if(be&&xe===0)return;const J=Math.abs(ae),ve=document.querySelector("[data-vaul-drawer-wrapper]"),we=C==="bottom"||C==="top"?oe.current:fe.current;let Re=J/we;const et=Ye(J,ie);if(et!==null&&(Re=et),be&&Re>=1||!G.current&&!He(X.target,ie))return;if(I.current.classList.add(Bu),G.current=!0,Ze(I.current,{transition:"none"}),Ze(A.current,{transition:"none"}),a&&qe({draggedDistance:ae}),ie&&!a){const $e=X5(ae),on=Math.min($e*-1,0)*le;Ze(I.current,{transform:Ge(C)?`translate3d(0, ${on}px, 0)`:`translate3d(${on}px, 0, 0)`});return}const Se=1-Re;if((We||m&&xe===m-1)&&(r?.(X,Re),Ze(A.current,{opacity:`${Se}`,transition:"none"},!0)),ve&&A.current&&s){const $e=Math.min(st()+Re*(1-st()),1),on=8-Re*8,lt=Math.max(0,14-Re*14);Ze(ve,{borderRadius:`${on}px`,transform:Ge(C)?`scale(${$e}) translate3d(0, ${lt}px, 0)`:`scale(${$e}) translate3d(${lt}px, 0, 0)`,transition:"none"},!0)}if(!a){const $e=J*le;Ze(I.current,{transform:Ge(C)?`translate3d(0, ${$e}px, 0)`:`translate3d(${$e}px, 0, 0)`})}}}w.useEffect(()=>{window.requestAnimationFrame(()=>{Y.current=!0})},[]),w.useEffect(()=>{var X;function le(){if(!I.current||!M)return;const ae=document.activeElement;if(Rd(ae)||re.current){var ie;const be=((ie=window.visualViewport)==null?void 0:ie.height)||0,J=window.innerHeight;let ve=J-be;const we=I.current.getBoundingClientRect().height||0,Re=we>J*.8;pe.current||(pe.current=we);const et=I.current.getBoundingClientRect().top;if(Math.abs(se.current-ve)>60&&(re.current=!re.current),a&&a.length>0&&Ee&&xe){const Se=Ee[xe]||0;ve+=Se}if(se.current=ve,we>be||re.current){const Se=I.current.getBoundingClientRect().height;let $e=Se;Se>be&&($e=be-(Re?et:Nd)),g?I.current.style.height=`${Se-Math.max(ve,0)}px`:I.current.style.height=`${Math.max($e,be-et)}px`}else $5()||(I.current.style.height=`${pe.current}px`);a&&a.length>0&&!re.current?I.current.style.bottom="0px":I.current.style.bottom=`${Math.max(ve,0)}px`}}return(X=window.visualViewport)==null||X.addEventListener("resize",le),()=>{var ae;return(ae=window.visualViewport)==null?void 0:ae.removeEventListener("resize",le)}},[xe,a,Ee]);function Ve(X){Et(),y?.(),X||D(!1),setTimeout(()=>{a&&je(a[0])},Le.DURATION*1e3)}function Xe(){if(!I.current)return;const X=document.querySelector("[data-vaul-drawer-wrapper]"),le=Ea(I.current,C);Ze(I.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`}),Ze(A.current,{transition:`opacity ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,opacity:"1"}),s&&le&&le>0&&F&&Ze(X,{borderRadius:`${v_}px`,overflow:"hidden",...Ge(C)?{transform:`scale(${st()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${st()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Le.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Le.EASE.join(",")})`},!0)}function Et(){!B||!I.current||(I.current.classList.remove(Bu),G.current=!1,Z(!1),K.current=new Date)}function zt(X){if(!B||!I.current)return;I.current.classList.remove(Bu),G.current=!1,Z(!1),K.current=new Date;const le=Ea(I.current,C);if(!X||!He(X.target,!1)||!le||Number.isNaN(le)||z.current===null)return;const ae=K.current.getTime()-z.current.getTime(),ie=te.current-(Ge(C)?X.pageY:X.pageX),be=Math.abs(ie)/ae;if(be>.05&&(q(!0),setTimeout(()=>{q(!1)},200)),a){ye({draggedDistance:ie*(C==="bottom"||C==="right"?1:-1),closeDrawer:Ve,velocity:be,dismissible:f}),o?.(X,!0);return}if(C==="bottom"||C==="right"?ie>0:ie<0){Xe(),o?.(X,!0);return}if(be>g_){Ve(),o?.(X,!1);return}var J;const ve=Math.min((J=I.current.getBoundingClientRect().height)!=null?J:0,window.innerHeight);var we;const Re=Math.min((we=I.current.getBoundingClientRect().width)!=null?we:0,window.innerWidth),et=C==="left"||C==="right";if(Math.abs(le)>=(et?Re:ve)*l){Ve(),o?.(X,!1);return}o?.(X,!0),Xe()}w.useEffect(()=>(F&&(Ze(document.documentElement,{scrollBehavior:"auto"}),W.current=new Date),()=>{Y5(document.documentElement,"scrollBehavior")}),[F]);function gn(X){const le=X?(window.innerWidth-Ln)/window.innerWidth:1,ae=X?-Ln:0;ee.current&&window.clearTimeout(ee.current),Ze(I.current,{transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,transform:Ge(C)?`scale(${le}) translate3d(0, ${ae}px, 0)`:`scale(${le}) translate3d(${ae}px, 0, 0)`}),!X&&I.current&&(ee.current=setTimeout(()=>{const ie=Ea(I.current,C);Ze(I.current,{transition:"none",transform:Ge(C)?`translate3d(0, ${ie}px, 0)`:`translate3d(${ie}px, 0, 0)`})},500))}function vn(X,le){if(le<0)return;const ae=(window.innerWidth-Ln)/window.innerWidth,ie=ae+le*(1-ae),be=-Ln+le*Ln;Ze(I.current,{transform:Ge(C)?`scale(${ie}) translate3d(0, ${be}px, 0)`:`scale(${ie}) translate3d(${be}px, 0, 0)`,transition:"none"})}function rn(X,le){const ae=Ge(C)?window.innerHeight:window.innerWidth,ie=le?(ae-Ln)/ae:1,be=le?-Ln:0;le&&Ze(I.current,{transition:`transform ${Le.DURATION}s cubic-bezier(${Le.EASE.join(",")})`,transform:Ge(C)?`scale(${ie}) translate3d(0, ${be}px, 0)`:`scale(${ie}) translate3d(${be}px, 0, 0)`})}return w.useEffect(()=>{b||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[b]),w.createElement($o,{defaultOpen:E,onOpenChange:X=>{!f&&!X||(X?H(!0):Ve(!0),D(X))},open:F},w.createElement(d_.Provider,{value:{activeSnapPoint:de,snapPoints:a,setActiveSnapPoint:je,drawerRef:I,overlayRef:A,onOpenChange:t,onPress:it,onRelease:zt,onDrag:bt,dismissible:f,shouldAnimate:Y,handleOnly:c,isOpen:F,isDragging:B,shouldFade:We,closeDrawer:Ve,onNestedDrag:vn,onNestedOpenChange:gn,onNestedRelease:rn,keyboardIsOpen:re,modal:b,snapPointsOffset:Ee,activeSnapPointIndex:xe,direction:C,shouldScaleBackground:s,setBackgroundColorOnScale:i,noBodyStyles:S,container:T,autoFocus:$}},n))}const x_=w.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:s,modal:i,shouldAnimate:l}=oa(),u=m_(t,n),f=r&&r.length>0;if(!i)return null;const c=w.useCallback(m=>o(m),[o]);return w.createElement(er,{onMouseUp:c,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":s&&f?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false","data-vaul-animate":l?.current?"true":"false",...e})});x_.displayName="Drawer.Overlay";const w_=w.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:s,onRelease:i,onDrag:l,keyboardIsOpen:u,snapPointsOffset:f,activeSnapPointIndex:c,modal:m,isOpen:h,direction:v,snapPoints:g,container:b,handleOnly:y,shouldAnimate:x,autoFocus:S}=oa(),[C,E]=w.useState(!1),R=m_(o,a),_=w.useRef(null),P=w.useRef(null),M=w.useRef(!1),k=g&&g.length>0;rH();const T=(O,L,F=0)=>{if(M.current)return!0;const D=Math.abs(O.y),V=Math.abs(O.x),H=V>D,B=["bottom","right"].includes(L)?1:-1;if(L==="left"||L==="right"){if(!(O.x*B<0)&&V>=0&&V<=F)return H}else if(!(O.y*B<0)&&D>=0&&D<=F)return!H;return M.current=!0,!0};w.useEffect(()=>{k&&window.requestAnimationFrame(()=>{E(!0)})},[]);function $(O){_.current=null,M.current=!1,i(O)}return w.createElement(tr,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":C?"true":"false","data-vaul-snap-points":h&&k?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":x?.current?"true":"false",...r,ref:R,style:f&&f.length>0?{"--snap-point-height":`${f[c??0]}px`,...t}:t,onPointerDown:O=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,O),_.current={x:O.pageX,y:O.pageY},s(O))},onOpenAutoFocus:O=>{n?.(O),S||O.preventDefault()},onPointerDownOutside:O=>{if(e?.(O),!m||O.defaultPrevented){O.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:O=>{if(!m){O.preventDefault();return}},onPointerMove:O=>{if(P.current=O,y||(r.onPointerMove==null||r.onPointerMove.call(r,O),!_.current))return;const L=O.pageY-_.current.y,F=O.pageX-_.current.x,D=O.pointerType==="touch"?10:2;T({x:F,y:L},v,D)?l(O):(Math.abs(F)>D||Math.abs(L)>D)&&(_.current=null)},onPointerUp:O=>{r.onPointerUp==null||r.onPointerUp.call(r,O),_.current=null,M.current=!1,i(O)},onPointerOut:O=>{r.onPointerOut==null||r.onPointerOut.call(r,O),$(P.current)},onContextMenu:O=>{r.onContextMenu==null||r.onContextMenu.call(r,O),P.current&&$(P.current)}})});w_.displayName="Drawer.Content";const sH=250,iH=120,lH=w.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:s,activeSnapPoint:i,setActiveSnapPoint:l,dismissible:u,handleOnly:f,isOpen:c,onPress:m,onDrag:h}=oa(),v=w.useRef(null),g=w.useRef(!1);function b(){if(g.current){S();return}window.setTimeout(()=>{y()},iH)}function y(){if(a||e||g.current){S();return}if(S(),!s||s.length===0){u||o();return}if(i===s[s.length-1]&&u){o();return}const E=s.findIndex(_=>_===i);if(E===-1)return;const R=s[E+1];l(R)}function x(){v.current=window.setTimeout(()=>{g.current=!0},sH)}function S(){v.current&&window.clearTimeout(v.current),g.current=!1}return w.createElement("div",{onClick:b,onPointerCancel:S,onPointerDown:C=>{f&&m(C),x()},onPointerMove:C=>{f&&h(C)},ref:r,"data-vaul-drawer-visible":c?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},w.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});lH.displayName="Drawer.Handle";function cH(e){const t=oa(),{container:n=t.container,...r}=e;return w.createElement(Lo,{container:n,...r})}const Bt={Root:aH,Content:w_,Overlay:x_,Trigger:Ss,Portal:cH,Close:nr,Title:$r,Description:Lr},S_=({shouldScaleBackground:e=!0,...t})=>p.jsx(Bt.Root,{shouldScaleBackground:e,...t});S_.displayName="Drawer";const uH=Bt.Trigger,C_=Bt.Portal,dH=Bt.Close,_p=d.forwardRef(({className:e,...t},n)=>p.jsx(Bt.Overlay,{ref:n,className:N("fixed inset-0 z-50 bg-black/80",e),...t}));_p.displayName=Bt.Overlay.displayName;const __=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(C_,{children:[p.jsx(_p,{}),p.jsxs(Bt.Content,{ref:r,className:N("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[p.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));__.displayName="DrawerContent";const E_=({className:e,...t})=>p.jsx("div",{className:N("grid gap-1.5 p-4 text-center sm:text-left",e),...t});E_.displayName="DrawerHeader";const R_=({className:e,...t})=>p.jsx("div",{className:N("mt-auto flex flex-col gap-2 p-4",e),...t});R_.displayName="DrawerFooter";const N_=d.forwardRef(({className:e,...t},n)=>p.jsx(Bt.Title,{ref:n,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));N_.displayName=Bt.Title.displayName;const P_=d.forwardRef(({className:e,...t},n)=>p.jsx(Bt.Description,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));P_.displayName=Bt.Description.displayName;var Ws="DropdownMenu",[fH]=ke(Ws,[ta]),rt=ta(),[pH,M_]=fH(Ws),T_=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=rt(t),u=d.useRef(null),[f,c]=Ae({prop:o,defaultProp:a??!1,onChange:s,caller:Ws});return p.jsx(pH,{scope:t,triggerId:Te(),triggerRef:u,contentId:Te(),open:f,onOpenChange:c,onOpenToggle:d.useCallback(()=>c(m=>!m),[c]),modal:i,children:p.jsx(sp,{...l,open:f,onOpenChange:c,dir:r,modal:i,children:n})})};T_.displayName=Ws;var O_="DropdownMenuTrigger",A_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=M_(O_,n),s=rt(n);return p.jsx(ip,{asChild:!0,...s,children:p.jsx(ne.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:At(t,a.triggerRef),onPointerDown:U(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:U(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});A_.displayName=O_;var mH="DropdownMenuPortal",D_=e=>{const{__scopeDropdownMenu:t,...n}=e,r=rt(t);return p.jsx(lp,{...r,...n})};D_.displayName=mH;var I_="DropdownMenuContent",k_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=M_(I_,n),a=rt(n),s=d.useRef(!1);return p.jsx(cp,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:U(e.onInteractOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});k_.displayName=I_;var hH="DropdownMenuGroup",j_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(up,{...o,...r,ref:t})});j_.displayName=hH;var gH="DropdownMenuLabel",$_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(dp,{...o,...r,ref:t})});$_.displayName=gH;var vH="DropdownMenuItem",L_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(fp,{...o,...r,ref:t})});L_.displayName=vH;var bH="DropdownMenuCheckboxItem",F_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(pp,{...o,...r,ref:t})});F_.displayName=bH;var yH="DropdownMenuRadioGroup",B_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(mp,{...o,...r,ref:t})});B_.displayName=yH;var xH="DropdownMenuRadioItem",z_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(hp,{...o,...r,ref:t})});z_.displayName=xH;var wH="DropdownMenuItemIndicator",q_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(gp,{...o,...r,ref:t})});q_.displayName=wH;var SH="DropdownMenuSeparator",W_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(vp,{...o,...r,ref:t})});W_.displayName=SH;var CH="DropdownMenuArrow",_H=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(bp,{...o,...r,ref:t})});_H.displayName=CH;var EH=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=rt(t),[i,l]=Ae({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(yp,{...s,open:i,onOpenChange:l,children:n})},RH="DropdownMenuSubTrigger",H_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(xp,{...o,...r,ref:t})});H_.displayName=RH;var NH="DropdownMenuSubContent",V_=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return p.jsx(wp,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});V_.displayName=NH;var PH=T_,MH=A_,G_=D_,U_=k_,TH=j_,K_=$_,Y_=L_,X_=F_,OH=B_,Z_=z_,Q_=q_,J_=W_,AH=EH,eE=H_,tE=V_;const DH=PH,IH=MH,kH=TH,jH=G_,$H=AH,LH=OH,nE=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(eE,{ref:o,className:N("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary data-[state=open]:bg-primary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,p.jsx(Ir,{className:"ml-auto"})]}));nE.displayName=eE.displayName;const rE=d.forwardRef(({className:e,...t},n)=>p.jsx(tE,{ref:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));rE.displayName=tE.displayName;const oE=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(G_,{children:p.jsx(U_,{ref:r,sideOffset:t,className:N("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));oE.displayName=U_.displayName;const aE=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(Y_,{ref:r,className:N("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));aE.displayName=Y_.displayName;const sE=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(X_,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(Q_,{children:p.jsx(Do,{className:"h-4 w-4"})})}),t]}));sE.displayName=X_.displayName;const iE=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Z_,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(Q_,{children:p.jsx(vs,{className:"h-2 w-2 fill-current"})})}),t]}));iE.displayName=Z_.displayName;const lE=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(K_,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));lE.displayName=K_.displayName;const cE=d.forwardRef(({className:e,...t},n)=>p.jsx(J_,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));cE.displayName=J_.displayName;const uE=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...t});uE.displayName="DropdownMenuShortcut";function FH({className:e,...t}){return p.jsx("div",{"data-slot":"empty",className:N("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),...t})}function BH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-header",className:N("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const zH=Ke({base:"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function qH({className:e,variant:t="default",...n}){return p.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:N(zH({variant:t,className:e})),...n})}function WH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-title",className:N("text-lg font-medium tracking-tight",e),...t})}function HH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-description",className:N("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function VH({className:e,...t}){return p.jsx("div",{"data-slot":"empty-content",className:N("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e),...t})}var GH="Label",dE=d.forwardRef((e,t)=>p.jsx(tt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));dE.displayName=GH;var fE=dE;const UH=Ke({base:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"}),Hs=d.forwardRef(({className:e,...t},n)=>p.jsx(fE,{ref:n,className:N(UH(),e),...t}));Hs.displayName=fE.displayName;function KH({className:e,...t}){return p.jsx("fieldset",{"data-slot":"field-set",className:N("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function YH({className:e,variant:t="legend",...n}){return p.jsx("legend",{"data-slot":"field-legend","data-variant":t,className:N("mb-2 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...n})}function XH({className:e,...t}){return p.jsx("div",{"data-slot":"field-group",className:N("group/field-group @container/field-group flex w-full flex-col gap-6 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}const ZH=Ke({base:"group/field data-[invalid=true]:text-error flex w-full gap-3 bg-surface-1/75 border border-border/45 p-4 rounded-[--radius]",variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function QH({className:e,orientation:t="vertical",...n}){return p.jsx("div",{role:"group","data-slot":"field","data-orientation":t,className:N(ZH({orientation:t}),e),...n})}function JH({className:e,...t}){return p.jsx("div",{"data-slot":"field-content",className:N("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function eV({className:e,...t}){return p.jsx(Hs,{"data-slot":"field-label",className:N("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function tV({className:e,...t}){return p.jsx("div",{"data-slot":"field-label",className:N("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50",e),...t})}function nV({className:e,...t}){return p.jsx("p",{"data-slot":"field-description",className:N("text-foreground/50 text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function rV({children:e,className:t,...n}){return p.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:N("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...n,children:[p.jsx(Fr,{className:"absolute inset-0 top-1/2"}),e&&p.jsx("span",{className:"bg-background text-foreground/50 relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:e})]})}function oV({className:e,children:t,errors:n,...r}){const o=w.useMemo(()=>t||(n?n?.length===1&&n[0]?.message?n[0].message:p.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:n.map((a,s)=>a?.message&&p.jsx("li",{children:a.message},s))}):null),[t,n]);return o?p.jsx("div",{role:"alert","data-slot":"field-error",className:N("text-error text-sm font-normal",e),...r,children:o}):null}var aV=e=>e.type==="checkbox",co=e=>e instanceof Date,Ep=e=>e==null;const pE=e=>typeof e=="object";var Xn=e=>!Ep(e)&&!Array.isArray(e)&&pE(e)&&!co(e),sV=e=>Xn(e)&&e.target?aV(e.target)?e.target.checked:e.target.value:e,iV=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,lV=(e,t)=>e.has(iV(t)),cV=e=>{const t=e.constructor&&e.constructor.prototype;return Xn(t)&&t.hasOwnProperty("isPrototypeOf")},uV=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mE(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(uV&&(e instanceof Blob||r))&&(n||Xn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!cV(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=mE(e[o]));else return e;return t}var hE=e=>/^\w*$/.test(e),Pd=e=>e===void 0,dV=e=>Array.isArray(e)?e.filter(Boolean):[],gE=e=>dV(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ut=(e,t,n)=>{if(!t||!Xn(e))return n;const r=(hE(t)?[t]:gE(t)).reduce((o,a)=>Ep(o)?o:o[a],e);return Pd(r)||r===e?Pd(e[t])?n:e[t]:r},zu=e=>typeof e=="boolean",Bb=(e,t,n)=>{let r=-1;const o=hE(t)?[t]:gE(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const u=e[i];l=Xn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const zb={BLUR:"blur",CHANGE:"change"},qb={all:"all"},Rp=w.createContext(null);Rp.displayName="HookFormContext";const Vs=()=>w.useContext(Rp),fV=e=>{const{children:t,...n}=e;return w.createElement(Rp.Provider,{value:n},t)};var pV=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==qb.all&&(t._proxyFormState[s]=!r||qb.all),n&&(n[s]=!0),e[s]}});return o};const vE=typeof window<"u"?w.useLayoutEffect:w.useEffect;function mV(e){const t=Vs(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=w.useState(n._formState),l=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return vE(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:u=>{!r&&i({...n._formState,...u})}}),[o,r,a]),w.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),w.useMemo(()=>pV(s,n,l.current,!1),[s,n])}var hV=e=>typeof e=="string",Wb=(e,t,n,r,o)=>hV(e)?ut(n,e,o):Array.isArray(e)?e.map(a=>ut(n,a)):n,Hb=e=>Ep(e)||!pE(e);function Aa(e,t,n=new WeakSet){if(Hb(e)||Hb(t))return Object.is(e,t);if(co(e)&&co(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(co(s)&&co(i)||Xn(s)&&Xn(i)||Array.isArray(s)&&Array.isArray(i)?!Aa(s,i,n):!Object.is(s,i))return!1}}return!0}function gV(e){const t=Vs(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=w.useRef(o),u=w.useRef(i),f=w.useRef(void 0),c=w.useRef(n),m=w.useRef(r);u.current=i;const[h,v]=w.useState(()=>{const C=n._getWatch(r,l.current);return u.current?u.current(C):C}),g=w.useCallback(C=>{const E=Wb(r,n._names,C||n._formValues,!1,l.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),b=w.useCallback(C=>{if(!a){const E=Wb(r,n._names,C||n._formValues,!1,l.current);if(u.current){const R=u.current(E);Aa(R,f.current)||(v(R),f.current=R)}else v(E)}},[n._formValues,n._names,a,r]);vE(()=>((c.current!==n||!Aa(m.current,r))&&(c.current=n,m.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:C=>{b(C.values)}})),[n,s,r,b]),w.useEffect(()=>n._removeUnmounted());const y=c.current!==n,x=m.current,S=w.useMemo(()=>{if(a)return null;const C=!y&&!Aa(x,r);return y||C?g():null},[a,y,r,x,g]);return S!==null?S:h}function vV(e){const t=Vs(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s}=e,i=lV(o._names.array,n),l=w.useMemo(()=>ut(o._formValues,n,ut(o._defaultValues,n,s)),[o,n,s]),u=gV({control:o,name:n,defaultValue:l,exact:!0}),f=mV({control:o,name:n,exact:!0}),c=w.useRef(e),m=w.useRef(void 0),h=w.useRef(o.register(n,{...e.rules,value:u,...zu(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const v=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ut(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!ut(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ut(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ut(f.validatingFields,n)},error:{enumerable:!0,get:()=>ut(f.errors,n)}}),[f,n]),g=w.useCallback(S=>h.current.onChange({target:{value:sV(S),name:n},type:zb.CHANGE}),[n]),b=w.useCallback(()=>h.current.onBlur({target:{value:ut(o._formValues,n),name:n},type:zb.BLUR}),[n,o._formValues]),y=w.useCallback(S=>{const C=ut(o._fields,n);C&&S&&(C._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:E=>S.setCustomValidity(E),reportValidity:()=>S.reportValidity()})},[o._fields,n]),x=w.useMemo(()=>({name:n,value:u,...zu(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g,onBlur:b,ref:y}),[n,r,f.disabled,g,b,y,u]);return w.useEffect(()=>{const S=o._options.shouldUnregister||a,C=m.current;C&&C!==n&&!i&&o.unregister(C),o.register(n,{...c.current.rules,...zu(c.current.disabled)?{disabled:c.current.disabled}:{}});const E=(R,_)=>{const P=ut(o._fields,R);P&&P._f&&(P._f.mount=_)};if(E(n,!0),S){const R=mE(ut(o._options.defaultValues,n,c.current.defaultValue));Bb(o._defaultValues,n,R),Pd(ut(o._formValues,n))&&Bb(o._formValues,n,R)}return!i&&o.register(n),m.current=n,()=>{(i?S&&!o._state.action:S)?o.unregister(n):E(n,!1)}},[n,o,i,a]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),w.useMemo(()=>({field:x,formState:f,fieldState:v}),[x,f,v])}const bV=e=>e.render(vV(e)),yV=fV,bE=d.createContext(null),xV=({...e})=>p.jsx(bE.Provider,{value:{name:e.name},children:p.jsx(bV,{...e})}),aa=()=>{const e=d.useContext(bE),t=d.useContext(yE),{getFieldState:n,formState:r}=Vs();if(!e)throw new Error("useFormField should be used within <FormField>");if(!t)throw new Error("useFormField should be used within <FormItem>");const o=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},yE=d.createContext(null),xE=d.forwardRef(({className:e,...t},n)=>{const r=d.useId();return p.jsx(yE.Provider,{value:{id:r},children:p.jsx("div",{ref:n,className:N("space-y-2",e),...t})})});xE.displayName="FormItem";const wE=d.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=aa();return p.jsx(Hs,{ref:n,className:N(r&&"text-destructive",e),htmlFor:o,...t})});wE.displayName="FormLabel";const SE=d.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=aa();return p.jsx(Yt,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});SE.displayName="FormControl";const CE=d.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=aa();return p.jsx("p",{ref:n,id:r,className:N("text-[0.8rem] text-muted-foreground",e),...t})});CE.displayName="FormDescription";const _E=d.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=aa(),s=o?String(o?.message??""):t;return s?p.jsx("p",{ref:r,id:a,className:N("text-[0.8rem] font-medium text-destructive",e),...n,children:s}):null});_E.displayName="FormMessage";const Gs=d.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:N("flex w-full min-h-10 rounded-md border border-border bg-surface-3/60 px-4 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-foreground/60 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Gs.displayName="Input";const Np=d.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:N("flex min-h-[60px] w-full rounded-md border border-input bg-surface-3/60 px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Np.displayName="Textarea";function wV({className:e,...t}){return p.jsx("div",{"data-slot":"input-group",role:"group",className:N("group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}const SV=Ke({base:"text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]","block-start":"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5","block-end":"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function CV({className:e,align:t="inline-start",...n}){return p.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:N(SV({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}const _V=Ke({base:"flex items-center gap-2 text-sm shadow-none",variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function EV({className:e,type:t="button",variant:n="flat",size:r="xs",...o}){return p.jsx(Tn,{type:t,"data-size":r,variant:n,className:N(_V({size:r}),e),...o})}function RV({className:e,...t}){return p.jsx("span",{className:N("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...t})}function NV({className:e,...t}){return p.jsx(Gs,{"data-slot":"input-group-control",className:N("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function PV({className:e,...t}){return p.jsx(Np,{"data-slot":"input-group-control",className:N("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function MV({className:e,...t}){return p.jsx("div",{role:"list","data-slot":"item-group",className:N("group/item-group flex flex-col",e),...t})}function TV({className:e,...t}){return p.jsx(Fr,{"data-slot":"item-separator",orientation:"horizontal",className:N("my-0",e),...t})}const OV=Ke({base:"group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"gap-4 p-4 ",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function AV({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Yt:"div";return p.jsx(a,{"data-slot":"item","data-variant":t,"data-size":n,className:N(OV({variant:t,size:n,className:e})),...o})}const DV=Ke({base:"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",variants:{variant:{default:"bg-transparent",icon:"bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function IV({className:e,variant:t="default",...n}){return p.jsx("div",{"data-slot":"item-media","data-variant":t,className:N(DV({variant:t,className:e})),...n})}function kV({className:e,...t}){return p.jsx("div",{"data-slot":"item-content",className:N("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function jV({className:e,...t}){return p.jsx("div",{"data-slot":"item-title",className:N("flex w-fit items-center gap-2 text-sm font-medium leading-snug",e),...t})}function $V({className:e,...t}){return p.jsx("p",{"data-slot":"item-description",className:N("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function LV({className:e,...t}){return p.jsx("div",{"data-slot":"item-actions",className:N("flex items-center gap-2",e),...t})}function FV({className:e,...t}){return p.jsx("div",{"data-slot":"item-header",className:N("flex basis-full items-center justify-between gap-2",e),...t})}function BV({className:e,...t}){return p.jsx("div",{"data-slot":"item-footer",className:N("flex basis-full items-center justify-between gap-2",e),...t})}function zV({className:e,...t}){return p.jsx("kbd",{"data-slot":"kbd",className:N("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}function qV({className:e,...t}){return p.jsx("kbd",{"data-slot":"kbd-group",className:N("inline-flex items-center gap-1",e),...t})}var sa="Menubar",[Md,WV,HV]=Pn(sa),[EE]=ke(sa,[HV,tn]),ot=ta(),RE=tn(),[VV,Pp]=EE(sa),NE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:s=!0,dir:i,...l}=e,u=kt(i),f=RE(n),[c,m]=Ae({prop:r,onChange:o,defaultProp:a??"",caller:sa}),[h,v]=d.useState(null);return p.jsx(VV,{scope:n,value:c,onMenuOpen:d.useCallback(g=>{m(g),v(g)},[m]),onMenuClose:d.useCallback(()=>m(""),[m]),onMenuToggle:d.useCallback(g=>{m(b=>b?"":g),v(g)},[m]),dir:u,loop:s,children:p.jsx(Md.Provider,{scope:n,children:p.jsx(Md.Slot,{scope:n,children:p.jsx(Qo,{asChild:!0,...f,orientation:"horizontal",loop:s,dir:u,currentTabStopId:h,onCurrentTabStopIdChange:v,children:p.jsx(ne.div,{role:"menubar",...l,ref:t})})})})})});NE.displayName=sa;var Mp="MenubarMenu",[GV,PE]=EE(Mp),ME=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Te(),a=n||o||"LEGACY_REACT_AUTO_VALUE",s=Pp(Mp,t),i=ot(t),l=d.useRef(null),u=d.useRef(!1),f=s.value===a;return d.useEffect(()=>{f||(u.current=!1)},[f]),p.jsx(GV,{scope:t,value:a,triggerId:Te(),triggerRef:l,contentId:Te(),wasKeyboardTriggerOpenRef:u,children:p.jsx(sp,{...i,open:f,onOpenChange:c=>{c||s.onMenuClose()},modal:!1,dir:s.dir,...r})})};ME.displayName=Mp;var Td="MenubarTrigger",TE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=RE(n),s=ot(n),i=Pp(Td,n),l=PE(Td,n),u=d.useRef(null),f=ce(t,u,l.triggerRef),[c,m]=d.useState(!1),h=i.value===l.value;return p.jsx(Md.ItemSlot,{scope:n,value:l.value,disabled:r,children:p.jsx(Jo,{asChild:!0,...a,focusable:!r,tabStopId:l.value,children:p.jsx(ip,{asChild:!0,...s,children:p.jsx(ne.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?l.contentId:void 0,"data-highlighted":c?"":void 0,"data-state":h?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:f,onPointerDown:U(e.onPointerDown,v=>{!r&&v.button===0&&v.ctrlKey===!1&&(i.onMenuOpen(l.value),h||v.preventDefault())}),onPointerEnter:U(e.onPointerEnter,()=>{!!i.value&&!h&&(i.onMenuOpen(l.value),u.current?.focus())}),onKeyDown:U(e.onKeyDown,v=>{r||(["Enter"," "].includes(v.key)&&i.onMenuToggle(l.value),v.key==="ArrowDown"&&i.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(v.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,v.preventDefault()))}),onFocus:U(e.onFocus,()=>m(!0)),onBlur:U(e.onBlur,()=>m(!1))})})})})});TE.displayName=Td;var UV="MenubarPortal",OE=e=>{const{__scopeMenubar:t,...n}=e,r=ot(t);return p.jsx(lp,{...r,...n})};OE.displayName=UV;var Od="MenubarContent",AE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=ot(n),s=Pp(Od,n),i=PE(Od,n),l=WV(n),u=d.useRef(!1);return p.jsx(cp,{id:i.contentId,"aria-labelledby":i.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:r,onCloseAutoFocus:U(e.onCloseAutoFocus,f=>{!!!s.value&&!u.current&&i.triggerRef.current?.focus(),u.current=!1,f.preventDefault()}),onFocusOutside:U(e.onFocusOutside,f=>{const c=f.target;l().some(h=>h.ref.current?.contains(c))&&f.preventDefault()}),onInteractOutside:U(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:f=>{i.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:U(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const c=f.target,m=c.hasAttribute("data-radix-menubar-subtrigger"),h=c.closest("[data-radix-menubar-content]")!==f.currentTarget,g=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!g&&m||h&&g)return;let x=l().filter(E=>!E.disabled).map(E=>E.value);g&&x.reverse();const S=x.indexOf(i.value);x=s.loop?sG(x,S+1):x.slice(S+1);const[C]=x;C&&s.onMenuOpen(C)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});AE.displayName=Od;var KV="MenubarGroup",DE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(up,{...o,...r,ref:t})});DE.displayName=KV;var YV="MenubarLabel",IE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(dp,{...o,...r,ref:t})});IE.displayName=YV;var XV="MenubarItem",kE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(fp,{...o,...r,ref:t})});kE.displayName=XV;var ZV="MenubarCheckboxItem",jE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(pp,{...o,...r,ref:t})});jE.displayName=ZV;var QV="MenubarRadioGroup",$E=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(mp,{...o,...r,ref:t})});$E.displayName=QV;var JV="MenubarRadioItem",LE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(hp,{...o,...r,ref:t})});LE.displayName=JV;var eG="MenubarItemIndicator",FE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(gp,{...o,...r,ref:t})});FE.displayName=eG;var tG="MenubarSeparator",BE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(vp,{...o,...r,ref:t})});BE.displayName=tG;var nG="MenubarArrow",rG=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(bp,{...o,...r,ref:t})});rG.displayName=nG;var zE="MenubarSub",qE=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=ot(t),[i,l]=Ae({prop:r,defaultProp:a??!1,onChange:o,caller:zE});return p.jsx(yp,{...s,open:i,onOpenChange:l,children:n})};qE.displayName=zE;var oG="MenubarSubTrigger",WE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(xp,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});WE.displayName=oG;var aG="MenubarSubContent",HE=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ot(n);return p.jsx(wp,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});HE.displayName=aG;function sG(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var VE=NE,iG=ME,GE=TE,UE=OE,KE=AE,lG=DE,YE=IE,XE=kE,ZE=jE,cG=$E,QE=LE,JE=FE,eR=BE,uG=qE,tR=WE,nR=HE;function dG({...e}){return p.jsx(iG,{...e})}function fG({...e}){return p.jsx(lG,{...e})}function pG({...e}){return p.jsx(UE,{...e})}function mG({...e}){return p.jsx(cG,{...e})}function hG({...e}){return p.jsx(uG,{"data-slot":"menubar-sub",...e})}const rR=d.forwardRef(({className:e,...t},n)=>p.jsx(VE,{ref:n,className:N("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));rR.displayName=VE.displayName;const oR=d.forwardRef(({className:e,...t},n)=>p.jsx(GE,{ref:n,className:N("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));oR.displayName=GE.displayName;const aR=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(tR,{ref:o,className:N("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,p.jsx(Ir,{className:"ml-auto h-4 w-4"})]}));aR.displayName=tR.displayName;const sR=d.forwardRef(({className:e,...t},n)=>p.jsx(nR,{ref:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",e),...t}));sR.displayName=nR.displayName;const iR=d.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},a)=>p.jsx(UE,{children:p.jsx(KE,{ref:a,align:t,alignOffset:n,sideOffset:r,className:N("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",e),...o})}));iR.displayName=KE.displayName;const lR=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(XE,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));lR.displayName=XE.displayName;const cR=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(ZE,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(JE,{children:p.jsx(Do,{className:"h-4 w-4"})})}),t]}));cR.displayName=ZE.displayName;const uR=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(QE,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(JE,{children:p.jsx(vs,{className:"h-4 w-4 fill-current"})})}),t]}));uR.displayName=QE.displayName;const dR=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(YE,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));dR.displayName=YE.displayName;const fR=d.forwardRef(({className:e,...t},n)=>p.jsx(eR,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));fR.displayName=eR.displayName;const pR=({className:e,...t})=>p.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});pR.displayname="MenubarShortcut";var mR=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gG="VisuallyHidden",hR=d.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...mR,...e.style}}));hR.displayName=gG;var gR=hR,ir="NavigationMenu",[Tp,vR,vG]=Pn(ir),[Ad,bG,yG]=Pn(ir),[Op]=ke(ir,[vG,yG]),[xG,Ct]=Op(ir),[wG,SG]=Op(ir),bR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:s=200,skipDelayDuration:i=300,orientation:l="horizontal",dir:u,...f}=e,[c,m]=d.useState(null),h=ce(t,M=>m(M)),v=kt(u),g=d.useRef(0),b=d.useRef(0),y=d.useRef(0),[x,S]=d.useState(!0),[C,E]=Ae({prop:r,onChange:M=>{const k=M!=="",T=i>0;k?(window.clearTimeout(y.current),T&&S(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>S(!0),i)),o?.(M)},defaultProp:a??"",caller:ir}),R=d.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>E(""),150)},[E]),_=d.useCallback(M=>{window.clearTimeout(b.current),E(M)},[E]),P=d.useCallback(M=>{C===M?window.clearTimeout(b.current):g.current=window.setTimeout(()=>{window.clearTimeout(b.current),E(M)},s)},[C,E,s]);return d.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(y.current)},[]),p.jsx(yR,{scope:n,isRootMenu:!0,value:C,dir:v,orientation:l,rootNavigationMenu:c,onTriggerEnter:M=>{window.clearTimeout(g.current),x?P(M):_(M)},onTriggerLeave:()=>{window.clearTimeout(g.current),R()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:R,onItemSelect:M=>{E(k=>k===M?"":M)},onItemDismiss:()=>E(""),children:p.jsx(ne.nav,{"aria-label":"Main","data-orientation":l,dir:v,...f,ref:h})})});bR.displayName=ir;var Dd="NavigationMenuSub",CG=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",...i}=e,l=Ct(Dd,n),[u,f]=Ae({prop:r,onChange:o,defaultProp:a??"",caller:Dd});return p.jsx(yR,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:s,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:c=>f(c),onItemSelect:c=>f(c),onItemDismiss:()=>f(""),children:p.jsx(ne.div,{"data-orientation":s,...i,ref:t})})});CG.displayName=Dd;var yR=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:s,value:i,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:m,onContentLeave:h}=e,[v,g]=d.useState(null),[b,y]=d.useState(new Map),[x,S]=d.useState(null);return p.jsx(xG,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:i,previousValue:zr(i),baseId:Te(),dir:o,orientation:a,viewport:v,onViewportChange:g,indicatorTrack:x,onIndicatorTrackChange:S,onTriggerEnter:Me(f),onTriggerLeave:Me(c),onContentEnter:Me(m),onContentLeave:Me(h),onItemSelect:Me(l),onItemDismiss:Me(u),onViewportContentChange:d.useCallback((C,E)=>{y(R=>(R.set(C,E),new Map(R)))},[]),onViewportContentRemove:d.useCallback(C=>{y(E=>E.has(C)?(E.delete(C),new Map(E)):E)},[]),children:p.jsx(Tp.Provider,{scope:t,children:p.jsx(wG,{scope:t,items:b,children:s})})})},xR="NavigationMenuList",wR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ct(xR,n),a=p.jsx(ne.ul,{"data-orientation":o.orientation,...r,ref:t});return p.jsx(ne.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:p.jsx(Tp.Slot,{scope:n,children:o.isRootMenu?p.jsx(OR,{asChild:!0,children:a}):a})})});wR.displayName=xR;var SR="NavigationMenuItem",[_G,CR]=Op(SR),_R=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=Te(),s=r||a||"LEGACY_REACT_AUTO_VALUE",i=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(()=>{}),c=d.useRef(!1),m=d.useCallback((v="start")=>{if(i.current){f.current();const g=kd(i.current);g.length&&Ip(v==="start"?g:g.reverse())}},[]),h=d.useCallback(()=>{if(i.current){const v=kd(i.current);v.length&&(f.current=OG(v))}},[]);return p.jsx(_G,{scope:n,value:s,triggerRef:l,contentRef:i,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:p.jsx(ne.li,{...o,ref:t})})});_R.displayName=SR;var Id="NavigationMenuTrigger",ER=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Ct(Id,e.__scopeNavigationMenu),s=CR(Id,e.__scopeNavigationMenu),i=d.useRef(null),l=ce(i,s.triggerRef,t),u=DR(a.baseId,s.value),f=IR(a.baseId,s.value),c=d.useRef(!1),m=d.useRef(!1),h=s.value===a.value;return p.jsxs(p.Fragment,{children:[p.jsx(Tp.ItemSlot,{scope:n,value:s.value,children:p.jsx(AR,{asChild:!0,children:p.jsx(ne.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":kp(h),"aria-expanded":h,"aria-controls":f,...o,ref:l,onPointerEnter:U(e.onPointerEnter,()=>{m.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:U(e.onPointerMove,ts(()=>{r||m.current||s.wasEscapeCloseRef.current||c.current||(a.onTriggerEnter(s.value),c.current=!0)})),onPointerLeave:U(e.onPointerLeave,ts(()=>{r||(a.onTriggerLeave(),c.current=!1)})),onClick:U(e.onClick,()=>{a.onItemSelect(s.value),m.current=h}),onKeyDown:U(e.onKeyDown,v=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];h&&v.key===b&&(s.onEntryKeyDown(),v.preventDefault())})})})}),h&&p.jsxs(p.Fragment,{children:[p.jsx(gR,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:v=>{const g=s.contentRef.current,b=v.relatedTarget,y=b===i.current,x=g?.contains(b);(y||!x)&&s.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&p.jsx("span",{"aria-owns":f})]})]})});ER.displayName=Id;var EG="NavigationMenuLink",Vb="navigationMenu.linkSelect",RR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return p.jsx(AR,{asChild:!0,children:p.jsx(ne.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:U(e.onClick,s=>{const i=s.target,l=new CustomEvent(Vb,{bubbles:!0,cancelable:!0});if(i.addEventListener(Vb,u=>o?.(u),{once:!0}),ka(i,l),!l.defaultPrevented&&!s.metaKey){const u=new CustomEvent(Da,{bubbles:!0,cancelable:!0});ka(i,u)}},{checkForDefaultPrevented:!1})})})});RR.displayName=EG;var Ap="NavigationMenuIndicator",NR=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(Ap,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?fs.createPortal(p.jsx(De,{present:n||a,children:p.jsx(RG,{...r,ref:t})}),o.indicatorTrack):null});NR.displayName=Ap;var RG=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ct(Ap,n),a=vR(n),[s,i]=d.useState(null),[l,u]=d.useState(null),f=o.orientation==="horizontal",c=!!o.value;d.useEffect(()=>{const v=a().find(g=>g.value===o.value)?.ref.current;v&&i(v)},[a,o.value]);const m=()=>{s&&u({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return jd(s,m),jd(o.indicatorTrack,m),l?p.jsx(ne.div,{"aria-hidden":!0,"data-state":c?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Tr="NavigationMenuContent",PR=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(Tr,e.__scopeNavigationMenu),a=CR(Tr,e.__scopeNavigationMenu),s=ce(a.contentRef,t),i=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?p.jsx(NG,{forceMount:n,...l,ref:s}):p.jsx(De,{present:n||i,children:p.jsx(MR,{"data-state":kp(i),...l,ref:s,onPointerEnter:U(e.onPointerEnter,o.onContentEnter),onPointerLeave:U(e.onPointerLeave,ts(o.onContentLeave)),style:{pointerEvents:!i&&o.isRootMenu?"none":void 0,...l.style}})})});PR.displayName=Tr;var NG=d.forwardRef((e,t)=>{const n=Ct(Tr,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Ie(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Ie(()=>()=>o(e.value),[e.value,o]),null}),Da="navigationMenu.rootContentDismiss",MR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:i,onContentFocusOutside:l,...u}=e,f=Ct(Tr,n),c=d.useRef(null),m=ce(c,t),h=DR(f.baseId,r),v=IR(f.baseId,r),g=vR(n),b=d.useRef(null),{onItemDismiss:y}=f;d.useEffect(()=>{const S=c.current;if(f.isRootMenu&&S){const C=()=>{y(),i(),S.contains(document.activeElement)&&o.current?.focus()};return S.addEventListener(Da,C),()=>S.removeEventListener(Da,C)}},[f.isRootMenu,e.value,o,y,i]);const x=d.useMemo(()=>{const C=g().map(k=>k.value);f.dir==="rtl"&&C.reverse();const E=C.indexOf(f.value),R=C.indexOf(f.previousValue),_=r===f.value,P=R===C.indexOf(r);if(!_&&!P)return b.current;const M=(()=>{if(E!==R){if(_&&R!==-1)return E>R?"from-end":"from-start";if(P&&E!==-1)return E>R?"to-start":"to-end"}return null})();return b.current=M,M},[f.previousValue,f.value,f.dir,g,r]);return p.jsx(OR,{asChild:!0,children:p.jsx(Mn,{id:v,"aria-labelledby":h,"data-motion":x,"data-orientation":f.orientation,...u,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{const S=new Event(Da,{bubbles:!0,cancelable:!0});c.current?.dispatchEvent(S)},onFocusOutside:U(e.onFocusOutside,S=>{l();const C=S.target;f.rootNavigationMenu?.contains(C)&&S.preventDefault()}),onPointerDownOutside:U(e.onPointerDownOutside,S=>{const C=S.target,E=g().some(_=>_.ref.current?.contains(C)),R=f.isRootMenu&&f.viewport?.contains(C);(E||R||!f.isRootMenu)&&S.preventDefault()}),onKeyDown:U(e.onKeyDown,S=>{const C=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!C){const R=kd(S.currentTarget),_=document.activeElement,P=R.findIndex(T=>T===_),k=S.shiftKey?R.slice(0,P).reverse():R.slice(P+1,R.length);Ip(k)?S.preventDefault():a.current?.focus()}}),onEscapeKeyDown:U(e.onEscapeKeyDown,S=>{s.current=!0})})})}),Dp="NavigationMenuViewport",TR=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Ct(Dp,e.__scopeNavigationMenu).value;return p.jsx(De,{present:n||a,children:p.jsx(PG,{...r,ref:t})})});TR.displayName=Dp;var PG=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Ct(Dp,n),s=ce(t,a.onViewportChange),i=SG(Tr,e.__scopeNavigationMenu),[l,u]=d.useState(null),[f,c]=d.useState(null),m=l?l?.width+"px":void 0,h=l?l?.height+"px":void 0,v=!!a.value,g=v?a.value:a.previousValue;return jd(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),p.jsx(ne.div,{"data-state":kp(v),"data-orientation":a.orientation,...o,ref:s,style:{pointerEvents:!v&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:U(e.onPointerEnter,a.onContentEnter),onPointerLeave:U(e.onPointerLeave,ts(a.onContentLeave)),children:Array.from(i.items).map(([y,{ref:x,forceMount:S,...C}])=>{const E=g===y;return p.jsx(De,{present:S||E,children:p.jsx(MR,{...C,ref:At(x,R=>{E&&R&&c(R)})})},y)})})}),MG="FocusGroup",OR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ct(MG,n);return p.jsx(Ad.Provider,{scope:n,children:p.jsx(Ad.Slot,{scope:n,children:p.jsx(ne.div,{dir:o.dir,...r,ref:t})})})}),Gb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],TG="FocusGroupItem",AR=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=bG(n),a=Ct(TG,n);return p.jsx(Ad.ItemSlot,{scope:n,children:p.jsx(ne.button,{...r,ref:t,onKeyDown:U(e.onKeyDown,s=>{if(["Home","End",...Gb].includes(s.key)){let l=o().map(c=>c.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&l.reverse(),Gb.includes(s.key)){const c=l.indexOf(s.currentTarget);l=l.slice(c+1)}setTimeout(()=>Ip(l)),s.preventDefault()}})})})});function kd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ip(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function OG(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function jd(e,t){const n=Me(t);Ie(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function kp(e){return e?"open":"closed"}function DR(e,t){return`${e}-trigger-${t}`}function IR(e,t){return`${e}-content-${t}`}function ts(e){return t=>t.pointerType==="mouse"?e(t):void 0}var kR=bR,jR=wR,AG=_R,$R=ER,DG=RR,LR=NR,FR=PR,BR=TR;const zR=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(kR,{ref:r,className:N("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,p.jsx(jp,{})]}));zR.displayName=kR.displayName;const qR=d.forwardRef(({className:e,...t},n)=>p.jsx(jR,{ref:n,className:N("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));qR.displayName=jR.displayName;const IG=AG,WR=Ke({base:"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"}),HR=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs($R,{ref:r,className:N(WR(),"group",e),...n,children:[t," ",p.jsx(Io,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));HR.displayName=$R.displayName;const VR=d.forwardRef(({className:e,...t},n)=>p.jsx(FR,{ref:n,className:N("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));VR.displayName=FR.displayName;const kG=DG,jp=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:N("absolute left-0 top-full flex justify-center"),children:p.jsx(BR,{className:N("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));jp.displayName=BR.displayName;const GR=d.forwardRef(({className:e,...t},n)=>p.jsx(LR,{ref:n,className:N("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:p.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));GR.displayName=LR.displayName;const UR=({className:e,...t})=>p.jsx("nav",{role:"navigation","aria-label":"pagination",className:N("mx-auto flex w-full justify-center",e),...t});UR.displayName="Pagination";const KR=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,className:N("flex flex-row items-center gap-1",e),...t}));KR.displayName="PaginationContent";const YR=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:N("",e),...t}));YR.displayName="PaginationItem";const Us=({className:e,isActive:t,size:n="md",shape:r="square",...o})=>p.jsx("a",{"aria-current":t?"page":void 0,className:N(Cr({variant:t?"outline":"flat",size:n,shape:r}),e),...o});Us.displayName="PaginationLink";const XR=({className:e,...t})=>p.jsxs(Us,{"aria-label":"Go to previous page",size:"md",shape:"rectangle",className:N("gap-1 pl-2.5",e),...t,children:[p.jsx(My,{className:"h-4 w-4"}),p.jsx("span",{children:"Previous"})]});XR.displayName="PaginationPrevious";const ZR=({className:e,...t})=>p.jsxs(Us,{"aria-label":"Go to next page",size:"md",shape:"rectangle",className:N("gap-1 pr-2.5",e),...t,children:[p.jsx("span",{children:"Next"}),p.jsx(Ir,{className:"h-4 w-4"})]});ZR.displayName="PaginationNext";const QR=({className:e,...t})=>p.jsxs("span",{"aria-hidden":!0,className:N("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(Ty,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More pages"})]});QR.displayName="PaginationEllipsis";var Ks="Popover",[JR]=ke(Ks,[en]),ia=en(),[jG,Dn]=JR(Ks),eN=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ia(t),l=d.useRef(null),[u,f]=d.useState(!1),[c,m]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:Ks});return p.jsx(Hr,{...i,children:p.jsx(jG,{scope:t,contentId:Te(),triggerRef:l,open:c,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(h=>!h),[m]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:s,children:n})})};eN.displayName=Ks;var tN="PopoverAnchor",nN=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dn(tN,n),a=ia(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(s(),()=>i()),[s,i]),p.jsx(Vr,{...a,...r,ref:t})});nN.displayName=tN;var rN="PopoverTrigger",oN=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dn(rN,n),a=ia(n),s=ce(t,o.triggerRef),i=p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cN(o.open),...r,ref:s,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Vr,{asChild:!0,...a,children:i})});oN.displayName=rN;var $p="PopoverPortal",[$G,LG]=JR($p,{forceMount:void 0}),aN=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Dn($p,t);return p.jsx($G,{scope:t,forceMount:n,children:p.jsx(De,{present:n||a.open,children:p.jsx(jr,{asChild:!0,container:o,children:r})})})};aN.displayName=$p;var Or="PopoverContent",sN=d.forwardRef((e,t)=>{const n=LG(Or,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Dn(Or,e.__scopePopover);return p.jsx(De,{present:r||a.open,children:a.modal?p.jsx(BG,{...o,ref:t}):p.jsx(zG,{...o,ref:t})})});sN.displayName=Or;var FG=Hn("PopoverContent.RemoveScroll"),BG=d.forwardRef((e,t)=>{const n=Dn(Or,e.__scopePopover),r=d.useRef(null),o=ce(t,r),a=d.useRef(!1);return d.useEffect(()=>{const s=r.current;if(s)return xs(s)},[]),p.jsx(jo,{as:FG,allowPinchZoom:!0,children:p.jsx(iN,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,s=>{s.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:U(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),zG=d.forwardRef((e,t)=>{const n=Dn(Or,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return p.jsx(iN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),iN=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...c}=e,m=Dn(Or,n),h=ia(n);return bs(),p.jsx(ko,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Mn,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:p.jsx(Yo,{"data-state":cN(m.open),role:"dialog",id:m.contentId,...h,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),lN="PopoverClose",qG=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dn(lN,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});qG.displayName=lN;var WG="PopoverArrow",HG=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ia(n);return p.jsx(Xo,{...o,...r,ref:t})});HG.displayName=WG;function cN(e){return e?"open":"closed"}var VG=eN,GG=nN,UG=oN,KG=aN,uN=sN;const YG=VG,XG=UG,ZG=GG,dN=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(KG,{children:p.jsx(uN,{ref:o,align:t,sideOffset:n,className:N("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));dN.displayName=uN.displayName;var Lp="Progress",Fp=100,[QG]=Xx(Lp),[JG,e3]=QG(Lp),fN=d.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=t3,...s}=e;(o||o===0)&&!Ub(o)&&console.error(n3(`${o}`,"Progress"));const i=Ub(o)?o:Fp;r!==null&&!Kb(r,i)&&console.error(r3(`${r}`,"Progress"));const l=Kb(r,i)?r:null,u=ns(l)?a(l,i):void 0;return p.jsx(JG,{scope:n,value:l,max:i,children:p.jsx(tt.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":ns(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":hN(l,i),"data-value":l??void 0,"data-max":i,...s,ref:t})})});fN.displayName=Lp;var pN="ProgressIndicator",mN=d.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=e3(pN,n);return p.jsx(tt.div,{"data-state":hN(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});mN.displayName=pN;function t3(e,t){return`${Math.round(e/t*100)}%`}function hN(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ns(e){return typeof e=="number"}function Ub(e){return ns(e)&&!isNaN(e)&&e>0}function Kb(e,t){return ns(e)&&!isNaN(e)&&e<=t&&e>=0}function n3(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Fp}\`.`}function r3(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
69
69
  - a positive number
70
- - less than the value passed to \`max\` (or ${Ap} if no \`max\` prop is set)
70
+ - less than the value passed to \`max\` (or ${Fp} if no \`max\` prop is set)
71
71
  - \`null\` or \`undefined\` if the progress is indeterminate.
72
72
 
73
- Defaulting to \`null\`.`}var sN=rN,LV=aN;const lN=d.forwardRef(({className:e,value:t,...n},r)=>p.jsx(sN,{ref:r,className:N("relative h-2 overflow-hidden rounded-full bg-primary/20",e),...n,children:p.jsx(LV,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));lN.displayName=sN.displayName;var Dp="Radio",[FV,cN]=ke(Dp),[BV,zV]=FV(Dp),uN=d.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:l,form:u,...f}=e,[c,m]=d.useState(null),h=ce(t,b=>m(b)),v=d.useRef(!1),g=c?u||!!c.closest("form"):!0;return p.jsxs(BV,{scope:n,checked:o,disabled:i,children:[p.jsx(ne.button,{type:"button",role:"radio","aria-checked":o,"data-state":mN(o),"data-disabled":i?"":void 0,disabled:i,value:s,...f,ref:h,onClick:G(e.onClick,b=>{o||l?.(),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&p.jsx(pN,{control:c,bubbles:!v.current,name:r,value:s,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});uN.displayName=Dp;var dN="RadioIndicator",fN=d.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=zV(dN,n);return p.jsx(De,{present:r||a.checked,children:p.jsx(ne.span,{"data-state":mN(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});fN.displayName=dN;var qV="RadioBubbleInput",pN=d.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=d.useRef(null),s=ce(i,a),l=Fr(n),u=Wo(t);return d.useEffect(()=>{const f=i.current;if(!f)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&h){const v=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(v)}},[l,n,r]),p.jsx(ne.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});pN.displayName=qV;function mN(e){return e?"checked":"unchecked"}var WV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Gi="RadioGroup",[HV]=ke(Gi,[en,cN]),hN=en(),gN=cN(),[GV,VV]=HV(Gi),vN=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:l,dir:u,loop:f=!0,onValueChange:c,...m}=e,h=hN(n),v=It(u),[g,b]=Ae({prop:a,defaultProp:o??null,onChange:c,caller:Gi});return p.jsx(GV,{scope:n,name:r,required:i,disabled:s,value:g,onValueChange:b,children:p.jsx(Yo,{asChild:!0,...h,orientation:l,dir:v,loop:f,children:p.jsx(ne.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":s?"":void 0,dir:v,...m,ref:t})})})});vN.displayName=Gi;var bN="RadioGroupItem",yN=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=VV(bN,n),i=a.disabled||r,s=hN(n),l=gN(n),u=d.useRef(null),f=ce(t,u),c=a.value===o.value,m=d.useRef(!1);return d.useEffect(()=>{const h=g=>{WV.includes(g.key)&&(m.current=!0)},v=()=>m.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),p.jsx(Xo,{asChild:!0,...s,focusable:!i,active:c,children:p.jsx(uN,{disabled:i,required:a.required,checked:c,...l,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:G(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:G(o.onFocus,()=>{m.current&&u.current?.click()})})})});yN.displayName=bN;var UV="RadioGroupIndicator",xN=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=gN(n);return p.jsx(fN,{...o,...r,ref:t})});xN.displayName=UV;var wN=vN,SN=yN,KV=xN;const CN=d.forwardRef(({className:e,...t},n)=>p.jsx(wN,{className:N("grid gap-2",e),...t,ref:n}));CN.displayName=wN.displayName;const _N=d.forwardRef(({className:e,...t},n)=>p.jsx(SN,{ref:n,className:N("aspect-square h-4 w-4 rounded-full border border-primary-light text-primary-light shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx(KV,{className:"flex items-center justify-center",children:p.jsx(pi,{className:"h-2 w-2 fill-primary-light"})})}));_N.displayName=SN.displayName;const Vi=w.createContext(null);Vi.displayName="PanelGroupContext";const ze={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ip=10,qn=w.useLayoutEffect,Wb=d.useId,YV=typeof Wb=="function"?Wb:()=>null;let XV=0;function kp(e=null){const t=YV(),n=w.useRef(e||t||null);return n.current===null&&(n.current=""+XV++),e??n.current}function EN({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:a,id:i,maxSize:s,minSize:l,onCollapse:u,onExpand:f,onResize:c,order:m,style:h,tagName:v="div",...g}){const b=w.useContext(Vi);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:x,getPanelSize:S,getPanelStyle:C,groupId:E,isPanelCollapsed:R,reevaluatePanelConstraints:_,registerPanel:P,resizePanel:M,unregisterPanel:k}=b,T=kp(i),j=w.useRef({callbacks:{onCollapse:u,onExpand:f,onResize:c},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l},id:T,idIsFromProps:i!==void 0,order:m});w.useRef({didLogMissingDefaultSizeWarning:!1}),qn(()=>{const{callbacks:F,constraints:H}=j.current,$={...H};j.current.id=T,j.current.idIsFromProps=i!==void 0,j.current.order=m,F.onCollapse=u,F.onExpand=f,F.onResize=c,H.collapsedSize=n,H.collapsible=r,H.defaultSize=o,H.maxSize=s,H.minSize=l,($.collapsedSize!==H.collapsedSize||$.collapsible!==H.collapsible||$.maxSize!==H.maxSize||$.minSize!==H.minSize)&&_(j.current,$)}),qn(()=>{const F=j.current;return P(F),()=>{k(F)}},[m,T,P,k]),w.useImperativeHandle(a,()=>({collapse:()=>{y(j.current)},expand:F=>{x(j.current,F)},getId(){return T},getSize(){return S(j.current)},isCollapsed(){return R(j.current)},isExpanded(){return!R(j.current)},resize:F=>{M(j.current,F)}}),[y,x,S,R,T,M]);const O=C(j.current,o);return w.createElement(v,{...g,children:e,className:t,id:T,style:{...O,...h},[ze.groupId]:E,[ze.panel]:"",[ze.panelCollapsible]:r||void 0,[ze.panelId]:T,[ze.panelSize]:parseFloat(""+O.flexGrow).toFixed(1)})}const RN=w.forwardRef((e,t)=>w.createElement(EN,{...e,forwardedRef:t}));EN.displayName="Panel";RN.displayName="forwardRef(Panel)";let Td=null,Oa=-1,wn=null;function ZV(e,t,n){const r=(t&ON)!==0,o=(t&AN)!==0,a=(t&DN)!==0,i=(t&IN)!==0;if(t){if(r)return a?"se-resize":i?"ne-resize":"e-resize";if(o)return a?"sw-resize":i?"nw-resize":"w-resize";if(a)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function QV(){wn!==null&&(document.head.removeChild(wn),Td=null,wn=null,Oa=-1)}function Lu(e,t,n){var r,o;const a=ZV(e,t);if(Td!==a){if(Td=a,wn===null&&(wn=document.createElement("style"),document.head.appendChild(wn)),Oa>=0){var i;(i=wn.sheet)===null||i===void 0||i.removeRule(Oa)}Oa=(r=(o=wn.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${a} !important;}`))!==null&&r!==void 0?r:-1}}function NN(e){return e.type==="keydown"}function PN(e){return e.type.startsWith("pointer")}function MN(e){return e.type.startsWith("mouse")}function Ui(e){if(PN(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(MN(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function JV(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function e3(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function t3(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Vb(e),b:Vb(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ge(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:Gb(Hb(n.a)),b:Gb(Hb(n.b))};if(o.a===o.b){const a=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(o.a-o.b)}const n3=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function r3(e){var t;const n=getComputedStyle((t=TN(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function o3(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||r3(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||n3.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Hb(e){let t=e.length;for(;t--;){const n=e[t];if(ge(n,"Missing node"),o3(n))return n}return null}function Gb(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Vb(e){const t=[];for(;e;)t.push(e),e=TN(e);return t}function TN(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const ON=1,AN=2,DN=4,IN=8,a3=JV()==="coarse";let Tt=[],xr=!1,Sn=new Map,Ki=new Map;const Ro=new Set;function i3(e,t,n,r,o){var a;const{ownerDocument:i}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=(a=Sn.get(i))!==null&&a!==void 0?a:0;return Sn.set(i,l+1),Ro.add(s),Ja(),function(){var f;Ki.delete(e),Ro.delete(s);const c=(f=Sn.get(i))!==null&&f!==void 0?f:1;if(Sn.set(i,c-1),Ja(),c===1&&Sn.delete(i),Tt.includes(s)){const m=Tt.indexOf(s);m>=0&&Tt.splice(m,1),Yi(),o("up",!0,null)}}}function s3(e){const{target:t}=e,{x:n,y:r}=Ui(e);xr=!0,jp({target:t,x:n,y:r}),Ja(),Tt.length>0&&(ei("down",e),Yi(),e.preventDefault(),kN(t)||e.stopImmediatePropagation())}function Fu(e){const{x:t,y:n}=Ui(e);if(xr&&e.type!=="pointerleave"&&e.buttons===0&&(xr=!1,ei("up",e)),!xr){const{target:r}=e;jp({target:r,x:t,y:n})}ei("move",e),Yi(),Tt.length>0&&e.preventDefault()}function Bu(e){const{target:t}=e,{x:n,y:r}=Ui(e);Ki.clear(),xr=!1,Tt.length>0&&(e.preventDefault(),kN(t)||e.stopImmediatePropagation()),ei("up",e),jp({target:t,x:n,y:r}),Yi(),Ja()}function kN(e){let t=e;for(;t;){if(t.hasAttribute(ze.resizeHandle))return!0;t=t.parentElement}return!1}function jp({target:e,x:t,y:n}){Tt.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Ro.forEach(o=>{const{element:a,hitAreaMargins:i}=o,s=a.getBoundingClientRect(),{bottom:l,left:u,right:f,top:c}=s,m=a3?i.coarse:i.fine;if(t>=u-m&&t<=f+m&&n>=c-m&&n<=l+m){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&t3(r,a)>0){let v=r,g=!1;for(;v&&!v.contains(a);){if(e3(v.getBoundingClientRect(),s)){g=!0;break}v=v.parentElement}if(g)return}Tt.push(o)}})}function zu(e,t){Ki.set(e,t)}function Yi(){let e=!1,t=!1;Tt.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;Ki.forEach(r=>{n|=r}),e&&t?Lu("intersection",n):e?Lu("horizontal",n):t?Lu("vertical",n):QV()}let qu;function Ja(){var e;(e=qu)===null||e===void 0||e.abort(),qu=new AbortController;const t={capture:!0,signal:qu.signal};Ro.size&&(xr?(Tt.length>0&&Sn.forEach((n,r)=>{const{body:o}=r;n>0&&(o.addEventListener("contextmenu",Bu,t),o.addEventListener("pointerleave",Fu,t),o.addEventListener("pointermove",Fu,t))}),Sn.forEach((n,r)=>{const{body:o}=r;o.addEventListener("pointerup",Bu,t),o.addEventListener("pointercancel",Bu,t)})):Sn.forEach((n,r)=>{const{body:o}=r;n>0&&(o.addEventListener("pointerdown",s3,t),o.addEventListener("pointermove",Fu,t))}))}function ei(e,t){Ro.forEach(n=>{const{setResizeHandlerState:r}=n,o=Tt.includes(n);r(e,o,t)})}function l3(){const[e,t]=w.useState(0);return w.useCallback(()=>t(n=>n+1),[])}function ge(e,t){if(!e)throw console.error(t),Error(t)}function Yn(e,t,n=Ip){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function sn(e,t,n=Ip){return Yn(e,t,n)===0}function pt(e,t,n){return Yn(e,t,n)===0}function c3(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=t[r];if(!pt(o,a,n))return!1}return!0}function hr({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ge(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:i=100,minSize:s=0}=r;if(Yn(n,s)<0)if(a){const l=(o+s)/2;Yn(n,l)<0?n=o:n=s}else n=s;return n=Math.min(i,n),n=parseFloat(n.toFixed(Ip)),n}function so({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:a}){if(pt(e,0))return t;const i=[...t],[s,l]=r;ge(s!=null,"Invalid first pivot index"),ge(l!=null,"Invalid second pivot index");let u=0;if(a==="keyboard"){{const c=e<0?l:s,m=n[c];ge(m,`Panel constraints not found for index ${c}`);const{collapsedSize:h=0,collapsible:v,minSize:g=0}=m;if(v){const b=t[c];if(ge(b!=null,`Previous layout not found for panel index ${c}`),pt(b,h)){const y=g-b;Yn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const c=e<0?s:l,m=n[c];ge(m,`No panel constraints found for index ${c}`);const{collapsedSize:h=0,collapsible:v,minSize:g=0}=m;if(v){const b=t[c];if(ge(b!=null,`Previous layout not found for panel index ${c}`),pt(b,g)){const y=b-h;Yn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const c=e<0?1:-1;let m=e<0?l:s,h=0;for(;;){const g=t[m];ge(g!=null,`Previous layout not found for panel index ${m}`);const y=hr({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=y,m+=c,m<0||m>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-v:v}{let m=e<0?s:l;for(;m>=0&&m<n.length;){const h=Math.abs(e)-Math.abs(u),v=t[m];ge(v!=null,`Previous layout not found for panel index ${m}`);const g=v-h,b=hr({panelConstraints:n,panelIndex:m,size:g});if(!pt(v,b)&&(u+=v-b,i[m]=b,u.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(c3(o,i))return o;{const c=e<0?l:s,m=t[c];ge(m!=null,`Previous layout not found for panel index ${c}`);const h=m+u,v=hr({panelConstraints:n,panelIndex:c,size:h});if(i[c]=v,!pt(v,h)){let g=h-v,y=e<0?l:s;for(;y>=0&&y<n.length;){const x=i[y];ge(x!=null,`Previous layout not found for panel index ${y}`);const S=x+g,C=hr({panelConstraints:n,panelIndex:y,size:S});if(pt(x,C)||(g-=C-x,i[y]=C),pt(g,0))break;e>0?y--:y++}}}const f=i.reduce((c,m)=>m+c,0);return pt(f,100)?i:o}function u3({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,a=0,i=0;const s=n[0];ge(s!=null,"No pivot index found"),t.forEach((c,m)=>{const{constraints:h}=c,{maxSize:v=100,minSize:g=0}=h;m===s?(r=g,o=v):(a+=g,i+=v)});const l=Math.min(o,100-a),u=Math.max(r,100-i),f=e[s];return{valueMax:l,valueMin:u,valueNow:f}}function No(e,t=document){return Array.from(t.querySelectorAll(`[${ze.resizeHandleId}][data-panel-group-id="${e}"]`))}function jN(e,t,n=document){const o=No(e,n).findIndex(a=>a.getAttribute(ze.resizeHandleId)===t);return o??null}function $N(e,t,n){const r=jN(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function d3(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function LN(e,t=document){if(d3(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function Xi(e,t=document){const n=t.querySelector(`[${ze.resizeHandleId}="${e}"]`);return n||null}function f3(e,t,n,r=document){var o,a,i,s;const l=Xi(t,r),u=No(e,r),f=l?u.indexOf(l):-1,c=(o=(a=n[f])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(i=(s=n[f+1])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null;return[c,m]}function p3({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:i}){w.useRef({didWarnAboutMissingResizeHandle:!1}),qn(()=>{if(!a)return;const s=No(n,a);for(let l=0;l<o.length-1;l++){const{valueMax:u,valueMin:f,valueNow:c}=u3({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=s[l];if(m!=null){const h=o[l];ge(h,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(u)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.setAttribute("aria-valuenow",c!=null?""+Math.round(c):"")}}return()=>{s.forEach((l,u)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,a]),w.useEffect(()=>{if(!a)return;const s=t.current;ge(s,"Eager values not found");const{panelDataArray:l}=s,u=LN(n,a);ge(u!=null,`No group found for id "${n}"`);const f=No(n,a);ge(f,`No resize handles found for group id "${n}"`);const c=f.map(m=>{const h=m.getAttribute(ze.resizeHandleId);ge(h,"Resize handle element has no handle id attribute");const[v,g]=f3(n,h,l,a);if(v==null||g==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const x=l.findIndex(S=>S.id===v);if(x>=0){const S=l[x];ge(S,`No panel data found for index ${x}`);const C=r[x],{collapsedSize:E=0,collapsible:R,minSize:_=0}=S.constraints;if(C!=null&&R){const P=so({delta:pt(C,E)?_-E:E-C,initialLayout:r,panelConstraints:l.map(M=>M.constraints),pivotIndices:$N(n,h,a),prevLayout:r,trigger:"keyboard"});r!==P&&i(P)}}break}}};return m.addEventListener("keydown",b),()=>{m.removeEventListener("keydown",b)}});return()=>{c.forEach(m=>m())}},[a,e,t,n,r,o,i])}function Ub(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function FN(e,t){const n=e==="horizontal",{x:r,y:o}=Ui(t);return n?r:o}function m3(e,t,n,r,o){const a=n==="horizontal",i=Xi(t,o);ge(i,`No resize handle element found for id "${t}"`);const s=i.getAttribute(ze.groupId);ge(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const u=FN(n,e),f=LN(s,o);ge(f,`No group element found for id "${s}"`);const c=f.getBoundingClientRect(),m=a?c.width:c.height;return(u-l)/m*100}function h3(e,t,n,r,o,a){if(NN(e)){const i=n==="horizontal";let s=0;e.shiftKey?s=100:o!=null?s=o:s=10;let l=0;switch(e.key){case"ArrowDown":l=i?0:s;break;case"ArrowLeft":l=i?-s:0;break;case"ArrowRight":l=i?s:0;break;case"ArrowUp":l=i?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:m3(e,t,n,r,a)}function g3({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const i=n[a];ge(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;s!=null&&(r++,t[a]=s,o-=s)}for(let a=0;a<e.length;a++){const i=n[a];ge(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;if(s!=null)continue;const l=e.length-r,u=o/l;r++,t[a]=u,o-=u}return t}function dr(e,t,n){t.forEach((r,o)=>{const a=e[o];ge(a,`Panel data not found for index ${o}`);const{callbacks:i,constraints:s,id:l}=a,{collapsedSize:u=0,collapsible:f}=s,c=n[l];if(c==null||r!==c){n[l]=r;const{onCollapse:m,onExpand:h,onResize:v}=i;v&&v(r,c),f&&(m||h)&&(h&&(c==null||sn(c,u))&&!sn(r,u)&&h(),m&&(c==null||!sn(c,u))&&sn(r,u)&&m())}})}function Ca(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function v3({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:a=3}){const i=n[o];let s;return i==null?s=e!=null?e.toFixed(a):"1":r.length===1?s="1":s=i.toFixed(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function b3(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function Kb(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function BN(e){return`react-resizable-panels:${e}`}function zN(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:a}=t;return o?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function qN(e,t){try{const n=BN(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function y3(e,t,n){var r,o;const a=(r=qN(e,n))!==null&&r!==void 0?r:{},i=zN(t);return(o=a[i])!==null&&o!==void 0?o:null}function x3(e,t,n,r,o){var a;const i=BN(e),s=zN(t),l=(a=qN(e,o))!==null&&a!==void 0?a:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(i,JSON.stringify(l))}catch(u){console.error(u)}}function Yb({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,i)=>a+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!pt(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const i=n[a];ge(i!=null,`No layout data found for index ${a}`);const s=100/r*i;n[a]=s}let o=0;for(let a=0;a<t.length;a++){const i=n[a];ge(i!=null,`No layout data found for index ${a}`);const s=hr({panelConstraints:t,panelIndex:a,size:i});i!=s&&(o+=i-s,n[a]=s)}if(!pt(o,0))for(let a=0;a<t.length;a++){const i=n[a];ge(i!=null,`No layout data found for index ${a}`);const s=i+o,l=hr({panelConstraints:t,panelIndex:a,size:s});if(i!==l&&(o-=l-i,n[a]=l,pt(o,0)))break}return n}const w3=100,lo={getItem:e=>(Kb(lo),lo.getItem(e)),setItem:(e,t)=>{Kb(lo),lo.setItem(e,t)}},Xb={};function WN({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:a=null,onLayout:i=null,keyboardResizeBy:s=null,storage:l=lo,style:u,tagName:f="div",...c}){const m=kp(a),h=w.useRef(null),[v,g]=w.useState(null),[b,y]=w.useState([]),x=l3(),S=w.useRef({}),C=w.useRef(new Map),E=w.useRef(0),R=w.useRef({autoSaveId:e,direction:r,dragState:v,id:m,keyboardResizeBy:s,onLayout:i,storage:l}),_=w.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});w.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),w.useImperativeHandle(o,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:D}=_.current;return D},setLayout:D=>{const{onLayout:z}=R.current,{layout:L,panelDataArray:U}=_.current,I=Yb({layout:D,panelConstraints:U.map(W=>W.constraints)});Ub(L,I)||(y(I),_.current.layout=I,z&&z(I),dr(U,I,S.current))}}),[]),qn(()=>{R.current.autoSaveId=e,R.current.direction=r,R.current.dragState=v,R.current.id=m,R.current.onLayout=i,R.current.storage=l}),p3({committedValuesRef:R,eagerValuesRef:_,groupId:m,layout:b,panelDataArray:_.current.panelDataArray,setLayout:y,panelGroupElement:h.current}),w.useEffect(()=>{const{panelDataArray:D}=_.current;if(e){if(b.length===0||b.length!==D.length)return;let z=Xb[e];z==null&&(z=b3(x3,w3),Xb[e]=z);const L=[...D],U=new Map(C.current);z(e,L,U,b,l)}},[e,b,l]),w.useEffect(()=>{});const P=w.useCallback(D=>{const{onLayout:z}=R.current,{layout:L,panelDataArray:U}=_.current;if(D.constraints.collapsible){const I=U.map(re=>re.constraints),{collapsedSize:W=0,panelSize:Q,pivotIndices:te}=Ln(U,D,L);if(ge(Q!=null,`Panel size not found for panel "${D.id}"`),!sn(Q,W)){C.current.set(D.id,Q);const Y=mr(U,D)===U.length-1?Q-W:W-Q,ie=so({delta:Y,initialLayout:L,panelConstraints:I,pivotIndices:te,prevLayout:L,trigger:"imperative-api"});Ca(L,ie)||(y(ie),_.current.layout=ie,z&&z(ie),dr(U,ie,S.current))}}},[]),M=w.useCallback((D,z)=>{const{onLayout:L}=R.current,{layout:U,panelDataArray:I}=_.current;if(D.constraints.collapsible){const W=I.map(A=>A.constraints),{collapsedSize:Q=0,panelSize:te=0,minSize:re=0,pivotIndices:Y}=Ln(I,D,U),ie=z??re;if(sn(te,Q)){const A=C.current.get(D.id),oe=A!=null&&A>=ie?A:ie,pe=mr(I,D)===I.length-1?te-oe:oe-te,me=so({delta:pe,initialLayout:U,panelConstraints:W,pivotIndices:Y,prevLayout:U,trigger:"imperative-api"});Ca(U,me)||(y(me),_.current.layout=me,L&&L(me),dr(I,me,S.current))}}},[]),k=w.useCallback(D=>{const{layout:z,panelDataArray:L}=_.current,{panelSize:U}=Ln(L,D,z);return ge(U!=null,`Panel size not found for panel "${D.id}"`),U},[]),T=w.useCallback((D,z)=>{const{panelDataArray:L}=_.current,U=mr(L,D);return v3({defaultSize:z,dragState:v,layout:b,panelData:L,panelIndex:U})},[v,b]),j=w.useCallback(D=>{const{layout:z,panelDataArray:L}=_.current,{collapsedSize:U=0,collapsible:I,panelSize:W}=Ln(L,D,z);return ge(W!=null,`Panel size not found for panel "${D.id}"`),I===!0&&sn(W,U)},[]),O=w.useCallback(D=>{const{layout:z,panelDataArray:L}=_.current,{collapsedSize:U=0,collapsible:I,panelSize:W}=Ln(L,D,z);return ge(W!=null,`Panel size not found for panel "${D.id}"`),!I||Yn(W,U)>0},[]),F=w.useCallback(D=>{const{panelDataArray:z}=_.current;z.push(D),z.sort((L,U)=>{const I=L.order,W=U.order;return I==null&&W==null?0:I==null?-1:W==null?1:I-W}),_.current.panelDataArrayChanged=!0,x()},[x]);qn(()=>{if(_.current.panelDataArrayChanged){_.current.panelDataArrayChanged=!1;const{autoSaveId:D,onLayout:z,storage:L}=R.current,{layout:U,panelDataArray:I}=_.current;let W=null;if(D){const te=y3(D,I,L);te&&(C.current=new Map(Object.entries(te.expandToSizes)),W=te.layout)}W==null&&(W=g3({panelDataArray:I}));const Q=Yb({layout:W,panelConstraints:I.map(te=>te.constraints)});Ub(U,Q)||(y(Q),_.current.layout=Q,z&&z(Q),dr(I,Q,S.current))}}),qn(()=>{const D=_.current;return()=>{D.layout=[]}},[]);const H=w.useCallback(D=>{let z=!1;const L=h.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(I){I.preventDefault();const W=h.current;if(!W)return()=>null;const{direction:Q,dragState:te,id:re,keyboardResizeBy:Y,onLayout:ie}=R.current,{layout:A,panelDataArray:oe}=_.current,{initialLayout:fe}=te??{},pe=$N(re,D,W);let me=h3(I,D,Q,te,Y,W);const de=Q==="horizontal";de&&z&&(me=-me);const xe=oe.map(Ee=>Ee.constraints),je=so({delta:me,initialLayout:fe??A,panelConstraints:xe,pivotIndices:pe,prevLayout:A,trigger:NN(I)?"keyboard":"mouse-or-touch"}),ye=!Ca(A,je);(PN(I)||MN(I))&&E.current!=me&&(E.current=me,!ye&&me!==0?de?zu(D,me<0?ON:AN):zu(D,me<0?DN:IN):zu(D,0)),ye&&(y(je),_.current.layout=je,ie&&ie(je),dr(oe,je,S.current))}},[]),$=w.useCallback((D,z)=>{const{onLayout:L}=R.current,{layout:U,panelDataArray:I}=_.current,W=I.map(A=>A.constraints),{panelSize:Q,pivotIndices:te}=Ln(I,D,U);ge(Q!=null,`Panel size not found for panel "${D.id}"`);const Y=mr(I,D)===I.length-1?Q-z:z-Q,ie=so({delta:Y,initialLayout:U,panelConstraints:W,pivotIndices:te,prevLayout:U,trigger:"imperative-api"});Ca(U,ie)||(y(ie),_.current.layout=ie,L&&L(ie),dr(I,ie,S.current))},[]),K=w.useCallback((D,z)=>{const{layout:L,panelDataArray:U}=_.current,{collapsedSize:I=0,collapsible:W}=z,{collapsedSize:Q=0,collapsible:te,maxSize:re=100,minSize:Y=0}=D.constraints,{panelSize:ie}=Ln(U,D,L);ie!=null&&(W&&te&&sn(ie,I)?sn(I,Q)||$(D,Q):ie<Y?$(D,Y):ie>re&&$(D,re))},[$]),V=w.useCallback((D,z)=>{const{direction:L}=R.current,{layout:U}=_.current;if(!h.current)return;const I=Xi(D,h.current);ge(I,`Drag handle element not found for id "${D}"`);const W=FN(L,z);g({dragHandleId:D,dragHandleRect:I.getBoundingClientRect(),initialCursorPosition:W,initialLayout:U})},[]),q=w.useCallback(()=>{g(null)},[]),ee=w.useCallback(D=>{const{panelDataArray:z}=_.current,L=mr(z,D);L>=0&&(z.splice(L,1),delete S.current[D.id],_.current.panelDataArrayChanged=!0,x())},[x]),J=w.useMemo(()=>({collapsePanel:P,direction:r,dragState:v,expandPanel:M,getPanelSize:k,getPanelStyle:T,groupId:m,isPanelCollapsed:j,isPanelExpanded:O,reevaluatePanelConstraints:K,registerPanel:F,registerResizeHandle:H,resizePanel:$,startDragging:V,stopDragging:q,unregisterPanel:ee,panelGroupElement:h.current}),[P,v,r,M,k,T,m,j,O,K,F,H,$,V,q,ee]),B={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return w.createElement(Vi.Provider,{value:J},w.createElement(f,{...c,children:t,className:n,id:a,ref:h,style:{...B,...u},[ze.group]:"",[ze.groupDirection]:r,[ze.groupId]:m}))}const HN=w.forwardRef((e,t)=>w.createElement(WN,{...e,forwardedRef:t}));WN.displayName="PanelGroup";HN.displayName="forwardRef(PanelGroup)";function mr(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Ln(e,t,n){const r=mr(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:a}}function S3({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){w.useEffect(()=>{if(e||n==null||r==null)return;const o=Xi(t,r);if(o==null)return;const a=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const s=o.getAttribute(ze.groupId);ge(s,`No group element found for id "${s}"`);const l=No(s,r),u=jN(s,t,r);ge(u!==null,`No resize element found for id "${t}"`);const f=i.shiftKey?u>0?u-1:l.length-1:u+1<l.length?u+1:0;l[f].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,t,n])}function GN({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:a,onClick:i,onDragging:s,onFocus:l,onPointerDown:u,onPointerUp:f,style:c={},tabIndex:m=0,tagName:h="div",...v}){var g,b;const y=w.useRef(null),x=w.useRef({onClick:i,onDragging:s,onPointerDown:u,onPointerUp:f});w.useEffect(()=>{x.current.onClick=i,x.current.onDragging=s,x.current.onPointerDown=u,x.current.onPointerUp=f});const S=w.useContext(Vi);if(S===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:E,registerResizeHandle:R,startDragging:_,stopDragging:P,panelGroupElement:M}=S,k=kp(o),[T,j]=w.useState("inactive"),[O,F]=w.useState(!1),[H,$]=w.useState(null),K=w.useRef({state:T});qn(()=>{K.current.state=T}),w.useEffect(()=>{if(n)$(null);else{const J=R(k);$(()=>J)}},[n,k,R]);const V=(g=r?.coarse)!==null&&g!==void 0?g:15,q=(b=r?.fine)!==null&&b!==void 0?b:5;w.useEffect(()=>{if(n||H==null)return;const J=y.current;ge(J,"Element ref not attached");let B=!1;return i3(k,J,C,{coarse:V,fine:q},(z,L,U)=>{if(!L){j("inactive");return}switch(z){case"down":{j("drag"),B=!1,ge(U,'Expected event to be defined for "down" action'),_(k,U);const{onDragging:I,onPointerDown:W}=x.current;I?.(!0),W?.();break}case"move":{const{state:I}=K.current;B=!0,I!=="drag"&&j("hover"),ge(U,'Expected event to be defined for "move" action'),H(U);break}case"up":{j("hover"),P();const{onClick:I,onDragging:W,onPointerUp:Q}=x.current;W?.(!1),Q?.(),B||I?.();break}}})},[V,C,n,q,R,k,H,_,P]),S3({disabled:n,handleId:k,resizeHandler:H,panelGroupElement:M});const ee={touchAction:"none",userSelect:"none"};return w.createElement(h,{...v,children:e,className:t,id:o,onBlur:()=>{F(!1),a?.()},onFocus:()=>{F(!0),l?.()},ref:y,role:"separator",style:{...ee,...c},tabIndex:m,[ze.groupDirection]:C,[ze.groupId]:E,[ze.resizeHandle]:"",[ze.resizeHandleActive]:T==="drag"?"pointer":O?"keyboard":void 0,[ze.resizeHandleEnabled]:!n,[ze.resizeHandleId]:k,[ze.resizeHandleState]:T})}GN.displayName="PanelResizeHandle";const C3=({className:e,...t})=>p.jsx(HN,{className:N("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),_3=RN,E3=({withHandle:e,className:t,...n})=>p.jsx(GN,{className:N("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&p.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:p.jsx(QT,{className:"h-2.5 w-2.5"})})});function Po(e,[t,n]){return Math.min(n,Math.max(t,e))}function R3(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var $p="ScrollArea",[VN]=ke($p),[N3,Ct]=VN($p),UN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=d.useState(null),[u,f]=d.useState(null),[c,m]=d.useState(null),[h,v]=d.useState(null),[g,b]=d.useState(null),[y,x]=d.useState(0),[S,C]=d.useState(0),[E,R]=d.useState(!1),[_,P]=d.useState(!1),M=ce(t,T=>l(T)),k=It(o);return p.jsx(N3,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:f,content:c,onContentChange:m,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:E,onScrollbarXEnabledChange:R,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:_,onScrollbarYEnabledChange:P,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(ne.div,{dir:k,...i,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});UN.displayName=$p;var KN="ScrollAreaViewport",YN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=Ct(KN,n),s=d.useRef(null),l=ce(t,s,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(ne.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});YN.displayName=KN;var tn="ScrollAreaScrollbar",Lp=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(tn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return d.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?p.jsx(P3,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(M3,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(XN,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(Fp,{...r,ref:t}):null});Lp.displayName=tn;var P3=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(tn,e.__scopeScrollArea),[a,i]=d.useState(!1);return d.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const u=()=>{window.clearTimeout(l),i(!0)},f=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(De,{present:n||a,children:p.jsx(XN,{"data-state":a?"visible":"hidden",...r,ref:t})})}),M3=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(tn,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Qi(()=>l("SCROLL_END"),100),[s,l]=R3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,l]),d.useEffect(()=>{const u=o.viewport,f=a?"scrollLeft":"scrollTop";if(u){let c=u[f];const m=()=>{const h=u[f];c!==h&&(l("SCROLL"),i()),c=h};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[o.viewport,a,l,i]),p.jsx(De,{present:n||s!=="hidden",children:p.jsx(Fp,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:G(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:G(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),XN=d.forwardRef((e,t)=>{const n=Ct(tn,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=d.useState(!1),s=e.orientation==="horizontal",l=Qi(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?u:f)}},10);return Tr(n.viewport,l),Tr(n.content,l),p.jsx(De,{present:r||a,children:p.jsx(Fp,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Fp=d.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Ct(tn,e.__scopeScrollArea),a=d.useRef(null),i=d.useRef(0),[s,l]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=tP(s.viewport,s.content),f={...r,sizes:s,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function c(m,h){return k3(m,i.current,s,h)}return n==="horizontal"?p.jsx(T3,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,h=Zb(m,s,o.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=c(m,o.dir))}}):n==="vertical"?p.jsx(O3,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,h=Zb(m,s);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=c(m))}}):null}),T3=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Ct(tn,e.__scopeScrollArea),[i,s]=d.useState(),l=d.useRef(null),u=ce(t,l,a.onScrollbarXChange);return d.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),p.jsx(QN,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Zi(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,c)=>{if(a.viewport){const m=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),rP(m,c)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ni(i.paddingLeft),paddingEnd:ni(i.paddingRight)}})}})}),O3=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Ct(tn,e.__scopeScrollArea),[i,s]=d.useState(),l=d.useRef(null),u=ce(t,l,a.onScrollbarYChange);return d.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),p.jsx(QN,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Zi(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,c)=>{if(a.viewport){const m=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),rP(m,c)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ni(i.paddingTop),paddingEnd:ni(i.paddingBottom)}})}})}),[A3,ZN]=VN(tn),QN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:f,onResize:c,...m}=e,h=Ct(tn,n),[v,g]=d.useState(null),b=ce(t,M=>g(M)),y=d.useRef(null),x=d.useRef(""),S=h.viewport,C=r.content-r.viewport,E=Me(f),R=Me(l),_=Qi(c,10);function P(M){if(y.current){const k=M.clientX-y.current.left,T=M.clientY-y.current.top;u({x:k,y:T})}}return d.useEffect(()=>{const M=k=>{const T=k.target;v?.contains(T)&&E(k,C)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[S,v,C,E]),d.useEffect(R,[r,R]),Tr(v,_),Tr(h.content,_),p.jsx(A3,{scope:n,scrollbar:v,hasThumb:o,onThumbChange:Me(a),onThumbPointerUp:Me(i),onThumbPositionChange:R,onThumbPointerDown:Me(s),children:p.jsx(ne.div,{...m,ref:b,style:{position:"absolute",...m.style},onPointerDown:G(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),y.current=v.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),P(M))}),onPointerMove:G(e.onPointerMove,P),onPointerUp:G(e.onPointerUp,M=>{const k=M.target;k.hasPointerCapture(M.pointerId)&&k.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null})})})}),ti="ScrollAreaThumb",JN=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ZN(ti,e.__scopeScrollArea);return p.jsx(De,{present:n||o.hasThumb,children:p.jsx(D3,{ref:t,...r})})}),D3=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=Ct(ti,n),i=ZN(ti,n),{onThumbPositionChange:s}=i,l=ce(t,c=>i.onThumbChange(c)),u=d.useRef(void 0),f=Qi(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const c=a.viewport;if(c){const m=()=>{if(f(),!u.current){const h=j3(c,s);u.current=h,s()}};return s(),c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[a.viewport,f,s]),p.jsx(ne.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:G(e.onPointerDownCapture,c=>{const h=c.target.getBoundingClientRect(),v=c.clientX-h.left,g=c.clientY-h.top;i.onThumbPointerDown({x:v,y:g})}),onPointerUp:G(e.onPointerUp,i.onThumbPointerUp)})});JN.displayName=ti;var Bp="ScrollAreaCorner",eP=d.forwardRef((e,t)=>{const n=Ct(Bp,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(I3,{...e,ref:t}):null});eP.displayName=Bp;var I3=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Ct(Bp,n),[a,i]=d.useState(0),[s,l]=d.useState(0),u=!!(a&&s);return Tr(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),l(f)}),Tr(o.scrollbarY,()=>{const f=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(f),i(f)}),u?p.jsx(ne.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ni(e){return e?parseInt(e,10):0}function tP(e,t){const n=e/t;return isNaN(n)?0:n}function Zi(e){const t=tP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function k3(e,t,n,r="ltr"){const o=Zi(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,f=n.content-n.viewport,c=r==="ltr"?[0,f]:[f*-1,0];return nP([l,u],c)(e)}function Zb(e,t,n="ltr"){const r=Zi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,i]:[i*-1,0],u=Po(e,l);return nP([0,i],[0,s])(u)}function nP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function rP(e,t){return e>0&&e<t}var j3=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Qi(e,t){const n=Me(e),r=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),d.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Tr(e,t){const n=Me(t);Ie(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var oP=UN,$3=YN,L3=eP;const aP=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(oP,{ref:r,className:N("relative overflow-hidden",e),...n,children:[p.jsx($3,{className:"h-full w-full rounded-[inherit]",children:t}),p.jsx(zp,{}),p.jsx(L3,{})]}));aP.displayName=oP.displayName;const zp=d.forwardRef(({className:e,orientation:t="vertical",...n},r)=>p.jsx(Lp,{ref:r,orientation:t,className:N("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:p.jsx(JN,{className:"relative flex-1 rounded-full bg-border"})}));zp.displayName=Lp.displayName;var F3=[" ","Enter","ArrowUp","ArrowDown"],B3=[" ","Enter"],Xn="Select",[Ji,es,z3]=Nn(Xn),[Hr]=ke(Xn,[z3,Jt]),ts=Jt(),[q3,Dn]=Hr(Xn),[W3,H3]=Hr(Xn),iP=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:m,required:h,form:v}=e,g=ts(t),[b,y]=d.useState(null),[x,S]=d.useState(null),[C,E]=d.useState(!1),R=It(u),[_,P]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:Xn}),[M,k]=Ae({prop:i,defaultProp:s,onChange:l,caller:Xn}),T=d.useRef(null),j=b?v||!!b.closest("form"):!0,[O,F]=d.useState(new Set),H=Array.from(O).map($=>$.props.value).join(";");return p.jsx(qr,{...g,children:p.jsxs(q3,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:Te(),value:M,onValueChange:k,open:_,onOpenChange:P,dir:R,triggerPointerDownPosRef:T,disabled:m,children:[p.jsx(Ji.Provider,{scope:t,children:p.jsx(W3,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback($=>{F(K=>new Set(K).add($))},[]),onNativeOptionRemove:d.useCallback($=>{F(K=>{const V=new Set(K);return V.delete($),V})},[]),children:n})}),j?p.jsxs(OP,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:c,value:M,onChange:$=>k($.target.value),disabled:m,form:v,children:[M===void 0?p.jsx("option",{value:""}):null,Array.from(O)]},H):null]})})};iP.displayName=Xn;var sP="SelectTrigger",lP=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=ts(n),i=Dn(sP,n),s=i.disabled||r,l=ce(t,i.onTriggerChange),u=es(n),f=d.useRef("touch"),[c,m,h]=DP(g=>{const b=u().filter(S=>!S.disabled),y=b.find(S=>S.value===i.value),x=IP(b,g,y);x!==void 0&&i.onValueChange(x.value)}),v=g=>{s||(i.onOpenChange(!0),h()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return p.jsx(Wr,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":AP(i.value)?"":void 0,...o,ref:l,onClick:G(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&v(g)}),onPointerDown:G(o.onPointerDown,g=>{f.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(v(g),g.preventDefault())}),onKeyDown:G(o.onKeyDown,g=>{const b=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&m(g.key),!(b&&g.key===" ")&&F3.includes(g.key)&&(v(),g.preventDefault())})})})});lP.displayName=sP;var cP="SelectValue",uP=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=Dn(cP,n),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,c=ce(t,l.onValueNodeChange);return Ie(()=>{u(f)},[u,f]),p.jsx(ne.span,{...s,ref:c,style:{pointerEvents:"none"},children:AP(l.value)?p.jsx(p.Fragment,{children:i}):a})});uP.displayName=cP;var G3="SelectIcon",dP=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});dP.displayName=G3;var V3="SelectPortal",fP=e=>p.jsx(Ir,{asChild:!0,...e});fP.displayName=V3;var Zn="SelectContent",pP=d.forwardRef((e,t)=>{const n=Dn(Zn,e.__scopeSelect),[r,o]=d.useState();if(Ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?ci.createPortal(p.jsx(mP,{scope:e.__scopeSelect,children:p.jsx(Ji.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(hP,{...e,ref:t})});pP.displayName=Zn;var Rt=10,[mP,In]=Hr(Zn),U3="SelectContentImpl",K3=Wn("SelectContent.RemoveScroll"),hP=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:b,...y}=e,x=Dn(Zn,n),[S,C]=d.useState(null),[E,R]=d.useState(null),_=ce(t,I=>C(I)),[P,M]=d.useState(null),[k,T]=d.useState(null),j=es(n),[O,F]=d.useState(!1),H=d.useRef(!1);d.useEffect(()=>{if(S)return gi(S)},[S]),mi();const $=d.useCallback(I=>{const[W,...Q]=j().map(Y=>Y.ref.current),[te]=Q.slice(-1),re=document.activeElement;for(const Y of I)if(Y===re||(Y?.scrollIntoView({block:"nearest"}),Y===W&&E&&(E.scrollTop=0),Y===te&&E&&(E.scrollTop=E.scrollHeight),Y?.focus(),document.activeElement!==re))return},[j,E]),K=d.useCallback(()=>$([P,S]),[$,P,S]);d.useEffect(()=>{O&&K()},[O,K]);const{onOpenChange:V,triggerPointerDownPosRef:q}=x;d.useEffect(()=>{if(S){let I={x:0,y:0};const W=te=>{I={x:Math.abs(Math.round(te.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(te.pageY)-(q.current?.y??0))}},Q=te=>{I.x<=10&&I.y<=10?te.preventDefault():S.contains(te.target)||V(!1),document.removeEventListener("pointermove",W),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",W),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",Q,{capture:!0})}}},[S,V,q]),d.useEffect(()=>{const I=()=>V(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[V]);const[ee,J]=DP(I=>{const W=j().filter(re=>!re.disabled),Q=W.find(re=>re.ref.current===document.activeElement),te=IP(W,I,Q);te&&setTimeout(()=>te.ref.current.focus())}),B=d.useCallback((I,W,Q)=>{const te=!H.current&&!Q;(x.value!==void 0&&x.value===W||te)&&(M(I),te&&(H.current=!0))},[x.value]),D=d.useCallback(()=>S?.focus(),[S]),z=d.useCallback((I,W,Q)=>{const te=!H.current&&!Q;(x.value!==void 0&&x.value===W||te)&&T(I)},[x.value]),L=r==="popper"?Od:gP,U=L===Od?{side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:b}:{};return p.jsx(mP,{scope:n,content:S,viewport:E,onViewportChange:R,itemRefCallback:B,selectedItem:P,onItemLeave:D,itemTextRefCallback:z,focusSelectedItem:K,selectedItemText:k,position:r,isPositioned:O,searchRef:ee,children:p.jsx(Do,{as:K3,allowPinchZoom:!0,children:p.jsx(Ao,{asChild:!0,trapped:x.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:G(o,I=>{x.trigger?.focus({preventScroll:!0}),I.preventDefault()}),children:p.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(L,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:I=>I.preventDefault(),...y,...U,onPlaced:()=>F(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:G(y.onKeyDown,I=>{const W=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!W&&I.key.length===1&&J(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let te=j().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(I.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const re=I.target,Y=te.indexOf(re);te=te.slice(Y+1)}setTimeout(()=>$(te)),I.preventDefault()}})})})})})})});hP.displayName=U3;var Y3="SelectItemAlignedPosition",gP=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Dn(Zn,n),i=In(Zn,n),[s,l]=d.useState(null),[u,f]=d.useState(null),c=ce(t,_=>f(_)),m=es(n),h=d.useRef(!1),v=d.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=i,S=d.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&b&&y){const _=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),M=a.valueNode.getBoundingClientRect(),k=y.getBoundingClientRect();if(a.dir!=="rtl"){const re=k.left-P.left,Y=M.left-re,ie=_.left-Y,A=_.width+ie,oe=Math.max(A,P.width),fe=window.innerWidth-Rt,pe=Po(Y,[Rt,Math.max(Rt,fe-oe)]);s.style.minWidth=A+"px",s.style.left=pe+"px"}else{const re=P.right-k.right,Y=window.innerWidth-M.right-re,ie=window.innerWidth-_.right-Y,A=_.width+ie,oe=Math.max(A,P.width),fe=window.innerWidth-Rt,pe=Po(Y,[Rt,Math.max(Rt,fe-oe)]);s.style.minWidth=A+"px",s.style.right=pe+"px"}const T=m(),j=window.innerHeight-Rt*2,O=g.scrollHeight,F=window.getComputedStyle(u),H=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),K=parseInt(F.borderBottomWidth,10),V=parseInt(F.paddingBottom,10),q=H+$+O+V+K,ee=Math.min(b.offsetHeight*5,q),J=window.getComputedStyle(g),B=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),z=_.top+_.height/2-Rt,L=j-z,U=b.offsetHeight/2,I=b.offsetTop+U,W=H+$+I,Q=q-W;if(W<=z){const re=T.length>0&&b===T[T.length-1].ref.current;s.style.bottom="0px";const Y=u.clientHeight-g.offsetTop-g.offsetHeight,ie=Math.max(L,U+(re?D:0)+Y+K),A=W+ie;s.style.height=A+"px"}else{const re=T.length>0&&b===T[0].ref.current;s.style.top="0px";const ie=Math.max(z,H+g.offsetTop+(re?B:0)+U)+Q;s.style.height=ie+"px",g.scrollTop=W-z+g.offsetTop}s.style.margin=`${Rt}px 0`,s.style.minHeight=ee+"px",s.style.maxHeight=j+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,s,u,g,b,y,a.dir,r]);Ie(()=>S(),[S]);const[C,E]=d.useState();Ie(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const R=d.useCallback(_=>{_&&v.current===!0&&(S(),x?.(),v.current=!1)},[S,x]);return p.jsx(Z3,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:R,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});gP.displayName=Y3;var X3="SelectPopperPosition",Od=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rt,...a}=e,i=ts(n);return p.jsx(Vo,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Od.displayName=X3;var[Z3,qp]=Hr(Zn,{}),Ad="SelectViewport",vP=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=In(Ad,n),i=qp(Ad,n),s=ce(t,a.onViewportChange),l=d.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Ji.Slot,{scope:n,children:p.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:G(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:m}=i;if(m?.current&&c){const h=Math.abs(l.current-f.scrollTop);if(h>0){const v=window.innerHeight-Rt*2,g=parseFloat(c.style.minHeight),b=parseFloat(c.style.height),y=Math.max(g,b);if(y<v){const x=y+h,S=Math.min(v,x),C=x-S;c.style.height=S+"px",c.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,c.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});vP.displayName=Ad;var bP="SelectGroup",[Q3,J3]=Hr(bP),yP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Te();return p.jsx(Q3,{scope:n,id:o,children:p.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});yP.displayName=bP;var xP="SelectLabel",wP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=J3(xP,n);return p.jsx(ne.div,{id:o.id,...r,ref:t})});wP.displayName=xP;var ri="SelectItem",[eU,SP]=Hr(ri),CP=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=Dn(ri,n),l=In(ri,n),u=s.value===r,[f,c]=d.useState(a??""),[m,h]=d.useState(!1),v=ce(t,x=>l.itemRefCallback?.(x,r,o)),g=Te(),b=d.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(eU,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:d.useCallback(x=>{c(S=>S||(x?.textContent??"").trim())},[]),children:p.jsx(Ji.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(ne.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:G(i.onFocus,()=>h(!0)),onBlur:G(i.onBlur,()=>h(!1)),onClick:G(i.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:G(i.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:G(i.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:G(i.onPointerMove,x=>{b.current=x.pointerType,o?l.onItemLeave?.():b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:G(i.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(B3.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});CP.displayName=ri;var co="SelectItemText",_P=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Dn(co,n),s=In(co,n),l=SP(co,n),u=H3(co,n),[f,c]=d.useState(null),m=ce(t,y=>c(y),l.onItemTextChange,y=>s.itemTextRefCallback?.(y,l.value,l.disabled)),h=f?.textContent,v=d.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return Ie(()=>(g(v),()=>b(v)),[g,b,v]),p.jsxs(p.Fragment,{children:[p.jsx(ne.span,{id:l.textId,...a,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ci.createPortal(a.children,i.valueNode):null]})});_P.displayName=co;var EP="SelectItemIndicator",RP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return SP(EP,n).isSelected?p.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});RP.displayName=EP;var Dd="SelectScrollUpButton",NP=d.forwardRef((e,t)=>{const n=In(Dd,e.__scopeSelect),r=qp(Dd,e.__scopeSelect),[o,a]=d.useState(!1),i=ce(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?p.jsx(MP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});NP.displayName=Dd;var Id="SelectScrollDownButton",PP=d.forwardRef((e,t)=>{const n=In(Id,e.__scopeSelect),r=qp(Id,e.__scopeSelect),[o,a]=d.useState(!1),i=ce(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;a(f)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?p.jsx(MP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});PP.displayName=Id;var MP=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=In("SelectScrollButton",n),i=d.useRef(null),s=es(n),l=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),Ie(()=>{s().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),p.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:G(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:G(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:G(o.onPointerLeave,()=>{l()})})}),tU="SelectSeparator",TP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});TP.displayName=tU;var kd="SelectArrow",nU=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ts(n),a=Dn(kd,n),i=In(kd,n);return a.open&&i.position==="popper"?p.jsx(Uo,{...o,...r,ref:t}):null});nU.displayName=kd;var rU="SelectBubbleInput",OP=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),a=ce(r,o),i=Fr(t);return d.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const c=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(c)}},[i,t]),p.jsx(ne.select,{...n,style:{...aR,...n.style},ref:a,defaultValue:t})});OP.displayName=rU;function AP(e){return e===""||e===void 0}function DP(e){const t=Me(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const s=n.current+i;t(s),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),a=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function IP(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=oU(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function oU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var aU=iP,kP=lP,iU=uP,sU=dP,lU=fP,jP=pP,cU=vP,uU=yP,$P=wP,LP=CP,dU=_P,fU=RP,FP=NP,BP=PP,zP=TP;const pU=aU,mU=uU,hU=iU,qP=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(kP,{ref:r,className:N("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent p-4 text-base shadow-sm ring-offset-background data-[placeholder]:text-foreground/75 focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(sU,{asChild:!0,children:p.jsx(Oo,{className:"h-4 w-4 opacity-50"})})]}));qP.displayName=kP.displayName;const Wp=d.forwardRef(({className:e,...t},n)=>p.jsx(FP,{ref:n,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(KT,{className:"h-4 w-4"})}));Wp.displayName=FP.displayName;const Hp=d.forwardRef(({className:e,...t},n)=>p.jsx(BP,{ref:n,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Oo,{className:"h-4 w-4"})}));Hp.displayName=BP.displayName;const WP=d.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(lU,{children:p.jsxs(jP,{ref:o,className:N("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-input bg-popover text-popover-foreground/80 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(Wp,{}),p.jsx(cU,{className:N("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(Hp,{})]})}));WP.displayName=jP.displayName;const HP=d.forwardRef(({className:e,...t},n)=>p.jsx($P,{ref:n,className:N("px-2 py-1.5 text-sm font-semibold text-popover-foreground",e),...t}));HP.displayName=$P.displayName;const GP=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(LP,{ref:r,className:N("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(fU,{children:p.jsx(To,{className:"h-4 w-4"})})}),p.jsx(dU,{children:t})]}));GP.displayName=LP.displayName;const VP=d.forwardRef(({className:e,...t},n)=>p.jsx(zP,{ref:n,className:N("-mx-1 my-1 h-px bg-surface-2",e),...t}));VP.displayName=zP.displayName;const UP=Io,gU=bi,vU=er,KP=ko,Gp=d.forwardRef(({className:e,...t},n)=>p.jsx(Qn,{className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Gp.displayName=Qn.displayName;const bU=Ke("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Vp=d.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(KP,{children:[p.jsx(Gp,{}),p.jsxs(Jn,{ref:o,className:N(bU({side:e}),t),...r,children:[p.jsxs(er,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(Ey,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Vp.displayName=Jn.displayName;const Up=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t});Up.displayName="SheetHeader";const YP=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});YP.displayName="SheetFooter";const Kp=d.forwardRef(({className:e,...t},n)=>p.jsx(kr,{ref:n,className:N("text-lg font-semibold text-foreground",e),...t}));Kp.displayName=kr.displayName;const Yp=d.forwardRef(({className:e,...t},n)=>p.jsx(jr,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));Yp.displayName=jr.displayName;const Wu=768;function yU(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Wu-1}px)`),r=()=>{t(window.innerWidth<Wu)};return n.addEventListener("change",r),t(window.innerWidth<Wu),()=>n.removeEventListener("change",r)},[]),!!e}function jd({className:e,...t}){return p.jsx("div",{className:N("animate-pulse rounded-md bg-primary/10",e),...t})}var[ns]=ke("Tooltip",[Jt]),rs=Jt(),XP="TooltipProvider",xU=700,$d="tooltip.open",[wU,Xp]=ns(XP),ZP=e=>{const{__scopeTooltip:t,delayDuration:n=xU,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=d.useRef(!0),s=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(wU,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:d.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:a})};ZP.displayName=XP;var Mo="Tooltip",[SU,aa]=ns(Mo),QP=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=Xp(Mo,e.__scopeTooltip),u=rs(t),[f,c]=d.useState(null),m=Te(),h=d.useRef(0),v=i??l.disableHoverableContent,g=s??l.delayDuration,b=d.useRef(!1),[y,x]=Ae({prop:r,defaultProp:o??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent($d))):l.onClose(),a?.(_)},caller:Mo}),S=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),C=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),R=d.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,x(!0),h.current=0},g)},[g,x]);return d.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(qr,{...u,children:p.jsx(SU,{scope:t,contentId:m,open:y,stateAttribute:S,trigger:f,onTriggerChange:c,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?R():C()},[l.isOpenDelayedRef,R,C]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:n})})};QP.displayName=Mo;var Ld="TooltipTrigger",JP=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=aa(Ld,n),a=Xp(Ld,n),i=rs(n),s=d.useRef(null),l=ce(t,s,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),c=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),p.jsx(Wr,{asChild:!0,...i,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:G(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:G(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:G(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:G(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:G(e.onBlur,o.onClose),onClick:G(e.onClick,o.onClose)})})});JP.displayName=Ld;var Zp="TooltipPortal",[CU,_U]=ns(Zp,{forceMount:void 0}),e1=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=aa(Zp,t);return p.jsx(CU,{scope:t,forceMount:n,children:p.jsx(De,{present:n||a.open,children:p.jsx(Ir,{asChild:!0,container:o,children:r})})})};e1.displayName=Zp;var Or="TooltipContent",t1=d.forwardRef((e,t)=>{const n=_U(Or,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=aa(Or,e.__scopeTooltip);return p.jsx(De,{present:r||i.open,children:i.disableHoverableContent?p.jsx(n1,{side:o,...a,ref:t}):p.jsx(EU,{side:o,...a,ref:t})})}),EU=d.forwardRef((e,t)=>{const n=aa(Or,e.__scopeTooltip),r=Xp(Or,e.__scopeTooltip),o=d.useRef(null),a=ce(t,o),[i,s]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:c}=r,m=d.useCallback(()=>{s(null),c(!1)},[c]),h=d.useCallback((v,g)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=TU(y,b.getBoundingClientRect()),S=OU(y,x),C=AU(g.getBoundingClientRect()),E=IU([...S,...C]);s(E),c(!0)},[c]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(l&&f){const v=b=>h(b,f),g=b=>h(b,l);return l.addEventListener("pointerleave",v),f.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",g)}}},[l,f,h,m]),d.useEffect(()=>{if(i){const v=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},x=l?.contains(b)||f?.contains(b),S=!DU(y,i);x?m():S&&(m(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,f,i,u,m]),p.jsx(n1,{...e,ref:a})}),[RU,NU]=ns(Mo,{isInside:!1}),PU=oy("TooltipContent"),n1=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=aa(Or,n),u=rs(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener($d,f),()=>document.removeEventListener($d,f)),[f]),d.useEffect(()=>{if(l.trigger){const c=m=>{m.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,f]),p.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:p.jsxs(Vo,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(PU,{children:r}),p.jsx(RU,{scope:n,isInside:!0,children:p.jsx(sR,{id:l.contentId,role:"tooltip",children:o||r})})]})})});t1.displayName=Or;var r1="TooltipArrow",MU=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=rs(n);return NU(r1,n).isInside?null:p.jsx(Uo,{...o,...r,ref:t})});MU.displayName=r1;function TU(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function OU(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function AU(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function DU(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],u=s.x,f=s.y,c=l.x,m=l.y;f>r!=m>r&&n<(c-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function IU(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),kU(t)}function kU(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var jU=ZP,$U=QP,LU=JP,FU=e1,o1=t1;const a1=jU,i1=$U,s1=LU,Qp=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(FU,{children:p.jsx(o1,{ref:r,sideOffset:t,className:N("z-50 overflow-hidden rounded-md bg-surface-1 px-3 py-1.5 text-xs text-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));Qp.displayName=o1.displayName;const BU="sidebar_state",zU=3600*24*7,qU="16rem",WU="18rem",HU="3rem",GU="b",l1=d.createContext(null);function ia(){const e=d.useContext(l1);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const c1=d.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i},s)=>{const l=yU(),[u,f]=d.useState(!1),[c,m]=d.useState(e),h=t??c,v=d.useCallback(x=>{const S=typeof x=="function"?x(h):x;n?n(S):m(S),document.cookie=`${BU}=${S}; path=/; max-age=${zU}`},[n,h]),g=d.useCallback(()=>l?f(x=>!x):v(x=>!x),[l,v,f]);d.useEffect(()=>{const x=S=>{S.key===GU&&(S.metaKey||S.ctrlKey)&&(S.preventDefault(),g())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[g]);const b=h?"expanded":"collapsed",y=d.useMemo(()=>({state:b,open:h,setOpen:v,isMobile:l,openMobile:u,setOpenMobile:f,toggleSidebar:g}),[b,h,v,l,u,f,g]);return p.jsx(l1.Provider,{value:y,children:p.jsx(a1,{delayDuration:0,children:p.jsx("div",{style:{"--sidebar-width":qU,"--sidebar-width-icon":HU,...o},className:N("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:a})})})});c1.displayName="SidebarProvider";const u1=d.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},i)=>{const{isMobile:s,state:l,openMobile:u,setOpenMobile:f}=ia();return n==="none"?p.jsx("div",{className:N("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...a,children:o}):s?p.jsx(UP,{open:u,onOpenChange:f,...a,children:p.jsxs(Vp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":WU},side:e,children:[p.jsxs(Up,{className:"sr-only",children:[p.jsx(Kp,{children:"Sidebar"}),p.jsx(Yp,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[p.jsx("div",{className:N("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),p.jsx("div",{className:N("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:p.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});u1.displayName="Sidebar";const d1=d.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=ia();return p.jsxs(Mn,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:N("h-7 w-7",e),onClick:a=>{t?.(a),o()},...n,children:[p.jsx(oO,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});d1.displayName="SidebarTrigger";const f1=d.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=ia();return p.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:N("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});f1.displayName="SidebarRail";const p1=d.forwardRef(({className:e,...t},n)=>p.jsx("main",{ref:n,className:N("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));p1.displayName="SidebarInset";const m1=d.forwardRef(({className:e,...t},n)=>p.jsx(qi,{ref:n,"data-sidebar":"input",className:N("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));m1.displayName="SidebarInput";const h1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t}));h1.displayName="SidebarHeader";const g1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t}));g1.displayName="SidebarFooter";const v1=d.forwardRef(({className:e,...t},n)=>p.jsx($r,{ref:n,"data-sidebar":"separator",className:N("mx-2 w-auto bg-sidebar-border",e),...t}));v1.displayName="SidebarSeparator";const b1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));b1.displayName="SidebarContent";const y1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t}));y1.displayName="SidebarGroup";const x1=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Kt:"div";return p.jsx(o,{ref:r,"data-sidebar":"group-label",className:N("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});x1.displayName="SidebarGroupLabel";const w1=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Kt:"button";return p.jsx(o,{ref:r,"data-sidebar":"group-action",className:N("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});w1.displayName="SidebarGroupAction";const S1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"group-content",className:N("w-full text-sm",e),...t}));S1.displayName="SidebarGroupContent";const C1=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,"data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t}));C1.displayName="SidebarMenu";const _1=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,"data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t}));_1.displayName="SidebarMenuItem";const VU=Ke("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),E1=d.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i},s)=>{const l=e?Kt:"button",{isMobile:u,state:f}=ia(),c=p.jsx(l,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(VU({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),p.jsxs(i1,{children:[p.jsx(s1,{asChild:!0,children:c}),p.jsx(Qp,{side:"right",align:"center",hidden:f!=="collapsed"||u,...o})]})):c});E1.displayName="SidebarMenuButton";const R1=d.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?Kt:"button";return p.jsx(a,{ref:o,"data-sidebar":"menu-action",className:N("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});R1.displayName="SidebarMenuAction";const N1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:N("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));N1.displayName="SidebarMenuBadge";const P1=d.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return p.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&p.jsx(jd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),p.jsx(jd,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});P1.displayName="SidebarMenuSkeleton";const M1=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:N("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));M1.displayName="SidebarMenuSub";const T1=d.forwardRef(({...e},t)=>p.jsx("li",{ref:t,...e}));T1.displayName="SidebarMenuSubItem";const O1=d.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const i=e?Kt:"a";return p.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});O1.displayName="SidebarMenuSubButton";var A1=["PageUp","PageDown"],D1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],I1={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Gr="Slider",[Fd,UU,KU]=Nn(Gr),[k1]=ke(Gr,[KU]),[YU,os]=k1(Gr),j1=d.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:c=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:v,...g}=e,b=d.useRef(new Set),y=d.useRef(0),S=i==="horizontal"?XU:ZU,[C=[],E]=Ae({prop:f,defaultProp:u,onChange:T=>{[...b.current][y.current]?.focus(),c(T)}}),R=d.useRef(C);function _(T){const j=n4(C,T);k(T,j)}function P(T){k(T,y.current)}function M(){const T=R.current[y.current];C[y.current]!==T&&m(C)}function k(T,j,{commit:O}={commit:!1}){const F=i4(a),H=s4(Math.round((T-r)/a)*a+r,F),$=Po(H,[r,o]);E((K=[])=>{const V=e4(K,$,j);if(a4(V,l*a)){y.current=V.indexOf($);const q=String(V)!==String(K);return q&&O&&m(V),q?V:K}else return K})}return p.jsx(YU,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:C,orientation:i,form:v,children:p.jsx(Fd.Provider,{scope:e.__scopeSlider,children:p.jsx(Fd.Slot,{scope:e.__scopeSlider,children:p.jsx(S,{"aria-disabled":s,"data-disabled":s?"":void 0,...g,ref:t,onPointerDown:G(g.onPointerDown,()=>{s||(R.current=C)}),min:r,max:o,inverted:h,onSlideStart:s?void 0:_,onSlideMove:s?void 0:P,onSlideEnd:s?void 0:M,onHomeKeyDown:()=>!s&&k(r,0,{commit:!0}),onEndKeyDown:()=>!s&&k(o,C.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:j})=>{if(!s){const H=A1.includes(T.key)||T.shiftKey&&D1.includes(T.key)?10:1,$=y.current,K=C[$],V=a*H*j;k(K+V,$,{commit:!0})}}})})})})});j1.displayName=Gr;var[$1,L1]=k1(Gr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),XU=d.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...f}=e,[c,m]=d.useState(null),h=ce(t,S=>m(S)),v=d.useRef(void 0),g=It(o),b=g==="ltr",y=b&&!a||!b&&a;function x(S){const C=v.current||c.getBoundingClientRect(),E=[0,C.width],_=Jp(E,y?[n,r]:[r,n]);return v.current=C,_(S-C.left)}return p.jsx($1,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:p.jsx(F1,{dir:g,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:S=>{const C=x(S.clientX);i?.(C)},onSlideMove:S=>{const C=x(S.clientX);s?.(C)},onSlideEnd:()=>{v.current=void 0,l?.()},onStepKeyDown:S=>{const E=I1[y?"from-left":"from-right"].includes(S.key);u?.({event:S,direction:E?-1:1})}})})}),ZU=d.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...u}=e,f=d.useRef(null),c=ce(t,f),m=d.useRef(void 0),h=!o;function v(g){const b=m.current||f.current.getBoundingClientRect(),y=[0,b.height],S=Jp(y,h?[r,n]:[n,r]);return m.current=b,S(g-b.top)}return p.jsx($1,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(F1,{"data-orientation":"vertical",...u,ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=v(g.clientY);a?.(b)},onSlideMove:g=>{const b=v(g.clientY);i?.(b)},onSlideEnd:()=>{m.current=void 0,s?.()},onStepKeyDown:g=>{const y=I1[h?"from-bottom":"from-top"].includes(g.key);l?.({event:g,direction:y?-1:1})}})})}),F1=d.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...u}=e,f=os(Gr,n);return p.jsx(ne.span,{...u,ref:t,onKeyDown:G(e.onKeyDown,c=>{c.key==="Home"?(i(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):A1.concat(D1).includes(c.key)&&(l(c),c.preventDefault())}),onPointerDown:G(e.onPointerDown,c=>{const m=c.target;m.setPointerCapture(c.pointerId),c.preventDefault(),f.thumbs.has(m)?m.focus():r(c)}),onPointerMove:G(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:G(e.onPointerUp,c=>{const m=c.target;m.hasPointerCapture(c.pointerId)&&(m.releasePointerCapture(c.pointerId),a(c))})})}),B1="SliderTrack",z1=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=os(B1,n);return p.jsx(ne.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});z1.displayName=B1;var Bd="SliderRange",q1=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=os(Bd,n),a=L1(Bd,n),i=d.useRef(null),s=ce(t,i),l=o.values.length,u=o.values.map(m=>G1(m,o.min,o.max)),f=l>1?Math.min(...u):0,c=100-Math.max(...u);return p.jsx(ne.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:c+"%"}})});q1.displayName=Bd;var zd="SliderThumb",W1=d.forwardRef((e,t)=>{const n=UU(e.__scopeSlider),[r,o]=d.useState(null),a=ce(t,s=>o(s)),i=d.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return p.jsx(QU,{...e,ref:a,index:i})}),QU=d.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=os(zd,n),s=L1(zd,n),[l,u]=d.useState(null),f=ce(t,x=>u(x)),c=l?i.form||!!l.closest("form"):!0,m=Wo(l),h=i.values[r],v=h===void 0?0:G1(h,i.min,i.max),g=t4(r,i.values.length),b=m?.[s.size],y=b?r4(b,v,s.direction):0;return d.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${v}% + ${y}px)`},children:[p.jsx(Fd.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ne.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:f,style:h===void 0?{display:"none"}:e.style,onFocus:G(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),c&&p.jsx(H1,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:h},r)]})});W1.displayName=zd;var JU="RadioBubbleInput",H1=d.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=d.useRef(null),a=ce(o,r),i=Fr(t);return d.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const c=new Event("input",{bubbles:!0});f.call(s,t),s.dispatchEvent(c)}},[i,t]),p.jsx(ne.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});H1.displayName=JU;function e4(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function G1(e,t,n){const a=100/(n-t)*(e-t);return Po(a,[0,100])}function t4(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function n4(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function r4(e,t,n){const r=e/2,a=Jp([0,50],[0,r]);return(r-a(t)*n)*n}function o4(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function a4(e,t){if(t>0){const n=o4(e);return Math.min(...n)>=t}return!0}function Jp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function i4(e){return(String(e).split(".")[1]||"").length}function s4(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var V1=j1,l4=z1,c4=q1,u4=W1;const U1=d.forwardRef(({className:e,...t},n)=>p.jsxs(V1,{ref:n,className:N("relative flex touch-none select-none items-center",e),...t,children:[p.jsx(l4,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary-dark/50",children:p.jsx(c4,{className:"absolute h-full bg-primary-light"})}),p.jsx(u4,{className:"block h-4 w-4 rounded-full border border-primary-light bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));U1.displayName=V1.displayName;var d4=(e,t,n,r,o,a,i,s)=>{let l=document.documentElement,u=["light","dark"];function f(h){(Array.isArray(e)?e:[e]).forEach(v=>{let g=v==="class",b=g&&a?o.map(y=>a[y]||y):o;g?(l.classList.remove(...b),l.classList.add(a&&a[h]?a[h]:h)):l.setAttribute(v,h)}),c(h)}function c(h){s&&u.includes(h)&&(l.style.colorScheme=h)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)f(r);else try{let h=localStorage.getItem(t)||n,v=i&&h==="system"?m():h;f(v)}catch{}},f4=d.createContext(void 0),p4={setTheme:e=>{},themes:[]},m4=()=>{var e;return(e=d.useContext(f4))!=null?e:p4};d.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:i,themes:s,nonce:l,scriptProps:u})=>{let f=JSON.stringify([n,t,a,e,s,i,r,o]).slice(1,-1);return d.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${d4.toString()})(${f})`}})});function h4(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const g4=e=>{switch(e){case"success":return y4;case"info":return w4;case"warning":return x4;case"error":return S4;default:return null}},v4=Array(12).fill(0),b4=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},v4.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),y4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),x4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),w4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),S4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),C4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_4=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let qd=1;class E4{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:qd++,i=this.toasts.find(l=>l.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,i;const s=o.then(async u=>{if(i=["resolve",u],w.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(N4(u)&&!u.ok){a=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,v=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...v})}else if(u instanceof Error){a=!1;const c=typeof n.error=="function"?await n.error(u):n.error,m=typeof n.description=="function"?await n.description(u):n.description,v=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...v})}else if(n.success!==void 0){a=!1;const c=typeof n.success=="function"?await n.success(u):n.success,m=typeof n.description=="function"?await n.description(u):n.description,v=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:m,...v})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){a=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,h=typeof f=="object"&&!w.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...h})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,f)=>s.then(()=>i[0]==="reject"?f(i[1]):u(i[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||qd++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ut=new E4,R4=(e,t)=>{const n=t?.id||qd++;return ut.addToast({title:e,...t,id:n}),n},N4=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",P4=R4,M4=()=>ut.toasts,T4=()=>ut.getActiveToasts();Object.assign(P4,{success:ut.success,info:ut.info,warning:ut.warning,error:ut.error,custom:ut.custom,message:ut.message,promise:ut.promise,dismiss:ut.dismiss,loading:ut.loading},{getHistory:M4,getToasts:T4});h4("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function _a(e){return e.label!==void 0}const O4=3,A4="24px",D4="16px",Qb=4e3,I4=356,k4=14,j4=45,$4=200;function zt(...e){return e.filter(Boolean).join(" ")}function L4(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const F4=e=>{var t,n,r,o,a,i,s,l,u;const{invert:f,toast:c,unstyled:m,interacting:h,setHeights:v,visibleToasts:g,heights:b,index:y,toasts:x,expanded:S,removeToast:C,defaultRichColors:E,closeButton:R,style:_,cancelButtonStyle:P,actionButtonStyle:M,className:k="",descriptionClassName:T="",duration:j,position:O,gap:F,expandByDefault:H,classNames:$,icons:K,closeButtonAriaLabel:V="Close toast"}=e,[q,ee]=w.useState(null),[J,B]=w.useState(null),[D,z]=w.useState(!1),[L,U]=w.useState(!1),[I,W]=w.useState(!1),[Q,te]=w.useState(!1),[re,Y]=w.useState(!1),[ie,A]=w.useState(0),[oe,fe]=w.useState(0),pe=w.useRef(c.duration||j||Qb),me=w.useRef(null),de=w.useRef(null),xe=y===0,je=y+1<=g,ye=c.type,Ee=c.dismissible!==!1,qe=c.className||"",We=c.descriptionClassName||"",Ye=w.useMemo(()=>b.findIndex(Z=>Z.toastId===c.id)||0,[b,c.id]),Je=w.useMemo(()=>{var Z;return(Z=c.closeButton)!=null?Z:R},[c.closeButton,R]),it=w.useMemo(()=>c.duration||j||Qb,[c.duration,j]),st=w.useRef(0),He=w.useRef(0),vt=w.useRef(0),Ge=w.useRef(null),[Xe,_t]=O.split("-"),Bt=w.useMemo(()=>b.reduce((Z,ve,we)=>we>=Ye?Z:Z+ve.height,0),[b,Ye]),hn=_4(),gn=c.invert||f,nn=ye==="loading";He.current=w.useMemo(()=>Ye*F+Bt,[Ye,Bt]),w.useEffect(()=>{pe.current=it},[it]),w.useEffect(()=>{z(!0)},[]),w.useEffect(()=>{const Z=de.current;if(Z){const ve=Z.getBoundingClientRect().height;return fe(ve),v(we=>[{toastId:c.id,height:ve,position:c.position},...we]),()=>v(we=>we.filter(Re=>Re.toastId!==c.id))}},[v,c.id]),w.useLayoutEffect(()=>{if(!D)return;const Z=de.current,ve=Z.style.height;Z.style.height="auto";const we=Z.getBoundingClientRect().height;Z.style.height=ve,fe(we),v(Re=>Re.find(Se=>Se.toastId===c.id)?Re.map(Se=>Se.toastId===c.id?{...Se,height:we}:Se):[{toastId:c.id,height:we,position:c.position},...Re])},[D,c.title,c.description,v,c.id,c.jsx,c.action,c.cancel]);const X=w.useCallback(()=>{U(!0),A(He.current),v(Z=>Z.filter(ve=>ve.toastId!==c.id)),setTimeout(()=>{C(c)},$4)},[c,C,v,He]);w.useEffect(()=>{if(c.promise&&ye==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return S||h||hn?(()=>{if(vt.current<st.current){const Re=new Date().getTime()-st.current;pe.current=pe.current-Re}vt.current=new Date().getTime()})():(()=>{pe.current!==1/0&&(st.current=new Date().getTime(),Z=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),X()},pe.current))})(),()=>clearTimeout(Z)},[S,h,c,ye,hn,X]),w.useEffect(()=>{c.delete&&(X(),c.onDismiss==null||c.onDismiss.call(c,c))},[X,c.delete]);function le(){var Z;if(K?.loading){var ve;return w.createElement("div",{className:zt($?.loader,c==null||(ve=c.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":ye==="loading"},K.loading)}return w.createElement(b4,{className:zt($?.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:ye==="loading"})}const ae=c.icon||K?.[ye]||g4(ye);var se,be;return w.createElement("li",{tabIndex:0,ref:de,className:zt(k,qe,$?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,$?.default,$?.[ye],c==null||(n=c.classNames)==null?void 0:n[ye]),"data-sonner-toast":"","data-rich-colors":(se=c.richColors)!=null?se:E,"data-styled":!(c.jsx||c.unstyled||m),"data-mounted":D,"data-promise":!!c.promise,"data-swiped":re,"data-removed":L,"data-visible":je,"data-y-position":Xe,"data-x-position":_t,"data-index":y,"data-front":xe,"data-swiping":I,"data-dismissible":Ee,"data-type":ye,"data-invert":gn,"data-swipe-out":Q,"data-swipe-direction":J,"data-expanded":!!(S||H&&D),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${L?ie:He.current}px`,"--initial-height":H?"auto":`${oe}px`,..._,...c.style},onDragEnd:()=>{W(!1),ee(null),Ge.current=null},onPointerDown:Z=>{Z.button!==2&&(nn||!Ee||(me.current=new Date,A(He.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(W(!0),Ge.current={x:Z.clientX,y:Z.clientY})))},onPointerUp:()=>{var Z,ve,we;if(Q||!Ee)return;Ge.current=null;const Re=Number(((Z=de.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),et=Number(((ve=de.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Se=new Date().getTime()-((we=me.current)==null?void 0:we.getTime()),$e=q==="x"?Re:et,rn=Math.abs($e)/Se;if(Math.abs($e)>=j4||rn>.11){A(He.current),c.onDismiss==null||c.onDismiss.call(c,c),B(q==="x"?Re>0?"right":"left":et>0?"down":"up"),X(),te(!0);return}else{var lt,Et;(lt=de.current)==null||lt.style.setProperty("--swipe-amount-x","0px"),(Et=de.current)==null||Et.style.setProperty("--swipe-amount-y","0px")}Y(!1),W(!1),ee(null)},onPointerMove:Z=>{var ve,we,Re;if(!Ge.current||!Ee||((ve=window.getSelection())==null?void 0:ve.toString().length)>0)return;const Se=Z.clientY-Ge.current.y,$e=Z.clientX-Ge.current.x;var rn;const lt=(rn=e.swipeDirections)!=null?rn:L4(O);!q&&(Math.abs($e)>1||Math.abs(Se)>1)&&ee(Math.abs($e)>Math.abs(Se)?"x":"y");let Et={x:0,y:0};const am=jn=>1/(1.5+Math.abs(jn)/20);if(q==="y"){if(lt.includes("top")||lt.includes("bottom"))if(lt.includes("top")&&Se<0||lt.includes("bottom")&&Se>0)Et.y=Se;else{const jn=Se*am(Se);Et.y=Math.abs(jn)<Math.abs(Se)?jn:Se}}else if(q==="x"&&(lt.includes("left")||lt.includes("right")))if(lt.includes("left")&&$e<0||lt.includes("right")&&$e>0)Et.x=$e;else{const jn=$e*am($e);Et.x=Math.abs(jn)<Math.abs($e)?jn:$e}(Math.abs(Et.x)>0||Math.abs(Et.y)>0)&&Y(!0),(we=de.current)==null||we.style.setProperty("--swipe-amount-x",`${Et.x}px`),(Re=de.current)==null||Re.style.setProperty("--swipe-amount-y",`${Et.y}px`)}},Je&&!c.jsx&&ye!=="loading"?w.createElement("button",{"aria-label":V,"data-disabled":nn,"data-close-button":!0,onClick:nn||!Ee?()=>{}:()=>{X(),c.onDismiss==null||c.onDismiss.call(c,c)},className:zt($?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(be=K?.close)!=null?be:C4):null,(ye||c.icon||c.promise)&&c.icon!==null&&(K?.[ye]!==null||c.icon)?w.createElement("div",{"data-icon":"",className:zt($?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||le():null,c.type!=="loading"?ae:null):null,w.createElement("div",{"data-content":"",className:zt($?.content,c==null||(a=c.classNames)==null?void 0:a.content)},w.createElement("div",{"data-title":"",className:zt($?.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?w.createElement("div",{"data-description":"",className:zt(T,We,$?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),w.isValidElement(c.cancel)?c.cancel:c.cancel&&_a(c.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||P,onClick:Z=>{_a(c.cancel)&&Ee&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Z),X())},className:zt($?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,w.isValidElement(c.action)?c.action:c.action&&_a(c.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||M,onClick:Z=>{_a(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&X())},className:zt($?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Jb(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function B4(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,i=a?"--mobile-offset":"--offset",s=a?D4:A4;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=s:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const z4=w.forwardRef(function(t,n){const{id:r,invert:o,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:f,mobileOffset:c,theme:m="light",richColors:h,duration:v,style:g,visibleToasts:b=O4,toastOptions:y,dir:x=Jb(),gap:S=k4,icons:C,containerAriaLabel:E="Notifications"}=t,[R,_]=w.useState([]),P=w.useMemo(()=>r?R.filter(D=>D.toasterId===r):R.filter(D=>!D.toasterId),[R,r]),M=w.useMemo(()=>Array.from(new Set([a].concat(P.filter(D=>D.position).map(D=>D.position)))),[P,a]),[k,T]=w.useState([]),[j,O]=w.useState(!1),[F,H]=w.useState(!1),[$,K]=w.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=w.useRef(null),q=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),ee=w.useRef(null),J=w.useRef(!1),B=w.useCallback(D=>{_(z=>{var L;return(L=z.find(U=>U.id===D.id))!=null&&L.delete||ut.dismiss(D.id),z.filter(({id:U})=>U!==D.id)})},[]);return w.useEffect(()=>ut.subscribe(D=>{if(D.dismiss){requestAnimationFrame(()=>{_(z=>z.map(L=>L.id===D.id?{...L,delete:!0}:L))});return}setTimeout(()=>{li.flushSync(()=>{_(z=>{const L=z.findIndex(U=>U.id===D.id);return L!==-1?[...z.slice(0,L),{...z[L],...D},...z.slice(L+1)]:[D,...z]})})})}),[R]),w.useEffect(()=>{if(m!=="system"){K(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:z})=>{K(z?"dark":"light")})}catch{D.addListener(({matches:L})=>{try{K(L?"dark":"light")}catch(U){console.error(U)}})}},[m]),w.useEffect(()=>{R.length<=1&&O(!1)},[R]),w.useEffect(()=>{const D=z=>{var L;if(i.every(W=>z[W]||z.code===W)){var I;O(!0),(I=V.current)==null||I.focus()}z.code==="Escape"&&(document.activeElement===V.current||(L=V.current)!=null&&L.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[i]),w.useEffect(()=>{if(V.current)return()=>{ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null,J.current=!1)}},[V.current]),w.createElement("section",{ref:n,"aria-label":`${E} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((D,z)=>{var L;const[U,I]=D.split("-");return P.length?w.createElement("ol",{key:D,dir:x==="auto"?Jb():x,tabIndex:-1,ref:V,className:u,"data-sonner-toaster":!0,"data-sonner-theme":$,"data-y-position":U,"data-x-position":I,style:{"--front-toast-height":`${((L=k[0])==null?void 0:L.height)||0}px`,"--width":`${I4}px`,"--gap":`${S}px`,...g,...B4(f,c)},onBlur:W=>{J.current&&!W.currentTarget.contains(W.relatedTarget)&&(J.current=!1,ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null))},onFocus:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||J.current||(J.current=!0,ee.current=W.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{F||O(!1)},onDragEnd:()=>O(!1),onPointerDown:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},P.filter(W=>!W.position&&z===0||W.position===D).map((W,Q)=>{var te,re;return w.createElement(F4,{key:W.id,icons:C,index:Q,toast:W,defaultRichColors:h,duration:(te=y?.duration)!=null?te:v,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:b,closeButton:(re=y?.closeButton)!=null?re:l,interacting:F,position:D,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:B,toasts:P.filter(Y=>Y.position==W.position),heights:k.filter(Y=>Y.position==W.position),setHeights:T,expandByDefault:s,gap:S,expanded:j,swipeDirections:t.swipeDirections})})):null}))}),q4=({...e})=>{const{theme:t="system"}=m4();return p.jsx(z4,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function W4({className:e,...t}){return p.jsx(eO,{role:"status","aria-label":"Loading",className:N("size-4 animate-spin",e),...t})}var as="Switch",[H4]=ke(as),[G4,V4]=H4(as),K1=d.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:u,form:f,...c}=e,[m,h]=d.useState(null),v=ce(t,S=>h(S)),g=d.useRef(!1),b=m?f||!!m.closest("form"):!0,[y,x]=Ae({prop:o,defaultProp:a??!1,onChange:u,caller:as});return p.jsxs(G4,{scope:n,checked:y,disabled:s,children:[p.jsx(ne.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":Q1(y),"data-disabled":s?"":void 0,disabled:s,value:l,...c,ref:v,onClick:G(e.onClick,S=>{x(C=>!C),b&&(g.current=S.isPropagationStopped(),g.current||S.stopPropagation())})}),b&&p.jsx(Z1,{control:m,bubbles:!g.current,name:r,value:l,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});K1.displayName=as;var Y1="SwitchThumb",X1=d.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=V4(Y1,n);return p.jsx(ne.span,{"data-state":Q1(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});X1.displayName=Y1;var U4="SwitchBubbleInput",Z1=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=d.useRef(null),s=ce(i,a),l=Fr(n),u=Wo(t);return d.useEffect(()=>{const f=i.current;if(!f)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&h){const v=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(v)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Z1.displayName=U4;function Q1(e){return e?"checked":"unchecked"}var J1=K1,K4=X1;const eM=d.forwardRef(({className:e,...t},n)=>p.jsx(J1,{className:N("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(K4,{className:N("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));eM.displayName=J1.displayName;const tM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:n,className:N("w-full caption-bottom text-sm",e),...t})}));tM.displayName="Table";const nM=d.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:N("[&_tr]:border-b",e),...t}));nM.displayName="TableHeader";const rM=d.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:N("[&_tr:last-child]:border-0",e),...t}));rM.displayName="TableBody";const oM=d.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:N("border-t bg-background/50 font-medium [&>tr]:last:border-b-0",e),...t}));oM.displayName="TableFooter";const aM=d.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:N("border-b transition-colors hover:bg-background/50 data-[state=selected]:bg-background",e),...t}));aM.displayName="TableRow";const iM=d.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:N("h-10 px-2 text-left align-middle font-medium text-foreground/70 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));iM.displayName="TableHead";const sM=d.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:N("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));sM.displayName="TableCell";const lM=d.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:N("mt-4 text-sm text-foreground/70",e),...t}));lM.displayName="TableCaption";var is="Tabs",[Y4]=ke(is,[en]),cM=en(),[X4,em]=Y4(is),uM=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...u}=e,f=It(s),[c,m]=Ae({prop:r,onChange:o,defaultProp:a??"",caller:is});return p.jsx(X4,{scope:n,baseId:Te(),value:c,onValueChange:m,orientation:i,dir:f,activationMode:l,children:p.jsx(ne.div,{dir:f,"data-orientation":i,...u,ref:t})})});uM.displayName=is;var dM="TabsList",fM=d.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=em(dM,n),i=cM(n);return p.jsx(Yo,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(ne.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});fM.displayName=dM;var pM="TabsTrigger",mM=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=em(pM,n),s=cM(n),l=vM(i.baseId,r),u=bM(i.baseId,r),f=r===i.value;return p.jsx(Xo,{asChild:!0,...s,focusable:!o,active:f,children:p.jsx(ne.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:G(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?i.onValueChange(r):c.preventDefault()}),onKeyDown:G(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&i.onValueChange(r)}),onFocus:G(e.onFocus,()=>{const c=i.activationMode!=="manual";!f&&!o&&c&&i.onValueChange(r)})})})});mM.displayName=pM;var hM="TabsContent",gM=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=em(hM,n),l=vM(s.baseId,r),u=bM(s.baseId,r),f=r===s.value,c=d.useRef(f);return d.useEffect(()=>{const m=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(m)},[]),p.jsx(De,{present:o||f,children:({present:m})=>p.jsx(ne.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:m&&a})})});gM.displayName=hM;function vM(e,t){return`${e}-trigger-${t}`}function bM(e,t){return`${e}-content-${t}`}var Z4=uM,yM=fM,xM=mM,wM=gM;const Q4=Z4,SM=d.forwardRef(({className:e,...t},n)=>p.jsx(yM,{ref:n,className:N("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));SM.displayName=yM.displayName;const CM=d.forwardRef(({className:e,...t},n)=>p.jsx(xM,{ref:n,className:N("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));CM.displayName=xM.displayName;const _M=d.forwardRef(({className:e,...t},n)=>p.jsx(wM,{ref:n,className:N("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));_M.displayName=wM.displayName;var EM="Toggle",tm=d.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,s]=Ae({prop:n,onChange:o,defaultProp:r??!1,caller:EM});return p.jsx(ne.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:G(e.onClick,()=>{e.disabled||s(!i)})})});tm.displayName=EM;var RM=tm;const nm=Ke("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),NM=d.forwardRef(({className:e,variant:t,size:n,...r},o)=>p.jsx(RM,{ref:o,className:N(nm({variant:t,size:n,className:e})),...r}));NM.displayName=RM.displayName;var kn="ToggleGroup",[PM]=ke(kn,[en]),MM=en(),rm=w.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return p.jsx(J4,{...o,ref:t})}if(n==="multiple"){const o=r;return p.jsx(eK,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${kn}\``)});rm.displayName=kn;var[TM,OM]=PM(kn),J4=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ae({prop:n,defaultProp:r??"",onChange:o,caller:kn});return p.jsx(TM,{scope:e.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(AM,{...a,ref:t})})}),eK=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ae({prop:n,defaultProp:r??[],onChange:o,caller:kn}),l=w.useCallback(f=>s((c=[])=>[...c,f]),[s]),u=w.useCallback(f=>s((c=[])=>c.filter(m=>m!==f)),[s]);return p.jsx(TM,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:p.jsx(AM,{...a,ref:t})})});rm.displayName=kn;var[tK,nK]=PM(kn),AM=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=MM(n),f=It(i),c={role:"group",dir:f,...l};return p.jsx(tK,{scope:n,rovingFocus:o,disabled:r,children:o?p.jsx(Yo,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:p.jsx(ne.div,{...c,ref:t})}):p.jsx(ne.div,{...c,ref:t})})}),oi="ToggleGroupItem",DM=w.forwardRef((e,t)=>{const n=OM(oi,e.__scopeToggleGroup),r=nK(oi,e.__scopeToggleGroup),o=MM(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=w.useRef(null);return r.rovingFocus?p.jsx(Xo,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:p.jsx(ey,{...s,ref:t})}):p.jsx(ey,{...s,ref:t})});DM.displayName=oi;var ey=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=OM(oi,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(tm,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}})}),IM=rm,kM=DM;const jM=d.createContext({size:"default",variant:"default"}),$M=d.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>p.jsx(IM,{ref:a,className:N("flex items-center justify-center gap-1",e),...o,children:p.jsx(jM.Provider,{value:{variant:t,size:n},children:r})}));$M.displayName=IM.displayName;const LM=d.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const i=d.useContext(jM);return p.jsx(kM,{ref:a,className:N(nm({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});LM.displayName=kM.displayName;var rK=Object.defineProperty,oK=Object.defineProperties,aK=Object.getOwnPropertyDescriptors,ai=Object.getOwnPropertySymbols,FM=Object.prototype.hasOwnProperty,BM=Object.prototype.propertyIsEnumerable,ty=(e,t,n)=>t in e?rK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iK=(e,t)=>{for(var n in t||(t={}))FM.call(t,n)&&ty(e,n,t[n]);if(ai)for(var n of ai(t))BM.call(t,n)&&ty(e,n,t[n]);return e},sK=(e,t)=>oK(e,aK(t)),lK=(e,t)=>{var n={};for(var r in e)FM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ai)for(var r of ai(e))t.indexOf(r)<0&&BM.call(e,r)&&(n[r]=e[r]);return n};function cK(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function uK(e){let t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current}var dK=18,zM=40,fK=`${zM}px`,pK=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function mK({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=d.useState(!1),[i,s]=d.useState(!1),[l,u]=d.useState(!1),f=d.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&i,[o,i,n]),c=d.useCallback(()=>{let m=e.current,h=t.current;if(!m||!h||l||n==="none")return;let v=m,g=v.getBoundingClientRect().left+v.offsetWidth,b=v.getBoundingClientRect().top+v.offsetHeight/2,y=g-dK,x=b;document.querySelectorAll(pK).length===0&&document.elementFromPoint(y,x)===m||(a(!0),u(!0))},[e,t,l,n]);return d.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function h(){let g=window.innerWidth-m.getBoundingClientRect().right;s(g>=zM)}h();let v=setInterval(h,1e3);return()=>{clearInterval(v)}},[e,n]),d.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let h=setTimeout(c,0),v=setTimeout(c,2e3),g=setTimeout(c,5e3),b=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(h),clearTimeout(v),clearTimeout(g),clearTimeout(b)}},[t,r,n,c]),{hasPWMBadge:o,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:fK}}var qM=d.createContext({}),WM=d.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:l,inputMode:u="numeric",onComplete:f,pushPasswordManagerStrategy:c="increase-width",pasteTransformer:m,containerClassName:h,noScriptCSSFallback:v=hK,render:g,children:b}=n,y=lK(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),x,S,C,E,R;let[_,P]=d.useState(typeof y.defaultValue=="string"?y.defaultValue:""),M=r??_,k=uK(M),T=d.useCallback(A=>{o?.(A),P(A)},[o]),j=d.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),O=d.useRef(null),F=d.useRef(null),H=d.useRef({value:M,onChange:T,isIOS:typeof window<"u"&&((S=(x=window?.CSS)==null?void 0:x.supports)==null?void 0:S.call(x,"-webkit-touch-callout","none"))}),$=d.useRef({prev:[(C=O.current)==null?void 0:C.selectionStart,(E=O.current)==null?void 0:E.selectionEnd,(R=O.current)==null?void 0:R.selectionDirection]});d.useImperativeHandle(t,()=>O.current,[]),d.useEffect(()=>{let A=O.current,oe=F.current;if(!A||!oe)return;H.current.value!==A.value&&H.current.onChange(A.value),$.current.prev=[A.selectionStart,A.selectionEnd,A.selectionDirection];function fe(){if(document.activeElement!==A){B(null),z(null);return}let de=A.selectionStart,xe=A.selectionEnd,je=A.selectionDirection,ye=A.maxLength,Ee=A.value,qe=$.current.prev,We=-1,Ye=-1,Je;if(Ee.length!==0&&de!==null&&xe!==null){let vt=de===xe,Ge=de===Ee.length&&Ee.length<ye;if(vt&&!Ge){let Xe=de;if(Xe===0)We=0,Ye=1,Je="forward";else if(Xe===ye)We=Xe-1,Ye=Xe,Je="backward";else if(ye>1&&Ee.length>1){let _t=0;if(qe[0]!==null&&qe[1]!==null){Je=Xe<qe[1]?"backward":"forward";let Bt=qe[0]===qe[1]&&qe[0]<ye;Je==="backward"&&!Bt&&(_t=-1)}We=_t+Xe,Ye=_t+Xe+1}}We!==-1&&Ye!==-1&&We!==Ye&&O.current.setSelectionRange(We,Ye,Je)}let it=We!==-1?We:de,st=Ye!==-1?Ye:xe,He=Je??je;B(it),z(st),$.current.prev=[it,st,He]}if(document.addEventListener("selectionchange",fe,{capture:!0}),fe(),document.activeElement===A&&ee(!0),!document.getElementById("input-otp-style")){let de=document.createElement("style");if(de.id="input-otp-style",document.head.appendChild(de),de.sheet){let xe="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";eo(de.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),eo(de.sheet,`[data-input-otp]:autofill { ${xe} }`),eo(de.sheet,`[data-input-otp]:-webkit-autofill { ${xe} }`),eo(de.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),eo(de.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let pe=()=>{oe&&oe.style.setProperty("--root-height",`${A.clientHeight}px`)};pe();let me=new ResizeObserver(pe);return me.observe(A),()=>{document.removeEventListener("selectionchange",fe,{capture:!0}),me.disconnect()}},[]);let[K,V]=d.useState(!1),[q,ee]=d.useState(!1),[J,B]=d.useState(null),[D,z]=d.useState(null);d.useEffect(()=>{cK(()=>{var A,oe,fe,pe;(A=O.current)==null||A.dispatchEvent(new Event("input"));let me=(oe=O.current)==null?void 0:oe.selectionStart,de=(fe=O.current)==null?void 0:fe.selectionEnd,xe=(pe=O.current)==null?void 0:pe.selectionDirection;me!==null&&de!==null&&(B(me),z(de),$.current.prev=[me,de,xe])})},[M,q]),d.useEffect(()=>{k!==void 0&&M!==k&&k.length<a&&M.length===a&&f?.(M)},[a,f,k,M]);let L=mK({containerRef:F,inputRef:O,pushPasswordManagerStrategy:c,isFocused:q}),U=d.useCallback(A=>{let oe=A.currentTarget.value.slice(0,a);if(oe.length>0&&j&&!j.test(oe)){A.preventDefault();return}typeof k=="string"&&oe.length<k.length&&document.dispatchEvent(new Event("selectionchange")),T(oe)},[a,T,k,j]),I=d.useCallback(()=>{var A;if(O.current){let oe=Math.min(O.current.value.length,a-1),fe=O.current.value.length;(A=O.current)==null||A.setSelectionRange(oe,fe),B(oe),z(fe)}ee(!0)},[a]),W=d.useCallback(A=>{var oe,fe;let pe=O.current;if(!m&&(!H.current.isIOS||!A.clipboardData||!pe))return;let me=A.clipboardData.getData("text/plain"),de=m?m(me):me;A.preventDefault();let xe=(oe=O.current)==null?void 0:oe.selectionStart,je=(fe=O.current)==null?void 0:fe.selectionEnd,ye=(xe!==je?M.slice(0,xe)+de+M.slice(je):M.slice(0,xe)+de+M.slice(xe)).slice(0,a);if(ye.length>0&&j&&!j.test(ye))return;pe.value=ye,T(ye);let Ee=Math.min(ye.length,a-1),qe=ye.length;pe.setSelectionRange(Ee,qe),B(Ee),z(qe)},[a,T,j,M]),Q=d.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),te=d.useMemo(()=>({position:"absolute",inset:0,width:L.willPushPWMBadge?`calc(100% + ${L.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:L.willPushPWMBadge?`inset(0 ${L.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[L.PWM_BADGE_SPACE_WIDTH,L.willPushPWMBadge,i]),re=d.useMemo(()=>d.createElement("input",sK(iK({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":M.length===0||void 0,"data-input-otp-mss":J,"data-input-otp-mse":D,inputMode:u,pattern:j?.source,"aria-placeholder":l,style:te,maxLength:a,value:M,ref:O,onPaste:A=>{var oe;W(A),(oe=y.onPaste)==null||oe.call(y,A)},onChange:U,onMouseOver:A=>{var oe;V(!0),(oe=y.onMouseOver)==null||oe.call(y,A)},onMouseLeave:A=>{var oe;V(!1),(oe=y.onMouseLeave)==null||oe.call(y,A)},onFocus:A=>{var oe;I(),(oe=y.onFocus)==null||oe.call(y,A)},onBlur:A=>{var oe;ee(!1),(oe=y.onBlur)==null||oe.call(y,A)}})),[U,I,W,u,te,a,D,J,y,j?.source,M]),Y=d.useMemo(()=>({slots:Array.from({length:a}).map((A,oe)=>{var fe;let pe=q&&J!==null&&D!==null&&(J===D&&oe===J||oe>=J&&oe<D),me=M[oe]!==void 0?M[oe]:null,de=M[0]!==void 0?null:(fe=l?.[oe])!=null?fe:null;return{char:me,placeholderChar:de,isActive:pe,hasFakeCaret:pe&&me===null}}),isFocused:q,isHovering:!y.disabled&&K}),[q,K,a,D,J,y.disabled,M]),ie=d.useMemo(()=>g?g(Y):d.createElement(qM.Provider,{value:Y},b),[b,Y,g]);return d.createElement(d.Fragment,null,v!==null&&d.createElement("noscript",null,d.createElement("style",null,v)),d.createElement("div",{ref:F,"data-input-otp-container":!0,style:Q,className:h},ie,d.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},re)))});WM.displayName="Input";function eo(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var hK=`
73
+ Defaulting to \`null\`.`}var gN=fN,o3=mN;const vN=d.forwardRef(({className:e,value:t,...n},r)=>p.jsx(gN,{ref:r,className:N("relative h-2 overflow-hidden rounded-full bg-primary/20",e),...n,children:p.jsx(o3,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));vN.displayName=gN.displayName;var Bp="Radio",[a3,bN]=ke(Bp),[s3,i3]=a3(Bp),yN=d.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:l,form:u,...f}=e,[c,m]=d.useState(null),h=ce(t,b=>m(b)),v=d.useRef(!1),g=c?u||!!c.closest("form"):!0;return p.jsxs(s3,{scope:n,checked:o,disabled:s,children:[p.jsx(ne.button,{type:"button",role:"radio","aria-checked":o,"data-state":CN(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:U(e.onClick,b=>{o||l?.(),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&p.jsx(SN,{control:c,bubbles:!v.current,name:r,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});yN.displayName=Bp;var xN="RadioIndicator",wN=d.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=i3(xN,n);return p.jsx(De,{present:r||a.checked,children:p.jsx(ne.span,{"data-state":CN(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});wN.displayName=xN;var l3="RadioBubbleInput",SN=d.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=d.useRef(null),i=ce(s,a),l=zr(n),u=Go(t);return d.useEffect(()=>{const f=s.current;if(!f)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&h){const v=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(v)}},[l,n,r]),p.jsx(ne.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});SN.displayName=l3;function CN(e){return e?"checked":"unchecked"}var c3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ys="RadioGroup",[u3]=ke(Ys,[tn,bN]),_N=tn(),EN=bN(),[d3,f3]=u3(Ys),RN=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:u,loop:f=!0,onValueChange:c,...m}=e,h=_N(n),v=kt(u),[g,b]=Ae({prop:a,defaultProp:o??null,onChange:c,caller:Ys});return p.jsx(d3,{scope:n,name:r,required:s,disabled:i,value:g,onValueChange:b,children:p.jsx(Qo,{asChild:!0,...h,orientation:l,dir:v,loop:f,children:p.jsx(ne.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:v,...m,ref:t})})})});RN.displayName=Ys;var NN="RadioGroupItem",PN=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=f3(NN,n),s=a.disabled||r,i=_N(n),l=EN(n),u=d.useRef(null),f=ce(t,u),c=a.value===o.value,m=d.useRef(!1);return d.useEffect(()=>{const h=g=>{c3.includes(g.key)&&(m.current=!0)},v=()=>m.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),p.jsx(Jo,{asChild:!0,...i,focusable:!s,active:c,children:p.jsx(yN,{disabled:s,required:a.required,checked:c,...l,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:U(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:U(o.onFocus,()=>{m.current&&u.current?.click()})})})});PN.displayName=NN;var p3="RadioGroupIndicator",MN=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=EN(n);return p.jsx(wN,{...o,...r,ref:t})});MN.displayName=p3;var TN=RN,ON=PN,m3=MN;const AN=d.forwardRef(({className:e,...t},n)=>p.jsx(TN,{className:N("grid gap-2",e),...t,ref:n}));AN.displayName=TN.displayName;const DN=d.forwardRef(({className:e,...t},n)=>p.jsx(ON,{ref:n,className:N("aspect-square h-4 w-4 rounded-full border-2 border-primary-light text-primary-light shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx(m3,{className:"flex items-center justify-center",children:p.jsx(vs,{className:"h-2 w-2 fill-primary-light"})})}));DN.displayName=ON.displayName;const Xs=w.createContext(null);Xs.displayName="PanelGroupContext";const ze={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},zp=10,Wn=w.useLayoutEffect,Yb=d.useId,h3=typeof Yb=="function"?Yb:()=>null;let g3=0;function qp(e=null){const t=h3(),n=w.useRef(e||t||null);return n.current===null&&(n.current=""+g3++),e??n.current}function IN({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:a,id:s,maxSize:i,minSize:l,onCollapse:u,onExpand:f,onResize:c,order:m,style:h,tagName:v="div",...g}){const b=w.useContext(Xs);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:x,getPanelSize:S,getPanelStyle:C,groupId:E,isPanelCollapsed:R,reevaluatePanelConstraints:_,registerPanel:P,resizePanel:M,unregisterPanel:k}=b,T=qp(s),$=w.useRef({callbacks:{onCollapse:u,onExpand:f,onResize:c},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:i,minSize:l},id:T,idIsFromProps:s!==void 0,order:m});w.useRef({didLogMissingDefaultSizeWarning:!1}),Wn(()=>{const{callbacks:L,constraints:F}=$.current,D={...F};$.current.id=T,$.current.idIsFromProps=s!==void 0,$.current.order=m,L.onCollapse=u,L.onExpand=f,L.onResize=c,F.collapsedSize=n,F.collapsible=r,F.defaultSize=o,F.maxSize=i,F.minSize=l,(D.collapsedSize!==F.collapsedSize||D.collapsible!==F.collapsible||D.maxSize!==F.maxSize||D.minSize!==F.minSize)&&_($.current,D)}),Wn(()=>{const L=$.current;return P(L),()=>{k(L)}},[m,T,P,k]),w.useImperativeHandle(a,()=>({collapse:()=>{y($.current)},expand:L=>{x($.current,L)},getId(){return T},getSize(){return S($.current)},isCollapsed(){return R($.current)},isExpanded(){return!R($.current)},resize:L=>{M($.current,L)}}),[y,x,S,R,T,M]);const O=C($.current,o);return w.createElement(v,{...g,children:e,className:t,id:T,style:{...O,...h},[ze.groupId]:E,[ze.panel]:"",[ze.panelCollapsible]:r||void 0,[ze.panelId]:T,[ze.panelSize]:parseFloat(""+O.flexGrow).toFixed(1)})}const kN=w.forwardRef((e,t)=>w.createElement(IN,{...e,forwardedRef:t}));IN.displayName="Panel";kN.displayName="forwardRef(Panel)";let $d=null,Ia=-1,Sn=null;function v3(e,t,n){const r=(t&BN)!==0,o=(t&zN)!==0,a=(t&qN)!==0,s=(t&WN)!==0;if(t){if(r)return a?"se-resize":s?"ne-resize":"e-resize";if(o)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function b3(){Sn!==null&&(document.head.removeChild(Sn),$d=null,Sn=null,Ia=-1)}function qu(e,t,n){var r,o;const a=v3(e,t);if($d!==a){if($d=a,Sn===null&&(Sn=document.createElement("style"),document.head.appendChild(Sn)),Ia>=0){var s;(s=Sn.sheet)===null||s===void 0||s.removeRule(Ia)}Ia=(r=(o=Sn.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${a} !important;}`))!==null&&r!==void 0?r:-1}}function jN(e){return e.type==="keydown"}function $N(e){return e.type.startsWith("pointer")}function LN(e){return e.type.startsWith("mouse")}function Zs(e){if($N(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(LN(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function y3(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function x3(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function w3(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Qb(e),b:Qb(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ge(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:Zb(Xb(n.a)),b:Zb(Xb(n.b))};if(o.a===o.b){const a=r.childNodes,s={a:n.a.at(-1),b:n.b.at(-1)};let i=a.length;for(;i--;){const l=a[i];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(o.a-o.b)}const S3=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function C3(e){var t;const n=getComputedStyle((t=FN(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function _3(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||C3(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||S3.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Xb(e){let t=e.length;for(;t--;){const n=e[t];if(ge(n,"Missing node"),_3(n))return n}return null}function Zb(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Qb(e){const t=[];for(;e;)t.push(e),e=FN(e);return t}function FN(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const BN=1,zN=2,qN=4,WN=8,E3=y3()==="coarse";let Ot=[],Sr=!1,Cn=new Map,Qs=new Map;const Mo=new Set;function R3(e,t,n,r,o){var a;const{ownerDocument:s}=t,i={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=(a=Cn.get(s))!==null&&a!==void 0?a:0;return Cn.set(s,l+1),Mo.add(i),rs(),function(){var f;Qs.delete(e),Mo.delete(i);const c=(f=Cn.get(s))!==null&&f!==void 0?f:1;if(Cn.set(s,c-1),rs(),c===1&&Cn.delete(s),Ot.includes(i)){const m=Ot.indexOf(i);m>=0&&Ot.splice(m,1),Js(),o("up",!0,null)}}}function N3(e){const{target:t}=e,{x:n,y:r}=Zs(e);Sr=!0,Wp({target:t,x:n,y:r}),rs(),Ot.length>0&&(os("down",e),Js(),e.preventDefault(),HN(t)||e.stopImmediatePropagation())}function Wu(e){const{x:t,y:n}=Zs(e);if(Sr&&e.type!=="pointerleave"&&e.buttons===0&&(Sr=!1,os("up",e)),!Sr){const{target:r}=e;Wp({target:r,x:t,y:n})}os("move",e),Js(),Ot.length>0&&e.preventDefault()}function Hu(e){const{target:t}=e,{x:n,y:r}=Zs(e);Qs.clear(),Sr=!1,Ot.length>0&&(e.preventDefault(),HN(t)||e.stopImmediatePropagation()),os("up",e),Wp({target:t,x:n,y:r}),Js(),rs()}function HN(e){let t=e;for(;t;){if(t.hasAttribute(ze.resizeHandle))return!0;t=t.parentElement}return!1}function Wp({target:e,x:t,y:n}){Ot.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Mo.forEach(o=>{const{element:a,hitAreaMargins:s}=o,i=a.getBoundingClientRect(),{bottom:l,left:u,right:f,top:c}=i,m=E3?s.coarse:s.fine;if(t>=u-m&&t<=f+m&&n>=c-m&&n<=l+m){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&w3(r,a)>0){let v=r,g=!1;for(;v&&!v.contains(a);){if(x3(v.getBoundingClientRect(),i)){g=!0;break}v=v.parentElement}if(g)return}Ot.push(o)}})}function Vu(e,t){Qs.set(e,t)}function Js(){let e=!1,t=!1;Ot.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;Qs.forEach(r=>{n|=r}),e&&t?qu("intersection",n):e?qu("horizontal",n):t?qu("vertical",n):b3()}let Gu;function rs(){var e;(e=Gu)===null||e===void 0||e.abort(),Gu=new AbortController;const t={capture:!0,signal:Gu.signal};Mo.size&&(Sr?(Ot.length>0&&Cn.forEach((n,r)=>{const{body:o}=r;n>0&&(o.addEventListener("contextmenu",Hu,t),o.addEventListener("pointerleave",Wu,t),o.addEventListener("pointermove",Wu,t))}),Cn.forEach((n,r)=>{const{body:o}=r;o.addEventListener("pointerup",Hu,t),o.addEventListener("pointercancel",Hu,t)})):Cn.forEach((n,r)=>{const{body:o}=r;n>0&&(o.addEventListener("pointerdown",N3,t),o.addEventListener("pointermove",Wu,t))}))}function os(e,t){Mo.forEach(n=>{const{setResizeHandlerState:r}=n,o=Ot.includes(n);r(e,o,t)})}function P3(){const[e,t]=w.useState(0);return w.useCallback(()=>t(n=>n+1),[])}function ge(e,t){if(!e)throw console.error(t),Error(t)}function Zn(e,t,n=zp){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function cn(e,t,n=zp){return Zn(e,t,n)===0}function mt(e,t,n){return Zn(e,t,n)===0}function M3(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=t[r];if(!mt(o,a,n))return!1}return!0}function vr({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ge(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:s=100,minSize:i=0}=r;if(Zn(n,i)<0)if(a){const l=(o+i)/2;Zn(n,l)<0?n=o:n=i}else n=i;return n=Math.min(s,n),n=parseFloat(n.toFixed(zp)),n}function uo({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:a}){if(mt(e,0))return t;const s=[...t],[i,l]=r;ge(i!=null,"Invalid first pivot index"),ge(l!=null,"Invalid second pivot index");let u=0;if(a==="keyboard"){{const c=e<0?l:i,m=n[c];ge(m,`Panel constraints not found for index ${c}`);const{collapsedSize:h=0,collapsible:v,minSize:g=0}=m;if(v){const b=t[c];if(ge(b!=null,`Previous layout not found for panel index ${c}`),mt(b,h)){const y=g-b;Zn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const c=e<0?i:l,m=n[c];ge(m,`No panel constraints found for index ${c}`);const{collapsedSize:h=0,collapsible:v,minSize:g=0}=m;if(v){const b=t[c];if(ge(b!=null,`Previous layout not found for panel index ${c}`),mt(b,g)){const y=b-h;Zn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const c=e<0?1:-1;let m=e<0?l:i,h=0;for(;;){const g=t[m];ge(g!=null,`Previous layout not found for panel index ${m}`);const y=vr({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=y,m+=c,m<0||m>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-v:v}{let m=e<0?i:l;for(;m>=0&&m<n.length;){const h=Math.abs(e)-Math.abs(u),v=t[m];ge(v!=null,`Previous layout not found for panel index ${m}`);const g=v-h,b=vr({panelConstraints:n,panelIndex:m,size:g});if(!mt(v,b)&&(u+=v-b,s[m]=b,u.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(M3(o,s))return o;{const c=e<0?l:i,m=t[c];ge(m!=null,`Previous layout not found for panel index ${c}`);const h=m+u,v=vr({panelConstraints:n,panelIndex:c,size:h});if(s[c]=v,!mt(v,h)){let g=h-v,y=e<0?l:i;for(;y>=0&&y<n.length;){const x=s[y];ge(x!=null,`Previous layout not found for panel index ${y}`);const S=x+g,C=vr({panelConstraints:n,panelIndex:y,size:S});if(mt(x,C)||(g-=C-x,s[y]=C),mt(g,0))break;e>0?y--:y++}}}const f=s.reduce((c,m)=>m+c,0);return mt(f,100)?s:o}function T3({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,a=0,s=0;const i=n[0];ge(i!=null,"No pivot index found"),t.forEach((c,m)=>{const{constraints:h}=c,{maxSize:v=100,minSize:g=0}=h;m===i?(r=g,o=v):(a+=g,s+=v)});const l=Math.min(o,100-a),u=Math.max(r,100-s),f=e[i];return{valueMax:l,valueMin:u,valueNow:f}}function To(e,t=document){return Array.from(t.querySelectorAll(`[${ze.resizeHandleId}][data-panel-group-id="${e}"]`))}function VN(e,t,n=document){const o=To(e,n).findIndex(a=>a.getAttribute(ze.resizeHandleId)===t);return o??null}function GN(e,t,n){const r=VN(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function O3(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function UN(e,t=document){if(O3(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function ei(e,t=document){const n=t.querySelector(`[${ze.resizeHandleId}="${e}"]`);return n||null}function A3(e,t,n,r=document){var o,a,s,i;const l=ei(t,r),u=To(e,r),f=l?u.indexOf(l):-1,c=(o=(a=n[f])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(s=(i=n[f+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[c,m]}function D3({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:s}){w.useRef({didWarnAboutMissingResizeHandle:!1}),Wn(()=>{if(!a)return;const i=To(n,a);for(let l=0;l<o.length-1;l++){const{valueMax:u,valueMin:f,valueNow:c}=T3({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=i[l];if(m!=null){const h=o[l];ge(h,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(u)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.setAttribute("aria-valuenow",c!=null?""+Math.round(c):"")}}return()=>{i.forEach((l,u)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,a]),w.useEffect(()=>{if(!a)return;const i=t.current;ge(i,"Eager values not found");const{panelDataArray:l}=i,u=UN(n,a);ge(u!=null,`No group found for id "${n}"`);const f=To(n,a);ge(f,`No resize handles found for group id "${n}"`);const c=f.map(m=>{const h=m.getAttribute(ze.resizeHandleId);ge(h,"Resize handle element has no handle id attribute");const[v,g]=A3(n,h,l,a);if(v==null||g==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const x=l.findIndex(S=>S.id===v);if(x>=0){const S=l[x];ge(S,`No panel data found for index ${x}`);const C=r[x],{collapsedSize:E=0,collapsible:R,minSize:_=0}=S.constraints;if(C!=null&&R){const P=uo({delta:mt(C,E)?_-E:E-C,initialLayout:r,panelConstraints:l.map(M=>M.constraints),pivotIndices:GN(n,h,a),prevLayout:r,trigger:"keyboard"});r!==P&&s(P)}}break}}};return m.addEventListener("keydown",b),()=>{m.removeEventListener("keydown",b)}});return()=>{c.forEach(m=>m())}},[a,e,t,n,r,o,s])}function Jb(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function KN(e,t){const n=e==="horizontal",{x:r,y:o}=Zs(t);return n?r:o}function I3(e,t,n,r,o){const a=n==="horizontal",s=ei(t,o);ge(s,`No resize handle element found for id "${t}"`);const i=s.getAttribute(ze.groupId);ge(i,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const u=KN(n,e),f=UN(i,o);ge(f,`No group element found for id "${i}"`);const c=f.getBoundingClientRect(),m=a?c.width:c.height;return(u-l)/m*100}function k3(e,t,n,r,o,a){if(jN(e)){const s=n==="horizontal";let i=0;e.shiftKey?i=100:o!=null?i=o:i=10;let l=0;switch(e.key){case"ArrowDown":l=s?0:i;break;case"ArrowLeft":l=s?-i:0;break;case"ArrowRight":l=s?i:0;break;case"ArrowUp":l=s?0:-i;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:I3(e,t,n,r,a)}function j3({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const s=n[a];ge(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;i!=null&&(r++,t[a]=i,o-=i)}for(let a=0;a<e.length;a++){const s=n[a];ge(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;if(i!=null)continue;const l=e.length-r,u=o/l;r++,t[a]=u,o-=u}return t}function pr(e,t,n){t.forEach((r,o)=>{const a=e[o];ge(a,`Panel data not found for index ${o}`);const{callbacks:s,constraints:i,id:l}=a,{collapsedSize:u=0,collapsible:f}=i,c=n[l];if(c==null||r!==c){n[l]=r;const{onCollapse:m,onExpand:h,onResize:v}=s;v&&v(r,c),f&&(m||h)&&(h&&(c==null||cn(c,u))&&!cn(r,u)&&h(),m&&(c==null||!cn(c,u))&&cn(r,u)&&m())}})}function Ra(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function $3({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:a=3}){const s=n[o];let i;return s==null?i=e!=null?e.toFixed(a):"1":r.length===1?i="1":i=s.toFixed(a),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function L3(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function ey(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function YN(e){return`react-resizable-panels:${e}`}function XN(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:a}=t;return o?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function ZN(e,t){try{const n=YN(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function F3(e,t,n){var r,o;const a=(r=ZN(e,n))!==null&&r!==void 0?r:{},s=XN(t);return(o=a[s])!==null&&o!==void 0?o:null}function B3(e,t,n,r,o){var a;const s=YN(e),i=XN(t),l=(a=ZN(e,o))!==null&&a!==void 0?a:{};l[i]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(s,JSON.stringify(l))}catch(u){console.error(u)}}function ty({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,s)=>a+s,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!mt(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const s=n[a];ge(s!=null,`No layout data found for index ${a}`);const i=100/r*s;n[a]=i}let o=0;for(let a=0;a<t.length;a++){const s=n[a];ge(s!=null,`No layout data found for index ${a}`);const i=vr({panelConstraints:t,panelIndex:a,size:s});s!=i&&(o+=s-i,n[a]=i)}if(!mt(o,0))for(let a=0;a<t.length;a++){const s=n[a];ge(s!=null,`No layout data found for index ${a}`);const i=s+o,l=vr({panelConstraints:t,panelIndex:a,size:i});if(s!==l&&(o-=l-s,n[a]=l,mt(o,0)))break}return n}const z3=100,fo={getItem:e=>(ey(fo),fo.getItem(e)),setItem:(e,t)=>{ey(fo),fo.setItem(e,t)}},ny={};function QN({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:a=null,onLayout:s=null,keyboardResizeBy:i=null,storage:l=fo,style:u,tagName:f="div",...c}){const m=qp(a),h=w.useRef(null),[v,g]=w.useState(null),[b,y]=w.useState([]),x=P3(),S=w.useRef({}),C=w.useRef(new Map),E=w.useRef(0),R=w.useRef({autoSaveId:e,direction:r,dragState:v,id:m,keyboardResizeBy:i,onLayout:s,storage:l}),_=w.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});w.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),w.useImperativeHandle(o,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:A}=_.current;return A},setLayout:A=>{const{onLayout:W}=R.current,{layout:z,panelDataArray:K}=_.current,j=ty({layout:A,panelConstraints:K.map(G=>G.constraints)});Jb(z,j)||(y(j),_.current.layout=j,W&&W(j),pr(K,j,S.current))}}),[]),Wn(()=>{R.current.autoSaveId=e,R.current.direction=r,R.current.dragState=v,R.current.id=m,R.current.onLayout=s,R.current.storage=l}),D3({committedValuesRef:R,eagerValuesRef:_,groupId:m,layout:b,panelDataArray:_.current.panelDataArray,setLayout:y,panelGroupElement:h.current}),w.useEffect(()=>{const{panelDataArray:A}=_.current;if(e){if(b.length===0||b.length!==A.length)return;let W=ny[e];W==null&&(W=L3(B3,z3),ny[e]=W);const z=[...A],K=new Map(C.current);W(e,z,K,b,l)}},[e,b,l]),w.useEffect(()=>{});const P=w.useCallback(A=>{const{onLayout:W}=R.current,{layout:z,panelDataArray:K}=_.current;if(A.constraints.collapsible){const j=K.map(re=>re.constraints),{collapsedSize:G=0,panelSize:ee,pivotIndices:te}=Fn(K,A,z);if(ge(ee!=null,`Panel size not found for panel "${A.id}"`),!cn(ee,G)){C.current.set(A.id,ee);const Y=gr(K,A)===K.length-1?ee-G:G-ee,se=uo({delta:Y,initialLayout:z,panelConstraints:j,pivotIndices:te,prevLayout:z,trigger:"imperative-api"});Ra(z,se)||(y(se),_.current.layout=se,W&&W(se),pr(K,se,S.current))}}},[]),M=w.useCallback((A,W)=>{const{onLayout:z}=R.current,{layout:K,panelDataArray:j}=_.current;if(A.constraints.collapsible){const G=j.map(I=>I.constraints),{collapsedSize:ee=0,panelSize:te=0,minSize:re=0,pivotIndices:Y}=Fn(j,A,K),se=W??re;if(cn(te,ee)){const I=C.current.get(A.id),oe=I!=null&&I>=se?I:se,pe=gr(j,A)===j.length-1?te-oe:oe-te,me=uo({delta:pe,initialLayout:K,panelConstraints:G,pivotIndices:Y,prevLayout:K,trigger:"imperative-api"});Ra(K,me)||(y(me),_.current.layout=me,z&&z(me),pr(j,me,S.current))}}},[]),k=w.useCallback(A=>{const{layout:W,panelDataArray:z}=_.current,{panelSize:K}=Fn(z,A,W);return ge(K!=null,`Panel size not found for panel "${A.id}"`),K},[]),T=w.useCallback((A,W)=>{const{panelDataArray:z}=_.current,K=gr(z,A);return $3({defaultSize:W,dragState:v,layout:b,panelData:z,panelIndex:K})},[v,b]),$=w.useCallback(A=>{const{layout:W,panelDataArray:z}=_.current,{collapsedSize:K=0,collapsible:j,panelSize:G}=Fn(z,A,W);return ge(G!=null,`Panel size not found for panel "${A.id}"`),j===!0&&cn(G,K)},[]),O=w.useCallback(A=>{const{layout:W,panelDataArray:z}=_.current,{collapsedSize:K=0,collapsible:j,panelSize:G}=Fn(z,A,W);return ge(G!=null,`Panel size not found for panel "${A.id}"`),!j||Zn(G,K)>0},[]),L=w.useCallback(A=>{const{panelDataArray:W}=_.current;W.push(A),W.sort((z,K)=>{const j=z.order,G=K.order;return j==null&&G==null?0:j==null?-1:G==null?1:j-G}),_.current.panelDataArrayChanged=!0,x()},[x]);Wn(()=>{if(_.current.panelDataArrayChanged){_.current.panelDataArrayChanged=!1;const{autoSaveId:A,onLayout:W,storage:z}=R.current,{layout:K,panelDataArray:j}=_.current;let G=null;if(A){const te=F3(A,j,z);te&&(C.current=new Map(Object.entries(te.expandToSizes)),G=te.layout)}G==null&&(G=j3({panelDataArray:j}));const ee=ty({layout:G,panelConstraints:j.map(te=>te.constraints)});Jb(K,ee)||(y(ee),_.current.layout=ee,W&&W(ee),pr(j,ee,S.current))}}),Wn(()=>{const A=_.current;return()=>{A.layout=[]}},[]);const F=w.useCallback(A=>{let W=!1;const z=h.current;return z&&window.getComputedStyle(z,null).getPropertyValue("direction")==="rtl"&&(W=!0),function(j){j.preventDefault();const G=h.current;if(!G)return()=>null;const{direction:ee,dragState:te,id:re,keyboardResizeBy:Y,onLayout:se}=R.current,{layout:I,panelDataArray:oe}=_.current,{initialLayout:fe}=te??{},pe=GN(re,A,G);let me=k3(j,A,ee,te,Y,G);const de=ee==="horizontal";de&&W&&(me=-me);const xe=oe.map(Ee=>Ee.constraints),je=uo({delta:me,initialLayout:fe??I,panelConstraints:xe,pivotIndices:pe,prevLayout:I,trigger:jN(j)?"keyboard":"mouse-or-touch"}),ye=!Ra(I,je);($N(j)||LN(j))&&E.current!=me&&(E.current=me,!ye&&me!==0?de?Vu(A,me<0?BN:zN):Vu(A,me<0?qN:WN):Vu(A,0)),ye&&(y(je),_.current.layout=je,se&&se(je),pr(oe,je,S.current))}},[]),D=w.useCallback((A,W)=>{const{onLayout:z}=R.current,{layout:K,panelDataArray:j}=_.current,G=j.map(I=>I.constraints),{panelSize:ee,pivotIndices:te}=Fn(j,A,K);ge(ee!=null,`Panel size not found for panel "${A.id}"`);const Y=gr(j,A)===j.length-1?ee-W:W-ee,se=uo({delta:Y,initialLayout:K,panelConstraints:G,pivotIndices:te,prevLayout:K,trigger:"imperative-api"});Ra(K,se)||(y(se),_.current.layout=se,z&&z(se),pr(j,se,S.current))},[]),V=w.useCallback((A,W)=>{const{layout:z,panelDataArray:K}=_.current,{collapsedSize:j=0,collapsible:G}=W,{collapsedSize:ee=0,collapsible:te,maxSize:re=100,minSize:Y=0}=A.constraints,{panelSize:se}=Fn(K,A,z);se!=null&&(G&&te&&cn(se,j)?cn(j,ee)||D(A,ee):se<Y?D(A,Y):se>re&&D(A,re))},[D]),H=w.useCallback((A,W)=>{const{direction:z}=R.current,{layout:K}=_.current;if(!h.current)return;const j=ei(A,h.current);ge(j,`Drag handle element not found for id "${A}"`);const G=KN(z,W);g({dragHandleId:A,dragHandleRect:j.getBoundingClientRect(),initialCursorPosition:G,initialLayout:K})},[]),B=w.useCallback(()=>{g(null)},[]),Z=w.useCallback(A=>{const{panelDataArray:W}=_.current,z=gr(W,A);z>=0&&(W.splice(z,1),delete S.current[A.id],_.current.panelDataArrayChanged=!0,x())},[x]),Q=w.useMemo(()=>({collapsePanel:P,direction:r,dragState:v,expandPanel:M,getPanelSize:k,getPanelStyle:T,groupId:m,isPanelCollapsed:$,isPanelExpanded:O,reevaluatePanelConstraints:V,registerPanel:L,registerResizeHandle:F,resizePanel:D,startDragging:H,stopDragging:B,unregisterPanel:Z,panelGroupElement:h.current}),[P,v,r,M,k,T,m,$,O,V,L,F,D,H,B,Z]),q={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return w.createElement(Xs.Provider,{value:Q},w.createElement(f,{...c,children:t,className:n,id:a,ref:h,style:{...q,...u},[ze.group]:"",[ze.groupDirection]:r,[ze.groupId]:m}))}const JN=w.forwardRef((e,t)=>w.createElement(QN,{...e,forwardedRef:t}));QN.displayName="PanelGroup";JN.displayName="forwardRef(PanelGroup)";function gr(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Fn(e,t,n){const r=gr(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],s=n[r];return{...t.constraints,panelSize:s,pivotIndices:a}}function q3({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){w.useEffect(()=>{if(e||n==null||r==null)return;const o=ei(t,r);if(o==null)return;const a=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),n(s);break}case"F6":{s.preventDefault();const i=o.getAttribute(ze.groupId);ge(i,`No group element found for id "${i}"`);const l=To(i,r),u=VN(i,t,r);ge(u!==null,`No resize element found for id "${t}"`);const f=s.shiftKey?u>0?u-1:l.length-1:u+1<l.length?u+1:0;l[f].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,t,n])}function eP({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:a,onClick:s,onDragging:i,onFocus:l,onPointerDown:u,onPointerUp:f,style:c={},tabIndex:m=0,tagName:h="div",...v}){var g,b;const y=w.useRef(null),x=w.useRef({onClick:s,onDragging:i,onPointerDown:u,onPointerUp:f});w.useEffect(()=>{x.current.onClick=s,x.current.onDragging=i,x.current.onPointerDown=u,x.current.onPointerUp=f});const S=w.useContext(Xs);if(S===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:E,registerResizeHandle:R,startDragging:_,stopDragging:P,panelGroupElement:M}=S,k=qp(o),[T,$]=w.useState("inactive"),[O,L]=w.useState(!1),[F,D]=w.useState(null),V=w.useRef({state:T});Wn(()=>{V.current.state=T}),w.useEffect(()=>{if(n)D(null);else{const Q=R(k);D(()=>Q)}},[n,k,R]);const H=(g=r?.coarse)!==null&&g!==void 0?g:15,B=(b=r?.fine)!==null&&b!==void 0?b:5;w.useEffect(()=>{if(n||F==null)return;const Q=y.current;ge(Q,"Element ref not attached");let q=!1;return R3(k,Q,C,{coarse:H,fine:B},(W,z,K)=>{if(!z){$("inactive");return}switch(W){case"down":{$("drag"),q=!1,ge(K,'Expected event to be defined for "down" action'),_(k,K);const{onDragging:j,onPointerDown:G}=x.current;j?.(!0),G?.();break}case"move":{const{state:j}=V.current;q=!0,j!=="drag"&&$("hover"),ge(K,'Expected event to be defined for "move" action'),F(K);break}case"up":{$("hover"),P();const{onClick:j,onDragging:G,onPointerUp:ee}=x.current;G?.(!1),ee?.(),q||j?.();break}}})},[H,C,n,B,R,k,F,_,P]),q3({disabled:n,handleId:k,resizeHandler:F,panelGroupElement:M});const Z={touchAction:"none",userSelect:"none"};return w.createElement(h,{...v,children:e,className:t,id:o,onBlur:()=>{L(!1),a?.()},onFocus:()=>{L(!0),l?.()},ref:y,role:"separator",style:{...Z,...c},tabIndex:m,[ze.groupDirection]:C,[ze.groupId]:E,[ze.resizeHandle]:"",[ze.resizeHandleActive]:T==="drag"?"pointer":O?"keyboard":void 0,[ze.resizeHandleEnabled]:!n,[ze.resizeHandleId]:k,[ze.resizeHandleState]:T})}eP.displayName="PanelResizeHandle";const W3=({className:e,...t})=>p.jsx(JN,{className:N("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),H3=kN,V3=({withHandle:e,className:t,...n})=>p.jsx(eP,{className:N("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&p.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:p.jsx(iO,{className:"h-2.5 w-2.5"})})});function Oo(e,[t,n]){return Math.min(n,Math.max(t,e))}function G3(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Hp="ScrollArea",[tP]=ke(Hp),[U3,_t]=tP(Hp),nP=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,l]=d.useState(null),[u,f]=d.useState(null),[c,m]=d.useState(null),[h,v]=d.useState(null),[g,b]=d.useState(null),[y,x]=d.useState(0),[S,C]=d.useState(0),[E,R]=d.useState(!1),[_,P]=d.useState(!1),M=ce(t,T=>l(T)),k=kt(o);return p.jsx(U3,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:i,viewport:u,onViewportChange:f,content:c,onContentChange:m,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:E,onScrollbarXEnabledChange:R,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:_,onScrollbarYEnabledChange:P,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(ne.div,{dir:k,...s,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});nP.displayName=Hp;var rP="ScrollAreaViewport",oP=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,s=_t(rP,n),i=d.useRef(null),l=ce(t,i,s.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(ne.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});oP.displayName=rP;var nn="ScrollAreaScrollbar",Vp=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=_t(nn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return d.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),o.type==="hover"?p.jsx(K3,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(Y3,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(aP,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(Gp,{...r,ref:t}):null});Vp.displayName=nn;var K3=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=_t(nn,e.__scopeScrollArea),[a,s]=d.useState(!1);return d.useEffect(()=>{const i=o.scrollArea;let l=0;if(i){const u=()=>{window.clearTimeout(l),s(!0)},f=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(De,{present:n||a,children:p.jsx(aP,{"data-state":a?"visible":"hidden",...r,ref:t})})}),Y3=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=_t(nn,e.__scopeScrollArea),a=e.orientation==="horizontal",s=ni(()=>l("SCROLL_END"),100),[i,l]=G3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(i==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[i,o.scrollHideDelay,l]),d.useEffect(()=>{const u=o.viewport,f=a?"scrollLeft":"scrollTop";if(u){let c=u[f];const m=()=>{const h=u[f];c!==h&&(l("SCROLL"),s()),c=h};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[o.viewport,a,l,s]),p.jsx(De,{present:n||i!=="hidden",children:p.jsx(Gp,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:U(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:U(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),aP=d.forwardRef((e,t)=>{const n=_t(nn,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=d.useState(!1),i=e.orientation==="horizontal",l=ni(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;s(i?u:f)}},10);return Ar(n.viewport,l),Ar(n.content,l),p.jsx(De,{present:r||a,children:p.jsx(Gp,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Gp=d.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=_t(nn,e.__scopeScrollArea),a=d.useRef(null),s=d.useRef(0),[i,l]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uP(i.viewport,i.content),f={...r,sizes:i,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:m=>s.current=m};function c(m,h){return tU(m,s.current,i,h)}return n==="horizontal"?p.jsx(X3,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,h=ry(m,i,o.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=c(m,o.dir))}}):n==="vertical"?p.jsx(Z3,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,h=ry(m,i);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=c(m))}}):null}),X3=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=_t(nn,e.__scopeScrollArea),[s,i]=d.useState(),l=d.useRef(null),u=ce(t,l,a.onScrollbarXChange);return d.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),p.jsx(iP,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ti(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,c)=>{if(a.viewport){const m=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),fP(m,c)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ss(s.paddingLeft),paddingEnd:ss(s.paddingRight)}})}})}),Z3=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=_t(nn,e.__scopeScrollArea),[s,i]=d.useState(),l=d.useRef(null),u=ce(t,l,a.onScrollbarYChange);return d.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),p.jsx(iP,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ti(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,c)=>{if(a.viewport){const m=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),fP(m,c)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ss(s.paddingTop),paddingEnd:ss(s.paddingBottom)}})}})}),[Q3,sP]=tP(nn),iP=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:f,onResize:c,...m}=e,h=_t(nn,n),[v,g]=d.useState(null),b=ce(t,M=>g(M)),y=d.useRef(null),x=d.useRef(""),S=h.viewport,C=r.content-r.viewport,E=Me(f),R=Me(l),_=ni(c,10);function P(M){if(y.current){const k=M.clientX-y.current.left,T=M.clientY-y.current.top;u({x:k,y:T})}}return d.useEffect(()=>{const M=k=>{const T=k.target;v?.contains(T)&&E(k,C)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[S,v,C,E]),d.useEffect(R,[r,R]),Ar(v,_),Ar(h.content,_),p.jsx(Q3,{scope:n,scrollbar:v,hasThumb:o,onThumbChange:Me(a),onThumbPointerUp:Me(s),onThumbPositionChange:R,onThumbPointerDown:Me(i),children:p.jsx(ne.div,{...m,ref:b,style:{position:"absolute",...m.style},onPointerDown:U(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),y.current=v.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),P(M))}),onPointerMove:U(e.onPointerMove,P),onPointerUp:U(e.onPointerUp,M=>{const k=M.target;k.hasPointerCapture(M.pointerId)&&k.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null})})})}),as="ScrollAreaThumb",lP=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=sP(as,e.__scopeScrollArea);return p.jsx(De,{present:n||o.hasThumb,children:p.jsx(J3,{ref:t,...r})})}),J3=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=_t(as,n),s=sP(as,n),{onThumbPositionChange:i}=s,l=ce(t,c=>s.onThumbChange(c)),u=d.useRef(void 0),f=ni(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const c=a.viewport;if(c){const m=()=>{if(f(),!u.current){const h=nU(c,i);u.current=h,i()}};return i(),c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[a.viewport,f,i]),p.jsx(ne.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:U(e.onPointerDownCapture,c=>{const h=c.target.getBoundingClientRect(),v=c.clientX-h.left,g=c.clientY-h.top;s.onThumbPointerDown({x:v,y:g})}),onPointerUp:U(e.onPointerUp,s.onThumbPointerUp)})});lP.displayName=as;var Up="ScrollAreaCorner",cP=d.forwardRef((e,t)=>{const n=_t(Up,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(eU,{...e,ref:t}):null});cP.displayName=Up;var eU=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=_t(Up,n),[a,s]=d.useState(0),[i,l]=d.useState(0),u=!!(a&&i);return Ar(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),l(f)}),Ar(o.scrollbarY,()=>{const f=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(f),s(f)}),u?p.jsx(ne.div,{...r,ref:t,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ss(e){return e?parseInt(e,10):0}function uP(e,t){const n=e/t;return isNaN(n)?0:n}function ti(e){const t=uP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function tU(e,t,n,r="ltr"){const o=ti(n),a=o/2,s=t||a,i=o-s,l=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,c=r==="ltr"?[0,f]:[f*-1,0];return dP([l,u],c)(e)}function ry(e,t,n="ltr"){const r=ti(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,i=a-r,l=n==="ltr"?[0,s]:[s*-1,0],u=Oo(e,l);return dP([0,s],[0,i])(u)}function dP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function fP(e,t){return e>0&&e<t}var nU=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,i=n.top!==a.top;(s||i)&&t(),n=a,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function ni(e,t){const n=Me(e),r=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),d.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ar(e,t){const n=Me(t);Ie(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var pP=nP,rU=oP,oU=cP;const mP=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(pP,{ref:r,className:N("relative overflow-hidden",e),...n,children:[p.jsx(rU,{className:"h-full w-full rounded-[inherit]",children:t}),p.jsx(Kp,{}),p.jsx(oU,{})]}));mP.displayName=pP.displayName;const Kp=d.forwardRef(({className:e,orientation:t="vertical",...n},r)=>p.jsx(Vp,{ref:r,orientation:t,className:N("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:p.jsx(lP,{className:"relative flex-1 rounded-full bg-border"})}));Kp.displayName=Vp.displayName;var aU=[" ","Enter","ArrowUp","ArrowDown"],sU=[" ","Enter"],Qn="Select",[ri,oi,iU]=Pn(Qn),[Gr]=ke(Qn,[iU,en]),ai=en(),[lU,In]=Gr(Qn),[cU,uU]=Gr(Qn),hP=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:m,required:h,form:v}=e,g=ai(t),[b,y]=d.useState(null),[x,S]=d.useState(null),[C,E]=d.useState(!1),R=kt(u),[_,P]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:Qn}),[M,k]=Ae({prop:s,defaultProp:i,onChange:l,caller:Qn}),T=d.useRef(null),$=b?v||!!b.closest("form"):!0,[O,L]=d.useState(new Set),F=Array.from(O).map(D=>D.props.value).join(";");return p.jsx(Hr,{...g,children:p.jsxs(lU,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:Te(),value:M,onValueChange:k,open:_,onOpenChange:P,dir:R,triggerPointerDownPosRef:T,disabled:m,children:[p.jsx(ri.Provider,{scope:t,children:p.jsx(cU,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(D=>{L(V=>new Set(V).add(D))},[]),onNativeOptionRemove:d.useCallback(D=>{L(V=>{const H=new Set(V);return H.delete(D),H})},[]),children:n})}),$?p.jsxs(BP,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:c,value:M,onChange:D=>k(D.target.value),disabled:m,form:v,children:[M===void 0?p.jsx("option",{value:""}):null,Array.from(O)]},F):null]})})};hP.displayName=Qn;var gP="SelectTrigger",vP=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=ai(n),s=In(gP,n),i=s.disabled||r,l=ce(t,s.onTriggerChange),u=oi(n),f=d.useRef("touch"),[c,m,h]=qP(g=>{const b=u().filter(S=>!S.disabled),y=b.find(S=>S.value===s.value),x=WP(b,g,y);x!==void 0&&s.onValueChange(x.value)}),v=g=>{i||(s.onOpenChange(!0),h()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return p.jsx(Vr,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":zP(s.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&v(g)}),onPointerDown:U(o.onPointerDown,g=>{f.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(v(g),g.preventDefault())}),onKeyDown:U(o.onKeyDown,g=>{const b=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&m(g.key),!(b&&g.key===" ")&&aU.includes(g.key)&&(v(),g.preventDefault())})})})});vP.displayName=gP;var bP="SelectValue",yP=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=In(bP,n),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,c=ce(t,l.onValueNodeChange);return Ie(()=>{u(f)},[u,f]),p.jsx(ne.span,{...i,ref:c,style:{pointerEvents:"none"},children:zP(l.value)?p.jsx(p.Fragment,{children:s}):a})});yP.displayName=bP;var dU="SelectIcon",xP=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});xP.displayName=dU;var fU="SelectPortal",wP=e=>p.jsx(jr,{asChild:!0,...e});wP.displayName=fU;var Jn="SelectContent",SP=d.forwardRef((e,t)=>{const n=In(Jn,e.__scopeSelect),[r,o]=d.useState();if(Ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?ps.createPortal(p.jsx(CP,{scope:e.__scopeSelect,children:p.jsx(ri.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(_P,{...e,ref:t})});SP.displayName=Jn;var Nt=10,[CP,kn]=Gr(Jn),pU="SelectContentImpl",mU=Hn("SelectContent.RemoveScroll"),_P=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:b,...y}=e,x=In(Jn,n),[S,C]=d.useState(null),[E,R]=d.useState(null),_=ce(t,j=>C(j)),[P,M]=d.useState(null),[k,T]=d.useState(null),$=oi(n),[O,L]=d.useState(!1),F=d.useRef(!1);d.useEffect(()=>{if(S)return xs(S)},[S]),bs();const D=d.useCallback(j=>{const[G,...ee]=$().map(Y=>Y.ref.current),[te]=ee.slice(-1),re=document.activeElement;for(const Y of j)if(Y===re||(Y?.scrollIntoView({block:"nearest"}),Y===G&&E&&(E.scrollTop=0),Y===te&&E&&(E.scrollTop=E.scrollHeight),Y?.focus(),document.activeElement!==re))return},[$,E]),V=d.useCallback(()=>D([P,S]),[D,P,S]);d.useEffect(()=>{O&&V()},[O,V]);const{onOpenChange:H,triggerPointerDownPosRef:B}=x;d.useEffect(()=>{if(S){let j={x:0,y:0};const G=te=>{j={x:Math.abs(Math.round(te.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(te.pageY)-(B.current?.y??0))}},ee=te=>{j.x<=10&&j.y<=10?te.preventDefault():S.contains(te.target)||H(!1),document.removeEventListener("pointermove",G),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",ee,{capture:!0})}}},[S,H,B]),d.useEffect(()=>{const j=()=>H(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[H]);const[Z,Q]=qP(j=>{const G=$().filter(re=>!re.disabled),ee=G.find(re=>re.ref.current===document.activeElement),te=WP(G,j,ee);te&&setTimeout(()=>te.ref.current.focus())}),q=d.useCallback((j,G,ee)=>{const te=!F.current&&!ee;(x.value!==void 0&&x.value===G||te)&&(M(j),te&&(F.current=!0))},[x.value]),A=d.useCallback(()=>S?.focus(),[S]),W=d.useCallback((j,G,ee)=>{const te=!F.current&&!ee;(x.value!==void 0&&x.value===G||te)&&T(j)},[x.value]),z=r==="popper"?Ld:EP,K=z===Ld?{side:i,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:b}:{};return p.jsx(CP,{scope:n,content:S,viewport:E,onViewportChange:R,itemRefCallback:q,selectedItem:P,onItemLeave:A,itemTextRefCallback:W,focusSelectedItem:V,selectedItemText:k,position:r,isPositioned:O,searchRef:Z,children:p.jsx(jo,{as:mU,allowPinchZoom:!0,children:p.jsx(ko,{asChild:!0,trapped:x.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:U(o,j=>{x.trigger?.focus({preventScroll:!0}),j.preventDefault()}),children:p.jsx(Mn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(z,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:j=>j.preventDefault(),...y,...K,onPlaced:()=>L(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:U(y.onKeyDown,j=>{const G=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!G&&j.key.length===1&&Q(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let te=$().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(j.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const re=j.target,Y=te.indexOf(re);te=te.slice(Y+1)}setTimeout(()=>D(te)),j.preventDefault()}})})})})})})});_P.displayName=pU;var hU="SelectItemAlignedPosition",EP=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=In(Jn,n),s=kn(Jn,n),[i,l]=d.useState(null),[u,f]=d.useState(null),c=ce(t,_=>f(_)),m=oi(n),h=d.useRef(!1),v=d.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=s,S=d.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&g&&b&&y){const _=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),M=a.valueNode.getBoundingClientRect(),k=y.getBoundingClientRect();if(a.dir!=="rtl"){const re=k.left-P.left,Y=M.left-re,se=_.left-Y,I=_.width+se,oe=Math.max(I,P.width),fe=window.innerWidth-Nt,pe=Oo(Y,[Nt,Math.max(Nt,fe-oe)]);i.style.minWidth=I+"px",i.style.left=pe+"px"}else{const re=P.right-k.right,Y=window.innerWidth-M.right-re,se=window.innerWidth-_.right-Y,I=_.width+se,oe=Math.max(I,P.width),fe=window.innerWidth-Nt,pe=Oo(Y,[Nt,Math.max(Nt,fe-oe)]);i.style.minWidth=I+"px",i.style.right=pe+"px"}const T=m(),$=window.innerHeight-Nt*2,O=g.scrollHeight,L=window.getComputedStyle(u),F=parseInt(L.borderTopWidth,10),D=parseInt(L.paddingTop,10),V=parseInt(L.borderBottomWidth,10),H=parseInt(L.paddingBottom,10),B=F+D+O+H+V,Z=Math.min(b.offsetHeight*5,B),Q=window.getComputedStyle(g),q=parseInt(Q.paddingTop,10),A=parseInt(Q.paddingBottom,10),W=_.top+_.height/2-Nt,z=$-W,K=b.offsetHeight/2,j=b.offsetTop+K,G=F+D+j,ee=B-G;if(G<=W){const re=T.length>0&&b===T[T.length-1].ref.current;i.style.bottom="0px";const Y=u.clientHeight-g.offsetTop-g.offsetHeight,se=Math.max(z,K+(re?A:0)+Y+V),I=G+se;i.style.height=I+"px"}else{const re=T.length>0&&b===T[0].ref.current;i.style.top="0px";const se=Math.max(W,F+g.offsetTop+(re?q:0)+K)+ee;i.style.height=se+"px",g.scrollTop=G-W+g.offsetTop}i.style.margin=`${Nt}px 0`,i.style.minHeight=Z+"px",i.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,i,u,g,b,y,a.dir,r]);Ie(()=>S(),[S]);const[C,E]=d.useState();Ie(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const R=d.useCallback(_=>{_&&v.current===!0&&(S(),x?.(),v.current=!1)},[S,x]);return p.jsx(vU,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:R,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});EP.displayName=hU;var gU="SelectPopperPosition",Ld=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Nt,...a}=e,s=ai(n);return p.jsx(Yo,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ld.displayName=gU;var[vU,Yp]=Gr(Jn,{}),Fd="SelectViewport",RP=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=kn(Fd,n),s=Yp(Fd,n),i=ce(t,a.onViewportChange),l=d.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(ri.Slot,{scope:n,children:p.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:m}=s;if(m?.current&&c){const h=Math.abs(l.current-f.scrollTop);if(h>0){const v=window.innerHeight-Nt*2,g=parseFloat(c.style.minHeight),b=parseFloat(c.style.height),y=Math.max(g,b);if(y<v){const x=y+h,S=Math.min(v,x),C=x-S;c.style.height=S+"px",c.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,c.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});RP.displayName=Fd;var NP="SelectGroup",[bU,yU]=Gr(NP),PP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Te();return p.jsx(bU,{scope:n,id:o,children:p.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});PP.displayName=NP;var MP="SelectLabel",TP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=yU(MP,n);return p.jsx(ne.div,{id:o.id,...r,ref:t})});TP.displayName=MP;var is="SelectItem",[xU,OP]=Gr(is),AP=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=In(is,n),l=kn(is,n),u=i.value===r,[f,c]=d.useState(a??""),[m,h]=d.useState(!1),v=ce(t,x=>l.itemRefCallback?.(x,r,o)),g=Te(),b=d.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(xU,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:d.useCallback(x=>{c(S=>S||(x?.textContent??"").trim())},[]),children:p.jsx(ri.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(ne.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:U(s.onFocus,()=>h(!0)),onBlur:U(s.onBlur,()=>h(!1)),onClick:U(s.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:U(s.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:U(s.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:U(s.onPointerMove,x=>{b.current=x.pointerType,o?l.onItemLeave?.():b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(s.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(s.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(sU.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});AP.displayName=is;var po="SelectItemText",DP=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=In(po,n),i=kn(po,n),l=OP(po,n),u=uU(po,n),[f,c]=d.useState(null),m=ce(t,y=>c(y),l.onItemTextChange,y=>i.itemTextRefCallback?.(y,l.value,l.disabled)),h=f?.textContent,v=d.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return Ie(()=>(g(v),()=>b(v)),[g,b,v]),p.jsxs(p.Fragment,{children:[p.jsx(ne.span,{id:l.textId,...a,ref:m}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?ps.createPortal(a.children,s.valueNode):null]})});DP.displayName=po;var IP="SelectItemIndicator",kP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return OP(IP,n).isSelected?p.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});kP.displayName=IP;var Bd="SelectScrollUpButton",jP=d.forwardRef((e,t)=>{const n=kn(Bd,e.__scopeSelect),r=Yp(Bd,e.__scopeSelect),[o,a]=d.useState(!1),s=ce(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(LP,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});jP.displayName=Bd;var zd="SelectScrollDownButton",$P=d.forwardRef((e,t)=>{const n=kn(zd,e.__scopeSelect),r=Yp(zd,e.__scopeSelect),[o,a]=d.useState(!1),s=ce(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;a(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(LP,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});$P.displayName=zd;var LP=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=kn("SelectScrollButton",n),s=d.useRef(null),i=oi(n),l=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),Ie(()=>{i().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),p.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:U(o.onPointerMove,()=>{a.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),wU="SelectSeparator",FP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});FP.displayName=wU;var qd="SelectArrow",SU=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ai(n),a=In(qd,n),s=kn(qd,n);return a.open&&s.position==="popper"?p.jsx(Xo,{...o,...r,ref:t}):null});SU.displayName=qd;var CU="SelectBubbleInput",BP=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),a=ce(r,o),s=zr(t);return d.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&f){const c=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(c)}},[s,t]),p.jsx(ne.select,{...n,style:{...mR,...n.style},ref:a,defaultValue:t})});BP.displayName=CU;function zP(e){return e===""||e===void 0}function qP(e){const t=Me(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(s=>{const i=n.current+s;t(i),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(i)},[t]),a=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function WP(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=_U(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function _U(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var EU=hP,HP=vP,RU=yP,NU=xP,PU=wP,VP=SP,MU=RP,TU=PP,GP=TP,UP=AP,OU=DP,AU=kP,KP=jP,YP=$P,XP=FP;const DU=EU,IU=TU,kU=RU,ZP=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(HP,{ref:r,className:N("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-border bg-surface-3/60 p-4 text-sm shadow-sm ring-offset-background data-[placeholder]:text-foreground/60 focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(NU,{asChild:!0,children:p.jsx(Io,{className:"h-4 w-4 opacity-50"})})]}));ZP.displayName=HP.displayName;const Xp=d.forwardRef(({className:e,...t},n)=>p.jsx(KP,{ref:n,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(rO,{className:"h-4 w-4"})}));Xp.displayName=KP.displayName;const Zp=d.forwardRef(({className:e,...t},n)=>p.jsx(YP,{ref:n,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Io,{className:"h-4 w-4"})}));Zp.displayName=YP.displayName;const QP=d.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(PU,{children:p.jsxs(VP,{ref:o,className:N("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-border/30 bg-popover text-popover-foreground/80 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(Xp,{}),p.jsx(MU,{className:N("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(Zp,{})]})}));QP.displayName=VP.displayName;const JP=d.forwardRef(({className:e,...t},n)=>p.jsx(GP,{ref:n,className:N("px-2 py-1.5 text-sm font-semibold text-popover-foreground",e),...t}));JP.displayName=GP.displayName;const eM=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(UP,{ref:r,className:N("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(AU,{children:p.jsx(Do,{className:"h-4 w-4"})})}),p.jsx(OU,{children:t})]}));eM.displayName=UP.displayName;const tM=d.forwardRef(({className:e,...t},n)=>p.jsx(XP,{ref:n,className:N("-mx-1 my-1 h-px bg-surface-2",e),...t}));tM.displayName=XP.displayName;const nM=$o,jU=Ss,$U=nr,rM=Lo,Qp=d.forwardRef(({className:e,...t},n)=>p.jsx(er,{className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Qp.displayName=er.displayName;const LU=Ke({base:"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Jp=d.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(rM,{children:[p.jsx(Qp,{}),p.jsxs(tr,{ref:o,className:N(LU({side:e}),t),...r,children:[p.jsxs(nr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(Oy,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Jp.displayName=tr.displayName;const em=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t});em.displayName="SheetHeader";const oM=({className:e,...t})=>p.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});oM.displayName="SheetFooter";const tm=d.forwardRef(({className:e,...t},n)=>p.jsx($r,{ref:n,className:N("text-lg font-semibold text-foreground",e),...t}));tm.displayName=$r.displayName;const nm=d.forwardRef(({className:e,...t},n)=>p.jsx(Lr,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));nm.displayName=Lr.displayName;const Uu=768;function FU(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Uu-1}px)`),r=()=>{t(window.innerWidth<Uu)};return n.addEventListener("change",r),t(window.innerWidth<Uu),()=>n.removeEventListener("change",r)},[]),!!e}function Wd({className:e,...t}){return p.jsx("div",{className:N("animate-pulse rounded-md bg-primary/10",e),...t})}var[si]=ke("Tooltip",[en]),ii=en(),aM="TooltipProvider",BU=700,Hd="tooltip.open",[zU,rm]=si(aM),sM=e=>{const{__scopeTooltip:t,delayDuration:n=BU,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(zU,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};sM.displayName=aM;var Ao="Tooltip",[qU,la]=si(Ao),iM=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=rm(Ao,e.__scopeTooltip),u=ii(t),[f,c]=d.useState(null),m=Te(),h=d.useRef(0),v=s??l.disableHoverableContent,g=i??l.delayDuration,b=d.useRef(!1),[y,x]=Ae({prop:r,defaultProp:o??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(Hd))):l.onClose(),a?.(_)},caller:Ao}),S=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),C=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),R=d.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,x(!0),h.current=0},g)},[g,x]);return d.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Hr,{...u,children:p.jsx(qU,{scope:t,contentId:m,open:y,stateAttribute:S,trigger:f,onTriggerChange:c,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?R():C()},[l.isOpenDelayedRef,R,C]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:n})})};iM.displayName=Ao;var Vd="TooltipTrigger",lM=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=la(Vd,n),a=rm(Vd,n),s=ii(n),i=d.useRef(null),l=ce(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),c=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),p.jsx(Vr,{asChild:!0,...s,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:U(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:U(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});lM.displayName=Vd;var om="TooltipPortal",[WU,HU]=si(om,{forceMount:void 0}),cM=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=la(om,t);return p.jsx(WU,{scope:t,forceMount:n,children:p.jsx(De,{present:n||a.open,children:p.jsx(jr,{asChild:!0,container:o,children:r})})})};cM.displayName=om;var Dr="TooltipContent",uM=d.forwardRef((e,t)=>{const n=HU(Dr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=la(Dr,e.__scopeTooltip);return p.jsx(De,{present:r||s.open,children:s.disableHoverableContent?p.jsx(dM,{side:o,...a,ref:t}):p.jsx(VU,{side:o,...a,ref:t})})}),VU=d.forwardRef((e,t)=>{const n=la(Dr,e.__scopeTooltip),r=rm(Dr,e.__scopeTooltip),o=d.useRef(null),a=ce(t,o),[s,i]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:c}=r,m=d.useCallback(()=>{i(null),c(!1)},[c]),h=d.useCallback((v,g)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=XU(y,b.getBoundingClientRect()),S=ZU(y,x),C=QU(g.getBoundingClientRect()),E=e4([...S,...C]);i(E),c(!0)},[c]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(l&&f){const v=b=>h(b,f),g=b=>h(b,l);return l.addEventListener("pointerleave",v),f.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",g)}}},[l,f,h,m]),d.useEffect(()=>{if(s){const v=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},x=l?.contains(b)||f?.contains(b),S=!JU(y,s);x?m():S&&(m(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,f,s,u,m]),p.jsx(dM,{...e,ref:a})}),[GU,UU]=si(Ao,{isInside:!1}),KU=uy("TooltipContent"),dM=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=la(Dr,n),u=ii(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(Hd,f),()=>document.removeEventListener(Hd,f)),[f]),d.useEffect(()=>{if(l.trigger){const c=m=>{m.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,f]),p.jsx(Mn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:p.jsxs(Yo,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(KU,{children:r}),p.jsx(GU,{scope:n,isInside:!0,children:p.jsx(gR,{id:l.contentId,role:"tooltip",children:o||r})})]})})});uM.displayName=Dr;var fM="TooltipArrow",YU=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ii(n);return UU(fM,n).isInside?null:p.jsx(Xo,{...o,...r,ref:t})});YU.displayName=fM;function XU(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ZU(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function QU(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function JU(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,f=i.y,c=l.x,m=l.y;f>r!=m>r&&n<(c-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function e4(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),t4(t)}function t4(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var n4=sM,r4=iM,o4=lM,a4=cM,pM=uM;const mM=n4,hM=r4,gM=o4,am=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(a4,{children:p.jsx(pM,{ref:r,sideOffset:t,className:N("z-50 overflow-hidden rounded-md bg-surface-1 px-3 py-1.5 text-xs text-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));am.displayName=pM.displayName;const s4="sidebar_state",i4=3600*24*7,l4="16rem",c4="18rem",u4="3rem",d4="b",vM=d.createContext(null);function ca(){const e=d.useContext(vM);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const bM=d.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s},i)=>{const l=FU(),[u,f]=d.useState(!1),[c,m]=d.useState(e),h=t??c,v=d.useCallback(x=>{const S=typeof x=="function"?x(h):x;n?n(S):m(S),document.cookie=`${s4}=${S}; path=/; max-age=${i4}`},[n,h]),g=d.useCallback(()=>l?f(x=>!x):v(x=>!x),[l,v,f]);d.useEffect(()=>{const x=S=>{S.key===d4&&(S.metaKey||S.ctrlKey)&&(S.preventDefault(),g())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[g]);const b=h?"expanded":"collapsed",y=d.useMemo(()=>({state:b,open:h,setOpen:v,isMobile:l,openMobile:u,setOpenMobile:f,toggleSidebar:g}),[b,h,v,l,u,f,g]);return p.jsx(vM.Provider,{value:y,children:p.jsx(mM,{delayDuration:0,children:p.jsx("div",{style:{"--sidebar-width":l4,"--sidebar-width-icon":u4,...o},className:N("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...s,children:a})})})});bM.displayName="SidebarProvider";const yM=d.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},s)=>{const{isMobile:i,state:l,openMobile:u,setOpenMobile:f}=ca();return n==="none"?p.jsx("div",{className:N("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...a,children:o}):i?p.jsx(nM,{open:u,onOpenChange:f,...a,children:p.jsxs(Jp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":c4},side:e,children:[p.jsxs(em,{className:"sr-only",children:[p.jsx(tm,{children:"Sidebar"}),p.jsx(nm,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.jsxs("div",{ref:s,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[p.jsx("div",{className:N("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),p.jsx("div",{className:N("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:p.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});yM.displayName="Sidebar";const xM=d.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=ca();return p.jsxs(Tn,{ref:r,"data-sidebar":"trigger",variant:"flat",size:"sm",shape:"square",className:N("h-7 w-7",e),onClick:a=>{t?.(a),o()},...n,children:[p.jsx(pO,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});xM.displayName="SidebarTrigger";const wM=d.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=ca();return p.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:N("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});wM.displayName="SidebarRail";const SM=d.forwardRef(({className:e,...t},n)=>p.jsx("main",{ref:n,className:N("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));SM.displayName="SidebarInset";const CM=d.forwardRef(({className:e,...t},n)=>p.jsx(Gs,{ref:n,"data-sidebar":"input",className:N("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));CM.displayName="SidebarInput";const _M=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t}));_M.displayName="SidebarHeader";const EM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t}));EM.displayName="SidebarFooter";const RM=d.forwardRef(({className:e,...t},n)=>p.jsx(Fr,{ref:n,"data-sidebar":"separator",className:N("mx-2 w-auto bg-sidebar-border",e),...t}));RM.displayName="SidebarSeparator";const NM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));NM.displayName="SidebarContent";const PM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t}));PM.displayName="SidebarGroup";const MM=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Yt:"div";return p.jsx(o,{ref:r,"data-sidebar":"group-label",className:N("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});MM.displayName="SidebarGroupLabel";const TM=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Yt:"button";return p.jsx(o,{ref:r,"data-sidebar":"group-action",className:N("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});TM.displayName="SidebarGroupAction";const OM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"group-content",className:N("w-full text-sm",e),...t}));OM.displayName="SidebarGroupContent";const AM=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,"data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t}));AM.displayName="SidebarMenu";const DM=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,"data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t}));DM.displayName="SidebarMenuItem";const f4=Ke({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),IM=d.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s},i)=>{const l=e?Yt:"button",{isMobile:u,state:f}=ca(),c=p.jsx(l,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(f4({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),p.jsxs(hM,{children:[p.jsx(gM,{asChild:!0,children:c}),p.jsx(am,{side:"right",align:"center",hidden:f!=="collapsed"||u,...o})]})):c});IM.displayName="SidebarMenuButton";const kM=d.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?Yt:"button";return p.jsx(a,{ref:o,"data-sidebar":"menu-action",className:N("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});kM.displayName="SidebarMenuAction";const jM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:N("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));jM.displayName="SidebarMenuBadge";const $M=d.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return p.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&p.jsx(Wd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),p.jsx(Wd,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});$M.displayName="SidebarMenuSkeleton";const LM=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:N("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));LM.displayName="SidebarMenuSub";const FM=d.forwardRef(({...e},t)=>p.jsx("li",{ref:t,...e}));FM.displayName="SidebarMenuSubItem";const BM=d.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const s=e?Yt:"a";return p.jsx(s,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});BM.displayName="SidebarMenuSubButton";var zM=["PageUp","PageDown"],qM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],WM={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ur="Slider",[Gd,p4,m4]=Pn(Ur),[HM]=ke(Ur,[m4]),[h4,li]=HM(Ur),VM=d.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:s="horizontal",disabled:i=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:c=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:v,...g}=e,b=d.useRef(new Set),y=d.useRef(0),S=s==="horizontal"?g4:v4,[C=[],E]=Ae({prop:f,defaultProp:u,onChange:T=>{[...b.current][y.current]?.focus(),c(T)}}),R=d.useRef(C);function _(T){const $=S4(C,T);k(T,$)}function P(T){k(T,y.current)}function M(){const T=R.current[y.current];C[y.current]!==T&&m(C)}function k(T,$,{commit:O}={commit:!1}){const L=R4(a),F=N4(Math.round((T-r)/a)*a+r,L),D=Oo(F,[r,o]);E((V=[])=>{const H=x4(V,D,$);if(E4(H,l*a)){y.current=H.indexOf(D);const B=String(H)!==String(V);return B&&O&&m(H),B?H:V}else return V})}return p.jsx(h4,{scope:e.__scopeSlider,name:n,disabled:i,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:C,orientation:s,form:v,children:p.jsx(Gd.Provider,{scope:e.__scopeSlider,children:p.jsx(Gd.Slot,{scope:e.__scopeSlider,children:p.jsx(S,{"aria-disabled":i,"data-disabled":i?"":void 0,...g,ref:t,onPointerDown:U(g.onPointerDown,()=>{i||(R.current=C)}),min:r,max:o,inverted:h,onSlideStart:i?void 0:_,onSlideMove:i?void 0:P,onSlideEnd:i?void 0:M,onHomeKeyDown:()=>!i&&k(r,0,{commit:!0}),onEndKeyDown:()=>!i&&k(o,C.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:$})=>{if(!i){const F=zM.includes(T.key)||T.shiftKey&&qM.includes(T.key)?10:1,D=y.current,V=C[D],H=a*F*$;k(V+H,D,{commit:!0})}}})})})})});VM.displayName=Ur;var[GM,UM]=HM(Ur,{startEdge:"left",endEdge:"right",size:"width",direction:1}),g4=d.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:s,onSlideMove:i,onSlideEnd:l,onStepKeyDown:u,...f}=e,[c,m]=d.useState(null),h=ce(t,S=>m(S)),v=d.useRef(void 0),g=kt(o),b=g==="ltr",y=b&&!a||!b&&a;function x(S){const C=v.current||c.getBoundingClientRect(),E=[0,C.width],_=sm(E,y?[n,r]:[r,n]);return v.current=C,_(S-C.left)}return p.jsx(GM,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:p.jsx(KM,{dir:g,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:S=>{const C=x(S.clientX);s?.(C)},onSlideMove:S=>{const C=x(S.clientX);i?.(C)},onSlideEnd:()=>{v.current=void 0,l?.()},onStepKeyDown:S=>{const E=WM[y?"from-left":"from-right"].includes(S.key);u?.({event:S,direction:E?-1:1})}})})}),v4=d.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:i,onStepKeyDown:l,...u}=e,f=d.useRef(null),c=ce(t,f),m=d.useRef(void 0),h=!o;function v(g){const b=m.current||f.current.getBoundingClientRect(),y=[0,b.height],S=sm(y,h?[r,n]:[n,r]);return m.current=b,S(g-b.top)}return p.jsx(GM,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(KM,{"data-orientation":"vertical",...u,ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=v(g.clientY);a?.(b)},onSlideMove:g=>{const b=v(g.clientY);s?.(b)},onSlideEnd:()=>{m.current=void 0,i?.()},onStepKeyDown:g=>{const y=WM[h?"from-bottom":"from-top"].includes(g.key);l?.({event:g,direction:y?-1:1})}})})}),KM=d.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:i,onStepKeyDown:l,...u}=e,f=li(Ur,n);return p.jsx(ne.span,{...u,ref:t,onKeyDown:U(e.onKeyDown,c=>{c.key==="Home"?(s(c),c.preventDefault()):c.key==="End"?(i(c),c.preventDefault()):zM.concat(qM).includes(c.key)&&(l(c),c.preventDefault())}),onPointerDown:U(e.onPointerDown,c=>{const m=c.target;m.setPointerCapture(c.pointerId),c.preventDefault(),f.thumbs.has(m)?m.focus():r(c)}),onPointerMove:U(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:U(e.onPointerUp,c=>{const m=c.target;m.hasPointerCapture(c.pointerId)&&(m.releasePointerCapture(c.pointerId),a(c))})})}),YM="SliderTrack",XM=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=li(YM,n);return p.jsx(ne.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});XM.displayName=YM;var Ud="SliderRange",ZM=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=li(Ud,n),a=UM(Ud,n),s=d.useRef(null),i=ce(t,s),l=o.values.length,u=o.values.map(m=>e1(m,o.min,o.max)),f=l>1?Math.min(...u):0,c=100-Math.max(...u);return p.jsx(ne.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:i,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:c+"%"}})});ZM.displayName=Ud;var Kd="SliderThumb",QM=d.forwardRef((e,t)=>{const n=p4(e.__scopeSlider),[r,o]=d.useState(null),a=ce(t,i=>o(i)),s=d.useMemo(()=>r?n().findIndex(i=>i.ref.current===r):-1,[n,r]);return p.jsx(b4,{...e,ref:a,index:s})}),b4=d.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,s=li(Kd,n),i=UM(Kd,n),[l,u]=d.useState(null),f=ce(t,x=>u(x)),c=l?s.form||!!l.closest("form"):!0,m=Go(l),h=s.values[r],v=h===void 0?0:e1(h,s.min,s.max),g=w4(r,s.values.length),b=m?.[i.size],y=b?C4(b,v,i.direction):0;return d.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${v}% + ${y}px)`},children:[p.jsx(Gd.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ne.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":s.min,"aria-valuenow":h,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:f,style:h===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),c&&p.jsx(JM,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:h},r)]})});QM.displayName=Kd;var y4="RadioBubbleInput",JM=d.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=d.useRef(null),a=ce(o,r),s=zr(t);return d.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&f){const c=new Event("input",{bubbles:!0});f.call(i,t),i.dispatchEvent(c)}},[s,t]),p.jsx(ne.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});JM.displayName=y4;function x4(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function e1(e,t,n){const a=100/(n-t)*(e-t);return Oo(a,[0,100])}function w4(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function S4(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function C4(e,t,n){const r=e/2,a=sm([0,50],[0,r]);return(r-a(t)*n)*n}function _4(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function E4(e,t){if(t>0){const n=_4(e);return Math.min(...n)>=t}return!0}function sm(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function R4(e){return(String(e).split(".")[1]||"").length}function N4(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var t1=VM,P4=XM,M4=ZM,T4=QM;const n1=d.forwardRef(({className:e,...t},n)=>p.jsxs(t1,{ref:n,className:N("relative flex touch-none select-none items-center",e),...t,children:[p.jsx(P4,{className:"relative h-1.5 w-full grow rounded-full bg-primary-dark/90",children:p.jsx(M4,{className:"absolute h-full rounded-l-full bg-primary-light shadow-[0_2px_8px_-1px_hsl(var(--primary-light))]"})}),p.jsx(T4,{className:"block h-4 w-4 rounded-full border border-primary-light bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));n1.displayName=t1.displayName;var O4=(e,t,n,r,o,a,s,i)=>{let l=document.documentElement,u=["light","dark"];function f(h){(Array.isArray(e)?e:[e]).forEach(v=>{let g=v==="class",b=g&&a?o.map(y=>a[y]||y):o;g?(l.classList.remove(...b),l.classList.add(a&&a[h]?a[h]:h)):l.setAttribute(v,h)}),c(h)}function c(h){i&&u.includes(h)&&(l.style.colorScheme=h)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)f(r);else try{let h=localStorage.getItem(t)||n,v=s&&h==="system"?m():h;f(v)}catch{}},A4=d.createContext(void 0),D4={setTheme:e=>{},themes:[]},I4=()=>{var e;return(e=d.useContext(A4))!=null?e:D4};d.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:s,themes:i,nonce:l,scriptProps:u})=>{let f=JSON.stringify([n,t,a,e,i,s,r,o]).slice(1,-1);return d.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${O4.toString()})(${f})`}})});function k4(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const j4=e=>{switch(e){case"success":return F4;case"info":return z4;case"warning":return B4;case"error":return q4;default:return null}},$4=Array(12).fill(0),L4=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},$4.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),F4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),B4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),z4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),q4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),W4=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),H4=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Yd=1;class V4{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Yd++,s=this.toasts.find(l=>l.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:i,title:r}):l):this.addToast({title:r,...o,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,s;const i=o.then(async u=>{if(s=["resolve",u],w.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(U4(u)&&!u.ok){a=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,v=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...v})}else if(u instanceof Error){a=!1;const c=typeof n.error=="function"?await n.error(u):n.error,m=typeof n.description=="function"?await n.description(u):n.description,v=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...v})}else if(n.success!==void 0){a=!1;const c=typeof n.success=="function"?await n.success(u):n.success,m=typeof n.description=="function"?await n.description(u):n.description,v=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:m,...v})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){a=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,h=typeof f=="object"&&!w.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...h})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,f)=>i.then(()=>s[0]==="reject"?f(s[1]):u(s[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Yd++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const dt=new V4,G4=(e,t)=>{const n=t?.id||Yd++;return dt.addToast({title:e,...t,id:n}),n},U4=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",K4=G4,Y4=()=>dt.toasts,X4=()=>dt.getActiveToasts();Object.assign(K4,{success:dt.success,info:dt.info,warning:dt.warning,error:dt.error,custom:dt.custom,message:dt.message,promise:dt.promise,dismiss:dt.dismiss,loading:dt.loading},{getHistory:Y4,getToasts:X4});k4("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Na(e){return e.label!==void 0}const Z4=3,Q4="24px",J4="16px",oy=4e3,eK=356,tK=14,nK=45,rK=200;function qt(...e){return e.filter(Boolean).join(" ")}function oK(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const aK=e=>{var t,n,r,o,a,s,i,l,u;const{invert:f,toast:c,unstyled:m,interacting:h,setHeights:v,visibleToasts:g,heights:b,index:y,toasts:x,expanded:S,removeToast:C,defaultRichColors:E,closeButton:R,style:_,cancelButtonStyle:P,actionButtonStyle:M,className:k="",descriptionClassName:T="",duration:$,position:O,gap:L,expandByDefault:F,classNames:D,icons:V,closeButtonAriaLabel:H="Close toast"}=e,[B,Z]=w.useState(null),[Q,q]=w.useState(null),[A,W]=w.useState(!1),[z,K]=w.useState(!1),[j,G]=w.useState(!1),[ee,te]=w.useState(!1),[re,Y]=w.useState(!1),[se,I]=w.useState(0),[oe,fe]=w.useState(0),pe=w.useRef(c.duration||$||oy),me=w.useRef(null),de=w.useRef(null),xe=y===0,je=y+1<=g,ye=c.type,Ee=c.dismissible!==!1,qe=c.className||"",We=c.descriptionClassName||"",Ye=w.useMemo(()=>b.findIndex(J=>J.toastId===c.id)||0,[b,c.id]),Je=w.useMemo(()=>{var J;return(J=c.closeButton)!=null?J:R},[c.closeButton,R]),st=w.useMemo(()=>c.duration||$||oy,[c.duration,$]),it=w.useRef(0),He=w.useRef(0),bt=w.useRef(0),Ve=w.useRef(null),[Xe,Et]=O.split("-"),zt=w.useMemo(()=>b.reduce((J,ve,we)=>we>=Ye?J:J+ve.height,0),[b,Ye]),gn=H4(),vn=c.invert||f,rn=ye==="loading";He.current=w.useMemo(()=>Ye*L+zt,[Ye,zt]),w.useEffect(()=>{pe.current=st},[st]),w.useEffect(()=>{W(!0)},[]),w.useEffect(()=>{const J=de.current;if(J){const ve=J.getBoundingClientRect().height;return fe(ve),v(we=>[{toastId:c.id,height:ve,position:c.position},...we]),()=>v(we=>we.filter(Re=>Re.toastId!==c.id))}},[v,c.id]),w.useLayoutEffect(()=>{if(!A)return;const J=de.current,ve=J.style.height;J.style.height="auto";const we=J.getBoundingClientRect().height;J.style.height=ve,fe(we),v(Re=>Re.find(Se=>Se.toastId===c.id)?Re.map(Se=>Se.toastId===c.id?{...Se,height:we}:Se):[{toastId:c.id,height:we,position:c.position},...Re])},[A,c.title,c.description,v,c.id,c.jsx,c.action,c.cancel]);const X=w.useCallback(()=>{K(!0),I(He.current),v(J=>J.filter(ve=>ve.toastId!==c.id)),setTimeout(()=>{C(c)},rK)},[c,C,v,He]);w.useEffect(()=>{if(c.promise&&ye==="loading"||c.duration===1/0||c.type==="loading")return;let J;return S||h||gn?(()=>{if(bt.current<it.current){const Re=new Date().getTime()-it.current;pe.current=pe.current-Re}bt.current=new Date().getTime()})():(()=>{pe.current!==1/0&&(it.current=new Date().getTime(),J=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),X()},pe.current))})(),()=>clearTimeout(J)},[S,h,c,ye,gn,X]),w.useEffect(()=>{c.delete&&(X(),c.onDismiss==null||c.onDismiss.call(c,c))},[X,c.delete]);function le(){var J;if(V?.loading){var ve;return w.createElement("div",{className:qt(D?.loader,c==null||(ve=c.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":ye==="loading"},V.loading)}return w.createElement(L4,{className:qt(D?.loader,c==null||(J=c.classNames)==null?void 0:J.loader),visible:ye==="loading"})}const ae=c.icon||V?.[ye]||j4(ye);var ie,be;return w.createElement("li",{tabIndex:0,ref:de,className:qt(k,qe,D?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,D?.default,D?.[ye],c==null||(n=c.classNames)==null?void 0:n[ye]),"data-sonner-toast":"","data-rich-colors":(ie=c.richColors)!=null?ie:E,"data-styled":!(c.jsx||c.unstyled||m),"data-mounted":A,"data-promise":!!c.promise,"data-swiped":re,"data-removed":z,"data-visible":je,"data-y-position":Xe,"data-x-position":Et,"data-index":y,"data-front":xe,"data-swiping":j,"data-dismissible":Ee,"data-type":ye,"data-invert":vn,"data-swipe-out":ee,"data-swipe-direction":Q,"data-expanded":!!(S||F&&A),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${z?se:He.current}px`,"--initial-height":F?"auto":`${oe}px`,..._,...c.style},onDragEnd:()=>{G(!1),Z(null),Ve.current=null},onPointerDown:J=>{J.button!==2&&(rn||!Ee||(me.current=new Date,I(He.current),J.target.setPointerCapture(J.pointerId),J.target.tagName!=="BUTTON"&&(G(!0),Ve.current={x:J.clientX,y:J.clientY})))},onPointerUp:()=>{var J,ve,we;if(ee||!Ee)return;Ve.current=null;const Re=Number(((J=de.current)==null?void 0:J.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),et=Number(((ve=de.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Se=new Date().getTime()-((we=me.current)==null?void 0:we.getTime()),$e=B==="x"?Re:et,on=Math.abs($e)/Se;if(Math.abs($e)>=nK||on>.11){I(He.current),c.onDismiss==null||c.onDismiss.call(c,c),q(B==="x"?Re>0?"right":"left":et>0?"down":"up"),X(),te(!0);return}else{var lt,Rt;(lt=de.current)==null||lt.style.setProperty("--swipe-amount-x","0px"),(Rt=de.current)==null||Rt.style.setProperty("--swipe-amount-y","0px")}Y(!1),G(!1),Z(null)},onPointerMove:J=>{var ve,we,Re;if(!Ve.current||!Ee||((ve=window.getSelection())==null?void 0:ve.toString().length)>0)return;const Se=J.clientY-Ve.current.y,$e=J.clientX-Ve.current.x;var on;const lt=(on=e.swipeDirections)!=null?on:oK(O);!B&&(Math.abs($e)>1||Math.abs(Se)>1)&&Z(Math.abs($e)>Math.abs(Se)?"x":"y");let Rt={x:0,y:0};const fm=$n=>1/(1.5+Math.abs($n)/20);if(B==="y"){if(lt.includes("top")||lt.includes("bottom"))if(lt.includes("top")&&Se<0||lt.includes("bottom")&&Se>0)Rt.y=Se;else{const $n=Se*fm(Se);Rt.y=Math.abs($n)<Math.abs(Se)?$n:Se}}else if(B==="x"&&(lt.includes("left")||lt.includes("right")))if(lt.includes("left")&&$e<0||lt.includes("right")&&$e>0)Rt.x=$e;else{const $n=$e*fm($e);Rt.x=Math.abs($n)<Math.abs($e)?$n:$e}(Math.abs(Rt.x)>0||Math.abs(Rt.y)>0)&&Y(!0),(we=de.current)==null||we.style.setProperty("--swipe-amount-x",`${Rt.x}px`),(Re=de.current)==null||Re.style.setProperty("--swipe-amount-y",`${Rt.y}px`)}},Je&&!c.jsx&&ye!=="loading"?w.createElement("button",{"aria-label":H,"data-disabled":rn,"data-close-button":!0,onClick:rn||!Ee?()=>{}:()=>{X(),c.onDismiss==null||c.onDismiss.call(c,c)},className:qt(D?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(be=V?.close)!=null?be:W4):null,(ye||c.icon||c.promise)&&c.icon!==null&&(V?.[ye]!==null||c.icon)?w.createElement("div",{"data-icon":"",className:qt(D?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||le():null,c.type!=="loading"?ae:null):null,w.createElement("div",{"data-content":"",className:qt(D?.content,c==null||(a=c.classNames)==null?void 0:a.content)},w.createElement("div",{"data-title":"",className:qt(D?.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?w.createElement("div",{"data-description":"",className:qt(T,We,D?.description,c==null||(i=c.classNames)==null?void 0:i.description)},typeof c.description=="function"?c.description():c.description):null),w.isValidElement(c.cancel)?c.cancel:c.cancel&&Na(c.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||P,onClick:J=>{Na(c.cancel)&&Ee&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,J),X())},className:qt(D?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,w.isValidElement(c.action)?c.action:c.action&&Na(c.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||M,onClick:J=>{Na(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,J),!J.defaultPrevented&&X())},className:qt(D?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function ay(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function sK(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,s=a?"--mobile-offset":"--offset",i=a?J4:Q4;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${s}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=i:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(i)}),n}const iK=w.forwardRef(function(t,n){const{id:r,invert:o,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:l,className:u,offset:f,mobileOffset:c,theme:m="light",richColors:h,duration:v,style:g,visibleToasts:b=Z4,toastOptions:y,dir:x=ay(),gap:S=tK,icons:C,containerAriaLabel:E="Notifications"}=t,[R,_]=w.useState([]),P=w.useMemo(()=>r?R.filter(A=>A.toasterId===r):R.filter(A=>!A.toasterId),[R,r]),M=w.useMemo(()=>Array.from(new Set([a].concat(P.filter(A=>A.position).map(A=>A.position)))),[P,a]),[k,T]=w.useState([]),[$,O]=w.useState(!1),[L,F]=w.useState(!1),[D,V]=w.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=w.useRef(null),B=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=w.useRef(null),Q=w.useRef(!1),q=w.useCallback(A=>{_(W=>{var z;return(z=W.find(K=>K.id===A.id))!=null&&z.delete||dt.dismiss(A.id),W.filter(({id:K})=>K!==A.id)})},[]);return w.useEffect(()=>dt.subscribe(A=>{if(A.dismiss){requestAnimationFrame(()=>{_(W=>W.map(z=>z.id===A.id?{...z,delete:!0}:z))});return}setTimeout(()=>{fs.flushSync(()=>{_(W=>{const z=W.findIndex(K=>K.id===A.id);return z!==-1?[...W.slice(0,z),{...W[z],...A},...W.slice(z+1)]:[A,...W]})})})}),[R]),w.useEffect(()=>{if(m!=="system"){V(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const A=window.matchMedia("(prefers-color-scheme: dark)");try{A.addEventListener("change",({matches:W})=>{V(W?"dark":"light")})}catch{A.addListener(({matches:z})=>{try{V(z?"dark":"light")}catch(K){console.error(K)}})}},[m]),w.useEffect(()=>{R.length<=1&&O(!1)},[R]),w.useEffect(()=>{const A=W=>{var z;if(s.every(G=>W[G]||W.code===G)){var j;O(!0),(j=H.current)==null||j.focus()}W.code==="Escape"&&(document.activeElement===H.current||(z=H.current)!=null&&z.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[s]),w.useEffect(()=>{if(H.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,Q.current=!1)}},[H.current]),w.createElement("section",{ref:n,"aria-label":`${E} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((A,W)=>{var z;const[K,j]=A.split("-");return P.length?w.createElement("ol",{key:A,dir:x==="auto"?ay():x,tabIndex:-1,ref:H,className:u,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":K,"data-x-position":j,style:{"--front-toast-height":`${((z=k[0])==null?void 0:z.height)||0}px`,"--width":`${eK}px`,"--gap":`${S}px`,...g,...sK(f,c)},onBlur:G=>{Q.current&&!G.currentTarget.contains(G.relatedTarget)&&(Q.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||Q.current||(Q.current=!0,Z.current=G.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{L||O(!1)},onDragEnd:()=>O(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},P.filter(G=>!G.position&&W===0||G.position===A).map((G,ee)=>{var te,re;return w.createElement(aK,{key:G.id,icons:C,index:ee,toast:G,defaultRichColors:h,duration:(te=y?.duration)!=null?te:v,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:b,closeButton:(re=y?.closeButton)!=null?re:l,interacting:L,position:A,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:q,toasts:P.filter(Y=>Y.position==G.position),heights:k.filter(Y=>Y.position==G.position),setHeights:T,expandByDefault:i,gap:S,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),lK=({...e})=>{const{theme:t="system"}=I4();return p.jsx(iK,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function cK({className:e,...t}){return p.jsx(cO,{role:"status","aria-label":"Loading",className:N("size-4 animate-spin",e),...t})}var ci="Switch",[uK]=ke(ci),[dK,fK]=uK(ci),r1=d.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:u,form:f,...c}=e,[m,h]=d.useState(null),v=ce(t,S=>h(S)),g=d.useRef(!1),b=m?f||!!m.closest("form"):!0,[y,x]=Ae({prop:o,defaultProp:a??!1,onChange:u,caller:ci});return p.jsxs(dK,{scope:n,checked:y,disabled:i,children:[p.jsx(ne.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":i1(y),"data-disabled":i?"":void 0,disabled:i,value:l,...c,ref:v,onClick:U(e.onClick,S=>{x(C=>!C),b&&(g.current=S.isPropagationStopped(),g.current||S.stopPropagation())})}),b&&p.jsx(s1,{control:m,bubbles:!g.current,name:r,value:l,checked:y,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});r1.displayName=ci;var o1="SwitchThumb",a1=d.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=fK(o1,n);return p.jsx(ne.span,{"data-state":i1(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});a1.displayName=o1;var pK="SwitchBubbleInput",s1=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=d.useRef(null),i=ce(s,a),l=zr(n),u=Go(t);return d.useEffect(()=>{const f=s.current;if(!f)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&h){const v=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(v)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});s1.displayName=pK;function i1(e){return e?"checked":"unchecked"}var l1=r1,mK=a1;const c1=d.forwardRef(({className:e,...t},n)=>p.jsx(l1,{className:N("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(mK,{className:N("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));c1.displayName=l1.displayName;const u1=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:n,className:N("w-full caption-bottom text-sm",e),...t})}));u1.displayName="Table";const d1=d.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:N("[&_tr]:border-b",e),...t}));d1.displayName="TableHeader";const f1=d.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:N("[&_tr:last-child]:border-0",e),...t}));f1.displayName="TableBody";const p1=d.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:N("border-t bg-background/50 font-medium [&>tr]:last:border-b-0",e),...t}));p1.displayName="TableFooter";const m1=d.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:N("border-b transition-colors hover:bg-background/50 data-[state=selected]:bg-background",e),...t}));m1.displayName="TableRow";const h1=d.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:N("h-10 px-2 text-left align-middle font-medium text-foreground/70 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));h1.displayName="TableHead";const g1=d.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:N("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));g1.displayName="TableCell";const v1=d.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:N("mt-4 text-sm text-foreground/70",e),...t}));v1.displayName="TableCaption";var ui="Tabs",[hK]=ke(ui,[tn]),b1=tn(),[gK,im]=hK(ui),y1=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...u}=e,f=kt(i),[c,m]=Ae({prop:r,onChange:o,defaultProp:a??"",caller:ui});return p.jsx(gK,{scope:n,baseId:Te(),value:c,onValueChange:m,orientation:s,dir:f,activationMode:l,children:p.jsx(ne.div,{dir:f,"data-orientation":s,...u,ref:t})})});y1.displayName=ui;var x1="TabsList",w1=d.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=im(x1,n),s=b1(n);return p.jsx(Qo,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(ne.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});w1.displayName=x1;var S1="TabsTrigger",C1=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=im(S1,n),i=b1(n),l=R1(s.baseId,r),u=N1(s.baseId,r),f=r===s.value;return p.jsx(Jo,{asChild:!0,...i,focusable:!o,active:f,children:p.jsx(ne.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:U(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:U(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:U(e.onFocus,()=>{const c=s.activationMode!=="manual";!f&&!o&&c&&s.onValueChange(r)})})})});C1.displayName=S1;var _1="TabsContent",E1=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=im(_1,n),l=R1(i.baseId,r),u=N1(i.baseId,r),f=r===i.value,c=d.useRef(f);return d.useEffect(()=>{const m=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(m)},[]),p.jsx(De,{present:o||f,children:({present:m})=>p.jsx(ne.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:m&&a})})});E1.displayName=_1;function R1(e,t){return`${e}-trigger-${t}`}function N1(e,t){return`${e}-content-${t}`}var vK=y1,P1=w1,M1=C1,T1=E1;const bK=vK,O1=d.forwardRef(({className:e,...t},n)=>p.jsx(P1,{ref:n,className:N("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));O1.displayName=P1.displayName;const A1=d.forwardRef(({className:e,...t},n)=>p.jsx(M1,{ref:n,className:N("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));A1.displayName=M1.displayName;const D1=d.forwardRef(({className:e,...t},n)=>p.jsx(T1,{ref:n,className:N("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));D1.displayName=T1.displayName;var I1="Toggle",lm=d.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=Ae({prop:n,onChange:o,defaultProp:r??!1,caller:I1});return p.jsx(ne.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:U(e.onClick,()=>{e.disabled||i(!s)})})});lm.displayName=I1;var k1=lm;const cm=Ke({base:"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),j1=d.forwardRef(({className:e,variant:t,size:n,...r},o)=>p.jsx(k1,{ref:o,className:N(cm({variant:t,size:n,className:e})),...r}));j1.displayName=k1.displayName;var jn="ToggleGroup",[$1]=ke(jn,[tn]),L1=tn(),um=w.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return p.jsx(yK,{...o,ref:t})}if(n==="multiple"){const o=r;return p.jsx(xK,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${jn}\``)});um.displayName=jn;var[F1,B1]=$1(jn),yK=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=Ae({prop:n,defaultProp:r??"",onChange:o,caller:jn});return p.jsx(F1,{scope:e.__scopeToggleGroup,type:"single",value:w.useMemo(()=>s?[s]:[],[s]),onItemActivate:i,onItemDeactivate:w.useCallback(()=>i(""),[i]),children:p.jsx(z1,{...a,ref:t})})}),xK=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=Ae({prop:n,defaultProp:r??[],onChange:o,caller:jn}),l=w.useCallback(f=>i((c=[])=>[...c,f]),[i]),u=w.useCallback(f=>i((c=[])=>c.filter(m=>m!==f)),[i]);return p.jsx(F1,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:l,onItemDeactivate:u,children:p.jsx(z1,{...a,ref:t})})});um.displayName=jn;var[wK,SK]=$1(jn),z1=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:i=!0,...l}=e,u=L1(n),f=kt(s),c={role:"group",dir:f,...l};return p.jsx(wK,{scope:n,rovingFocus:o,disabled:r,children:o?p.jsx(Qo,{asChild:!0,...u,orientation:a,dir:f,loop:i,children:p.jsx(ne.div,{...c,ref:t})}):p.jsx(ne.div,{...c,ref:t})})}),ls="ToggleGroupItem",q1=w.forwardRef((e,t)=>{const n=B1(ls,e.__scopeToggleGroup),r=SK(ls,e.__scopeToggleGroup),o=L1(e.__scopeToggleGroup),a=n.value.includes(e.value),s=r.disabled||e.disabled,i={...e,pressed:a,disabled:s},l=w.useRef(null);return r.rovingFocus?p.jsx(Jo,{asChild:!0,...o,focusable:!s,active:a,ref:l,children:p.jsx(sy,{...i,ref:t})}):p.jsx(sy,{...i,ref:t})});q1.displayName=ls;var sy=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=B1(ls,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=a.type==="single"?s:void 0;return p.jsx(lm,{...i,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}})}),W1=um,H1=q1;const V1=d.createContext({size:"default",variant:"default"}),G1=d.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>p.jsx(W1,{ref:a,className:N("flex items-center justify-center gap-1",e),...o,children:p.jsx(V1.Provider,{value:{variant:t,size:n},children:r})}));G1.displayName=W1.displayName;const U1=d.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const s=d.useContext(V1);return p.jsx(H1,{ref:a,className:N(cm({variant:s.variant||n,size:s.size||r}),e),...o,children:t})});U1.displayName=H1.displayName;var CK=Object.defineProperty,_K=Object.defineProperties,EK=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,K1=Object.prototype.hasOwnProperty,Y1=Object.prototype.propertyIsEnumerable,iy=(e,t,n)=>t in e?CK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RK=(e,t)=>{for(var n in t||(t={}))K1.call(t,n)&&iy(e,n,t[n]);if(cs)for(var n of cs(t))Y1.call(t,n)&&iy(e,n,t[n]);return e},NK=(e,t)=>_K(e,EK(t)),PK=(e,t)=>{var n={};for(var r in e)K1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&cs)for(var r of cs(e))t.indexOf(r)<0&&Y1.call(e,r)&&(n[r]=e[r]);return n};function MK(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function TK(e){let t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current}var OK=18,X1=40,AK=`${X1}px`,DK=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function IK({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=d.useState(!1),[s,i]=d.useState(!1),[l,u]=d.useState(!1),f=d.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&s,[o,s,n]),c=d.useCallback(()=>{let m=e.current,h=t.current;if(!m||!h||l||n==="none")return;let v=m,g=v.getBoundingClientRect().left+v.offsetWidth,b=v.getBoundingClientRect().top+v.offsetHeight/2,y=g-OK,x=b;document.querySelectorAll(DK).length===0&&document.elementFromPoint(y,x)===m||(a(!0),u(!0))},[e,t,l,n]);return d.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function h(){let g=window.innerWidth-m.getBoundingClientRect().right;i(g>=X1)}h();let v=setInterval(h,1e3);return()=>{clearInterval(v)}},[e,n]),d.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let h=setTimeout(c,0),v=setTimeout(c,2e3),g=setTimeout(c,5e3),b=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(h),clearTimeout(v),clearTimeout(g),clearTimeout(b)}},[t,r,n,c]),{hasPWMBadge:o,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:AK}}var Z1=d.createContext({}),Q1=d.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:s="left",pattern:i,placeholder:l,inputMode:u="numeric",onComplete:f,pushPasswordManagerStrategy:c="increase-width",pasteTransformer:m,containerClassName:h,noScriptCSSFallback:v=kK,render:g,children:b}=n,y=PK(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),x,S,C,E,R;let[_,P]=d.useState(typeof y.defaultValue=="string"?y.defaultValue:""),M=r??_,k=TK(M),T=d.useCallback(I=>{o?.(I),P(I)},[o]),$=d.useMemo(()=>i?typeof i=="string"?new RegExp(i):i:null,[i]),O=d.useRef(null),L=d.useRef(null),F=d.useRef({value:M,onChange:T,isIOS:typeof window<"u"&&((S=(x=window?.CSS)==null?void 0:x.supports)==null?void 0:S.call(x,"-webkit-touch-callout","none"))}),D=d.useRef({prev:[(C=O.current)==null?void 0:C.selectionStart,(E=O.current)==null?void 0:E.selectionEnd,(R=O.current)==null?void 0:R.selectionDirection]});d.useImperativeHandle(t,()=>O.current,[]),d.useEffect(()=>{let I=O.current,oe=L.current;if(!I||!oe)return;F.current.value!==I.value&&F.current.onChange(I.value),D.current.prev=[I.selectionStart,I.selectionEnd,I.selectionDirection];function fe(){if(document.activeElement!==I){q(null),W(null);return}let de=I.selectionStart,xe=I.selectionEnd,je=I.selectionDirection,ye=I.maxLength,Ee=I.value,qe=D.current.prev,We=-1,Ye=-1,Je;if(Ee.length!==0&&de!==null&&xe!==null){let bt=de===xe,Ve=de===Ee.length&&Ee.length<ye;if(bt&&!Ve){let Xe=de;if(Xe===0)We=0,Ye=1,Je="forward";else if(Xe===ye)We=Xe-1,Ye=Xe,Je="backward";else if(ye>1&&Ee.length>1){let Et=0;if(qe[0]!==null&&qe[1]!==null){Je=Xe<qe[1]?"backward":"forward";let zt=qe[0]===qe[1]&&qe[0]<ye;Je==="backward"&&!zt&&(Et=-1)}We=Et+Xe,Ye=Et+Xe+1}}We!==-1&&Ye!==-1&&We!==Ye&&O.current.setSelectionRange(We,Ye,Je)}let st=We!==-1?We:de,it=Ye!==-1?Ye:xe,He=Je??je;q(st),W(it),D.current.prev=[st,it,He]}if(document.addEventListener("selectionchange",fe,{capture:!0}),fe(),document.activeElement===I&&Z(!0),!document.getElementById("input-otp-style")){let de=document.createElement("style");if(de.id="input-otp-style",document.head.appendChild(de),de.sheet){let xe="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";no(de.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),no(de.sheet,`[data-input-otp]:autofill { ${xe} }`),no(de.sheet,`[data-input-otp]:-webkit-autofill { ${xe} }`),no(de.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),no(de.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let pe=()=>{oe&&oe.style.setProperty("--root-height",`${I.clientHeight}px`)};pe();let me=new ResizeObserver(pe);return me.observe(I),()=>{document.removeEventListener("selectionchange",fe,{capture:!0}),me.disconnect()}},[]);let[V,H]=d.useState(!1),[B,Z]=d.useState(!1),[Q,q]=d.useState(null),[A,W]=d.useState(null);d.useEffect(()=>{MK(()=>{var I,oe,fe,pe;(I=O.current)==null||I.dispatchEvent(new Event("input"));let me=(oe=O.current)==null?void 0:oe.selectionStart,de=(fe=O.current)==null?void 0:fe.selectionEnd,xe=(pe=O.current)==null?void 0:pe.selectionDirection;me!==null&&de!==null&&(q(me),W(de),D.current.prev=[me,de,xe])})},[M,B]),d.useEffect(()=>{k!==void 0&&M!==k&&k.length<a&&M.length===a&&f?.(M)},[a,f,k,M]);let z=IK({containerRef:L,inputRef:O,pushPasswordManagerStrategy:c,isFocused:B}),K=d.useCallback(I=>{let oe=I.currentTarget.value.slice(0,a);if(oe.length>0&&$&&!$.test(oe)){I.preventDefault();return}typeof k=="string"&&oe.length<k.length&&document.dispatchEvent(new Event("selectionchange")),T(oe)},[a,T,k,$]),j=d.useCallback(()=>{var I;if(O.current){let oe=Math.min(O.current.value.length,a-1),fe=O.current.value.length;(I=O.current)==null||I.setSelectionRange(oe,fe),q(oe),W(fe)}Z(!0)},[a]),G=d.useCallback(I=>{var oe,fe;let pe=O.current;if(!m&&(!F.current.isIOS||!I.clipboardData||!pe))return;let me=I.clipboardData.getData("text/plain"),de=m?m(me):me;I.preventDefault();let xe=(oe=O.current)==null?void 0:oe.selectionStart,je=(fe=O.current)==null?void 0:fe.selectionEnd,ye=(xe!==je?M.slice(0,xe)+de+M.slice(je):M.slice(0,xe)+de+M.slice(xe)).slice(0,a);if(ye.length>0&&$&&!$.test(ye))return;pe.value=ye,T(ye);let Ee=Math.min(ye.length,a-1),qe=ye.length;pe.setSelectionRange(Ee,qe),q(Ee),W(qe)},[a,T,$,M]),ee=d.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),te=d.useMemo(()=>({position:"absolute",inset:0,width:z.willPushPWMBadge?`calc(100% + ${z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:z.willPushPWMBadge?`inset(0 ${z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[z.PWM_BADGE_SPACE_WIDTH,z.willPushPWMBadge,s]),re=d.useMemo(()=>d.createElement("input",NK(RK({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":M.length===0||void 0,"data-input-otp-mss":Q,"data-input-otp-mse":A,inputMode:u,pattern:$?.source,"aria-placeholder":l,style:te,maxLength:a,value:M,ref:O,onPaste:I=>{var oe;G(I),(oe=y.onPaste)==null||oe.call(y,I)},onChange:K,onMouseOver:I=>{var oe;H(!0),(oe=y.onMouseOver)==null||oe.call(y,I)},onMouseLeave:I=>{var oe;H(!1),(oe=y.onMouseLeave)==null||oe.call(y,I)},onFocus:I=>{var oe;j(),(oe=y.onFocus)==null||oe.call(y,I)},onBlur:I=>{var oe;Z(!1),(oe=y.onBlur)==null||oe.call(y,I)}})),[K,j,G,u,te,a,A,Q,y,$?.source,M]),Y=d.useMemo(()=>({slots:Array.from({length:a}).map((I,oe)=>{var fe;let pe=B&&Q!==null&&A!==null&&(Q===A&&oe===Q||oe>=Q&&oe<A),me=M[oe]!==void 0?M[oe]:null,de=M[0]!==void 0?null:(fe=l?.[oe])!=null?fe:null;return{char:me,placeholderChar:de,isActive:pe,hasFakeCaret:pe&&me===null}}),isFocused:B,isHovering:!y.disabled&&V}),[B,V,a,A,Q,y.disabled,M]),se=d.useMemo(()=>g?g(Y):d.createElement(Z1.Provider,{value:Y},b),[b,Y,g]);return d.createElement(d.Fragment,null,v!==null&&d.createElement("noscript",null,d.createElement("style",null,v)),d.createElement("div",{ref:L,"data-input-otp-container":!0,style:ee,className:h},se,d.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},re)))});Q1.displayName="Input";function no(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var kK=`
74
74
  [data-input-otp] {
75
75
  --nojs-bg: white !important;
76
76
  --nojs-fg: black !important;
@@ -89,5 +89,5 @@ Defaulting to \`null\`.`}var sN=rN,LV=aN;const lN=d.forwardRef(({className:e,val
89
89
  --nojs-bg: black !important;
90
90
  --nojs-fg: white !important;
91
91
  }
92
- }`;const HM=d.forwardRef(({className:e,containerClassName:t,...n},r)=>p.jsx(WM,{ref:r,containerClassName:N("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:N("disabled:cursor-not-allowed",e),...n}));HM.displayName="InputOTP";const GM=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:N("flex items-center",e),...t}));GM.displayName="InputOTPGroup";const VM=d.forwardRef(({index:e,className:t,...n},r)=>{const o=d.useContext(qM),{char:a,hasFakeCaret:i,isActive:s}=o.slots[e];return p.jsxs("div",{ref:r,className:N("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...n,children:[a,i&&p.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:p.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});VM.displayName="InputOTPSlot";const UM=d.forwardRef(({...e},t)=>p.jsx("div",{ref:t,role:"separator",...e,children:p.jsx(nO,{})}));UM.displayName="InputOTPSeparator";var Hu,ss="HoverCard",[KM]=ke(ss,[Jt]),ls=Jt(),[gK,om]=KM(ss),YM=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=ls(t),u=d.useRef(0),f=d.useRef(0),c=d.useRef(!1),m=d.useRef(!1),[h,v]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:ss}),g=d.useCallback(()=>{clearTimeout(f.current),u.current=window.setTimeout(()=>v(!0),i)},[i,v]),b=d.useCallback(()=>{clearTimeout(u.current),!c.current&&!m.current&&(f.current=window.setTimeout(()=>v(!1),s))},[s,v]),y=d.useCallback(()=>v(!1),[v]);return d.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(f.current)},[]),p.jsx(gK,{scope:t,open:h,onOpenChange:v,onOpen:g,onClose:b,onDismiss:y,hasSelectionRef:c,isPointerDownOnContentRef:m,children:p.jsx(qr,{...l,children:n})})};YM.displayName=ss;var XM="HoverCardTrigger",ZM=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=om(XM,n),a=ls(n);return p.jsx(Wr,{asChild:!0,...a,children:p.jsx(ne.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:G(e.onPointerEnter,si(o.onOpen)),onPointerLeave:G(e.onPointerLeave,si(o.onClose)),onFocus:G(e.onFocus,o.onOpen),onBlur:G(e.onBlur,o.onClose),onTouchStart:G(e.onTouchStart,i=>i.preventDefault())})})});ZM.displayName=XM;var vK="HoverCardPortal",[PK,bK]=KM(vK,{forceMount:void 0}),ii="HoverCardContent",QM=d.forwardRef((e,t)=>{const n=bK(ii,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=om(ii,e.__scopeHoverCard);return p.jsx(De,{present:r||a.open,children:p.jsx(yK,{"data-state":a.open?"open":"closed",...o,onPointerEnter:G(e.onPointerEnter,si(a.onOpen)),onPointerLeave:G(e.onPointerLeave,si(a.onClose)),ref:t})})});QM.displayName=ii;var yK=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=om(ii,n),u=ls(n),f=d.useRef(null),c=ce(t,f),[m,h]=d.useState(!1);return d.useEffect(()=>{if(m){const v=document.body;return Hu=v.style.userSelect||v.style.webkitUserSelect,v.style.userSelect="none",v.style.webkitUserSelect="none",()=>{v.style.userSelect=Hu,v.style.webkitUserSelect=Hu}}},[m]),d.useEffect(()=>{if(f.current){const v=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",v),()=>{document.removeEventListener("pointerup",v),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),d.useEffect(()=>{f.current&&SK(f.current).forEach(g=>g.setAttribute("tabindex","-1"))}),p.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:G(a,v=>{v.preventDefault()}),onDismiss:l.onDismiss,children:p.jsx(Vo,{...u,...s,onPointerDown:G(s.onPointerDown,v=>{v.currentTarget.contains(v.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:c,style:{...s.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),xK="HoverCardArrow",wK=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ls(n);return p.jsx(Uo,{...o,...r,ref:t})});wK.displayName=xK;function si(e){return t=>t.pointerType==="touch"?void 0:e()}function SK(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var CK=YM,_K=ZM,JM=QM;const EK=CK,RK=_K,eT=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(JM,{ref:o,align:t,sideOffset:n,className:N("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...r}));eT.displayName=JM.displayName;exports.Accordion=BO;exports.AccordionContent=Iy;exports.AccordionItem=Ay;exports.AccordionTrigger=Dy;exports.Alert=Lx;exports.AlertDescription=Bx;exports.AlertDialog=bD;exports.AlertDialogAction=jx;exports.AlertDialogCancel=$x;exports.AlertDialogContent=Ox;exports.AlertDialogDescription=kx;exports.AlertDialogFooter=Dx;exports.AlertDialogHeader=Ax;exports.AlertDialogOverlay=tf;exports.AlertDialogPortal=Tx;exports.AlertDialogTitle=Ix;exports.AlertDialogTrigger=yD;exports.AlertTitle=Fx;exports.AspectRatio=_D;exports.Avatar=Qx;exports.AvatarFallback=ew;exports.AvatarImage=Jx;exports.Badge=kD;exports.Breadcrumb=nw;exports.BreadcrumbEllipsis=lw;exports.BreadcrumbItem=ow;exports.BreadcrumbLink=aw;exports.BreadcrumbList=rw;exports.BreadcrumbPage=iw;exports.BreadcrumbSeparator=sw;exports.Button=Mn;exports.ButtonGroup=FD;exports.ButtonGroupSeparator=zD;exports.ButtonGroupText=BD;exports.Calendar=Hj;exports.CalendarDayButton=jw;exports.Card=Lw;exports.CardContent=qw;exports.CardDescription=zw;exports.CardFooter=Ww;exports.CardHeader=Fw;exports.CardTitle=Bw;exports.Carousel=Kw;exports.CarouselContent=Yw;exports.CarouselItem=Xw;exports.CarouselNext=Qw;exports.CarouselPrevious=Zw;exports.ChartContainer=q0;exports.ChartLegend=oz;exports.ChartLegendContent=G0;exports.ChartStyle=W0;exports.ChartTooltip=rz;exports.ChartTooltipContent=H0;exports.Checkbox=J0;exports.Collapsible=cz;exports.CollapsibleContent=dz;exports.CollapsibleTrigger=uz;exports.Command=jf;exports.CommandDialog=qz;exports.CommandEmpty=vS;exports.CommandGroup=bS;exports.CommandInput=hS;exports.CommandItem=xS;exports.CommandList=gS;exports.CommandSeparator=yS;exports.CommandShortcut=wS;exports.ContextMenu=u5;exports.ContextMenuCheckboxItem=ZC;exports.ContextMenuContent=YC;exports.ContextMenuGroup=f5;exports.ContextMenuItem=XC;exports.ContextMenuLabel=JC;exports.ContextMenuPortal=p5;exports.ContextMenuRadioGroup=h5;exports.ContextMenuRadioItem=QC;exports.ContextMenuSeparator=e_;exports.ContextMenuShortcut=t_;exports.ContextMenuSub=m5;exports.ContextMenuSubContent=KC;exports.ContextMenuSubTrigger=UC;exports.ContextMenuTrigger=d5;exports.Dialog=cS;exports.DialogClose=zz;exports.DialogContent=kf;exports.DialogDescription=mS;exports.DialogFooter=fS;exports.DialogHeader=dS;exports.DialogOverlay=If;exports.DialogPortal=uS;exports.DialogTitle=pS;exports.DialogTrigger=Bz;exports.Drawer=p_;exports.DrawerClose=G5;exports.DrawerContent=h_;exports.DrawerDescription=y_;exports.DrawerFooter=v_;exports.DrawerHeader=g_;exports.DrawerOverlay=vp;exports.DrawerPortal=m_;exports.DrawerTitle=b_;exports.DrawerTrigger=H5;exports.DropdownMenu=pH;exports.DropdownMenuCheckboxItem=Z_;exports.DropdownMenuContent=Y_;exports.DropdownMenuGroup=hH;exports.DropdownMenuItem=X_;exports.DropdownMenuLabel=J_;exports.DropdownMenuPortal=gH;exports.DropdownMenuRadioGroup=bH;exports.DropdownMenuRadioItem=Q_;exports.DropdownMenuSeparator=eE;exports.DropdownMenuShortcut=tE;exports.DropdownMenuSub=vH;exports.DropdownMenuSubContent=K_;exports.DropdownMenuSubTrigger=U_;exports.DropdownMenuTrigger=mH;exports.Empty=yH;exports.EmptyContent=EH;exports.EmptyDescription=_H;exports.EmptyHeader=xH;exports.EmptyMedia=SH;exports.EmptyTitle=CH;exports.Field=AH;exports.FieldContent=DH;exports.FieldDescription=jH;exports.FieldError=LH;exports.FieldGroup=TH;exports.FieldLabel=IH;exports.FieldLegend=MH;exports.FieldSeparator=$H;exports.FieldSet=PH;exports.FieldTitle=kH;exports.Form=JH;exports.FormControl=pE;exports.FormDescription=mE;exports.FormField=eG;exports.FormItem=dE;exports.FormLabel=fE;exports.FormMessage=hE;exports.HoverCard=EK;exports.HoverCardContent=eT;exports.HoverCardTrigger=RK;exports.Input=qi;exports.InputGroup=tG;exports.InputGroupAddon=rG;exports.InputGroupButton=aG;exports.InputGroupInput=sG;exports.InputGroupText=iG;exports.InputGroupTextarea=lG;exports.InputOTP=HM;exports.InputOTPGroup=GM;exports.InputOTPSeparator=UM;exports.InputOTPSlot=VM;exports.Item=fG;exports.ItemActions=bG;exports.ItemContent=hG;exports.ItemDescription=vG;exports.ItemFooter=xG;exports.ItemGroup=cG;exports.ItemHeader=yG;exports.ItemMedia=mG;exports.ItemSeparator=uG;exports.ItemTitle=gG;exports.Kbd=wG;exports.KbdGroup=SG;exports.Label=Bi;exports.Menubar=KE;exports.MenubarCheckboxItem=eR;exports.MenubarContent=QE;exports.MenubarGroup=VG;exports.MenubarItem=JE;exports.MenubarLabel=nR;exports.MenubarMenu=GG;exports.MenubarPortal=UG;exports.MenubarRadioGroup=KG;exports.MenubarRadioItem=tR;exports.MenubarSeparator=rR;exports.MenubarShortcut=oR;exports.MenubarSub=YG;exports.MenubarSubContent=ZE;exports.MenubarSubTrigger=XE;exports.MenubarTrigger=YE;exports.NavigationMenu=AR;exports.NavigationMenuContent=jR;exports.NavigationMenuIndicator=$R;exports.NavigationMenuItem=mV;exports.NavigationMenuLink=hV;exports.NavigationMenuList=DR;exports.NavigationMenuTrigger=kR;exports.NavigationMenuViewport=Mp;exports.Pagination=LR;exports.PaginationContent=FR;exports.PaginationEllipsis=WR;exports.PaginationItem=BR;exports.PaginationLink=Wi;exports.PaginationNext=qR;exports.PaginationPrevious=zR;exports.Popover=MV;exports.PopoverAnchor=OV;exports.PopoverContent=nN;exports.PopoverTrigger=TV;exports.Progress=lN;exports.RadioGroup=CN;exports.RadioGroupItem=_N;exports.ResizableHandle=E3;exports.ResizablePanel=_3;exports.ResizablePanelGroup=C3;exports.ScrollArea=aP;exports.ScrollBar=zp;exports.Select=pU;exports.SelectContent=WP;exports.SelectGroup=mU;exports.SelectItem=GP;exports.SelectLabel=HP;exports.SelectScrollDownButton=Hp;exports.SelectScrollUpButton=Wp;exports.SelectSeparator=VP;exports.SelectTrigger=qP;exports.SelectValue=hU;exports.Separator=$r;exports.Sheet=UP;exports.SheetClose=vU;exports.SheetContent=Vp;exports.SheetDescription=Yp;exports.SheetFooter=YP;exports.SheetHeader=Up;exports.SheetOverlay=Gp;exports.SheetPortal=KP;exports.SheetTitle=Kp;exports.SheetTrigger=gU;exports.Sidebar=u1;exports.SidebarContent=b1;exports.SidebarFooter=g1;exports.SidebarGroup=y1;exports.SidebarGroupAction=w1;exports.SidebarGroupContent=S1;exports.SidebarGroupLabel=x1;exports.SidebarHeader=h1;exports.SidebarInput=m1;exports.SidebarInset=p1;exports.SidebarMenu=C1;exports.SidebarMenuAction=R1;exports.SidebarMenuBadge=N1;exports.SidebarMenuButton=E1;exports.SidebarMenuItem=_1;exports.SidebarMenuSkeleton=P1;exports.SidebarMenuSub=M1;exports.SidebarMenuSubButton=O1;exports.SidebarMenuSubItem=T1;exports.SidebarProvider=c1;exports.SidebarRail=f1;exports.SidebarSeparator=v1;exports.SidebarTrigger=d1;exports.Skeleton=jd;exports.Slider=U1;exports.Spinner=W4;exports.Switch=eM;exports.Table=tM;exports.TableBody=rM;exports.TableCaption=lM;exports.TableCell=sM;exports.TableFooter=oM;exports.TableHead=iM;exports.TableHeader=nM;exports.TableRow=aM;exports.Tabs=Q4;exports.TabsContent=_M;exports.TabsList=SM;exports.TabsTrigger=CM;exports.Textarea=xp;exports.Toaster=q4;exports.Toggle=NM;exports.ToggleGroup=$M;exports.ToggleGroupItem=LM;exports.Tooltip=i1;exports.TooltipContent=Qp;exports.TooltipProvider=a1;exports.TooltipTrigger=s1;exports.badgeVariants=tw;exports.buttonGroupVariants=dw;exports.buttonVariants=wr;exports.navigationMenuTriggerStyle=IR;exports.toggleVariants=nm;exports.useFormField=na;exports.useSidebar=ia;
92
+ }`;const J1=d.forwardRef(({className:e,containerClassName:t,...n},r)=>p.jsx(Q1,{ref:r,containerClassName:N("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:N("disabled:cursor-not-allowed",e),...n}));J1.displayName="InputOTP";const eT=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:N("flex items-center",e),...t}));eT.displayName="InputOTPGroup";const tT=d.forwardRef(({index:e,className:t,...n},r)=>{const o=d.useContext(Z1),{char:a,hasFakeCaret:s,isActive:i}=o.slots[e];return p.jsxs("div",{ref:r,className:N("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",i&&"z-10 ring-1 ring-ring",t),...n,children:[a,s&&p.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:p.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});tT.displayName="InputOTPSlot";const nT=d.forwardRef(({...e},t)=>p.jsx("div",{ref:t,role:"separator",...e,children:p.jsx(dO,{})}));nT.displayName="InputOTPSeparator";var Ku,di="HoverCard",[rT]=ke(di,[en]),fi=en(),[jK,dm]=rT(di),oT=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:s=700,closeDelay:i=300}=e,l=fi(t),u=d.useRef(0),f=d.useRef(0),c=d.useRef(!1),m=d.useRef(!1),[h,v]=Ae({prop:r,defaultProp:o??!1,onChange:a,caller:di}),g=d.useCallback(()=>{clearTimeout(f.current),u.current=window.setTimeout(()=>v(!0),s)},[s,v]),b=d.useCallback(()=>{clearTimeout(u.current),!c.current&&!m.current&&(f.current=window.setTimeout(()=>v(!1),i))},[i,v]),y=d.useCallback(()=>v(!1),[v]);return d.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(f.current)},[]),p.jsx(jK,{scope:t,open:h,onOpenChange:v,onOpen:g,onClose:b,onDismiss:y,hasSelectionRef:c,isPointerDownOnContentRef:m,children:p.jsx(Hr,{...l,children:n})})};oT.displayName=di;var aT="HoverCardTrigger",sT=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=dm(aT,n),a=fi(n);return p.jsx(Vr,{asChild:!0,...a,children:p.jsx(ne.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:U(e.onPointerEnter,ds(o.onOpen)),onPointerLeave:U(e.onPointerLeave,ds(o.onClose)),onFocus:U(e.onFocus,o.onOpen),onBlur:U(e.onBlur,o.onClose),onTouchStart:U(e.onTouchStart,s=>s.preventDefault())})})});sT.displayName=aT;var $K="HoverCardPortal",[KK,LK]=rT($K,{forceMount:void 0}),us="HoverCardContent",iT=d.forwardRef((e,t)=>{const n=LK(us,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=dm(us,e.__scopeHoverCard);return p.jsx(De,{present:r||a.open,children:p.jsx(FK,{"data-state":a.open?"open":"closed",...o,onPointerEnter:U(e.onPointerEnter,ds(a.onOpen)),onPointerLeave:U(e.onPointerLeave,ds(a.onClose)),ref:t})})});iT.displayName=us;var FK=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...i}=e,l=dm(us,n),u=fi(n),f=d.useRef(null),c=ce(t,f),[m,h]=d.useState(!1);return d.useEffect(()=>{if(m){const v=document.body;return Ku=v.style.userSelect||v.style.webkitUserSelect,v.style.userSelect="none",v.style.webkitUserSelect="none",()=>{v.style.userSelect=Ku,v.style.webkitUserSelect=Ku}}},[m]),d.useEffect(()=>{if(f.current){const v=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",v),()=>{document.removeEventListener("pointerup",v),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),d.useEffect(()=>{f.current&&qK(f.current).forEach(g=>g.setAttribute("tabindex","-1"))}),p.jsx(Mn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:U(a,v=>{v.preventDefault()}),onDismiss:l.onDismiss,children:p.jsx(Yo,{...u,...i,onPointerDown:U(i.onPointerDown,v=>{v.currentTarget.contains(v.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:c,style:{...i.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),BK="HoverCardArrow",zK=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=fi(n);return p.jsx(Xo,{...o,...r,ref:t})});zK.displayName=BK;function ds(e){return t=>t.pointerType==="touch"?void 0:e()}function qK(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var WK=oT,HK=sT,lT=iT;const VK=WK,GK=HK,cT=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(lT,{ref:o,align:t,sideOffset:n,className:N("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...r}));cT.displayName=lT.displayName;exports.Accordion=sA;exports.AccordionContent=qy;exports.AccordionItem=By;exports.AccordionTrigger=zy;exports.Alert=Gx;exports.AlertDescription=Kx;exports.AlertDialog=LD;exports.AlertDialogAction=Hx;exports.AlertDialogCancel=Vx;exports.AlertDialogContent=Fx;exports.AlertDialogDescription=Wx;exports.AlertDialogFooter=zx;exports.AlertDialogHeader=Bx;exports.AlertDialogOverlay=cf;exports.AlertDialogPortal=Lx;exports.AlertDialogTitle=qx;exports.AlertDialogTrigger=FD;exports.AlertTitle=Ux;exports.AspectRatio=HD;exports.Avatar=sw;exports.AvatarFallback=lw;exports.AvatarImage=iw;exports.Badge=tI;exports.Breadcrumb=uw;exports.BreadcrumbEllipsis=gw;exports.BreadcrumbItem=fw;exports.BreadcrumbLink=pw;exports.BreadcrumbList=dw;exports.BreadcrumbPage=mw;exports.BreadcrumbSeparator=hw;exports.Button=Tn;exports.ButtonGroup=aI;exports.ButtonGroupSeparator=iI;exports.ButtonGroupText=sI;exports.Calendar=u$;exports.CalendarDayButton=Hw;exports.Card=Gw;exports.CardContent=Xw;exports.CardDescription=Yw;exports.CardFooter=Zw;exports.CardHeader=Uw;exports.CardTitle=Kw;exports.Carousel=n0;exports.CarouselContent=r0;exports.CarouselItem=o0;exports.CarouselNext=s0;exports.CarouselPrevious=a0;exports.ChartContainer=Z0;exports.ChartLegend=_z;exports.ChartLegendContent=eS;exports.ChartStyle=Q0;exports.ChartTooltip=Cz;exports.ChartTooltipContent=J0;exports.Checkbox=lS;exports.Collapsible=Mz;exports.CollapsibleContent=Oz;exports.CollapsibleTrigger=Tz;exports.Command=Wf;exports.CommandDialog=lq;exports.CommandEmpty=RS;exports.CommandGroup=NS;exports.CommandInput=_S;exports.CommandItem=MS;exports.CommandList=ES;exports.CommandSeparator=PS;exports.CommandShortcut=TS;exports.ContextMenu=T5;exports.ContextMenuCheckboxItem=s_;exports.ContextMenuContent=o_;exports.ContextMenuGroup=A5;exports.ContextMenuItem=a_;exports.ContextMenuLabel=l_;exports.ContextMenuPortal=D5;exports.ContextMenuRadioGroup=k5;exports.ContextMenuRadioItem=i_;exports.ContextMenuSeparator=c_;exports.ContextMenuShortcut=u_;exports.ContextMenuSub=I5;exports.ContextMenuSubContent=r_;exports.ContextMenuSubTrigger=n_;exports.ContextMenuTrigger=O5;exports.Dialog=bS;exports.DialogClose=iq;exports.DialogContent=qf;exports.DialogDescription=CS;exports.DialogFooter=wS;exports.DialogHeader=xS;exports.DialogOverlay=zf;exports.DialogPortal=yS;exports.DialogTitle=SS;exports.DialogTrigger=sq;exports.Drawer=S_;exports.DrawerClose=dH;exports.DrawerContent=__;exports.DrawerDescription=P_;exports.DrawerFooter=R_;exports.DrawerHeader=E_;exports.DrawerOverlay=_p;exports.DrawerPortal=C_;exports.DrawerTitle=N_;exports.DrawerTrigger=uH;exports.DropdownMenu=DH;exports.DropdownMenuCheckboxItem=sE;exports.DropdownMenuContent=oE;exports.DropdownMenuGroup=kH;exports.DropdownMenuItem=aE;exports.DropdownMenuLabel=lE;exports.DropdownMenuPortal=jH;exports.DropdownMenuRadioGroup=LH;exports.DropdownMenuRadioItem=iE;exports.DropdownMenuSeparator=cE;exports.DropdownMenuShortcut=uE;exports.DropdownMenuSub=$H;exports.DropdownMenuSubContent=rE;exports.DropdownMenuSubTrigger=nE;exports.DropdownMenuTrigger=IH;exports.Empty=FH;exports.EmptyContent=VH;exports.EmptyDescription=HH;exports.EmptyHeader=BH;exports.EmptyMedia=qH;exports.EmptyTitle=WH;exports.Field=QH;exports.FieldContent=JH;exports.FieldDescription=nV;exports.FieldError=oV;exports.FieldGroup=XH;exports.FieldLabel=eV;exports.FieldLegend=YH;exports.FieldSeparator=rV;exports.FieldSet=KH;exports.FieldTitle=tV;exports.Form=yV;exports.FormControl=SE;exports.FormDescription=CE;exports.FormField=xV;exports.FormItem=xE;exports.FormLabel=wE;exports.FormMessage=_E;exports.HoverCard=VK;exports.HoverCardContent=cT;exports.HoverCardTrigger=GK;exports.Input=Gs;exports.InputGroup=wV;exports.InputGroupAddon=CV;exports.InputGroupButton=EV;exports.InputGroupInput=NV;exports.InputGroupText=RV;exports.InputGroupTextarea=PV;exports.InputOTP=J1;exports.InputOTPGroup=eT;exports.InputOTPSeparator=nT;exports.InputOTPSlot=tT;exports.Item=AV;exports.ItemActions=LV;exports.ItemContent=kV;exports.ItemDescription=$V;exports.ItemFooter=BV;exports.ItemGroup=MV;exports.ItemHeader=FV;exports.ItemMedia=IV;exports.ItemSeparator=TV;exports.ItemTitle=jV;exports.Kbd=zV;exports.KbdGroup=qV;exports.Label=Hs;exports.Menubar=rR;exports.MenubarCheckboxItem=cR;exports.MenubarContent=iR;exports.MenubarGroup=fG;exports.MenubarItem=lR;exports.MenubarLabel=dR;exports.MenubarMenu=dG;exports.MenubarPortal=pG;exports.MenubarRadioGroup=mG;exports.MenubarRadioItem=uR;exports.MenubarSeparator=fR;exports.MenubarShortcut=pR;exports.MenubarSub=hG;exports.MenubarSubContent=sR;exports.MenubarSubTrigger=aR;exports.MenubarTrigger=oR;exports.NavigationMenu=zR;exports.NavigationMenuContent=VR;exports.NavigationMenuIndicator=GR;exports.NavigationMenuItem=IG;exports.NavigationMenuLink=kG;exports.NavigationMenuList=qR;exports.NavigationMenuTrigger=HR;exports.NavigationMenuViewport=jp;exports.Pagination=UR;exports.PaginationContent=KR;exports.PaginationEllipsis=QR;exports.PaginationItem=YR;exports.PaginationLink=Us;exports.PaginationNext=ZR;exports.PaginationPrevious=XR;exports.Popover=YG;exports.PopoverAnchor=ZG;exports.PopoverContent=dN;exports.PopoverTrigger=XG;exports.Progress=vN;exports.RadioGroup=AN;exports.RadioGroupItem=DN;exports.ResizableHandle=V3;exports.ResizablePanel=H3;exports.ResizablePanelGroup=W3;exports.ScrollArea=mP;exports.ScrollBar=Kp;exports.Select=DU;exports.SelectContent=QP;exports.SelectGroup=IU;exports.SelectItem=eM;exports.SelectLabel=JP;exports.SelectScrollDownButton=Zp;exports.SelectScrollUpButton=Xp;exports.SelectSeparator=tM;exports.SelectTrigger=ZP;exports.SelectValue=kU;exports.Separator=Fr;exports.Sheet=nM;exports.SheetClose=$U;exports.SheetContent=Jp;exports.SheetDescription=nm;exports.SheetFooter=oM;exports.SheetHeader=em;exports.SheetOverlay=Qp;exports.SheetPortal=rM;exports.SheetTitle=tm;exports.SheetTrigger=jU;exports.Sidebar=yM;exports.SidebarContent=NM;exports.SidebarFooter=EM;exports.SidebarGroup=PM;exports.SidebarGroupAction=TM;exports.SidebarGroupContent=OM;exports.SidebarGroupLabel=MM;exports.SidebarHeader=_M;exports.SidebarInput=CM;exports.SidebarInset=SM;exports.SidebarMenu=AM;exports.SidebarMenuAction=kM;exports.SidebarMenuBadge=jM;exports.SidebarMenuButton=IM;exports.SidebarMenuItem=DM;exports.SidebarMenuSkeleton=$M;exports.SidebarMenuSub=LM;exports.SidebarMenuSubButton=BM;exports.SidebarMenuSubItem=FM;exports.SidebarProvider=bM;exports.SidebarRail=wM;exports.SidebarSeparator=RM;exports.SidebarTrigger=xM;exports.Skeleton=Wd;exports.Slider=n1;exports.Spinner=cK;exports.Switch=c1;exports.Table=u1;exports.TableBody=f1;exports.TableCaption=v1;exports.TableCell=g1;exports.TableFooter=p1;exports.TableHead=h1;exports.TableHeader=d1;exports.TableRow=m1;exports.Tabs=bK;exports.TabsContent=D1;exports.TabsList=O1;exports.TabsTrigger=A1;exports.Textarea=Np;exports.Toaster=lK;exports.Toggle=j1;exports.ToggleGroup=G1;exports.ToggleGroupItem=U1;exports.Tooltip=hM;exports.TooltipContent=am;exports.TooltipProvider=mM;exports.TooltipTrigger=gM;exports.badgeVariants=cw;exports.buttonGroupVariants=yw;exports.buttonVariants=Cr;exports.navigationMenuTriggerStyle=WR;exports.toggleVariants=cm;exports.useFormField=aa;exports.useSidebar=ca;
93
93
  //# sourceMappingURL=index.cjs.map