@service_laboratory/ui 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2943 -2812
- package/dist/index.umd.cjs +14 -14
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
(function(A,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(A=typeof globalThis<"u"?globalThis:A||self,D(A.ui={},A.react))})(this,(function(A,D){"use strict";function
|
|
1
|
+
(function(A,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(A=typeof globalThis<"u"?globalThis:A||self,D(A.ui={},A.react))})(this,(function(A,D){"use strict";function si(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=si(D);function ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}},tt={};var gr;function ci(){if(gr)return tt;gr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return tt.Fragment=t,tt.jsx=n,tt.jsxs=n,tt}var nt={};var hr;function li(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===B?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case C:return(S.displayName||"Context")+".Provider";case x:return(S._context.displayName||"Context")+".Consumer";case w:var I=S.render;return S=S.displayName,S||(S=I.displayName||I.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case O:return I=S.displayName||null,I!==null?I:e(S.type)||"Memo";case R:I=S._payload,S=S._init;try{return e(S(I))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var I=!1}catch{I=!0}if(I){I=console;var G=I.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return G.call(I,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(S)}}function r(S){if(S===h)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===R)return"<...>";try{var I=e(S);return I?"<"+I+">":"<...>"}catch{return"<...>"}}function o(){var S=U.A;return S===null?null:S.getOwner()}function a(){return Error("react-stack-top-frame")}function s(S){if(H.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function i(S,I){function G(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",I))}G.isReactWarning=!0,Object.defineProperty(S,"key",{get:G,configurable:!0})}function l(){var S=e(this.type);return F[S]||(F[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function c(S,I,G,V,q,ee,se,$){return G=ee.ref,S={$$typeof:g,type:S,key:I,props:ee,_owner:q},(G!==void 0?G:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function p(S,I,G,V,q,ee,se,$){var J=I.children;if(J!==void 0)if(V)if(X(J)){for(V=0;V<J.length;V++)u(J[V]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(J);if(H.call(I,"key")){J=e(S);var le=Object.keys(I).filter(function($e){return $e!=="key"});V=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",k[J+V]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,V,J,le,J),k[J+V]=!0)}if(J=null,G!==void 0&&(n(G),J=""+G),s(I)&&(n(I.key),J=""+I.key),"key"in I){G={};for(var
|
|
6
|
+
<%s key={someKey} {...props} />`,V,J,le,J),k[J+V]=!0)}if(J=null,G!==void 0&&(n(G),J=""+G),s(I)&&(n(I.key),J=""+I.key),"key"in I){G={};for(var Ce in I)Ce!=="key"&&(G[Ce]=I[Ce])}else G=I;return J&&i(G,typeof S=="function"?S.displayName||S.name||"Unknown":S),c(S,J,ee,q,o(),G,se,$)}function u(S){typeof S=="object"&&S!==null&&S.$$typeof===g&&S._store&&(S._store.validated=1)}var f=D,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),U=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(S){return S()}};var Z,F={},K=f.react_stack_bottom_frame.bind(f,a)(),_=W(r(a)),k={};nt.Fragment=h,nt.jsx=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!1,V,q,ee?Error("react-stack-top-frame"):K,ee?W(r(S)):_)},nt.jsxs=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!0,V,q,ee?Error("react-stack-top-frame"):K,ee?W(r(S)):_)}})()),nt}var vr;function ui(){return vr||(vr=1,process.env.NODE_ENV==="production"?wt.exports=ci():wt.exports=li()),wt.exports}var m=ui();function di(e,t){const n=d.createContext(t),r=a=>{const{children:s,...i}=a,l=d.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ee(e,t=[]){let n=[];function r(a,s){const i=d.createContext(s),l=n.length;n=[...n,s];const c=u=>{const{scope:f,children:g,...v}=u,h=f?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return m.jsx(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(u,f){const g=f?.[e]?.[l]||i,v=d.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=n.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,fi(o,...t)]}function fi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...i,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function fe(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}var ue=globalThis?.document?d.useLayoutEffect:()=>{},St={exports:{}},ne={};var br;function pi(){if(br)return ne;br=1;var e=D;function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,c,p){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:u==null?null:""+u,children:l,containerInfo:c,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(l,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(l,c,null,p)},ne.flushSync=function(l){var c=s.T,p=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=c,r.p=p,r.d.f()}},ne.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},ne.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},ne.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;p==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:u,integrity:f,fetchPriority:g}):p==="script"&&r.d.X(l,{crossOrigin:u,integrity:f,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},ne.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var p=i(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},ne.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin);r.d.L(l,p,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},ne.preloadModule=function(l,c){if(typeof l=="string")if(c){var p=i(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},ne.requestFormReset=function(l){r.d.r(l)},ne.unstable_batchedUpdates=function(l,c){return l(c)},ne.useFormState=function(l,c,p){return s.H.useFormState(l,c,p)},ne.useFormStatus=function(){return s.H.useHostTransitionStatus()},ne.version="19.1.1",ne}var re={};var yr;function mi(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(u){return""+u}function n(u,f,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:c,key:v==null?null:""+v,children:u,containerInfo:f,implementation:g}}function r(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function o(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":'something with type "'+typeof u+'"'}function a(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":typeof u=="string"?JSON.stringify(u):typeof u=="number"?"`"+u+"`":'something with type "'+typeof u+'"'}function s(){var u=p.H;return u===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
7
7
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
8
8
|
2. You might be breaking the Rules of Hooks
|
|
9
9
|
3. You might have more than one copy of React in the same app
|
|
10
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,re.createPortal=function(u,d){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,d,null,g)},re.flushSync=function(u){var d=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=d,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},re.preconnect=function(u,d){typeof u=="string"&&u?d!=null&&typeof d!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(d)):d!=null&&typeof d.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(d.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(u,d))},re.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var d=arguments[1];typeof d=="object"&&d.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(d)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(d))}typeof u=="string"&&l.d.D(u)},re.preinit=function(u,d){if(typeof u=="string"&&u?d==null||typeof d!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(d)):d.as!=="style"&&d.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&d&&typeof d.as=="string"){var g=d.as,v=r(g,d.crossOrigin),h=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;g==="style"?l.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},re.preinitModule=function(u,d){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),d!==void 0&&typeof d!="object"?g+=" The `options` argument encountered was "+o(d)+".":d&&"as"in d&&d.as!=="script"&&(g+=" The `as` option encountered was "+a(d.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=d&&typeof d.as=="string"?d.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(g=r(d.as,d.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&l.d.M(u))},re.preload=function(u,d){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),d==null||typeof d!="object"?g+=" The `options` argument encountered was "+o(d)+".":typeof d.as=="string"&&d.as||(g+=" The `as` option encountered was "+o(d.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){g=d.as;var v=r(g,d.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},re.preloadModule=function(u,d){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),d!==void 0&&typeof d!="object"?g+=" The `options` argument encountered was "+o(d)+".":d&&"as"in d&&typeof d.as!="string"&&(g+=" The `as` option encountered was "+o(d.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(d?(g=r(d.as,d.crossOrigin),l.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0})):l.d.m(u))},re.requestFormReset=function(u){l.d.r(u)},re.unstable_batchedUpdates=function(u,d){return u(d)},re.useFormState=function(u,d,g){return s().useFormState(u,d,g)},re.useFormStatus=function(){return s().useHostTransitionStatus()},re.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),re}var hr;function ii(){if(hr)return St.exports;hr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=ai()):St.exports=si(),St.exports}var an=ii();const ci=Qs(an);function vr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=vr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():vr(e[o],null)}}}}function ee(...e){return f.useCallback(nt(...e),e)}function ze(e){const t=li(e),n=f.forwardRef((r,o)=>{const{children:a,...s}=r,i=f.Children.toArray(a),l=i.find(di);if(l){const c=l.props.children,p=i.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ae=ze("Slot");function li(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const s=pi(o),i=fi(a,o.props);return o.type!==f.Fragment&&(i.ref=r?nt(r,s):s),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var br=Symbol("radix.slottable");function ui(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=br,t}function di(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===br}function fi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function pi(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 mi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=mi.reduce((e,t)=>{const n=ze(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yr(e,t){e&&an.flushSync(()=>e.dispatchEvent(t))}var Et={exports:{}},sn={};var xr;function gi(){if(xr)return sn;xr=1;var e=D;function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,d){var g=d(),v=r({inst:{value:g,getSnapshot:d}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=d,l(h)&&b({inst:h})},[u,g,d]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var d=u.getSnapshot;u=u.value;try{var g=d();return!n(u,g)}catch{return!0}}function c(u,d){return d()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return sn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,sn}var cn={};var wr;function hi(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,w=b[1];return l(function(){y.value=h,y.getSnapshot=v,n(y)&&w({inst:y})},[g,h,v]),i(function(){return n(y)&&w({inst:y}),g(function(){n(y)&&w({inst:y})})},[g]),c(h),h}function n(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;cn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cn}var Sr;function vi(){return Sr||(Sr=1,process.env.NODE_ENV==="production"?Et.exports=gi():Et.exports=hi()),Et.exports}var bi=vi();function yi(){return bi.useSyncExternalStore(xi,()=>!0,()=>!1)}function xi(){return()=>{}}var ln="Avatar",[wi,ag]=Oe(ln),[Si,Er]=wi(ln),Cr=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=f.useState("idle");return m.jsx(Si,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Z.span,{...r,ref:t})})});Cr.displayName=ln;var _r="AvatarImage",Rr=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Er(_r,n),i=Ei(r,a),l=de(c=>{o(c),s.onImageLoadingStatusChange(c)});return fe(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Z.img,{...a,ref:t,src:r}):null});Rr.displayName=_r;var Or="AvatarFallback",Ar=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Er(Or,n),[s,i]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Z.span,{...o,ref:t}):null});Ar.displayName=Or;function Mr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Ei(e,{referrerPolicy:t,crossOrigin:n}){const r=yi(),o=f.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=f.useState(()=>Mr(a,e));return fe(()=>{i(Mr(a,e))},[a,e]),fe(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,n,t]),s}var Ci=Cr,_i=Rr,Ri=Ar;function Tr(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=Tr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tr(e))&&(r&&(r+=" "),r+=t);return r}const un="-",Oi=e=>{const t=Mi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(un);return i[0]===""&&i.length!==1&&i.shift(),kr(i,t)||Ai(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},kr=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?kr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(un);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Nr=/^\[(.+)\]$/,Ai=e=>{if(Nr.test(e)){const t=Nr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Mi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)dn(n[o],r,o,t);return r},dn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Dr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Ti(o)){dn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{dn(s,Dr(t,a),n,r)})})},Dr=(e,t)=>{let n=e;return t.split(un).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ti=e=>e.isThemeGetter,Pi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},fn="!",pn=":",ki=pn.length,Ni=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===pn){a.push(o.slice(l,v)),l=v+ki;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=Di(p),d=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+pn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Di=e=>e.endsWith(fn)?e.substring(0,e.length-1):e.startsWith(fn)?e.substring(1):e,Ii=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ji=e=>({cache:Pi(e.cacheSize),parseClassName:Ni(e),sortModifiers:Ii(e),...Oi(e)}),Li=/\s+/,Fi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Li);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:d,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=r(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const w=a(d).join(":"),E=g?w+fn:w,x=E+y;if(s.includes(x))continue;s.push(x);const C=o(y,b);for(let M=0;M<C.length;++M){const O=C[M];s.push(E+O)}l=p+(l.length>0?" "+l:l)}return l};function $i(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ir(t))&&(r&&(r+=" "),r+=n);return r}const Ir=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ir(e[r]))&&(n&&(n+=" "),n+=t);return n};function zi(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return n=ji(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const p=Fi(l,n);return o(l,p),p}return function(){return a($i.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},jr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vi=/^\d+\/\d+$/,Bi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gi=/\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$/,Wi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Vi.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),mn=e=>e.endsWith("%")&&z(e.slice(0,-1)),Ee=e=>Bi.test(e),Ki=()=>!0,Yi=e=>Gi.test(e)&&!Wi.test(e),Fr=()=>!1,Xi=e=>Ui.test(e),qi=e=>Hi.test(e),Zi=e=>!T(e)&&!P(e),Ji=e=>Be(e,Gr,Fr),T=e=>jr.test(e),De=e=>Be(e,Wr,Yi),gn=e=>Be(e,rc,z),$r=e=>Be(e,Vr,Fr),Qi=e=>Be(e,Br,qi),Ct=e=>Be(e,Ur,Xi),P=e=>Lr.test(e),rt=e=>Ge(e,Wr),ec=e=>Ge(e,oc),zr=e=>Ge(e,Vr),tc=e=>Ge(e,Gr),nc=e=>Ge(e,Br),_t=e=>Ge(e,Ur,!0),Be=(e,t,n)=>{const r=jr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Lr.exec(e);return r?r[1]?t(r[1]):n:!1},Vr=e=>e==="position"||e==="percentage",Br=e=>e==="image"||e==="url",Gr=e=>e==="length"||e==="size"||e==="bg-size",Wr=e=>e==="length",rc=e=>e==="number",oc=e=>e==="family-name",Ur=e=>e==="shadow",ac=zi(()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),d=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),w=te("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...x(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[P,T,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",P,T],U=()=>["auto",{span:["full",Me,P,T]},Me,P,T],H=()=>[Me,"auto",P,T],Y=()=>["auto","min","max","fr",P,T],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,P,T],k=()=>[...x(),zr,$r,{position:[P,T]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",tc,Ji,{size:[P,T]}],G=()=>[mn,rt,De],V=()=>["","none","full",c,P,T],X=()=>["",z,rt,De],Q=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,mn,zr,$r],J=()=>["","none",v,P,T],le=()=>["none",z,P,T],Se=()=>["none",z,P,T],$e=()=>[z,P,T],Qe=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Ki],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[Zi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",z],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,T,P,b]}],container:["container"],columns:[{columns:[z,T,P,i]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:C()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",P,T]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",T]}],grow:[{grow:["",z,P,T]}],shrink:[{shrink:["",z,P,T]}],order:[{order:[Me,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,rt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,gn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mn,T]}],"font-family":[{font:[ec,T,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,P,T]}],"line-clamp":[{"line-clamp":[z,"none",P,gn]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",P,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",P,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",P,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,T]}],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",P,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,P,T],radial:["",P,T],conic:[Me,P,T]},nc,Qi]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],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:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,P,T]}],"outline-w":[{outline:["",z,rt,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Ct]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Ct]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,_t,Ct]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,P,T]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:J()}],brightness:[{brightness:[z,P,T]}],contrast:[{contrast:[z,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Ct]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,P,T]}],"hue-rotate":[{"hue-rotate":[z,P,T]}],invert:[{invert:["",z,P,T]}],saturate:[{saturate:[z,P,T]}],sepia:[{sepia:["",z,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[z,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,P,T]}],"backdrop-invert":[{"backdrop-invert":["",z,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[z,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[z,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",z,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",P,T]}],ease:[{ease:["linear","initial",y,P,T]}],delay:[{delay:[z,P,T]}],animate:[{animate:["none",w,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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",P,T]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",P,T]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,rt,De,gn]}],stroke:[{stroke:["none",..._()]}],"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"]}});function N(...e){return ac(Pr(e))}function sc({className:e,...t}){return m.jsx(Ci,{"data-slot":"avatar",className:N("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function ic({className:e,...t}){return m.jsx(_i,{"data-slot":"avatar-image",className:N("aspect-square size-full",e),...t})}function cc({className:e,...t}){return m.jsx(Ri,{"data-slot":"avatar-fallback",className:N("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const Hr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kr=Pr,hn=(e,t)=>n=>{var r;if(t?.variants==null)return Kr(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=n?.[c],u=a?.[c];if(p===null)return null;const d=Hr(p)||Hr(u);return o[c][d]}),i=n&&Object.entries(n).reduce((c,p)=>{let[u,d]=p;return d===void 0||(c[u]=d),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:d,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,d]:c},[]);return Kr(e,s,l,n?.class,n?.className)},Yr=hn("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function lc({className:e,variant:t,asChild:n=!1,...r}){const o=n?Ae:"span";return m.jsx(o,{"data-slot":"badge",className:N(Yr({variant:t}),e),...r})}const Xr=hn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function qr({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Ae:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:N(Xr({variant:t,size:n,className:e})),...o})}function uc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function dc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function fc({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:N("leading-none font-semibold",e),...t})}function pc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:N("text-muted-foreground text-sm",e),...t})}function mc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:N("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function gc({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:N("px-6",e),...t})}function hc({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:N("flex items-center px-6 [.border-t]:pt-6",e),...t})}var vc="Label",Zr=f.forwardRef((e,t)=>m.jsx(Z.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Zr.displayName=vc;var bc=Zr,yc=e=>e.type==="checkbox",ot=e=>e instanceof Date,vn=e=>e==null;const Jr=e=>typeof e=="object";var Ie=e=>!vn(e)&&!Array.isArray(e)&&Jr(e)&&!ot(e),xc=e=>Ie(e)&&e.target?yc(e.target)?e.target.checked:e.target.value:e,wc=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Sc=(e,t)=>e.has(wc(t)),Ec=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Cc=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qr(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Cc&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Ec(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Qr(e[o]));else return e;return t}var eo=e=>/^\w*$/.test(e),bn=e=>e===void 0,_c=e=>Array.isArray(e)?e.filter(Boolean):[],to=e=>_c(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(eo(t)?[t]:to(t)).reduce((o,a)=>vn(o)?o:o[a],e);return bn(r)||r===e?bn(e[t])?n:e[t]:r},yn=e=>typeof e=="boolean",no=(e,t,n)=>{let r=-1;const o=eo(t)?[t]:to(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const c=e[i];l=Ie(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const ro={BLUR:"blur",CHANGE:"change"},oo={all:"all"},xn=D.createContext(null);xn.displayName="HookFormContext";const Rt=()=>D.useContext(xn),Rc=e=>{const{children:t,...n}=e;return D.createElement(xn.Provider,{value:n},t)};var Oc=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==oo.all&&(t._proxyFormState[s]=!r||oo.all),n&&(n[s]=!0),e[s]}});return o};const ao=typeof window<"u"?D.useLayoutEffect:D.useEffect;function so(e){const t=Rt(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=D.useState(n._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ao(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!r&&i({...n._formState,...c})}}),[o,r,a]),D.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>Oc(s,n,l.current,!1),[s,n])}var Ac=e=>typeof e=="string",io=(e,t,n,r,o)=>Ac(e)?ae(n,e,o):Array.isArray(e)?e.map(a=>ae(n,a)):n,co=e=>vn(e)||!Jr(e);function Ot(e,t,n=new WeakSet){if(co(e)||co(t))return Object.is(e,t);if(ot(e)&&ot(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ot(s)&&ot(i)||Ie(s)&&Ie(i)||Array.isArray(s)&&Array.isArray(i)?!Ot(s,i,n):!Object.is(s,i))return!1}}return!0}function Mc(e){const t=Rt(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(n),d=D.useRef(r);c.current=i;const[g,v]=D.useState(()=>{const x=n._getWatch(r,l.current);return c.current?c.current(x):x}),h=D.useCallback(x=>{const C=io(r,n._names,x||n._formValues,!1,l.current);return c.current?c.current(C):C},[n._formValues,n._names,r]),b=D.useCallback(x=>{if(!a){const C=io(r,n._names,x||n._formValues,!1,l.current);if(c.current){const M=c.current(C);Ot(M,p.current)||(v(M),p.current=M)}else v(C)}},[n._formValues,n._names,a,r]);ao(()=>((u.current!==n||!Ot(d.current,r))&&(u.current=n,d.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:x=>{b(x.values)}})),[n,s,r,b]),D.useEffect(()=>n._removeUnmounted());const y=u.current!==n,w=d.current,E=D.useMemo(()=>{if(a)return null;const x=!y&&!Ot(w,r);return y||x?h():null},[a,y,r,w,h]);return E!==null?E:g}function Tc(e){const t=Rt(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=Sc(o._names.array,n),c=D.useMemo(()=>ae(o._formValues,n,ae(o._defaultValues,n,s)),[o,n,s]),p=Mc({control:o,name:n,defaultValue:c,exact:i}),u=so({control:o,name:n,exact:i}),d=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(n,{...e.rules,value:p,...yn(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,n)},error:{enumerable:!0,get:()=>ae(u.errors,n)}}),[u,n]),b=D.useCallback(x=>v.current.onChange({target:{value:xc(x),name:n},type:ro.CHANGE}),[n]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,n),name:n},type:ro.BLUR}),[n,o._formValues]),w=D.useCallback(x=>{const C=ae(o._fields,n);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:M=>x.setCustomValidity(M),reportValidity:()=>x.reportValidity()})},[o._fields,n]),E=D.useMemo(()=>({name:n,value:p,...yn(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:b,onBlur:y,ref:w}),[n,r,u.disabled,b,y,w,p]);return D.useEffect(()=>{const x=o._options.shouldUnregister||a,C=g.current;C&&C!==n&&!l&&o.unregister(C),o.register(n,{...d.current.rules,...yn(d.current.disabled)?{disabled:d.current.disabled}:{}});const M=(O,R)=>{const L=ae(o._fields,O);L&&L._f&&(L._f.mount=R)};if(M(n,!0),x){const O=Qr(ae(o._options.defaultValues,n,d.current.defaultValue));no(o._defaultValues,n,O),bn(ae(o._formValues,n))&&no(o._formValues,n,O)}return!l&&o.register(n),g.current=n,()=>{(l?x&&!o._state.action:x)?o.unregister(n):M(n,!1)}},[n,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:E,formState:u,fieldState:h}),[E,u,h])}const Pc=e=>e.render(Tc(e));function lo({className:e,...t}){return m.jsx(bc,{"data-slot":"label",className:N("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const kc=Rc,uo=f.createContext({}),Nc=({...e})=>m.jsx(uo.Provider,{value:{name:e.name},children:m.jsx(Pc,{...e})}),at=()=>{const e=f.useContext(uo),t=f.useContext(fo),{getFieldState:n}=Rt(),r=so({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},fo=f.createContext({});function Dc({className:e,...t}){const n=f.useId();return m.jsx(fo.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:N("grid gap-2",e),...t})})}function Ic({className:e,...t}){const{error:n,formItemId:r}=at();return m.jsx(lo,{"data-slot":"form-label","data-error":!!n,className:N("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function jc({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=at();return m.jsx(Ae,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Lc({className:e,...t}){const{formDescriptionId:n}=at();return m.jsx("p",{"data-slot":"form-description",id:n,className:N("text-muted-foreground text-sm",e),...t})}function Fc({className:e,...t}){const{error:n,formMessageId:r}=at(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:N("text-destructive text-sm",e),...t,children:o}):null}function po({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var $c=f[" useInsertionEffect ".trim().toString()]||fe;function st({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=zc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=f.useRef(e!==void 0);f.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,r])}const c=f.useCallback(p=>{if(i){const u=Vc(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function zc({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return $c(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Vc(e){return typeof e=="function"}function mo(e){const t=e+"CollectionProvider",[n,r]=Oe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,w=D.useRef(null),E=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:E,collectionRef:w,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:w}=h,E=a(i,y),x=ee(b,E.collectionRef);return m.jsx(l,{ref:x,children:w})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",d=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:w,...E}=h,x=D.useRef(null),C=ee(b,x),M=a(p,y);return D.useEffect(()=>(M.itemMap.set(x,{ref:x,...E}),()=>void M.itemMap.delete(x))),m.jsx(d,{[u]:"",ref:C,children:w})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,O)=>E.indexOf(M.ref.current)-E.indexOf(O.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,r]}var Bc=f.createContext(void 0);function go(e){const t=f.useContext(Bc);return e||t||"ltr"}function Gc(e,t=globalThis?.document){const n=de(e);f.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 Wc="DismissableLayer",wn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Hc="dismissableLayer.focusOutside",ho,vo=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=f.useContext(vo),[p,u]=f.useState(null),d=p?.ownerDocument??globalThis?.document,[,g]=f.useState({}),v=ee(t,O=>u(O)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),w=p?h.indexOf(p):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,x=w>=y,C=Xc(O=>{const R=O.target,L=[...c.branches].some(B=>B.contains(R));!x||L||(o?.(O),s?.(O),O.defaultPrevented||i?.())},d),M=qc(O=>{const R=O.target;[...c.branches].some(B=>B.contains(R))||(a?.(O),s?.(O),O.defaultPrevented||i?.())},d);return Gc(O=>{w===c.layers.size-1&&(r?.(O),!O.defaultPrevented&&i&&(O.preventDefault(),i()))},d),f.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ho=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),bo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ho)}},[p,d,n,c]),f.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),bo())},[p,c]),f.useEffect(()=>{const O=()=>g({});return document.addEventListener(wn,O),()=>document.removeEventListener(wn,O)},[]),m.jsx(Z.div,{...l,ref:v,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,C.onPointerDownCapture)})});At.displayName=Wc;var Kc="DismissableLayerBranch",Yc=f.forwardRef((e,t)=>{const n=f.useContext(vo),r=f.useRef(null),o=ee(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Z.div,{...e,ref:o})});Yc.displayName=Kc;function Xc(e,t=globalThis?.document){const n=de(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){yo(Uc,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qc(e,t=globalThis?.document){const n=de(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&yo(Hc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bo(){const e=new CustomEvent(wn);document.dispatchEvent(e)}function yo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yr(o,a):o.dispatchEvent(a)}var Sn=0;function xo(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wo()),document.body.insertAdjacentElement("beforeend",e[1]??wo()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function wo(){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 En="focusScope.autoFocusOnMount",Cn="focusScope.autoFocusOnUnmount",So={bubbles:!1,cancelable:!0},Zc="FocusScope",_n=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=de(o),p=de(a),u=f.useRef(null),d=ee(t,h=>l(h)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let h=function(E){if(g.paused||!i)return;const x=E.target;i.contains(x)?u.current=x:Te(u.current,{select:!0})},b=function(E){if(g.paused||!i)return;const x=E.relatedTarget;x!==null&&(i.contains(x)||Te(u.current,{select:!0}))},y=function(E){if(document.activeElement===document.body)for(const C of E)C.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const w=new MutationObserver(y);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),w.disconnect()}}},[r,i,g.paused]),f.useEffect(()=>{if(i){_o.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(En,So);i.addEventListener(En,c),i.dispatchEvent(y),y.defaultPrevented||(Jc(rl(Eo(i)),{select:!0}),document.activeElement===h&&Te(i))}return()=>{i.removeEventListener(En,c),setTimeout(()=>{const y=new CustomEvent(Cn,So);i.addEventListener(Cn,p),i.dispatchEvent(y),y.defaultPrevented||Te(h??document.body,{select:!0}),i.removeEventListener(Cn,p),_o.remove(g)},0)}}},[i,c,p,g]);const v=f.useCallback(h=>{if(!n&&!r||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const w=h.currentTarget,[E,x]=Qc(w);E&&x?!h.shiftKey&&y===x?(h.preventDefault(),n&&Te(E,{select:!0})):h.shiftKey&&y===E&&(h.preventDefault(),n&&Te(x,{select:!0})):y===w&&h.preventDefault()}},[n,r,g.paused]);return m.jsx(Z.div,{tabIndex:-1,...s,ref:d,onKeyDown:v})});_n.displayName=Zc;function Jc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Qc(e){const t=Eo(e),n=Co(t,e),r=Co(t.reverse(),e);return[n,r]}function Eo(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 Co(e,t){for(const n of e)if(!el(n,{upTo:t}))return n}function el(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 tl(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tl(e)&&t&&e.select()}}var _o=nl();function nl(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ro(e,t),e.unshift(t)},remove(t){e=Ro(e,t),e[0]?.resume()}}}function Ro(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rl(e){return e.filter(t=>t.tagName!=="A")}var ol=f[" useId ".trim().toString()]||(()=>{}),al=0;function Ce(e){const[t,n]=f.useState(ol());return fe(()=>{n(r=>r??String(al++))},[e]),e||(t?`radix-${t}`:"")}const sl=["top","right","bottom","left"],Pe=Math.min,ie=Math.max,Mt=Math.round,Tt=Math.floor,he=e=>({x:e,y:e}),il={left:"right",right:"left",bottom:"top",top:"bottom"},cl={start:"end",end:"start"};function Rn(e,t,n){return ie(e,Pe(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function We(e){return e.split("-")[1]}function On(e){return e==="x"?"y":"x"}function An(e){return e==="y"?"height":"width"}const ll=new Set(["top","bottom"]);function ve(e){return ll.has(Re(e))?"y":"x"}function Mn(e){return On(ve(e))}function ul(e,t,n){n===void 0&&(n=!1);const r=We(e),o=Mn(e),a=An(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function dl(e){const t=Pt(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>cl[t])}const Oo=["left","right"],Ao=["right","left"],fl=["top","bottom"],pl=["bottom","top"];function ml(e,t,n){switch(e){case"top":case"bottom":return n?t?Ao:Oo:t?Oo:Ao;case"left":case"right":return t?fl:pl;default:return[]}}function gl(e,t,n,r){const o=We(e);let a=ml(Re(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Tn)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>il[t])}function hl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mo(e){return typeof e!="number"?hl(e):{top:e,right:e,bottom:e,left:e}}function kt(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 To(e,t,n){let{reference:r,floating:o}=e;const a=ve(t),s=Mn(t),i=An(s),l=Re(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(We(t)){case"start":g[s]-=d*(n&&c?-1:1);break;case"end":g[s]+=d*(n&&c?-1:1);break}return g}const vl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=To(c,r,l),d=r,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x:w,y:E,data:x,reset:C}=await y({x:p,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=w??p,u=E??u,g={...g,[b]:{...g[b],...x}},C&&v<=50&&(v++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:u}=To(c,d,l)),h=-1)}return{x:p,y:u,placement:d,strategy:o,middlewareData:g}};async function it(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:d=!1,padding:g=0}=_e(t,e),v=Mo(g),b=i[d?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),x=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},C=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:E,strategy:l}):w);return{top:(y.top-C.top+v.top)/x.y,bottom:(C.bottom-y.bottom+v.bottom)/x.y,left:(y.left-C.left+v.left)/x.x,right:(C.right-y.right+v.right)/x.x}}const bl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=_e(e,t)||{};if(c==null)return{};const u=Mo(p),d={x:n,y:r},g=Mn(o),v=An(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",w=b?"bottom":"right",E=b?"clientHeight":"clientWidth",x=a.reference[v]+a.reference[g]-d[g]-a.floating[v],C=d[g]-a.reference[g],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=M?M[E]:0;(!O||!await(s.isElement==null?void 0:s.isElement(M)))&&(O=i.floating[E]||a.floating[v]);const R=x/2-C/2,L=O/2-h[v]/2-1,B=Pe(u[y],L),U=Pe(u[w],L),H=B,Y=O-h[v]-U,W=O/2-h[v]/2+R,q=Rn(H,W,Y),F=!l.arrow&&We(o)!=null&&W!==q&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-Y:0;return{[g]:d[g]+K,data:{[g]:q,centerOffset:W-q-K,...F&&{alignmentOffset:K}},reset:F}}}),yl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=_e(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Re(o),w=ve(i),E=Re(i)===i,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=d||(E||!h?[Pt(i)]:dl(i)),M=v!=="none";!d&&M&&C.push(...gl(i,h,v,x));const O=[i,...C],R=await it(t,b),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(R[y]),u){const W=ul(o,s,x);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,q=O[W];if(q&&(!(u==="alignment"?w!==ve(q):!1)||B.every(_=>ve(_.placement)===w?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:q}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var Y;const K=(Y=B.filter(_=>{if(M){const k=ve(_.placement);return k===w||k==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(k=>k>0).reduce((k,S)=>k+S,0)]).sort((_,k)=>_[1]-k[1])[0])==null?void 0:Y[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Po(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ko(e){return sl.some(t=>e[t]>=0)}const xl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const a=await it(t,{...o,elementContext:"reference"}),s=Po(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ko(s)}}}case"escaped":{const a=await it(t,{...o,altBoundary:!0}),s=Po(a,n.floating);return{data:{escapedOffsets:s,escaped:ko(s)}}}default:return{}}}}},No=new Set(["left","top"]);async function wl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Re(n),i=We(n),l=ve(n)==="y",c=No.has(s)?-1:1,p=a&&l?-1:1,u=_e(t,e);let{mainAxis:d,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:d*c}:{x:d*c,y:g*p}}const Sl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await wl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},El=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...l}=_e(e,t),c={x:n,y:r},p=await it(t,l),u=ve(Re(o)),d=On(u);let g=c[d],v=c[u];if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=g+p[b],E=g-p[y];g=Rn(w,g,E)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",w=v+p[b],E=v-p[y];v=Rn(w,v,E)}const h=i.fn({...t,[d]:g,[u]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:a,[u]:s}}}}}},Cl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=_e(e,t),p={x:n,y:r},u=ve(o),d=On(u);let g=p[d],v=p[u];const h=_e(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const E=d==="y"?"height":"width",x=a.reference[d]-a.floating[E]+b.mainAxis,C=a.reference[d]+a.reference[E]-b.mainAxis;g<x?g=x:g>C&&(g=C)}if(c){var y,w;const E=d==="y"?"width":"height",x=No.has(Re(o)),C=a.reference[u]-a.floating[E]+(x&&((y=s.offset)==null?void 0:y[u])||0)+(x?0:b.crossAxis),M=a.reference[u]+a.reference[E]+(x?0:((w=s.offset)==null?void 0:w[u])||0)-(x?b.crossAxis:0);v<C?v=C:v>M&&(v=M)}return{[d]:g,[u]:v}}}},_l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=_e(e,t),p=await it(t,c),u=Re(o),d=We(o),g=ve(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=d==="end"?"top":"bottom");const w=h-p.top-p.bottom,E=v-p.left-p.right,x=Pe(h-p[b],w),C=Pe(v-p[y],E),M=!t.middlewareData.shift;let O=x,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=w),M&&!d){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),Y=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):O=h-2*(H!==0||Y!==0?H+Y:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:O});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function Ue(e){return Do(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Do(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Do(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function pe(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function ye(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Io(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Rl=new Set(["inline","contents"]);function ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Rl.has(o)}const Ol=new Set(["table","td","th"]);function Al(e){return Ol.has(Ue(e))}const Ml=[":popover-open",":modal"];function Dt(e){return Ml.some(t=>{try{return e.matches(t)}catch{return!1}})}const Tl=["transform","translate","scale","rotate","perspective"],Pl=["transform","translate","scale","rotate","perspective","filter"],kl=["paint","layout","strict","content"];function Pn(e){const t=kn(),n=pe(e)?me(e):e;return Tl.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)||Pl.some(r=>(n.willChange||"").includes(r))||kl.some(r=>(n.contain||"").includes(r))}function Nl(e){let t=ke(e);for(;ye(t)&&!He(t);){if(Pn(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dl=new Set(["html","body","#document"]);function He(e){return Dl.has(Ue(e))}function me(e){return ce(e).getComputedStyle(e)}function It(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(Ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Io(e)&&e.host||be(e);return Io(t)?t.host:t}function jo(e){const t=ke(e);return He(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&ct(t)?t:jo(t)}function lt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=Nn(s);return t.concat(s,s.visualViewport||[],ct(o)?o:[],i&&n?lt(i):[])}return t.concat(o,lt(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lo(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Mt(n)!==a||Mt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Dn(e){return pe(e)?e:e.contextElement}function Ke(e){const t=Dn(e);if(!ye(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Lo(t);let s=(a?Mt(n.width):n.width)/r,i=(a?Mt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Il=he(0);function Fo(e){const t=ce(e);return!kn()||!t.visualViewport?Il:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dn(e);let s=he(1);t&&(r?pe(r)&&(s=Ke(r)):s=Ke(e));const i=jl(a,n,r)?Fo(a):he(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const d=ce(a),g=r&&pe(r)?ce(r):r;let v=d,h=Nn(v);for(;h&&r&&g!==v;){const b=Ke(h),y=h.getBoundingClientRect(),w=me(h),E=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*b.x,x=y.top+(h.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=E,c+=x,v=ce(h),h=Nn(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const n=It(e).scrollLeft;return t?t.left+n:je(be(e)).left+n}function $o(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ll(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=be(r),i=t?Dt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=he(1);const p=he(0),u=ye(r);if((u||!u&&!a)&&((Ue(r)!=="body"||ct(s))&&(l=It(r)),ye(r))){const g=je(r);c=Ke(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const d=s&&!u&&!a?$o(s,l):he(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+d.x,y:n.y*c.y-l.scrollTop*c.y+p.y+d.y}}function Fl(e){return Array.from(e.getClientRects())}function $l(e){const t=be(e),n=It(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jt(e);const i=-n.scrollTop;return me(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const zo=25;function zl(e,t){const n=ce(e),r=be(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(r);if(c<=0){const p=r.ownerDocument,u=p.body,d=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-g);v<=zo&&(a-=v)}else c<=zo&&(a+=c);return{width:a,height:s,x:i,y:l}}const Vl=new Set(["absolute","fixed"]);function Bl(e,t){const n=je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ye(e)?Ke(e):he(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function Vo(e,t,n){let r;if(t==="viewport")r=zl(e,n);else if(t==="document")r=$l(be(e));else if(pe(t))r=Bl(t,n);else{const o=Fo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Bo(e,t){const n=ke(e);return n===t||!pe(n)||He(n)?!1:me(n).position==="fixed"||Bo(n,t)}function Gl(e,t){const n=t.get(e);if(n)return n;let r=lt(e,[],!1).filter(i=>pe(i)&&Ue(i)!=="body"),o=null;const a=me(e).position==="fixed";let s=a?ke(e):e;for(;pe(s)&&!He(s);){const i=me(s),l=Pn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Vl.has(o.position)||ct(s)&&!l&&Bo(e,s))?r=r.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,r),r}function Wl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:Gl(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((c,p)=>{const u=Vo(t,p,o);return c.top=ie(u.top,c.top),c.right=Pe(u.right,c.right),c.bottom=Pe(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},Vo(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ul(e){const{width:t,height:n}=Lo(e);return{width:t,height:n}}function Hl(e,t,n){const r=ye(t),o=be(t),a=n==="fixed",s=je(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=he(0);function c(){l.x=jt(o)}if(r||!r&&!a)if((Ue(t)!=="body"||ct(o))&&(i=It(t)),r){const g=je(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!r&&o&&c();const p=o&&!r&&!a?$o(o,i):he(0),u=s.left+i.scrollLeft-l.x-p.x,d=s.top+i.scrollTop-l.y-p.y;return{x:u,y:d,width:s.width,height:s.height}}function In(e){return me(e).position==="static"}function Go(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return be(e)===n&&(n=n.ownerDocument.body),n}function Wo(e,t){const n=ce(e);if(Dt(e))return n;if(!ye(e)){let o=ke(e);for(;o&&!He(o);){if(pe(o)&&!In(o))return o;o=ke(o)}return n}let r=Go(e,t);for(;r&&Al(r)&&In(r);)r=Go(r,t);return r&&He(r)&&In(r)&&!Pn(r)?n:r||Nl(e)||n}const Kl=async function(e){const t=this.getOffsetParent||Wo,n=this.getDimensions,r=await n(e.floating);return{reference:Hl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Yl(e){return me(e).direction==="rtl"}const Xl={convertOffsetParentRelativeRectToViewportRelativeRect:Ll,getDocumentElement:be,getClippingRect:Wl,getOffsetParent:Wo,getElementRects:Kl,getClientRects:Fl,getDimensions:Ul,getScale:Ke,isElement:pe,isRTL:Yl};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ql(e,t){let n=null,r;const o=be(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:d,height:g}=c;if(i||t(),!d||!g)return;const v=Tt(u),h=Tt(o.clientWidth-(p+d)),b=Tt(o.clientHeight-(u+g)),y=Tt(p),E={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Pe(1,l))||1};let x=!0;function C(M){const O=M[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Uo(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(C,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return s(!0),a}function Zl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dn(e),p=o||a?[...c?lt(c):[],...lt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?ql(c,n):null;let d=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?je(e):null;l&&b();function b(){const y=je(e);h&&!Uo(h,y)&&n(),h=y,v=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Jl=Sl,Ql=El,eu=yl,tu=_l,nu=xl,Ho=bl,ru=Cl,ou=(e,t,n)=>{const r=new Map,o={platform:Xl,...n},a={...o.platform,_c:r};return vl(e,t,{...o,platform:a})};var au=typeof document<"u",su=function(){},Lt=au?D.useLayoutEffect:su;function Ft(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(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ko(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yo(e,t){const n=Ko(e);return Math.round(t*n)/n}function jn(e){const t=f.useRef(e);return Lt(()=>{t.current=e}),t}function iu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,g]=f.useState(r);Ft(d,r)||g(r);const[v,h]=f.useState(null),[b,y]=f.useState(null),w=f.useCallback(_=>{_!==M.current&&(M.current=_,h(_))},[]),E=f.useCallback(_=>{_!==O.current&&(O.current=_,y(_))},[]),x=a||v,C=s||b,M=f.useRef(null),O=f.useRef(null),R=f.useRef(p),L=l!=null,B=jn(l),U=jn(o),H=jn(c),Y=f.useCallback(()=>{if(!M.current||!O.current)return;const _={placement:t,strategy:n,middleware:d};U.current&&(_.platform=U.current),ou(M.current,O.current,_).then(k=>{const S={...k,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,an.flushSync(()=>{u(S)}))})},[d,t,n,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=f.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(x&&(M.current=x),C&&(O.current=C),x&&C){if(B.current)return B.current(x,C,Y);Y()}},[x,C,Y,B,L]);const q=f.useMemo(()=>({reference:M,floating:O,setReference:w,setFloating:E}),[w,E]),F=f.useMemo(()=>({reference:x,floating:C}),[x,C]),K=f.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const k=Yo(F.floating,p.x),S=Yo(F.floating,p.y);return i?{..._,transform:"translate("+k+"px, "+S+"px)",...Ko(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:S}},[n,i,F.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:Y,refs:q,elements:F,floatingStyles:K}),[p,Y,q,F,K])}const cu=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?Ho({element:r.current,padding:o}).fn(n):{}:r?Ho({element:r,padding:o}).fn(n):{}}}},lu=(e,t)=>({...Jl(e),options:[e,t]}),uu=(e,t)=>({...Ql(e),options:[e,t]}),du=(e,t)=>({...ru(e),options:[e,t]}),fu=(e,t)=>({...eu(e),options:[e,t]}),pu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...nu(e),options:[e,t]}),gu=(e,t)=>({...cu(e),options:[e,t]});var hu="Arrow",Xo=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(Z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xo.displayName=hu;var vu=Xo;function bu(e){const[t,n]=f.useState(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ln="Popper",[qo,$t]=Oe(Ln),[yu,Zo]=qo(Ln),Jo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return m.jsx(yu,{scope:t,anchor:r,onAnchorChange:o,children:n})};Jo.displayName=Ln;var Qo="PopperAnchor",ea=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Zo(Qo,n),s=f.useRef(null),i=ee(t,s),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=r?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Z.div,{...o,ref:i})});ea.displayName=Qo;var Fn="PopperContent",[xu,wu]=qo(Fn),ta=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:d=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=Zo(Fn,n),[y,w]=f.useState(null),E=ee(t,$=>w($)),[x,C]=f.useState(null),M=bu(x),O=M?.width??0,R=M?.height??0,L=r+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,Y={padding:B,boundary:U.filter(Eu),altBoundary:H},{refs:W,floatingStyles:q,placement:F,isPositioned:K,middlewareData:_}=iu({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>Zl(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[lu({mainAxis:o+R,alignmentAxis:s}),l&&uu({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?du():void 0,...Y}),l&&fu({...Y}),pu({...Y,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Se})=>{const{width:$e,height:Qe}=J.reference,on=$.floating.style;on.setProperty("--radix-popper-available-width",`${le}px`),on.setProperty("--radix-popper-available-height",`${Se}px`),on.setProperty("--radix-popper-anchor-width",`${$e}px`),on.setProperty("--radix-popper-anchor-height",`${Qe}px`)}}),x&&gu({element:x,padding:i}),Cu({arrowWidth:O,arrowHeight:R}),d&&mu({strategy:"referenceHidden",...Y})]}),[k,S]=oa(F),I=de(v);fe(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,X=_.arrow?.centerOffset!==0,[Q,se]=f.useState();return fe(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:K?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(xu,{scope:n,placedSide:k,onArrowChange:C,arrowX:G,arrowY:V,shouldHideArrow:X,children:m.jsx(Z.div,{"data-side":k,"data-align":S,...h,ref:E,style:{...h.style,animation:K?void 0:"none"}})})})});ta.displayName=Fn;var na="PopperArrow",Su={top:"bottom",right:"left",bottom:"top",left:"right"},ra=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=wu(na,r),s=Su[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(vu,{...o,ref:n,style:{...o.style,display:"block"}})})});ra.displayName=na;function Eu(e){return e!==null}var Cu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=oa(n),u={start:"0%",center:"50%",end:"100%"}[p],d=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${d}px`,h=`${-l}px`):c==="top"?(v=s?u:`${d}px`,h=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${r.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function oa(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Jo,aa=ea,sa=ta,ia=ra,_u="Portal",zt=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=f.useState(!1);fe(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?ci.createPortal(m.jsx(Z.div,{...r,ref:t}),s):null});zt.displayName=_u;function Ru(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var xe=e=>{const{present:t,children:n}=e,r=Ou(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=ee(r.ref,Au(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};xe.displayName="Presence";function Ou(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Ru(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Vt(r.current);a.current=i==="mounted"?c:"none"},[i]),fe(()=>{const c=r.current,p=o.current;if(p!==e){const d=a.current,g=Vt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&d!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fe(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Vt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},d=g=>{g.target===t&&(a.current=Vt(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Vt(e){return e?.animationName||"none"}function Au(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 zn="rovingFocusGroup.onEntryFocus",Mu={bubbles:!1,cancelable:!0},ut="RovingFocusGroup",[Vn,ca,Tu]=mo(ut),[Pu,la]=Oe(ut,[Tu]),[ku,Nu]=Pu(ut),ua=f.forwardRef((e,t)=>m.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Du,{...e,ref:t})})}));ua.displayName=ut;var Du=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,d=f.useRef(null),g=ee(t,d),v=go(a),[h,b]=st({prop:s,defaultProp:i??null,onChange:l,caller:ut}),[y,w]=f.useState(!1),E=de(c),x=ca(n),C=f.useRef(!1),[M,O]=f.useState(0);return f.useEffect(()=>{const R=d.current;if(R)return R.addEventListener(zn,E),()=>R.removeEventListener(zn,E)},[E]),m.jsx(ku,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:f.useCallback(R=>b(R),[b]),onItemShiftTab:f.useCallback(()=>w(!0),[]),onFocusableItemAdd:f.useCallback(()=>O(R=>R+1),[]),onFocusableItemRemove:f.useCallback(()=>O(R=>R-1),[]),children:m.jsx(Z.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{C.current=!0}),onFocus:j(e.onFocus,R=>{const L=!C.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zn,Mu);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=x().filter(F=>F.focusable),H=U.find(F=>F.active),Y=U.find(F=>F.id===h),q=[H,Y,...U].filter(Boolean).map(F=>F.ref.current);pa(q,p)}}C.current=!1}),onBlur:j(e.onBlur,()=>w(!1))})})}),da="RovingFocusGroupItem",fa=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=Ce(),c=a||l,p=Nu(da,n),u=p.currentTabStopId===c,d=ca(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return f.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),m.jsx(Vn.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(Z.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Lu(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let E=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")E.reverse();else if(y==="prev"||y==="next"){y==="prev"&&E.reverse();const x=E.indexOf(b.currentTarget);E=p.loop?Fu(E,x+1):E.slice(x+1)}setTimeout(()=>pa(E))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});fa.displayName=da;var Iu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ju(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Lu(e,t,n){const r=ju(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Iu[r]}function pa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Fu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $u=ua,zu=fa,Vu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,Bt=new WeakMap,Gt={},Bn=0,ma=function(e){return e&&(e.host||ma(e.parentNode))},Bu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ma(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})},Gu=function(e,t,n,r){var o=Bu(t,Array.isArray(e)?e:[e]);Gt[n]||(Gt[n]=new WeakMap);var a=Gt[n],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(i.has(d))p(d);else try{var g=d.getAttribute(r),v=g!==null&&g!=="false",h=(Ye.get(d)||0)+1,b=(a.get(d)||0)+1;Ye.set(d,h),a.set(d,b),s.push(d),h===1&&v&&Bt.set(d,!0),b===1&&d.setAttribute(n,"true"),v||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return p(t),i.clear(),Bn++,function(){s.forEach(function(u){var d=Ye.get(u)-1,g=a.get(u)-1;Ye.set(u,d),a.set(u,g),d||(Bt.has(u)||u.removeAttribute(r),Bt.delete(u)),g||u.removeAttribute(n)}),Bn--,Bn||(Ye=new WeakMap,Ye=new WeakMap,Bt=new WeakMap,Gt={})}},ga=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Vu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Gu(r,o,n,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)};function ha(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 Wu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Wt="right-scroll-bar-position",Ut="width-before-scroll-bar",Uu="with-scroll-bars-hidden",Hu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ku(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 Yu=typeof window<"u"?f.useLayoutEffect:f.useEffect,va=new WeakMap;function Xu(e,t){var n=Ku(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return Yu(function(){var r=va.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Gn(i,null)}),a.forEach(function(i){o.has(i)||Gn(i,s)})}va.set(n,e)},[e]),n}function qu(e){return e}function Zu(e,t){t===void 0&&(t=qu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return o}function Ju(e){e===void 0&&(e={});var t=Zu(null);return t.options=we({async:!0,ssr:!1},e),t}var ba=function(e){var t=e.sideCar,n=ha(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 f.createElement(r,we({},n))};ba.isSideCarExport=!0;function Qu(e,t){return e.useMedium(t),ba}var ya=Ju(),Wn=function(){},Ht=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,d=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,E=e.gapMode,x=ha(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,M=Xu([n,t]),O=we(we({},x),o);return f.createElement(f.Fragment,null,p&&f.createElement(C,{sideCar:ya,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:E}),s?f.cloneElement(f.Children.only(i),we(we({},O),{ref:M})):f.createElement(w,we({},O,{className:l,ref:M}),i))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Ut,zeroRight:Wt};var ed=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function td(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ed();return t&&e.setAttribute("nonce",t),e}function nd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var od=function(){var e=0,t=null;return{add:function(n){e==0&&(t=td())&&(nd(t,n),rd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ad=function(){var e=od();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xa=function(){var e=ad(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sd={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},id=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[Un(n),Un(r),Un(o)]},cd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sd;var t=id(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])}},ld=xa(),Xe="data-scroll-locked",ud=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
11
|
-
.`.concat(
|
|
10
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,re.createPortal=function(u,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,f,null,g)},re.flushSync=function(u){var f=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=f,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},re.preconnect=function(u,f){typeof u=="string"&&u?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(u,f))},re.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f))}typeof u=="string"&&l.d.D(u)},re.preinit=function(u,f){if(typeof u=="string"&&u?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&f&&typeof f.as=="string"){var g=f.as,v=r(g,f.crossOrigin),h=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?l.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},re.preinitModule=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(g+=" The `as` option encountered was "+a(f.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=f&&typeof f.as=="string"?f.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(g=r(f.as,f.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(u))},re.preload=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f==null||typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){g=f.as;var v=r(g,f.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},re.preloadModule=function(u,f){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(f?(g=r(f.as,f.crossOrigin),l.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(u))},re.requestFormReset=function(u){l.d.r(u)},re.unstable_batchedUpdates=function(u,f){return u(f)},re.useFormState=function(u,f,g){return s().useFormState(u,f,g)},re.useFormStatus=function(){return s().useHostTransitionStatus()},re.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),re}var xr;function gi(){if(xr)return St.exports;xr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=pi()):St.exports=mi(),St.exports}var sn=gi();const hi=ii(sn);function wr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=wr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():wr(e[o],null)}}}}function Q(...e){return d.useCallback(rt(...e),e)}function ze(e){const t=vi(e),n=d.forwardRef((r,o)=>{const{children:a,...s}=r,i=d.Children.toArray(a),l=i.find(yi);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ae=ze("Slot");function vi(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const s=wi(o),i=xi(a,o.props);return o.type!==d.Fragment&&(i.ref=r?rt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sr=Symbol("radix.slottable");function bi(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sr,t}function yi(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sr}function xi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function wi(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 Si=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Si.reduce((e,t)=>{const n=ze(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cr(e,t){e&&sn.flushSync(()=>e.dispatchEvent(t))}var Ct={exports:{}},cn={};var Er;function Ci(){if(Er)return cn;Er=1;var e=D;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,f){var g=f(),v=r({inst:{value:g,getSnapshot:f}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=f,l(h)&&b({inst:h})},[u,g,f]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!n(u,g)}catch{return!0}}function c(u,f){return f()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,cn}var ln={};var _r;function Ei(){return _r||(_r=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=h,y.getSnapshot=v,n(y)&&x({inst:y})},[g,h,v]),i(function(){return n(y)&&x({inst:y}),g(function(){n(y)&&x({inst:y})})},[g]),c(h),h}function n(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ln.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ln}var Rr;function _i(){return Rr||(Rr=1,process.env.NODE_ENV==="production"?Ct.exports=Ci():Ct.exports=Ei()),Ct.exports}var Ri=_i();function Oi(){return Ri.useSyncExternalStore(Ai,()=>!0,()=>!1)}function Ai(){return()=>{}}var un="Avatar",[Mi,xg]=Ee(un),[Ti,Or]=Mi(un),Ar=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return m.jsx(Ti,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Y.span,{...r,ref:t})})});Ar.displayName=un;var Mr="AvatarImage",Tr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Or(Mr,n),i=Pi(r,a),l=fe(c=>{o(c),s.onImageLoadingStatusChange(c)});return ue(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Y.img,{...a,ref:t,src:r}):null});Tr.displayName=Mr;var Pr="AvatarFallback",kr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Or(Pr,n),[s,i]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Y.span,{...o,ref:t}):null});kr.displayName=Pr;function Nr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Pi(e,{referrerPolicy:t,crossOrigin:n}){const r=Oi(),o=d.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=d.useState(()=>Nr(a,e));return ue(()=>{i(Nr(a,e))},[a,e]),ue(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,n,t]),s}var ki=Ar,Ni=Tr,Di=kr;function Dr(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=Dr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dr(e))&&(r&&(r+=" "),r+=t);return r}const dn="-",Ii=e=>{const t=Li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(dn);return i[0]===""&&i.length!==1&&i.shift(),jr(i,t)||ji(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},jr=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?jr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(dn);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Lr=/^\[(.+)\]$/,ji=e=>{if(Lr.test(e)){const t=Lr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Li=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)fn(n[o],r,o,t);return r},fn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Fr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Fi(o)){fn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{fn(s,Fr(t,a),n,r)})})},Fr=(e,t)=>{let n=e;return t.split(dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Fi=e=>e.isThemeGetter,$i=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},pn="!",mn=":",zi=mn.length,Vi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===mn){a.push(o.slice(l,v)),l=v+zi;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=Bi(p),f=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+mn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Bi=e=>e.endsWith(pn)?e.substring(0,e.length-1):e.startsWith(pn)?e.substring(1):e,Gi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Wi=e=>({cache:$i(e.cacheSize),parseClassName:Vi(e),sortModifiers:Gi(e),...Ii(e)}),Ui=/\s+/,Hi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Ui);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:f,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=r(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const x=a(f).join(":"),C=g?x+pn:x,w=C+y;if(s.includes(w))continue;s.push(w);const E=o(y,b);for(let M=0;M<E.length;++M){const O=E[M];s.push(C+O)}l=p+(l.length>0?" "+l:l)}return l};function Ki(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$r(t))&&(r&&(r+=" "),r+=n);return r}const $r=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$r(e[r]))&&(n&&(n+=" "),n+=t);return n};function Yi(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return n=Wi(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const p=Hi(l,n);return o(l,p),p}return function(){return a(Ki.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xi=/^\d+\/\d+$/,qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zi=/\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$/,Ji=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ec=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Xi.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&z(e.slice(0,-1)),_e=e=>qi.test(e),tc=()=>!0,nc=e=>Zi.test(e)&&!Ji.test(e),Br=()=>!1,rc=e=>Qi.test(e),oc=e=>ec.test(e),ac=e=>!T(e)&&!P(e),sc=e=>Be(e,Kr,Br),T=e=>zr.test(e),De=e=>Be(e,Yr,nc),hn=e=>Be(e,dc,z),Gr=e=>Be(e,Ur,Br),ic=e=>Be(e,Hr,oc),Et=e=>Be(e,Xr,rc),P=e=>Vr.test(e),ot=e=>Ge(e,Yr),cc=e=>Ge(e,fc),Wr=e=>Ge(e,Ur),lc=e=>Ge(e,Kr),uc=e=>Ge(e,Hr),_t=e=>Ge(e,Xr,!0),Be=(e,t,n)=>{const r=zr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Vr.exec(e);return r?r[1]?t(r[1]):n:!1},Ur=e=>e==="position"||e==="percentage",Hr=e=>e==="image"||e==="url",Kr=e=>e==="length"||e==="size"||e==="bg-size",Yr=e=>e==="length",dc=e=>e==="number",fc=e=>e==="family-name",Xr=e=>e==="shadow",pc=Yi(()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),f=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),x=te("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(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[P,T,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",P,T],U=()=>["auto",{span:["full",Me,P,T]},Me,P,T],H=()=>[Me,"auto",P,T],X=()=>["auto","min","max","fr",P,T],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,P,T],k=()=>[...w(),Wr,Gr,{position:[P,T]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",lc,sc,{size:[P,T]}],G=()=>[gn,ot,De],V=()=>["","none","full",c,P,T],q=()=>["",z,ot,De],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,gn,Wr,Gr],J=()=>["","none",v,P,T],le=()=>["none",z,P,T],Ce=()=>["none",z,P,T],$e=()=>[z,P,T],et=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[tc],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[ac],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",z],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,T,P,b]}],container:["container"],columns:[{columns:[z,T,P,i]}],"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:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",P,T]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",T]}],grow:[{grow:["",z,P,T]}],shrink:[{shrink:["",z,P,T]}],order:[{order:[Me,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,ot,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,T]}],"font-family":[{font:[cc,T,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,P,T]}],"line-clamp":[{"line-clamp":[z,"none",P,hn]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",P,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",P,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",P,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,T]}],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",P,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,P,T],radial:["",P,T],conic:[Me,P,T]},uc,ic]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],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:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,P,T]}],"outline-w":[{outline:["",z,ot,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Et]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Et]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,_t,Et]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,P,T]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:J()}],brightness:[{brightness:[z,P,T]}],contrast:[{contrast:[z,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Et]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,P,T]}],"hue-rotate":[{"hue-rotate":[z,P,T]}],invert:[{invert:["",z,P,T]}],saturate:[{saturate:[z,P,T]}],sepia:[{sepia:["",z,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[z,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,P,T]}],"backdrop-invert":[{"backdrop-invert":["",z,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[z,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[z,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",z,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",P,T]}],ease:[{ease:["linear","initial",y,P,T]}],delay:[{delay:[z,P,T]}],animate:[{animate:["none",x,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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",P,T]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",P,T]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,ot,De,hn]}],stroke:[{stroke:["none",..._()]}],"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"]}});function N(...e){return pc(Ir(e))}function mc({className:e,...t}){return m.jsx(ki,{"data-slot":"avatar",className:N("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function gc({className:e,...t}){return m.jsx(Ni,{"data-slot":"avatar-image",className:N("aspect-square size-full",e),...t})}function hc({className:e,...t}){return m.jsx(Di,{"data-slot":"avatar-fallback",className:N("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zr=Ir,vn=(e,t)=>n=>{var r;if(t?.variants==null)return Zr(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=n?.[c],u=a?.[c];if(p===null)return null;const f=qr(p)||qr(u);return o[c][f]}),i=n&&Object.entries(n).reduce((c,p)=>{let[u,f]=p;return f===void 0||(c[u]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:f,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,f]:c},[]);return Zr(e,s,l,n?.class,n?.className)},Jr=vn("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vc({className:e,variant:t,asChild:n=!1,...r}){const o=n?Ae:"span";return m.jsx(o,{"data-slot":"badge",className:N(Jr({variant:t}),e),...r})}const Qr=vn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function eo({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Ae:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:N(Qr({variant:t,size:n,className:e})),...o})}function bc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function yc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function xc({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:N("leading-none font-semibold",e),...t})}function wc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:N("text-muted-foreground text-sm",e),...t})}function Sc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:N("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Cc({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:N("px-6",e),...t})}function Ec({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:N("flex items-center px-6 [.border-t]:pt-6",e),...t})}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var _c=d[" useInsertionEffect ".trim().toString()]||ue;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Rc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,r])}const c=d.useCallback(p=>{if(i){const u=Oc(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function Rc({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return _c(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Oc(e){return typeof e=="function"}function Ac(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var pe=e=>{const{present:t,children:n}=e,r=Mc(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=Q(r.ref,Tc(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};pe.displayName="Presence";function Mc(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Ac(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Rt(r.current);a.current=i==="mounted"?c:"none"},[i]),ue(()=>{const c=r.current,p=o.current;if(p!==e){const f=a.current,g=Rt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ue(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Rt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=g=>{g.target===t&&(a.current=Rt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Rt(e){return e?.animationName||"none"}function Tc(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 Pc=d[" useId ".trim().toString()]||(()=>{}),kc=0;function ve(e){const[t,n]=d.useState(Pc());return ue(()=>{n(r=>r??String(kc++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[Nc,Sg]=Ee(Ot),[Dc,bn]=Nc(Ot),to=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,c]=We({prop:r,defaultProp:o??!1,onChange:s,caller:Ot});return m.jsx(Dc,{scope:n,disabled:a,contentId:ve(),open:l,onOpenToggle:d.useCallback(()=>c(p=>!p),[c]),children:m.jsx(Y.div,{"data-state":xn(l),"data-disabled":a?"":void 0,...i,ref:t})})});to.displayName=Ot;var no="CollapsibleTrigger",ro=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=bn(no,n);return m.jsx(Y.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":xn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});ro.displayName=no;var yn="CollapsibleContent",oo=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=bn(yn,e.__scopeCollapsible);return m.jsx(pe,{present:n||o.open,children:({present:a})=>m.jsx(Ic,{...r,ref:t,present:a})})});oo.displayName=yn;var Ic=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=bn(yn,n),[i,l]=d.useState(r),c=d.useRef(null),p=Q(t,c),u=d.useRef(0),f=u.current,g=d.useRef(0),v=g.current,h=s.open||i,b=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),ue(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();u.current=C.height,g.current=C.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),m.jsx(Y.div,{"data-state":xn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function xn(e){return e?"open":"closed"}var jc=to;function Lc({...e}){return m.jsx(jc,{"data-slot":"collapsible",...e})}function Fc({...e}){return m.jsx(ro,{"data-slot":"collapsible-trigger",...e})}function $c({...e}){return m.jsx(oo,{"data-slot":"collapsible-content",...e})}function ao(e){const t=e+"CollectionProvider",[n,r]=Ee(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,x=D.useRef(null),C=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:C,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:x}=h,C=a(i,y),w=Q(b,C.collectionRef);return m.jsx(l,{ref:w,children:x})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",f=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:x,...C}=h,w=D.useRef(null),E=Q(b,w),M=a(p,y);return D.useEffect(()=>(M.itemMap.set(w,{ref:w,...C}),()=>void M.itemMap.delete(w))),m.jsx(f,{[u]:"",ref:E,children:x})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,O)=>C.indexOf(M.ref.current)-C.indexOf(O.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,r]}var zc=d.createContext(void 0);function so(e){const t=d.useContext(zc);return e||t||"ltr"}function Vc(e,t=globalThis?.document){const n=fe(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 Bc="DismissableLayer",wn="dismissableLayer.update",Gc="dismissableLayer.pointerDownOutside",Wc="dismissableLayer.focusOutside",io,co=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=d.useContext(co),[p,u]=d.useState(null),f=p?.ownerDocument??globalThis?.document,[,g]=d.useState({}),v=Q(t,O=>u(O)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,E=Kc(O=>{const R=O.target,L=[...c.branches].some(B=>B.contains(R));!w||L||(o?.(O),s?.(O),O.defaultPrevented||i?.())},f),M=Yc(O=>{const R=O.target;[...c.branches].some(B=>B.contains(R))||(a?.(O),s?.(O),O.defaultPrevented||i?.())},f);return Vc(O=>{x===c.layers.size-1&&(r?.(O),!O.defaultPrevented&&i&&(O.preventDefault(),i()))},f),d.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(io=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),lo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=io)}},[p,f,n,c]),d.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),lo())},[p,c]),d.useEffect(()=>{const O=()=>g({});return document.addEventListener(wn,O),()=>document.removeEventListener(wn,O)},[]),m.jsx(Y.div,{...l,ref:v,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});At.displayName=Bc;var Uc="DismissableLayerBranch",Hc=d.forwardRef((e,t)=>{const n=d.useContext(co),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Y.div,{...e,ref:o})});Hc.displayName=Uc;function Kc(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){uo(Gc,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Yc(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&uo(Wc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lo(){const e=new CustomEvent(wn);document.dispatchEvent(e)}function uo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cr(o,a):o.dispatchEvent(a)}var Sn=0;function fo(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??po()),document.body.insertAdjacentElement("beforeend",e[1]??po()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function po(){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 Cn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",mo={bubbles:!1,cancelable:!0},Xc="FocusScope",_n=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=d.useState(null),c=fe(o),p=fe(a),u=d.useRef(null),f=Q(t,h=>l(h)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let h=function(C){if(g.paused||!i)return;const w=C.target;i.contains(w)?u.current=w:Te(u.current,{select:!0})},b=function(C){if(g.paused||!i)return;const w=C.relatedTarget;w!==null&&(i.contains(w)||Te(u.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,g.paused]),d.useEffect(()=>{if(i){vo.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(Cn,mo);i.addEventListener(Cn,c),i.dispatchEvent(y),y.defaultPrevented||(qc(tl(go(i)),{select:!0}),document.activeElement===h&&Te(i))}return()=>{i.removeEventListener(Cn,c),setTimeout(()=>{const y=new CustomEvent(En,mo);i.addEventListener(En,p),i.dispatchEvent(y),y.defaultPrevented||Te(h??document.body,{select:!0}),i.removeEventListener(En,p),vo.remove(g)},0)}}},[i,c,p,g]);const v=d.useCallback(h=>{if(!n&&!r||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const x=h.currentTarget,[C,w]=Zc(x);C&&w?!h.shiftKey&&y===w?(h.preventDefault(),n&&Te(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Te(w,{select:!0})):y===x&&h.preventDefault()}},[n,r,g.paused]);return m.jsx(Y.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});_n.displayName=Xc;function qc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Zc(e){const t=go(e),n=ho(t,e),r=ho(t.reverse(),e);return[n,r]}function go(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 ho(e,t){for(const n of e)if(!Jc(n,{upTo:t}))return n}function Jc(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 Qc(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qc(e)&&t&&e.select()}}var vo=el();function el(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bo(e,t),e.unshift(t)},remove(t){e=bo(e,t),e[0]?.resume()}}}function bo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tl(e){return e.filter(t=>t.tagName!=="A")}const nl=["top","right","bottom","left"],Pe=Math.min,ie=Math.max,Mt=Math.round,Tt=Math.floor,be=e=>({x:e,y:e}),rl={left:"right",right:"left",bottom:"top",top:"bottom"},ol={start:"end",end:"start"};function Rn(e,t,n){return ie(e,Pe(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function Ue(e){return e.split("-")[1]}function On(e){return e==="x"?"y":"x"}function An(e){return e==="y"?"height":"width"}const al=new Set(["top","bottom"]);function ye(e){return al.has(Oe(e))?"y":"x"}function Mn(e){return On(ye(e))}function sl(e,t,n){n===void 0&&(n=!1);const r=Ue(e),o=Mn(e),a=An(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function il(e){const t=Pt(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>ol[t])}const yo=["left","right"],xo=["right","left"],cl=["top","bottom"],ll=["bottom","top"];function ul(e,t,n){switch(e){case"top":case"bottom":return n?t?xo:yo:t?yo:xo;case"left":case"right":return t?cl:ll;default:return[]}}function dl(e,t,n,r){const o=Ue(e);let a=ul(Oe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Tn)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>rl[t])}function fl(e){return{top:0,right:0,bottom:0,left:0,...e}}function wo(e){return typeof e!="number"?fl(e):{top:e,right:e,bottom:e,left:e}}function kt(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 So(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Mn(t),i=An(s),l=Oe(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(Ue(t)){case"start":g[s]-=f*(n&&c?-1:1);break;case"end":g[s]+=f*(n&&c?-1:1);break}return g}const pl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=So(c,r,l),f=r,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x,y:C,data:w,reset:E}=await y({x:p,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,u=C??u,g={...g,[b]:{...g[b],...w}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:u}=So(c,f,l)),h=-1)}return{x:p,y:u,placement:f,strategy:o,middlewareData:g}};async function at(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=Re(t,e),v=wo(g),b=i[f?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),x=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-E.top+v.top)/w.y,bottom:(E.bottom-y.bottom+v.bottom)/w.y,left:(y.left-E.left+v.left)/w.x,right:(E.right-y.right+v.right)/w.x}}const ml=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=Re(e,t)||{};if(c==null)return{};const u=wo(p),f={x:n,y:r},g=Mn(o),v=An(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",C=b?"clientHeight":"clientWidth",w=a.reference[v]+a.reference[g]-f[g]-a.floating[v],E=f[g]-a.reference[g],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=M?M[C]:0;(!O||!await(s.isElement==null?void 0:s.isElement(M)))&&(O=i.floating[C]||a.floating[v]);const R=w/2-E/2,L=O/2-h[v]/2-1,B=Pe(u[y],L),U=Pe(u[x],L),H=B,X=O-h[v]-U,W=O/2-h[v]/2+R,Z=Rn(H,W,X),F=!l.arrow&&Ue(o)!=null&&W!==Z&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-X:0;return{[g]:f[g]+K,data:{[g]:Z,centerOffset:W-Z-K,...F&&{alignmentOffset:K}},reset:F}}}),gl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=Re(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Oe(o),x=ye(i),C=Oe(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(C||!h?[Pt(i)]:il(i)),M=v!=="none";!f&&M&&E.push(...dl(i,h,v,w));const O=[i,...E],R=await at(t,b),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(R[y]),u){const W=sl(o,s,w);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,Z=O[W];if(Z&&(!(u==="alignment"?x!==ye(Z):!1)||B.every(_=>ye(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:Z}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var X;const K=(X=B.filter(_=>{if(M){const k=ye(_.placement);return k===x||k==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(k=>k>0).reduce((k,S)=>k+S,0)]).sort((_,k)=>_[1]-k[1])[0])==null?void 0:X[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Co(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eo(e){return nl.some(t=>e[t]>=0)}const hl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const a=await at(t,{...o,elementContext:"reference"}),s=Co(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Eo(s)}}}case"escaped":{const a=await at(t,{...o,altBoundary:!0}),s=Co(a,n.floating);return{data:{escapedOffsets:s,escaped:Eo(s)}}}default:return{}}}}},_o=new Set(["left","top"]);async function vl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Oe(n),i=Ue(n),l=ye(n)==="y",c=_o.has(s)?-1:1,p=a&&l?-1:1,u=Re(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:f*c}:{x:f*c,y:g*p}}const bl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await vl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},yl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Re(e,t),c={x:n,y:r},p=await at(t,l),u=ye(Oe(o)),f=On(u);let g=c[f],v=c[u];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+p[b],C=g-p[y];g=Rn(x,g,C)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=v+p[b],C=v-p[y];v=Rn(x,v,C)}const h=i.fn({...t,[f]:g,[u]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[u]:s}}}}}},xl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Re(e,t),p={x:n,y:r},u=ye(o),f=On(u);let g=p[f],v=p[u];const h=Re(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=f==="y"?"height":"width",w=a.reference[f]-a.floating[C]+b.mainAxis,E=a.reference[f]+a.reference[C]-b.mainAxis;g<w?g=w:g>E&&(g=E)}if(c){var y,x;const C=f==="y"?"width":"height",w=_o.has(Oe(o)),E=a.reference[u]-a.floating[C]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:b.crossAxis),M=a.reference[u]+a.reference[C]+(w?0:((x=s.offset)==null?void 0:x[u])||0)-(w?b.crossAxis:0);v<E?v=E:v>M&&(v=M)}return{[f]:g,[u]:v}}}},wl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=Re(e,t),p=await at(t,c),u=Oe(o),f=Ue(o),g=ye(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const x=h-p.top-p.bottom,C=v-p.left-p.right,w=Pe(h-p[b],x),E=Pe(v-p[y],C),M=!t.middlewareData.shift;let O=w,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=x),M&&!f){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),X=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):O=h-2*(H!==0||X!==0?H+X:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:O});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function He(e){return Ro(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Ro(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ro(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function we(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Oo(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Sl=new Set(["inline","contents"]);function st(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sl.has(o)}const Cl=new Set(["table","td","th"]);function El(e){return Cl.has(He(e))}const _l=[":popover-open",":modal"];function Dt(e){return _l.some(t=>{try{return e.matches(t)}catch{return!1}})}const Rl=["transform","translate","scale","rotate","perspective"],Ol=["transform","translate","scale","rotate","perspective","filter"],Al=["paint","layout","strict","content"];function Pn(e){const t=kn(),n=me(e)?ge(e):e;return Rl.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)||Ol.some(r=>(n.willChange||"").includes(r))||Al.some(r=>(n.contain||"").includes(r))}function Ml(e){let t=ke(e);for(;we(t)&&!Ke(t);){if(Pn(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Tl=new Set(["html","body","#document"]);function Ke(e){return Tl.has(He(e))}function ge(e){return ce(e).getComputedStyle(e)}function It(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Oo(e)&&e.host||xe(e);return Oo(t)?t.host:t}function Ao(e){const t=ke(e);return Ke(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&st(t)?t:Ao(t)}function it(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ao(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=Nn(s);return t.concat(s,s.visualViewport||[],st(o)?o:[],i&&n?it(i):[])}return t.concat(o,it(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mo(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Mt(n)!==a||Mt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Dn(e){return me(e)?e:e.contextElement}function Ye(e){const t=Dn(e);if(!we(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Mo(t);let s=(a?Mt(n.width):n.width)/r,i=(a?Mt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Pl=be(0);function To(e){const t=ce(e);return!kn()||!t.visualViewport?Pl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dn(e);let s=be(1);t&&(r?me(r)&&(s=Ye(r)):s=Ye(e));const i=kl(a,n,r)?To(a):be(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const f=ce(a),g=r&&me(r)?ce(r):r;let v=f,h=Nn(v);for(;h&&r&&g!==v;){const b=Ye(h),y=h.getBoundingClientRect(),x=ge(h),C=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,w=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=C,c+=w,v=ce(h),h=Nn(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const n=It(e).scrollLeft;return t?t.left+n:Ie(xe(e)).left+n}function Po(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Nl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=xe(r),i=t?Dt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=be(1);const p=be(0),u=we(r);if((u||!u&&!a)&&((He(r)!=="body"||st(s))&&(l=It(r)),we(r))){const g=Ie(r);c=Ye(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const f=s&&!u&&!a?Po(s,l):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:n.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Dl(e){return Array.from(e.getClientRects())}function Il(e){const t=xe(e),n=It(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ko=25;function jl(e,t){const n=ce(e),r=xe(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(r);if(c<=0){const p=r.ownerDocument,u=p.body,f=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-g);v<=ko&&(a-=v)}else c<=ko&&(a+=c);return{width:a,height:s,x:i,y:l}}const Ll=new Set(["absolute","fixed"]);function Fl(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=we(e)?Ye(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function No(e,t,n){let r;if(t==="viewport")r=jl(e,n);else if(t==="document")r=Il(xe(e));else if(me(t))r=Fl(t,n);else{const o=To(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Do(e,t){const n=ke(e);return n===t||!me(n)||Ke(n)?!1:ge(n).position==="fixed"||Do(n,t)}function $l(e,t){const n=t.get(e);if(n)return n;let r=it(e,[],!1).filter(i=>me(i)&&He(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?ke(e):e;for(;me(s)&&!Ke(s);){const i=ge(s),l=Pn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Ll.has(o.position)||st(s)&&!l&&Do(e,s))?r=r.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,r),r}function zl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:$l(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((c,p)=>{const u=No(t,p,o);return c.top=ie(u.top,c.top),c.right=Pe(u.right,c.right),c.bottom=Pe(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},No(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Vl(e){const{width:t,height:n}=Mo(e);return{width:t,height:n}}function Bl(e,t,n){const r=we(t),o=xe(t),a=n==="fixed",s=Ie(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=be(0);function c(){l.x=jt(o)}if(r||!r&&!a)if((He(t)!=="body"||st(o))&&(i=It(t)),r){const g=Ie(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!r&&o&&c();const p=o&&!r&&!a?Po(o,i):be(0),u=s.left+i.scrollLeft-l.x-p.x,f=s.top+i.scrollTop-l.y-p.y;return{x:u,y:f,width:s.width,height:s.height}}function In(e){return ge(e).position==="static"}function Io(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xe(e)===n&&(n=n.ownerDocument.body),n}function jo(e,t){const n=ce(e);if(Dt(e))return n;if(!we(e)){let o=ke(e);for(;o&&!Ke(o);){if(me(o)&&!In(o))return o;o=ke(o)}return n}let r=Io(e,t);for(;r&&El(r)&&In(r);)r=Io(r,t);return r&&Ke(r)&&In(r)&&!Pn(r)?n:r||Ml(e)||n}const Gl=async function(e){const t=this.getOffsetParent||jo,n=this.getDimensions,r=await n(e.floating);return{reference:Bl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wl(e){return ge(e).direction==="rtl"}const Ul={convertOffsetParentRelativeRectToViewportRelativeRect:Nl,getDocumentElement:xe,getClippingRect:zl,getOffsetParent:jo,getElementRects:Gl,getClientRects:Dl,getDimensions:Vl,getScale:Ye,isElement:me,isRTL:Wl};function Lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hl(e,t){let n=null,r;const o=xe(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:f,height:g}=c;if(i||t(),!f||!g)return;const v=Tt(u),h=Tt(o.clientWidth-(p+f)),b=Tt(o.clientHeight-(u+g)),y=Tt(p),C={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Pe(1,l))||1};let w=!0;function E(M){const O=M[0].intersectionRatio;if(O!==l){if(!w)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Lo(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return s(!0),a}function Kl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dn(e),p=o||a?[...c?it(c):[],...it(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?Hl(c,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Ie(e):null;l&&b();function b(){const y=Ie(e);h&&!Lo(h,y)&&n(),h=y,v=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Yl=bl,Xl=yl,ql=gl,Zl=wl,Jl=hl,Fo=ml,Ql=xl,eu=(e,t,n)=>{const r=new Map,o={platform:Ul,...n},a={...o.platform,_c:r};return pl(e,t,{...o,platform:a})};var tu=typeof document<"u",nu=function(){},Lt=tu?D.useLayoutEffect:nu;function Ft(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(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function $o(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zo(e,t){const n=$o(e);return Math.round(t*n)/n}function jn(e){const t=d.useRef(e);return Lt(()=>{t.current=e}),t}function ru(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(r);Ft(f,r)||g(r);const[v,h]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(_=>{_!==M.current&&(M.current=_,h(_))},[]),C=d.useCallback(_=>{_!==O.current&&(O.current=_,y(_))},[]),w=a||v,E=s||b,M=d.useRef(null),O=d.useRef(null),R=d.useRef(p),L=l!=null,B=jn(l),U=jn(o),H=jn(c),X=d.useCallback(()=>{if(!M.current||!O.current)return;const _={placement:t,strategy:n,middleware:f};U.current&&(_.platform=U.current),eu(M.current,O.current,_).then(k=>{const S={...k,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,sn.flushSync(()=>{u(S)}))})},[f,t,n,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=d.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(w&&(M.current=w),E&&(O.current=E),w&&E){if(B.current)return B.current(w,E,X);X()}},[w,E,X,B,L]);const Z=d.useMemo(()=>({reference:M,floating:O,setReference:x,setFloating:C}),[x,C]),F=d.useMemo(()=>({reference:w,floating:E}),[w,E]),K=d.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const k=zo(F.floating,p.x),S=zo(F.floating,p.y);return i?{..._,transform:"translate("+k+"px, "+S+"px)",...$o(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:S}},[n,i,F.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:X,refs:Z,elements:F,floatingStyles:K}),[p,X,Z,F,K])}const ou=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?Fo({element:r.current,padding:o}).fn(n):{}:r?Fo({element:r,padding:o}).fn(n):{}}}},au=(e,t)=>({...Yl(e),options:[e,t]}),su=(e,t)=>({...Xl(e),options:[e,t]}),iu=(e,t)=>({...Ql(e),options:[e,t]}),cu=(e,t)=>({...ql(e),options:[e,t]}),lu=(e,t)=>({...Zl(e),options:[e,t]}),uu=(e,t)=>({...Jl(e),options:[e,t]}),du=(e,t)=>({...ou(e),options:[e,t]});var fu="Arrow",Vo=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(Y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vo.displayName=fu;var pu=Vo;function mu(e){const[t,n]=d.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ln="Popper",[Bo,$t]=Ee(Ln),[gu,Go]=Bo(Ln),Wo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return m.jsx(gu,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wo.displayName=Ln;var Uo="PopperAnchor",Ho=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Go(Uo,n),s=d.useRef(null),i=Q(t,s),l=d.useRef(null);return d.useEffect(()=>{const c=l.current;l.current=r?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Y.div,{...o,ref:i})});Ho.displayName=Uo;var Fn="PopperContent",[hu,vu]=Bo(Fn),Ko=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=Go(Fn,n),[y,x]=d.useState(null),C=Q(t,$=>x($)),[w,E]=d.useState(null),M=mu(w),O=M?.width??0,R=M?.height??0,L=r+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,X={padding:B,boundary:U.filter(yu),altBoundary:H},{refs:W,floatingStyles:Z,placement:F,isPositioned:K,middlewareData:_}=ru({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>Kl(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[au({mainAxis:o+R,alignmentAxis:s}),l&&su({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?iu():void 0,...X}),l&&cu({...X}),lu({...X,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Ce})=>{const{width:$e,height:et}=J.reference,an=$.floating.style;an.setProperty("--radix-popper-available-width",`${le}px`),an.setProperty("--radix-popper-available-height",`${Ce}px`),an.setProperty("--radix-popper-anchor-width",`${$e}px`),an.setProperty("--radix-popper-anchor-height",`${et}px`)}}),w&&du({element:w,padding:i}),xu({arrowWidth:O,arrowHeight:R}),f&&uu({strategy:"referenceHidden",...X})]}),[k,S]=qo(F),I=fe(v);ue(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,q=_.arrow?.centerOffset!==0,[ee,se]=d.useState();return ue(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:K?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(hu,{scope:n,placedSide:k,onArrowChange:E,arrowX:G,arrowY:V,shouldHideArrow:q,children:m.jsx(Y.div,{"data-side":k,"data-align":S,...h,ref:C,style:{...h.style,animation:K?void 0:"none"}})})})});Ko.displayName=Fn;var Yo="PopperArrow",bu={top:"bottom",right:"left",bottom:"top",left:"right"},Xo=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=vu(Yo,r),s=bu[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(pu,{...o,ref:n,style:{...o.style,display:"block"}})})});Xo.displayName=Yo;function yu(e){return e!==null}var xu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=qo(n),u={start:"0%",center:"50%",end:"100%"}[p],f=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${f}px`,h=`${-l}px`):c==="top"?(v=s?u:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${r.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function qo(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Wo,Zo=Ho,Jo=Ko,Qo=Xo,wu="Portal",zt=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=d.useState(!1);ue(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?hi.createPortal(m.jsx(Y.div,{...r,ref:t}),s):null});zt.displayName=wu;var zn="rovingFocusGroup.onEntryFocus",Su={bubbles:!1,cancelable:!0},ct="RovingFocusGroup",[Vn,ea,Cu]=ao(ct),[Eu,ta]=Ee(ct,[Cu]),[_u,Ru]=Eu(ct),na=d.forwardRef((e,t)=>m.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Ou,{...e,ref:t})})}));na.displayName=ct;var Ou=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,f=d.useRef(null),g=Q(t,f),v=so(a),[h,b]=We({prop:s,defaultProp:i??null,onChange:l,caller:ct}),[y,x]=d.useState(!1),C=fe(c),w=ea(n),E=d.useRef(!1),[M,O]=d.useState(0);return d.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(zn,C),()=>R.removeEventListener(zn,C)},[C]),m.jsx(_u,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(R=>b(R),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>O(R=>R+1),[]),onFocusableItemRemove:d.useCallback(()=>O(R=>R-1),[]),children:m.jsx(Y.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,R=>{const L=!E.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zn,Su);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=w().filter(F=>F.focusable),H=U.find(F=>F.active),X=U.find(F=>F.id===h),Z=[H,X,...U].filter(Boolean).map(F=>F.ref.current);aa(Z,p)}}E.current=!1}),onBlur:j(e.onBlur,()=>x(!1))})})}),ra="RovingFocusGroupItem",oa=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ve(),c=a||l,p=Ru(ra,n),u=p.currentTabStopId===c,f=ea(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return d.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),m.jsx(Vn.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(Y.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Tu(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const w=C.indexOf(b.currentTarget);C=p.loop?Pu(C,w+1):C.slice(w+1)}setTimeout(()=>aa(C))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});oa.displayName=ra;var Au={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tu(e,t,n){const r=Mu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Au[r]}function aa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Pu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ku=na,Nu=oa,Du=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Vt=new WeakMap,Bt={},Bn=0,sa=function(e){return e&&(e.host||sa(e.parentNode))},Iu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sa(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})},ju=function(e,t,n,r){var o=Iu(t,Array.isArray(e)?e:[e]);Bt[n]||(Bt[n]=new WeakMap);var a=Bt[n],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(r),v=g!==null&&g!=="false",h=(Xe.get(f)||0)+1,b=(a.get(f)||0)+1;Xe.set(f,h),a.set(f,b),s.push(f),h===1&&v&&Vt.set(f,!0),b===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return p(t),i.clear(),Bn++,function(){s.forEach(function(u){var f=Xe.get(u)-1,g=a.get(u)-1;Xe.set(u,f),a.set(u,g),f||(Vt.has(u)||u.removeAttribute(r),Vt.delete(u)),g||u.removeAttribute(n)}),Bn--,Bn||(Xe=new WeakMap,Xe=new WeakMap,Vt=new WeakMap,Bt={})}},ia=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Du(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ju(r,o,n,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function ca(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 Lu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Wt="width-before-scroll-bar",Fu="with-scroll-bars-hidden",$u="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zu(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 Vu=typeof window<"u"?d.useLayoutEffect:d.useEffect,la=new WeakMap;function Bu(e,t){var n=zu(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return Vu(function(){var r=la.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Gn(i,null)}),a.forEach(function(i){o.has(i)||Gn(i,s)})}la.set(n,e)},[e]),n}function Gu(e){return e}function Wu(e,t){t===void 0&&(t=Gu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return o}function Uu(e){e===void 0&&(e={});var t=Wu(null);return t.options=Se({async:!0,ssr:!1},e),t}var ua=function(e){var t=e.sideCar,n=ca(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,Se({},n))};ua.isSideCarExport=!0;function Hu(e,t){return e.useMedium(t),ua}var da=Uu(),Wn=function(){},Ut=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,f=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,w=ca(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,M=Bu([n,t]),O=Se(Se({},w),o);return d.createElement(d.Fragment,null,p&&d.createElement(E,{sideCar:da,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:C}),s?d.cloneElement(d.Children.only(i),Se(Se({},O),{ref:M})):d.createElement(x,Se({},O,{className:l,ref:M}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Wt,zeroRight:Gt};var Ku=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ku();return t&&e.setAttribute("nonce",t),e}function Xu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yu())&&(Xu(t,n),qu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ju=function(){var e=Zu();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fa=function(){var e=Ju(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qu={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},ed=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[Un(n),Un(r),Un(o)]},td=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qu;var t=ed(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])}},nd=fa(),qe="data-scroll-locked",rd=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
11
|
+
.`.concat(Fu,` {
|
|
12
12
|
overflow: hidden `).concat(r,`;
|
|
13
13
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
14
14
|
}
|
|
15
|
-
body[`).concat(
|
|
15
|
+
body[`).concat(qe,`] {
|
|
16
16
|
overflow: hidden `).concat(r,`;
|
|
17
17
|
overscroll-behavior: contain;
|
|
18
18
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -25,30 +25,30 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
25
25
|
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.`).concat(
|
|
28
|
+
.`).concat(Gt,` {
|
|
29
29
|
right: `).concat(i,"px ").concat(r,`;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.`).concat(
|
|
32
|
+
.`).concat(Wt,` {
|
|
33
33
|
margin-right: `).concat(i,"px ").concat(r,`;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.`).concat(
|
|
36
|
+
.`).concat(Gt," .").concat(Gt,` {
|
|
37
37
|
right: 0 `).concat(r,`;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
40
|
+
.`).concat(Wt," .").concat(Wt,` {
|
|
41
41
|
margin-right: 0 `).concat(r,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
body[`).concat(
|
|
45
|
-
`).concat(
|
|
44
|
+
body[`).concat(qe,`] {
|
|
45
|
+
`).concat($u,": ").concat(i,`px;
|
|
46
46
|
}
|
|
47
|
-
`)},
|
|
47
|
+
`)},pa=function(){var e=parseInt(document.body.getAttribute(qe)||"0",10);return isFinite(e)?e:0},od=function(){d.useEffect(function(){return document.body.setAttribute(qe,(pa()+1).toString()),function(){var e=pa()-1;e<=0?document.body.removeAttribute(qe):document.body.setAttribute(qe,e.toString())}},[])},ad=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;od();var a=d.useMemo(function(){return td(o)},[o]);return d.createElement(nd,{styles:rd(a,!t,o,n?"":"!important")})},Hn=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{Hn=!1}var Ze=Hn?{passive:!1}:!1,sd=function(e){return e.tagName==="TEXTAREA"},ma=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sd(e)&&n[t]==="visible")},id=function(e){return ma(e,"overflowY")},cd=function(e){return ma(e,"overflowX")},ga=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ha(e,r);if(o){var a=va(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ld=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ud=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ha=function(e,t){return e==="v"?id(t):cd(t)},va=function(e,t){return e==="v"?ld(t):ud(t)},dd=function(e,t){return e==="h"&&t==="rtl"?-1:1},fd=function(e,t,n,r,o){var a=dd(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),c=!1,p=s>0,u=0,f=0;do{if(!i)break;var g=va(e,i),v=g[0],h=g[1],b=g[2],y=h-b-a*v;(v||y)&&ha(e,i)&&(u+=y,f+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(u)<1||!p&&Math.abs(f)<1)&&(c=!0),c},Kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ba=function(e){return[e.deltaX,e.deltaY]},ya=function(e){return e&&"current"in e?e.current:e},pd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},md=function(e){return`
|
|
48
48
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
49
49
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
50
|
-
`)},Sd=0,Ze=[];function Ed(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Sd++)[0],a=f.useState(xa)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Wu([e.lockRef.current],(e.shards||[]).map(Oa),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=f.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Yt(h),w=n.current,E="deltaX"in h?h.deltaX:w[0]-y[0],x="deltaY"in h?h.deltaY:w[1]-y[1],C,M=h.target,O=Math.abs(E)>Math.abs(x)?"h":"v";if("touches"in h&&O==="h"&&M.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===M||L.contains(M):!1;if(B)return!1;var U=Ea(O,M);if(!U)return!0;if(U?C=O:(C=O==="v"?"h":"v",U=Ea(O,M)),!U)return!1;if(!r.current&&"changedTouches"in h&&(E||x)&&(r.current=C),!C)return!0;var H=r.current||C;return yd(H,b,h,H==="h"?E:x)},[]),l=f.useCallback(function(h){var b=h;if(!(!Ze.length||Ze[Ze.length-1]!==a)){var y="deltaY"in b?Ra(b):Yt(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&xd(C.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var E=(s.current.shards||[]).map(Oa).filter(Boolean).filter(function(C){return C.contains(b.target)}),x=E.length>0?i(b,E[0]):!s.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),c=f.useCallback(function(h,b,y,w){var E={name:h,delta:b,target:y,should:w,shadowParent:Cd(y)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(x){return x!==E})},1)},[]),p=f.useCallback(function(h){n.current=Yt(h),r.current=void 0},[]),u=f.useCallback(function(h){c(h.type,Ra(h),h.target,i(h,e.lockRef.current))},[]),d=f.useCallback(function(h){c(h.type,Yt(h),h.target,i(h,e.lockRef.current))},[]);f.useEffect(function(){return Ze.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,qe),document.addEventListener("touchmove",l,qe),document.addEventListener("touchstart",p,qe),function(){Ze=Ze.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,qe),document.removeEventListener("touchmove",l,qe),document.removeEventListener("touchstart",p,qe)}},[]);var g=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(a,{styles:wd(o)}):null,g?f.createElement(fd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _d=Qu(ya,Ed);var Kn=f.forwardRef(function(e,t){return f.createElement(Ht,we({},e,{ref:t,sideCar:_d}))});Kn.classNames=Ht.classNames;var Yn=["Enter"," "],Rd=["ArrowDown","PageUp","Home"],Aa=["ArrowUp","PageDown","End"],Od=[...Rd,...Aa],Ad={ltr:[...Yn,"ArrowRight"],rtl:[...Yn,"ArrowLeft"]},Md={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dt="Menu",[ft,Td,Pd]=mo(dt),[Le,Ma]=Oe(dt,[Pd,$t,la]),pt=$t(),Ta=la(),[Pa,Ne]=Le(dt),[kd,mt]=Le(dt),ka=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=pt(t),[l,c]=f.useState(null),p=f.useRef(!1),u=de(a),d=go(o);return f.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($n,{...i,children:m.jsx(Pa,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(kd,{scope:t,onClose:f.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:d,modal:s,children:r})})})};ka.displayName=dt;var Nd="MenuAnchor",Xn=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pt(n);return m.jsx(aa,{...o,...r,ref:t})});Xn.displayName=Nd;var qn="MenuPortal",[Dd,Na]=Le(qn,{forceMount:void 0}),Da=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(qn,t);return m.jsx(Dd,{scope:t,forceMount:n,children:m.jsx(xe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Da.displayName=qn;var ue="MenuContent",[Id,Zn]=Le(ue),Ia=f.forwardRef((e,t)=>{const n=Na(ue,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(ue,e.__scopeMenu),s=mt(ue,e.__scopeMenu);return m.jsx(ft.Provider,{scope:e.__scopeMenu,children:m.jsx(xe,{present:r||a.open,children:m.jsx(ft.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(jd,{...o,ref:t}):m.jsx(Ld,{...o,ref:t})})})})}),jd=f.forwardRef((e,t)=>{const n=Ne(ue,e.__scopeMenu),r=f.useRef(null),o=ee(t,r);return f.useEffect(()=>{const a=r.current;if(a)return ga(a)},[]),m.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ld=f.forwardRef((e,t)=>{const n=Ne(ue,e.__scopeMenu);return m.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Fd=ze("MenuContent.ScrollLock"),Jn=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:d,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(ue,n),y=mt(ue,n),w=pt(n),E=Ta(n),x=Td(n),[C,M]=f.useState(null),O=f.useRef(null),R=ee(t,O,b.onContentChange),L=f.useRef(0),B=f.useRef(""),U=f.useRef(0),H=f.useRef(null),Y=f.useRef("right"),W=f.useRef(0),q=v?Kn:f.Fragment,F=v?{as:Fd,allowPinchZoom:!0}:void 0,K=k=>{const S=B.current+k,I=x().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,X=I.map($=>$.textValue),Q=qd(X,S,V),se=I.find($=>$.textValue===Q)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};f.useEffect(()=>()=>window.clearTimeout(L.current),[]),xo();const _=f.useCallback(k=>Y.current===H.current?.side&&Jd(k,H.current?.area),[]);return m.jsx(Id,{scope:n,searchRef:B,onItemEnter:f.useCallback(k=>{_(k)&&k.preventDefault()},[_]),onItemLeave:f.useCallback(k=>{_(k)||(O.current?.focus(),M(null))},[_]),onTriggerLeave:f.useCallback(k=>{_(k)&&k.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:f.useCallback(k=>{H.current=k},[]),children:m.jsx(q,{...F,children:m.jsx(_n,{asChild:!0,trapped:o,onMountAutoFocus:j(a,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:d,onDismiss:g,children:m.jsx($u,{asChild:!0,...E,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:M,onEntryFocus:j(l,k=>{y.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(sa,{role:"menu","aria-orientation":"vertical","data-state":Qa(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,k=>{const I=k.target.closest("[data-radix-menu-content]")===k.currentTarget,G=k.ctrlKey||k.altKey||k.metaKey,V=k.key.length===1;I&&(k.key==="Tab"&&k.preventDefault(),!G&&V&&K(k.key));const X=O.current;if(k.target!==X||!Od.includes(k.key))return;k.preventDefault();const se=x().filter($=>!$.disabled).map($=>$.ref.current);Aa.includes(k.key)&&se.reverse(),Yd(se)}),onBlur:j(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,ht(k=>{const S=k.target,I=W.current!==k.clientX;if(k.currentTarget.contains(S)&&I){const G=k.clientX>W.current?"right":"left";Y.current=G,W.current=k.clientX}}))})})})})})})});Ia.displayName=ue;var $d="MenuGroup",Qn=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Z.div,{role:"group",...r,ref:t})});Qn.displayName=$d;var zd="MenuLabel",ja=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Z.div,{...r,ref:t})});ja.displayName=zd;var Xt="MenuItem",La="menu.itemSelect",qt=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),s=mt(Xt,e.__scopeMenu),i=Zn(Xt,e.__scopeMenu),l=ee(t,a),c=f.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const d=new CustomEvent(La,{bubbles:!0,cancelable:!0});u.addEventListener(La,g=>r?.(g),{once:!0}),yr(u,d),d.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(Fa,{...o,ref:l,disabled:n,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const d=i.searchRef.current!=="";n||d&&u.key===" "||Yn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});qt.displayName=Xt;var Fa=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Zn(Xt,n),i=Ta(n),l=f.useRef(null),c=ee(t,l),[p,u]=f.useState(!1),[d,g]=f.useState("");return f.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(ft.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:m.jsx(zu,{asChild:!0,...i,focusable:!r,children:m.jsx(Z.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,ht(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,ht(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),Vd="MenuCheckboxItem",$a=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(Wa,{scope:e.__scopeMenu,checked:n,children:m.jsx(qt,{role:"menuitemcheckbox","aria-checked":Zt(n)?"mixed":n,...o,ref:t,"data-state":nr(n),onSelect:j(o.onSelect,()=>r?.(Zt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});$a.displayName=Vd;var za="MenuRadioGroup",[Bd,Gd]=Le(za,{value:void 0,onValueChange:()=>{}}),Va=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=de(r);return m.jsx(Bd,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Qn,{...o,ref:t})})});Va.displayName=za;var Ba="MenuRadioItem",Ga=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=Gd(Ba,e.__scopeMenu),a=n===o.value;return m.jsx(Wa,{scope:e.__scopeMenu,checked:a,children:m.jsx(qt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nr(a),onSelect:j(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ga.displayName=Ba;var er="MenuItemIndicator",[Wa,Wd]=Le(er,{checked:!1}),Ua=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Wd(er,n);return m.jsx(xe,{present:r||Zt(a.checked)||a.checked===!0,children:m.jsx(Z.span,{...o,ref:t,"data-state":nr(a.checked)})})});Ua.displayName=er;var Ud="MenuSeparator",Ha=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ha.displayName=Ud;var Hd="MenuArrow",Ka=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pt(n);return m.jsx(ia,{...o,...r,ref:t})});Ka.displayName=Hd;var tr="MenuSub",[Kd,Ya]=Le(tr),Xa=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(tr,t),s=pt(t),[i,l]=f.useState(null),[c,p]=f.useState(null),u=de(o);return f.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($n,{...s,children:m.jsx(Pa,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(Kd,{scope:t,contentId:Ce(),triggerId:Ce(),trigger:i,onTriggerChange:l,children:n})})})};Xa.displayName=tr;var gt="MenuSubTrigger",qa=f.forwardRef((e,t)=>{const n=Ne(gt,e.__scopeMenu),r=mt(gt,e.__scopeMenu),o=Ya(gt,e.__scopeMenu),a=Zn(gt,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xn,{asChild:!0,...c,children:m.jsx(Fa,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Qa(n.open),...e,ref:nt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,ht(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,ht(u=>{p();const d=n.content?.getBoundingClientRect();if(d){const g=n.content?.dataset.side,v=g==="right",h=v?-5:5,b=d[v?"left":"right"],y=d[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:d.top},{x:y,y:d.top},{x:y,y:d.bottom},{x:b,y:d.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const d=a.searchRef.current!=="";e.disabled||d&&u.key===" "||Ad[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});qa.displayName=gt;var Za="MenuSubContent",Ja=f.forwardRef((e,t)=>{const n=Na(ue,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(ue,e.__scopeMenu),s=mt(ue,e.__scopeMenu),i=Ya(Za,e.__scopeMenu),l=f.useRef(null),c=ee(t,l);return m.jsx(ft.Provider,{scope:e.__scopeMenu,children:m.jsx(xe,{present:r||a.open,children:m.jsx(ft.Slot,{scope:e.__scopeMenu,children:m.jsx(Jn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),d=Md[s.dir].includes(p.key);u&&d&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Ja.displayName=Za;function Qa(e){return e?"open":"closed"}function Zt(e){return e==="indeterminate"}function nr(e){return Zt(e)?"indeterminate":e?"checked":"unchecked"}function Yd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function qd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Xd(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Zd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,d=l.y;p>r!=d>r&&n<(u-c)*(r-p)/(d-p)+c&&(o=!o)}return o}function Jd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Zd(n,t)}function ht(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Qd=ka,ef=Xn,tf=Da,nf=Ia,rf=Qn,of=ja,af=qt,sf=$a,cf=Va,lf=Ga,uf=Ua,df=Ha,ff=Ka,pf=Xa,mf=qa,gf=Ja,Jt="DropdownMenu",[hf,ig]=Oe(Jt,[Ma]),oe=Ma(),[vf,es]=hf(Jt),ts=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=f.useRef(null),[p,u]=st({prop:o,defaultProp:a??!1,onChange:s,caller:Jt});return m.jsx(vf,{scope:t,triggerId:Ce(),triggerRef:c,contentId:Ce(),open:p,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:i,children:m.jsx(Qd,{...l,open:p,onOpenChange:u,dir:r,modal:i,children:n})})};ts.displayName=Jt;var ns="DropdownMenuTrigger",rs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=es(ns,n),s=oe(n);return m.jsx(ef,{asChild:!0,...s,children:m.jsx(Z.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:nt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});rs.displayName=ns;var bf="DropdownMenuPortal",os=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oe(t);return m.jsx(tf,{...r,...n})};os.displayName=bf;var as="DropdownMenuContent",ss=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=es(as,n),a=oe(n),s=f.useRef(!1);return m.jsx(nf,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ss.displayName=as;var yf="DropdownMenuGroup",is=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(rf,{...o,...r,ref:t})});is.displayName=yf;var xf="DropdownMenuLabel",cs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(of,{...o,...r,ref:t})});cs.displayName=xf;var wf="DropdownMenuItem",ls=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(af,{...o,...r,ref:t})});ls.displayName=wf;var Sf="DropdownMenuCheckboxItem",us=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(sf,{...o,...r,ref:t})});us.displayName=Sf;var Ef="DropdownMenuRadioGroup",ds=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(cf,{...o,...r,ref:t})});ds.displayName=Ef;var Cf="DropdownMenuRadioItem",fs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(lf,{...o,...r,ref:t})});fs.displayName=Cf;var _f="DropdownMenuItemIndicator",ps=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(uf,{...o,...r,ref:t})});ps.displayName=_f;var Rf="DropdownMenuSeparator",ms=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(df,{...o,...r,ref:t})});ms.displayName=Rf;var Of="DropdownMenuArrow",Af=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(ff,{...o,...r,ref:t})});Af.displayName=Of;var Mf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=st({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(pf,{...s,open:i,onOpenChange:l,children:n})},Tf="DropdownMenuSubTrigger",gs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(mf,{...o,...r,ref:t})});gs.displayName=Tf;var Pf="DropdownMenuSubContent",hs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(gf,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hs.displayName=Pf;var kf=ts,Nf=rs,vs=os,Df=ss,If=is,jf=cs,Lf=ls,Ff=us,$f=ds,zf=fs,bs=ps,Vf=ms,Bf=Mf,Gf=gs,Wf=hs;const Uf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ys=e=>{const t=Hf(e);return t.charAt(0).toUpperCase()+t.slice(1)},xs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Kf=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Yf={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 Xf=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Yf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xs("lucide",o),...!a&&!Kf(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const vt=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(Xf,{ref:a,iconNode:t,className:xs(`lucide-${Uf(ys(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ys(e),n};const qf=vt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Zf=vt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Jf=vt("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Qf=vt("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const ep=vt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function tp({...e}){return m.jsx(kf,{"data-slot":"dropdown-menu",...e})}function np({...e}){return m.jsx(vs,{"data-slot":"dropdown-menu-portal",...e})}function rp({...e}){return m.jsx(Nf,{"data-slot":"dropdown-menu-trigger",...e})}function op({className:e,sideOffset:t=4,...n}){return m.jsx(vs,{children:m.jsx(Df,{"data-slot":"dropdown-menu-content",sideOffset:t,className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function ap({...e}){return m.jsx(If,{"data-slot":"dropdown-menu-group",...e})}function sp({className:e,inset:t,variant:n="default",...r}){return m.jsx(Lf,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:N("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function ip({className:e,children:t,checked:n,...r}){return m.jsxs(Ff,{"data-slot":"dropdown-menu-checkbox-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(bs,{children:m.jsx(qf,{className:"size-4"})})}),t]})}function cp({...e}){return m.jsx($f,{"data-slot":"dropdown-menu-radio-group",...e})}function lp({className:e,children:t,...n}){return m.jsxs(zf,{"data-slot":"dropdown-menu-radio-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(bs,{children:m.jsx(Jf,{className:"size-2 fill-current"})})}),t]})}function up({className:e,inset:t,...n}){return m.jsx(jf,{"data-slot":"dropdown-menu-label","data-inset":t,className:N("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function dp({className:e,...t}){return m.jsx(Vf,{"data-slot":"dropdown-menu-separator",className:N("bg-border -mx-1 my-1 h-px",e),...t})}function fp({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:N("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function pp({...e}){return m.jsx(Bf,{"data-slot":"dropdown-menu-sub",...e})}function mp({className:e,inset:t,children:n,...r}){return m.jsxs(Gf,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:N("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(Zf,{className:"ml-auto size-4"})]})}function gp({className:e,...t}){return m.jsx(Wf,{"data-slot":"dropdown-menu-sub-content",className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const rr=768;function hp(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${rr-1}px)`),r=()=>{t(window.innerWidth<rr)};return n.addEventListener("change",r),t(window.innerWidth<rr),()=>n.removeEventListener("change",r)},[]),!!e}var vp=Symbol.for("react.lazy"),Qt=f[" use ".trim().toString()];function bp(e){return typeof e=="object"&&e!==null&&"then"in e}function ws(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===vp&&"_payload"in e&&bp(e._payload)}function yp(e){const t=xp(e),n=f.forwardRef((r,o)=>{let{children:a,...s}=r;ws(a)&&typeof Qt=="function"&&(a=Qt(a._payload));const i=f.Children.toArray(a),l=i.find(Sp);if(l){const c=l.props.children,p=i.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function xp(e){const t=f.forwardRef((n,r)=>{let{children:o,...a}=n;if(ws(o)&&typeof Qt=="function"&&(o=Qt(o._payload)),f.isValidElement(o)){const s=Cp(o),i=Ep(a,o.props);return o.type!==f.Fragment&&(i.ref=r?nt(r,s):s),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wp=Symbol("radix.slottable");function Sp(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wp}function Ep(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Cp(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 _p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rp=_p.reduce((e,t)=>{const n=yp(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Op="Separator",Ss="horizontal",Ap=["horizontal","vertical"],Es=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ss,...o}=e,a=Mp(r)?r:Ss,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(Rp.div,{"data-orientation":a,...i,...o,ref:t})});Es.displayName=Op;function Mp(e){return Ap.includes(e)}var Tp=Es;function Pp({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(Tp,{"data-slot":"separator",decorative:n,orientation:t,className:N("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}var en="Dialog",[Cs,pg]=Oe(en),[kp,ge]=Cs(en),_s=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=f.useRef(null),l=f.useRef(null),[c,p]=st({prop:r,defaultProp:o??!1,onChange:a,caller:en});return m.jsx(kp,{scope:t,triggerRef:i,contentRef:l,contentId:Ce(),titleId:Ce(),descriptionId:Ce(),open:c,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};_s.displayName=en;var Rs="DialogTrigger",Np=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Rs,n),a=ee(t,o.triggerRef);return m.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sr(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Np.displayName=Rs;var or="DialogPortal",[Dp,Os]=Cs(or,{forceMount:void 0}),As=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ge(or,t);return m.jsx(Dp,{scope:t,forceMount:n,children:f.Children.map(r,s=>m.jsx(xe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};As.displayName=or;var tn="DialogOverlay",Ms=f.forwardRef((e,t)=>{const n=Os(tn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ge(tn,e.__scopeDialog);return a.modal?m.jsx(xe,{present:r||a.open,children:m.jsx(jp,{...o,ref:t})}):null});Ms.displayName=tn;var Ip=ze("DialogOverlay.RemoveScroll"),jp=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(tn,n);return m.jsx(Kn,{as:Ip,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Z.div,{"data-state":sr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",Ts=f.forwardRef((e,t)=>{const n=Os(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ge(Fe,e.__scopeDialog);return m.jsx(xe,{present:r||a.open,children:a.modal?m.jsx(Lp,{...o,ref:t}):m.jsx(Fp,{...o,ref:t})})});Ts.displayName=Fe;var Lp=f.forwardRef((e,t)=>{const n=ge(Fe,e.__scopeDialog),r=f.useRef(null),o=ee(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return ga(a)},[]),m.jsx(Ps,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Fp=f.forwardRef((e,t)=>{const n=ge(Fe,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return m.jsx(Ps,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ps=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=ge(Fe,n),l=f.useRef(null),c=ee(t,l);return xo(),m.jsxs(m.Fragment,{children:[m.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":sr(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx($p,{titleId:i.titleId}),m.jsx(Vp,{contentRef:l,descriptionId:i.descriptionId})]})]})}),ar="DialogTitle",ks=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(ar,n);return m.jsx(Z.h2,{id:o.titleId,...r,ref:t})});ks.displayName=ar;var Ns="DialogDescription",Ds=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Ns,n);return m.jsx(Z.p,{id:o.descriptionId,...r,ref:t})});Ds.displayName=Ns;var Is="DialogClose",js=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Is,n);return m.jsx(Z.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});js.displayName=Is;function sr(e){return e?"open":"closed"}var Ls="DialogTitleWarning",[mg,Fs]=ri(Ls,{contentName:Fe,titleName:ar,docsSlug:"dialog"}),$p=({titleId:e})=>{const t=Fs(Ls),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
+
`)},gd=0,Je=[];function hd(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(gd++)[0],a=d.useState(fa)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Lu([e.lockRef.current],(e.shards||[]).map(ya),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Kt(h),x=n.current,C="deltaX"in h?h.deltaX:x[0]-y[0],w="deltaY"in h?h.deltaY:x[1]-y[1],E,M=h.target,O=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in h&&O==="h"&&M.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===M||L.contains(M):!1;if(B)return!1;var U=ga(O,M);if(!U)return!0;if(U?E=O:(E=O==="v"?"h":"v",U=ga(O,M)),!U)return!1;if(!r.current&&"changedTouches"in h&&(C||w)&&(r.current=E),!E)return!0;var H=r.current||E;return fd(H,b,h,H==="h"?C:w)},[]),l=d.useCallback(function(h){var b=h;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in b?ba(b):Kt(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&pd(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(ya).filter(Boolean).filter(function(E){return E.contains(b.target)}),w=C.length>0?i(b,C[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=d.useCallback(function(h,b,y,x){var C={name:h,delta:b,target:y,should:x,shadowParent:vd(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),p=d.useCallback(function(h){n.current=Kt(h),r.current=void 0},[]),u=d.useCallback(function(h){c(h.type,ba(h),h.target,i(h,e.lockRef.current))},[]),f=d.useCallback(function(h){c(h.type,Kt(h),h.target,i(h,e.lockRef.current))},[]);d.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ze),document.addEventListener("touchmove",l,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Ze),document.removeEventListener("touchmove",l,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var g=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:md(o)}):null,g?d.createElement(ad,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bd=Hu(da,hd);var Kn=d.forwardRef(function(e,t){return d.createElement(Ut,Se({},e,{ref:t,sideCar:bd}))});Kn.classNames=Ut.classNames;var Yn=["Enter"," "],yd=["ArrowDown","PageUp","Home"],xa=["ArrowUp","PageDown","End"],xd=[...yd,...xa],wd={ltr:[...Yn,"ArrowRight"],rtl:[...Yn,"ArrowLeft"]},Sd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},lt="Menu",[ut,Cd,Ed]=ao(lt),[je,wa]=Ee(lt,[Ed,$t,ta]),dt=$t(),Sa=ta(),[Ca,Ne]=je(lt),[_d,ft]=je(lt),Ea=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=dt(t),[l,c]=d.useState(null),p=d.useRef(!1),u=fe(a),f=so(o);return d.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($n,{...i,children:m.jsx(Ca,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(_d,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:s,children:r})})})};Ea.displayName=lt;var Rd="MenuAnchor",Xn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return m.jsx(Zo,{...o,...r,ref:t})});Xn.displayName=Rd;var qn="MenuPortal",[Od,_a]=je(qn,{forceMount:void 0}),Ra=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(qn,t);return m.jsx(Od,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Ra.displayName=qn;var de="MenuContent",[Ad,Zn]=je(de),Oa=d.forwardRef((e,t)=>{const n=_a(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=ft(de,e.__scopeMenu);return m.jsx(ut.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(ut.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(Md,{...o,ref:t}):m.jsx(Td,{...o,ref:t})})})})}),Md=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),m.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Td=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu);return m.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Pd=ze("MenuContent.ScrollLock"),Jn=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(de,n),y=ft(de,n),x=dt(n),C=Sa(n),w=Cd(n),[E,M]=d.useState(null),O=d.useRef(null),R=Q(t,O,b.onContentChange),L=d.useRef(0),B=d.useRef(""),U=d.useRef(0),H=d.useRef(null),X=d.useRef("right"),W=d.useRef(0),Z=v?Kn:d.Fragment,F=v?{as:Pd,allowPinchZoom:!0}:void 0,K=k=>{const S=B.current+k,I=w().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,q=I.map($=>$.textValue),ee=Gd(q,S,V),se=I.find($=>$.textValue===ee)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};d.useEffect(()=>()=>window.clearTimeout(L.current),[]),fo();const _=d.useCallback(k=>X.current===H.current?.side&&Ud(k,H.current?.area),[]);return m.jsx(Ad,{scope:n,searchRef:B,onItemEnter:d.useCallback(k=>{_(k)&&k.preventDefault()},[_]),onItemLeave:d.useCallback(k=>{_(k)||(O.current?.focus(),M(null))},[_]),onTriggerLeave:d.useCallback(k=>{_(k)&&k.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:d.useCallback(k=>{H.current=k},[]),children:m.jsx(Z,{...F,children:m.jsx(_n,{asChild:!0,trapped:o,onMountAutoFocus:j(a,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:m.jsx(ku,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:j(l,k=>{y.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Jo,{role:"menu","aria-orientation":"vertical","data-state":Ua(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,k=>{const I=k.target.closest("[data-radix-menu-content]")===k.currentTarget,G=k.ctrlKey||k.altKey||k.metaKey,V=k.key.length===1;I&&(k.key==="Tab"&&k.preventDefault(),!G&&V&&K(k.key));const q=O.current;if(k.target!==q||!xd.includes(k.key))return;k.preventDefault();const se=w().filter($=>!$.disabled).map($=>$.ref.current);xa.includes(k.key)&&se.reverse(),Vd(se)}),onBlur:j(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,mt(k=>{const S=k.target,I=W.current!==k.clientX;if(k.currentTarget.contains(S)&&I){const G=k.clientX>W.current?"right":"left";X.current=G,W.current=k.clientX}}))})})})})})})});Oa.displayName=de;var kd="MenuGroup",Qn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"group",...r,ref:t})});Qn.displayName=kd;var Nd="MenuLabel",Aa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{...r,ref:t})});Aa.displayName=Nd;var Yt="MenuItem",Ma="menu.itemSelect",Xt=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),s=ft(Yt,e.__scopeMenu),i=Zn(Yt,e.__scopeMenu),l=Q(t,a),c=d.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const f=new CustomEvent(Ma,{bubbles:!0,cancelable:!0});u.addEventListener(Ma,g=>r?.(g),{once:!0}),Cr(u,f),f.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(Ta,{...o,ref:l,disabled:n,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const f=i.searchRef.current!=="";n||f&&u.key===" "||Yn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Xt.displayName=Yt;var Ta=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Zn(Yt,n),i=Sa(n),l=d.useRef(null),c=Q(t,l),[p,u]=d.useState(!1),[f,g]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(ut.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Nu,{asChild:!0,...i,focusable:!r,children:m.jsx(Y.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,mt(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,mt(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),Dd="MenuCheckboxItem",Pa=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(ja,{scope:e.__scopeMenu,checked:n,children:m.jsx(Xt,{role:"menuitemcheckbox","aria-checked":qt(n)?"mixed":n,...o,ref:t,"data-state":nr(n),onSelect:j(o.onSelect,()=>r?.(qt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Pa.displayName=Dd;var ka="MenuRadioGroup",[Id,jd]=je(ka,{value:void 0,onValueChange:()=>{}}),Na=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=fe(r);return m.jsx(Id,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Qn,{...o,ref:t})})});Na.displayName=ka;var Da="MenuRadioItem",Ia=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=jd(Da,e.__scopeMenu),a=n===o.value;return m.jsx(ja,{scope:e.__scopeMenu,checked:a,children:m.jsx(Xt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nr(a),onSelect:j(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ia.displayName=Da;var er="MenuItemIndicator",[ja,Ld]=je(er,{checked:!1}),La=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Ld(er,n);return m.jsx(pe,{present:r||qt(a.checked)||a.checked===!0,children:m.jsx(Y.span,{...o,ref:t,"data-state":nr(a.checked)})})});La.displayName=er;var Fd="MenuSeparator",Fa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Fa.displayName=Fd;var $d="MenuArrow",$a=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return m.jsx(Qo,{...o,...r,ref:t})});$a.displayName=$d;var tr="MenuSub",[zd,za]=je(tr),Va=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(tr,t),s=dt(t),[i,l]=d.useState(null),[c,p]=d.useState(null),u=fe(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($n,{...s,children:m.jsx(Ca,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(zd,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:l,children:n})})})};Va.displayName=tr;var pt="MenuSubTrigger",Ba=d.forwardRef((e,t)=>{const n=Ne(pt,e.__scopeMenu),r=ft(pt,e.__scopeMenu),o=za(pt,e.__scopeMenu),a=Zn(pt,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xn,{asChild:!0,...c,children:m.jsx(Ta,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ua(n.open),...e,ref:rt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,mt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,mt(u=>{p();const f=n.content?.getBoundingClientRect();if(f){const g=n.content?.dataset.side,v=g==="right",h=v?-5:5,b=f[v?"left":"right"],y=f[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const f=a.searchRef.current!=="";e.disabled||f&&u.key===" "||wd[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Ba.displayName=pt;var Ga="MenuSubContent",Wa=d.forwardRef((e,t)=>{const n=_a(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=ft(de,e.__scopeMenu),i=za(Ga,e.__scopeMenu),l=d.useRef(null),c=Q(t,l);return m.jsx(ut.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(ut.Slot,{scope:e.__scopeMenu,children:m.jsx(Jn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),f=Sd[s.dir].includes(p.key);u&&f&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Wa.displayName=Ga;function Ua(e){return e?"open":"closed"}function qt(e){return e==="indeterminate"}function nr(e){return qt(e)?"indeterminate":e?"checked":"unchecked"}function Vd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Bd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Gd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Bd(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Wd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Ud(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Wd(n,t)}function mt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Hd=Ea,Kd=Xn,Yd=Ra,Xd=Oa,qd=Qn,Zd=Aa,Jd=Xt,Qd=Pa,ef=Na,tf=Ia,nf=La,rf=Fa,of=$a,af=Va,sf=Ba,cf=Wa,Zt="DropdownMenu",[lf,Cg]=Ee(Zt,[wa]),oe=wa(),[uf,Ha]=lf(Zt),Ka=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=d.useRef(null),[p,u]=We({prop:o,defaultProp:a??!1,onChange:s,caller:Zt});return m.jsx(uf,{scope:t,triggerId:ve(),triggerRef:c,contentId:ve(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:i,children:m.jsx(Hd,{...l,open:p,onOpenChange:u,dir:r,modal:i,children:n})})};Ka.displayName=Zt;var Ya="DropdownMenuTrigger",Xa=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ha(Ya,n),s=oe(n);return m.jsx(Kd,{asChild:!0,...s,children:m.jsx(Y.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:rt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Xa.displayName=Ya;var df="DropdownMenuPortal",qa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oe(t);return m.jsx(Yd,{...r,...n})};qa.displayName=df;var Za="DropdownMenuContent",Ja=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ha(Za,n),a=oe(n),s=d.useRef(!1);return m.jsx(Xd,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ja.displayName=Za;var ff="DropdownMenuGroup",Qa=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(qd,{...o,...r,ref:t})});Qa.displayName=ff;var pf="DropdownMenuLabel",es=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Zd,{...o,...r,ref:t})});es.displayName=pf;var mf="DropdownMenuItem",ts=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Jd,{...o,...r,ref:t})});ts.displayName=mf;var gf="DropdownMenuCheckboxItem",ns=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Qd,{...o,...r,ref:t})});ns.displayName=gf;var hf="DropdownMenuRadioGroup",rs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(ef,{...o,...r,ref:t})});rs.displayName=hf;var vf="DropdownMenuRadioItem",os=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(tf,{...o,...r,ref:t})});os.displayName=vf;var bf="DropdownMenuItemIndicator",as=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(nf,{...o,...r,ref:t})});as.displayName=bf;var yf="DropdownMenuSeparator",ss=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(rf,{...o,...r,ref:t})});ss.displayName=yf;var xf="DropdownMenuArrow",wf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(of,{...o,...r,ref:t})});wf.displayName=xf;var Sf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=We({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(af,{...s,open:i,onOpenChange:l,children:n})},Cf="DropdownMenuSubTrigger",is=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(sf,{...o,...r,ref:t})});is.displayName=Cf;var Ef="DropdownMenuSubContent",cs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(cf,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cs.displayName=Ef;var _f=Ka,Rf=Xa,ls=qa,Of=Ja,Af=Qa,Mf=es,Tf=ts,Pf=ns,kf=rs,Nf=os,us=as,Df=ss,If=Sf,jf=is,Lf=cs;const Ff=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$f=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ds=e=>{const t=$f(e);return t.charAt(0).toUpperCase()+t.slice(1)},fs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),zf=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Vf={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 Bf=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Vf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fs("lucide",o),...!a&&!zf(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const gt=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(Bf,{ref:a,iconNode:t,className:fs(`lucide-${Ff(ds(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ds(e),n};const Gf=gt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Wf=gt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Uf=gt("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Hf=gt("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const Kf=gt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Yf({...e}){return m.jsx(_f,{"data-slot":"dropdown-menu",...e})}function Xf({...e}){return m.jsx(ls,{"data-slot":"dropdown-menu-portal",...e})}function qf({...e}){return m.jsx(Rf,{"data-slot":"dropdown-menu-trigger",...e})}function Zf({className:e,sideOffset:t=4,...n}){return m.jsx(ls,{children:m.jsx(Of,{"data-slot":"dropdown-menu-content",sideOffset:t,className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Jf({...e}){return m.jsx(Af,{"data-slot":"dropdown-menu-group",...e})}function Qf({className:e,inset:t,variant:n="default",...r}){return m.jsx(Tf,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:N("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function ep({className:e,children:t,checked:n,...r}){return m.jsxs(Pf,{"data-slot":"dropdown-menu-checkbox-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(us,{children:m.jsx(Gf,{className:"size-4"})})}),t]})}function tp({...e}){return m.jsx(kf,{"data-slot":"dropdown-menu-radio-group",...e})}function np({className:e,children:t,...n}){return m.jsxs(Nf,{"data-slot":"dropdown-menu-radio-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(us,{children:m.jsx(Uf,{className:"size-2 fill-current"})})}),t]})}function rp({className:e,inset:t,...n}){return m.jsx(Mf,{"data-slot":"dropdown-menu-label","data-inset":t,className:N("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function op({className:e,...t}){return m.jsx(Df,{"data-slot":"dropdown-menu-separator",className:N("bg-border -mx-1 my-1 h-px",e),...t})}function ap({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:N("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function sp({...e}){return m.jsx(If,{"data-slot":"dropdown-menu-sub",...e})}function ip({className:e,inset:t,children:n,...r}){return m.jsxs(jf,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:N("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(Wf,{className:"ml-auto size-4"})]})}function cp({className:e,...t}){return m.jsx(Lf,{"data-slot":"dropdown-menu-sub-content",className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var lp="Label",ps=d.forwardRef((e,t)=>m.jsx(Y.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ps.displayName=lp;var up=ps,dp=e=>e.type==="checkbox",ht=e=>e instanceof Date,rr=e=>e==null;const ms=e=>typeof e=="object";var Le=e=>!rr(e)&&!Array.isArray(e)&&ms(e)&&!ht(e),fp=e=>Le(e)&&e.target?dp(e.target)?e.target.checked:e.target.value:e,pp=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,mp=(e,t)=>e.has(pp(t)),gp=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},hp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function gs(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(hp&&(e instanceof Blob||r))&&(n||Le(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!gp(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=gs(e[o]));else return e;return t}var hs=e=>/^\w*$/.test(e),or=e=>e===void 0,vp=e=>Array.isArray(e)?e.filter(Boolean):[],vs=e=>vp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,n)=>{if(!t||!Le(e))return n;const r=(hs(t)?[t]:vs(t)).reduce((o,a)=>rr(o)?o:o[a],e);return or(r)||r===e?or(e[t])?n:e[t]:r},ar=e=>typeof e=="boolean",bs=(e,t,n)=>{let r=-1;const o=hs(t)?[t]:vs(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const c=e[i];l=Le(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const ys={BLUR:"blur",CHANGE:"change"},xs={all:"all"},sr=D.createContext(null);sr.displayName="HookFormContext";const Jt=()=>D.useContext(sr),bp=e=>{const{children:t,...n}=e;return D.createElement(sr.Provider,{value:n},t)};var yp=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==xs.all&&(t._proxyFormState[s]=!r||xs.all),n&&(n[s]=!0),e[s]}});return o};const ws=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Ss(e){const t=Jt(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=D.useState(n._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ws(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!r&&i({...n._formState,...c})}}),[o,r,a]),D.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>yp(s,n,l.current,!1),[s,n])}var xp=e=>typeof e=="string",Cs=(e,t,n,r,o)=>xp(e)?ae(n,e,o):Array.isArray(e)?e.map(a=>ae(n,a)):n,Es=e=>rr(e)||!ms(e);function Qt(e,t,n=new WeakSet){if(Es(e)||Es(t))return Object.is(e,t);if(ht(e)&&ht(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ht(s)&&ht(i)||Le(s)&&Le(i)||Array.isArray(s)&&Array.isArray(i)?!Qt(s,i,n):!Object.is(s,i))return!1}}return!0}function wp(e){const t=Jt(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(n),f=D.useRef(r);c.current=i;const[g,v]=D.useState(()=>{const w=n._getWatch(r,l.current);return c.current?c.current(w):w}),h=D.useCallback(w=>{const E=Cs(r,n._names,w||n._formValues,!1,l.current);return c.current?c.current(E):E},[n._formValues,n._names,r]),b=D.useCallback(w=>{if(!a){const E=Cs(r,n._names,w||n._formValues,!1,l.current);if(c.current){const M=c.current(E);Qt(M,p.current)||(v(M),p.current=M)}else v(E)}},[n._formValues,n._names,a,r]);ws(()=>((u.current!==n||!Qt(f.current,r))&&(u.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{b(w.values)}})),[n,s,r,b]),D.useEffect(()=>n._removeUnmounted());const y=u.current!==n,x=f.current,C=D.useMemo(()=>{if(a)return null;const w=!y&&!Qt(x,r);return y||w?h():null},[a,y,r,x,h]);return C!==null?C:g}function Sp(e){const t=Jt(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=mp(o._names.array,n),c=D.useMemo(()=>ae(o._formValues,n,ae(o._defaultValues,n,s)),[o,n,s]),p=wp({control:o,name:n,defaultValue:c,exact:i}),u=Ss({control:o,name:n,exact:i}),f=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(n,{...e.rules,value:p,...ar(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,n)},error:{enumerable:!0,get:()=>ae(u.errors,n)}}),[u,n]),b=D.useCallback(w=>v.current.onChange({target:{value:fp(w),name:n},type:ys.CHANGE}),[n]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,n),name:n},type:ys.BLUR}),[n,o._formValues]),x=D.useCallback(w=>{const E=ae(o._fields,n);E&&w&&(E._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:M=>w.setCustomValidity(M),reportValidity:()=>w.reportValidity()})},[o._fields,n]),C=D.useMemo(()=>({name:n,value:p,...ar(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:b,onBlur:y,ref:x}),[n,r,u.disabled,b,y,x,p]);return D.useEffect(()=>{const w=o._options.shouldUnregister||a,E=g.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...ar(f.current.disabled)?{disabled:f.current.disabled}:{}});const M=(O,R)=>{const L=ae(o._fields,O);L&&L._f&&(L._f.mount=R)};if(M(n,!0),w){const O=gs(ae(o._options.defaultValues,n,f.current.defaultValue));bs(o._defaultValues,n,O),or(ae(o._formValues,n))&&bs(o._formValues,n,O)}return!l&&o.register(n),g.current=n,()=>{(l?w&&!o._state.action:w)?o.unregister(n):M(n,!1)}},[n,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:C,formState:u,fieldState:h}),[C,u,h])}const Cp=e=>e.render(Sp(e));function _s({className:e,...t}){return m.jsx(up,{"data-slot":"label",className:N("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Ep=bp,Rs=d.createContext({}),_p=({...e})=>m.jsx(Rs.Provider,{value:{name:e.name},children:m.jsx(Cp,{...e})}),vt=()=>{const e=d.useContext(Rs),t=d.useContext(Os),{getFieldState:n}=Jt(),r=Ss({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Os=d.createContext({});function Rp({className:e,...t}){const n=d.useId();return m.jsx(Os.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:N("grid gap-2",e),...t})})}function Op({className:e,...t}){const{error:n,formItemId:r}=vt();return m.jsx(_s,{"data-slot":"form-label","data-error":!!n,className:N("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Ap({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=vt();return m.jsx(Ae,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Mp({className:e,...t}){const{formDescriptionId:n}=vt();return m.jsx("p",{"data-slot":"form-description",id:n,className:N("text-muted-foreground text-sm",e),...t})}function Tp({className:e,...t}){const{error:n,formMessageId:r}=vt(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:N("text-destructive text-sm",e),...t,children:o}):null}function As({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}const ir=768;function Pp(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ir-1}px)`),r=()=>{t(window.innerWidth<ir)};return n.addEventListener("change",r),t(window.innerWidth<ir),()=>n.removeEventListener("change",r)},[]),!!e}var kp=Symbol.for("react.lazy"),en=d[" use ".trim().toString()];function Np(e){return typeof e=="object"&&e!==null&&"then"in e}function Ms(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kp&&"_payload"in e&&Np(e._payload)}function Dp(e){const t=Ip(e),n=d.forwardRef((r,o)=>{let{children:a,...s}=r;Ms(a)&&typeof en=="function"&&(a=en(a._payload));const i=d.Children.toArray(a),l=i.find(Lp);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Ip(e){const t=d.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ms(o)&&typeof en=="function"&&(o=en(o._payload)),d.isValidElement(o)){const s=$p(o),i=Fp(a,o.props);return o.type!==d.Fragment&&(i.ref=r?rt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jp=Symbol("radix.slottable");function Lp(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jp}function Fp(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function $p(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 zp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vp=zp.reduce((e,t)=>{const n=Dp(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Bp="Separator",Ts="horizontal",Gp=["horizontal","vertical"],Ps=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ts,...o}=e,a=Wp(r)?r:Ts,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(Vp.div,{"data-orientation":a,...i,...o,ref:t})});Ps.displayName=Bp;function Wp(e){return Gp.includes(e)}var Up=Ps;function Hp({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(Up,{"data-slot":"separator",decorative:n,orientation:t,className:N("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}var tn="Dialog",[ks,Mg]=Ee(tn),[Kp,he]=ks(tn),Ns=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),l=d.useRef(null),[c,p]=We({prop:r,defaultProp:o??!1,onChange:a,caller:tn});return m.jsx(Kp,{scope:t,triggerRef:i,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};Ns.displayName=tn;var Ds="DialogTrigger",Yp=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Ds,n),a=Q(t,o.triggerRef);return m.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ur(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Yp.displayName=Ds;var cr="DialogPortal",[Xp,Is]=ks(cr,{forceMount:void 0}),js=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=he(cr,t);return m.jsx(Xp,{scope:t,forceMount:n,children:d.Children.map(r,s=>m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};js.displayName=cr;var nn="DialogOverlay",Ls=d.forwardRef((e,t)=>{const n=Is(nn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(nn,e.__scopeDialog);return a.modal?m.jsx(pe,{present:r||a.open,children:m.jsx(Zp,{...o,ref:t})}):null});Ls.displayName=nn;var qp=ze("DialogOverlay.RemoveScroll"),Zp=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(nn,n);return m.jsx(Kn,{as:qp,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Y.div,{"data-state":ur(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",Fs=d.forwardRef((e,t)=>{const n=Is(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(Fe,e.__scopeDialog);return m.jsx(pe,{present:r||a.open,children:a.modal?m.jsx(Jp,{...o,ref:t}):m.jsx(Qp,{...o,ref:t})})});Fs.displayName=Fe;var Jp=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(null),o=Q(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),m.jsx($s,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Qp=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return m.jsx($s,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),$s=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(Fe,n),l=d.useRef(null),c=Q(t,l);return fo(),m.jsxs(m.Fragment,{children:[m.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ur(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(em,{titleId:i.titleId}),m.jsx(nm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),lr="DialogTitle",zs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(lr,n);return m.jsx(Y.h2,{id:o.titleId,...r,ref:t})});zs.displayName=lr;var Vs="DialogDescription",Bs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Vs,n);return m.jsx(Y.p,{id:o.descriptionId,...r,ref:t})});Bs.displayName=Vs;var Gs="DialogClose",Ws=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Gs,n);return m.jsx(Y.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Ws.displayName=Gs;function ur(e){return e?"open":"closed"}var Us="DialogTitleWarning",[Tg,Hs]=di(Us,{contentName:Fe,titleName:lr,docsSlug:"dialog"}),em=({titleId:e})=>{const t=Hs(Us),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
51
51
|
|
|
52
52
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
53
53
|
|
|
54
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},zp="DialogDescriptionWarning",Vp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fs(zp).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Bp=_s,Gp=As,Wp=Ms,Up=Ts,Hp=ks,Kp=Ds,Yp=js;function Xp({...e}){return m.jsx(Bp,{"data-slot":"sheet",...e})}function qp({...e}){return m.jsx(Gp,{"data-slot":"sheet-portal",...e})}function Zp({className:e,...t}){return m.jsx(Wp,{"data-slot":"sheet-overlay",className:N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Jp({className:e,children:t,side:n="right",...r}){return m.jsxs(qp,{children:[m.jsx(Zp,{}),m.jsxs(Up,{"data-slot":"sheet-content",className:N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(Yp,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx(ep,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qp({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:N("flex flex-col gap-1.5 p-4",e),...t})}function em({className:e,...t}){return m.jsx(Hp,{"data-slot":"sheet-title",className:N("text-foreground font-semibold",e),...t})}function tm({className:e,...t}){return m.jsx(Kp,{"data-slot":"sheet-description",className:N("text-muted-foreground text-sm",e),...t})}function $s({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:N("bg-accent animate-pulse rounded-md",e),...t})}var nm=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"}),rm="VisuallyHidden",zs=f.forwardRef((e,t)=>m.jsx(Z.span,{...e,ref:t,style:{...nm,...e.style}}));zs.displayName=rm;var om=zs,[nn,gg]=Oe("Tooltip",[$t]),rn=$t(),Vs="TooltipProvider",am=700,ir="tooltip.open",[sm,cr]=nn(Vs),Bs=e=>{const{__scopeTooltip:t,delayDuration:n=am,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=f.useRef(!0),i=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(sm,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:f.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};Bs.displayName=Vs;var bt="Tooltip",[im,yt]=nn(bt),Gs=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=cr(bt,e.__scopeTooltip),c=rn(t),[p,u]=f.useState(null),d=Ce(),g=f.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=f.useRef(!1),[y,w]=st({prop:r,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(ir))):l.onClose(),a?.(O)},caller:bt}),E=f.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),x=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),M=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,w(!0),g.current=0},h)},[h,w]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($n,{...c,children:m.jsx(im,{scope:t,contentId:d,open:y,stateAttribute:E,trigger:p,onTriggerChange:u,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?M():x()},[l.isOpenDelayedRef,M,x]),onTriggerLeave:f.useCallback(()=>{v?C():(window.clearTimeout(g.current),g.current=0)},[C,v]),onOpen:x,onClose:C,disableHoverableContent:v,children:n})})};Gs.displayName=bt;var lr="TooltipTrigger",Ws=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yt(lr,n),a=cr(lr,n),s=rn(n),i=f.useRef(null),l=ee(t,i,o.onTriggerChange),c=f.useRef(!1),p=f.useRef(!1),u=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(aa,{asChild:!0,...s,children:m.jsx(Z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,d=>{d.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Ws.displayName=lr;var ur="TooltipPortal",[cm,lm]=nn(ur,{forceMount:void 0}),Us=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=yt(ur,t);return m.jsx(cm,{scope:t,forceMount:n,children:m.jsx(xe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Us.displayName=ur;var Je="TooltipContent",Hs=f.forwardRef((e,t)=>{const n=lm(Je,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=yt(Je,e.__scopeTooltip);return m.jsx(xe,{present:r||s.open,children:s.disableHoverableContent?m.jsx(Ks,{side:o,...a,ref:t}):m.jsx(um,{side:o,...a,ref:t})})}),um=f.forwardRef((e,t)=>{const n=yt(Je,e.__scopeTooltip),r=cr(Je,e.__scopeTooltip),o=f.useRef(null),a=ee(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,d=f.useCallback(()=>{i(null),u(!1)},[u]),g=f.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},w=mm(y,b.getBoundingClientRect()),E=gm(y,w),x=hm(h.getBoundingClientRect()),C=bm([...E,...x]);i(C),u(!0)},[u]);return f.useEffect(()=>()=>d(),[d]),f.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,d]),f.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},w=l?.contains(b)||p?.contains(b),E=!vm(y,s);w?d():E&&(d(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,d]),m.jsx(Ks,{...e,ref:a})}),[dm,fm]=nn(bt,{isInside:!1}),pm=ui("TooltipContent"),Ks=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(Je,n),c=rn(n),{onClose:p}=l;return f.useEffect(()=>(document.addEventListener(ir,p),()=>document.removeEventListener(ir,p)),[p]),f.useEffect(()=>{if(l.trigger){const u=d=>{d.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(sa,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(pm,{children:r}),m.jsx(dm,{scope:n,isInside:!0,children:m.jsx(om,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Hs.displayName=Je;var Ys="TooltipArrow",Xs=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=rn(n);return fm(Ys,n).isInside?null:m.jsx(ia,{...o,...r,ref:t})});Xs.displayName=Ys;function mm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gm(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hm(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function vm(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,d=l.y;p>r!=d>r&&n<(u-c)*(r-p)/(d-p)+c&&(o=!o)}return o}function bm(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ym(t)}function ym(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xm=Bs,wm=Gs,Sm=Ws,Em=Us,Cm=Hs,_m=Xs;function qs({delayDuration:e=0,...t}){return m.jsx(xm,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Rm({...e}){return m.jsx(qs,{children:m.jsx(wm,{"data-slot":"tooltip",...e})})}function Om({...e}){return m.jsx(Sm,{"data-slot":"tooltip-trigger",...e})}function Am({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Em,{children:m.jsxs(Cm,{"data-slot":"tooltip-content",sideOffset:t,className:N("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(_m,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Mm="sidebar_state",Tm=3600*24*7,Pm="16rem",km="18rem",Nm="3rem",Dm="b",Zs=f.createContext(null);function xt(){const e=f.useContext(Zs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Im({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=hp(),[l,c]=f.useState(!1),[p,u]=f.useState(e),d=t??p,g=f.useCallback(y=>{const w=typeof y=="function"?y(d):y;n?n(w):u(w),document.cookie=`${Mm}=${w}; path=/; max-age=${Tm}`},[n,d]),v=f.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);f.useEffect(()=>{const y=w=>{w.key===Dm&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=d?"expanded":"collapsed",b=f.useMemo(()=>({state:h,open:d,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,d,g,i,l,c,v]);return m.jsx(Zs.Provider,{value:b,children:m.jsx(qs,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Pm,"--sidebar-width-icon":Nm,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function jm({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?m.jsx(Xp,{open:l,onOpenChange:c,...a,children:m.jsxs(Jp,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":km},side:e,children:[m.jsxs(Qp,{className:"sr-only",children:[m.jsx(em,{children:"Sidebar"}),m.jsx(tm,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function Lm({className:e,onClick:t,...n}){const{toggleSidebar:r}=xt();return m.jsxs(qr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:N("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[m.jsx(Qf,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Fm({className:e,...t}){const{toggleSidebar:n}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function $m({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function zm({className:e,...t}){return m.jsx(po,{"data-slot":"sidebar-input","data-sidebar":"input",className:N("bg-background h-8 w-full shadow-none",e),...t})}function Vm({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t})}function Bm({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t})}function Gm({className:e,...t}){return m.jsx(Pp,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t})}function Wm({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Um({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Hm({className:e,asChild:t=!1,...n}){const r=t?Ae:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function Km({className:e,asChild:t=!1,...n}){const r=t?Ae:"button";return m.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function Ym({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t})}function Xm({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t})}function qm({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t})}const Zm=hn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Jm({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?Ae:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(Zm({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Rm,{children:[m.jsx(Om,{asChild:!0,children:p}),m.jsx(Am,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function Qm({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Ae:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function eg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function tg({className:e,showIcon:t=!1,...n}){const r=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&m.jsx($s,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx($s,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function ng({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function rg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t})}function og({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Ae:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}A.Avatar=sc,A.AvatarFallback=cc,A.AvatarImage=ic,A.Badge=lc,A.Button=qr,A.Card=uc,A.CardAction=mc,A.CardContent=gc,A.CardDescription=pc,A.CardFooter=hc,A.CardHeader=dc,A.CardTitle=fc,A.DropdownMenu=tp,A.DropdownMenuCheckboxItem=ip,A.DropdownMenuContent=op,A.DropdownMenuGroup=ap,A.DropdownMenuItem=sp,A.DropdownMenuLabel=up,A.DropdownMenuPortal=np,A.DropdownMenuRadioGroup=cp,A.DropdownMenuRadioItem=lp,A.DropdownMenuSeparator=dp,A.DropdownMenuShortcut=fp,A.DropdownMenuSub=pp,A.DropdownMenuSubContent=gp,A.DropdownMenuSubTrigger=mp,A.DropdownMenuTrigger=rp,A.Form=kc,A.FormControl=jc,A.FormDescription=Lc,A.FormField=Nc,A.FormItem=Dc,A.FormLabel=Ic,A.FormMessage=Fc,A.Input=po,A.Label=lo,A.Sidebar=jm,A.SidebarContent=Wm,A.SidebarFooter=Bm,A.SidebarGroup=Um,A.SidebarGroupAction=Km,A.SidebarGroupContent=Ym,A.SidebarGroupLabel=Hm,A.SidebarHeader=Vm,A.SidebarInput=zm,A.SidebarInset=$m,A.SidebarMenu=Xm,A.SidebarMenuAction=Qm,A.SidebarMenuBadge=eg,A.SidebarMenuButton=Jm,A.SidebarMenuItem=qm,A.SidebarMenuSkeleton=tg,A.SidebarMenuSub=ng,A.SidebarMenuSubButton=og,A.SidebarMenuSubItem=rg,A.SidebarProvider=Im,A.SidebarRail=Fm,A.SidebarSeparator=Gm,A.SidebarTrigger=Lm,A.badgeVariants=Yr,A.buttonVariants=Xr,A.cn=N,A.useFormField=at,A.useSidebar=xt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
54
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tm="DialogDescriptionWarning",nm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hs(tm).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rm=Ns,om=js,am=Ls,sm=Fs,im=zs,cm=Bs,lm=Ws;function um({...e}){return m.jsx(rm,{"data-slot":"sheet",...e})}function dm({...e}){return m.jsx(om,{"data-slot":"sheet-portal",...e})}function fm({className:e,...t}){return m.jsx(am,{"data-slot":"sheet-overlay",className:N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function pm({className:e,children:t,side:n="right",...r}){return m.jsxs(dm,{children:[m.jsx(fm,{}),m.jsxs(sm,{"data-slot":"sheet-content",className:N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(lm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx(Kf,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function mm({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:N("flex flex-col gap-1.5 p-4",e),...t})}function gm({className:e,...t}){return m.jsx(im,{"data-slot":"sheet-title",className:N("text-foreground font-semibold",e),...t})}function hm({className:e,...t}){return m.jsx(cm,{"data-slot":"sheet-description",className:N("text-muted-foreground text-sm",e),...t})}function Ks({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:N("bg-accent animate-pulse rounded-md",e),...t})}var vm=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"}),bm="VisuallyHidden",Ys=d.forwardRef((e,t)=>m.jsx(Y.span,{...e,ref:t,style:{...vm,...e.style}}));Ys.displayName=bm;var ym=Ys,[rn,Pg]=Ee("Tooltip",[$t]),on=$t(),Xs="TooltipProvider",xm=700,dr="tooltip.open",[wm,fr]=rn(Xs),qs=e=>{const{__scopeTooltip:t,delayDuration:n=xm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(wm,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};qs.displayName=Xs;var bt="Tooltip",[Sm,yt]=rn(bt),Zs=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=fr(bt,e.__scopeTooltip),c=on(t),[p,u]=d.useState(null),f=ve(),g=d.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=d.useRef(!1),[y,x]=We({prop:r,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(dr))):l.onClose(),a?.(O)},caller:bt}),C=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),w=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),M=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,x(!0),g.current=0},h)},[h,x]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($n,{...c,children:m.jsx(Sm,{scope:t,contentId:f,open:y,stateAttribute:C,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?M():w()},[l.isOpenDelayedRef,M,w]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(g.current),g.current=0)},[E,v]),onOpen:w,onClose:E,disableHoverableContent:v,children:n})})};Zs.displayName=bt;var pr="TooltipTrigger",Js=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yt(pr,n),a=fr(pr,n),s=on(n),i=d.useRef(null),l=Q(t,i,o.onTriggerChange),c=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(Zo,{asChild:!0,...s,children:m.jsx(Y.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,f=>{f.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Js.displayName=pr;var mr="TooltipPortal",[Cm,Em]=rn(mr,{forceMount:void 0}),Qs=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=yt(mr,t);return m.jsx(Cm,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Qs.displayName=mr;var Qe="TooltipContent",ei=d.forwardRef((e,t)=>{const n=Em(Qe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=yt(Qe,e.__scopeTooltip);return m.jsx(pe,{present:r||s.open,children:s.disableHoverableContent?m.jsx(ti,{side:o,...a,ref:t}):m.jsx(_m,{side:o,...a,ref:t})})}),_m=d.forwardRef((e,t)=>{const n=yt(Qe,e.__scopeTooltip),r=fr(Qe,e.__scopeTooltip),o=d.useRef(null),a=Q(t,o),[s,i]=d.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,f=d.useCallback(()=>{i(null),u(!1)},[u]),g=d.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Mm(y,b.getBoundingClientRect()),C=Tm(y,x),w=Pm(h.getBoundingClientRect()),E=Nm([...C,...w]);i(E),u(!0)},[u]);return d.useEffect(()=>()=>f(),[f]),d.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,f]),d.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},x=l?.contains(b)||p?.contains(b),C=!km(y,s);x?f():C&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,f]),m.jsx(ti,{...e,ref:a})}),[Rm,Om]=rn(bt,{isInside:!1}),Am=bi("TooltipContent"),ti=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(Qe,n),c=on(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(dr,p),()=>document.removeEventListener(dr,p)),[p]),d.useEffect(()=>{if(l.trigger){const u=f=>{f.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(Jo,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(Am,{children:r}),m.jsx(Rm,{scope:n,isInside:!0,children:m.jsx(ym,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ei.displayName=Qe;var ni="TooltipArrow",ri=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(n);return Om(ni,n).isInside?null:m.jsx(Qo,{...o,...r,ref:t})});ri.displayName=ni;function Mm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Tm(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Pm(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function km(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Nm(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Dm(t)}function Dm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Im=qs,jm=Zs,Lm=Js,Fm=Qs,$m=ei,zm=ri;function oi({delayDuration:e=0,...t}){return m.jsx(Im,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Vm({...e}){return m.jsx(oi,{children:m.jsx(jm,{"data-slot":"tooltip",...e})})}function Bm({...e}){return m.jsx(Lm,{"data-slot":"tooltip-trigger",...e})}function Gm({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Fm,{children:m.jsxs($m,{"data-slot":"tooltip-content",sideOffset:t,className:N("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(zm,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Wm="sidebar_state",Um=3600*24*7,Hm="16rem",Km="18rem",Ym="3rem",Xm="b",ai=d.createContext(null);function xt(){const e=d.useContext(ai);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function qm({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=Pp(),[l,c]=d.useState(!1),[p,u]=d.useState(e),f=t??p,g=d.useCallback(y=>{const x=typeof y=="function"?y(f):y;n?n(x):u(x),document.cookie=`${Wm}=${x}; path=/; max-age=${Um}`},[n,f]),v=d.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);d.useEffect(()=>{const y=x=>{x.key===Xm&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=f?"expanded":"collapsed",b=d.useMemo(()=>({state:h,open:f,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,f,g,i,l,c,v]);return m.jsx(ai.Provider,{value:b,children:m.jsx(oi,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Hm,"--sidebar-width-icon":Ym,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Zm({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?m.jsx(um,{open:l,onOpenChange:c,...a,children:m.jsxs(pm,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Km},side:e,children:[m.jsxs(mm,{className:"sr-only",children:[m.jsx(gm,{children:"Sidebar"}),m.jsx(hm,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function Jm({className:e,onClick:t,...n}){const{toggleSidebar:r}=xt();return m.jsxs(eo,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:N("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[m.jsx(Hf,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Qm({className:e,...t}){const{toggleSidebar:n}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function eg({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function tg({className:e,...t}){return m.jsx(As,{"data-slot":"sidebar-input","data-sidebar":"input",className:N("bg-background h-8 w-full shadow-none",e),...t})}function ng({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t})}function rg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t})}function og({className:e,...t}){return m.jsx(Hp,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t})}function ag({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function sg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t})}function ig({className:e,asChild:t=!1,...n}){const r=t?Ae:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function cg({className:e,asChild:t=!1,...n}){const r=t?Ae:"button";return m.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function lg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t})}function ug({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t})}function dg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t})}const fg=vn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pg({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?Ae:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(fg({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Vm,{children:[m.jsx(Bm,{asChild:!0,children:p}),m.jsx(Gm,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function mg({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Ae:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function gg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function hg({className:e,showIcon:t=!1,...n}){const r=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&m.jsx(Ks,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(Ks,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function vg({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function bg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t})}function yg({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Ae:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}A.Avatar=mc,A.AvatarFallback=hc,A.AvatarImage=gc,A.Badge=vc,A.Button=eo,A.Card=bc,A.CardAction=Sc,A.CardContent=Cc,A.CardDescription=wc,A.CardFooter=Ec,A.CardHeader=yc,A.CardTitle=xc,A.Collapsible=Lc,A.CollapsibleContent=$c,A.CollapsibleTrigger=Fc,A.DropdownMenu=Yf,A.DropdownMenuCheckboxItem=ep,A.DropdownMenuContent=Zf,A.DropdownMenuGroup=Jf,A.DropdownMenuItem=Qf,A.DropdownMenuLabel=rp,A.DropdownMenuPortal=Xf,A.DropdownMenuRadioGroup=tp,A.DropdownMenuRadioItem=np,A.DropdownMenuSeparator=op,A.DropdownMenuShortcut=ap,A.DropdownMenuSub=sp,A.DropdownMenuSubContent=cp,A.DropdownMenuSubTrigger=ip,A.DropdownMenuTrigger=qf,A.Form=Ep,A.FormControl=Ap,A.FormDescription=Mp,A.FormField=_p,A.FormItem=Rp,A.FormLabel=Op,A.FormMessage=Tp,A.Input=As,A.Label=_s,A.Sidebar=Zm,A.SidebarContent=ag,A.SidebarFooter=rg,A.SidebarGroup=sg,A.SidebarGroupAction=cg,A.SidebarGroupContent=lg,A.SidebarGroupLabel=ig,A.SidebarHeader=ng,A.SidebarInput=tg,A.SidebarInset=eg,A.SidebarMenu=ug,A.SidebarMenuAction=mg,A.SidebarMenuBadge=gg,A.SidebarMenuButton=pg,A.SidebarMenuItem=dg,A.SidebarMenuSkeleton=hg,A.SidebarMenuSub=vg,A.SidebarMenuSubButton=yg,A.SidebarMenuSubItem=bg,A.SidebarProvider=qm,A.SidebarRail=Qm,A.SidebarSeparator=og,A.SidebarTrigger=Jm,A.badgeVariants=Jr,A.buttonVariants=Qr,A.cn=N,A.useFormField=vt,A.useSidebar=xt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|