statikapi 0.3.0 → 0.4.0

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.
@@ -122,7 +122,7 @@ Error generating stack: `+l.message+`
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const Mv=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],zv=Ve("sun",Mv);async function nc(){const e=await fetch("/ui/index",{cache:"no-store"});if(!e.ok)throw new Error(`manifest failed: ${e.status}`);return e.json()}async function Iv(e){const t=await fetch("/_ui/file?route="+encodeURIComponent(e),{cache:"no-store"});if(!t.ok)throw new Error(`route ${e} failed: ${t.status}`);const n=await t.text(),r={"content-type":t.headers.get("content-type"),etag:t.headers.get("etag"),"cache-control":t.headers.get("cache-control")};return{text:n,headers:r}}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function or(e,t=[]){let n=[];function r(l,i){const s=h.createContext(i),a=n.length;n=[...n,i];const u=f=>{var m;const{scope:d,children:y,...w}=f,x=((m=d==null?void 0:d[e])==null?void 0:m[a])||s,P=h.useMemo(()=>w,Object.values(w));return v.jsx(x.Provider,{value:P,children:y})};u.displayName=l+"Provider";function c(f,d){var x;const y=((x=d==null?void 0:d[e])==null?void 0:x[a])||s,w=h.useContext(y);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[u,c]}const o=()=>{const l=n.map(i=>h.createContext(i));return function(s){const a=(s==null?void 0:s[e])||l;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Dv(o,...t)]}function Dv(...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(l){const i=r.reduce((s,{useScope:a,scopeName:u})=>{const f=a(l)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function rc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gd(...e){return t=>{let n=!1;const r=e.map(o=>{const l=rc(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<r.length;o++){const l=r[o];typeof l=="function"?l():rc(e[o],null)}}}}function Ce(...e){return h.useCallback(Gd(...e),e)}function gl(e){const t=$v(e),n=h.forwardRef((r,o)=>{const{children:l,...i}=r,s=h.Children.toArray(l),a=s.find(Uv);if(a){const u=a.props.children,c=s.map(f=>f===a?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...i,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,c):null})}return v.jsx(t,{...i,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var Fv=gl("Slot");function $v(e){const t=h.forwardRef((n,r)=>{const{children:o,...l}=n;if(h.isValidElement(o)){const i=Wv(o),s=Bv(l,o.props);return o.type!==h.Fragment&&(s.ref=r?Gd(r,i):i),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qd=Symbol("radix.slottable");function Vv(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qd,t}function Uv(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qd}function Bv(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{const a=l(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function Wv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Hv(e){const t=e+"CollectionProvider",[n,r]=or(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:P,children:m}=x,p=yt.useRef(null),g=yt.useRef(new Map).current;return v.jsx(o,{scope:P,itemMap:g,collectionRef:p,children:m})};i.displayName=t;const s=e+"CollectionSlot",a=gl(s),u=yt.forwardRef((x,P)=>{const{scope:m,children:p}=x,g=l(s,m),S=Ce(P,g.collectionRef);return v.jsx(a,{ref:S,children:p})});u.displayName=s;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=gl(c),y=yt.forwardRef((x,P)=>{const{scope:m,children:p,...g}=x,S=yt.useRef(null),E=Ce(P,S),T=l(c,m);return yt.useEffect(()=>(T.itemMap.set(S,{ref:S,...g}),()=>void T.itemMap.delete(S))),v.jsx(d,{[f]:"",ref:E,children:p})});y.displayName=c;function w(x){const P=l(e+"CollectionConsumer",x);return yt.useCallback(()=>{const p=P.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(P.itemMap.values()).sort((T,N)=>g.indexOf(T.ref.current)-g.indexOf(N.ref.current))},[P.collectionRef,P.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},w,r]}var Kt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Gv=Fc[" useId ".trim().toString()]||(()=>{}),Qv=0;function Pa(e){const[t,n]=h.useState(Gv());return Kt(()=>{n(r=>r??String(Qv++))},[e]),t?`radix-${t}`:""}var Yv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=Yv.reduce((e,t)=>{const n=gl(`Primitive.${t}`),r=h.forwardRef((o,l)=>{const{asChild:i,...s}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...s,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kv(e,t){e&&Ea.flushSync(()=>e.dispatchEvent(t))}function He(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Xv=Fc[" useInsertionEffect ".trim().toString()]||Kt;function Na({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,l,i]=Zv({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const c=h.useRef(e!==void 0);h.useEffect(()=>{const f=c.current;f!==s&&console.warn(`${r} is changing from ${f?"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.`),c.current=s},[s,r])}const u=h.useCallback(c=>{var f;if(s){const d=Jv(c)?c(e):c;d!==e&&((f=i.current)==null||f.call(i,d))}else l(c)},[s,e,l,i]);return[a,u]}function Zv({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),l=h.useRef(t);return Xv(()=>{l.current=t},[t]),h.useEffect(()=>{var i;o.current!==n&&((i=l.current)==null||i.call(l,n),o.current=n)},[n,o]),[n,r,l]}function Jv(e){return typeof e=="function"}var qv=h.createContext(void 0);function Ta(e){const t=h.useContext(qv);return e||t||"ltr"}var Si="rovingFocusGroup.onEntryFocus",ey={bubbles:!1,cancelable:!0},io="RovingFocusGroup",[ws,Yd,ty]=Hv(io),[ny,Kd]=or(io,[ty]),[ry,oy]=ny(io),Xd=h.forwardRef((e,t)=>v.jsx(ws.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(ws.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(ly,{...e,ref:t})})}));Xd.displayName=io;var ly=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,d=h.useRef(null),y=Ce(t,d),w=Ta(l),[x,P]=Na({prop:i,defaultProp:s??null,onChange:a,caller:io}),[m,p]=h.useState(!1),g=He(u),S=Yd(n),E=h.useRef(!1),[T,N]=h.useState(0);return h.useEffect(()=>{const C=d.current;if(C)return C.addEventListener(Si,g),()=>C.removeEventListener(Si,g)},[g]),v.jsx(ry,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:x,onItemFocus:h.useCallback(C=>P(C),[P]),onItemShiftTab:h.useCallback(()=>p(!0),[]),onFocusableItemAdd:h.useCallback(()=>N(C=>C+1),[]),onFocusableItemRemove:h.useCallback(()=>N(C=>C-1),[]),children:v.jsx(pe.div,{tabIndex:m||T===0?-1:0,"data-orientation":r,...f,ref:y,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{E.current=!0}),onFocus:X(e.onFocus,C=>{const b=!E.current;if(C.target===C.currentTarget&&b&&!m){const R=new CustomEvent(Si,ey);if(C.currentTarget.dispatchEvent(R),!R.defaultPrevented){const z=S().filter(I=>I.focusable),V=z.find(I=>I.active),D=z.find(I=>I.id===x),J=[V,D,...z].filter(Boolean).map(I=>I.ref.current);qd(J,c)}}E.current=!1}),onBlur:X(e.onBlur,()=>p(!1))})})}),Zd="RovingFocusGroupItem",Jd=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,children:i,...s}=e,a=Pa(),u=l||a,c=oy(Zd,n),f=c.currentTabStopId===u,d=Yd(n),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:x}=c;return h.useEffect(()=>{if(r)return y(),()=>w()},[r,y,w]),v.jsx(ws.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:v.jsx(pe.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:X(e.onMouseDown,P=>{r?c.onItemFocus(u):P.preventDefault()}),onFocus:X(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:X(e.onKeyDown,P=>{if(P.key==="Tab"&&P.shiftKey){c.onItemShiftTab();return}if(P.target!==P.currentTarget)return;const m=ay(P,c.orientation,c.dir);if(m!==void 0){if(P.metaKey||P.ctrlKey||P.altKey||P.shiftKey)return;P.preventDefault();let g=d().filter(S=>S.focusable).map(S=>S.ref.current);if(m==="last")g.reverse();else if(m==="prev"||m==="next"){m==="prev"&&g.reverse();const S=g.indexOf(P.currentTarget);g=c.loop?uy(g,S+1):g.slice(S+1)}setTimeout(()=>qd(g))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:x!=null}):i})})});Jd.displayName=Zd;var iy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ay(e,t,n){const r=sy(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return iy[r]}function qd(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function uy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var cy=Xd,fy=Jd;function dy(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Sn=e=>{const{present:t,children:n}=e,r=py(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),l=Ce(r.ref,my(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:l}):null};Sn.displayName="Presence";function py(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),l=h.useRef("none"),i=e?"mounted":"unmounted",[s,a]=dy(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=To(r.current);l.current=s==="mounted"?u:"none"},[s]),Kt(()=>{const u=r.current,c=o.current;if(c!==e){const d=l.current,y=To(u);e?a("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&d!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Kt(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=y=>{const x=To(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&x&&(a("ANIMATION_END"),!o.current)){const P=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=P)})}},d=y=>{y.target===t&&(l.current=To(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function To(e){return(e==null?void 0:e.animationName)||"none"}function my(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fl="Tabs",[hy]=or(Fl,[Kd]),ep=Kd(),[gy,Ra]=hy(Fl),tp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:l,orientation:i="horizontal",dir:s,activationMode:a="automatic",...u}=e,c=Ta(s),[f,d]=Na({prop:r,onChange:o,defaultProp:l??"",caller:Fl});return v.jsx(gy,{scope:n,baseId:Pa(),value:f,onValueChange:d,orientation:i,dir:c,activationMode:a,children:v.jsx(pe.div,{dir:c,"data-orientation":i,...u,ref:t})})});tp.displayName=Fl;var np="TabsList",rp=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,l=Ra(np,n),i=ep(n);return v.jsx(cy,{asChild:!0,...i,orientation:l.orientation,dir:l.dir,loop:r,children:v.jsx(pe.div,{role:"tablist","aria-orientation":l.orientation,...o,ref:t})})});rp.displayName=np;var op="TabsTrigger",lp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...l}=e,i=Ra(op,n),s=ep(n),a=ap(i.baseId,r),u=up(i.baseId,r),c=r===i.value;return v.jsx(fy,{asChild:!0,...s,focusable:!o,active:c,children:v.jsx(pe.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...l,ref:t,onMouseDown:X(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:X(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:X(e.onFocus,()=>{const f=i.activationMode!=="manual";!c&&!o&&f&&i.onValueChange(r)})})})});lp.displayName=op;var ip="TabsContent",sp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:l,...i}=e,s=Ra(ip,n),a=ap(s.baseId,r),u=up(s.baseId,r),c=r===s.value,f=h.useRef(c);return h.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),v.jsx(Sn,{present:o||c,children:({present:d})=>v.jsx(pe.div,{"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":a,hidden:!d,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&l})})});sp.displayName=ip;function ap(e,t){return`${e}-trigger-${t}`}function up(e,t){return`${e}-content-${t}`}var vy=tp,cp=rp,fp=lp,dp=sp;function pp(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=pp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pp(e))&&(r&&(r+=" "),r+=t);return r}const _a="-",yy=e=>{const t=xy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(_a);return s[0]===""&&s.length!==1&&s.shift(),hp(s,t)||wy(i)},getConflictingClassGroupIds:(i,s)=>{const a=n[i]||[];return s&&r[i]?[...a,...r[i]]:a}}},hp=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?hp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(_a);return(i=t.validators.find(({validator:s})=>s(l)))==null?void 0:i.classGroupId},oc=/^\[(.+)\]$/,wy=e=>{if(oc.test(e)){const t=oc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xy=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)xs(n[o],r,o,t);return r},xs=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:lc(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(Sy(o)){xs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,i])=>{xs(i,lc(t,l),n,r)})})},lc=(e,t)=>{let n=e;return t.split(_a).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Sy=e=>e.isThemeGetter,ky=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(l,i)=>{n.set(l,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let i=n.get(l);if(i!==void 0)return i;if((i=r.get(l))!==void 0)return o(l,i),i},set(l,i){n.has(l)?n.set(l,i):o(l,i)}}},Ss="!",ks=":",Cy=ks.length,Ey=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const l=[];let i=0,s=0,a=0,u;for(let w=0;w<o.length;w++){let x=o[w];if(i===0&&s===0){if(x===ks){l.push(o.slice(a,w)),a=w+Cy;continue}if(x==="/"){u=w;continue}}x==="["?i++:x==="]"?i--:x==="("?s++:x===")"&&s--}const c=l.length===0?o:o.substring(a),f=Py(c),d=f!==c,y=u&&u>a?u-a:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:y}};if(t){const o=t+ks,l=r;r=i=>i.startsWith(o)?l(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=l=>n({className:l,parseClassName:o})}return r},Py=e=>e.endsWith(Ss)?e.substring(0,e.length-1):e.startsWith(Ss)?e.substring(1):e,Ny=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let l=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...l.sort(),i),l=[]):l.push(i)}),o.push(...l.sort()),o}},Ty=e=>({cache:ky(e.cacheSize),parseClassName:Ey(e),sortModifiers:Ny(e),...yy(e)}),Ry=/\s+/,_y=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:l}=t,i=[],s=e.trim().split(Ry);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:f,modifiers:d,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:x}=n(c);if(f){a=c+(a.length>0?" "+a:a);continue}let P=!!x,m=r(P?w.substring(0,x):w);if(!m){if(!P){a=c+(a.length>0?" "+a:a);continue}if(m=r(w),!m){a=c+(a.length>0?" "+a:a);continue}P=!1}const p=l(d).join(":"),g=y?p+Ss:p,S=g+m;if(i.includes(S))continue;i.push(S);const E=o(m,P);for(let T=0;T<E.length;++T){const N=E[T];i.push(g+N)}a=c+(a.length>0?" "+a:a)}return a};function by(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gp(t))&&(r&&(r+=" "),r+=n);return r}const gp=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gp(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ay(e,...t){let n,r,o,l=i;function i(a){const u=t.reduce((c,f)=>f(c),e());return n=Ty(u),r=n.cache.get,o=n.cache.set,l=s,s(a)}function s(a){const u=r(a);if(u)return u;const c=_y(a,n);return o(a,c),c}return function(){return l(by.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jy=/^\d+\/\d+$/,Ly=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oy=/\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$/,My=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,En=e=>jy.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),jt=e=>!!e&&Number.isInteger(Number(e)),ki=e=>e.endsWith("%")&&F(e.slice(0,-1)),vt=e=>Ly.test(e),Dy=()=>!0,Fy=e=>Oy.test(e)&&!My.test(e),wp=()=>!1,$y=e=>zy.test(e),Vy=e=>Iy.test(e),Uy=e=>!j(e)&&!L(e),By=e=>lr(e,kp,wp),j=e=>vp.test(e),on=e=>lr(e,Cp,Fy),Ci=e=>lr(e,Yy,F),ic=e=>lr(e,xp,wp),Wy=e=>lr(e,Sp,Vy),Ro=e=>lr(e,Ep,$y),L=e=>yp.test(e),wr=e=>ir(e,Cp),Hy=e=>ir(e,Ky),sc=e=>ir(e,xp),Gy=e=>ir(e,kp),Qy=e=>ir(e,Sp),_o=e=>ir(e,Ep,!0),lr=(e,t,n)=>{const r=vp.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ir=(e,t,n=!1)=>{const r=yp.exec(e);return r?r[1]?t(r[1]):n:!1},xp=e=>e==="position"||e==="percentage",Sp=e=>e==="image"||e==="url",kp=e=>e==="length"||e==="size"||e==="bg-size",Cp=e=>e==="length",Yy=e=>e==="number",Ky=e=>e==="family-name",Ep=e=>e==="shadow",Xy=()=>{const e=ce("color"),t=ce("font"),n=ce("text"),r=ce("font-weight"),o=ce("tracking"),l=ce("leading"),i=ce("breakpoint"),s=ce("container"),a=ce("spacing"),u=ce("radius"),c=ce("shadow"),f=ce("inset-shadow"),d=ce("text-shadow"),y=ce("drop-shadow"),w=ce("blur"),x=ce("perspective"),P=ce("aspect"),m=ce("ease"),p=ce("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),L,j],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],C=()=>[L,j,a],b=()=>[En,"full","auto",...C()],R=()=>[jt,"none","subgrid",L,j],z=()=>["auto",{span:["full",jt,L,j]},jt,L,j],V=()=>[jt,"auto",L,j],D=()=>["auto","min","max","fr",L,j],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...C()],B=()=>[En,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],k=()=>[e,L,j],O=()=>[...S(),sc,ic,{position:[L,j]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",Gy,By,{size:[L,j]}],q=()=>[ki,wr,on],le=()=>["","none","full",u,L,j],te=()=>["",F,wr,on],it=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[F,ki,sc,ic],ur=()=>["","none",w,L,j],tn=()=>["none",F,L,j],nn=()=>["none",F,L,j],kn=()=>[F,L,j],rn=()=>[En,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vt],breakpoint:[vt],color:[Dy],container:[vt],"drop-shadow":[vt],ease:["in","out","in-out"],font:[Uy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vt],shadow:[vt],spacing:["px",F],text:[vt],"text-shadow":[vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",En,j,L,P]}],container:["container"],columns:[{columns:[F,j,L,s]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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"],sr:["sr-only","not-sr-only"],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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:b()}],"inset-x":[{"inset-x":b()}],"inset-y":[{"inset-y":b()}],start:[{start:b()}],end:[{end:b()}],top:[{top:b()}],right:[{right:b()}],bottom:[{bottom:b()}],left:[{left:b()}],visibility:["visible","invisible","collapse"],z:[{z:[jt,"auto",L,j]}],basis:[{basis:[En,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,En,"auto","initial","none",j]}],grow:[{grow:["",F,L,j]}],shrink:[{shrink:["",F,L,j]}],order:[{order:[jt,"first","last","none",L,j]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,wr,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,Ci]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ki,j]}],"font-family":[{font:[Hy,j,t]}],"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:[o,L,j]}],"line-clamp":[{"line-clamp":[F,"none",L,Ci]}],leading:[{leading:[l,...C()]}],"list-image":[{"list-image":["none",L,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",L,on]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[F,"auto",L,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jt,L,j],radial:["",L,j],conic:[jt,L,j]},Qy,Wy]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,L,j]}],"outline-w":[{outline:["",F,wr,on]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",c,_o,Ro]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,_o,Ro]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[F,on]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",d,_o,Ro]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[F,L,j]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[L,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,j]}],filter:[{filter:["","none",L,j]}],blur:[{blur:ur()}],brightness:[{brightness:[F,L,j]}],contrast:[{contrast:[F,L,j]}],"drop-shadow":[{"drop-shadow":["","none",y,_o,Ro]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",F,L,j]}],"hue-rotate":[{"hue-rotate":[F,L,j]}],invert:[{invert:["",F,L,j]}],saturate:[{saturate:[F,L,j]}],sepia:[{sepia:["",F,L,j]}],"backdrop-filter":[{"backdrop-filter":["","none",L,j]}],"backdrop-blur":[{"backdrop-blur":ur()}],"backdrop-brightness":[{"backdrop-brightness":[F,L,j]}],"backdrop-contrast":[{"backdrop-contrast":[F,L,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,L,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,L,j]}],"backdrop-invert":[{"backdrop-invert":["",F,L,j]}],"backdrop-opacity":[{"backdrop-opacity":[F,L,j]}],"backdrop-saturate":[{"backdrop-saturate":[F,L,j]}],"backdrop-sepia":[{"backdrop-sepia":["",F,L,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",L,j]}],ease:[{ease:["linear","initial",m,L,j]}],delay:[{delay:[F,L,j]}],animate:[{animate:["none",p,L,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,L,j]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:tn()}],"rotate-x":[{"rotate-x":tn()}],"rotate-y":[{"rotate-y":tn()}],"rotate-z":[{"rotate-z":tn()}],scale:[{scale:nn()}],"scale-x":[{"scale-x":nn()}],"scale-y":[{"scale-y":nn()}],"scale-z":[{"scale-z":nn()}],"scale-3d":["scale-3d"],skew:[{skew:kn()}],"skew-x":[{"skew-x":kn()}],"skew-y":[{"skew-y":kn()}],transform:[{transform:[L,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rn()}],"translate-x":[{"translate-x":rn()}],"translate-y":[{"translate-y":rn()}],"translate-z":[{"translate-z":rn()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",L,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",L,j]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[F,wr,on,Ci]}],stroke:[{stroke:["none",...k()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Zy=Ay(Xy);function ue(...e){return Zy(mp(e))}const Pp=vy,ba=h.forwardRef(({className:e,...t},n)=>v.jsx(cp,{ref:n,className:ue("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));ba.displayName=cp.displayName;const Lr=h.forwardRef(({className:e,...t},n)=>v.jsx(fp,{ref:n,className:ue("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Lr.displayName=fp.displayName;const Or=h.forwardRef(({className:e,...t},n)=>v.jsx(dp,{ref:n,className:ue("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Or.displayName=dp.displayName;const Bo=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Bo.displayName="Card";const Jy=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("flex flex-col space-y-1.5 p-6",e),...t}));Jy.displayName="CardHeader";const qy=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("text-2xl font-semibold leading-none tracking-tight",e),...t}));qy.displayName="CardTitle";const e0=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));e0.displayName="CardDescription";const t0=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("p-6 pt-0",e),...t}));t0.displayName="CardContent";const n0=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("flex items-center p-6 pt-0",e),...t}));n0.displayName="CardFooter";var r0="Separator",ac="horizontal",o0=["horizontal","vertical"],Np=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=ac,...o}=e,l=l0(r)?r:ac,s=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return v.jsx(pe.div,{"data-orientation":l,...s,...o,ref:t})});Np.displayName=r0;function l0(e){return o0.includes(e)}var Tp=Np;const Rp=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>v.jsx(Tp,{ref:o,decorative:n,orientation:t,className:ue("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Rp.displayName=Tp.displayName;const uc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cc=mp,_p=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return cc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=l==null?void 0:l[u];if(c===null)return null;const d=uc(c)||uc(f);return o[u][d]}),s=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...y}=c;return Object.entries(y).every(w=>{let[x,P]=w;return Array.isArray(P)?P.includes({...l,...s}[x]):{...l,...s}[x]===P})?[...u,f,d]:u},[]);return cc(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},i0=_p("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Wo({className:e,variant:t,...n}){return v.jsx("div",{className:ue(i0({variant:t}),e),...n})}function s0({data:e}){return v.jsx("div",{className:"font-mono text-sm",children:Cs(e,0)})}function Cs(e,t){const n={paddingLeft:`${t*14}px`};if(e===null)return v.jsx("div",{style:n,children:"null"});const r=typeof e;if(r==="string"||r==="number"||r==="boolean")return v.jsx("div",{style:n,children:fc(e)});if(Array.isArray(e))return e.length===0?v.jsx("div",{style:n,children:"[]"}):v.jsxs("div",{children:[v.jsx("div",{style:n,children:"["}),e.map((o,l)=>v.jsx("div",{children:Cs(o,t+1)},l)),v.jsx("div",{style:n,children:"]"})]});if(r==="object"){const o=Object.keys(e);return o.length?v.jsxs("div",{children:[v.jsx("div",{style:n,children:"{"}),o.map(l=>v.jsx("div",{children:v.jsxs("div",{style:{paddingLeft:`${(t+1)*14}px`},children:[v.jsxs("span",{className:"text-sky-700 dark:text-sky-300",children:['"',l,'"']}),v.jsx("span",{children:": "}),a0(e[l])?v.jsx("span",{children:fc(e[l])}):v.jsx("div",{children:Cs(e[l],t+2)})]})},l)),v.jsx("div",{style:n,children:"}"})]}):v.jsx("div",{style:n,children:"{}"})}return v.jsx("div",{style:n,children:String(e)})}function a0(e){return e===null||["string","number","boolean"].includes(typeof e)}function fc(e){return typeof e=="string"?`"${e}"`:String(e)}const u0=_p("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Zn=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const i=r?Fv:"button";return v.jsx(i,{className:ue(u0({variant:t,size:n,className:e})),ref:l,...o})});Zn.displayName="Button";function c0(e,t=globalThis==null?void 0:globalThis.document){const n=He(e);h.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 f0="DismissableLayer",Es="dismissableLayer.update",d0="dismissableLayer.pointerDownOutside",p0="dismissableLayer.focusOutside",dc,bp=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ap=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...a}=e,u=h.useContext(bp),[c,f]=h.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=h.useState({}),w=Ce(t,N=>f(N)),x=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=x.indexOf(P),p=c?x.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=m,E=g0(N=>{const C=N.target,b=[...u.branches].some(R=>R.contains(C));!S||b||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},d),T=v0(N=>{const C=N.target;[...u.branches].some(R=>R.contains(C))||(l==null||l(N),i==null||i(N),N.defaultPrevented||s==null||s())},d);return c0(N=>{p===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},d),h.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dc=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),pc(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=dc)}},[c,d,n,u]),h.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),pc())},[c,u]),h.useEffect(()=>{const N=()=>y({});return document.addEventListener(Es,N),()=>document.removeEventListener(Es,N)},[]),v.jsx(pe.div,{...a,ref:w,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,T.onFocusCapture),onBlurCapture:X(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,E.onPointerDownCapture)})});Ap.displayName=f0;var m0="DismissableLayerBranch",h0=h.forwardRef((e,t)=>{const n=h.useContext(bp),r=h.useRef(null),o=Ce(t,r);return h.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),v.jsx(pe.div,{...e,ref:o})});h0.displayName=m0;function g0(e,t=globalThis==null?void 0:globalThis.document){const n=He(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const l=s=>{if(s.target&&!r.current){let a=function(){jp(d0,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function v0(e,t=globalThis==null?void 0:globalThis.document){const n=He(e),r=h.useRef(!1);return h.useEffect(()=>{const o=l=>{l.target&&!r.current&&jp(p0,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pc(){const e=new CustomEvent(Es);document.dispatchEvent(e)}function jp(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kv(o,l):o.dispatchEvent(l)}const y0=["top","right","bottom","left"],Xt=Math.min,Oe=Math.max,vl=Math.round,bo=Math.floor,pt=e=>({x:e,y:e}),w0={left:"right",right:"left",bottom:"top",top:"bottom"},x0={start:"end",end:"start"};function Ps(e,t,n){return Oe(e,Xt(t,n))}function Rt(e,t){return typeof e=="function"?e(t):e}function _t(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function Aa(e){return e==="x"?"y":"x"}function ja(e){return e==="y"?"height":"width"}const S0=new Set(["top","bottom"]);function ct(e){return S0.has(_t(e))?"y":"x"}function La(e){return Aa(ct(e))}function k0(e,t,n){n===void 0&&(n=!1);const r=sr(e),o=La(e),l=ja(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=yl(i)),[i,yl(i)]}function C0(e){const t=yl(e);return[Ns(e),t,Ns(t)]}function Ns(e){return e.replace(/start|end/g,t=>x0[t])}const mc=["left","right"],hc=["right","left"],E0=["top","bottom"],P0=["bottom","top"];function N0(e,t,n){switch(e){case"top":case"bottom":return n?t?hc:mc:t?mc:hc;case"left":case"right":return t?E0:P0;default:return[]}}function T0(e,t,n,r){const o=sr(e);let l=N0(_t(e),n==="start",r);return o&&(l=l.map(i=>i+"-"+o),t&&(l=l.concat(l.map(Ns)))),l}function yl(e){return e.replace(/left|right|bottom|top/g,t=>w0[t])}function R0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lp(e){return typeof e!="number"?R0(e):{top:e,right:e,bottom:e,left:e}}function wl(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 gc(e,t,n){let{reference:r,floating:o}=e;const l=ct(t),i=La(t),s=ja(i),a=_t(t),u=l==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let y;switch(a){case"top":y={x:c,y:r.y-o.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-o.width,y:f};break;default:y={x:r.x,y:r.y}}switch(sr(t)){case"start":y[i]-=d*(n&&u?-1:1);break;case"end":y[i]+=d*(n&&u?-1:1);break}return y}const _0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=gc(u,r,a),d=r,y={},w=0;for(let x=0;x<s.length;x++){const{name:P,fn:m}=s[x],{x:p,y:g,data:S,reset:E}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:y,rects:u,platform:i,elements:{reference:e,floating:t}});c=p??c,f=g??f,y={...y,[P]:{...y[P],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:c,y:f}=gc(u,d,a)),x=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:y}};async function Jr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:i,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:y=0}=Rt(t,e),w=Lp(y),P=s[d?f==="floating"?"reference":"floating":f],m=wl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(P)))==null||n?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),p=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),S=await(l.isElement==null?void 0:l.isElement(g))?await(l.getScale==null?void 0:l.getScale(g))||{x:1,y:1}:{x:1,y:1},E=wl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:p,offsetParent:g,strategy:a}):p);return{top:(m.top-E.top+w.top)/S.y,bottom:(E.bottom-m.bottom+w.bottom)/S.y,left:(m.left-E.left+w.left)/S.x,right:(E.right-m.right+w.right)/S.x}}const b0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:i,elements:s,middlewareData:a}=t,{element:u,padding:c=0}=Rt(e,t)||{};if(u==null)return{};const f=Lp(c),d={x:n,y:r},y=La(o),w=ja(y),x=await i.getDimensions(u),P=y==="y",m=P?"top":"left",p=P?"bottom":"right",g=P?"clientHeight":"clientWidth",S=l.reference[w]+l.reference[y]-d[y]-l.floating[w],E=d[y]-l.reference[y],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=T?T[g]:0;(!N||!await(i.isElement==null?void 0:i.isElement(T)))&&(N=s.floating[g]||l.floating[w]);const C=S/2-E/2,b=N/2-x[w]/2-1,R=Xt(f[m],b),z=Xt(f[p],b),V=R,D=N-x[w]-z,W=N/2-x[w]/2+C,J=Ps(V,W,D),I=!a.arrow&&sr(o)!=null&&W!==J&&l.reference[w]/2-(W<V?R:z)-x[w]/2<0,B=I?W<V?W-V:W-D:0;return{[y]:d[y]+B,data:{[y]:J,centerOffset:W-J-B,...I&&{alignmentOffset:B}},reset:I}}}),A0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:i,initialPlacement:s,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...P}=Rt(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const m=_t(o),p=ct(s),g=_t(s)===s,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),E=d||(g||!x?[yl(s)]:C0(s)),T=w!=="none";!d&&T&&E.push(...T0(s,x,w,S));const N=[s,...E],C=await Jr(t,P),b=[];let R=((r=l.flip)==null?void 0:r.overflows)||[];if(c&&b.push(C[m]),f){const W=k0(o,i,S);b.push(C[W[0]],C[W[1]])}if(R=[...R,{placement:o,overflows:b}],!b.every(W=>W<=0)){var z,V;const W=(((z=l.flip)==null?void 0:z.index)||0)+1,J=N[W];if(J&&(!(f==="alignment"?p!==ct(J):!1)||R.every(k=>ct(k.placement)===p?k.overflows[0]>0:!0)))return{data:{index:W,overflows:R},reset:{placement:J}};let I=(V=R.filter(B=>B.overflows[0]<=0).sort((B,k)=>B.overflows[1]-k.overflows[1])[0])==null?void 0:V.placement;if(!I)switch(y){case"bestFit":{var D;const B=(D=R.filter(k=>{if(T){const O=ct(k.placement);return O===p||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,M)=>O+M,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:D[0];B&&(I=B);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function vc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yc(e){return y0.some(t=>e[t]>=0)}const j0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Rt(e,t);switch(r){case"referenceHidden":{const l=await Jr(t,{...o,elementContext:"reference"}),i=vc(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:yc(i)}}}case"escaped":{const l=await Jr(t,{...o,altBoundary:!0}),i=vc(l,n.floating);return{data:{escapedOffsets:i,escaped:yc(i)}}}default:return{}}}}},Op=new Set(["left","top"]);async function L0(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=_t(n),s=sr(n),a=ct(n)==="y",u=Op.has(i)?-1:1,c=l&&a?-1:1,f=Rt(t,e);let{mainAxis:d,crossAxis:y,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof w=="number"&&(y=s==="end"?w*-1:w),a?{x:y*c,y:d*u}:{x:d*u,y:y*c}}const O0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:i,middlewareData:s}=t,a=await L0(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:l+a.y,data:{...a,placement:i}}}}},M0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:s={fn:P=>{let{x:m,y:p}=P;return{x:m,y:p}}},...a}=Rt(e,t),u={x:n,y:r},c=await Jr(t,a),f=ct(_t(o)),d=Aa(f);let y=u[d],w=u[f];if(l){const P=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=y+c[P],g=y-c[m];y=Ps(p,y,g)}if(i){const P=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=w+c[P],g=w-c[m];w=Ps(p,w,g)}const x=s.fn({...t,[d]:y,[f]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[d]:l,[f]:i}}}}}},z0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:i}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=Rt(e,t),c={x:n,y:r},f=ct(o),d=Aa(f);let y=c[d],w=c[f];const x=Rt(s,t),P=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(a){const g=d==="y"?"height":"width",S=l.reference[d]-l.floating[g]+P.mainAxis,E=l.reference[d]+l.reference[g]-P.mainAxis;y<S?y=S:y>E&&(y=E)}if(u){var m,p;const g=d==="y"?"width":"height",S=Op.has(_t(o)),E=l.reference[f]-l.floating[g]+(S&&((m=i.offset)==null?void 0:m[f])||0)+(S?0:P.crossAxis),T=l.reference[f]+l.reference[g]+(S?0:((p=i.offset)==null?void 0:p[f])||0)-(S?P.crossAxis:0);w<E?w=E:w>T&&(w=T)}return{[d]:y,[f]:w}}}},I0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:i,elements:s}=t,{apply:a=()=>{},...u}=Rt(e,t),c=await Jr(t,u),f=_t(o),d=sr(o),y=ct(o)==="y",{width:w,height:x}=l.floating;let P,m;f==="top"||f==="bottom"?(P=f,m=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=f,P=d==="end"?"top":"bottom");const p=x-c.top-c.bottom,g=w-c.left-c.right,S=Xt(x-c[P],p),E=Xt(w-c[m],g),T=!t.middlewareData.shift;let N=S,C=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=p),T&&!d){const R=Oe(c.left,0),z=Oe(c.right,0),V=Oe(c.top,0),D=Oe(c.bottom,0);y?C=w-2*(R!==0||z!==0?R+z:Oe(c.left,c.right)):N=x-2*(V!==0||D!==0?V+D:Oe(c.top,c.bottom))}await a({...t,availableWidth:C,availableHeight:N});const b=await i.getDimensions(s.floating);return w!==b.width||x!==b.height?{reset:{rects:!0}}:{}}}};function $l(){return typeof window<"u"}function ar(e){return Mp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ht(e){var t;return(t=(Mp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mp(e){return $l()?e instanceof Node||e instanceof Ie(e).Node:!1}function ot(e){return $l()?e instanceof Element||e instanceof Ie(e).Element:!1}function mt(e){return $l()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function wc(e){return!$l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}const D0=new Set(["inline","contents"]);function so(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!D0.has(o)}const F0=new Set(["table","td","th"]);function $0(e){return F0.has(ar(e))}const V0=[":popover-open",":modal"];function Vl(e){return V0.some(t=>{try{return e.matches(t)}catch{return!1}})}const U0=["transform","translate","scale","rotate","perspective"],B0=["transform","translate","scale","rotate","perspective","filter"],W0=["paint","layout","strict","content"];function Oa(e){const t=Ma(),n=ot(e)?lt(e):e;return U0.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)||B0.some(r=>(n.willChange||"").includes(r))||W0.some(r=>(n.contain||"").includes(r))}function H0(e){let t=Zt(e);for(;mt(t)&&!Jn(t);){if(Oa(t))return t;if(Vl(t))return null;t=Zt(t)}return null}function Ma(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G0=new Set(["html","body","#document"]);function Jn(e){return G0.has(ar(e))}function lt(e){return Ie(e).getComputedStyle(e)}function Ul(e){return ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zt(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wc(e)&&e.host||ht(e);return wc(t)?t.host:t}function zp(e){const t=Zt(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:mt(t)&&so(t)?t:zp(t)}function qr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=zp(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ie(o);if(l){const s=Ts(i);return t.concat(i,i.visualViewport||[],so(o)?o:[],s&&n?qr(s):[])}return t.concat(o,qr(o,[],n))}function Ts(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ip(e){const t=lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=mt(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=vl(n)!==l||vl(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function za(e){return ot(e)?e:e.contextElement}function Bn(e){const t=za(e);if(!mt(t))return pt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=Ip(t);let i=(l?vl(n.width):n.width)/r,s=(l?vl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Q0=pt(0);function Dp(e){const t=Ie(e);return!Ma()||!t.visualViewport?Q0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ie(e)?!1:t}function yn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=za(e);let i=pt(1);t&&(r?ot(r)&&(i=Bn(r)):i=Bn(e));const s=Y0(l,n,r)?Dp(l):pt(0);let a=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(l){const d=Ie(l),y=r&&ot(r)?Ie(r):r;let w=d,x=Ts(w);for(;x&&r&&y!==w;){const P=Bn(x),m=x.getBoundingClientRect(),p=lt(x),g=m.left+(x.clientLeft+parseFloat(p.paddingLeft))*P.x,S=m.top+(x.clientTop+parseFloat(p.paddingTop))*P.y;a*=P.x,u*=P.y,c*=P.x,f*=P.y,a+=g,u+=S,w=Ie(x),x=Ts(w)}}return wl({width:c,height:f,x:a,y:u})}function Bl(e,t){const n=Ul(e).scrollLeft;return t?t.left+n:yn(ht(e)).left+n}function Fp(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Bl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function K0(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",i=ht(r),s=t?Vl(t.floating):!1;if(r===i||s&&l)return n;let a={scrollLeft:0,scrollTop:0},u=pt(1);const c=pt(0),f=mt(r);if((f||!f&&!l)&&((ar(r)!=="body"||so(i))&&(a=Ul(r)),mt(r))){const y=yn(r);u=Bn(r),c.x=y.x+r.clientLeft,c.y=y.y+r.clientTop}const d=i&&!f&&!l?Fp(i,a):pt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-a.scrollTop*u.y+c.y+d.y}}function X0(e){return Array.from(e.getClientRects())}function Z0(e){const t=ht(e),n=Ul(e),r=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Bl(e);const s=-n.scrollTop;return lt(r).direction==="rtl"&&(i+=Oe(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:s}}const xc=25;function J0(e,t){const n=Ie(e),r=ht(e),o=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,s=0,a=0;if(o){l=o.width,i=o.height;const c=Ma();(!c||c&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}const u=Bl(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),y=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,w=Math.abs(r.clientWidth-f.clientWidth-y);w<=xc&&(l-=w)}else u<=xc&&(l+=u);return{width:l,height:i,x:s,y:a}}const q0=new Set(["absolute","fixed"]);function ew(e,t){const n=yn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=mt(e)?Bn(e):pt(1),i=e.clientWidth*l.x,s=e.clientHeight*l.y,a=o*l.x,u=r*l.y;return{width:i,height:s,x:a,y:u}}function Sc(e,t,n){let r;if(t==="viewport")r=J0(e,n);else if(t==="document")r=Z0(ht(e));else if(ot(t))r=ew(t,n);else{const o=Dp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wl(r)}function $p(e,t){const n=Zt(e);return n===t||!ot(n)||Jn(n)?!1:lt(n).position==="fixed"||$p(n,t)}function tw(e,t){const n=t.get(e);if(n)return n;let r=qr(e,[],!1).filter(s=>ot(s)&&ar(s)!=="body"),o=null;const l=lt(e).position==="fixed";let i=l?Zt(e):e;for(;ot(i)&&!Jn(i);){const s=lt(i),a=Oa(i);!a&&s.position==="fixed"&&(o=null),(l?!a&&!o:!a&&s.position==="static"&&!!o&&q0.has(o.position)||so(i)&&!a&&$p(e,i))?r=r.filter(c=>c!==i):o=s,i=Zt(i)}return t.set(e,r),r}function nw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Vl(t)?[]:tw(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((u,c)=>{const f=Sc(t,c,o);return u.top=Oe(f.top,u.top),u.right=Xt(f.right,u.right),u.bottom=Xt(f.bottom,u.bottom),u.left=Oe(f.left,u.left),u},Sc(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function rw(e){const{width:t,height:n}=Ip(e);return{width:t,height:n}}function ow(e,t,n){const r=mt(t),o=ht(t),l=n==="fixed",i=yn(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const a=pt(0);function u(){a.x=Bl(o)}if(r||!r&&!l)if((ar(t)!=="body"||so(o))&&(s=Ul(t)),r){const y=yn(t,!0,l,t);a.x=y.x+t.clientLeft,a.y=y.y+t.clientTop}else o&&u();l&&!r&&o&&u();const c=o&&!r&&!l?Fp(o,s):pt(0),f=i.left+s.scrollLeft-a.x-c.x,d=i.top+s.scrollTop-a.y-c.y;return{x:f,y:d,width:i.width,height:i.height}}function Ei(e){return lt(e).position==="static"}function kc(e,t){if(!mt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ht(e)===n&&(n=n.ownerDocument.body),n}function Vp(e,t){const n=Ie(e);if(Vl(e))return n;if(!mt(e)){let o=Zt(e);for(;o&&!Jn(o);){if(ot(o)&&!Ei(o))return o;o=Zt(o)}return n}let r=kc(e,t);for(;r&&$0(r)&&Ei(r);)r=kc(r,t);return r&&Jn(r)&&Ei(r)&&!Oa(r)?n:r||H0(e)||n}const lw=async function(e){const t=this.getOffsetParent||Vp,n=this.getDimensions,r=await n(e.floating);return{reference:ow(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function iw(e){return lt(e).direction==="rtl"}const sw={convertOffsetParentRelativeRectToViewportRelativeRect:K0,getDocumentElement:ht,getClippingRect:nw,getOffsetParent:Vp,getElementRects:lw,getClientRects:X0,getDimensions:rw,getScale:Bn,isElement:ot,isRTL:iw};function Up(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aw(e,t){let n=null,r;const o=ht(e);function l(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),l();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:y}=u;if(s||t(),!d||!y)return;const w=bo(f),x=bo(o.clientWidth-(c+d)),P=bo(o.clientHeight-(f+y)),m=bo(c),g={rootMargin:-w+"px "+-x+"px "+-P+"px "+-m+"px",threshold:Oe(0,Xt(1,a))||1};let S=!0;function E(T){const N=T[0].intersectionRatio;if(N!==a){if(!S)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!Up(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return i(!0),l}function uw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=za(e),c=o||l?[...u?qr(u):[],...qr(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),l&&m.addEventListener("resize",n)});const f=u&&s?aw(u,n):null;let d=-1,y=null;i&&(y=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=y)==null||g.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let w,x=a?yn(e):null;a&&P();function P(){const m=yn(e);x&&!Up(x,m)&&n(),x=m,w=requestAnimationFrame(P)}return n(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",n),l&&p.removeEventListener("resize",n)}),f==null||f(),(m=y)==null||m.disconnect(),y=null,a&&cancelAnimationFrame(w)}}const cw=O0,fw=M0,dw=A0,pw=I0,mw=j0,Cc=b0,hw=z0,gw=(e,t,n)=>{const r=new Map,o={platform:sw,...n},l={...o.platform,_c:r};return _0(e,t,{...o,platform:l})};var vw=typeof document<"u",yw=function(){},Ho=vw?h.useLayoutEffect:yw;function xl(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(!xl(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 l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!xl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Bp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ec(e,t){const n=Bp(e);return Math.round(t*n)/n}function Pi(e){const t=h.useRef(e);return Ho(()=>{t.current=e}),t}function ww(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,y]=h.useState(r);xl(d,r)||y(r);const[w,x]=h.useState(null),[P,m]=h.useState(null),p=h.useCallback(k=>{k!==T.current&&(T.current=k,x(k))},[]),g=h.useCallback(k=>{k!==N.current&&(N.current=k,m(k))},[]),S=l||w,E=i||P,T=h.useRef(null),N=h.useRef(null),C=h.useRef(c),b=a!=null,R=Pi(a),z=Pi(o),V=Pi(u),D=h.useCallback(()=>{if(!T.current||!N.current)return;const k={placement:t,strategy:n,middleware:d};z.current&&(k.platform=z.current),gw(T.current,N.current,k).then(O=>{const M={...O,isPositioned:V.current!==!1};W.current&&!xl(C.current,M)&&(C.current=M,Ea.flushSync(()=>{f(M)}))})},[d,t,n,z,V]);Ho(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const W=h.useRef(!1);Ho(()=>(W.current=!0,()=>{W.current=!1}),[]),Ho(()=>{if(S&&(T.current=S),E&&(N.current=E),S&&E){if(R.current)return R.current(S,E,D);D()}},[S,E,D,R,b]);const J=h.useMemo(()=>({reference:T,floating:N,setReference:p,setFloating:g}),[p,g]),I=h.useMemo(()=>({reference:S,floating:E}),[S,E]),B=h.useMemo(()=>{const k={position:n,left:0,top:0};if(!I.floating)return k;const O=Ec(I.floating,c.x),M=Ec(I.floating,c.y);return s?{...k,transform:"translate("+O+"px, "+M+"px)",...Bp(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:M}},[n,s,I.floating,c.x,c.y]);return h.useMemo(()=>({...c,update:D,refs:J,elements:I,floatingStyles:B}),[c,D,J,I,B])}const xw=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?Cc({element:r.current,padding:o}).fn(n):{}:r?Cc({element:r,padding:o}).fn(n):{}}}},Sw=(e,t)=>({...cw(e),options:[e,t]}),kw=(e,t)=>({...fw(e),options:[e,t]}),Cw=(e,t)=>({...hw(e),options:[e,t]}),Ew=(e,t)=>({...dw(e),options:[e,t]}),Pw=(e,t)=>({...pw(e),options:[e,t]}),Nw=(e,t)=>({...mw(e),options:[e,t]}),Tw=(e,t)=>({...xw(e),options:[e,t]});var Rw="Arrow",Wp=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...l}=e;return v.jsx(pe.svg,{...l,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Wp.displayName=Rw;var _w=Wp;function bw(e){const[t,n]=h.useState(void 0);return Kt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let i,s;if("borderBoxSize"in l){const a=l.borderBoxSize,u=Array.isArray(a)?a[0]:a;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 Ia="Popper",[Hp,Gp]=or(Ia),[Aw,Qp]=Hp(Ia),Yp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return v.jsx(Aw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Yp.displayName=Ia;var Kp="PopperAnchor",Xp=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,l=Qp(Kp,n),i=h.useRef(null),s=Ce(t,i),a=h.useRef(null);return h.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||i.current,u!==a.current&&l.onAnchorChange(a.current)}),r?null:v.jsx(pe.div,{...o,ref:s})});Xp.displayName=Kp;var Da="PopperContent",[jw,Lw]=Hp(Da),Zp=h.forwardRef((e,t)=>{var Q,ur,tn,nn,kn,rn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:y="optimized",onPlaced:w,...x}=e,P=Qp(Da,n),[m,p]=h.useState(null),g=Ce(t,cr=>p(cr)),[S,E]=h.useState(null),T=bw(S),N=(T==null?void 0:T.width)??0,C=(T==null?void 0:T.height)??0,b=r+(l!=="center"?"-"+l:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(u)?u:[u],V=z.length>0,D={padding:R,boundary:z.filter(Mw),altBoundary:V},{refs:W,floatingStyles:J,placement:I,isPositioned:B,middlewareData:k}=ww({strategy:"fixed",placement:b,whileElementsMounted:(...cr)=>uw(...cr,{animationFrame:y==="always"}),elements:{reference:P.anchor},middleware:[Sw({mainAxis:o+C,alignmentAxis:i}),a&&kw({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Cw():void 0,...D}),a&&Ew({...D}),Pw({...D,apply:({elements:cr,rects:Ha,availableWidth:bm,availableHeight:Am})=>{const{width:jm,height:Lm}=Ha.reference,ao=cr.floating.style;ao.setProperty("--radix-popper-available-width",`${bm}px`),ao.setProperty("--radix-popper-available-height",`${Am}px`),ao.setProperty("--radix-popper-anchor-width",`${jm}px`),ao.setProperty("--radix-popper-anchor-height",`${Lm}px`)}}),S&&Tw({element:S,padding:s}),zw({arrowWidth:N,arrowHeight:C}),d&&Nw({strategy:"referenceHidden",...D})]}),[O,M]=em(I),H=He(w);Kt(()=>{B&&(H==null||H())},[B,H]);const q=(Q=k.arrow)==null?void 0:Q.x,le=(ur=k.arrow)==null?void 0:ur.y,te=((tn=k.arrow)==null?void 0:tn.centerOffset)!==0,[it,Ue]=h.useState();return Kt(()=>{m&&Ue(window.getComputedStyle(m).zIndex)},[m]),v.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:B?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:it,"--radix-popper-transform-origin":[(nn=k.transformOrigin)==null?void 0:nn.x,(kn=k.transformOrigin)==null?void 0:kn.y].join(" "),...((rn=k.hide)==null?void 0:rn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(jw,{scope:n,placedSide:O,onArrowChange:E,arrowX:q,arrowY:le,shouldHideArrow:te,children:v.jsx(pe.div,{"data-side":O,"data-align":M,...x,ref:g,style:{...x.style,animation:B?void 0:"none"}})})})});Zp.displayName=Da;var Jp="PopperArrow",Ow={top:"bottom",right:"left",bottom:"top",left:"right"},qp=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,l=Lw(Jp,r),i=Ow[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(_w,{...o,ref:n,style:{...o.style,display:"block"}})})});qp.displayName=Jp;function Mw(e){return e!==null}var zw=e=>({name:"transformOrigin",options:e,fn(t){var P,m,p;const{placement:n,rects:r,middlewareData:o}=t,i=((P=o.arrow)==null?void 0:P.centerOffset)!==0,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,c]=em(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=o.arrow)==null?void 0:m.x)??0)+s/2,y=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let w="",x="";return u==="bottom"?(w=i?f:`${d}px`,x=`${-a}px`):u==="top"?(w=i?f:`${d}px`,x=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,x=i?f:`${y}px`):u==="left"&&(w=`${r.floating.width+a}px`,x=i?f:`${y}px`),{data:{x:w,y:x}}}});function em(e){const[t,n="center"]=e.split("-");return[t,n]}var Iw=Yp,Dw=Xp,Fw=Zp,$w=qp,Vw=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"}),Uw="VisuallyHidden",tm=h.forwardRef((e,t)=>v.jsx(pe.span,{...e,ref:t,style:{...Vw,...e.style}}));tm.displayName=Uw;var Bw=tm,[Wl]=or("Tooltip",[Gp]),Hl=Gp(),nm="TooltipProvider",Ww=700,Rs="tooltip.open",[Hw,Fa]=Wl(nm),rm=e=>{const{__scopeTooltip:t,delayDuration:n=Ww,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,i=h.useRef(!0),s=h.useRef(!1),a=h.useRef(0);return h.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),v.jsx(Hw,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:h.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:l})};rm.displayName=nm;var eo="Tooltip",[Gw,Gl]=Wl(eo),om=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=e,a=Fa(eo,e.__scopeTooltip),u=Hl(t),[c,f]=h.useState(null),d=Pa(),y=h.useRef(0),w=i??a.disableHoverableContent,x=s??a.delayDuration,P=h.useRef(!1),[m,p]=Na({prop:r,defaultProp:o??!1,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(Rs))):a.onClose(),l==null||l(N)},caller:eo}),g=h.useMemo(()=>m?P.current?"delayed-open":"instant-open":"closed",[m]),S=h.useCallback(()=>{window.clearTimeout(y.current),y.current=0,P.current=!1,p(!0)},[p]),E=h.useCallback(()=>{window.clearTimeout(y.current),y.current=0,p(!1)},[p]),T=h.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{P.current=!0,p(!0),y.current=0},x)},[x,p]);return h.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),v.jsx(Iw,{...u,children:v.jsx(Gw,{scope:t,contentId:d,open:m,stateAttribute:g,trigger:c,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayedRef.current?T():S()},[a.isOpenDelayedRef,T,S]),onTriggerLeave:h.useCallback(()=>{w?E():(window.clearTimeout(y.current),y.current=0)},[E,w]),onOpen:S,onClose:E,disableHoverableContent:w,children:n})})};om.displayName=eo;var _s="TooltipTrigger",lm=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Gl(_s,n),l=Fa(_s,n),i=Hl(n),s=h.useRef(null),a=Ce(t,s,o.onTriggerChange),u=h.useRef(!1),c=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.jsx(Dw,{asChild:!0,...i,children:v.jsx(pe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:X(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});lm.displayName=_s;var Qw="TooltipPortal",[Wx,Yw]=Wl(Qw,{forceMount:void 0}),qn="TooltipContent",im=h.forwardRef((e,t)=>{const n=Yw(qn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...l}=e,i=Gl(qn,e.__scopeTooltip);return v.jsx(Sn,{present:r||i.open,children:i.disableHoverableContent?v.jsx(sm,{side:o,...l,ref:t}):v.jsx(Kw,{side:o,...l,ref:t})})}),Kw=h.forwardRef((e,t)=>{const n=Gl(qn,e.__scopeTooltip),r=Fa(qn,e.__scopeTooltip),o=h.useRef(null),l=Ce(t,o),[i,s]=h.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,d=h.useCallback(()=>{s(null),f(!1)},[f]),y=h.useCallback((w,x)=>{const P=w.currentTarget,m={x:w.clientX,y:w.clientY},p=ex(m,P.getBoundingClientRect()),g=tx(m,p),S=nx(x.getBoundingClientRect()),E=ox([...g,...S]);s(E),f(!0)},[f]);return h.useEffect(()=>()=>d(),[d]),h.useEffect(()=>{if(a&&c){const w=P=>y(P,c),x=P=>y(P,a);return a.addEventListener("pointerleave",w),c.addEventListener("pointerleave",x),()=>{a.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",x)}}},[a,c,y,d]),h.useEffect(()=>{if(i){const w=x=>{const P=x.target,m={x:x.clientX,y:x.clientY},p=(a==null?void 0:a.contains(P))||(c==null?void 0:c.contains(P)),g=!rx(m,i);p?d():g&&(d(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,c,i,u,d]),v.jsx(sm,{...e,ref:l})}),[Xw,Zw]=Wl(eo,{isInside:!1}),Jw=Vv("TooltipContent"),sm=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:i,...s}=e,a=Gl(qn,n),u=Hl(n),{onClose:c}=a;return h.useEffect(()=>(document.addEventListener(Rs,c),()=>document.removeEventListener(Rs,c)),[c]),h.useEffect(()=>{if(a.trigger){const f=d=>{const y=d.target;y!=null&&y.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),v.jsx(Ap,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:v.jsxs(Fw,{"data-state":a.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:[v.jsx(Jw,{children:r}),v.jsx(Xw,{scope:n,isInside:!0,children:v.jsx(Bw,{id:a.contentId,role:"tooltip",children:o||r})})]})})});im.displayName=qn;var am="TooltipArrow",qw=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hl(n);return Zw(am,n).isInside?null:v.jsx($w,{...o,...r,ref:t})});qw.displayName=am;function ex(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,o,l)){case l:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function tx(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 nx(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 rx(e,t){const{x:n,y:r}=e;let o=!1;for(let l=0,i=t.length-1;l<t.length;i=l++){const s=t[l],a=t[i],u=s.x,c=s.y,f=a.x,d=a.y;c>r!=d>r&&n<(f-u)*(r-c)/(d-c)+u&&(o=!o)}return o}function ox(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),lx(t)}function lx(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 l=t[t.length-1],i=t[t.length-2];if((l.x-i.x)*(o.y-i.y)>=(l.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 l=n[n.length-1],i=n[n.length-2];if((l.x-i.x)*(o.y-i.y)>=(l.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 ix=rm,sx=om,ax=lm,um=im;const cm=ix,fm=sx,dm=ax,$a=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(um,{ref:r,sideOffset:t,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));$a.displayName=um.displayName;function ux({getText:e,label:t="Copy JSON",title:n="Copy JSON"}){const[r,o]=h.useState(!1);async function l(){try{const i=typeof e=="function"?e():String(e??"");await navigator.clipboard.writeText(i),o(!0),setTimeout(()=>o(!1),1e3)}catch{}}return v.jsx(cm,{children:v.jsxs(fm,{children:[v.jsx(dm,{asChild:!0,children:v.jsxs(Zn,{variant:"outline",size:"sm",onClick:l,className:"gap-2",children:[r?v.jsx(Hd,{className:"h-4 w-4"}):v.jsx(gv,{className:"h-4 w-4"}),v.jsx("span",{className:"hidden sm:inline",children:r?"Copied":t})]})}),v.jsx($a,{children:n})]})})}function cx(){return typeof globalThis<"u"&&globalThis.location&&globalThis.location.origin?globalThis.location.origin:""}function fx(e,t){return(t||cx())+e}function dx(e,{origin:t}={}){const n=fx(e,t),r=JSON.stringify(n),o=`curl -sS -H "Accept: application/json" ${r}`,l=`fetch(${r}, {
125
+ */const Mv=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],zv=Ve("sun",Mv);async function nc(){const e=await fetch("/ui/index",{cache:"no-store"});if(!e.ok)throw new Error(`manifest failed: ${e.status}`);return e.json()}async function Iv(e){const t=await fetch("/_ui/file?route="+encodeURIComponent(e),{cache:"no-store"});if(!t.ok)throw new Error(`route ${e} failed: ${t.status}`);const n=await t.text(),r={"content-type":t.headers.get("content-type"),etag:t.headers.get("etag"),"cache-control":t.headers.get("cache-control")};return{text:n,headers:r}}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function or(e,t=[]){let n=[];function r(l,i){const s=h.createContext(i),a=n.length;n=[...n,i];const u=f=>{var m;const{scope:d,children:y,...w}=f,x=((m=d==null?void 0:d[e])==null?void 0:m[a])||s,P=h.useMemo(()=>w,Object.values(w));return v.jsx(x.Provider,{value:P,children:y})};u.displayName=l+"Provider";function c(f,d){var x;const y=((x=d==null?void 0:d[e])==null?void 0:x[a])||s,w=h.useContext(y);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[u,c]}const o=()=>{const l=n.map(i=>h.createContext(i));return function(s){const a=(s==null?void 0:s[e])||l;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Dv(o,...t)]}function Dv(...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(l){const i=r.reduce((s,{useScope:a,scopeName:u})=>{const f=a(l)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function rc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gd(...e){return t=>{let n=!1;const r=e.map(o=>{const l=rc(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<r.length;o++){const l=r[o];typeof l=="function"?l():rc(e[o],null)}}}}function Ce(...e){return h.useCallback(Gd(...e),e)}function gl(e){const t=$v(e),n=h.forwardRef((r,o)=>{const{children:l,...i}=r,s=h.Children.toArray(l),a=s.find(Uv);if(a){const u=a.props.children,c=s.map(f=>f===a?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...i,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,c):null})}return v.jsx(t,{...i,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var Fv=gl("Slot");function $v(e){const t=h.forwardRef((n,r)=>{const{children:o,...l}=n;if(h.isValidElement(o)){const i=Wv(o),s=Bv(l,o.props);return o.type!==h.Fragment&&(s.ref=r?Gd(r,i):i),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qd=Symbol("radix.slottable");function Vv(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qd,t}function Uv(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qd}function Bv(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{const a=l(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function Wv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Hv(e){const t=e+"CollectionProvider",[n,r]=or(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:P,children:m}=x,p=yt.useRef(null),g=yt.useRef(new Map).current;return v.jsx(o,{scope:P,itemMap:g,collectionRef:p,children:m})};i.displayName=t;const s=e+"CollectionSlot",a=gl(s),u=yt.forwardRef((x,P)=>{const{scope:m,children:p}=x,g=l(s,m),S=Ce(P,g.collectionRef);return v.jsx(a,{ref:S,children:p})});u.displayName=s;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=gl(c),y=yt.forwardRef((x,P)=>{const{scope:m,children:p,...g}=x,S=yt.useRef(null),E=Ce(P,S),T=l(c,m);return yt.useEffect(()=>(T.itemMap.set(S,{ref:S,...g}),()=>void T.itemMap.delete(S))),v.jsx(d,{[f]:"",ref:E,children:p})});y.displayName=c;function w(x){const P=l(e+"CollectionConsumer",x);return yt.useCallback(()=>{const p=P.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(P.itemMap.values()).sort((T,N)=>g.indexOf(T.ref.current)-g.indexOf(N.ref.current))},[P.collectionRef,P.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},w,r]}var Kt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Gv=Fc[" useId ".trim().toString()]||(()=>{}),Qv=0;function Pa(e){const[t,n]=h.useState(Gv());return Kt(()=>{n(r=>r??String(Qv++))},[e]),t?`radix-${t}`:""}var Yv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=Yv.reduce((e,t)=>{const n=gl(`Primitive.${t}`),r=h.forwardRef((o,l)=>{const{asChild:i,...s}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...s,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kv(e,t){e&&Ea.flushSync(()=>e.dispatchEvent(t))}function He(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Xv=Fc[" useInsertionEffect ".trim().toString()]||Kt;function Na({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,l,i]=Zv({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const c=h.useRef(e!==void 0);h.useEffect(()=>{const f=c.current;f!==s&&console.warn(`${r} is changing from ${f?"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.`),c.current=s},[s,r])}const u=h.useCallback(c=>{var f;if(s){const d=Jv(c)?c(e):c;d!==e&&((f=i.current)==null||f.call(i,d))}else l(c)},[s,e,l,i]);return[a,u]}function Zv({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),l=h.useRef(t);return Xv(()=>{l.current=t},[t]),h.useEffect(()=>{var i;o.current!==n&&((i=l.current)==null||i.call(l,n),o.current=n)},[n,o]),[n,r,l]}function Jv(e){return typeof e=="function"}var qv=h.createContext(void 0);function Ta(e){const t=h.useContext(qv);return e||t||"ltr"}var Si="rovingFocusGroup.onEntryFocus",ey={bubbles:!1,cancelable:!0},io="RovingFocusGroup",[ws,Yd,ty]=Hv(io),[ny,Kd]=or(io,[ty]),[ry,oy]=ny(io),Xd=h.forwardRef((e,t)=>v.jsx(ws.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(ws.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(ly,{...e,ref:t})})}));Xd.displayName=io;var ly=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,d=h.useRef(null),y=Ce(t,d),w=Ta(l),[x,P]=Na({prop:i,defaultProp:s??null,onChange:a,caller:io}),[m,p]=h.useState(!1),g=He(u),S=Yd(n),E=h.useRef(!1),[T,N]=h.useState(0);return h.useEffect(()=>{const C=d.current;if(C)return C.addEventListener(Si,g),()=>C.removeEventListener(Si,g)},[g]),v.jsx(ry,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:x,onItemFocus:h.useCallback(C=>P(C),[P]),onItemShiftTab:h.useCallback(()=>p(!0),[]),onFocusableItemAdd:h.useCallback(()=>N(C=>C+1),[]),onFocusableItemRemove:h.useCallback(()=>N(C=>C-1),[]),children:v.jsx(pe.div,{tabIndex:m||T===0?-1:0,"data-orientation":r,...f,ref:y,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{E.current=!0}),onFocus:X(e.onFocus,C=>{const b=!E.current;if(C.target===C.currentTarget&&b&&!m){const R=new CustomEvent(Si,ey);if(C.currentTarget.dispatchEvent(R),!R.defaultPrevented){const z=S().filter(I=>I.focusable),V=z.find(I=>I.active),D=z.find(I=>I.id===x),J=[V,D,...z].filter(Boolean).map(I=>I.ref.current);qd(J,c)}}E.current=!1}),onBlur:X(e.onBlur,()=>p(!1))})})}),Zd="RovingFocusGroupItem",Jd=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,children:i,...s}=e,a=Pa(),u=l||a,c=oy(Zd,n),f=c.currentTabStopId===u,d=Yd(n),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:x}=c;return h.useEffect(()=>{if(r)return y(),()=>w()},[r,y,w]),v.jsx(ws.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:v.jsx(pe.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:X(e.onMouseDown,P=>{r?c.onItemFocus(u):P.preventDefault()}),onFocus:X(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:X(e.onKeyDown,P=>{if(P.key==="Tab"&&P.shiftKey){c.onItemShiftTab();return}if(P.target!==P.currentTarget)return;const m=ay(P,c.orientation,c.dir);if(m!==void 0){if(P.metaKey||P.ctrlKey||P.altKey||P.shiftKey)return;P.preventDefault();let g=d().filter(S=>S.focusable).map(S=>S.ref.current);if(m==="last")g.reverse();else if(m==="prev"||m==="next"){m==="prev"&&g.reverse();const S=g.indexOf(P.currentTarget);g=c.loop?uy(g,S+1):g.slice(S+1)}setTimeout(()=>qd(g))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:x!=null}):i})})});Jd.displayName=Zd;var iy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ay(e,t,n){const r=sy(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return iy[r]}function qd(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function uy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var cy=Xd,fy=Jd;function dy(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Sn=e=>{const{present:t,children:n}=e,r=py(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),l=Ce(r.ref,my(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:l}):null};Sn.displayName="Presence";function py(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),l=h.useRef("none"),i=e?"mounted":"unmounted",[s,a]=dy(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=To(r.current);l.current=s==="mounted"?u:"none"},[s]),Kt(()=>{const u=r.current,c=o.current;if(c!==e){const d=l.current,y=To(u);e?a("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&d!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Kt(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=y=>{const x=To(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&x&&(a("ANIMATION_END"),!o.current)){const P=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=P)})}},d=y=>{y.target===t&&(l.current=To(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function To(e){return(e==null?void 0:e.animationName)||"none"}function my(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fl="Tabs",[hy]=or(Fl,[Kd]),ep=Kd(),[gy,Ra]=hy(Fl),tp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:l,orientation:i="horizontal",dir:s,activationMode:a="automatic",...u}=e,c=Ta(s),[f,d]=Na({prop:r,onChange:o,defaultProp:l??"",caller:Fl});return v.jsx(gy,{scope:n,baseId:Pa(),value:f,onValueChange:d,orientation:i,dir:c,activationMode:a,children:v.jsx(pe.div,{dir:c,"data-orientation":i,...u,ref:t})})});tp.displayName=Fl;var np="TabsList",rp=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,l=Ra(np,n),i=ep(n);return v.jsx(cy,{asChild:!0,...i,orientation:l.orientation,dir:l.dir,loop:r,children:v.jsx(pe.div,{role:"tablist","aria-orientation":l.orientation,...o,ref:t})})});rp.displayName=np;var op="TabsTrigger",lp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...l}=e,i=Ra(op,n),s=ep(n),a=ap(i.baseId,r),u=up(i.baseId,r),c=r===i.value;return v.jsx(fy,{asChild:!0,...s,focusable:!o,active:c,children:v.jsx(pe.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...l,ref:t,onMouseDown:X(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:X(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:X(e.onFocus,()=>{const f=i.activationMode!=="manual";!c&&!o&&f&&i.onValueChange(r)})})})});lp.displayName=op;var ip="TabsContent",sp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:l,...i}=e,s=Ra(ip,n),a=ap(s.baseId,r),u=up(s.baseId,r),c=r===s.value,f=h.useRef(c);return h.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),v.jsx(Sn,{present:o||c,children:({present:d})=>v.jsx(pe.div,{"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":a,hidden:!d,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&l})})});sp.displayName=ip;function ap(e,t){return`${e}-trigger-${t}`}function up(e,t){return`${e}-content-${t}`}var vy=tp,cp=rp,fp=lp,dp=sp;function pp(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=pp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pp(e))&&(r&&(r+=" "),r+=t);return r}const _a="-",yy=e=>{const t=xy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(_a);return s[0]===""&&s.length!==1&&s.shift(),hp(s,t)||wy(i)},getConflictingClassGroupIds:(i,s)=>{const a=n[i]||[];return s&&r[i]?[...a,...r[i]]:a}}},hp=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?hp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(_a);return(i=t.validators.find(({validator:s})=>s(l)))==null?void 0:i.classGroupId},oc=/^\[(.+)\]$/,wy=e=>{if(oc.test(e)){const t=oc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xy=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)xs(n[o],r,o,t);return r},xs=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:lc(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(Sy(o)){xs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,i])=>{xs(i,lc(t,l),n,r)})})},lc=(e,t)=>{let n=e;return t.split(_a).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Sy=e=>e.isThemeGetter,ky=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(l,i)=>{n.set(l,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let i=n.get(l);if(i!==void 0)return i;if((i=r.get(l))!==void 0)return o(l,i),i},set(l,i){n.has(l)?n.set(l,i):o(l,i)}}},Ss="!",ks=":",Cy=ks.length,Ey=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const l=[];let i=0,s=0,a=0,u;for(let w=0;w<o.length;w++){let x=o[w];if(i===0&&s===0){if(x===ks){l.push(o.slice(a,w)),a=w+Cy;continue}if(x==="/"){u=w;continue}}x==="["?i++:x==="]"?i--:x==="("?s++:x===")"&&s--}const c=l.length===0?o:o.substring(a),f=Py(c),d=f!==c,y=u&&u>a?u-a:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:y}};if(t){const o=t+ks,l=r;r=i=>i.startsWith(o)?l(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=l=>n({className:l,parseClassName:o})}return r},Py=e=>e.endsWith(Ss)?e.substring(0,e.length-1):e.startsWith(Ss)?e.substring(1):e,Ny=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let l=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...l.sort(),i),l=[]):l.push(i)}),o.push(...l.sort()),o}},Ty=e=>({cache:ky(e.cacheSize),parseClassName:Ey(e),sortModifiers:Ny(e),...yy(e)}),Ry=/\s+/,_y=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:l}=t,i=[],s=e.trim().split(Ry);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:f,modifiers:d,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:x}=n(c);if(f){a=c+(a.length>0?" "+a:a);continue}let P=!!x,m=r(P?w.substring(0,x):w);if(!m){if(!P){a=c+(a.length>0?" "+a:a);continue}if(m=r(w),!m){a=c+(a.length>0?" "+a:a);continue}P=!1}const p=l(d).join(":"),g=y?p+Ss:p,S=g+m;if(i.includes(S))continue;i.push(S);const E=o(m,P);for(let T=0;T<E.length;++T){const N=E[T];i.push(g+N)}a=c+(a.length>0?" "+a:a)}return a};function by(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gp(t))&&(r&&(r+=" "),r+=n);return r}const gp=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gp(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ay(e,...t){let n,r,o,l=i;function i(a){const u=t.reduce((c,f)=>f(c),e());return n=Ty(u),r=n.cache.get,o=n.cache.set,l=s,s(a)}function s(a){const u=r(a);if(u)return u;const c=_y(a,n);return o(a,c),c}return function(){return l(by.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jy=/^\d+\/\d+$/,Ly=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oy=/\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$/,My=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,En=e=>jy.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),jt=e=>!!e&&Number.isInteger(Number(e)),ki=e=>e.endsWith("%")&&F(e.slice(0,-1)),vt=e=>Ly.test(e),Dy=()=>!0,Fy=e=>Oy.test(e)&&!My.test(e),wp=()=>!1,$y=e=>zy.test(e),Vy=e=>Iy.test(e),Uy=e=>!j(e)&&!L(e),By=e=>lr(e,kp,wp),j=e=>vp.test(e),on=e=>lr(e,Cp,Fy),Ci=e=>lr(e,Yy,F),ic=e=>lr(e,xp,wp),Wy=e=>lr(e,Sp,Vy),Ro=e=>lr(e,Ep,$y),L=e=>yp.test(e),wr=e=>ir(e,Cp),Hy=e=>ir(e,Ky),sc=e=>ir(e,xp),Gy=e=>ir(e,kp),Qy=e=>ir(e,Sp),_o=e=>ir(e,Ep,!0),lr=(e,t,n)=>{const r=vp.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ir=(e,t,n=!1)=>{const r=yp.exec(e);return r?r[1]?t(r[1]):n:!1},xp=e=>e==="position"||e==="percentage",Sp=e=>e==="image"||e==="url",kp=e=>e==="length"||e==="size"||e==="bg-size",Cp=e=>e==="length",Yy=e=>e==="number",Ky=e=>e==="family-name",Ep=e=>e==="shadow",Xy=()=>{const e=ce("color"),t=ce("font"),n=ce("text"),r=ce("font-weight"),o=ce("tracking"),l=ce("leading"),i=ce("breakpoint"),s=ce("container"),a=ce("spacing"),u=ce("radius"),c=ce("shadow"),f=ce("inset-shadow"),d=ce("text-shadow"),y=ce("drop-shadow"),w=ce("blur"),x=ce("perspective"),P=ce("aspect"),m=ce("ease"),p=ce("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),L,j],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],C=()=>[L,j,a],b=()=>[En,"full","auto",...C()],R=()=>[jt,"none","subgrid",L,j],z=()=>["auto",{span:["full",jt,L,j]},jt,L,j],V=()=>[jt,"auto",L,j],D=()=>["auto","min","max","fr",L,j],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...C()],B=()=>[En,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],k=()=>[e,L,j],O=()=>[...S(),sc,ic,{position:[L,j]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",Gy,By,{size:[L,j]}],q=()=>[ki,wr,on],le=()=>["","none","full",u,L,j],te=()=>["",F,wr,on],it=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[F,ki,sc,ic],ur=()=>["","none",w,L,j],tn=()=>["none",F,L,j],nn=()=>["none",F,L,j],kn=()=>[F,L,j],rn=()=>[En,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vt],breakpoint:[vt],color:[Dy],container:[vt],"drop-shadow":[vt],ease:["in","out","in-out"],font:[Uy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vt],shadow:[vt],spacing:["px",F],text:[vt],"text-shadow":[vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",En,j,L,P]}],container:["container"],columns:[{columns:[F,j,L,s]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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"],sr:["sr-only","not-sr-only"],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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:b()}],"inset-x":[{"inset-x":b()}],"inset-y":[{"inset-y":b()}],start:[{start:b()}],end:[{end:b()}],top:[{top:b()}],right:[{right:b()}],bottom:[{bottom:b()}],left:[{left:b()}],visibility:["visible","invisible","collapse"],z:[{z:[jt,"auto",L,j]}],basis:[{basis:[En,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,En,"auto","initial","none",j]}],grow:[{grow:["",F,L,j]}],shrink:[{shrink:["",F,L,j]}],order:[{order:[jt,"first","last","none",L,j]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,wr,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,Ci]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ki,j]}],"font-family":[{font:[Hy,j,t]}],"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:[o,L,j]}],"line-clamp":[{"line-clamp":[F,"none",L,Ci]}],leading:[{leading:[l,...C()]}],"list-image":[{"list-image":["none",L,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",L,on]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[F,"auto",L,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jt,L,j],radial:["",L,j],conic:[jt,L,j]},Qy,Wy]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,L,j]}],"outline-w":[{outline:["",F,wr,on]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",c,_o,Ro]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,_o,Ro]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[F,on]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",d,_o,Ro]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[F,L,j]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[L,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,j]}],filter:[{filter:["","none",L,j]}],blur:[{blur:ur()}],brightness:[{brightness:[F,L,j]}],contrast:[{contrast:[F,L,j]}],"drop-shadow":[{"drop-shadow":["","none",y,_o,Ro]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",F,L,j]}],"hue-rotate":[{"hue-rotate":[F,L,j]}],invert:[{invert:["",F,L,j]}],saturate:[{saturate:[F,L,j]}],sepia:[{sepia:["",F,L,j]}],"backdrop-filter":[{"backdrop-filter":["","none",L,j]}],"backdrop-blur":[{"backdrop-blur":ur()}],"backdrop-brightness":[{"backdrop-brightness":[F,L,j]}],"backdrop-contrast":[{"backdrop-contrast":[F,L,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,L,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,L,j]}],"backdrop-invert":[{"backdrop-invert":["",F,L,j]}],"backdrop-opacity":[{"backdrop-opacity":[F,L,j]}],"backdrop-saturate":[{"backdrop-saturate":[F,L,j]}],"backdrop-sepia":[{"backdrop-sepia":["",F,L,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",L,j]}],ease:[{ease:["linear","initial",m,L,j]}],delay:[{delay:[F,L,j]}],animate:[{animate:["none",p,L,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,L,j]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:tn()}],"rotate-x":[{"rotate-x":tn()}],"rotate-y":[{"rotate-y":tn()}],"rotate-z":[{"rotate-z":tn()}],scale:[{scale:nn()}],"scale-x":[{"scale-x":nn()}],"scale-y":[{"scale-y":nn()}],"scale-z":[{"scale-z":nn()}],"scale-3d":["scale-3d"],skew:[{skew:kn()}],"skew-x":[{"skew-x":kn()}],"skew-y":[{"skew-y":kn()}],transform:[{transform:[L,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rn()}],"translate-x":[{"translate-x":rn()}],"translate-y":[{"translate-y":rn()}],"translate-z":[{"translate-z":rn()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",L,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",L,j]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[F,wr,on,Ci]}],stroke:[{stroke:["none",...k()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Zy=Ay(Xy);function ue(...e){return Zy(mp(e))}const Pp=vy,ba=h.forwardRef(({className:e,...t},n)=>v.jsx(cp,{ref:n,className:ue("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));ba.displayName=cp.displayName;const Lr=h.forwardRef(({className:e,...t},n)=>v.jsx(fp,{ref:n,className:ue("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Lr.displayName=fp.displayName;const Or=h.forwardRef(({className:e,...t},n)=>v.jsx(dp,{ref:n,className:ue("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Or.displayName=dp.displayName;const Bo=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Bo.displayName="Card";const Jy=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("flex flex-col space-y-1.5 p-6",e),...t}));Jy.displayName="CardHeader";const qy=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("text-2xl font-semibold leading-none tracking-tight",e),...t}));qy.displayName="CardTitle";const e0=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));e0.displayName="CardDescription";const t0=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("p-6 pt-0",e),...t}));t0.displayName="CardContent";const n0=h.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:ue("flex items-center p-6 pt-0",e),...t}));n0.displayName="CardFooter";var r0="Separator",ac="horizontal",o0=["horizontal","vertical"],Np=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=ac,...o}=e,l=l0(r)?r:ac,s=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return v.jsx(pe.div,{"data-orientation":l,...s,...o,ref:t})});Np.displayName=r0;function l0(e){return o0.includes(e)}var Tp=Np;const Rp=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>v.jsx(Tp,{ref:o,decorative:n,orientation:t,className:ue("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Rp.displayName=Tp.displayName;const uc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cc=mp,_p=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return cc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=l==null?void 0:l[u];if(c===null)return null;const d=uc(c)||uc(f);return o[u][d]}),s=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...y}=c;return Object.entries(y).every(w=>{let[x,P]=w;return Array.isArray(P)?P.includes({...l,...s}[x]):{...l,...s}[x]===P})?[...u,f,d]:u},[]);return cc(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},i0=_p("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Wo({className:e,variant:t,...n}){return v.jsx("div",{className:ue(i0({variant:t}),e),...n})}function s0({data:e}){return v.jsx("div",{className:"font-mono text-sm",children:Cs(e,0)})}function Cs(e,t){const n={paddingLeft:`${t*14}px`};if(e===null)return v.jsx("div",{style:n,children:"null"});const r=typeof e;if(r==="string"||r==="number"||r==="boolean")return v.jsx("div",{style:n,children:fc(e)});if(Array.isArray(e))return e.length===0?v.jsx("div",{style:n,children:"[]"}):v.jsxs("div",{children:[v.jsx("div",{style:n,children:"["}),e.map((o,l)=>v.jsx("div",{children:Cs(o,t+1)},l)),v.jsx("div",{style:n,children:"]"})]});if(r==="object"){const o=Object.keys(e);return o.length?v.jsxs("div",{children:[v.jsx("div",{style:n,children:"{"}),o.map(l=>v.jsx("div",{children:v.jsxs("div",{style:{paddingLeft:`${(t+1)*14}px`},children:[v.jsxs("span",{className:"text-sky-700 dark:text-sky-300",children:['"',l,'"']}),v.jsx("span",{children:": "}),a0(e[l])?v.jsx("span",{children:fc(e[l])}):v.jsx("div",{children:Cs(e[l],t+2)})]})},l)),v.jsx("div",{style:n,children:"}"})]}):v.jsx("div",{style:n,children:"{}"})}return v.jsx("div",{style:n,children:String(e)})}function a0(e){return e===null||["string","number","boolean"].includes(typeof e)}function fc(e){return typeof e=="string"?`"${e}"`:String(e)}const u0=_p("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Zn=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const i=r?Fv:"button";return v.jsx(i,{className:ue(u0({variant:t,size:n,className:e})),ref:l,...o})});Zn.displayName="Button";function c0(e,t=globalThis==null?void 0:globalThis.document){const n=He(e);h.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 f0="DismissableLayer",Es="dismissableLayer.update",d0="dismissableLayer.pointerDownOutside",p0="dismissableLayer.focusOutside",dc,bp=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ap=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...a}=e,u=h.useContext(bp),[c,f]=h.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=h.useState({}),w=Ce(t,N=>f(N)),x=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=x.indexOf(P),p=c?x.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=m,E=g0(N=>{const C=N.target,b=[...u.branches].some(R=>R.contains(C));!S||b||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},d),T=v0(N=>{const C=N.target;[...u.branches].some(R=>R.contains(C))||(l==null||l(N),i==null||i(N),N.defaultPrevented||s==null||s())},d);return c0(N=>{p===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},d),h.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dc=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),pc(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=dc)}},[c,d,n,u]),h.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),pc())},[c,u]),h.useEffect(()=>{const N=()=>y({});return document.addEventListener(Es,N),()=>document.removeEventListener(Es,N)},[]),v.jsx(pe.div,{...a,ref:w,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,T.onFocusCapture),onBlurCapture:X(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,E.onPointerDownCapture)})});Ap.displayName=f0;var m0="DismissableLayerBranch",h0=h.forwardRef((e,t)=>{const n=h.useContext(bp),r=h.useRef(null),o=Ce(t,r);return h.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),v.jsx(pe.div,{...e,ref:o})});h0.displayName=m0;function g0(e,t=globalThis==null?void 0:globalThis.document){const n=He(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const l=s=>{if(s.target&&!r.current){let a=function(){jp(d0,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function v0(e,t=globalThis==null?void 0:globalThis.document){const n=He(e),r=h.useRef(!1);return h.useEffect(()=>{const o=l=>{l.target&&!r.current&&jp(p0,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pc(){const e=new CustomEvent(Es);document.dispatchEvent(e)}function jp(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kv(o,l):o.dispatchEvent(l)}const y0=["top","right","bottom","left"],Xt=Math.min,Oe=Math.max,vl=Math.round,bo=Math.floor,pt=e=>({x:e,y:e}),w0={left:"right",right:"left",bottom:"top",top:"bottom"},x0={start:"end",end:"start"};function Ps(e,t,n){return Oe(e,Xt(t,n))}function Rt(e,t){return typeof e=="function"?e(t):e}function _t(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function Aa(e){return e==="x"?"y":"x"}function ja(e){return e==="y"?"height":"width"}const S0=new Set(["top","bottom"]);function ct(e){return S0.has(_t(e))?"y":"x"}function La(e){return Aa(ct(e))}function k0(e,t,n){n===void 0&&(n=!1);const r=sr(e),o=La(e),l=ja(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=yl(i)),[i,yl(i)]}function C0(e){const t=yl(e);return[Ns(e),t,Ns(t)]}function Ns(e){return e.replace(/start|end/g,t=>x0[t])}const mc=["left","right"],hc=["right","left"],E0=["top","bottom"],P0=["bottom","top"];function N0(e,t,n){switch(e){case"top":case"bottom":return n?t?hc:mc:t?mc:hc;case"left":case"right":return t?E0:P0;default:return[]}}function T0(e,t,n,r){const o=sr(e);let l=N0(_t(e),n==="start",r);return o&&(l=l.map(i=>i+"-"+o),t&&(l=l.concat(l.map(Ns)))),l}function yl(e){return e.replace(/left|right|bottom|top/g,t=>w0[t])}function R0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lp(e){return typeof e!="number"?R0(e):{top:e,right:e,bottom:e,left:e}}function wl(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 gc(e,t,n){let{reference:r,floating:o}=e;const l=ct(t),i=La(t),s=ja(i),a=_t(t),u=l==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let y;switch(a){case"top":y={x:c,y:r.y-o.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-o.width,y:f};break;default:y={x:r.x,y:r.y}}switch(sr(t)){case"start":y[i]-=d*(n&&u?-1:1);break;case"end":y[i]+=d*(n&&u?-1:1);break}return y}const _0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=gc(u,r,a),d=r,y={},w=0;for(let x=0;x<s.length;x++){const{name:P,fn:m}=s[x],{x:p,y:g,data:S,reset:E}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:y,rects:u,platform:i,elements:{reference:e,floating:t}});c=p??c,f=g??f,y={...y,[P]:{...y[P],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:c,y:f}=gc(u,d,a)),x=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:y}};async function Jr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:i,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:y=0}=Rt(t,e),w=Lp(y),P=s[d?f==="floating"?"reference":"floating":f],m=wl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(P)))==null||n?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),p=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),S=await(l.isElement==null?void 0:l.isElement(g))?await(l.getScale==null?void 0:l.getScale(g))||{x:1,y:1}:{x:1,y:1},E=wl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:p,offsetParent:g,strategy:a}):p);return{top:(m.top-E.top+w.top)/S.y,bottom:(E.bottom-m.bottom+w.bottom)/S.y,left:(m.left-E.left+w.left)/S.x,right:(E.right-m.right+w.right)/S.x}}const b0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:i,elements:s,middlewareData:a}=t,{element:u,padding:c=0}=Rt(e,t)||{};if(u==null)return{};const f=Lp(c),d={x:n,y:r},y=La(o),w=ja(y),x=await i.getDimensions(u),P=y==="y",m=P?"top":"left",p=P?"bottom":"right",g=P?"clientHeight":"clientWidth",S=l.reference[w]+l.reference[y]-d[y]-l.floating[w],E=d[y]-l.reference[y],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=T?T[g]:0;(!N||!await(i.isElement==null?void 0:i.isElement(T)))&&(N=s.floating[g]||l.floating[w]);const C=S/2-E/2,b=N/2-x[w]/2-1,R=Xt(f[m],b),z=Xt(f[p],b),V=R,D=N-x[w]-z,W=N/2-x[w]/2+C,J=Ps(V,W,D),I=!a.arrow&&sr(o)!=null&&W!==J&&l.reference[w]/2-(W<V?R:z)-x[w]/2<0,B=I?W<V?W-V:W-D:0;return{[y]:d[y]+B,data:{[y]:J,centerOffset:W-J-B,...I&&{alignmentOffset:B}},reset:I}}}),A0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:i,initialPlacement:s,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...P}=Rt(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const m=_t(o),p=ct(s),g=_t(s)===s,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),E=d||(g||!x?[yl(s)]:C0(s)),T=w!=="none";!d&&T&&E.push(...T0(s,x,w,S));const N=[s,...E],C=await Jr(t,P),b=[];let R=((r=l.flip)==null?void 0:r.overflows)||[];if(c&&b.push(C[m]),f){const W=k0(o,i,S);b.push(C[W[0]],C[W[1]])}if(R=[...R,{placement:o,overflows:b}],!b.every(W=>W<=0)){var z,V;const W=(((z=l.flip)==null?void 0:z.index)||0)+1,J=N[W];if(J&&(!(f==="alignment"?p!==ct(J):!1)||R.every(k=>ct(k.placement)===p?k.overflows[0]>0:!0)))return{data:{index:W,overflows:R},reset:{placement:J}};let I=(V=R.filter(B=>B.overflows[0]<=0).sort((B,k)=>B.overflows[1]-k.overflows[1])[0])==null?void 0:V.placement;if(!I)switch(y){case"bestFit":{var D;const B=(D=R.filter(k=>{if(T){const O=ct(k.placement);return O===p||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,M)=>O+M,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:D[0];B&&(I=B);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function vc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yc(e){return y0.some(t=>e[t]>=0)}const j0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Rt(e,t);switch(r){case"referenceHidden":{const l=await Jr(t,{...o,elementContext:"reference"}),i=vc(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:yc(i)}}}case"escaped":{const l=await Jr(t,{...o,altBoundary:!0}),i=vc(l,n.floating);return{data:{escapedOffsets:i,escaped:yc(i)}}}default:return{}}}}},Op=new Set(["left","top"]);async function L0(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=_t(n),s=sr(n),a=ct(n)==="y",u=Op.has(i)?-1:1,c=l&&a?-1:1,f=Rt(t,e);let{mainAxis:d,crossAxis:y,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof w=="number"&&(y=s==="end"?w*-1:w),a?{x:y*c,y:d*u}:{x:d*u,y:y*c}}const O0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:i,middlewareData:s}=t,a=await L0(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:l+a.y,data:{...a,placement:i}}}}},M0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:s={fn:P=>{let{x:m,y:p}=P;return{x:m,y:p}}},...a}=Rt(e,t),u={x:n,y:r},c=await Jr(t,a),f=ct(_t(o)),d=Aa(f);let y=u[d],w=u[f];if(l){const P=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=y+c[P],g=y-c[m];y=Ps(p,y,g)}if(i){const P=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=w+c[P],g=w-c[m];w=Ps(p,w,g)}const x=s.fn({...t,[d]:y,[f]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[d]:l,[f]:i}}}}}},z0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:i}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=Rt(e,t),c={x:n,y:r},f=ct(o),d=Aa(f);let y=c[d],w=c[f];const x=Rt(s,t),P=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(a){const g=d==="y"?"height":"width",S=l.reference[d]-l.floating[g]+P.mainAxis,E=l.reference[d]+l.reference[g]-P.mainAxis;y<S?y=S:y>E&&(y=E)}if(u){var m,p;const g=d==="y"?"width":"height",S=Op.has(_t(o)),E=l.reference[f]-l.floating[g]+(S&&((m=i.offset)==null?void 0:m[f])||0)+(S?0:P.crossAxis),T=l.reference[f]+l.reference[g]+(S?0:((p=i.offset)==null?void 0:p[f])||0)-(S?P.crossAxis:0);w<E?w=E:w>T&&(w=T)}return{[d]:y,[f]:w}}}},I0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:i,elements:s}=t,{apply:a=()=>{},...u}=Rt(e,t),c=await Jr(t,u),f=_t(o),d=sr(o),y=ct(o)==="y",{width:w,height:x}=l.floating;let P,m;f==="top"||f==="bottom"?(P=f,m=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=f,P=d==="end"?"top":"bottom");const p=x-c.top-c.bottom,g=w-c.left-c.right,S=Xt(x-c[P],p),E=Xt(w-c[m],g),T=!t.middlewareData.shift;let N=S,C=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=p),T&&!d){const R=Oe(c.left,0),z=Oe(c.right,0),V=Oe(c.top,0),D=Oe(c.bottom,0);y?C=w-2*(R!==0||z!==0?R+z:Oe(c.left,c.right)):N=x-2*(V!==0||D!==0?V+D:Oe(c.top,c.bottom))}await a({...t,availableWidth:C,availableHeight:N});const b=await i.getDimensions(s.floating);return w!==b.width||x!==b.height?{reset:{rects:!0}}:{}}}};function $l(){return typeof window<"u"}function ar(e){return Mp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ht(e){var t;return(t=(Mp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mp(e){return $l()?e instanceof Node||e instanceof Ie(e).Node:!1}function ot(e){return $l()?e instanceof Element||e instanceof Ie(e).Element:!1}function mt(e){return $l()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function wc(e){return!$l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}const D0=new Set(["inline","contents"]);function so(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!D0.has(o)}const F0=new Set(["table","td","th"]);function $0(e){return F0.has(ar(e))}const V0=[":popover-open",":modal"];function Vl(e){return V0.some(t=>{try{return e.matches(t)}catch{return!1}})}const U0=["transform","translate","scale","rotate","perspective"],B0=["transform","translate","scale","rotate","perspective","filter"],W0=["paint","layout","strict","content"];function Oa(e){const t=Ma(),n=ot(e)?lt(e):e;return U0.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)||B0.some(r=>(n.willChange||"").includes(r))||W0.some(r=>(n.contain||"").includes(r))}function H0(e){let t=Zt(e);for(;mt(t)&&!Jn(t);){if(Oa(t))return t;if(Vl(t))return null;t=Zt(t)}return null}function Ma(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G0=new Set(["html","body","#document"]);function Jn(e){return G0.has(ar(e))}function lt(e){return Ie(e).getComputedStyle(e)}function Ul(e){return ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zt(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wc(e)&&e.host||ht(e);return wc(t)?t.host:t}function zp(e){const t=Zt(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:mt(t)&&so(t)?t:zp(t)}function qr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=zp(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ie(o);if(l){const s=Ts(i);return t.concat(i,i.visualViewport||[],so(o)?o:[],s&&n?qr(s):[])}return t.concat(o,qr(o,[],n))}function Ts(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ip(e){const t=lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=mt(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=vl(n)!==l||vl(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function za(e){return ot(e)?e:e.contextElement}function Bn(e){const t=za(e);if(!mt(t))return pt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=Ip(t);let i=(l?vl(n.width):n.width)/r,s=(l?vl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Q0=pt(0);function Dp(e){const t=Ie(e);return!Ma()||!t.visualViewport?Q0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ie(e)?!1:t}function yn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=za(e);let i=pt(1);t&&(r?ot(r)&&(i=Bn(r)):i=Bn(e));const s=Y0(l,n,r)?Dp(l):pt(0);let a=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(l){const d=Ie(l),y=r&&ot(r)?Ie(r):r;let w=d,x=Ts(w);for(;x&&r&&y!==w;){const P=Bn(x),m=x.getBoundingClientRect(),p=lt(x),g=m.left+(x.clientLeft+parseFloat(p.paddingLeft))*P.x,S=m.top+(x.clientTop+parseFloat(p.paddingTop))*P.y;a*=P.x,u*=P.y,c*=P.x,f*=P.y,a+=g,u+=S,w=Ie(x),x=Ts(w)}}return wl({width:c,height:f,x:a,y:u})}function Bl(e,t){const n=Ul(e).scrollLeft;return t?t.left+n:yn(ht(e)).left+n}function Fp(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Bl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function K0(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",i=ht(r),s=t?Vl(t.floating):!1;if(r===i||s&&l)return n;let a={scrollLeft:0,scrollTop:0},u=pt(1);const c=pt(0),f=mt(r);if((f||!f&&!l)&&((ar(r)!=="body"||so(i))&&(a=Ul(r)),mt(r))){const y=yn(r);u=Bn(r),c.x=y.x+r.clientLeft,c.y=y.y+r.clientTop}const d=i&&!f&&!l?Fp(i,a):pt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-a.scrollTop*u.y+c.y+d.y}}function X0(e){return Array.from(e.getClientRects())}function Z0(e){const t=ht(e),n=Ul(e),r=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Bl(e);const s=-n.scrollTop;return lt(r).direction==="rtl"&&(i+=Oe(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:s}}const xc=25;function J0(e,t){const n=Ie(e),r=ht(e),o=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,s=0,a=0;if(o){l=o.width,i=o.height;const c=Ma();(!c||c&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}const u=Bl(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),y=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,w=Math.abs(r.clientWidth-f.clientWidth-y);w<=xc&&(l-=w)}else u<=xc&&(l+=u);return{width:l,height:i,x:s,y:a}}const q0=new Set(["absolute","fixed"]);function ew(e,t){const n=yn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=mt(e)?Bn(e):pt(1),i=e.clientWidth*l.x,s=e.clientHeight*l.y,a=o*l.x,u=r*l.y;return{width:i,height:s,x:a,y:u}}function Sc(e,t,n){let r;if(t==="viewport")r=J0(e,n);else if(t==="document")r=Z0(ht(e));else if(ot(t))r=ew(t,n);else{const o=Dp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wl(r)}function $p(e,t){const n=Zt(e);return n===t||!ot(n)||Jn(n)?!1:lt(n).position==="fixed"||$p(n,t)}function tw(e,t){const n=t.get(e);if(n)return n;let r=qr(e,[],!1).filter(s=>ot(s)&&ar(s)!=="body"),o=null;const l=lt(e).position==="fixed";let i=l?Zt(e):e;for(;ot(i)&&!Jn(i);){const s=lt(i),a=Oa(i);!a&&s.position==="fixed"&&(o=null),(l?!a&&!o:!a&&s.position==="static"&&!!o&&q0.has(o.position)||so(i)&&!a&&$p(e,i))?r=r.filter(c=>c!==i):o=s,i=Zt(i)}return t.set(e,r),r}function nw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Vl(t)?[]:tw(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((u,c)=>{const f=Sc(t,c,o);return u.top=Oe(f.top,u.top),u.right=Xt(f.right,u.right),u.bottom=Xt(f.bottom,u.bottom),u.left=Oe(f.left,u.left),u},Sc(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function rw(e){const{width:t,height:n}=Ip(e);return{width:t,height:n}}function ow(e,t,n){const r=mt(t),o=ht(t),l=n==="fixed",i=yn(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const a=pt(0);function u(){a.x=Bl(o)}if(r||!r&&!l)if((ar(t)!=="body"||so(o))&&(s=Ul(t)),r){const y=yn(t,!0,l,t);a.x=y.x+t.clientLeft,a.y=y.y+t.clientTop}else o&&u();l&&!r&&o&&u();const c=o&&!r&&!l?Fp(o,s):pt(0),f=i.left+s.scrollLeft-a.x-c.x,d=i.top+s.scrollTop-a.y-c.y;return{x:f,y:d,width:i.width,height:i.height}}function Ei(e){return lt(e).position==="static"}function kc(e,t){if(!mt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ht(e)===n&&(n=n.ownerDocument.body),n}function Vp(e,t){const n=Ie(e);if(Vl(e))return n;if(!mt(e)){let o=Zt(e);for(;o&&!Jn(o);){if(ot(o)&&!Ei(o))return o;o=Zt(o)}return n}let r=kc(e,t);for(;r&&$0(r)&&Ei(r);)r=kc(r,t);return r&&Jn(r)&&Ei(r)&&!Oa(r)?n:r||H0(e)||n}const lw=async function(e){const t=this.getOffsetParent||Vp,n=this.getDimensions,r=await n(e.floating);return{reference:ow(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function iw(e){return lt(e).direction==="rtl"}const sw={convertOffsetParentRelativeRectToViewportRelativeRect:K0,getDocumentElement:ht,getClippingRect:nw,getOffsetParent:Vp,getElementRects:lw,getClientRects:X0,getDimensions:rw,getScale:Bn,isElement:ot,isRTL:iw};function Up(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aw(e,t){let n=null,r;const o=ht(e);function l(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),l();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:y}=u;if(s||t(),!d||!y)return;const w=bo(f),x=bo(o.clientWidth-(c+d)),P=bo(o.clientHeight-(f+y)),m=bo(c),g={rootMargin:-w+"px "+-x+"px "+-P+"px "+-m+"px",threshold:Oe(0,Xt(1,a))||1};let S=!0;function E(T){const N=T[0].intersectionRatio;if(N!==a){if(!S)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!Up(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return i(!0),l}function uw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=za(e),c=o||l?[...u?qr(u):[],...qr(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),l&&m.addEventListener("resize",n)});const f=u&&s?aw(u,n):null;let d=-1,y=null;i&&(y=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=y)==null||g.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let w,x=a?yn(e):null;a&&P();function P(){const m=yn(e);x&&!Up(x,m)&&n(),x=m,w=requestAnimationFrame(P)}return n(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",n),l&&p.removeEventListener("resize",n)}),f==null||f(),(m=y)==null||m.disconnect(),y=null,a&&cancelAnimationFrame(w)}}const cw=O0,fw=M0,dw=A0,pw=I0,mw=j0,Cc=b0,hw=z0,gw=(e,t,n)=>{const r=new Map,o={platform:sw,...n},l={...o.platform,_c:r};return _0(e,t,{...o,platform:l})};var vw=typeof document<"u",yw=function(){},Ho=vw?h.useLayoutEffect:yw;function xl(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(!xl(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 l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!xl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Bp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ec(e,t){const n=Bp(e);return Math.round(t*n)/n}function Pi(e){const t=h.useRef(e);return Ho(()=>{t.current=e}),t}function ww(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,y]=h.useState(r);xl(d,r)||y(r);const[w,x]=h.useState(null),[P,m]=h.useState(null),p=h.useCallback(k=>{k!==T.current&&(T.current=k,x(k))},[]),g=h.useCallback(k=>{k!==N.current&&(N.current=k,m(k))},[]),S=l||w,E=i||P,T=h.useRef(null),N=h.useRef(null),C=h.useRef(c),b=a!=null,R=Pi(a),z=Pi(o),V=Pi(u),D=h.useCallback(()=>{if(!T.current||!N.current)return;const k={placement:t,strategy:n,middleware:d};z.current&&(k.platform=z.current),gw(T.current,N.current,k).then(O=>{const M={...O,isPositioned:V.current!==!1};W.current&&!xl(C.current,M)&&(C.current=M,Ea.flushSync(()=>{f(M)}))})},[d,t,n,z,V]);Ho(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const W=h.useRef(!1);Ho(()=>(W.current=!0,()=>{W.current=!1}),[]),Ho(()=>{if(S&&(T.current=S),E&&(N.current=E),S&&E){if(R.current)return R.current(S,E,D);D()}},[S,E,D,R,b]);const J=h.useMemo(()=>({reference:T,floating:N,setReference:p,setFloating:g}),[p,g]),I=h.useMemo(()=>({reference:S,floating:E}),[S,E]),B=h.useMemo(()=>{const k={position:n,left:0,top:0};if(!I.floating)return k;const O=Ec(I.floating,c.x),M=Ec(I.floating,c.y);return s?{...k,transform:"translate("+O+"px, "+M+"px)",...Bp(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:M}},[n,s,I.floating,c.x,c.y]);return h.useMemo(()=>({...c,update:D,refs:J,elements:I,floatingStyles:B}),[c,D,J,I,B])}const xw=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?Cc({element:r.current,padding:o}).fn(n):{}:r?Cc({element:r,padding:o}).fn(n):{}}}},Sw=(e,t)=>({...cw(e),options:[e,t]}),kw=(e,t)=>({...fw(e),options:[e,t]}),Cw=(e,t)=>({...hw(e),options:[e,t]}),Ew=(e,t)=>({...dw(e),options:[e,t]}),Pw=(e,t)=>({...pw(e),options:[e,t]}),Nw=(e,t)=>({...mw(e),options:[e,t]}),Tw=(e,t)=>({...xw(e),options:[e,t]});var Rw="Arrow",Wp=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...l}=e;return v.jsx(pe.svg,{...l,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Wp.displayName=Rw;var _w=Wp;function bw(e){const[t,n]=h.useState(void 0);return Kt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let i,s;if("borderBoxSize"in l){const a=l.borderBoxSize,u=Array.isArray(a)?a[0]:a;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 Ia="Popper",[Hp,Gp]=or(Ia),[Aw,Qp]=Hp(Ia),Yp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return v.jsx(Aw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Yp.displayName=Ia;var Kp="PopperAnchor",Xp=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,l=Qp(Kp,n),i=h.useRef(null),s=Ce(t,i),a=h.useRef(null);return h.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||i.current,u!==a.current&&l.onAnchorChange(a.current)}),r?null:v.jsx(pe.div,{...o,ref:s})});Xp.displayName=Kp;var Da="PopperContent",[jw,Lw]=Hp(Da),Zp=h.forwardRef((e,t)=>{var Q,ur,tn,nn,kn,rn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:y="optimized",onPlaced:w,...x}=e,P=Qp(Da,n),[m,p]=h.useState(null),g=Ce(t,cr=>p(cr)),[S,E]=h.useState(null),T=bw(S),N=(T==null?void 0:T.width)??0,C=(T==null?void 0:T.height)??0,b=r+(l!=="center"?"-"+l:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(u)?u:[u],V=z.length>0,D={padding:R,boundary:z.filter(Mw),altBoundary:V},{refs:W,floatingStyles:J,placement:I,isPositioned:B,middlewareData:k}=ww({strategy:"fixed",placement:b,whileElementsMounted:(...cr)=>uw(...cr,{animationFrame:y==="always"}),elements:{reference:P.anchor},middleware:[Sw({mainAxis:o+C,alignmentAxis:i}),a&&kw({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Cw():void 0,...D}),a&&Ew({...D}),Pw({...D,apply:({elements:cr,rects:Ha,availableWidth:bm,availableHeight:Am})=>{const{width:jm,height:Lm}=Ha.reference,ao=cr.floating.style;ao.setProperty("--radix-popper-available-width",`${bm}px`),ao.setProperty("--radix-popper-available-height",`${Am}px`),ao.setProperty("--radix-popper-anchor-width",`${jm}px`),ao.setProperty("--radix-popper-anchor-height",`${Lm}px`)}}),S&&Tw({element:S,padding:s}),zw({arrowWidth:N,arrowHeight:C}),d&&Nw({strategy:"referenceHidden",...D})]}),[O,M]=em(I),H=He(w);Kt(()=>{B&&(H==null||H())},[B,H]);const q=(Q=k.arrow)==null?void 0:Q.x,le=(ur=k.arrow)==null?void 0:ur.y,te=((tn=k.arrow)==null?void 0:tn.centerOffset)!==0,[it,Ue]=h.useState();return Kt(()=>{m&&Ue(window.getComputedStyle(m).zIndex)},[m]),v.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:B?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:it,"--radix-popper-transform-origin":[(nn=k.transformOrigin)==null?void 0:nn.x,(kn=k.transformOrigin)==null?void 0:kn.y].join(" "),...((rn=k.hide)==null?void 0:rn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(jw,{scope:n,placedSide:O,onArrowChange:E,arrowX:q,arrowY:le,shouldHideArrow:te,children:v.jsx(pe.div,{"data-side":O,"data-align":M,...x,ref:g,style:{...x.style,animation:B?void 0:"none"}})})})});Zp.displayName=Da;var Jp="PopperArrow",Ow={top:"bottom",right:"left",bottom:"top",left:"right"},qp=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,l=Lw(Jp,r),i=Ow[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(_w,{...o,ref:n,style:{...o.style,display:"block"}})})});qp.displayName=Jp;function Mw(e){return e!==null}var zw=e=>({name:"transformOrigin",options:e,fn(t){var P,m,p;const{placement:n,rects:r,middlewareData:o}=t,i=((P=o.arrow)==null?void 0:P.centerOffset)!==0,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,c]=em(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=o.arrow)==null?void 0:m.x)??0)+s/2,y=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let w="",x="";return u==="bottom"?(w=i?f:`${d}px`,x=`${-a}px`):u==="top"?(w=i?f:`${d}px`,x=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,x=i?f:`${y}px`):u==="left"&&(w=`${r.floating.width+a}px`,x=i?f:`${y}px`),{data:{x:w,y:x}}}});function em(e){const[t,n="center"]=e.split("-");return[t,n]}var Iw=Yp,Dw=Xp,Fw=Zp,$w=qp,Vw=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"}),Uw="VisuallyHidden",tm=h.forwardRef((e,t)=>v.jsx(pe.span,{...e,ref:t,style:{...Vw,...e.style}}));tm.displayName=Uw;var Bw=tm,[Wl]=or("Tooltip",[Gp]),Hl=Gp(),nm="TooltipProvider",Ww=700,Rs="tooltip.open",[Hw,Fa]=Wl(nm),rm=e=>{const{__scopeTooltip:t,delayDuration:n=Ww,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,i=h.useRef(!0),s=h.useRef(!1),a=h.useRef(0);return h.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),v.jsx(Hw,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:h.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:l})};rm.displayName=nm;var eo="Tooltip",[Gw,Gl]=Wl(eo),om=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=e,a=Fa(eo,e.__scopeTooltip),u=Hl(t),[c,f]=h.useState(null),d=Pa(),y=h.useRef(0),w=i??a.disableHoverableContent,x=s??a.delayDuration,P=h.useRef(!1),[m,p]=Na({prop:r,defaultProp:o??!1,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(Rs))):a.onClose(),l==null||l(N)},caller:eo}),g=h.useMemo(()=>m?P.current?"delayed-open":"instant-open":"closed",[m]),S=h.useCallback(()=>{window.clearTimeout(y.current),y.current=0,P.current=!1,p(!0)},[p]),E=h.useCallback(()=>{window.clearTimeout(y.current),y.current=0,p(!1)},[p]),T=h.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{P.current=!0,p(!0),y.current=0},x)},[x,p]);return h.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),v.jsx(Iw,{...u,children:v.jsx(Gw,{scope:t,contentId:d,open:m,stateAttribute:g,trigger:c,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayedRef.current?T():S()},[a.isOpenDelayedRef,T,S]),onTriggerLeave:h.useCallback(()=>{w?E():(window.clearTimeout(y.current),y.current=0)},[E,w]),onOpen:S,onClose:E,disableHoverableContent:w,children:n})})};om.displayName=eo;var _s="TooltipTrigger",lm=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Gl(_s,n),l=Fa(_s,n),i=Hl(n),s=h.useRef(null),a=Ce(t,s,o.onTriggerChange),u=h.useRef(!1),c=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.jsx(Dw,{asChild:!0,...i,children:v.jsx(pe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:X(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});lm.displayName=_s;var Qw="TooltipPortal",[Wx,Yw]=Wl(Qw,{forceMount:void 0}),qn="TooltipContent",im=h.forwardRef((e,t)=>{const n=Yw(qn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...l}=e,i=Gl(qn,e.__scopeTooltip);return v.jsx(Sn,{present:r||i.open,children:i.disableHoverableContent?v.jsx(sm,{side:o,...l,ref:t}):v.jsx(Kw,{side:o,...l,ref:t})})}),Kw=h.forwardRef((e,t)=>{const n=Gl(qn,e.__scopeTooltip),r=Fa(qn,e.__scopeTooltip),o=h.useRef(null),l=Ce(t,o),[i,s]=h.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,d=h.useCallback(()=>{s(null),f(!1)},[f]),y=h.useCallback((w,x)=>{const P=w.currentTarget,m={x:w.clientX,y:w.clientY},p=ex(m,P.getBoundingClientRect()),g=tx(m,p),S=nx(x.getBoundingClientRect()),E=ox([...g,...S]);s(E),f(!0)},[f]);return h.useEffect(()=>()=>d(),[d]),h.useEffect(()=>{if(a&&c){const w=P=>y(P,c),x=P=>y(P,a);return a.addEventListener("pointerleave",w),c.addEventListener("pointerleave",x),()=>{a.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",x)}}},[a,c,y,d]),h.useEffect(()=>{if(i){const w=x=>{const P=x.target,m={x:x.clientX,y:x.clientY},p=(a==null?void 0:a.contains(P))||(c==null?void 0:c.contains(P)),g=!rx(m,i);p?d():g&&(d(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,c,i,u,d]),v.jsx(sm,{...e,ref:l})}),[Xw,Zw]=Wl(eo,{isInside:!1}),Jw=Vv("TooltipContent"),sm=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:i,...s}=e,a=Gl(qn,n),u=Hl(n),{onClose:c}=a;return h.useEffect(()=>(document.addEventListener(Rs,c),()=>document.removeEventListener(Rs,c)),[c]),h.useEffect(()=>{if(a.trigger){const f=d=>{const y=d.target;y!=null&&y.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),v.jsx(Ap,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:v.jsxs(Fw,{"data-state":a.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:[v.jsx(Jw,{children:r}),v.jsx(Xw,{scope:n,isInside:!0,children:v.jsx(Bw,{id:a.contentId,role:"tooltip",children:o||r})})]})})});im.displayName=qn;var am="TooltipArrow",qw=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hl(n);return Zw(am,n).isInside?null:v.jsx($w,{...o,...r,ref:t})});qw.displayName=am;function ex(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,o,l)){case l:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function tx(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 nx(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 rx(e,t){const{x:n,y:r}=e;let o=!1;for(let l=0,i=t.length-1;l<t.length;i=l++){const s=t[l],a=t[i],u=s.x,c=s.y,f=a.x,d=a.y;c>r!=d>r&&n<(f-u)*(r-c)/(d-c)+u&&(o=!o)}return o}function ox(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),lx(t)}function lx(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 l=t[t.length-1],i=t[t.length-2];if((l.x-i.x)*(o.y-i.y)>=(l.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 l=n[n.length-1],i=n[n.length-2];if((l.x-i.x)*(o.y-i.y)>=(l.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 ix=rm,sx=om,ax=lm,um=im;const cm=ix,fm=sx,dm=ax,$a=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(um,{ref:r,sideOffset:t,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));$a.displayName=um.displayName;function ux({getText:e,label:t="Copy JSON",title:n="Copy JSON"}){const[r,o]=h.useState(!1);async function l(){try{const i=typeof e=="function"?e():String(e??"");await navigator.clipboard.writeText(i),o(!0),setTimeout(()=>o(!1),1e3)}catch{}}return v.jsx(cm,{children:v.jsxs(fm,{children:[v.jsx(dm,{asChild:!0,children:v.jsxs(Zn,{variant:"outline",size:"sm",onClick:l,className:"gap-2",children:[r?v.jsx(Hd,{className:"h-4 w-4"}):v.jsx(gv,{className:"h-4 w-4"}),v.jsx("span",{className:"hidden sm:inline",children:r?"Copied":t})]})}),v.jsx($a,{children:n})]})})}function cx(){return typeof globalThis<"u"&&globalThis.location&&globalThis.location.origin?globalThis.location.origin:""}function fx(e,t){return(t||cx())+(e==="/"?"/":`${e}/`)+"index.json"}function dx(e,{origin:t}={}){const n=fx(e,t),r=JSON.stringify(n),o=`curl -sS -H "Accept: application/json" ${r}`,l=`fetch(${r}, {
126
126
  headers: { Accept: 'application/json' },
127
127
  cache: 'no-store'
128
128
  })
@@ -139,4 +139,4 @@ console.log(json);
139
139
  // If you prefer Undici instead:
140
140
  // import { fetch } from 'undici'; // npm i undici
141
141
  `;return{curl:o,browser:l,node:i,url:n}}const px=({className:e,...t})=>v.jsx(Pp,{className:ue("group w-full gap-0 overflow-hidden rounded-md border",e),...t}),mx=({className:e,...t})=>v.jsx("div",{className:ue("flex flex-row items-center justify-between border-b bg-secondary p-1",e),...t}),hx=({asChild:e,value:t,onCopy:n,onError:r,timeout:o=2e3,children:l,...i})=>{const[s,a]=h.useState(!1),u=()=>{typeof window>"u"||!navigator.clipboard.writeText||!t||navigator.clipboard.writeText(t).then(()=>{a(!0),n==null||n(),setTimeout(()=>a(!1),o)},r)};if(e)return h.cloneElement(l,{onClick:u});const c=s?v.jsx(Hd,{size:14}):v.jsx(xv,{size:14});return v.jsx(Zn,{className:"opacity-0 transition-opacity group-hover:opacity-100",onClick:u,size:"icon",variant:"ghost",...i,children:l??c})},gx=ba,vx=({className:e,...t})=>v.jsx(Lr,{className:ue("gap-1.5",e),...t}),yx=({className:e,children:t,...n})=>v.jsx(Or,{asChild:!0,className:ue("mt-0 bg-background p-4 text-sm",e),...n,children:v.jsx("pre",{className:"truncate",children:t})}),wx=({commands:e=[{label:"shadcn",icon:pv,code:"npx shadcn@latest add https://www.kibo-ui.com/registry/snippet.json"}]})=>{const[t,n]=h.useState(e[0].label),r=e.find(o=>o.label===t);return v.jsxs(px,{onValueChange:n,value:t,children:[v.jsxs(mx,{children:[v.jsx(gx,{children:e.map(o=>v.jsxs(vx,{value:o.label,children:[v.jsx(o.icon,{size:14}),v.jsx("span",{children:o.label})]},o.label))}),r&&v.jsx(hx,{onCopy:()=>console.log(`Copied "${r.code}" to clipboard`),onError:()=>console.error(`Failed to copy "${r.code}" to clipboard`),value:r.code})]}),e.map(o=>v.jsx(yx,{value:o.label,className:"whitespace-pre-wrap break-words",children:o.code},o.label))]})};function xx({route:e}){const{curl:t,browser:n,node:r,url:o}=h.useMemo(()=>dx(e),[e]);return v.jsxs("div",{className:"mt-4",children:[v.jsxs("div",{className:"mb-2 text-sm",children:[v.jsx("span",{className:"opacity-70",children:"Absolute URL:"})," ",v.jsx("code",{className:"font-mono",children:o})]}),v.jsx(wx,{commands:[{label:"curl",icon:yv,code:t},{label:"Browser fetch",icon:Ev,code:n},{label:"Node fetch",icon:Nv,code:r}]})]})}const pm=h.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{type:t,className:ue("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));pm.displayName="Input";function Sx(e,[t,n]){return Math.min(n,Math.max(t,e))}function kx(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Va="ScrollArea",[mm]=or(Va),[Cx,Xe]=mm(Va),hm=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:l=600,...i}=e,[s,a]=h.useState(null),[u,c]=h.useState(null),[f,d]=h.useState(null),[y,w]=h.useState(null),[x,P]=h.useState(null),[m,p]=h.useState(0),[g,S]=h.useState(0),[E,T]=h.useState(!1),[N,C]=h.useState(!1),b=Ce(t,z=>a(z)),R=Ta(o);return v.jsx(Cx,{scope:n,type:r,dir:R,scrollHideDelay:l,scrollArea:s,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:y,onScrollbarXChange:w,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:x,onScrollbarYChange:P,scrollbarYEnabled:N,onScrollbarYEnabledChange:C,onCornerWidthChange:p,onCornerHeightChange:S,children:v.jsx(pe.div,{dir:R,...i,ref:b,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":g+"px",...e.style}})})});hm.displayName=Va;var gm="ScrollAreaViewport",vm=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...l}=e,i=Xe(gm,n),s=h.useRef(null),a=Ce(t,s,i.onViewportChange);return v.jsxs(v.Fragment,{children:[v.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}),v.jsx(pe.div,{"data-radix-scroll-area-viewport":"",...l,ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:v.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});vm.displayName=gm;var gt="ScrollAreaScrollbar",Ua=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xe(gt,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return h.useEffect(()=>(s?l(!0):i(!0),()=>{s?l(!1):i(!1)}),[s,l,i]),o.type==="hover"?v.jsx(Ex,{...r,ref:t,forceMount:n}):o.type==="scroll"?v.jsx(Px,{...r,ref:t,forceMount:n}):o.type==="auto"?v.jsx(ym,{...r,ref:t,forceMount:n}):o.type==="always"?v.jsx(Ba,{...r,ref:t}):null});Ua.displayName=gt;var Ex=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xe(gt,e.__scopeScrollArea),[l,i]=h.useState(!1);return h.useEffect(()=>{const s=o.scrollArea;let a=0;if(s){const u=()=>{window.clearTimeout(a),i(!0)},c=()=>{a=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(a),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),v.jsx(Sn,{present:n||l,children:v.jsx(ym,{"data-state":l?"visible":"hidden",...r,ref:t})})}),Px=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xe(gt,e.__scopeScrollArea),l=e.orientation==="horizontal",i=Yl(()=>a("SCROLL_END"),100),[s,a]=kx("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 h.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>a("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,a]),h.useEffect(()=>{const u=o.viewport,c=l?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const y=u[c];f!==y&&(a("SCROLL"),i()),f=y};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,l,a,i]),v.jsx(Sn,{present:n||s!=="hidden",children:v.jsx(Ba,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:X(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:X(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),ym=h.forwardRef((e,t)=>{const n=Xe(gt,e.__scopeScrollArea),{forceMount:r,...o}=e,[l,i]=h.useState(!1),s=e.orientation==="horizontal",a=Yl(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,c=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?u:c)}},10);return er(n.viewport,a),er(n.content,a),v.jsx(Sn,{present:r||l,children:v.jsx(Ba,{"data-state":l?"visible":"hidden",...o,ref:t})})}),Ba=h.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Xe(gt,e.__scopeScrollArea),l=h.useRef(null),i=h.useRef(0),[s,a]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Cm(s.viewport,s.content),c={...r,sizes:s,onSizesChange:a,hasThumb:u>0&&u<1,onThumbChange:d=>l.current=d,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:d=>i.current=d};function f(d,y){return Ax(d,i.current,s,y)}return n==="horizontal"?v.jsx(Nx,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollLeft,y=Pc(d,s,o.dir);l.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}}):n==="vertical"?v.jsx(Tx,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollTop,y=Pc(d,s);l.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}}):null}),Nx=h.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=Xe(gt,e.__scopeScrollArea),[i,s]=h.useState(),a=h.useRef(null),u=Ce(t,a,l.onScrollbarXChange);return h.useEffect(()=>{a.current&&s(getComputedStyle(a.current))},[a]),v.jsx(xm,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ql(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(l.viewport){const d=l.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),Pm(d,f)&&c.preventDefault()}},onResize:()=>{a.current&&l.viewport&&i&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:kl(i.paddingLeft),paddingEnd:kl(i.paddingRight)}})}})}),Tx=h.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=Xe(gt,e.__scopeScrollArea),[i,s]=h.useState(),a=h.useRef(null),u=Ce(t,a,l.onScrollbarYChange);return h.useEffect(()=>{a.current&&s(getComputedStyle(a.current))},[a]),v.jsx(xm,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ql(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(l.viewport){const d=l.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),Pm(d,f)&&c.preventDefault()}},onResize:()=>{a.current&&l.viewport&&i&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:kl(i.paddingTop),paddingEnd:kl(i.paddingBottom)}})}})}),[Rx,wm]=mm(gt),xm=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:a,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,y=Xe(gt,n),[w,x]=h.useState(null),P=Ce(t,b=>x(b)),m=h.useRef(null),p=h.useRef(""),g=y.viewport,S=r.content-r.viewport,E=He(c),T=He(a),N=Yl(f,10);function C(b){if(m.current){const R=b.clientX-m.current.left,z=b.clientY-m.current.top;u({x:R,y:z})}}return h.useEffect(()=>{const b=R=>{const z=R.target;(w==null?void 0:w.contains(z))&&E(R,S)};return document.addEventListener("wheel",b,{passive:!1}),()=>document.removeEventListener("wheel",b,{passive:!1})},[g,w,S,E]),h.useEffect(T,[r,T]),er(w,N),er(y.content,N),v.jsx(Rx,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:He(l),onThumbPointerUp:He(i),onThumbPositionChange:T,onThumbPointerDown:He(s),children:v.jsx(pe.div,{...d,ref:P,style:{position:"absolute",...d.style},onPointerDown:X(e.onPointerDown,b=>{b.button===0&&(b.target.setPointerCapture(b.pointerId),m.current=w.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),C(b))}),onPointerMove:X(e.onPointerMove,C),onPointerUp:X(e.onPointerUp,b=>{const R=b.target;R.hasPointerCapture(b.pointerId)&&R.releasePointerCapture(b.pointerId),document.body.style.webkitUserSelect=p.current,y.viewport&&(y.viewport.style.scrollBehavior=""),m.current=null})})})}),Sl="ScrollAreaThumb",Sm=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wm(Sl,e.__scopeScrollArea);return v.jsx(Sn,{present:n||o.hasThumb,children:v.jsx(_x,{ref:t,...r})})}),_x=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,l=Xe(Sl,n),i=wm(Sl,n),{onThumbPositionChange:s}=i,a=Ce(t,f=>i.onThumbChange(f)),u=h.useRef(void 0),c=Yl(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{const f=l.viewport;if(f){const d=()=>{if(c(),!u.current){const y=jx(f,s);u.current=y,s()}};return s(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[l.viewport,c,s]),v.jsx(pe.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:X(e.onPointerDownCapture,f=>{const y=f.target.getBoundingClientRect(),w=f.clientX-y.left,x=f.clientY-y.top;i.onThumbPointerDown({x:w,y:x})}),onPointerUp:X(e.onPointerUp,i.onThumbPointerUp)})});Sm.displayName=Sl;var Wa="ScrollAreaCorner",km=h.forwardRef((e,t)=>{const n=Xe(Wa,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?v.jsx(bx,{...e,ref:t}):null});km.displayName=Wa;var bx=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Xe(Wa,n),[l,i]=h.useState(0),[s,a]=h.useState(0),u=!!(l&&s);return er(o.scrollbarX,()=>{var f;const c=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(c),a(c)}),er(o.scrollbarY,()=>{var f;const c=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),u?v.jsx(pe.div,{...r,ref:t,style:{width:l,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function kl(e){return e?parseInt(e,10):0}function Cm(e,t){const n=e/t;return isNaN(n)?0:n}function Ql(e){const t=Cm(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Ax(e,t,n,r="ltr"){const o=Ql(n),l=o/2,i=t||l,s=o-i,a=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,f=r==="ltr"?[0,c]:[c*-1,0];return Em([a,u],f)(e)}function Pc(e,t,n="ltr"){const r=Ql(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,i=t.content-t.viewport,s=l-r,a=n==="ltr"?[0,i]:[i*-1,0],u=Sx(e,a);return Em([0,i],[0,s])(u)}function Em(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 Pm(e,t){return e>0&&e<t}var jx=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const l={left:e.scrollLeft,top:e.scrollTop},i=n.left!==l.left,s=n.top!==l.top;(i||s)&&t(),n=l,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Yl(e,t){const n=He(e),r=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),h.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function er(e,t){const n=He(t);Kt(()=>{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 Nm=hm,Lx=vm,Ox=km;const Tm=h.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(Nm,{ref:r,className:ue("relative overflow-hidden",e),...n,children:[v.jsx(Lx,{className:"h-full w-full rounded-[inherit]",children:t}),v.jsx(Rm,{}),v.jsx(Ox,{})]}));Tm.displayName=Nm.displayName;const Rm=h.forwardRef(({className:e,orientation:t="vertical",...n},r)=>v.jsx(Ua,{ref:r,orientation:t,className:ue("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:v.jsx(Sm,{className:"relative flex-1 rounded-full bg-border"})}));Rm.displayName=Ua.displayName;const Mx=({route:e,active:t,highlighted:n,onClick:r,subtitle:o})=>v.jsxs("button",{onClick:r,className:["w-full text-left rounded-md px-3 py-2 outline-none transition",t?"border-2 bg-accent/50":"border-2 border-transparent hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-ring"].join(" "),children:[v.jsx("div",{className:"font-mono text-sm",children:e}),o&&v.jsx("div",{className:"mt-1 flex items-center gap-2 text-xs text-muted-foreground",children:o})]}),zx=h.forwardRef(function({count:t,query:n,setQuery:r,routes:o,onPick:l,activeRoute:i,highlightedIndex:s,headerExtras:a},u){return v.jsxs("aside",{className:"min-h-0 border-r",children:[v.jsxs("div",{className:"sticky top-0 z-10 grid gap-2 border-b bg-background p-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("div",{className:"text-sm font-medium",children:"Endpoints"}),v.jsx(Wo,{variant:"secondary",children:t})]}),v.jsx(pm,{value:n,onChange:c=>r(c.target.value),placeholder:"Filter routes…",className:"h-9"}),a]}),v.jsx(Tm,{className:"h-[calc(100vh-12rem)] p-3",ref:u,children:v.jsxs("div",{className:"space-y-1",children:[o.map((c,f)=>v.jsx(Mx,{route:c.route,active:i===c.route,highlighted:s===f,onClick:()=>l(c.route),subtitle:v.jsxs("span",{className:"flex gap-2",children:[v.jsx("span",{title:`${c.bytes} bytes`,children:Ix(c.bytes)}),v.jsx("span",{title:`Modified: ${Nc(c.mtime)}`,children:Nc(c.mtime)})]})},c.route)),!o.length&&v.jsxs("div",{className:"px-2 py-3 text-xs text-muted-foreground",children:["No routes match “",n,"”."]})]})})]})});function Ix(e){if(!Number.isFinite(e))return"—";if(e<1024)return`${e} B`;const t=["KB","MB","GB"];let n=-1,r=e;do r/=1024,n++;while(r>=1024&&n<t.length-1);return`${r.toFixed(r>=10?0:1)} ${t[n]}`}function Nc(e){const t=new Date(e);return isNaN(t)?"—":t.toLocaleString()}const Tc="statik-theme",_m=h.createContext({theme:"system",setTheme:()=>{}});function Rc(e){const t=window.matchMedia("(prefers-color-scheme: dark)").matches,n=e==="dark"||e==="system"&&t,r=document.documentElement;r.classList.toggle("dark",n),r.setAttribute("data-theme",e)}function Dx({children:e}){const[t,n]=h.useState(()=>{try{return localStorage.getItem(Tc)||"system"}catch{return"system"}});h.useEffect(()=>{try{localStorage.setItem(Tc,t)}catch{}Rc(t)},[t]),h.useEffect(()=>{if(t!=="system")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>Rc("system");return o.addEventListener("change",l),()=>o.removeEventListener("change",l)},[t]);const r=h.useMemo(()=>({theme:t,setTheme:o=>n(o)}),[t]);return v.jsx(_m.Provider,{value:r,children:e})}function Fx(){return h.useContext(_m)}const Ni=({active:e,onClick:t,icon:n,label:r})=>v.jsx(cm,{delayDuration:200,children:v.jsxs(fm,{children:[v.jsx(dm,{asChild:!0,children:v.jsx(Zn,{variant:e?"default":"ghost",size:"icon",className:"h-8 w-8",onClick:t,"aria-label":r,children:v.jsx(n,{className:"h-4 w-4"})})}),v.jsx($a,{side:"bottom",children:r})]})});function $x(){const{theme:e,setTheme:t}=Fx();return v.jsxs("div",{className:"inline-flex items-center gap-1",children:[v.jsx(Ni,{active:e==="light",onClick:()=>t("light"),icon:zv,label:"Light"}),v.jsx(Ni,{active:e==="system",onClick:()=>t("system"),icon:Rv,label:"System"}),v.jsx(Ni,{active:e==="dark",onClick:()=>t("dark"),icon:Ov,label:"Dark"})]})}function Vx(){return v.jsx("header",{className:"sticky top-0 z-40 w-full border-b bg-background/80 backdrop-blur",children:v.jsxs("div",{className:"mx-auto flex h-12 items-center px-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"inline-flex h-6 w-6 items-center justify-center rounded-md border",children:v.jsx(bv,{className:"h-4 w-4"})}),v.jsx("span",{className:"font-semibold tracking-tight",children:"StatikAPI"})]}),v.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[v.jsx($x,{}),v.jsx(Zn,{asChild:!0,variant:"ghost",size:"sm",className:"gap-2",children:v.jsx("a",{href:"https://statikapi.com/docs",target:"_blank",rel:"noreferrer","aria-label":"Open documentation",children:v.jsx("span",{className:"hidden sm:inline",children:"Docs"})})}),v.jsx(Zn,{asChild:!0,variant:"ghost",size:"sm",className:"gap-2",children:v.jsxs("a",{href:"https://github.com/zonayedpca/statikapi",target:"_blank",rel:"noreferrer","aria-label":"Open GitHub repository",children:[v.jsx(kv,{className:"h-4 w-4"}),v.jsx("span",{className:"hidden sm:inline",children:"GitHub"})]})})]})]})})}function Ux({sidebar:e,children:t}){return v.jsxs("div",{className:"flex h-screen flex-col",children:[v.jsx(Vx,{}),v.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-[20rem_minmax(0,1fr)]",children:[e,v.jsx("main",{className:"min-w-0 overflow-auto p-3",children:t})]})]})}function Bx(){const[e,t]=h.useState([]),[n,r]=h.useState(""),[o,l]=h.useState(""),[i,s]=h.useState("Select a route…"),[a,u]=h.useState(null),[c,f]=h.useState({}),[d,y]=h.useState(!1),[w,x]=h.useState(0),P=h.useRef(null),m=h.useRef(null),[p,g]=h.useState("tree");h.useEffect(()=>{nc().then(t).catch(console.error)},[]),h.useEffect(()=>{const b=decodeURIComponent(location.hash.slice(1));b&&l(b);const R=()=>{const z=decodeURIComponent(location.hash.slice(1));z&&l(z)};return addEventListener("hashchange",R),()=>removeEventListener("hashchange",R)},[]);function S(b){b&&(y(!0),Iv(b).then(({text:R,headers:z})=>{s(R),f(z||{});try{u(JSON.parse(R))}catch{u(null)}}).catch(R=>{s(String(R)),u(null),f({})}).finally(()=>y(!1)))}h.useEffect(()=>{o&&S(o)},[o]),h.useEffect(()=>{const b=new EventSource("/_ui/events");return b.onmessage=async R=>{const z=String(R.data||"");if(z.startsWith("changed:")){const V=z.slice(8);try{const D=await nc();t(D)}catch{}V&&V===o&&S(o)}},b.onerror=()=>{},()=>b.close()},[o]);const E=h.useMemo(()=>{const b=n.toLowerCase();return e.filter(R=>(R.route||"").toLowerCase().includes(b))},[e,n]);h.useEffect(()=>{x(b=>E.length?Math.min(Math.max(b,0),E.length-1):0)},[E]);const T=b=>{l(b),g("tree"),location.hash=encodeURIComponent(b)};h.useEffect(()=>{const b=R=>{var V;if((document.activeElement===m.current||P.current&&P.current.contains(document.activeElement))&&E.length){if(R.key==="ArrowDown")R.preventDefault(),x(D=>Math.min(D+1,E.length-1));else if(R.key==="ArrowUp")R.preventDefault(),x(D=>Math.max(D-1,0));else if(R.key==="Enter"){R.preventDefault();const D=(V=E[w])==null?void 0:V.route;D&&T(D)}}};return addEventListener("keydown",b),()=>removeEventListener("keydown",b)},[E,w]);const N=h.useMemo(()=>{if(a==null)return i??"";try{return JSON.stringify(a,null,2)}catch{return i??""}},[a,i]),C=v.jsx(zx,{count:e.length,query:n,setQuery:r,routes:E,onPick:T,activeRoute:o,highlightedIndex:w,ref:P,headerExtras:null});return v.jsx(Ux,{sidebar:C,children:v.jsx("div",{className:"app flex h-screen",children:v.jsx("section",{className:"flex-1 p-3 overflow-auto",children:o?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mb-2 flex items-center gap-2 text-sm",children:[v.jsx("span",{className:"text-muted-foreground",children:"Viewing:"}),v.jsx("code",{className:"font-mono",children:o}),d&&v.jsxs("span",{className:"ml-2 inline-flex items-center gap-1 text-muted-foreground",children:[v.jsx(jv,{className:"h-4 w-4 animate-spin"}),"loading…"]})]}),v.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2 text-[12px]",children:[v.jsx(Wo,{variant:"secondary",title:"Content-Type",children:c["content-type"]||"—"}),v.jsx(Wo,{variant:"secondary",title:"ETag",children:c.etag||"—"}),v.jsx(Wo,{variant:"secondary",title:"Cache-Control",children:c["cache-control"]||"—"}),v.jsx(Rp,{className:"mx-2 hidden sm:inline-flex",orientation:"vertical"}),v.jsx("div",{className:"ml-auto",children:v.jsx(ux,{getText:()=>N,label:"Copy JSON",title:"Copy JSON"})})]}),v.jsxs(Pp,{value:p,onValueChange:g,className:"w-full bg-accent/50 p-4 rounded-md",children:[v.jsxs(ba,{className:"",children:[v.jsx(Lr,{value:"tree",children:"Tree"}),v.jsx(Lr,{value:"pretty",children:"Pretty"}),v.jsx(Lr,{value:"raw",children:"Raw"})]}),v.jsx(Or,{value:"tree",children:v.jsx(Bo,{className:"p-3 overflow-auto",children:a!=null?v.jsx(s0,{data:a}):v.jsx("div",{className:"text-sm text-muted-foreground",children:"Not valid JSON — showing Raw/Pretty instead."})})}),v.jsx(Or,{value:"pretty",children:v.jsx(Bo,{className:"p-3 overflow-auto",children:v.jsx("pre",{className:"whitespace-pre text-sm",children:N})})}),v.jsx(Or,{value:"raw",children:v.jsx(Bo,{className:"p-3 overflow-auto",children:v.jsx("pre",{className:"whitespace-pre text-sm",children:i})})})]}),v.jsx(xx,{route:o})]}):v.jsx("div",{className:"text-sm opacity-70",children:"Select a route from the left to view its JSON."})})})})}Bd(document.getElementById("root")).render(v.jsx(yt.StrictMode,{children:v.jsx(Dx,{children:v.jsx(Bx,{})})}));
142
- //# sourceMappingURL=index-BkqZSp06.js.map
142
+ //# sourceMappingURL=index-BevI1ZS7.js.map