@fuma-content/studio 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/{QueryClientProvider-DqiXnN2L.js → QueryClientProvider-BFSUF51X.js} +1 -1
- package/build/client/assets/actions-ByenKsIt.js +1 -0
- package/build/client/assets/actions-ClHPL1CP.js +1 -0
- package/build/client/assets/badge-BnhEE6iu.js +1 -0
- package/build/client/assets/{client-OSVRoCKH.js → client-BEKU4RIg.js} +148 -146
- package/build/client/assets/client-DBU2dkUR.js +1 -0
- package/build/client/assets/client-DvwvjHta.js +1 -0
- package/build/client/assets/client-wd2sce2I.js +8 -0
- package/build/client/assets/dropdown-menu-By_XeFX4.js +1 -0
- package/build/client/assets/entry.rsc-J_U0YQEr.js +1 -0
- package/build/client/assets/{index-BdrDVoE8.js → index-B5GacMxj.js} +1 -1
- package/build/client/assets/index-BTaHNKf7.js +1 -0
- package/build/client/assets/index-BgFxGtat.js +1 -0
- package/build/client/assets/index-CG_0cSZQ.js +1 -0
- package/build/client/assets/index-CfCSvolS.js +1 -0
- package/build/client/assets/{index-Bx93mXy1.js → index-D8KuzOxG.js} +1 -1
- package/build/client/assets/index-DrT4Adhh.js +41 -0
- package/build/client/assets/{index-BpILsqFO.js → index-El_a1Yhs.js} +1 -1
- package/build/client/assets/index-QYLIz8qa.js +1 -0
- package/build/client/assets/layout-BPVd8vtW.js +1 -0
- package/build/client/assets/{mdx-BNErtsK6.js → mdx-DBJIR6uw.js} +1 -1
- package/build/client/assets/page-BJL5nvn-.js +1 -0
- package/build/client/assets/page-eyuUZvVn.js +1 -0
- package/build/client/assets/popover-BowiFsDm.js +1 -0
- package/build/client/assets/{react-B8--K7an.js → react-CzFdRS7Y.js} +7 -7
- package/build/client/assets/root-7fvd-0uP.js +1 -0
- package/build/client/assets/root-B0B6-NU5.css +1 -0
- package/build/client/assets/{root-B_CXTQpA.js → root-jg-0qm8s.js} +1 -1
- package/build/client/assets/route-BLLsZ_zO.js +1 -0
- package/build/client/assets/{router-a9jyj9wf.js → router-QEl8O8lm.js} +1 -1
- package/build/client/assets/select-BI356bZ1.js +1 -0
- package/build/client/assets/separator-0kwG7IIM.js +1 -0
- package/build/client/assets/sidebar-ByyQE2QS.js +12 -0
- package/build/client/assets/{site-header-DQkKe-WA.js → site-header-iBpA4Sim.js} +1 -1
- package/build/client/assets/spinner-D35u7i0p.js +1 -0
- package/build/client/assets/tooltip-v-_I4rCw.js +16 -0
- package/build/client/assets/use-sync-yCWvjE_m.js +2 -0
- package/build/client/assets/{yaml-Cloe7OVn.js → yaml-BnQf_2Zt.js} +1 -1
- package/build/server/__ssr_build/__vite_rsc_assets_manifest.js +213 -133
- package/build/server/__ssr_build/assets/{actions-BFtCTvOL.js → actions-C5Kv8XYU.js} +2 -2
- package/build/server/__ssr_build/assets/{actions-B50-3n-a.js → actions-DQIBBM15.js} +4 -4
- package/build/server/__ssr_build/assets/{badge-DYFvBSp8.js → badge-B48L9yYO.js} +1 -1
- package/build/server/__ssr_build/assets/{client-CU90j0R8.js → client-AuWNsacU.js} +3 -3
- package/build/server/__ssr_build/assets/client-BHaLyky8.js +1162 -0
- package/build/server/__ssr_build/assets/{client--HXec13w.js → client-BogEWrwz.js} +10 -6
- package/build/server/__ssr_build/assets/{client-BqW9rGyi.js → client-DXOHI3cC.js} +2994 -4866
- package/build/server/__ssr_build/assets/{dropdown-menu-D2YyT3lP.js → dropdown-menu-CnDgV_JY.js} +7 -10
- package/build/server/__ssr_build/assets/{entry.rsc-Cg_DxYkh.js → entry.rsc-aOU-YPkj.js} +1 -1
- package/build/server/__ssr_build/assets/{index-PpqpVA51.js → index-B6ajh-UP.js} +1 -1
- package/build/server/__ssr_build/assets/index-BPd5y8T-.js +76 -0
- package/build/server/__ssr_build/assets/{button-C_-b_vqm.js → index-By9m5mBe.js} +3295 -3195
- package/build/server/__ssr_build/assets/index-Ch7b9Ofo.js +37 -0
- package/build/server/__ssr_build/assets/{index-B-gno69w.js → index-Cw6b1mnl.js} +8 -7
- package/build/server/__ssr_build/assets/{index-DBc0nhEL.js → index-kCa2P0Xn.js} +4 -75
- package/build/server/__ssr_build/assets/{index-Dtw6X3NW.js → index-tFzyztyE.js} +2 -2
- package/build/server/__ssr_build/assets/{layout-CPnSx9PI.js → layout-CC-HJHWR.js} +13 -11
- package/build/server/__ssr_build/assets/{mdx-bmeV1kyx.js → mdx-D9VFmsYC.js} +1 -1
- package/build/server/__ssr_build/assets/{page-BwoghW3K.js → page-BVUd9aDy.js} +10 -8
- package/build/server/__ssr_build/assets/{page-HxttullC.js → page-C_wQzy3_.js} +13 -11
- package/build/server/__ssr_build/assets/popover-CzQgoguQ.js +321 -0
- package/build/server/__ssr_build/assets/{root-CS7F-km4.js → root-BmMc6_zA.js} +1 -1
- package/build/server/__ssr_build/assets/route-CNYc37pV.js +860 -0
- package/build/server/__ssr_build/assets/{spinner-BXcLlTNs.js → select-B8QQSB6X.js} +10 -25
- package/build/server/__ssr_build/assets/{separator-8UA_ceSq.js → separator-C601eKPH.js} +2 -2
- package/build/server/__ssr_build/assets/{sidebar-BzNOZeBO.js → sidebar-C6fHDjcx.js} +237 -65
- package/build/server/__ssr_build/assets/{site-header-CXHKSzqk.js → site-header-Bmsr3a30.js} +2 -2
- package/build/server/__ssr_build/assets/spinner-D5zAJQcS.js +19 -0
- package/build/server/__ssr_build/assets/{tooltip-DZ4WdJt-.js → tooltip-B3A57zPO.js} +1211 -1214
- package/build/server/__ssr_build/assets/{use-sync-TRS0zL-Y.js → use-sync-DTZgOM1O.js} +259 -1498
- package/build/server/__ssr_build/assets/{yaml-BEdFfhvc.js → yaml-xJU1Ur4O.js} +1 -1
- package/build/server/__ssr_build/index.js +31 -15
- package/build/server/__vite_rsc_assets_manifest.js +213 -133
- package/build/server/assets/{actions-C92yn6jE.js → actions-BbMzIy5J.js} +2 -2
- package/build/server/assets/{actions-CWWFIcb1.js → actions-CjWBMAed.js} +2 -2
- package/build/server/assets/{actions-DZdN0IBq.js → actions-cRzXiMyR.js} +2 -2
- package/build/server/assets/{config-Cb909uq6.js → config-Dka4Bvz4.js} +10 -10
- package/build/server/assets/{layout-CRw_6FCt.js → layout-CIIfFN0v.js} +2 -2
- package/build/server/assets/{page-zlF_Ew1s.js → page-pyqagPXb.js} +2 -2
- package/build/server/assets/root-B0B6-NU5.css +1 -0
- package/build/server/assets/{root-CVOXO6T9.js → root-D1ebFoST.js} +1 -1
- package/build/server/assets/{route-o-6k10r9.js → route-C7QEArEP.js} +12571 -4431
- package/build/server/index.js +40 -15
- package/dist/bin.mjs +4 -4
- package/dist/package.mjs +1 -1
- package/package.json +36 -18
- package/build/client/assets/actions-DkbV2Z0p.js +0 -1
- package/build/client/assets/actions-DpkI7OTF.js +0 -1
- package/build/client/assets/badge-CZkdLoIP.js +0 -1
- package/build/client/assets/button-Bm94vje1.js +0 -41
- package/build/client/assets/client-BWBqEatf.js +0 -1
- package/build/client/assets/client-Crg-pMcu.js +0 -1
- package/build/client/assets/dropdown-menu-EF-sTINr.js +0 -1
- package/build/client/assets/entry.rsc-D51PwnQL.js +0 -1
- package/build/client/assets/index-CQRgqbuL.js +0 -1
- package/build/client/assets/index-DOs5iMXj.js +0 -1
- package/build/client/assets/index-DTzAH5JX.js +0 -1
- package/build/client/assets/layout-CnpYRqF0.js +0 -1
- package/build/client/assets/page-DOzl4Kpa.js +0 -1
- package/build/client/assets/page-uNpJU_rv.js +0 -1
- package/build/client/assets/root-D3NoAGI1.js +0 -1
- package/build/client/assets/root-z8crlXSh.css +0 -1
- package/build/client/assets/separator-tWFpvpUX.js +0 -1
- package/build/client/assets/sidebar-BBYit8gY.js +0 -12
- package/build/client/assets/spinner-BdPhtfsc.js +0 -1
- package/build/client/assets/tooltip-Dvh-iHDG.js +0 -16
- package/build/client/assets/use-sync-ZgcwUdu_.js +0 -9
- package/build/server/assets/root-z8crlXSh.css +0 -1
- /package/build/server/__ssr_build/assets/{root-D-Y-rGw5.js → root-S8l7oX7x.js} +0 -0
- /package/build/server/assets/{root-dGb6ch_9.js → root-DRYtk85G.js} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{r as d,j as F,a as hn,R as kt,k as mr}from"./react-CzFdRS7Y.js";const gn=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const pr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const Ft=e=>{const t=hr(e);return t.charAt(0).toUpperCase()+t.slice(1)};var gr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const vr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const br=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>d.createElement("svg",{ref:c,...gr,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gn("lucide",o),...!s&&!vr(a)&&{"aria-hidden":"true"},...a},[...i.map(([l,u])=>d.createElement(l,u)),...Array.isArray(s)?s:[s]]));const vn=(e,t)=>{const n=d.forwardRef(({className:r,...o},s)=>d.createElement(br,{ref:s,iconNode:t,className:gn(`lucide-${pr(Ft(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ft(e),n};const yr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ma=vn("chevron-right",yr);const wr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pa=vn("x",wr);function at(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function ha(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,c=d.useMemo(()=>a,Object.values(a));return F.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function xr(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),c=n.length;n=[...n,i];const l=f=>{const{scope:h,children:p,...v}=f,m=h?.[e]?.[c]||a,g=d.useMemo(()=>v,Object.values(v));return F.jsx(m.Provider,{value:g,children:p})};l.displayName=s+"Provider";function u(f,h){const p=h?.[e]?.[c]||a,v=d.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[l,u]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const c=a?.[e]||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Sr(o,...t)]}function Sr(...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(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(s)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function zt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function At(...e){return t=>{let n=!1;const r=e.map(o=>{const s=zt(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():zt(e[o],null)}}}}function Ee(...e){return d.useCallback(At(...e),e)}function Cr(e){const t=Er(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(kr);if(c){const l=c.props.children,u=a.map(f=>f===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:f);return F.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,u):null})}return F.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Er(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Rr(o),a=Ar(s,o.props);return o.type!==d.Fragment&&(a.ref=r?At(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bn=Symbol("radix.slottable");function ga(e){const t=({children:n})=>F.jsx(F.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=bn,t}function kr(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bn}function Ar(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Rr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=Pr.reduce((e,t)=>{const n=Cr(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),F.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Or(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}function Se(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function Nr(e,t=globalThis?.document){const n=Se(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Tr="DismissableLayer",yt="dismissableLayer.update",Lr="dismissableLayer.pointerDownOutside",Mr="dismissableLayer.focusOutside",_t,yn=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=d.useContext(yn),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),v=Ee(t,R=>f(R)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,w=x>=b,E=zr(R=>{const S=R.target,N=[...l.branches].some(L=>L.contains(S));!w||N||(o?.(R),i?.(R),R.defaultPrevented||a?.())},h),P=_r(R=>{const S=R.target;[...l.branches].some(L=>L.contains(S))||(s?.(R),i?.(R),R.defaultPrevented||a?.())},h);return Nr(R=>{x===l.layers.size-1&&(r?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),d.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(_t=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Wt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=_t)}},[u,h,n,l]),d.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Wt())},[u,l]),d.useEffect(()=>{const R=()=>p({});return document.addEventListener(yt,R),()=>document.removeEventListener(yt,R)},[]),F.jsx(le.div,{...c,ref:v,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:at(e.onFocusCapture,P.onFocusCapture),onBlurCapture:at(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:at(e.onPointerDownCapture,E.onPointerDownCapture)})});Dr.displayName=Tr;var Ir="DismissableLayerBranch",Fr=d.forwardRef((e,t)=>{const n=d.useContext(yn),r=d.useRef(null),o=Ee(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),F.jsx(le.div,{...e,ref:o})});Fr.displayName=Ir;function zr(e,t=globalThis?.document){const n=Se(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){wn(Lr,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _r(e,t=globalThis?.document){const n=Se(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&wn(Mr,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wt(){const e=new CustomEvent(yt);document.dispatchEvent(e)}function wn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Or(o,s):o.dispatchEvent(s)}var ct=0;function va(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$t()),document.body.insertAdjacentElement("beforeend",e[1]??$t()),ct++,()=>{ct===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ct--}},[])}function $t(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lt="focusScope.autoFocusOnMount",ut="focusScope.autoFocusOnUnmount",jt={bubbles:!1,cancelable:!0},Wr="FocusScope",$r=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=d.useState(null),l=Se(o),u=Se(s),f=d.useRef(null),h=Ee(t,m=>c(m)),p=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let m=function(C){if(p.paused||!a)return;const w=C.target;a.contains(w)?f.current=w:se(f.current,{select:!0})},g=function(C){if(p.paused||!a)return;const w=C.relatedTarget;w!==null&&(a.contains(w)||se(f.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&se(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),d.useEffect(()=>{if(a){Vt.add(p);const m=document.activeElement;if(!a.contains(m)){const b=new CustomEvent(lt,jt);a.addEventListener(lt,l),a.dispatchEvent(b),b.defaultPrevented||(jr(Gr(xn(a)),{select:!0}),document.activeElement===m&&se(a))}return()=>{a.removeEventListener(lt,l),setTimeout(()=>{const b=new CustomEvent(ut,jt);a.addEventListener(ut,u),a.dispatchEvent(b),b.defaultPrevented||se(m??document.body,{select:!0}),a.removeEventListener(ut,u),Vt.remove(p)},0)}}},[a,l,u,p]);const v=d.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(g&&b){const x=m.currentTarget,[C,w]=Br(x);C&&w?!m.shiftKey&&b===w?(m.preventDefault(),n&&se(C,{select:!0})):m.shiftKey&&b===C&&(m.preventDefault(),n&&se(w,{select:!0})):b===x&&m.preventDefault()}},[n,r,p.paused]);return F.jsx(le.div,{tabIndex:-1,...i,ref:h,onKeyDown:v})});$r.displayName=Wr;function jr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(se(r,{select:t}),document.activeElement!==n)return}function Br(e){const t=xn(e),n=Bt(t,e),r=Bt(t.reverse(),e);return[n,r]}function xn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bt(e,t){for(const n of e)if(!Vr(n,{upTo:t}))return n}function Vr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Hr(e){return e instanceof HTMLInputElement&&"select"in e}function se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Hr(e)&&t&&e.select()}}var Vt=Ur();function Ur(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ht(e,t),e.unshift(t)},remove(t){e=Ht(e,t),e[0]?.resume()}}}function Ht(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Gr(e){return e.filter(t=>t.tagName!=="A")}var ie=globalThis?.document?d.useLayoutEffect:()=>{},Yr=kt[" useId ".trim().toString()]||(()=>{}),Xr=0;function ba(e){const[t,n]=d.useState(Yr());return ie(()=>{n(r=>r??String(Xr++))},[e]),e||(t?`radix-${t}`:"")}const Kr=["top","right","bottom","left"],ae=Math.min,G=Math.max,Ze=Math.round,We=Math.floor,Q=e=>({x:e,y:e}),Zr={left:"right",right:"left",bottom:"top",top:"bottom"},qr={start:"end",end:"start"};function wt(e,t,n){return G(e,ae(t,n))}function ne(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function ke(e){return e.split("-")[1]}function Rt(e){return e==="x"?"y":"x"}function Pt(e){return e==="y"?"height":"width"}const Qr=new Set(["top","bottom"]);function q(e){return Qr.has(re(e))?"y":"x"}function Ot(e){return Rt(q(e))}function Jr(e,t,n){n===void 0&&(n=!1);const r=ke(e),o=Ot(e),s=Pt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qe(i)),[i,qe(i)]}function eo(e){const t=qe(e);return[xt(e),t,xt(t)]}function xt(e){return e.replace(/start|end/g,t=>qr[t])}const Ut=["left","right"],Gt=["right","left"],to=["top","bottom"],no=["bottom","top"];function ro(e,t,n){switch(e){case"top":case"bottom":return n?t?Gt:Ut:t?Ut:Gt;case"left":case"right":return t?to:no;default:return[]}}function oo(e,t,n,r){const o=ke(e);let s=ro(re(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(xt)))),s}function qe(e){return e.replace(/left|right|bottom|top/g,t=>Zr[t])}function so(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sn(e){return typeof e!="number"?so(e):{top:e,right:e,bottom:e,left:e}}function Qe(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 Yt(e,t,n){let{reference:r,floating:o}=e;const s=q(t),i=Ot(t),a=Pt(i),c=re(t),l=s==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(ke(t)){case"start":p[i]-=h*(n&&l?-1:1);break;case"end":p[i]+=h*(n&&l?-1:1);break}return p}const io=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Yt(l,r,c),h=r,p={},v=0;for(let m=0;m<a.length;m++){const{name:g,fn:b}=a[m],{x,y:C,data:w,reset:E}=await b({x:u,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:l,platform:i,elements:{reference:e,floating:t}});u=x??u,f=C??f,p={...p,[g]:{...p[g],...w}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:f}=Yt(l,h,c)),m=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:p}};async function De(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=ne(t,e),v=Sn(p),g=a[h?f==="floating"?"reference":"floating":f],b=Qe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),x=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},E=Qe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:C,strategy:c}):x);return{top:(b.top-E.top+v.top)/w.y,bottom:(E.bottom-b.bottom+v.bottom)/w.y,left:(b.left-E.left+v.left)/w.x,right:(E.right-b.right+v.right)/w.x}}const ao=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=ne(e,t)||{};if(l==null)return{};const f=Sn(u),h={x:n,y:r},p=Ot(o),v=Pt(p),m=await i.getDimensions(l),g=p==="y",b=g?"top":"left",x=g?"bottom":"right",C=g?"clientHeight":"clientWidth",w=s.reference[v]+s.reference[p]-h[p]-s.floating[v],E=h[p]-s.reference[p],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=P?P[C]:0;(!R||!await(i.isElement==null?void 0:i.isElement(P)))&&(R=a.floating[C]||s.floating[v]);const S=w/2-E/2,N=R/2-m[v]/2-1,L=ae(f[b],N),z=ae(f[x],N),_=L,W=R-m[v]-z,D=R/2-m[v]/2+S,$=wt(_,D,W),T=!c.arrow&&ke(o)!=null&&D!==$&&s.reference[v]/2-(D<_?L:z)-m[v]/2<0,M=T?D<_?D-_:D-W:0;return{[p]:h[p]+M,data:{[p]:$,centerOffset:D-$-M,...T&&{alignmentOffset:M}},reset:T}}}),co=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=ne(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=re(o),x=q(a),C=re(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(C||!m?[qe(a)]:eo(a)),P=v!=="none";!h&&P&&E.push(...oo(a,m,v,w));const R=[a,...E],S=await De(t,g),N=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&N.push(S[b]),f){const D=Jr(o,i,w);N.push(S[D[0]],S[D[1]])}if(L=[...L,{placement:o,overflows:N}],!N.every(D=>D<=0)){var z,_;const D=(((z=s.flip)==null?void 0:z.index)||0)+1,$=R[D];if($&&(!(f==="alignment"?x!==q($):!1)||L.every(y=>q(y.placement)===x?y.overflows[0]>0:!0)))return{data:{index:D,overflows:L},reset:{placement:$}};let T=(_=L.filter(M=>M.overflows[0]<=0).sort((M,y)=>M.overflows[1]-y.overflows[1])[0])==null?void 0:_.placement;if(!T)switch(p){case"bestFit":{var W;const M=(W=L.filter(y=>{if(P){const j=q(y.placement);return j===x||j==="y"}return!0}).map(y=>[y.placement,y.overflows.filter(j=>j>0).reduce((j,U)=>j+U,0)]).sort((y,j)=>y[1]-j[1])[0])==null?void 0:W[0];M&&(T=M);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Xt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kt(e){return Kr.some(t=>e[t]>=0)}const lo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ne(e,t);switch(r){case"referenceHidden":{const s=await De(t,{...o,elementContext:"reference"}),i=Xt(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Kt(i)}}}case"escaped":{const s=await De(t,{...o,altBoundary:!0}),i=Xt(s,n.floating);return{data:{escapedOffsets:i,escaped:Kt(i)}}}default:return{}}}}},Cn=new Set(["left","top"]);async function uo(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=re(n),a=ke(n),c=q(n)==="y",l=Cn.has(i)?-1:1,u=s&&c?-1:1,f=ne(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(p=a==="end"?v*-1:v),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}const fo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await uo(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},mo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:g=>{let{x:b,y:x}=g;return{x:b,y:x}}},...c}=ne(e,t),l={x:n,y:r},u=await De(t,c),f=q(re(o)),h=Rt(f);let p=l[h],v=l[f];if(s){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=p+u[g],C=p-u[b];p=wt(x,p,C)}if(i){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=v+u[g],C=v-u[b];v=wt(x,v,C)}const m=a.fn({...t,[h]:p,[f]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[f]:i}}}}}},po=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=ne(e,t),u={x:n,y:r},f=q(o),h=Rt(f);let p=u[h],v=u[f];const m=ne(a,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const C=h==="y"?"height":"width",w=s.reference[h]-s.floating[C]+g.mainAxis,E=s.reference[h]+s.reference[C]-g.mainAxis;p<w?p=w:p>E&&(p=E)}if(l){var b,x;const C=h==="y"?"width":"height",w=Cn.has(re(o)),E=s.reference[f]-s.floating[C]+(w&&((b=i.offset)==null?void 0:b[f])||0)+(w?0:g.crossAxis),P=s.reference[f]+s.reference[C]+(w?0:((x=i.offset)==null?void 0:x[f])||0)-(w?g.crossAxis:0);v<E?v=E:v>P&&(v=P)}return{[h]:p,[f]:v}}}},ho=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=ne(e,t),u=await De(t,l),f=re(o),h=ke(o),p=q(o)==="y",{width:v,height:m}=s.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,g=h==="end"?"top":"bottom");const x=m-u.top-u.bottom,C=v-u.left-u.right,w=ae(m-u[g],x),E=ae(v-u[b],C),P=!t.middlewareData.shift;let R=w,S=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),P&&!h){const L=G(u.left,0),z=G(u.right,0),_=G(u.top,0),W=G(u.bottom,0);p?S=v-2*(L!==0||z!==0?L+z:G(u.left,u.right)):R=m-2*(_!==0||W!==0?_+W:G(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:R});const N=await i.getDimensions(a.floating);return v!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function nt(){return typeof window<"u"}function Ae(e){return En(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(En(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function En(e){return nt()?e instanceof Node||e instanceof Y(e).Node:!1}function X(e){return nt()?e instanceof Element||e instanceof Y(e).Element:!1}function J(e){return nt()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function Zt(e){return!nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const go=new Set(["inline","contents"]);function Fe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!go.has(o)}const vo=new Set(["table","td","th"]);function bo(e){return vo.has(Ae(e))}const yo=[":popover-open",":modal"];function rt(e){return yo.some(t=>{try{return e.matches(t)}catch{return!1}})}const wo=["transform","translate","scale","rotate","perspective"],xo=["transform","translate","scale","rotate","perspective","filter"],So=["paint","layout","strict","content"];function Nt(e){const t=Tt(),n=X(e)?K(e):e;return wo.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)||xo.some(r=>(n.willChange||"").includes(r))||So.some(r=>(n.contain||"").includes(r))}function Co(e){let t=ce(e);for(;J(t)&&!Ce(t);){if(Nt(t))return t;if(rt(t))return null;t=ce(t)}return null}function Tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Eo=new Set(["html","body","#document"]);function Ce(e){return Eo.has(Ae(e))}function K(e){return Y(e).getComputedStyle(e)}function ot(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ce(e){if(Ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zt(e)&&e.host||ee(e);return Zt(t)?t.host:t}function kn(e){const t=ce(e);return Ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:J(t)&&Fe(t)?t:kn(t)}function Ie(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kn(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Y(o);if(s){const a=St(i);return t.concat(i,i.visualViewport||[],Fe(o)?o:[],a&&n?Ie(a):[])}return t.concat(o,Ie(o,[],n))}function St(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function An(e){const t=K(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=J(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ze(n)!==s||Ze(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Lt(e){return X(e)?e:e.contextElement}function we(e){const t=Lt(e);if(!J(t))return Q(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=An(t);let i=(s?Ze(n.width):n.width)/r,a=(s?Ze(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ko=Q(0);function Rn(e){const t=Y(e);return!Tt()||!t.visualViewport?ko:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ao(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function de(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Lt(e);let i=Q(1);t&&(r?X(r)&&(i=we(r)):i=we(e));const a=Ao(s,n,r)?Rn(s):Q(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(s){const h=Y(s),p=r&&X(r)?Y(r):r;let v=h,m=St(v);for(;m&&r&&p!==v;){const g=we(m),b=m.getBoundingClientRect(),x=K(m),C=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*g.x,w=b.top+(m.clientTop+parseFloat(x.paddingTop))*g.y;c*=g.x,l*=g.y,u*=g.x,f*=g.y,c+=C,l+=w,v=Y(m),m=St(v)}}return Qe({width:u,height:f,x:c,y:l})}function st(e,t){const n=ot(e).scrollLeft;return t?t.left+n:de(ee(e)).left+n}function Pn(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-st(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ro(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ee(r),a=t?rt(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=Q(1);const u=Q(0),f=J(r);if((f||!f&&!s)&&((Ae(r)!=="body"||Fe(i))&&(c=ot(r)),J(r))){const p=de(r);l=we(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=i&&!f&&!s?Pn(i,c):Q(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}}function Po(e){return Array.from(e.getClientRects())}function Oo(e){const t=ee(e),n=ot(e),r=e.ownerDocument.body,o=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+st(e);const a=-n.scrollTop;return K(r).direction==="rtl"&&(i+=G(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const qt=25;function No(e,t){const n=Y(e),r=ee(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const u=Tt();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=st(r);if(l<=0){const u=r.ownerDocument,f=u.body,h=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-p);v<=qt&&(s-=v)}else l<=qt&&(s+=l);return{width:s,height:i,x:a,y:c}}const To=new Set(["absolute","fixed"]);function Lo(e,t){const n=de(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=J(e)?we(e):Q(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Qt(e,t,n){let r;if(t==="viewport")r=No(e,n);else if(t==="document")r=Oo(ee(e));else if(X(t))r=Lo(t,n);else{const o=Rn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qe(r)}function On(e,t){const n=ce(e);return n===t||!X(n)||Ce(n)?!1:K(n).position==="fixed"||On(n,t)}function Mo(e,t){const n=t.get(e);if(n)return n;let r=Ie(e,[],!1).filter(a=>X(a)&&Ae(a)!=="body"),o=null;const s=K(e).position==="fixed";let i=s?ce(e):e;for(;X(i)&&!Ce(i);){const a=K(i),c=Nt(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&To.has(o.position)||Fe(i)&&!c&&On(e,i))?r=r.filter(u=>u!==i):o=a,i=ce(i)}return t.set(e,r),r}function Do(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?rt(t)?[]:Mo(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,u)=>{const f=Qt(t,u,o);return l.top=G(f.top,l.top),l.right=ae(f.right,l.right),l.bottom=ae(f.bottom,l.bottom),l.left=G(f.left,l.left),l},Qt(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Io(e){const{width:t,height:n}=An(e);return{width:t,height:n}}function Fo(e,t,n){const r=J(t),o=ee(t),s=n==="fixed",i=de(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Q(0);function l(){c.x=st(o)}if(r||!r&&!s)if((Ae(t)!=="body"||Fe(o))&&(a=ot(t)),r){const p=de(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&l();s&&!r&&o&&l();const u=o&&!r&&!s?Pn(o,a):Q(0),f=i.left+a.scrollLeft-c.x-u.x,h=i.top+a.scrollTop-c.y-u.y;return{x:f,y:h,width:i.width,height:i.height}}function dt(e){return K(e).position==="static"}function Jt(e,t){if(!J(e)||K(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Nn(e,t){const n=Y(e);if(rt(e))return n;if(!J(e)){let o=ce(e);for(;o&&!Ce(o);){if(X(o)&&!dt(o))return o;o=ce(o)}return n}let r=Jt(e,t);for(;r&&bo(r)&&dt(r);)r=Jt(r,t);return r&&Ce(r)&&dt(r)&&!Nt(r)?n:r||Co(e)||n}const zo=async function(e){const t=this.getOffsetParent||Nn,n=this.getDimensions,r=await n(e.floating);return{reference:Fo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _o(e){return K(e).direction==="rtl"}const Wo={convertOffsetParentRelativeRectToViewportRelativeRect:Ro,getDocumentElement:ee,getClippingRect:Do,getOffsetParent:Nn,getElementRects:zo,getClientRects:Po,getDimensions:Io,getScale:we,isElement:X,isRTL:_o};function Tn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $o(e,t){let n=null,r;const o=ee(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=l;if(a||t(),!h||!p)return;const v=We(f),m=We(o.clientWidth-(u+h)),g=We(o.clientHeight-(f+p)),b=We(u),C={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:G(0,ae(1,c))||1};let w=!0;function E(P){const R=P[0].intersectionRatio;if(R!==c){if(!w)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Tn(l,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return i(!0),s}function jo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Lt(e),u=o||s?[...l?Ie(l):[],...Ie(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const f=l&&a?$o(l,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(b=>{let[x]=b;x&&x.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let v,m=c?de(e):null;c&&g();function g(){const b=de(e);m&&!Tn(m,b)&&n(),m=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f?.(),(b=p)==null||b.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const Bo=fo,Vo=mo,Ho=co,Uo=ho,Go=lo,en=ao,Yo=po,Xo=(e,t,n)=>{const r=new Map,o={platform:Wo,...n},s={...o.platform,_c:r};return io(e,t,{...o,platform:s})};var Ko=typeof document<"u",Zo=function(){},Ye=Ko?d.useLayoutEffect:Zo;function Je(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(!Je(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Je(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ln(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tn(e,t){const n=Ln(e);return Math.round(t*n)/n}function ft(e){const t=d.useRef(e);return Ye(()=>{t.current=e}),t}function qo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=d.useState(r);Je(h,r)||p(r);const[v,m]=d.useState(null),[g,b]=d.useState(null),x=d.useCallback(y=>{y!==P.current&&(P.current=y,m(y))},[]),C=d.useCallback(y=>{y!==R.current&&(R.current=y,b(y))},[]),w=s||v,E=i||g,P=d.useRef(null),R=d.useRef(null),S=d.useRef(u),N=c!=null,L=ft(c),z=ft(o),_=ft(l),W=d.useCallback(()=>{if(!P.current||!R.current)return;const y={placement:t,strategy:n,middleware:h};z.current&&(y.platform=z.current),Xo(P.current,R.current,y).then(j=>{const U={...j,isPositioned:_.current!==!1};D.current&&!Je(S.current,U)&&(S.current=U,hn.flushSync(()=>{f(U)}))})},[h,t,n,z,_]);Ye(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(y=>({...y,isPositioned:!1})))},[l]);const D=d.useRef(!1);Ye(()=>(D.current=!0,()=>{D.current=!1}),[]),Ye(()=>{if(w&&(P.current=w),E&&(R.current=E),w&&E){if(L.current)return L.current(w,E,W);W()}},[w,E,W,L,N]);const $=d.useMemo(()=>({reference:P,floating:R,setReference:x,setFloating:C}),[x,C]),T=d.useMemo(()=>({reference:w,floating:E}),[w,E]),M=d.useMemo(()=>{const y={position:n,left:0,top:0};if(!T.floating)return y;const j=tn(T.floating,u.x),U=tn(T.floating,u.y);return a?{...y,transform:"translate("+j+"px, "+U+"px)",...Ln(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:U}},[n,a,T.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:W,refs:$,elements:T,floatingStyles:M}),[u,W,$,T,M])}const Qo=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?en({element:r.current,padding:o}).fn(n):{}:r?en({element:r,padding:o}).fn(n):{}}}},Jo=(e,t)=>({...Bo(e),options:[e,t]}),es=(e,t)=>({...Vo(e),options:[e,t]}),ts=(e,t)=>({...Yo(e),options:[e,t]}),ns=(e,t)=>({...Ho(e),options:[e,t]}),rs=(e,t)=>({...Uo(e),options:[e,t]}),os=(e,t)=>({...Go(e),options:[e,t]}),ss=(e,t)=>({...Qo(e),options:[e,t]});var is="Arrow",Mn=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return F.jsx(le.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:F.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mn.displayName=is;var as=Mn;function cs(e){const[t,n]=d.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Mt="Popper",[Dn,ya]=xr(Mt),[ls,In]=Dn(Mt),Fn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return F.jsx(ls,{scope:t,anchor:r,onAnchorChange:o,children:n})};Fn.displayName=Mt;var zn="PopperAnchor",_n=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=In(zn,n),i=d.useRef(null),a=Ee(t,i),c=d.useRef(null);return d.useEffect(()=>{const l=c.current;c.current=r?.current||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:F.jsx(le.div,{...o,ref:a})});_n.displayName=zn;var Dt="PopperContent",[us,ds]=Dn(Dt),Wn=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=e,g=In(Dt,n),[b,x]=d.useState(null),C=Ee(t,I=>x(I)),[w,E]=d.useState(null),P=cs(w),R=P?.width??0,S=P?.height??0,N=r+(s!=="center"?"-"+s:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(l)?l:[l],_=z.length>0,W={padding:L,boundary:z.filter(ms),altBoundary:_},{refs:D,floatingStyles:$,placement:T,isPositioned:M,middlewareData:y}=qo({strategy:"fixed",placement:N,whileElementsMounted:(...I)=>jo(...I,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[Jo({mainAxis:o+S,alignmentAxis:i}),c&&es({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ts():void 0,...W}),c&&ns({...W}),rs({...W,apply:({elements:I,rects:Te,availableWidth:me,availableHeight:pe})=>{const{width:Le,height:he}=Te.reference,_e=I.floating.style;_e.setProperty("--radix-popper-available-width",`${me}px`),_e.setProperty("--radix-popper-available-height",`${pe}px`),_e.setProperty("--radix-popper-anchor-width",`${Le}px`),_e.setProperty("--radix-popper-anchor-height",`${he}px`)}}),w&&ss({element:w,padding:a}),ps({arrowWidth:R,arrowHeight:S}),h&&os({strategy:"referenceHidden",...W})]}),[j,U]=Bn(T),Oe=Se(v);ie(()=>{M&&Oe?.()},[M,Oe]);const Ne=y.arrow?.x,V=y.arrow?.y,H=y.arrow?.centerOffset!==0,[fe,ze]=d.useState();return ie(()=>{b&&ze(window.getComputedStyle(b).zIndex)},[b]),F.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:M?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[y.transformOrigin?.x,y.transformOrigin?.y].join(" "),...y.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:F.jsx(us,{scope:n,placedSide:j,onArrowChange:E,arrowX:Ne,arrowY:V,shouldHideArrow:H,children:F.jsx(le.div,{"data-side":j,"data-align":U,...m,ref:C,style:{...m.style,animation:M?void 0:"none"}})})})});Wn.displayName=Dt;var $n="PopperArrow",fs={top:"bottom",right:"left",bottom:"top",left:"right"},jn=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ds($n,r),i=fs[s.placedSide];return F.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:F.jsx(as,{...o,ref:n,style:{...o.style,display:"block"}})})});jn.displayName=$n;function ms(e){return e!==null}var ps=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,u]=Bn(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(o.arrow?.x??0)+a/2,p=(o.arrow?.y??0)+c/2;let v="",m="";return l==="bottom"?(v=i?f:`${h}px`,m=`${-c}px`):l==="top"?(v=i?f:`${h}px`,m=`${r.floating.height+c}px`):l==="right"?(v=`${-c}px`,m=i?f:`${p}px`):l==="left"&&(v=`${r.floating.width+c}px`,m=i?f:`${p}px`),{data:{x:v,y:m}}}});function Bn(e){const[t,n="center"]=e.split("-");return[t,n]}var wa=Fn,xa=_n,Sa=Wn,Ca=jn,hs="Portal",gs=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);ie(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?mr.createPortal(F.jsx(le.div,{...r,ref:t}),i):null});gs.displayName=hs;var vs=kt[" useInsertionEffect ".trim().toString()]||ie;function Ea({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=bs({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=d.useRef(e!==void 0);d.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"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.`),u.current=a},[a,r])}const l=d.useCallback(u=>{if(a){const f=ys(u)?u(e):u;f!==e&&i.current?.(f)}else s(u)},[a,e,s,i]);return[c,l]}function bs({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return vs(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function ys(e){return typeof e=="function"}var ws=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"}),xs="VisuallyHidden",Vn=d.forwardRef((e,t)=>F.jsx(le.span,{...e,ref:t,style:{...ws,...e.style}}));Vn.displayName=xs;var ka=Vn,Ss=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ge=new WeakMap,$e=new WeakMap,je={},mt=0,Hn=function(e){return e&&(e.host||Hn(e.parentNode))},Cs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Es=function(e,t,n,r){var o=Cs(t,Array.isArray(e)?e:[e]);je[n]||(je[n]=new WeakMap);var s=je[n],i=[],a=new Set,c=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))u(h);else try{var p=h.getAttribute(r),v=p!==null&&p!=="false",m=(ge.get(h)||0)+1,g=(s.get(h)||0)+1;ge.set(h,m),s.set(h,g),i.push(h),m===1&&v&&$e.set(h,!0),g===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),a.clear(),mt++,function(){i.forEach(function(f){var h=ge.get(f)-1,p=s.get(f)-1;ge.set(f,h),s.set(f,p),h||($e.has(f)||f.removeAttribute(r),$e.delete(f)),p||f.removeAttribute(n)}),mt--,mt||(ge=new WeakMap,ge=new WeakMap,$e=new WeakMap,je={})}},Aa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ss(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Es(r,o,n,"aria-hidden")):function(){return null}},Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Z.apply(this,arguments)};function Un(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ks(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Xe="right-scroll-bar-position",Ke="width-before-scroll-bar",As="with-scroll-bars-hidden",Rs="--removed-body-scroll-bar-size";function pt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ps(e,t){var n=d.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Os=typeof window<"u"?d.useLayoutEffect:d.useEffect,nn=new WeakMap;function Ns(e,t){var n=Ps(null,function(r){return e.forEach(function(o){return pt(o,r)})});return Os(function(){var r=nn.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||pt(a,null)}),s.forEach(function(a){o.has(a)||pt(a,i)})}nn.set(n,e)},[e]),n}function Ts(e){return e}function Ls(e,t){t===void 0&&(t=Ts);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var u=i;i=[],u.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){i.push(u),l()},filter:function(u){return i=i.filter(u),n}}}};return o}function Ms(e){e===void 0&&(e={});var t=Ls(null);return t.options=Z({async:!0,ssr:!1},e),t}var Gn=function(e){var t=e.sideCar,n=Un(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Z({},n))};Gn.isSideCarExport=!0;function Ds(e,t){return e.useMedium(t),Gn}var Yn=Ms(),ht=function(){},it=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:ht,onWheelCapture:ht,onTouchMoveCapture:ht}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,v=e.noIsolation,m=e.inert,g=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,C=e.gapMode,w=Un(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,P=Ns([n,t]),R=Z(Z({},w),o);return d.createElement(d.Fragment,null,u&&d.createElement(E,{sideCar:Yn,removeScrollBar:l,shards:f,noRelative:p,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?d.cloneElement(d.Children.only(a),Z(Z({},R),{ref:P})):d.createElement(x,Z({},R,{className:c,ref:P}),a))});it.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};it.classNames={fullWidth:Ke,zeroRight:Xe};var Is=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Is();return t&&e.setAttribute("nonce",t),e}function zs(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _s(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ws=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Fs())&&(zs(t,n),_s(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$s=function(){var e=Ws();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xn=function(){var e=$s(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},js={left:0,top:0,right:0,gap:0},gt=function(e){return parseInt(e||"",10)||0},Bs=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gt(n),gt(r),gt(o)]},Vs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return js;var t=Bs(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Hs=Xn(),xe="data-scroll-locked",Us=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(As,` {
|
|
3
|
+
overflow: hidden `).concat(r,`;
|
|
4
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(xe,`] {
|
|
7
|
+
overflow: hidden `).concat(r,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
+
padding-left: `.concat(o,`px;
|
|
11
|
+
padding-top: `).concat(s,`px;
|
|
12
|
+
padding-right: `).concat(i,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(Xe,` {
|
|
20
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(Ke,` {
|
|
24
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(Xe," .").concat(Xe,` {
|
|
28
|
+
right: 0 `).concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(Ke," .").concat(Ke,` {
|
|
32
|
+
margin-right: 0 `).concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(xe,`] {
|
|
36
|
+
`).concat(Rs,": ").concat(a,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},rn=function(){var e=parseInt(document.body.getAttribute(xe)||"0",10);return isFinite(e)?e:0},Gs=function(){d.useEffect(function(){return document.body.setAttribute(xe,(rn()+1).toString()),function(){var e=rn()-1;e<=0?document.body.removeAttribute(xe):document.body.setAttribute(xe,e.toString())}},[])},Ys=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Gs();var s=d.useMemo(function(){return Vs(o)},[o]);return d.createElement(Hs,{styles:Us(s,!t,o,n?"":"!important")})},Ct=!1;if(typeof window<"u")try{var Be=Object.defineProperty({},"passive",{get:function(){return Ct=!0,!0}});window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch{Ct=!1}var ve=Ct?{passive:!1}:!1,Xs=function(e){return e.tagName==="TEXTAREA"},Kn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xs(e)&&n[t]==="visible")},Ks=function(e){return Kn(e,"overflowY")},Zs=function(e){return Kn(e,"overflowX")},on=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Zn(e,r);if(o){var s=qn(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qs=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Qs=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Zn=function(e,t){return e==="v"?Ks(t):Zs(t)},qn=function(e,t){return e==="v"?qs(t):Qs(t)},Js=function(e,t){return e==="h"&&t==="rtl"?-1:1},ei=function(e,t,n,r,o){var s=Js(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,u=i>0,f=0,h=0;do{if(!a)break;var p=qn(e,a),v=p[0],m=p[1],g=p[2],b=m-g-s*v;(v||b)&&Zn(e,a)&&(f+=b,h+=v);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Ve=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sn=function(e){return[e.deltaX,e.deltaY]},an=function(e){return e&&"current"in e?e.current:e},ti=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ni=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},ri=0,be=[];function oi(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(ri++)[0],s=d.useState(Xn)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ks([e.lockRef.current],(e.shards||[]).map(an),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var b=Ve(m),x=n.current,C="deltaX"in m?m.deltaX:x[0]-b[0],w="deltaY"in m?m.deltaY:x[1]-b[1],E,P=m.target,R=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in m&&R==="h"&&P.type==="range")return!1;var S=window.getSelection(),N=S&&S.anchorNode,L=N?N===P||N.contains(P):!1;if(L)return!1;var z=on(R,P);if(!z)return!0;if(z?E=R:(E=R==="v"?"h":"v",z=on(R,P)),!z)return!1;if(!r.current&&"changedTouches"in m&&(C||w)&&(r.current=E),!E)return!0;var _=r.current||E;return ei(_,g,m,_==="h"?C:w)},[]),c=d.useCallback(function(m){var g=m;if(!(!be.length||be[be.length-1]!==s)){var b="deltaY"in g?sn(g):Ve(g),x=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&ti(E.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var C=(i.current.shards||[]).map(an).filter(Boolean).filter(function(E){return E.contains(g.target)}),w=C.length>0?a(g,C[0]):!i.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),l=d.useCallback(function(m,g,b,x){var C={name:m,delta:g,target:b,should:x,shadowParent:si(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),u=d.useCallback(function(m){n.current=Ve(m),r.current=void 0},[]),f=d.useCallback(function(m){l(m.type,sn(m),m.target,a(m,e.lockRef.current))},[]),h=d.useCallback(function(m){l(m.type,Ve(m),m.target,a(m,e.lockRef.current))},[]);d.useEffect(function(){return be.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ve),document.addEventListener("touchmove",c,ve),document.addEventListener("touchstart",u,ve),function(){be=be.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,ve),document.removeEventListener("touchmove",c,ve),document.removeEventListener("touchstart",u,ve)}},[]);var p=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(s,{styles:ni(o)}):null,p?d.createElement(Ys,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function si(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ii=Ds(Yn,oi);var ai=d.forwardRef(function(e,t){return d.createElement(it,Z({},e,{ref:t,sideCar:ii}))});ai.classNames=it.classNames;function Qn(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=Qn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qn(e))&&(r&&(r+=" "),r+=t);return r}const ci=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},li=(e,t)=>({classGroupId:e,validator:t}),er=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),et="-",cn=[],ui="arbitrary..",di=e=>{const t=mi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return fi(i);const a=i.split(et),c=a[0]===""&&a.length>1?1:0;return tr(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=r[i],l=n[i];return c?l?ci(l,c):c:l||cn}return n[i]||cn}}},tr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const l=tr(e,t+1,s);if(l)return l}const i=n.validators;if(i===null)return;const a=t===0?e.join(et):e.slice(t).join(et),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(a))return u.classGroupId}},fi=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?ui+r:void 0})(),mi=e=>{const{theme:t,classGroups:n}=e;return pi(n,t)},pi=(e,t)=>{const n=er();for(const r in e){const o=e[r];It(o,n,r,t)}return n},It=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];hi(i,t,n,r)}},hi=(e,t,n,r)=>{if(typeof e=="string"){gi(e,t,n);return}if(typeof e=="function"){vi(e,t,n,r);return}bi(e,t,n,r)},gi=(e,t,n)=>{const r=e===""?t:nr(t,e);r.classGroupId=n},vi=(e,t,n,r)=>{if(yi(e)){It(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(li(n,e))},bi=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];It(c,nr(t,a),n,r)}},nr=(e,t)=>{let n=e;const r=t.split(et),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=er(),n.nextPart.set(i,a)),n=a}return n},yi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},Et="!",ln=":",xi=[],un=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Si=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,c=0,l;const u=o.length;for(let m=0;m<u;m++){const g=o[m];if(i===0&&a===0){if(g===ln){s.push(o.slice(c,m)),c=m+1;continue}if(g==="/"){l=m;continue}}g==="["?i++:g==="]"?i--:g==="("?a++:g===")"&&a--}const f=s.length===0?o:o.slice(c);let h=f,p=!1;f.endsWith(Et)?(h=f.slice(0,-1),p=!0):f.startsWith(Et)&&(h=f.slice(1),p=!0);const v=l&&l>c?l-c:void 0;return un(s,p,h,v)};if(t){const o=t+ln,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):un(xi,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Ci=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",c=t.has(i);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},Ei=e=>({cache:wi(e.cacheSize),parseClassName:Si(e),sortModifiers:Ci(e),...di(e)}),ki=/\s+/,Ai=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(ki);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:h,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:m}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let g=!!m,b=r(g?v.substring(0,m):v);if(!b){if(!g){c=u+(c.length>0?" "+c:c);continue}if(b=r(v),!b){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=h.length===0?"":h.length===1?h[0]:s(h).join(":"),C=p?x+Et:x,w=C+b;if(i.indexOf(w)>-1)continue;i.push(w);const E=o(b,g);for(let P=0;P<E.length;++P){const R=E[P];i.push(C+R)}c=u+(c.length>0?" "+c:c)}return c},Ri=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=rr(n))&&(o&&(o+=" "),o+=r);return o},rr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rr(e[r]))&&(n&&(n+=" "),n+=t);return n},Pi=(e,...t)=>{let n,r,o,s;const i=c=>{const l=t.reduce((u,f)=>f(u),e());return n=Ei(l),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const l=r(c);if(l)return l;const u=Ai(c,n);return o(c,u),u};return s=i,(...c)=>s(Ri(...c))},Oi=[],B=e=>{const t=n=>n[e]||Oi;return t.isThemeGetter=!0,t},or=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ni=/^\d+\/\d+$/,Ti=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Li=/\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$/,Mi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Di=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ii=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ye=e=>Ni.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>!!e&&Number.isInteger(Number(e)),vt=e=>e.endsWith("%")&&O(e.slice(0,-1)),te=e=>Ti.test(e),Fi=()=>!0,zi=e=>Li.test(e)&&!Mi.test(e),ir=()=>!1,_i=e=>Di.test(e),Wi=e=>Ii.test(e),$i=e=>!k(e)&&!A(e),ji=e=>Re(e,lr,ir),k=e=>or.test(e),ue=e=>Re(e,ur,zi),bt=e=>Re(e,Gi,O),dn=e=>Re(e,ar,ir),Bi=e=>Re(e,cr,Wi),He=e=>Re(e,dr,_i),A=e=>sr.test(e),Me=e=>Pe(e,ur),Vi=e=>Pe(e,Yi),fn=e=>Pe(e,ar),Hi=e=>Pe(e,lr),Ui=e=>Pe(e,cr),Ue=e=>Pe(e,dr,!0),Re=(e,t,n)=>{const r=or.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Pe=(e,t,n=!1)=>{const r=sr.exec(e);return r?r[1]?t(r[1]):n:!1},ar=e=>e==="position"||e==="percentage",cr=e=>e==="image"||e==="url",lr=e=>e==="length"||e==="size"||e==="bg-size",ur=e=>e==="length",Gi=e=>e==="number",Yi=e=>e==="family-name",dr=e=>e==="shadow",Xi=()=>{const e=B("color"),t=B("font"),n=B("text"),r=B("font-weight"),o=B("tracking"),s=B("leading"),i=B("breakpoint"),a=B("container"),c=B("spacing"),l=B("radius"),u=B("shadow"),f=B("inset-shadow"),h=B("text-shadow"),p=B("drop-shadow"),v=B("blur"),m=B("perspective"),g=B("aspect"),b=B("ease"),x=B("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),A,k],P=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[A,k,c],N=()=>[ye,"full","auto",...S()],L=()=>[oe,"none","subgrid",A,k],z=()=>["auto",{span:["full",oe,A,k]},oe,A,k],_=()=>[oe,"auto",A,k],W=()=>["auto","min","max","fr",A,k],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...S()],M=()=>[ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],y=()=>[e,A,k],j=()=>[...w(),fn,dn,{position:[A,k]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",Hi,ji,{size:[A,k]}],Ne=()=>[vt,Me,ue],V=()=>["","none","full",l,A,k],H=()=>["",O,Me,ue],fe=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[O,vt,fn,dn],Te=()=>["","none",v,A,k],me=()=>["none",O,A,k],pe=()=>["none",O,A,k],Le=()=>[O,A,k],he=()=>[ye,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[te],breakpoint:[te],color:[Fi],container:[te],"drop-shadow":[te],ease:["in","out","in-out"],font:[$i],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[te],shadow:[te],spacing:["px",O],text:[te],"text-shadow":[te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ye,k,A,g]}],container:["container"],columns:[{columns:[O,k,A,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[oe,"auto",A,k]}],basis:[{basis:[ye,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,ye,"auto","initial","none",k]}],grow:[{grow:["",O,A,k]}],shrink:[{shrink:["",O,A,k]}],order:[{order:[oe,"first","last","none",A,k]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,Me,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,A,bt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vt,k]}],"font-family":[{font:[Vi,k,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,A,k]}],"line-clamp":[{"line-clamp":[O,"none",A,bt]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",A,k]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",A,ue]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[O,"auto",A,k]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,k]}],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",A,k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oe,A,k],radial:["",A,k],conic:[oe,A,k]},Ui,Bi]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:Ne()}],"gradient-via-pos":[{via:Ne()}],"gradient-to-pos":[{to:Ne()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,A,k]}],"outline-w":[{outline:["",O,Me,ue]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",u,Ue,He]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",f,Ue,He]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[O,ue]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",h,Ue,He]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[O,A,k]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"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":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[A,k]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,k]}],filter:[{filter:["","none",A,k]}],blur:[{blur:Te()}],brightness:[{brightness:[O,A,k]}],contrast:[{contrast:[O,A,k]}],"drop-shadow":[{"drop-shadow":["","none",p,Ue,He]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",O,A,k]}],"hue-rotate":[{"hue-rotate":[O,A,k]}],invert:[{invert:["",O,A,k]}],saturate:[{saturate:[O,A,k]}],sepia:[{sepia:["",O,A,k]}],"backdrop-filter":[{"backdrop-filter":["","none",A,k]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[O,A,k]}],"backdrop-contrast":[{"backdrop-contrast":[O,A,k]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,A,k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,A,k]}],"backdrop-invert":[{"backdrop-invert":["",O,A,k]}],"backdrop-opacity":[{"backdrop-opacity":[O,A,k]}],"backdrop-saturate":[{"backdrop-saturate":[O,A,k]}],"backdrop-sepia":[{"backdrop-sepia":["",O,A,k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,k]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",A,k]}],ease:[{ease:["linear","initial",b,A,k]}],delay:[{delay:[O,A,k]}],animate:[{animate:["none",x,A,k]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,A,k]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[A,k,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"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",A,k]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",A,k]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[O,Me,ue,bt]}],stroke:[{stroke:["none",...y()]}],"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"]}},Ki=Pi(Xi);function Zi(...e){return Ki(Jn(e))}const mn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,pn=Jn,qi=(e,t)=>n=>{var r;if(t?.variants==null)return pn(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const u=n?.[l],f=s?.[l];if(u===null)return null;const h=mn(u)||mn(f);return o[l][h]}),a=n&&Object.entries(n).reduce((l,u)=>{let[f,h]=u;return h===void 0||(l[f]=h),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:f,className:h,...p}=u;return Object.entries(p).every(v=>{let[m,g]=v;return Array.isArray(g)?g.includes({...s,...a}[m]):{...s,...a}[m]===g})?[...l,f,h]:l},[]);return pn(e,i,c,n?.class,n?.className)};var Qi=Symbol.for("react.lazy"),tt=kt[" use ".trim().toString()];function Ji(e){return typeof e=="object"&&e!==null&&"then"in e}function fr(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qi&&"_payload"in e&&Ji(e._payload)}function ea(e){const t=na(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;fr(s)&&typeof tt=="function"&&(s=tt(s._payload));const a=d.Children.toArray(s),c=a.find(oa);if(c){const l=c.props.children,u=a.map(f=>f===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:f);return F.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,u):null})}return F.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var ta=ea("Slot");function na(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(fr(o)&&typeof tt=="function"&&(o=tt(o._payload)),d.isValidElement(o)){const i=ia(o),a=sa(s,o.props);return o.type!==d.Fragment&&(a.ref=r?At(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ra=Symbol("radix.slottable");function oa(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ra}function sa(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ia(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const aa=qi("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",secondary:"bg-secondary border-border text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",destructive:"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",xs:"h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-9","icon-xs":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ra({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?ta:"button";return F.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:Zi(aa({variant:t,size:n,className:e})),...o})}function ca(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var la=e=>{const{present:t,children:n}=e,r=ua(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=Ee(r.ref,da(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};la.displayName="Presence";function ua(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,c]=ca(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Ge(r.current);s.current=a==="mounted"?l:"none"},[a]),ie(()=>{const l=r.current,u=o.current;if(u!==e){const h=s.current,p=Ge(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=Ge(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(s.current=Ge(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ge(e){return e?.animationName||"none"}function da(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{ne as $,xa as A,Ra as B,ma as C,va as D,Dr as E,$r as F,Sa as G,Ca as H,ea as I,Or as J,ha as K,J as L,Zt as M,We as N,Ae as O,le as P,En as Q,wa as R,ta as S,Y as T,K as U,ws as V,Ce as W,pa as X,ce as Y,Ie as Z,Tt as _,Jn as a,Sn as a0,Ot as a1,ke as a2,Pt as a3,wt as a4,os as a5,rs as a6,re as a7,q as a8,es as a9,ts as aa,Fe as ab,ka as ac,At as b,vn as c,Zi as d,qi as e,Se as f,ie as g,Ea as h,at as i,xr as j,X as k,aa as l,qo as m,jo as n,Ee as o,ga as p,Jo as q,ns as r,la as s,cs as t,ba as u,gs as v,ya as w,Aa as x,ai as y,Cr as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as o,c as t,r,b as c,j as a,d as m,e as n}from"./react-
|
|
1
|
+
import{s as o,c as t,r,b as c,j as a,d as m,e as n}from"./react-CzFdRS7Y.js";import{g as i,R as S,c as d}from"./router-QEl8O8lm.js";o(d({createFromReadableStream:t,createTemporaryReferenceSet:m,encodeReply:n}));t(i()).then(e=>{r.startTransition(async()=>{const s=e.type==="render"?await e.formState:void 0;c.hydrateRoot(document,a.jsx(r.StrictMode,{children:a.jsx(S,{payload:e,createFromReadableStream:t})}),{formState:s})})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Wt}from"./index-DrT4Adhh.js";import{W as a,k as Ut}from"./react-CzFdRS7Y.js";const Xt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Te=Wt("search",Xt);function Kt(r){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",o.appendChild(e),e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}const qt=r=>{switch(r){case"success":return Jt;case"info":return te;case"warning":return Zt;case"error":return ee;default:return null}},Gt=Array(12).fill(0),Qt=({visible:r,className:o})=>a.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},a.createElement("div",{className:"sonner-spinner"},Gt.map((e,s)=>a.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Jt=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Zt=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),te=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ee=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ae=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},a.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),oe=()=>{const[r,o]=a.useState(document.hidden);return a.useEffect(()=>{const e=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),r};let wt=1;class se{constructor(){this.subscribe=o=>(this.subscribers.push(o),()=>{const e=this.subscribers.indexOf(o);this.subscribers.splice(e,1)}),this.publish=o=>{this.subscribers.forEach(e=>e(o))},this.addToast=o=>{this.publish(o),this.toasts=[...this.toasts,o]},this.create=o=>{var e;const{message:s,...C}=o,u=typeof o?.id=="number"||((e=o.id)==null?void 0:e.length)>0?o.id:wt++,g=this.toasts.find(b=>b.id===u),_=o.dismissible===void 0?!0:o.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),g?this.toasts=this.toasts.map(b=>b.id===u?(this.publish({...b,...o,id:u,title:s}),{...b,...o,id:u,dismissible:_,title:s}):b):this.addToast({title:s,...C,dismissible:_,id:u}),u},this.dismiss=o=>(o?(this.dismissedToasts.add(o),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:o,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(s=>s({id:e.id,dismiss:!0}))}),o),this.message=(o,e)=>this.create({...e,message:o}),this.error=(o,e)=>this.create({...e,message:o,type:"error"}),this.success=(o,e)=>this.create({...e,type:"success",message:o}),this.info=(o,e)=>this.create({...e,type:"info",message:o}),this.warning=(o,e)=>this.create({...e,type:"warning",message:o}),this.loading=(o,e)=>this.create({...e,type:"loading",message:o}),this.promise=(o,e)=>{if(!e)return;let s;e.loading!==void 0&&(s=this.create({...e,promise:o,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));const C=Promise.resolve(o instanceof Function?o():o);let u=s!==void 0,g;const _=C.then(async i=>{if(g=["resolve",i],a.isValidElement(i))u=!1,this.create({id:s,type:"default",message:i});else if(re(i)&&!i.ok){u=!1;const t=typeof e.error=="function"?await e.error(`HTTP error! status: ${i.status}`):e.error,w=typeof e.description=="function"?await e.description(`HTTP error! status: ${i.status}`):e.description,E=typeof t=="object"&&!a.isValidElement(t)?t:{message:t};this.create({id:s,type:"error",description:w,...E})}else if(i instanceof Error){u=!1;const t=typeof e.error=="function"?await e.error(i):e.error,w=typeof e.description=="function"?await e.description(i):e.description,E=typeof t=="object"&&!a.isValidElement(t)?t:{message:t};this.create({id:s,type:"error",description:w,...E})}else if(e.success!==void 0){u=!1;const t=typeof e.success=="function"?await e.success(i):e.success,w=typeof e.description=="function"?await e.description(i):e.description,E=typeof t=="object"&&!a.isValidElement(t)?t:{message:t};this.create({id:s,type:"success",description:w,...E})}}).catch(async i=>{if(g=["reject",i],e.error!==void 0){u=!1;const T=typeof e.error=="function"?await e.error(i):e.error,t=typeof e.description=="function"?await e.description(i):e.description,O=typeof T=="object"&&!a.isValidElement(T)?T:{message:T};this.create({id:s,type:"error",description:t,...O})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),e.finally==null||e.finally.call(e)}),b=()=>new Promise((i,T)=>_.then(()=>g[0]==="reject"?T(g[1]):i(g[1])).catch(T));return typeof s!="string"&&typeof s!="number"?{unwrap:b}:Object.assign(s,{unwrap:b})},this.custom=(o,e)=>{const s=e?.id||wt++;return this.create({jsx:o(s),id:s,...e}),s},this.getActiveToasts=()=>this.toasts.filter(o=>!this.dismissedToasts.has(o.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const S=new se,ne=(r,o)=>{const e=o?.id||wt++;return S.addToast({title:r,...o,id:e}),e},re=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",ie=ne,le=()=>S.toasts,de=()=>S.getActiveToasts(),Se=Object.assign(ie,{success:S.success,info:S.info,warning:S.warning,error:S.error,custom:S.custom,message:S.message,promise:S.promise,dismiss:S.dismiss,loading:S.loading},{getHistory:le,getToasts:de});Kt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function mt(r){return r.label!==void 0}const ce=3,ue="24px",fe="16px",Mt=4e3,me=356,pe=14,ge=45,he=200;function H(...r){return r.filter(Boolean).join(" ")}function be(r){const[o,e]=r.split("-"),s=[];return o&&s.push(o),e&&s.push(e),s}const ve=r=>{var o,e,s,C,u,g,_,b,i;const{invert:T,toast:t,unstyled:w,interacting:O,setHeights:E,visibleToasts:pt,heights:W,index:d,toasts:ot,expanded:U,removeToast:st,defaultRichColors:gt,closeButton:j,style:Z,cancelButtonStyle:Y,actionButtonStyle:ht,className:nt="",descriptionClassName:bt="",duration:tt,position:A,gap:rt,expandByDefault:et,classNames:c,icons:v,closeButtonAriaLabel:L="Close toast"}=r,[$,B]=a.useState(null),[F,it]=a.useState(null),[l,p]=a.useState(!1),[m,D]=a.useState(!1),[X,f]=a.useState(!1),[K,lt]=a.useState(!1),[dt,q]=a.useState(!1),[Ct,vt]=a.useState(0),[At,Et]=a.useState(0),at=a.useRef(t.duration||tt||Mt),Tt=a.useRef(null),z=a.useRef(null),Ht=d===0,Ot=d+1<=pt,k=t.type,G=t.dismissible!==!1,jt=t.className||"",zt=t.descriptionClassName||"",ct=a.useMemo(()=>W.findIndex(n=>n.toastId===t.id)||0,[W,t.id]),Lt=a.useMemo(()=>{var n;return(n=t.closeButton)!=null?n:j},[t.closeButton,j]),St=a.useMemo(()=>t.duration||tt||Mt,[t.duration,tt]),yt=a.useRef(0),Q=a.useRef(0),kt=a.useRef(0),J=a.useRef(null),[Pt,Yt]=A.split("-"),Nt=a.useMemo(()=>W.reduce((n,h,x)=>x>=ct?n:n+h.height,0),[W,ct]),_t=oe(),$t=t.invert||T,xt=k==="loading";Q.current=a.useMemo(()=>ct*rt+Nt,[ct,Nt]),a.useEffect(()=>{at.current=St},[St]),a.useEffect(()=>{p(!0)},[]),a.useEffect(()=>{const n=z.current;if(n){const h=n.getBoundingClientRect().height;return Et(h),E(x=>[{toastId:t.id,height:h,position:t.position},...x]),()=>E(x=>x.filter(N=>N.toastId!==t.id))}},[E,t.id]),a.useLayoutEffect(()=>{if(!l)return;const n=z.current,h=n.style.height;n.style.height="auto";const x=n.getBoundingClientRect().height;n.style.height=h,Et(x),E(N=>N.find(y=>y.toastId===t.id)?N.map(y=>y.toastId===t.id?{...y,height:x}:y):[{toastId:t.id,height:x,position:t.position},...N])},[l,t.title,t.description,E,t.id,t.jsx,t.action,t.cancel]);const P=a.useCallback(()=>{D(!0),vt(Q.current),E(n=>n.filter(h=>h.toastId!==t.id)),setTimeout(()=>{st(t)},he)},[t,st,E,Q]);a.useEffect(()=>{if(t.promise&&k==="loading"||t.duration===1/0||t.type==="loading")return;let n;return U||O||_t?(()=>{if(kt.current<yt.current){const N=new Date().getTime()-yt.current;at.current=at.current-N}kt.current=new Date().getTime()})():at.current!==1/0&&(yt.current=new Date().getTime(),n=setTimeout(()=>{t.onAutoClose==null||t.onAutoClose.call(t,t),P()},at.current)),()=>clearTimeout(n)},[U,O,t,k,_t,P]),a.useEffect(()=>{t.delete&&(P(),t.onDismiss==null||t.onDismiss.call(t,t))},[P,t.delete]);function Ft(){var n;if(v?.loading){var h;return a.createElement("div",{className:H(c?.loader,t==null||(h=t.classNames)==null?void 0:h.loader,"sonner-loader"),"data-visible":k==="loading"},v.loading)}return a.createElement(Qt,{className:H(c?.loader,t==null||(n=t.classNames)==null?void 0:n.loader),visible:k==="loading"})}const Vt=t.icon||v?.[k]||qt(k);var Dt,Rt;return a.createElement("li",{tabIndex:0,ref:z,className:H(nt,jt,c?.toast,t==null||(o=t.classNames)==null?void 0:o.toast,c?.default,c?.[k],t==null||(e=t.classNames)==null?void 0:e[k]),"data-sonner-toast":"","data-rich-colors":(Dt=t.richColors)!=null?Dt:gt,"data-styled":!(t.jsx||t.unstyled||w),"data-mounted":l,"data-promise":!!t.promise,"data-swiped":dt,"data-removed":m,"data-visible":Ot,"data-y-position":Pt,"data-x-position":Yt,"data-index":d,"data-front":Ht,"data-swiping":X,"data-dismissible":G,"data-type":k,"data-invert":$t,"data-swipe-out":K,"data-swipe-direction":F,"data-expanded":!!(U||et&&l),"data-testid":t.testId,style:{"--index":d,"--toasts-before":d,"--z-index":ot.length-d,"--offset":`${m?Ct:Q.current}px`,"--initial-height":et?"auto":`${At}px`,...Z,...t.style},onDragEnd:()=>{f(!1),B(null),J.current=null},onPointerDown:n=>{n.button!==2&&(xt||!G||(Tt.current=new Date,vt(Q.current),n.target.setPointerCapture(n.pointerId),n.target.tagName!=="BUTTON"&&(f(!0),J.current={x:n.clientX,y:n.clientY})))},onPointerUp:()=>{var n,h,x;if(K||!G)return;J.current=null;const N=Number(((n=z.current)==null?void 0:n.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ut=Number(((h=z.current)==null?void 0:h.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),y=new Date().getTime()-((x=Tt.current)==null?void 0:x.getTime()),R=$==="x"?N:ut,ft=Math.abs(R)/y;if(Math.abs(R)>=ge||ft>.11){vt(Q.current),t.onDismiss==null||t.onDismiss.call(t,t),it($==="x"?N>0?"right":"left":ut>0?"down":"up"),P(),lt(!0);return}else{var M,I;(M=z.current)==null||M.style.setProperty("--swipe-amount-x","0px"),(I=z.current)==null||I.style.setProperty("--swipe-amount-y","0px")}q(!1),f(!1),B(null)},onPointerMove:n=>{var h,x,N;if(!J.current||!G||((h=window.getSelection())==null?void 0:h.toString().length)>0)return;const y=n.clientY-J.current.y,R=n.clientX-J.current.x;var ft;const M=(ft=r.swipeDirections)!=null?ft:be(A);!$&&(Math.abs(R)>1||Math.abs(y)>1)&&B(Math.abs(R)>Math.abs(y)?"x":"y");let I={x:0,y:0};const Bt=V=>1/(1.5+Math.abs(V)/20);if($==="y"){if(M.includes("top")||M.includes("bottom"))if(M.includes("top")&&y<0||M.includes("bottom")&&y>0)I.y=y;else{const V=y*Bt(y);I.y=Math.abs(V)<Math.abs(y)?V:y}}else if($==="x"&&(M.includes("left")||M.includes("right")))if(M.includes("left")&&R<0||M.includes("right")&&R>0)I.x=R;else{const V=R*Bt(R);I.x=Math.abs(V)<Math.abs(R)?V:R}(Math.abs(I.x)>0||Math.abs(I.y)>0)&&q(!0),(x=z.current)==null||x.style.setProperty("--swipe-amount-x",`${I.x}px`),(N=z.current)==null||N.style.setProperty("--swipe-amount-y",`${I.y}px`)}},Lt&&!t.jsx&&k!=="loading"?a.createElement("button",{"aria-label":L,"data-disabled":xt,"data-close-button":!0,onClick:xt||!G?()=>{}:()=>{P(),t.onDismiss==null||t.onDismiss.call(t,t)},className:H(c?.closeButton,t==null||(s=t.classNames)==null?void 0:s.closeButton)},(Rt=v?.close)!=null?Rt:ae):null,(k||t.icon||t.promise)&&t.icon!==null&&(v?.[k]!==null||t.icon)?a.createElement("div",{"data-icon":"",className:H(c?.icon,t==null||(C=t.classNames)==null?void 0:C.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Ft():null,t.type!=="loading"?Vt:null):null,a.createElement("div",{"data-content":"",className:H(c?.content,t==null||(u=t.classNames)==null?void 0:u.content)},a.createElement("div",{"data-title":"",className:H(c?.title,t==null||(g=t.classNames)==null?void 0:g.title)},t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title),t.description?a.createElement("div",{"data-description":"",className:H(bt,zt,c?.description,t==null||(_=t.classNames)==null?void 0:_.description)},typeof t.description=="function"?t.description():t.description):null),a.isValidElement(t.cancel)?t.cancel:t.cancel&&mt(t.cancel)?a.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||Y,onClick:n=>{mt(t.cancel)&&G&&(t.cancel.onClick==null||t.cancel.onClick.call(t.cancel,n),P())},className:H(c?.cancelButton,t==null||(b=t.classNames)==null?void 0:b.cancelButton)},t.cancel.label):null,a.isValidElement(t.action)?t.action:t.action&&mt(t.action)?a.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||ht,onClick:n=>{mt(t.action)&&(t.action.onClick==null||t.action.onClick.call(t.action,n),!n.defaultPrevented&&P())},className:H(c?.actionButton,t==null||(i=t.classNames)==null?void 0:i.actionButton)},t.action.label):null)};function It(){if(typeof window>"u"||typeof document>"u")return"ltr";const r=document.documentElement.getAttribute("dir");return r==="auto"||!r?window.getComputedStyle(document.documentElement).direction:r}function ye(r,o){const e={};return[r,o].forEach((s,C)=>{const u=C===1,g=u?"--mobile-offset":"--offset",_=u?fe:ue;function b(i){["top","right","bottom","left"].forEach(T=>{e[`${g}-${T}`]=typeof i=="number"?`${i}px`:i})}typeof s=="number"||typeof s=="string"?b(s):typeof s=="object"?["top","right","bottom","left"].forEach(i=>{s[i]===void 0?e[`${g}-${i}`]=_:e[`${g}-${i}`]=typeof s[i]=="number"?`${s[i]}px`:s[i]}):b(_)}),e}const ke=a.forwardRef(function(o,e){const{id:s,invert:C,position:u="bottom-right",hotkey:g=["altKey","KeyT"],expand:_,closeButton:b,className:i,offset:T,mobileOffset:t,theme:w="light",richColors:O,duration:E,style:pt,visibleToasts:W=ce,toastOptions:d,dir:ot=It(),gap:U=pe,icons:st,containerAriaLabel:gt="Notifications"}=o,[j,Z]=a.useState([]),Y=a.useMemo(()=>s?j.filter(l=>l.toasterId===s):j.filter(l=>!l.toasterId),[j,s]),ht=a.useMemo(()=>Array.from(new Set([u].concat(Y.filter(l=>l.position).map(l=>l.position)))),[Y,u]),[nt,bt]=a.useState([]),[tt,A]=a.useState(!1),[rt,et]=a.useState(!1),[c,v]=a.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=a.useRef(null),$=g.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=a.useRef(null),F=a.useRef(!1),it=a.useCallback(l=>{Z(p=>{var m;return(m=p.find(D=>D.id===l.id))!=null&&m.delete||S.dismiss(l.id),p.filter(({id:D})=>D!==l.id)})},[]);return a.useEffect(()=>S.subscribe(l=>{if(l.dismiss){requestAnimationFrame(()=>{Z(p=>p.map(m=>m.id===l.id?{...m,delete:!0}:m))});return}setTimeout(()=>{Ut.flushSync(()=>{Z(p=>{const m=p.findIndex(D=>D.id===l.id);return m!==-1?[...p.slice(0,m),{...p[m],...l},...p.slice(m+1)]:[l,...p]})})})}),[j]),a.useEffect(()=>{if(w!=="system"){v(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?v("dark"):v("light")),typeof window>"u")return;const l=window.matchMedia("(prefers-color-scheme: dark)");try{l.addEventListener("change",({matches:p})=>{v(p?"dark":"light")})}catch{l.addListener(({matches:m})=>{try{v(m?"dark":"light")}catch(D){console.error(D)}})}},[w]),a.useEffect(()=>{j.length<=1&&A(!1)},[j]),a.useEffect(()=>{const l=p=>{var m;if(g.every(f=>p[f]||p.code===f)){var X;A(!0),(X=L.current)==null||X.focus()}p.code==="Escape"&&(document.activeElement===L.current||(m=L.current)!=null&&m.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[g]),a.useEffect(()=>{if(L.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,F.current=!1)}},[L.current]),a.createElement("section",{ref:e,"aria-label":`${gt} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ht.map((l,p)=>{var m;const[D,X]=l.split("-");return Y.length?a.createElement("ol",{key:l,dir:ot==="auto"?It():ot,tabIndex:-1,ref:L,className:i,"data-sonner-toaster":!0,"data-sonner-theme":c,"data-y-position":D,"data-x-position":X,style:{"--front-toast-height":`${((m=nt[0])==null?void 0:m.height)||0}px`,"--width":`${me}px`,"--gap":`${U}px`,...pt,...ye(T,t)},onBlur:f=>{F.current&&!f.currentTarget.contains(f.relatedTarget)&&(F.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:f=>{f.target instanceof HTMLElement&&f.target.dataset.dismissible==="false"||F.current||(F.current=!0,B.current=f.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{rt||A(!1)},onDragEnd:()=>A(!1),onPointerDown:f=>{f.target instanceof HTMLElement&&f.target.dataset.dismissible==="false"||et(!0)},onPointerUp:()=>et(!1)},Y.filter(f=>!f.position&&p===0||f.position===l).map((f,K)=>{var lt,dt;return a.createElement(ve,{key:f.id,icons:st,index:K,toast:f,defaultRichColors:O,duration:(lt=d?.duration)!=null?lt:E,className:d?.className,descriptionClassName:d?.descriptionClassName,invert:C,visibleToasts:W,closeButton:(dt=d?.closeButton)!=null?dt:b,interacting:rt,position:l,style:d?.style,unstyled:d?.unstyled,classNames:d?.classNames,cancelButtonStyle:d?.cancelButtonStyle,actionButtonStyle:d?.actionButtonStyle,closeButtonAriaLabel:d?.closeButtonAriaLabel,removeToast:it,toasts:Y.filter(q=>q.position==f.position),heights:nt.filter(q=>q.position==f.position),setHeights:bt,expandByDefault:_,gap:U,expanded:tt,swipeDirections:o.swipeDirections})})):null}))});export{Te as S,ke as T,Se as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,j as e}from"./react-CzFdRS7Y.js";import{u as I,b as L,f as O,g as k,h as Q,i as U,j as F,k as T,l as E,c as B,d as P,e as G,o as R,m as b,n as _,p as V,q as H}from"./sidebar-ByyQE2QS.js";import{B as W}from"./badge-BnhEE6iu.js";import{c as h,d as z}from"./index-DrT4Adhh.js";import{z as M}from"./index-B5GacMxj.js";import{S as X,a as Z,b as J,c as K,d as v}from"./select-BI356bZ1.js";import{a as Y}from"./actions-ByenKsIt.js";import{C as ee}from"./actions-ClHPL1CP.js";import{L as C,u as w,O as te}from"./router-QEl8O8lm.js";import{S as se,T as ae}from"./index-QYLIz8qa.js";import{C as oe}from"./client-DvwvjHta.js";import{L as ne,S as re}from"./spinner-D35u7i0p.js";import{t as ie,n as ce}from"./query-z9oLNeTD.js";import{u as de}from"./QueryClientProvider-BFSUF51X.js";import"./tooltip-v-_I4rCw.js";import"./index-BTaHNKf7.js";import"./dropdown-menu-By_XeFX4.js";import"./index-CG_0cSZQ.js";const le=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ue=h("circle-check",le);const he=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],me=h("file",he);const fe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],xe=h("info",fe);const pe=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ge=h("layers",pe);const je=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],ye=h("monitor",je);const ve=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],ke=h("moon",ve);const Ce=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Se=h("octagon-x",Ce);const be=[["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"}]],Ne=h("sun",be);const _e=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ze=h("triangle-alert",_e);function Me(t){return t}function N(t,s,a){if(typeof s!="object"||s===null)return;const m=t.getMutationCache(),o=t.getQueryCache(),n=a?.defaultOptions?.deserializeData??t.getDefaultOptions().hydrate?.deserializeData??Me,c=s.mutations||[],g=s.queries||[];c.forEach(({state:x,...r})=>{m.build(t,{...t.getDefaultOptions().hydrate?.mutations,...a?.defaultOptions?.mutations,...r},x)}),g.forEach(({queryKey:x,state:r,queryHash:f,meta:d,promise:i,dehydratedAt:p})=>{const S=i?ie(i):void 0,j=r.data===void 0?S?.data:r.data,y=j===void 0?j:n(j);let l=o.get(f);const A=l?.state.status==="pending",q=l?.state.fetchStatus==="fetching";if(l){const $=S&&p!==void 0&&p>l.state.dataUpdatedAt;if(r.dataUpdatedAt>l.state.dataUpdatedAt||$){const{fetchStatus:Fe,...D}=r;l.setState({...D,data:y})}}else l=o.build(t,{...t.getDefaultOptions().hydrate?.queries,...a?.defaultOptions?.queries,queryKey:x,queryHash:f,meta:d},{...r,data:y,fetchStatus:"idle",status:y!==void 0?"success":r.status});i&&!A&&!q&&(p===void 0||p>l.state.dataUpdatedAt)&&l.fetch(void 0,{initialPromise:Promise.resolve(i).then(n)}).catch(ce)})}var we=({children:t,options:s={},state:a,queryClient:m})=>{const o=de(m),n=u.useRef(s);u.useEffect(()=>{n.current=s});const c=u.useMemo(()=>{if(a){if(typeof a!="object")return;const g=o.getQueryCache(),x=a.queries||[],r=[],f=[];for(const d of x){const i=g.get(d.queryHash);i?(d.state.dataUpdatedAt>i.state.dataUpdatedAt||d.promise&&i.state.status!=="pending"&&i.state.fetchStatus!=="fetching"&&d.dehydratedAt!==void 0&&d.dehydratedAt>i.state.dataUpdatedAt)&&f.push(d):r.push(d)}if(r.length>0&&N(o,{queries:r},n.current),f.length>0)return f}},[o,a]);return u.useEffect(()=>{c&&N(o,{queries:c},n.current)},[o,c]),t};function Ae(t){return e.jsxs("svg",{viewBox:"0 0 360 360",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("circle",{cx:"180.5",cy:"180.5",r:"141.5",fill:"url(#paint0_linear_604_85)"}),e.jsx("path",{d:"M347.698 136.733C51.6985 -131.267 276.064 296.733 187.699 296.733C99.333 296.733 111.199 129.366 111.199 41C98.1985 121.5 -48.1663 319.5 40.1992 319.5C150.699 319.5 134.699 21 347.698 136.733Z",fill:"url(#paint1_radial_604_85)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_604_85",x1:"180.5",y1:"39",x2:"180.5",y2:"322",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A79EFF"}),e.jsx("stop",{offset:"1",stopColor:"#4434DA"})]}),e.jsxs("radialGradient",{id:"paint1_radial_604_85",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(27.6988 -8.15656) rotate(45.4948) scale(363.938 363.938)",children:[e.jsx("stop",{offset:"0.513102",stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"#6AFFED"})]})]})]})}function qe(t){const[s,a]=u.useState(""),{data:m=[]}=I(o=>o.from({collection:B}).join({docs:P},({collection:n,docs:c})=>G(n.id,c.collectionId)).where(n=>R(b(n.collection.name,`${s}%`),b(n.docs?.name,`${s}%`))),[s]);return e.jsxs(L,{variant:"floating",...t,children:[e.jsx(O,{children:e.jsx(k,{asChild:!0,children:e.jsxs(C,{to:"/",className:"ps-1 font-semibold text-lg font-mono",children:[e.jsx(Ae,{className:"size-6!"}),"Fuma Content"]})})}),e.jsx(Q,{children:e.jsx(U,{children:e.jsxs(F,{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 border rounded-full bg-secondary text-secondary-foreground px-3 transition-colors focus-within:ring-2 focus-within:ring-ring",children:[e.jsx(se,{className:"size-4 text-muted-foreground"}),e.jsx("input",{placeholder:"Search...",className:"py-1.5 focus-visible:outline-none",value:s,onChange:o=>a(o.target.value)})]}),e.jsx(T,{className:"gap-0",children:m.map((o,n)=>{const c=n>0&&m[n-1].collection.id===o.collection.id;return e.jsxs(u.Fragment,{children:[!c&&e.jsx(De,{item:o.collection}),o.docs&&e.jsx($e,{item:o.docs})]},`${o.collection.id}-${o.docs?.id}`)})})]})})}),e.jsx(E,{children:e.jsx(Ie,{})})]})}function $e({item:t}){const s=w().pathname,a=`/collection/${t.collectionId}/${t.id}`;return e.jsx(Y,{document:t,children:e.jsx(_,{children:e.jsx(k,{tooltip:t.name,isActive:s===a,className:z("ps-5",!s.startsWith(a+"/")&&"text-muted-foreground"),asChild:!0,children:e.jsxs(C,{to:a,children:[e.jsx(me,{className:"text-muted-foreground"}),e.jsx("span",{children:t.name})]})})})})}function De({item:t}){const s=w().pathname,a=`/collection/${t.id}`;return e.jsx(ee,{collection:t,children:e.jsx(_,{children:e.jsx(k,{tooltip:t.name,isActive:s===a,className:z("ps-3",!s.startsWith(a+"/")&&"text-muted-foreground"),asChild:!0,children:e.jsxs(C,{to:a,children:[e.jsx(ge,{className:"text-muted-foreground"}),e.jsx("span",{children:t.name}),t.badge&&e.jsx(W,{className:"ms-auto",children:t.badge})]})})})})}function Ie(){const{theme:t="light",setTheme:s}=M();return e.jsxs(X,{value:t,onValueChange:s,children:[e.jsx(Z,{className:"text-muted-foreground",children:e.jsx(J,{})}),e.jsxs(K,{className:"text-muted-foreground",children:[e.jsxs(v,{value:"light",children:[e.jsx(Ne,{className:"size-4"}),"Light"]}),e.jsxs(v,{value:"dark",children:[e.jsx(ke,{className:"size-4",fill:"currentColor"}),"Dark"]}),e.jsxs(v,{value:"system",children:[e.jsx(ye,{className:"size-4"}),"System"]})]})]})}const Le=({...t})=>{const{theme:s="system"}=M();return e.jsx(ae,{theme:s,className:"toaster group",icons:{success:e.jsx(ue,{className:"size-4"}),info:e.jsx(xe,{className:"size-4"}),warning:e.jsx(ze,{className:"size-4"}),error:e.jsx(Se,{className:"size-4"}),loading:e.jsx(ne,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...t})};function Oe(){const[t,s]=u.useState(!1);return u.useEffect(()=>{s(!0)},[]),t}function Qe({loaderData:t}){return e.jsx(oe,{contexts:t.clientContexts,children:e.jsx(Ue,{children:e.jsx(we,{state:t.queryState,children:e.jsxs(V,{children:[e.jsx(qe,{}),e.jsxs(H,{children:[e.jsx(te,{}),e.jsx(Le,{})]})]})})})})}function Ue({children:t}){const s=Oe(),a=e.jsxs("div",{className:"fixed flex items-center justify-center inset-0 bg-background z-50 text-sm text-muted-foreground gap-1",children:[e.jsx(re,{}),"Loading"]});return s?e.jsx(u.Suspense,{fallback:a,defer:!0,children:t}):a}const ot={default:Qe};export{ot as export_5d6b9f3494e7};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as e}from"./react-
|
|
1
|
+
import{r as i,j as e}from"./react-CzFdRS7Y.js";import{F as d}from"./index-D8KuzOxG.js";import{z as l}from"./index-B5GacMxj.js";function c({defaultValue:r,onValueChange:a}){const{resolvedTheme:s}=l(),[t,n]=i.useState(r);return e.jsx(d,{language:"mdx",value:t,onChange:(o="")=>{n(o),a(o)},theme:s==="dark"?"vs-dark":"light",loading:e.jsx("pre",{className:"ps-17 py-5 text-sm size-full",children:e.jsx("code",{children:t})}),className:"bg-secondary text-secondary-foreground overflow-hidden border rounded-lg",options:{minimap:{enabled:!1},padding:{top:20,bottom:20},fontSize:14,lineHeight:1.428571,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,formatOnPaste:!0,formatOnType:!0}})}export{c as MDXCodeEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./react-CzFdRS7Y.js";import{D as n}from"./actions-ByenKsIt.js";import{S as a}from"./site-header-iBpA4Sim.js";import{u as p,d as c,a as d,e as i}from"./sidebar-ByyQE2QS.js";import{L as f}from"./router-QEl8O8lm.js";import"./dropdown-menu-By_XeFX4.js";import"./index-DrT4Adhh.js";import"./index-BTaHNKf7.js";import"./index-CG_0cSZQ.js";import"./tooltip-v-_I4rCw.js";import"./separator-0kwG7IIM.js";import"./index-CfCSvolS.js";import"./query-z9oLNeTD.js";function u({collectionId:o,documentId:e}){const r=p(s=>s.from({doc:c}).where(m=>d(i(m.doc.id,e),i(m.doc.collectionId,o))).findOne(),[e,o]).data;if(r)return t.jsxs(a,{children:[t.jsxs(f,{to:`/collection/${o}`,className:"font-mono text-sm",children:[o,"/",r.name]}),t.jsx(n,{document:r})]})}const C={Header:u};export{C as export_9f11f519a173};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./react-CzFdRS7Y.js";import{B as d}from"./badge-BnhEE6iu.js";import{S as l}from"./site-header-iBpA4Sim.js";import{u as a,c as p,e as i,d as x}from"./sidebar-ByyQE2QS.js";import{u,F as f}from"./client-DvwvjHta.js";import{l as h}from"./index-DrT4Adhh.js";import{a as g,D as j}from"./actions-ByenKsIt.js";import{L as N}from"./router-QEl8O8lm.js";import{N as b}from"./root-jg-0qm8s.js";import"./separator-0kwG7IIM.js";import"./index-CfCSvolS.js";import"./query-z9oLNeTD.js";import"./tooltip-v-_I4rCw.js";import"./dropdown-menu-By_XeFX4.js";import"./index-BTaHNKf7.js";import"./index-CG_0cSZQ.js";import"./QueryClientProvider-BFSUF51X.js";import"./index-B5GacMxj.js";function v(c){const r=c.params.name,{data:o}=a(t=>t.from({collection:p}).where(s=>i(s.collection.id,r)).findOne(),[r]),{data:m}=a(t=>t.from({documentCollection:x}).where(s=>i(s.documentCollection.collectionId,r)),[r]);if(!o)throw new b;const n=u(o);return o.name,e.jsxs(e.Fragment,{children:[e.jsx(l,{children:e.jsx("h1",{className:"font-mono text-sm",children:o.name})}),e.jsxs("div",{className:"flex flex-1 min-w-0 flex-col gap-2 px-2 py-6",children:[e.jsxs("h1",{className:"mb-2 inline-flex items-center gap-2 font-mono font-semibold text-2xl",children:[o.name,e.jsx(d,{className:"text-sm empty:hidden",children:o.badge})]}),o.supportStudio?e.jsxs("div",{className:"grid grid-cols-1 border rounded-lg bg-card text-card-foreground overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-2 bg-secondary ps-4 pe-2 py-2",children:[e.jsxs("p",{className:"text-sm text-muted-foreground me-auto",children:[m.length," Items"]}),n&&e.jsx(n.component,{children:e.jsxs(n.trigger,{className:h(),children:[e.jsx(f,{}),"Create Document"]})})]}),m.map(t=>e.jsx(g,{document:t,children:e.jsxs("div",{className:"flex text-sm font-medium hover:bg-accent hover:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground",children:[e.jsx(N,{to:`/collection/${o.name}/${t.id}`,className:"px-4 py-2 flex-1",children:t.name}),e.jsx(j,{document:t})]})},t.id))]}):e.jsx("div",{className:"bg-muted text-sm text-muted-foreground p-4 rounded-lg border text-center",children:"This collection doesn't have studio integration."})]})]})}const R={default:v};export{R as export_3b0c60972019};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as s}from"./react-CzFdRS7Y.js";import{o as A,P as O,i as P,A as _,s as j,v as $,h as z,R as G,u as H,w,x as L,y as K,j as U,z as V,D as W,F as Z,E as q,G as B,H as J,d as Q}from"./index-DrT4Adhh.js";var C="Popover",[E]=U(C,[w]),g=w(),[X,l]=E(C),b=e=>{const{__scopePopover:n,children:o,open:a,defaultOpen:t,onOpenChange:r,modal:c=!1}=e,p=g(n),f=i.useRef(null),[v,h]=i.useState(!1),[x,u]=z({prop:a,defaultProp:t??!1,onChange:r,caller:C});return s.jsx(G,{...p,children:s.jsx(X,{scope:n,contentId:H(),triggerRef:f,open:x,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),hasCustomAnchor:v,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:c,children:o})})};b.displayName=C;var F="PopoverAnchor",N=i.forwardRef((e,n)=>{const{__scopePopover:o,...a}=e,t=l(F,o),r=g(o),{onCustomAnchorAdd:c,onCustomAnchorRemove:p}=t;return i.useEffect(()=>(c(),()=>p()),[c,p]),s.jsx(_,{...r,...a,ref:n})});N.displayName=F;var y="PopoverTrigger",S=i.forwardRef((e,n)=>{const{__scopePopover:o,...a}=e,t=l(y,o),r=g(o),c=A(n,t.triggerRef),p=s.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":t.open,"aria-controls":t.contentId,"data-state":I(t.open),...a,ref:c,onClick:P(e.onClick,t.onOpenToggle)});return t.hasCustomAnchor?p:s.jsx(_,{asChild:!0,...r,children:p})});S.displayName=y;var R="PopoverPortal",[Y,ee]=E(R,{forceMount:void 0}),D=e=>{const{__scopePopover:n,forceMount:o,children:a,container:t}=e,r=l(R,n);return s.jsx(Y,{scope:n,forceMount:o,children:s.jsx(j,{present:o||r.open,children:s.jsx($,{asChild:!0,container:t,children:a})})})};D.displayName=R;var d="PopoverContent",M=i.forwardRef((e,n)=>{const o=ee(d,e.__scopePopover),{forceMount:a=o.forceMount,...t}=e,r=l(d,e.__scopePopover);return s.jsx(j,{present:a||r.open,children:r.modal?s.jsx(te,{...t,ref:n}):s.jsx(re,{...t,ref:n})})});M.displayName=d;var oe=V("PopoverContent.RemoveScroll"),te=i.forwardRef((e,n)=>{const o=l(d,e.__scopePopover),a=i.useRef(null),t=A(n,a),r=i.useRef(!1);return i.useEffect(()=>{const c=a.current;if(c)return L(c)},[]),s.jsx(K,{as:oe,allowPinchZoom:!0,children:s.jsx(T,{...e,ref:t,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,c=>{c.preventDefault(),r.current||o.triggerRef.current?.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,c=>{const p=c.detail.originalEvent,f=p.button===0&&p.ctrlKey===!0,v=p.button===2||f;r.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),re=i.forwardRef((e,n)=>{const o=l(d,e.__scopePopover),a=i.useRef(!1),t=i.useRef(!1);return s.jsx(T,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{e.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||o.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,t.current=!1},onInteractOutside:r=>{e.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(t.current=!0));const c=r.target;o.triggerRef.current?.contains(c)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&t.current&&r.preventDefault()}})}),T=i.forwardRef((e,n)=>{const{__scopePopover:o,trapFocus:a,onOpenAutoFocus:t,onCloseAutoFocus:r,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:h,...x}=e,u=l(d,o),m=g(o);return W(),s.jsx(Z,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:t,onUnmountAutoFocus:r,children:s.jsx(q,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>u.onOpenChange(!1),children:s.jsx(B,{"data-state":I(u.open),role:"dialog",id:u.contentId,...m,...x,ref:n,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",ne=i.forwardRef((e,n)=>{const{__scopePopover:o,...a}=e,t=l(k,o);return s.jsx(O.button,{type:"button",...a,ref:n,onClick:P(e.onClick,()=>t.onOpenChange(!1))})});ne.displayName=k;var ae="PopoverArrow",se=i.forwardRef((e,n)=>{const{__scopePopover:o,...a}=e,t=g(o);return s.jsx(J,{...t,...a,ref:n})});se.displayName=ae;function I(e){return e?"open":"closed"}var ce=b,ie=N,pe=S,le=D,ue=M;function ve({...e}){return s.jsx(ce,{"data-slot":"popover",...e})}function Pe({...e}){return s.jsx(pe,{"data-slot":"popover-trigger",...e})}function ge({className:e,align:n="center",sideOffset:o=4,...a}){return s.jsx(le,{children:s.jsx(ue,{"data-slot":"popover-content",align:n,sideOffset:o,className:Q("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 flex flex-col gap-4 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",e),...a})})}function he({...e}){return s.jsx(ie,{"data-slot":"popover-anchor",...e})}export{ie as A,ue as C,Pe as P,ce as R,pe as T,ge as a,ve as b,he as c,le as d};
|