@qodo/design-system 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),Aa=require("react-dom");function Ta(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=Ta(N),wr=Ta(Aa),$c={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},Vc={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},Bc={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},Wc={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var Jt={exports:{}},jt={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),Jt=require("react-dom");function Js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Js(P),jr=Js(Jt),ku={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},Tu={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},Au={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},Nu={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var lr={exports:{}},Bt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Mo;function zc(){if(Mo)return jt;Mo=1;var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,u){var d,p={},v=null,h=null;u!==void 0&&(v=""+u),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(h=l.ref);for(d in l)n.call(l,d)&&!a.hasOwnProperty(d)&&(p[d]=l[d]);if(i&&i.defaultProps)for(d in l=i.defaultProps,l)p[d]===void 0&&(p[d]=l[d]);return{$$typeof:t,type:i,key:v,ref:h,props:p,_owner:o.current}}return jt.Fragment=r,jt.jsx=s,jt.jsxs=s,jt}var Dt={};/**
9
+ */var es;function _u(){if(es)return Bt;es=1;var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,u){var f,p={},g=null,v=null;u!==void 0&&(g=""+u),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(v=c.ref);for(f in c)n.call(c,f)&&!s.hasOwnProperty(f)&&(p[f]=c[f]);if(i&&i.defaultProps)for(f in c=i.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:i,key:g,ref:v,props:p,_owner:o.current}}return Bt.Fragment=r,Bt.jsx=a,Bt.jsxs=a,Bt}var Wt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,117 +14,117 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Fo;function Gc(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&(function(){var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),w=Symbol.iterator,m="@@iterator";function b(g){if(g===null||typeof g!="object")return null;var T=w&&g[w]||g[m];return typeof T=="function"?T:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(g){{for(var T=arguments.length,I=new Array(T>1?T-1:0),H=1;H<T;H++)I[H-1]=arguments[H];C("error",g,I)}}function C(g,T,I){{var H=y.ReactDebugCurrentFrame,le=H.getStackAddendum();le!==""&&(T+="%s",I=I.concat([le]));var ue=I.map(function(ie){return String(ie)});ue.unshift("Warning: "+T),Function.prototype.apply.call(console[g],console,ue)}}var S=!1,E=!1,_=!1,P=!1,R=!1,W;W=Symbol.for("react.module.reference");function K(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===a||R||g===o||g===u||g===d||P||g===h||S||E||_||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===p||g.$$typeof===s||g.$$typeof===i||g.$$typeof===l||g.$$typeof===W||g.getModuleId!==void 0))}function re(g,T,I){var H=g.displayName;if(H)return H;var le=T.displayName||T.name||"";return le!==""?I+"("+le+")":I}function ee(g){return g.displayName||"Context"}function Y(g){if(g==null)return null;if(typeof g.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case i:var T=g;return ee(T)+".Consumer";case s:var I=g;return ee(I._context)+".Provider";case l:return re(g,g.render,"ForwardRef");case p:var H=g.displayName||null;return H!==null?H:Y(g.type)||"Memo";case v:{var le=g,ue=le._payload,ie=le._init;try{return Y(ie(ue))}catch{return null}}}return null}var z=Object.assign,X=0,L,q,A,ae,de,ge,k;function j(){}j.__reactDisabledLog=!0;function $(){{if(X===0){L=console.log,q=console.info,A=console.warn,ae=console.error,de=console.group,ge=console.groupCollapsed,k=console.groupEnd;var g={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}X++}}function D(){{if(X--,X===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},g,{value:L}),info:z({},g,{value:q}),warn:z({},g,{value:A}),error:z({},g,{value:ae}),group:z({},g,{value:de}),groupCollapsed:z({},g,{value:ge}),groupEnd:z({},g,{value:k})})}X<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=y.ReactCurrentDispatcher,O;function G(g,T,I){{if(O===void 0)try{throw Error()}catch(le){var H=le.stack.trim().match(/\n( *(at )?)/);O=H&&H[1]||""}return`
18
- `+O+g}}var J=!1,Q;{var se=typeof WeakMap=="function"?WeakMap:Map;Q=new se}function ne(g,T){if(!g||J)return"";{var I=Q.get(g);if(I!==void 0)return I}var H;J=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ue;ue=Z.current,Z.current=null,$();try{if(T){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(ye){H=ye}Reflect.construct(g,[],ie)}else{try{ie.call()}catch(ye){H=ye}g.call(ie.prototype)}}else{try{throw Error()}catch(ye){H=ye}g()}}catch(ye){if(ye&&H&&typeof ye.stack=="string"){for(var oe=ye.stack.split(`
19
- `),xe=H.stack.split(`
20
- `),fe=oe.length-1,pe=xe.length-1;fe>=1&&pe>=0&&oe[fe]!==xe[pe];)pe--;for(;fe>=1&&pe>=0;fe--,pe--)if(oe[fe]!==xe[pe]){if(fe!==1||pe!==1)do if(fe--,pe--,pe<0||oe[fe]!==xe[pe]){var Pe=`
21
- `+oe[fe].replace(" at new "," at ");return g.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",g.displayName)),typeof g=="function"&&Q.set(g,Pe),Pe}while(fe>=1&&pe>=0);break}}}finally{J=!1,Z.current=ue,D(),Error.prepareStackTrace=le}var mt=g?g.displayName||g.name:"",rt=mt?G(mt):"";return typeof g=="function"&&Q.set(g,rt),rt}function be(g,T,I){return ne(g,!1)}function Re(g){var T=g.prototype;return!!(T&&T.isReactComponent)}function je(g,T,I){if(g==null)return"";if(typeof g=="function")return ne(g,Re(g));if(typeof g=="string")return G(g);switch(g){case u:return G("Suspense");case d:return G("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case l:return be(g.render);case p:return je(g.type,T,I);case v:{var H=g,le=H._payload,ue=H._init;try{return je(ue(le),T,I)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,He={},Zt=y.ReactDebugCurrentFrame;function Ve(g){if(g){var T=g._owner,I=je(g.type,g._source,T?T.type:null);Zt.setExtraStackFrame(I)}else Zt.setExtraStackFrame(null)}function hc(g,T,I,H,le){{var ue=Function.call.bind(Ae);for(var ie in g)if(ue(g,ie)){var oe=void 0;try{if(typeof g[ie]!="function"){var xe=Error((H||"React class")+": "+I+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}oe=g[ie](T,ie,H,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fe){oe=fe}oe&&!(oe instanceof Error)&&(Ve(le),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",H||"React class",I,ie,typeof oe),Ve(null)),oe instanceof Error&&!(oe.message in He)&&(He[oe.message]=!0,Ve(le),x("Failed %s type: %s",I,oe.message),Ve(null))}}}var bc=Array.isArray;function Hr(g){return bc(g)}function xc(g){{var T=typeof Symbol=="function"&&Symbol.toStringTag,I=T&&g[Symbol.toStringTag]||g.constructor.name||"Object";return I}}function yc(g){try{return Eo(g),!1}catch{return!0}}function Eo(g){return""+g}function Ro(g){if(yc(g))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xc(g)),Eo(g)}var Po=y.ReactCurrentOwner,wc={key:!0,ref:!0,__self:!0,__source:!0},ko,Ao;function Cc(g){if(Ae.call(g,"ref")){var T=Object.getOwnPropertyDescriptor(g,"ref").get;if(T&&T.isReactWarning)return!1}return g.ref!==void 0}function Sc(g){if(Ae.call(g,"key")){var T=Object.getOwnPropertyDescriptor(g,"key").get;if(T&&T.isReactWarning)return!1}return g.key!==void 0}function Ec(g,T){typeof g.ref=="string"&&Po.current}function Rc(g,T){{var I=function(){ko||(ko=!0,x("%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://reactjs.org/link/special-props)",T))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function Pc(g,T){{var I=function(){Ao||(Ao=!0,x("%s: `ref` 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://reactjs.org/link/special-props)",T))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var kc=function(g,T,I,H,le,ue,ie){var oe={$$typeof:t,type:g,key:T,ref:I,props:ie,_owner:ue};return oe._store={},Object.defineProperty(oe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(oe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(oe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(oe.props),Object.freeze(oe)),oe};function Ac(g,T,I,H,le){{var ue,ie={},oe=null,xe=null;I!==void 0&&(Ro(I),oe=""+I),Sc(T)&&(Ro(T.key),oe=""+T.key),Cc(T)&&(xe=T.ref,Ec(T,le));for(ue in T)Ae.call(T,ue)&&!wc.hasOwnProperty(ue)&&(ie[ue]=T[ue]);if(g&&g.defaultProps){var fe=g.defaultProps;for(ue in fe)ie[ue]===void 0&&(ie[ue]=fe[ue])}if(oe||xe){var pe=typeof g=="function"?g.displayName||g.name||"Unknown":g;oe&&Rc(ie,pe),xe&&Pc(ie,pe)}return kc(g,oe,xe,le,H,Po.current,ie)}}var Ur=y.ReactCurrentOwner,To=y.ReactDebugCurrentFrame;function pt(g){if(g){var T=g._owner,I=je(g.type,g._source,T?T.type:null);To.setExtraStackFrame(I)}else To.setExtraStackFrame(null)}var Kr;Kr=!1;function Yr(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function _o(){{if(Ur.current){var g=Y(Ur.current.type);if(g)return`
17
+ */var ts;function Iu(){return ts||(ts=1,process.env.NODE_ENV!=="production"&&(function(){var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),w=Symbol.iterator,m="@@iterator";function x(b){if(b===null||typeof b!="object")return null;var I=w&&b[w]||b[m];return typeof I=="function"?I:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(b){{for(var I=arguments.length,M=new Array(I>1?I-1:0),X=1;X<I;X++)M[X-1]=arguments[X];C("error",b,M)}}function C(b,I,M){{var X=y.ReactDebugCurrentFrame,ue=X.getStackAddendum();ue!==""&&(I+="%s",M=M.concat([ue]));var fe=M.map(function(ce){return String(ce)});fe.unshift("Warning: "+I),Function.prototype.apply.call(console[b],console,fe)}}var S=!1,k=!1,N=!1,_=!1,T=!1,H;H=Symbol.for("react.module.reference");function K(b){return!!(typeof b=="string"||typeof b=="function"||b===n||b===s||T||b===o||b===u||b===f||_||b===v||S||k||N||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===p||b.$$typeof===a||b.$$typeof===i||b.$$typeof===c||b.$$typeof===H||b.getModuleId!==void 0))}function ee(b,I,M){var X=b.displayName;if(X)return X;var ue=I.displayName||I.name||"";return ue!==""?M+"("+ue+")":M}function J(b){return b.displayName||"Context"}function Y(b){if(b==null)return null;if(typeof b.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case i:var I=b;return J(I)+".Consumer";case a:var M=b;return J(M._context)+".Provider";case c:return ee(b,b.render,"ForwardRef");case p:var X=b.displayName||null;return X!==null?X:Y(b.type)||"Memo";case g:{var ue=b,fe=ue._payload,ce=ue._init;try{return Y(ce(fe))}catch{return null}}}return null}var z=Object.assign,j=0,A,D,E,G,oe,le,R;function F(){}F.__reactDisabledLog=!0;function W(){{if(j===0){A=console.log,D=console.info,E=console.warn,G=console.error,oe=console.group,le=console.groupCollapsed,R=console.groupEnd;var b={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}j++}}function L(){{if(j--,j===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:A}),info:z({},b,{value:D}),warn:z({},b,{value:E}),error:z({},b,{value:G}),group:z({},b,{value:oe}),groupCollapsed:z({},b,{value:le}),groupEnd:z({},b,{value:R})})}j<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=y.ReactCurrentDispatcher,O;function q(b,I,M){{if(O===void 0)try{throw Error()}catch(ue){var X=ue.stack.trim().match(/\n( *(at )?)/);O=X&&X[1]||""}return`
18
+ `+O+b}}var te=!1,re;{var ie=typeof WeakMap=="function"?WeakMap:Map;re=new ie}function se(b,I){if(!b||te)return"";{var M=re.get(b);if(M!==void 0)return M}var X;te=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=Q.current,Q.current=null,W();try{if(I){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ye){X=ye}Reflect.construct(b,[],ce)}else{try{ce.call()}catch(ye){X=ye}b.call(ce.prototype)}}else{try{throw Error()}catch(ye){X=ye}b()}}catch(ye){if(ye&&X&&typeof ye.stack=="string"){for(var ae=ye.stack.split(`
19
+ `),be=X.stack.split(`
20
+ `),pe=ae.length-1,me=be.length-1;pe>=1&&me>=0&&ae[pe]!==be[me];)me--;for(;pe>=1&&me>=0;pe--,me--)if(ae[pe]!==be[me]){if(pe!==1||me!==1)do if(pe--,me--,me<0||ae[pe]!==be[me]){var Re=`
21
+ `+ae[pe].replace(" at new "," at ");return b.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",b.displayName)),typeof b=="function"&&re.set(b,Re),Re}while(pe>=1&&me>=0);break}}}finally{te=!1,Q.current=fe,L(),Error.prepareStackTrace=ue}var bt=b?b.displayName||b.name:"",it=bt?q(bt):"";return typeof b=="function"&&re.set(b,it),it}function xe(b,I,M){return se(b,!1)}function Pe(b){var I=b.prototype;return!!(I&&I.isReactComponent)}function De(b,I,M){if(b==null)return"";if(typeof b=="function")return se(b,Pe(b));if(typeof b=="string")return q(b);switch(b){case u:return q("Suspense");case f:return q("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case c:return xe(b.render);case p:return De(b.type,I,M);case g:{var X=b,ue=X._payload,fe=X._init;try{return De(fe(ue),I,M)}catch{}}}return""}var Te=Object.prototype.hasOwnProperty,Xe={},cr=y.ReactDebugCurrentFrame;function Ge(b){if(b){var I=b._owner,M=De(b.type,b._source,I?I.type:null);cr.setExtraStackFrame(M)}else cr.setExtraStackFrame(null)}function su(b,I,M,X,ue){{var fe=Function.call.bind(Te);for(var ce in b)if(fe(b,ce)){var ae=void 0;try{if(typeof b[ce]!="function"){var be=Error((X||"React class")+": "+M+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}ae=b[ce](I,ce,X,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){ae=pe}ae&&!(ae instanceof Error)&&(Ge(ue),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",X||"React class",M,ce,typeof ae),Ge(null)),ae instanceof Error&&!(ae.message in Xe)&&(Xe[ae.message]=!0,Ge(ue),h("Failed %s type: %s",M,ae.message),Ge(null))}}}var au=Array.isArray;function sn(b){return au(b)}function iu(b){{var I=typeof Symbol=="function"&&Symbol.toStringTag,M=I&&b[Symbol.toStringTag]||b.constructor.name||"Object";return M}}function cu(b){try{return Wo(b),!1}catch{return!0}}function Wo(b){return""+b}function zo(b){if(cu(b))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",iu(b)),Wo(b)}var Go=y.ReactCurrentOwner,lu={key:!0,ref:!0,__self:!0,__source:!0},Ho,Uo;function uu(b){if(Te.call(b,"ref")){var I=Object.getOwnPropertyDescriptor(b,"ref").get;if(I&&I.isReactWarning)return!1}return b.ref!==void 0}function du(b){if(Te.call(b,"key")){var I=Object.getOwnPropertyDescriptor(b,"key").get;if(I&&I.isReactWarning)return!1}return b.key!==void 0}function fu(b,I){typeof b.ref=="string"&&Go.current}function pu(b,I){{var M=function(){Ho||(Ho=!0,h("%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://reactjs.org/link/special-props)",I))};M.isReactWarning=!0,Object.defineProperty(b,"key",{get:M,configurable:!0})}}function mu(b,I){{var M=function(){Uo||(Uo=!0,h("%s: `ref` 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://reactjs.org/link/special-props)",I))};M.isReactWarning=!0,Object.defineProperty(b,"ref",{get:M,configurable:!0})}}var gu=function(b,I,M,X,ue,fe,ce){var ae={$$typeof:t,type:b,key:I,ref:M,props:ce,_owner:fe};return ae._store={},Object.defineProperty(ae._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ae,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(ae.props),Object.freeze(ae)),ae};function vu(b,I,M,X,ue){{var fe,ce={},ae=null,be=null;M!==void 0&&(zo(M),ae=""+M),du(I)&&(zo(I.key),ae=""+I.key),uu(I)&&(be=I.ref,fu(I,ue));for(fe in I)Te.call(I,fe)&&!lu.hasOwnProperty(fe)&&(ce[fe]=I[fe]);if(b&&b.defaultProps){var pe=b.defaultProps;for(fe in pe)ce[fe]===void 0&&(ce[fe]=pe[fe])}if(ae||be){var me=typeof b=="function"?b.displayName||b.name||"Unknown":b;ae&&pu(ce,me),be&&mu(ce,me)}return gu(b,ae,be,ue,X,Go.current,ce)}}var an=y.ReactCurrentOwner,Ko=y.ReactDebugCurrentFrame;function xt(b){if(b){var I=b._owner,M=De(b.type,b._source,I?I.type:null);Ko.setExtraStackFrame(M)}else Ko.setExtraStackFrame(null)}var cn;cn=!1;function ln(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Yo(){{if(an.current){var b=Y(an.current.type);if(b)return`
22
22
 
23
- Check the render method of \``+g+"`."}return""}}function Tc(g){return""}var Oo={};function _c(g){{var T=_o();if(!T){var I=typeof g=="string"?g:g.displayName||g.name;I&&(T=`
23
+ Check the render method of \``+b+"`."}return""}}function hu(b){return""}var qo={};function xu(b){{var I=Yo();if(!I){var M=typeof b=="string"?b:b.displayName||b.name;M&&(I=`
24
24
 
25
- Check the top-level render call using <`+I+">.")}return T}}function No(g,T){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=_c(T);if(Oo[I])return;Oo[I]=!0;var H="";g&&g._owner&&g._owner!==Ur.current&&(H=" It was passed a child from "+Y(g._owner.type)+"."),pt(g),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,H),pt(null)}}function Io(g,T){{if(typeof g!="object")return;if(Hr(g))for(var I=0;I<g.length;I++){var H=g[I];Yr(H)&&No(H,T)}else if(Yr(g))g._store&&(g._store.validated=!0);else if(g){var le=b(g);if(typeof le=="function"&&le!==g.entries)for(var ue=le.call(g),ie;!(ie=ue.next()).done;)Yr(ie.value)&&No(ie.value,T)}}}function Oc(g){{var T=g.type;if(T==null||typeof T=="string")return;var I;if(typeof T=="function")I=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===l||T.$$typeof===p))I=T.propTypes;else return;if(I){var H=Y(T);hc(I,g.props,"prop",H,g)}else if(T.PropTypes!==void 0&&!Kr){Kr=!0;var le=Y(T);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nc(g){{for(var T=Object.keys(g.props),I=0;I<T.length;I++){var H=T[I];if(H!=="children"&&H!=="key"){pt(g),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),pt(null);break}}g.ref!==null&&(pt(g),x("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}var jo={};function Do(g,T,I,H,le,ue){{var ie=K(g);if(!ie){var oe="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(oe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=Tc();xe?oe+=xe:oe+=_o();var fe;g===null?fe="null":Hr(g)?fe="array":g!==void 0&&g.$$typeof===t?(fe="<"+(Y(g.type)||"Unknown")+" />",oe=" Did you accidentally export a JSX literal instead of a component?"):fe=typeof g,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fe,oe)}var pe=Ac(g,T,I,le,ue);if(pe==null)return pe;if(ie){var Pe=T.children;if(Pe!==void 0)if(H)if(Hr(Pe)){for(var mt=0;mt<Pe.length;mt++)Io(Pe[mt],g);Object.freeze&&Object.freeze(Pe)}else x("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 Io(Pe,g)}if(Ae.call(T,"key")){var rt=Y(g),ye=Object.keys(T).filter(function(Lc){return Lc!=="key"}),qr=ye.length>0?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}";if(!jo[rt+qr]){var Fc=ye.length>0?"{"+ye.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+M+">.")}return I}}function Xo(b,I){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var M=xu(I);if(qo[M])return;qo[M]=!0;var X="";b&&b._owner&&b._owner!==an.current&&(X=" It was passed a child from "+Y(b._owner.type)+"."),xt(b),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,X),xt(null)}}function Zo(b,I){{if(typeof b!="object")return;if(sn(b))for(var M=0;M<b.length;M++){var X=b[M];ln(X)&&Xo(X,I)}else if(ln(b))b._store&&(b._store.validated=!0);else if(b){var ue=x(b);if(typeof ue=="function"&&ue!==b.entries)for(var fe=ue.call(b),ce;!(ce=fe.next()).done;)ln(ce.value)&&Xo(ce.value,I)}}}function bu(b){{var I=b.type;if(I==null||typeof I=="string")return;var M;if(typeof I=="function")M=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===c||I.$$typeof===p))M=I.propTypes;else return;if(M){var X=Y(I);su(M,b.props,"prop",X,b)}else if(I.PropTypes!==void 0&&!cn){cn=!0;var ue=Y(I);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yu(b){{for(var I=Object.keys(b.props),M=0;M<I.length;M++){var X=I[M];if(X!=="children"&&X!=="key"){xt(b),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),xt(null);break}}b.ref!==null&&(xt(b),h("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var Jo={};function Qo(b,I,M,X,ue,fe){{var ce=K(b);if(!ce){var ae="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=hu();be?ae+=be:ae+=Yo();var pe;b===null?pe="null":sn(b)?pe="array":b!==void 0&&b.$$typeof===t?(pe="<"+(Y(b.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof b,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,ae)}var me=vu(b,I,M,ue,fe);if(me==null)return me;if(ce){var Re=I.children;if(Re!==void 0)if(X)if(sn(Re)){for(var bt=0;bt<Re.length;bt++)Zo(Re[bt],b);Object.freeze&&Object.freeze(Re)}else h("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 Zo(Re,b)}if(Te.call(I,"key")){var it=Y(b),ye=Object.keys(I).filter(function(Ru){return Ru!=="key"}),un=ye.length>0?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Jo[it+un]){var Pu=ye.length>0?"{"+ye.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,qr,rt,Fc,rt),jo[rt+qr]=!0}}return g===n?Nc(pe):Oc(pe),pe}}function Ic(g,T,I){return Do(g,T,I,!0)}function jc(g,T,I){return Do(g,T,I,!1)}var Dc=jc,Mc=Ic;Dt.Fragment=n,Dt.jsx=Dc,Dt.jsxs=Mc})()),Dt}var Lo;function Hc(){return Lo||(Lo=1,process.env.NODE_ENV==="production"?Jt.exports=zc():Jt.exports=Gc()),Jt.exports}var f=Hc();function _a(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=_a(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Oa(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=_a(e))&&(n&&(n+=" "),n+=t);return n}const $o=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vo=Oa,Cr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Vo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const d=r==null?void 0:r[u],p=a==null?void 0:a[u];if(d===null)return null;const v=$o(d)||$o(p);return o[u][v]}),i=r&&Object.entries(r).reduce((u,d)=>{let[p,v]=d;return v===void 0||(u[p]=v),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:p,className:v,...h}=d;return Object.entries(h).every(w=>{let[m,b]=w;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b})?[...u,p,v]:u},[]);return Vo(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},In="-",Uc=e=>{const t=Yc(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(In);return i[0]===""&&i.length!==1&&i.shift(),Na(i,t)||Kc(s)},getConflictingClassGroupIds:(s,i)=>{const l=r[s]||[];return i&&n[s]?[...l,...n[s]]:l}}},Na=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Na(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(In);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Bo=/^\[(.+)\]$/,Kc=e=>{if(Bo.test(e)){const t=Bo.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Yc=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)pn(r[o],n,o,t);return n},pn=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Wo(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(qc(o)){pn(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{pn(s,Wo(t,a),r,n)})})},Wo=(e,t)=>{let r=e;return t.split(In).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},qc=e=>e.isThemeGetter,Xc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},mn="!",gn=":",Zc=gn.length,Jc=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,l=0,u;for(let w=0;w<o.length;w++){let m=o[w];if(s===0&&i===0){if(m===gn){a.push(o.slice(l,w)),l=w+Zc;continue}if(m==="/"){u=w;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const d=a.length===0?o:o.substring(l),p=Qc(d),v=p!==d,h=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+gn,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Qc=e=>e.endsWith(mn)?e.substring(0,e.length-1):e.startsWith(mn)?e.substring(1):e,eu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},tu=e=>({cache:Xc(e.cacheSize),parseClassName:Jc(e),sortModifiers:eu(e),...Uc(e)}),ru=/\s+/,nu=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(ru);let l="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{isExternal:p,modifiers:v,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:m}=r(d);if(p){l=d+(l.length>0?" "+l:l);continue}let b=!!m,y=n(b?w.substring(0,m):w);if(!y){if(!b){l=d+(l.length>0?" "+l:l);continue}if(y=n(w),!y){l=d+(l.length>0?" "+l:l);continue}b=!1}const x=a(v).join(":"),C=h?x+mn:x,S=C+y;if(s.includes(S))continue;s.push(S);const E=o(y,b);for(let _=0;_<E.length;++_){const P=E[_];s.push(C+P)}l=d+(l.length>0?" "+l:l)}return l};function ou(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ia(t))&&(n&&(n+=" "),n+=r);return n}const Ia=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ia(e[n]))&&(r&&(r+=" "),r+=t);return r};function au(e,...t){let r,n,o,a=s;function s(l){const u=t.reduce((d,p)=>p(d),e());return r=tu(u),n=r.cache.get,o=r.cache.set,a=i,i(l)}function i(l){const u=n(l);if(u)return u;const d=nu(l,r);return o(l,d),d}return function(){return a(ou.apply(null,arguments))}}const me=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ja=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Da=/^\((?:(\w[\w-]*):)?(.+)\)$/i,su=/^\d+\/\d+$/,iu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lu=/\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$/,cu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,du=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>su.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Ue=e=>!!e&&Number.isInteger(Number(e)),Xr=e=>e.endsWith("%")&&te(e.slice(0,-1)),Be=e=>iu.test(e),fu=()=>!0,pu=e=>lu.test(e)&&!cu.test(e),Ma=()=>!1,mu=e=>uu.test(e),gu=e=>du.test(e),vu=e=>!M(e)&&!F(e),hu=e=>Pt(e,$a,Ma),M=e=>ja.test(e),nt=e=>Pt(e,Va,pu),Zr=e=>Pt(e,Cu,te),zo=e=>Pt(e,Fa,Ma),bu=e=>Pt(e,La,gu),Qt=e=>Pt(e,Ba,mu),F=e=>Da.test(e),Mt=e=>kt(e,Va),xu=e=>kt(e,Su),Go=e=>kt(e,Fa),yu=e=>kt(e,$a),wu=e=>kt(e,La),er=e=>kt(e,Ba,!0),Pt=(e,t,r)=>{const n=ja.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},kt=(e,t,r=!1)=>{const n=Da.exec(e);return n?n[1]?t(n[1]):r:!1},Fa=e=>e==="position"||e==="percentage",La=e=>e==="image"||e==="url",$a=e=>e==="length"||e==="size"||e==="bg-size",Va=e=>e==="length",Cu=e=>e==="number",Su=e=>e==="family-name",Ba=e=>e==="shadow",Eu=()=>{const e=me("color"),t=me("font"),r=me("text"),n=me("font-weight"),o=me("tracking"),a=me("leading"),s=me("breakpoint"),i=me("container"),l=me("spacing"),u=me("radius"),d=me("shadow"),p=me("inset-shadow"),v=me("text-shadow"),h=me("drop-shadow"),w=me("blur"),m=me("perspective"),b=me("aspect"),y=me("ease"),x=me("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),F,M],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],R=()=>[F,M,l],W=()=>[gt,"full","auto",...R()],K=()=>[Ue,"none","subgrid",F,M],re=()=>["auto",{span:["full",Ue,F,M]},Ue,F,M],ee=()=>[Ue,"auto",F,M],Y=()=>["auto","min","max","fr",F,M],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...R()],q=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],A=()=>[e,F,M],ae=()=>[...S(),Go,zo,{position:[F,M]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",yu,hu,{size:[F,M]}],k=()=>[Xr,Mt,nt],j=()=>["","none","full",u,F,M],$=()=>["",te,Mt,nt],D=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[te,Xr,Go,zo],G=()=>["","none",w,F,M],J=()=>["none",te,F,M],Q=()=>["none",te,F,M],se=()=>[te,F,M],ne=()=>[gt,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Be],breakpoint:[Be],color:[fu],container:[Be],"drop-shadow":[Be],ease:["in","out","in-out"],font:[vu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Be],shadow:[Be],spacing:["px",te],text:[Be],"text-shadow":[Be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,M,F,b]}],container:["container"],columns:[{columns:[te,M,F,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:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ue,"auto",F,M]}],basis:[{basis:[gt,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,gt,"auto","initial","none",M]}],grow:[{grow:["",te,F,M]}],shrink:[{shrink:["",te,F,M]}],order:[{order:[Ue,"first","last","none",F,M]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"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:[...z(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],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:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,Mt,nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,F,Zr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xr,M]}],"font-family":[{font:[xu,M,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,F,M]}],"line-clamp":[{"line-clamp":[te,"none",F,Zr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",F,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",F,nt]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[te,"auto",F,M]}],"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",F,M]}],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",F,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ue,F,M],radial:["",F,M],conic:[Ue,F,M]},wu,bu]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,F,M]}],"outline-w":[{outline:["",te,Mt,nt]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,er,Qt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",p,er,Qt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[te,nt]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",v,er,Qt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[te,F,M]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"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":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[F,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,M]}],filter:[{filter:["","none",F,M]}],blur:[{blur:G()}],brightness:[{brightness:[te,F,M]}],contrast:[{contrast:[te,F,M]}],"drop-shadow":[{"drop-shadow":["","none",h,er,Qt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",te,F,M]}],"hue-rotate":[{"hue-rotate":[te,F,M]}],invert:[{invert:["",te,F,M]}],saturate:[{saturate:[te,F,M]}],sepia:[{sepia:["",te,F,M]}],"backdrop-filter":[{"backdrop-filter":["","none",F,M]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[te,F,M]}],"backdrop-contrast":[{"backdrop-contrast":[te,F,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,F,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,F,M]}],"backdrop-invert":[{"backdrop-invert":["",te,F,M]}],"backdrop-opacity":[{"backdrop-opacity":[te,F,M]}],"backdrop-saturate":[{"backdrop-saturate":[te,F,M]}],"backdrop-sepia":[{"backdrop-sepia":["",te,F,M]}],"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",F,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",F,M]}],ease:[{ease:["linear","initial",y,F,M]}],delay:[{delay:[te,F,M]}],animate:[{animate:["none",x,F,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,M]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[F,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",F,M]}],"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",F,M]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[te,Mt,nt,Zr]}],stroke:[{stroke:["none",...A()]}],"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"]}},Ru=au(Eu);function V(...e){return Ru(Oa(e))}const Pu=Cr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{variant:{default:"bg-purple-300 text-black font-normal hover:bg-primary/80 dark:bg-primary dark:text-primary-foreground dark:hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 dark:bg-destructive dark:text-destructive-foreground dark:hover:bg-destructive/80",outline:"border border-purple-mutted-600 shadow-xs hover:text-purple-100 text-purple-mutted-400",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:bg-secondary dark:text-secondary-foreground dark:hover:bg-secondary/80",ghost:"text-foreground hover:bg-accent hover:text-accent-foreground dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline dark:text-primary",success:"bg-success text-success-foreground hover:bg-success/80 dark:bg-success dark:text-success-foreground dark:hover:bg-success/80",warning:"bg-warning text-warning-foreground hover:bg-warning/80 dark:bg-warning dark:text-warning-foreground dark:hover:bg-warning/80"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Sr=c.forwardRef(({className:e,variant:t,size:r,...n},o)=>f.jsx("button",{className:V(Pu({variant:t,size:r,className:e})),ref:o,...n}));Sr.displayName="Button";const ku=Cr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background 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 dark:border-input dark:bg-background dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-mutted-700 border-purple-mutted-500 text-purple-mutted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"bg-destructive border-destructive text-destructive-foreground placeholder:text-destructive-foreground/70 dark:bg-destructive dark:border-destructive dark:text-destructive-foreground dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}});function Wa({className:e,variant:t,type:r,...n}){return f.jsx("input",{type:r,"data-slot":"input",className:V(ku({variant:t,className:e})),...n})}function Ho(e,[t,r]){return Math.min(r,Math.max(t,e))}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Au(e,t){const r=c.createContext(t),n=a=>{const{children:s,...i}=a,l=c.useMemo(()=>i,Object.values(i));return f.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(a){const s=c.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function ke(e,t=[]){let r=[];function n(a,s){const i=c.createContext(s),l=r.length;r=[...r,s];const u=p=>{var y;const{scope:v,children:h,...w}=p,m=((y=v==null?void 0:v[e])==null?void 0:y[l])||i,b=c.useMemo(()=>w,Object.values(w));return f.jsx(m.Provider,{value:b,children:h})};u.displayName=a+"Provider";function d(p,v){var m;const h=((m=v==null?void 0:v[e])==null?void 0:m[l])||i,w=c.useContext(h);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,d]}const o=()=>{const a=r.map(s=>c.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,Tu(o,...t)]}function Tu(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:u})=>{const p=l(a)[`__scope${u}`];return{...i,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Uo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ot(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Uo(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Uo(e[o],null)}}}}function ce(...e){return c.useCallback(ot(...e),e)}function at(e){const t=_u(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,i=c.Children.toArray(a),l=i.find(Nu);if(l){const u=l.props.children,d=i.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return f.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return f.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var za=at("Slot");function _u(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=ju(o),i=Iu(a,o.props);return o.type!==c.Fragment&&(i.ref=n?ot(n,s):s),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ga=Symbol("radix.slottable");function Ou(e){const t=({children:r})=>f.jsx(f.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ga,t}function Nu(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ga}function Iu(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ju(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function jn(e){const t=e+"CollectionProvider",[r,n]=ke(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:b,children:y}=m,x=N.useRef(null),C=N.useRef(new Map).current;return f.jsx(o,{scope:b,itemMap:C,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=at(i),u=N.forwardRef((m,b)=>{const{scope:y,children:x}=m,C=a(i,y),S=ce(b,C.collectionRef);return f.jsx(l,{ref:S,children:x})});u.displayName=i;const d=e+"CollectionItemSlot",p="data-radix-collection-item",v=at(d),h=N.forwardRef((m,b)=>{const{scope:y,children:x,...C}=m,S=N.useRef(null),E=ce(b,S),_=a(d,y);return N.useEffect(()=>(_.itemMap.set(S,{ref:S,...C}),()=>void _.itemMap.delete(S))),f.jsx(v,{[p]:"",ref:E,children:x})});h.displayName=d;function w(m){const b=a(e+"CollectionConsumer",m);return N.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((_,P)=>C.indexOf(_.ref.current)-C.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},w,n]}var Du=c.createContext(void 0);function Er(e){const t=c.useContext(Du);return e||t||"ltr"}var Mu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],B=Mu.reduce((e,t)=>{const r=at(`Primitive.${t}`),n=c.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fu(e,t){e&&wr.flushSync(()=>e.dispatchEvent(t))}function Ye(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Lu(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e);c.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var $u="DismissableLayer",vn="dismissableLayer.update",Vu="dismissableLayer.pointerDownOutside",Bu="dismissableLayer.focusOutside",Ko,Ha=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,u=c.useContext(Ha),[d,p]=c.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=c.useState({}),w=ce(t,P=>p(P)),m=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),x=d?m.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,E=Gu(P=>{const R=P.target,W=[...u.branches].some(K=>K.contains(R));!S||W||(o==null||o(P),s==null||s(P),P.defaultPrevented||i==null||i())},v),_=Hu(P=>{const R=P.target;[...u.branches].some(K=>K.contains(R))||(a==null||a(P),s==null||s(P),P.defaultPrevented||i==null||i())},v);return Lu(P=>{x===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},v),c.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ko=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Yo(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ko)}},[d,v,r,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Yo())},[d,u]),c.useEffect(()=>{const P=()=>h({});return document.addEventListener(vn,P),()=>document.removeEventListener(vn,P)},[]),f.jsx(B.div,{...l,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,_.onFocusCapture),onBlurCapture:U(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});zt.displayName=$u;var Wu="DismissableLayerBranch",zu=c.forwardRef((e,t)=>{const r=c.useContext(Ha),n=c.useRef(null),o=ce(t,n);return c.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),f.jsx(B.div,{...e,ref:o})});zu.displayName=Wu;function Gu(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e),n=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let l=function(){Ua(Vu,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Hu(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e),n=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!n.current&&Ua(Bu,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Yo(){const e=new CustomEvent(vn);document.dispatchEvent(e)}function Ua(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Fu(o,a):o.dispatchEvent(a)}var Jr=0;function Dn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qo()),document.body.insertAdjacentElement("beforeend",e[1]??qo()),Jr++,()=>{Jr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jr--}},[])}function qo(){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 Qr="focusScope.autoFocusOnMount",en="focusScope.autoFocusOnUnmount",Xo={bubbles:!1,cancelable:!0},Uu="FocusScope",Rr=c.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=c.useState(null),u=Ye(o),d=Ye(a),p=c.useRef(null),v=ce(t,m=>l(m)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(n){let m=function(C){if(h.paused||!i)return;const S=C.target;i.contains(S)?p.current=S:Ke(p.current,{select:!0})},b=function(C){if(h.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||Ke(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Ke(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),x.disconnect()}}},[n,i,h.paused]),c.useEffect(()=>{if(i){Jo.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(Qr,Xo);i.addEventListener(Qr,u),i.dispatchEvent(y),y.defaultPrevented||(Ku(Ju(Ka(i)),{select:!0}),document.activeElement===m&&Ke(i))}return()=>{i.removeEventListener(Qr,u),setTimeout(()=>{const y=new CustomEvent(en,Xo);i.addEventListener(en,d),i.dispatchEvent(y),y.defaultPrevented||Ke(m??document.body,{select:!0}),i.removeEventListener(en,d),Jo.remove(h)},0)}}},[i,u,d,h]);const w=c.useCallback(m=>{if(!r&&!n||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(b&&y){const x=m.currentTarget,[C,S]=Yu(x);C&&S?!m.shiftKey&&y===S?(m.preventDefault(),r&&Ke(C,{select:!0})):m.shiftKey&&y===C&&(m.preventDefault(),r&&Ke(S,{select:!0})):y===x&&m.preventDefault()}},[r,n,h.paused]);return f.jsx(B.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});Rr.displayName=Uu;function Ku(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ke(n,{select:t}),document.activeElement!==r)return}function Yu(e){const t=Ka(e),r=Zo(t,e),n=Zo(t.reverse(),e);return[r,n]}function Ka(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Zo(e,t){for(const r of e)if(!qu(r,{upTo:t}))return r}function qu(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 Xu(e){return e instanceof HTMLInputElement&&"select"in e}function Ke(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Xu(e)&&t&&e.select()}}var Jo=Zu();function Zu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Qo(e,t),e.unshift(t)},remove(t){var r;e=Qo(e,t),(r=e[0])==null||r.resume()}}}function Qo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Ju(e){return e.filter(t=>t.tagName!=="A")}var he=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Qu=c[" useId ".trim().toString()]||(()=>{}),ed=0;function ve(e){const[t,r]=c.useState(Qu());return he(()=>{r(n=>n??String(ed++))},[e]),t?`radix-${t}`:""}const td=["top","right","bottom","left"],qe=Math.min,Ce=Math.max,ur=Math.round,tr=Math.floor,Fe=e=>({x:e,y:e}),rd={left:"right",right:"left",bottom:"top",top:"bottom"},nd={start:"end",end:"start"};function hn(e,t,r){return Ce(e,qe(t,r))}function We(e,t){return typeof e=="function"?e(t):e}function ze(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Fn(e){return e==="y"?"height":"width"}const od=new Set(["top","bottom"]);function Me(e){return od.has(ze(e))?"y":"x"}function Ln(e){return Mn(Me(e))}function ad(e,t,r){r===void 0&&(r=!1);const n=At(e),o=Ln(e),a=Fn(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=dr(s)),[s,dr(s)]}function sd(e){const t=dr(e);return[bn(e),t,bn(t)]}function bn(e){return e.replace(/start|end/g,t=>nd[t])}const ea=["left","right"],ta=["right","left"],id=["top","bottom"],ld=["bottom","top"];function cd(e,t,r){switch(e){case"top":case"bottom":return r?t?ta:ea:t?ea:ta;case"left":case"right":return t?id:ld;default:return[]}}function ud(e,t,r,n){const o=At(e);let a=cd(ze(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(bn)))),a}function dr(e){return e.replace(/left|right|bottom|top/g,t=>rd[t])}function dd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?dd(e):{top:e,right:e,bottom:e,left:e}}function fr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ra(e,t,r){let{reference:n,floating:o}=e;const a=Me(t),s=Ln(t),i=Fn(s),l=ze(t),u=a==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[i]/2-o[i]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(At(t)){case"start":h[s]-=v*(r&&u?-1:1);break;case"end":h[s]+=v*(r&&u?-1:1);break}return h}const fd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=ra(u,n,l),v=n,h={},w=0;for(let m=0;m<i.length;m++){const{name:b,fn:y}=i[m],{x,y:C,data:S,reset:E}=await y({x:d,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,p=C??p,h={...h,[b]:{...h[b],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:p}=ra(u,v,l)),m=-1)}return{x:d,y:p,placement:v,strategy:o,middlewareData:h}};async function Vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=We(t,e),w=Ya(h),b=i[v?p==="floating"?"reference":"floating":p],y=fr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),x=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=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=fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-E.top+w.top)/S.y,bottom:(E.bottom-y.bottom+w.bottom)/S.y,left:(y.left-E.left+w.left)/S.x,right:(E.right-y.right+w.right)/S.x}}const pd=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=We(e,t)||{};if(u==null)return{};const p=Ya(d),v={x:r,y:n},h=Ln(o),w=Fn(h),m=await s.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",C=b?"clientHeight":"clientWidth",S=a.reference[w]+a.reference[h]-v[h]-a.floating[w],E=v[h]-a.reference[h],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=_?_[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(_)))&&(P=i.floating[C]||a.floating[w]);const R=S/2-E/2,W=P/2-m[w]/2-1,K=qe(p[y],W),re=qe(p[x],W),ee=K,Y=P-m[w]-re,z=P/2-m[w]/2+R,X=hn(ee,z,Y),L=!l.arrow&&At(o)!=null&&z!==X&&a.reference[w]/2-(z<ee?K:re)-m[w]/2<0,q=L?z<ee?z-ee:z-Y:0;return{[h]:v[h]+q,data:{[h]:X,centerOffset:z-X-q,...L&&{alignmentOffset:q}},reset:L}}}),md=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...b}=We(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=ze(o),x=Me(i),C=ze(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=v||(C||!m?[dr(i)]:sd(i)),_=w!=="none";!v&&_&&E.push(...ud(i,m,w,S));const P=[i,...E],R=await Vt(t,b),W=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&W.push(R[y]),p){const z=ad(o,s,S);W.push(R[z[0]],R[z[1]])}if(K=[...K,{placement:o,overflows:W}],!W.every(z=>z<=0)){var re,ee;const z=(((re=a.flip)==null?void 0:re.index)||0)+1,X=P[z];if(X&&(!(p==="alignment"?x!==Me(X):!1)||K.every(A=>Me(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:X}};let L=(ee=K.filter(q=>q.overflows[0]<=0).sort((q,A)=>q.overflows[1]-A.overflows[1])[0])==null?void 0:ee.placement;if(!L)switch(h){case"bestFit":{var Y;const q=(Y=K.filter(A=>{if(_){const ae=Me(A.placement);return ae===x||ae==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(ae=>ae>0).reduce((ae,de)=>ae+de,0)]).sort((A,ae)=>A[1]-ae[1])[0])==null?void 0:Y[0];q&&(L=q);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function na(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oa(e){return td.some(t=>e[t]>=0)}const gd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=We(e,t);switch(n){case"referenceHidden":{const a=await Vt(t,{...o,elementContext:"reference"}),s=na(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:oa(s)}}}case"escaped":{const a=await Vt(t,{...o,altBoundary:!0}),s=na(a,r.floating);return{data:{escapedOffsets:s,escaped:oa(s)}}}default:return{}}}}},qa=new Set(["left","top"]);async function vd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=ze(r),i=At(r),l=Me(r)==="y",u=qa.has(s)?-1:1,d=a&&l?-1:1,p=We(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(h=i==="end"?w*-1:w),l?{x:h*d,y:v*u}:{x:v*u,y:h*d}}const hd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await vd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},bd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,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}=We(e,t),u={x:r,y:n},d=await Vt(t,l),p=Me(ze(o)),v=Mn(p);let h=u[v],w=u[p];if(a){const b=v==="y"?"top":"left",y=v==="y"?"bottom":"right",x=h+d[b],C=h-d[y];h=hn(x,h,C)}if(s){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=w+d[b],C=w-d[y];w=hn(x,w,C)}const m=i.fn({...t,[v]:h,[p]:w});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[v]:a,[p]:s}}}}}},xd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=We(e,t),d={x:r,y:n},p=Me(o),v=Mn(p);let h=d[v],w=d[p];const m=We(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const C=v==="y"?"height":"width",S=a.reference[v]-a.floating[C]+b.mainAxis,E=a.reference[v]+a.reference[C]-b.mainAxis;h<S?h=S:h>E&&(h=E)}if(u){var y,x;const C=v==="y"?"width":"height",S=qa.has(ze(o)),E=a.reference[p]-a.floating[C]+(S&&((y=s.offset)==null?void 0:y[p])||0)+(S?0:b.crossAxis),_=a.reference[p]+a.reference[C]+(S?0:((x=s.offset)==null?void 0:x[p])||0)-(S?b.crossAxis:0);w<E?w=E:w>_&&(w=_)}return{[v]:h,[p]:w}}}},yd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...u}=We(e,t),d=await Vt(t,u),p=ze(o),v=At(o),h=Me(o)==="y",{width:w,height:m}=a.floating;let b,y;p==="top"||p==="bottom"?(b=p,y=v===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,b=v==="end"?"top":"bottom");const x=m-d.top-d.bottom,C=w-d.left-d.right,S=qe(m-d[b],x),E=qe(w-d[y],C),_=!t.middlewareData.shift;let P=S,R=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),_&&!v){const K=Ce(d.left,0),re=Ce(d.right,0),ee=Ce(d.top,0),Y=Ce(d.bottom,0);h?R=w-2*(K!==0||re!==0?K+re:Ce(d.left,d.right)):P=m-2*(ee!==0||Y!==0?ee+Y:Ce(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:P});const W=await s.getDimensions(i.floating);return w!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function Pr(){return typeof window<"u"}function Tt(e){return Xa(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $e(e){var t;return(t=(Xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xa(e){return Pr()?e instanceof Node||e instanceof Se(e).Node:!1}function _e(e){return Pr()?e instanceof Element||e instanceof Se(e).Element:!1}function Le(e){return Pr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function aa(e){return!Pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const wd=new Set(["inline","contents"]);function Gt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!wd.has(o)}const Cd=new Set(["table","td","th"]);function Sd(e){return Cd.has(Tt(e))}const Ed=[":popover-open",":modal"];function kr(e){return Ed.some(t=>{try{return e.matches(t)}catch{return!1}})}const Rd=["transform","translate","scale","rotate","perspective"],Pd=["transform","translate","scale","rotate","perspective","filter"],kd=["paint","layout","strict","content"];function $n(e){const t=Vn(),r=_e(e)?Oe(e):e;return Rd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Pd.some(n=>(r.willChange||"").includes(n))||kd.some(n=>(r.contain||"").includes(n))}function Ad(e){let t=Xe(e);for(;Le(t)&&!St(t);){if($n(t))return t;if(kr(t))return null;t=Xe(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Td=new Set(["html","body","#document"]);function St(e){return Td.has(Tt(e))}function Oe(e){return Se(e).getComputedStyle(e)}function Ar(e){return _e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||aa(e)&&e.host||$e(e);return aa(t)?t.host:t}function Za(e){const t=Xe(e);return St(t)?e.ownerDocument?e.ownerDocument.body:e.body:Le(t)&&Gt(t)?t:Za(t)}function Bt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Za(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=Se(o);if(a){const i=xn(s);return t.concat(s,s.visualViewport||[],Gt(o)?o:[],i&&r?Bt(i):[])}return t.concat(o,Bt(o,[],r))}function xn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ja(e){const t=Oe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Le(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=ur(r)!==a||ur(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Bn(e){return _e(e)?e:e.contextElement}function wt(e){const t=Bn(e);if(!Le(t))return Fe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ja(t);let s=(a?ur(r.width):r.width)/n,i=(a?ur(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const _d=Fe(0);function Qa(e){const t=Se(e);return!Vn()||!t.visualViewport?_d:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Od(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Se(e)?!1:t}function st(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Bn(e);let s=Fe(1);t&&(n?_e(n)&&(s=wt(n)):s=wt(e));const i=Od(a,r,n)?Qa(a):Fe(0);let l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(a){const v=Se(a),h=n&&_e(n)?Se(n):n;let w=v,m=xn(w);for(;m&&n&&h!==w;){const b=wt(m),y=m.getBoundingClientRect(),x=Oe(m),C=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,S=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,p*=b.y,l+=C,u+=S,w=Se(m),m=xn(w)}}return fr({width:d,height:p,x:l,y:u})}function Wn(e,t){const r=Ar(e).scrollLeft;return t?t.left+r:st($e(e)).left+r}function es(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Wn(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function Nd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=$e(n),i=t?kr(t.floating):!1;if(n===s||i&&a)return r;let l={scrollLeft:0,scrollTop:0},u=Fe(1);const d=Fe(0),p=Le(n);if((p||!p&&!a)&&((Tt(n)!=="body"||Gt(s))&&(l=Ar(n)),Le(n))){const h=st(n);u=wt(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const v=s&&!p&&!a?es(s,l,!0):Fe(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+v.x,y:r.y*u.y-l.scrollTop*u.y+d.y+v.y}}function Id(e){return Array.from(e.getClientRects())}function jd(e){const t=$e(e),r=Ar(e),n=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Wn(e);const i=-r.scrollTop;return Oe(n).direction==="rtl"&&(s+=Ce(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Dd(e,t){const r=Se(e),n=$e(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const u=Vn();(!u||u&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}const Md=new Set(["absolute","fixed"]);function Fd(e,t){const r=st(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Le(e)?wt(e):Fe(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,u=n*a.y;return{width:s,height:i,x:l,y:u}}function sa(e,t,r){let n;if(t==="viewport")n=Dd(e,r);else if(t==="document")n=jd($e(e));else if(_e(t))n=Fd(t,r);else{const o=Qa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fr(n)}function ts(e,t){const r=Xe(e);return r===t||!_e(r)||St(r)?!1:Oe(r).position==="fixed"||ts(r,t)}function Ld(e,t){const r=t.get(e);if(r)return r;let n=Bt(e,[],!1).filter(i=>_e(i)&&Tt(i)!=="body"),o=null;const a=Oe(e).position==="fixed";let s=a?Xe(e):e;for(;_e(s)&&!St(s);){const i=Oe(s),l=$n(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Md.has(o.position)||Gt(s)&&!l&&ts(e,s))?n=n.filter(d=>d!==s):o=i,s=Xe(s)}return t.set(e,n),n}function $d(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?kr(t)?[]:Ld(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((u,d)=>{const p=sa(t,d,o);return u.top=Ce(p.top,u.top),u.right=qe(p.right,u.right),u.bottom=qe(p.bottom,u.bottom),u.left=Ce(p.left,u.left),u},sa(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Vd(e){const{width:t,height:r}=Ja(e);return{width:t,height:r}}function Bd(e,t,r){const n=Le(t),o=$e(t),a=r==="fixed",s=st(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Fe(0);function u(){l.x=Wn(o)}if(n||!n&&!a)if((Tt(t)!=="body"||Gt(o))&&(i=Ar(t)),n){const h=st(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();a&&!n&&o&&u();const d=o&&!n&&!a?es(o,i):Fe(0),p=s.left+i.scrollLeft-l.x-d.x,v=s.top+i.scrollTop-l.y-d.y;return{x:p,y:v,width:s.width,height:s.height}}function tn(e){return Oe(e).position==="static"}function ia(e,t){if(!Le(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return $e(e)===r&&(r=r.ownerDocument.body),r}function rs(e,t){const r=Se(e);if(kr(e))return r;if(!Le(e)){let o=Xe(e);for(;o&&!St(o);){if(_e(o)&&!tn(o))return o;o=Xe(o)}return r}let n=ia(e,t);for(;n&&Sd(n)&&tn(n);)n=ia(n,t);return n&&St(n)&&tn(n)&&!$n(n)?r:n||Ad(e)||r}const Wd=async function(e){const t=this.getOffsetParent||rs,r=this.getDimensions,n=await r(e.floating);return{reference:Bd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zd(e){return Oe(e).direction==="rtl"}const Gd={convertOffsetParentRelativeRectToViewportRelativeRect:Nd,getDocumentElement:$e,getClippingRect:$d,getOffsetParent:rs,getElementRects:Wd,getClientRects:Id,getDimensions:Vd,getScale:wt,isElement:_e,isRTL:zd};function ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hd(e,t){let r=null,n;const o=$e(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:d,top:p,width:v,height:h}=u;if(i||t(),!v||!h)return;const w=tr(p),m=tr(o.clientWidth-(d+v)),b=tr(o.clientHeight-(p+h)),y=tr(d),C={rootMargin:-w+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Ce(0,qe(1,l))||1};let S=!0;function E(_){const P=_[0].intersectionRatio;if(P!==l){if(!S)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!ns(u,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,C)}r.observe(e)}return s(!0),a}function Ud(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Bn(e),d=o||a?[...u?Bt(u):[],...Bt(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&i?Hd(u,r):null;let v=-1,h=null;s&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),r()}),u&&!l&&h.observe(u),h.observe(t));let w,m=l?st(e):null;l&&b();function b(){const y=st(e);m&&!ns(m,y)&&r(),m=y,w=requestAnimationFrame(b)}return r(),()=>{var y;d.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),p==null||p(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const Kd=hd,Yd=bd,qd=md,Xd=yd,Zd=gd,la=pd,Jd=xd,Qd=(e,t,r)=>{const n=new Map,o={platform:Gd,...r},a={...o.platform,_c:n};return fd(e,t,{...o,platform:a})};var ef=typeof document<"u",tf=function(){},ir=ef?N.useLayoutEffect:tf;function pr(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!pr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!pr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function os(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ca(e,t){const r=os(e);return Math.round(t*r)/r}function rn(e){const t=c.useRef(e);return ir(()=>{t.current=e}),t}function rf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=c.useState(n);pr(v,n)||h(n);const[w,m]=c.useState(null),[b,y]=c.useState(null),x=c.useCallback(A=>{A!==_.current&&(_.current=A,m(A))},[]),C=c.useCallback(A=>{A!==P.current&&(P.current=A,y(A))},[]),S=a||w,E=s||b,_=c.useRef(null),P=c.useRef(null),R=c.useRef(d),W=l!=null,K=rn(l),re=rn(o),ee=rn(u),Y=c.useCallback(()=>{if(!_.current||!P.current)return;const A={placement:t,strategy:r,middleware:v};re.current&&(A.platform=re.current),Qd(_.current,P.current,A).then(ae=>{const de={...ae,isPositioned:ee.current!==!1};z.current&&!pr(R.current,de)&&(R.current=de,wr.flushSync(()=>{p(de)}))})},[v,t,r,re,ee]);ir(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[u]);const z=c.useRef(!1);ir(()=>(z.current=!0,()=>{z.current=!1}),[]),ir(()=>{if(S&&(_.current=S),E&&(P.current=E),S&&E){if(K.current)return K.current(S,E,Y);Y()}},[S,E,Y,K,W]);const X=c.useMemo(()=>({reference:_,floating:P,setReference:x,setFloating:C}),[x,C]),L=c.useMemo(()=>({reference:S,floating:E}),[S,E]),q=c.useMemo(()=>{const A={position:r,left:0,top:0};if(!L.floating)return A;const ae=ca(L.floating,d.x),de=ca(L.floating,d.y);return i?{...A,transform:"translate("+ae+"px, "+de+"px)",...os(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:de}},[r,i,L.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:Y,refs:X,elements:L,floatingStyles:q}),[d,Y,X,L,q])}const nf=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?la({element:n.current,padding:o}).fn(r):{}:n?la({element:n,padding:o}).fn(r):{}}}},of=(e,t)=>({...Kd(e),options:[e,t]}),af=(e,t)=>({...Yd(e),options:[e,t]}),sf=(e,t)=>({...Jd(e),options:[e,t]}),lf=(e,t)=>({...qd(e),options:[e,t]}),cf=(e,t)=>({...Xd(e),options:[e,t]}),uf=(e,t)=>({...Zd(e),options:[e,t]}),df=(e,t)=>({...nf(e),options:[e,t]});var ff="Arrow",as=c.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.jsx(B.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});as.displayName=ff;var pf=as;function ss(e){const[t,r]=c.useState(void 0);return he(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var zn="Popper",[is,_t]=ke(zn),[mf,ls]=is(zn),cs=e=>{const{__scopePopper:t,children:r}=e,[n,o]=c.useState(null);return f.jsx(mf,{scope:t,anchor:n,onAnchorChange:o,children:r})};cs.displayName=zn;var us="PopperAnchor",ds=c.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ls(us,r),s=c.useRef(null),i=ce(t,s),l=c.useRef(null);return c.useEffect(()=>{const u=l.current;l.current=(n==null?void 0:n.current)||s.current,u!==l.current&&a.onAnchorChange(l.current)}),n?null:f.jsx(B.div,{...o,ref:i})});ds.displayName=us;var Gn="PopperContent",[gf,vf]=is(Gn),fs=c.forwardRef((e,t)=>{var O,G,J,Q,se,ne;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:w,...m}=e,b=ls(Gn,r),[y,x]=c.useState(null),C=ce(t,be=>x(be)),[S,E]=c.useState(null),_=ss(S),P=(_==null?void 0:_.width)??0,R=(_==null?void 0:_.height)??0,W=n+(a!=="center"?"-"+a:""),K=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},re=Array.isArray(u)?u:[u],ee=re.length>0,Y={padding:K,boundary:re.filter(bf),altBoundary:ee},{refs:z,floatingStyles:X,placement:L,isPositioned:q,middlewareData:A}=rf({strategy:"fixed",placement:W,whileElementsMounted:(...be)=>Ud(...be,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[of({mainAxis:o+R,alignmentAxis:s}),l&&af({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?sf():void 0,...Y}),l&&lf({...Y}),cf({...Y,apply:({elements:be,rects:Re,availableWidth:je,availableHeight:Ae})=>{const{width:He,height:Zt}=Re.reference,Ve=be.floating.style;Ve.setProperty("--radix-popper-available-width",`${je}px`),Ve.setProperty("--radix-popper-available-height",`${Ae}px`),Ve.setProperty("--radix-popper-anchor-width",`${He}px`),Ve.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),S&&df({element:S,padding:i}),xf({arrowWidth:P,arrowHeight:R}),v&&uf({strategy:"referenceHidden",...Y})]}),[ae,de]=gs(L),ge=Ye(w);he(()=>{q&&(ge==null||ge())},[q,ge]);const k=(O=A.arrow)==null?void 0:O.x,j=(G=A.arrow)==null?void 0:G.y,$=((J=A.arrow)==null?void 0:J.centerOffset)!==0,[D,Z]=c.useState();return he(()=>{y&&Z(window.getComputedStyle(y).zIndex)},[y]),f.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:D,"--radix-popper-transform-origin":[(Q=A.transformOrigin)==null?void 0:Q.x,(se=A.transformOrigin)==null?void 0:se.y].join(" "),...((ne=A.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(gf,{scope:r,placedSide:ae,onArrowChange:E,arrowX:k,arrowY:j,shouldHideArrow:$,children:f.jsx(B.div,{"data-side":ae,"data-align":de,...m,ref:C,style:{...m.style,animation:q?void 0:"none"}})})})});fs.displayName=Gn;var ps="PopperArrow",hf={top:"bottom",right:"left",bottom:"top",left:"right"},ms=c.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=vf(ps,n),s=hf[a.placedSide];return f.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:f.jsx(pf,{...o,ref:r,style:{...o.style,display:"block"}})})});ms.displayName=ps;function bf(e){return e!==null}var xf=e=>({name:"transformOrigin",options:e,fn(t){var b,y,x;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=gs(r),p={start:"0%",center:"50%",end:"100%"}[d],v=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let w="",m="";return u==="bottom"?(w=s?p:`${v}px`,m=`${-l}px`):u==="top"?(w=s?p:`${v}px`,m=`${n.floating.height+l}px`):u==="right"?(w=`${-l}px`,m=s?p:`${h}px`):u==="left"&&(w=`${n.floating.width+l}px`,m=s?p:`${h}px`),{data:{x:w,y:m}}}});function gs(e){const[t,r="center"]=e.split("-");return[t,r]}var Hn=cs,Tr=ds,Un=fs,Kn=ms,yf="Portal",Ht=c.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=c.useState(!1);he(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Aa.createPortal(f.jsx(B.div,{...n,ref:t}),s):null});Ht.displayName=yf;var wf=c[" useInsertionEffect ".trim().toString()]||he;function Ee({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Cf({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const p=d.current;p!==i&&console.warn(`${n} is changing from ${p?"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.`),d.current=i},[i,n])}const u=c.useCallback(d=>{var p;if(i){const v=Sf(d)?d(e):d;v!==e&&((p=s.current)==null||p.call(s,v))}else a(d)},[i,e,a,s]);return[l,u]}function Cf({defaultProp:e,onChange:t}){const[r,n]=c.useState(e),o=c.useRef(r),a=c.useRef(t);return wf(()=>{a.current=t},[t]),c.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Sf(e){return typeof e=="function"}function vs(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var hs=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"}),Ef="VisuallyHidden",bs=c.forwardRef((e,t)=>f.jsx(B.span,{...e,ref:t,style:{...hs,...e.style}}));bs.displayName=Ef;var Rf=bs,Pf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,rr=new WeakMap,nr={},nn=0,xs=function(e){return e&&(e.host||xs(e.parentNode))},kf=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xs(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Af=function(e,t,r,n){var o=kf(t,Array.isArray(e)?e:[e]);nr[r]||(nr[r]=new WeakMap);var a=nr[r],s=[],i=new Set,l=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(v){if(i.has(v))d(v);else try{var h=v.getAttribute(n),w=h!==null&&h!=="false",m=(vt.get(v)||0)+1,b=(a.get(v)||0)+1;vt.set(v,m),a.set(v,b),s.push(v),m===1&&w&&rr.set(v,!0),b===1&&v.setAttribute(r,"true"),w||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return d(t),i.clear(),nn++,function(){s.forEach(function(p){var v=vt.get(p)-1,h=a.get(p)-1;vt.set(p,v),a.set(p,h),v||(rr.has(p)||p.removeAttribute(n),rr.delete(p)),h||p.removeAttribute(r)}),nn--,nn||(vt=new WeakMap,vt=new WeakMap,rr=new WeakMap,nr={})}},Yn=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Pf(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Af(n,o,r,"aria-hidden")):function(){return null}},De=function(){return De=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},De.apply(this,arguments)};function ys(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Tf(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var lr="right-scroll-bar-position",cr="width-before-scroll-bar",_f="with-scroll-bars-hidden",Of="--removed-body-scroll-bar-size";function on(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nf(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var If=typeof window<"u"?c.useLayoutEffect:c.useEffect,ua=new WeakMap;function jf(e,t){var r=Nf(null,function(n){return e.forEach(function(o){return on(o,n)})});return If(function(){var n=ua.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||on(i,null)}),a.forEach(function(i){o.has(i)||on(i,s)})}ua.set(r,e)},[e]),r}function Df(e){return e}function Mf(e,t){t===void 0&&(t=Df);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var l=function(){var d=s;s=[],d.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),r}}}};return o}function Ff(e){e===void 0&&(e={});var t=Mf(null);return t.options=De({async:!0,ssr:!1},e),t}var ws=function(e){var t=e.sideCar,r=ys(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return c.createElement(n,De({},r))};ws.isSideCarExport=!0;function Lf(e,t){return e.useMedium(t),ws}var Cs=Ff(),an=function(){},_r=c.forwardRef(function(e,t){var r=c.useRef(null),n=c.useState({onScrollCapture:an,onWheelCapture:an,onTouchMoveCapture:an}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,S=ys(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,_=jf([r,t]),P=De(De({},S),o);return c.createElement(c.Fragment,null,d&&c.createElement(E,{sideCar:Cs,removeScrollBar:u,shards:p,noRelative:h,noIsolation:w,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:C}),s?c.cloneElement(c.Children.only(i),De(De({},P),{ref:_})):c.createElement(x,De({},P,{className:l,ref:_}),i))});_r.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_r.classNames={fullWidth:cr,zeroRight:lr};var $f=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Vf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$f();return t&&e.setAttribute("nonce",t),e}function Bf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zf=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Vf())&&(Bf(t,r),Wf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gf=function(){var e=zf();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ss=function(){var e=Gf(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Hf={left:0,top:0,right:0,gap:0},sn=function(e){return parseInt(e||"",10)||0},Uf=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[sn(r),sn(n),sn(o)]},Kf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hf;var t=Uf(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Yf=Ss(),Ct="data-scroll-locked",qf=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
31
- .`.concat(_f,` {
30
+ <%s key={someKey} {...props} />`,un,it,Pu,it),Jo[it+un]=!0}}return b===n?yu(me):bu(me),me}}function wu(b,I,M){return Qo(b,I,M,!0)}function Cu(b,I,M){return Qo(b,I,M,!1)}var Su=Cu,Eu=wu;Wt.Fragment=n,Wt.jsx=Su,Wt.jsxs=Eu})()),Wt}var rs;function Ou(){return rs||(rs=1,process.env.NODE_ENV==="production"?lr.exports=_u():lr.exports=Iu()),lr.exports}var d=Ou();function Qs(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Qs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ea(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Qs(e))&&(n&&(n+=" "),n+=t);return n}const ns=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,os=ea,Dr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return os(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=s==null?void 0:s[u];if(f===null)return null;const g=ns(f)||ns(p);return o[u][g]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...v}=f;return Object.entries(v).every(w=>{let[m,x]=w;return Array.isArray(x)?x.includes({...s,...i}[m]):{...s,...i}[m]===x})?[...u,p,g]:u},[]);return os(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},qn="-",ju=e=>{const t=Mu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(qn);return i[0]===""&&i.length!==1&&i.shift(),ta(i,t)||Du(a)},getConflictingClassGroupIds:(a,i)=>{const c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},ta=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?ta(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(qn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},ss=/^\[(.+)\]$/,Du=e=>{if(ss.test(e)){const t=ss.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Mu=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)An(r[o],n,o,t);return n},An=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:as(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(Fu(o)){An(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,a])=>{An(a,as(t,s),r,n)})})},as=(e,t)=>{let r=e;return t.split(qn).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Fu=e=>e.isThemeGetter,$u=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){r.has(s)?r.set(s,a):o(s,a)}}},Nn="!",_n=":",Lu=_n.length,Vu=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let a=0,i=0,c=0,u;for(let w=0;w<o.length;w++){let m=o[w];if(a===0&&i===0){if(m===_n){s.push(o.slice(c,w)),c=w+Lu;continue}if(m==="/"){u=w;continue}}m==="["?a++:m==="]"?a--:m==="("?i++:m===")"&&i--}const f=s.length===0?o:o.substring(c),p=Bu(f),g=p!==f,v=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:v}};if(t){const o=t+_n,s=n;n=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Bu=e=>e.endsWith(Nn)?e.substring(0,e.length-1):e.startsWith(Nn)?e.substring(1):e,Wu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},zu=e=>({cache:$u(e.cacheSize),parseClassName:Vu(e),sortModifiers:Wu(e),...ju(e)}),Gu=/\s+/,Hu=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Gu);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:g,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=n(x?w.substring(0,m):w);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=n(w),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const h=s(g).join(":"),C=v?h+Nn:h,S=C+y;if(a.includes(S))continue;a.push(S);const k=o(y,x);for(let N=0;N<k.length;++N){const _=k[N];a.push(C+_)}c=f+(c.length>0?" "+c:c)}return c};function Uu(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ra(t))&&(n&&(n+=" "),n+=r);return n}const ra=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ra(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ku(e,...t){let r,n,o,s=a;function a(c){const u=t.reduce((f,p)=>p(f),e());return r=zu(u),n=r.cache.get,o=r.cache.set,s=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=Hu(c,r);return o(c,f),f}return function(){return s(Uu.apply(null,arguments))}}const ge=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},na=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yu=/^\d+\/\d+$/,qu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xu=/\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$/,Zu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ju=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yt=e=>Yu.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),dn=e=>e.endsWith("%")&&ne(e.slice(0,-1)),He=e=>qu.test(e),ed=()=>!0,td=e=>Xu.test(e)&&!Zu.test(e),sa=()=>!1,rd=e=>Ju.test(e),nd=e=>Qu.test(e),od=e=>!V(e)&&!B(e),sd=e=>Ot(e,ca,sa),V=e=>na.test(e),ct=e=>Ot(e,la,td),fn=e=>Ot(e,ud,ne),is=e=>Ot(e,aa,sa),ad=e=>Ot(e,ia,nd),ur=e=>Ot(e,ua,rd),B=e=>oa.test(e),zt=e=>jt(e,la),id=e=>jt(e,dd),cs=e=>jt(e,aa),cd=e=>jt(e,ca),ld=e=>jt(e,ia),dr=e=>jt(e,ua,!0),Ot=(e,t,r)=>{const n=na.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},jt=(e,t,r=!1)=>{const n=oa.exec(e);return n?n[1]?t(n[1]):r:!1},aa=e=>e==="position"||e==="percentage",ia=e=>e==="image"||e==="url",ca=e=>e==="length"||e==="size"||e==="bg-size",la=e=>e==="length",ud=e=>e==="number",dd=e=>e==="family-name",ua=e=>e==="shadow",fd=()=>{const e=ge("color"),t=ge("font"),r=ge("text"),n=ge("font-weight"),o=ge("tracking"),s=ge("leading"),a=ge("breakpoint"),i=ge("container"),c=ge("spacing"),u=ge("radius"),f=ge("shadow"),p=ge("inset-shadow"),g=ge("text-shadow"),v=ge("drop-shadow"),w=ge("blur"),m=ge("perspective"),x=ge("aspect"),y=ge("ease"),h=ge("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),B,V],N=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],T=()=>[B,V,c],H=()=>[yt,"full","auto",...T()],K=()=>[Ze,"none","subgrid",B,V],ee=()=>["auto",{span:["full",Ze,B,V]},Ze,B,V],J=()=>[Ze,"auto",B,V],Y=()=>["auto","min","max","fr",B,V],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...T()],D=()=>[yt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],E=()=>[e,B,V],G=()=>[...S(),cs,is,{position:[B,V]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",cd,sd,{size:[B,V]}],R=()=>[dn,zt,ct],F=()=>["","none","full",u,B,V],W=()=>["",ne,zt,ct],L=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[ne,dn,cs,is],q=()=>["","none",w,B,V],te=()=>["none",ne,B,V],re=()=>["none",ne,B,V],ie=()=>[ne,B,V],se=()=>[yt,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[He],breakpoint:[He],color:[ed],container:[He],"drop-shadow":[He],ease:["in","out","in-out"],font:[od],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[He],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[He],shadow:[He],spacing:["px",ne],text:[He],"text-shadow":[He],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yt,V,B,x]}],container:["container"],columns:[{columns:[ne,V,B,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:k()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Ze,"auto",B,V]}],basis:[{basis:[yt,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,yt,"auto","initial","none",V]}],grow:[{grow:["",ne,B,V]}],shrink:[{shrink:["",ne,B,V]}],order:[{order:[Ze,"first","last","none",B,V]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[i,"screen",...D()]}],"min-w":[{"min-w":[i,"screen","none",...D()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,zt,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,B,fn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dn,V]}],"font-family":[{font:[id,V,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,B,V]}],"line-clamp":[{"line-clamp":[ne,"none",B,fn]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",B,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",B,ct]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[ne,"auto",B,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,V]}],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",B,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,B,V],radial:["",B,V],conic:[Ze,B,V]},ld,ad]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...L(),"hidden","none"]}],"divide-style":[{divide:[...L(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...L(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,B,V]}],"outline-w":[{outline:["",ne,zt,ct]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",f,dr,ur]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,dr,ur]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[ne,ct]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",g,dr,ur]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[ne,B,V]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"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":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[B,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,V]}],filter:[{filter:["","none",B,V]}],blur:[{blur:q()}],brightness:[{brightness:[ne,B,V]}],contrast:[{contrast:[ne,B,V]}],"drop-shadow":[{"drop-shadow":["","none",v,dr,ur]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",ne,B,V]}],"hue-rotate":[{"hue-rotate":[ne,B,V]}],invert:[{invert:["",ne,B,V]}],saturate:[{saturate:[ne,B,V]}],sepia:[{sepia:["",ne,B,V]}],"backdrop-filter":[{"backdrop-filter":["","none",B,V]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[ne,B,V]}],"backdrop-contrast":[{"backdrop-contrast":[ne,B,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,B,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,B,V]}],"backdrop-invert":[{"backdrop-invert":["",ne,B,V]}],"backdrop-opacity":[{"backdrop-opacity":[ne,B,V]}],"backdrop-saturate":[{"backdrop-saturate":[ne,B,V]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,B,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",B,V]}],ease:[{ease:["linear","initial",y,B,V]}],delay:[{delay:[ne,B,V]}],animate:[{animate:["none",h,B,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,B,V]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[B,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",B,V]}],"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":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",B,V]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[ne,zt,ct,fn]}],stroke:[{stroke:["none",...E()]}],"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"]}},pd=Ku(fd);function $(...e){return pd(ea(e))}const md=Dr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{variant:{default:"bg-purple-300 text-black font-normal hover:bg-primary/80 dark:bg-primary dark:text-primary-foreground dark:hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 dark:bg-destructive dark:text-destructive-foreground dark:hover:bg-destructive/80",outline:"border border-purple-mutted-600 shadow-xs hover:text-purple-100 text-purple-mutted-400",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:bg-secondary dark:text-secondary-foreground dark:hover:bg-secondary/80",ghost:"text-foreground hover:bg-accent hover:text-accent-foreground dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline dark:text-primary",success:"bg-success text-success-foreground hover:bg-success/80 dark:bg-success dark:text-success-foreground dark:hover:bg-success/80",warning:"bg-warning text-warning-foreground hover:bg-warning/80 dark:bg-warning dark:text-warning-foreground dark:hover:bg-warning/80"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Mr=l.forwardRef(({className:e,variant:t,size:r,...n},o)=>d.jsx("button",{className:$(md({variant:t,size:r,className:e})),ref:o,...n}));Mr.displayName="Button";const gd=Dr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background 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 dark:border-input dark:bg-background dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-mutted-700 border-purple-mutted-500 text-purple-mutted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"bg-destructive border-destructive text-destructive-foreground placeholder:text-destructive-foreground/70 dark:bg-destructive dark:border-destructive dark:text-destructive-foreground dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}});function da({className:e,variant:t,type:r,...n}){return d.jsx("input",{type:r,"data-slot":"input",className:$(gd({variant:t,className:e})),...n})}function ls(e,[t,r]){return Math.min(r,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function vd(e,t){const r=l.createContext(t),n=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return d.jsx(r.Provider,{value:c,children:a})};n.displayName=e+"Provider";function o(s){const a=l.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function ke(e,t=[]){let r=[];function n(s,a){const i=l.createContext(a),c=r.length;r=[...r,a];const u=p=>{var y;const{scope:g,children:v,...w}=p,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>w,Object.values(w));return d.jsx(m.Provider,{value:x,children:v})};u.displayName=s+"Provider";function f(p,g){var m;const v=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,w=l.useContext(v);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=r.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,hd(o,...t)]}function hd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=n.reduce((i,{useScope:c,scopeName:u})=>{const p=c(s)[`__scope${u}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function us(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lt(...e){return t=>{let r=!1;const n=e.map(o=>{const s=us(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():us(e[o],null)}}}}function de(...e){return l.useCallback(lt(...e),e)}function ut(e){const t=xd(e),r=l.forwardRef((n,o)=>{const{children:s,...a}=n,i=l.Children.toArray(s),c=i.find(yd);if(c){const u=c.props.children,f=i.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var fa=ut("Slot");function xd(e){const t=l.forwardRef((r,n)=>{const{children:o,...s}=r;if(l.isValidElement(o)){const a=Cd(o),i=wd(s,o.props);return o.type!==l.Fragment&&(i.ref=n?lt(n,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pa=Symbol("radix.slottable");function bd(e){const t=({children:r})=>d.jsx(d.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=pa,t}function yd(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pa}function wd(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Cd(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Xn(e){const t=e+"CollectionProvider",[r,n]=ke(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:x,children:y}=m,h=P.useRef(null),C=P.useRef(new Map).current;return d.jsx(o,{scope:x,itemMap:C,collectionRef:h,children:y})};a.displayName=t;const i=e+"CollectionSlot",c=ut(i),u=P.forwardRef((m,x)=>{const{scope:y,children:h}=m,C=s(i,y),S=de(x,C.collectionRef);return d.jsx(c,{ref:S,children:h})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=ut(f),v=P.forwardRef((m,x)=>{const{scope:y,children:h,...C}=m,S=P.useRef(null),k=de(x,S),N=s(f,y);return P.useEffect(()=>(N.itemMap.set(S,{ref:S,...C}),()=>void N.itemMap.delete(S))),d.jsx(g,{[p]:"",ref:k,children:h})});v.displayName=f;function w(m){const x=s(e+"CollectionConsumer",m);return P.useCallback(()=>{const h=x.collectionRef.current;if(!h)return[];const C=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((N,_)=>C.indexOf(N.ref.current)-C.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:u,ItemSlot:v},w,n]}var Sd=l.createContext(void 0);function Fr(e){const t=l.useContext(Sd);return e||t||"ltr"}var Ed=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=Ed.reduce((e,t)=>{const r=ut(`Primitive.${t}`),n=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Pd(e,t){e&&jr.flushSync(()=>e.dispatchEvent(t))}function Qe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Rd(e,t=globalThis==null?void 0:globalThis.document){const r=Qe(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var kd="DismissableLayer",In="dismissableLayer.update",Td="dismissableLayer.pointerDownOutside",Ad="dismissableLayer.focusOutside",ds,ma=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=l.useContext(ma),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=l.useState({}),w=de(t,_=>p(_)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),h=f?m.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=y,k=Id(_=>{const T=_.target,H=[...u.branches].some(K=>K.contains(T));!S||H||(o==null||o(_),a==null||a(_),_.defaultPrevented||i==null||i())},g),N=Od(_=>{const T=_.target;[...u.branches].some(K=>K.contains(T))||(s==null||s(_),a==null||a(_),_.defaultPrevented||i==null||i())},g);return Rd(_=>{h===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ds=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),fs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ds)}},[f,g,r,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),fs())},[f,u]),l.useEffect(()=>{const _=()=>v({});return document.addEventListener(In,_),()=>document.removeEventListener(In,_)},[]),d.jsx(U.div,{...c,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,k.onPointerDownCapture)})});Qt.displayName=kd;var Nd="DismissableLayerBranch",_d=l.forwardRef((e,t)=>{const r=l.useContext(ma),n=l.useRef(null),o=de(t,n);return l.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),d.jsx(U.div,{...e,ref:o})});_d.displayName=Nd;function Id(e,t=globalThis==null?void 0:globalThis.document){const r=Qe(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!n.current){let c=function(){ga(Td,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Od(e,t=globalThis==null?void 0:globalThis.document){const r=Qe(e),n=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!n.current&&ga(Ad,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fs(){const e=new CustomEvent(In);document.dispatchEvent(e)}function ga(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Pd(o,s):o.dispatchEvent(s)}var pn=0;function Zn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ps()),document.body.insertAdjacentElement("beforeend",e[1]??ps()),pn++,()=>{pn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pn--}},[])}function ps(){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 mn="focusScope.autoFocusOnMount",gn="focusScope.autoFocusOnUnmount",ms={bubbles:!1,cancelable:!0},jd="FocusScope",$r=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),u=Qe(o),f=Qe(s),p=l.useRef(null),g=de(t,m=>c(m)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(C){if(v.paused||!i)return;const S=C.target;i.contains(S)?p.current=S:Je(p.current,{select:!0})},x=function(C){if(v.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||Je(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&Je(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const h=new MutationObserver(y);return i&&h.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),h.disconnect()}}},[n,i,v.paused]),l.useEffect(()=>{if(i){vs.add(v);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(mn,ms);i.addEventListener(mn,u),i.dispatchEvent(y),y.defaultPrevented||(Dd(Vd(va(i)),{select:!0}),document.activeElement===m&&Je(i))}return()=>{i.removeEventListener(mn,u),setTimeout(()=>{const y=new CustomEvent(gn,ms);i.addEventListener(gn,f),i.dispatchEvent(y),y.defaultPrevented||Je(m??document.body,{select:!0}),i.removeEventListener(gn,f),vs.remove(v)},0)}}},[i,u,f,v]);const w=l.useCallback(m=>{if(!r&&!n||v.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const h=m.currentTarget,[C,S]=Md(h);C&&S?!m.shiftKey&&y===S?(m.preventDefault(),r&&Je(C,{select:!0})):m.shiftKey&&y===C&&(m.preventDefault(),r&&Je(S,{select:!0})):y===h&&m.preventDefault()}},[r,n,v.paused]);return d.jsx(U.div,{tabIndex:-1,...a,ref:g,onKeyDown:w})});$r.displayName=jd;function Dd(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Je(n,{select:t}),document.activeElement!==r)return}function Md(e){const t=va(e),r=gs(t,e),n=gs(t.reverse(),e);return[r,n]}function va(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function gs(e,t){for(const r of e)if(!Fd(r,{upTo:t}))return r}function Fd(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 $d(e){return e instanceof HTMLInputElement&&"select"in e}function Je(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&$d(e)&&t&&e.select()}}var vs=Ld();function Ld(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=hs(e,t),e.unshift(t)},remove(t){var r;e=hs(e,t),(r=e[0])==null||r.resume()}}}function hs(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Vd(e){return e.filter(t=>t.tagName!=="A")}var he=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Bd=l[" useId ".trim().toString()]||(()=>{}),Wd=0;function ve(e){const[t,r]=l.useState(Bd());return he(()=>{r(n=>n??String(Wd++))},[e]),t?`radix-${t}`:""}const zd=["top","right","bottom","left"],et=Math.min,Ce=Math.max,Cr=Math.round,fr=Math.floor,Ve=e=>({x:e,y:e}),Gd={left:"right",right:"left",bottom:"top",top:"bottom"},Hd={start:"end",end:"start"};function On(e,t,r){return Ce(e,et(t,r))}function Ue(e,t){return typeof e=="function"?e(t):e}function Ke(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function Jn(e){return e==="x"?"y":"x"}function Qn(e){return e==="y"?"height":"width"}const Ud=new Set(["top","bottom"]);function Le(e){return Ud.has(Ke(e))?"y":"x"}function eo(e){return Jn(Le(e))}function Kd(e,t,r){r===void 0&&(r=!1);const n=Dt(e),o=eo(e),s=Qn(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Sr(a)),[a,Sr(a)]}function Yd(e){const t=Sr(e);return[jn(e),t,jn(t)]}function jn(e){return e.replace(/start|end/g,t=>Hd[t])}const xs=["left","right"],bs=["right","left"],qd=["top","bottom"],Xd=["bottom","top"];function Zd(e,t,r){switch(e){case"top":case"bottom":return r?t?bs:xs:t?xs:bs;case"left":case"right":return t?qd:Xd;default:return[]}}function Jd(e,t,r,n){const o=Dt(e);let s=Zd(Ke(e),r==="start",n);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(jn)))),s}function Sr(e){return e.replace(/left|right|bottom|top/g,t=>Gd[t])}function Qd(e){return{top:0,right:0,bottom:0,left:0,...e}}function ha(e){return typeof e!="number"?Qd(e):{top:e,right:e,bottom:e,left:e}}function Er(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ys(e,t,r){let{reference:n,floating:o}=e;const s=Le(t),a=eo(t),i=Qn(a),c=Ke(t),u=s==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let v;switch(c){case"top":v={x:f,y:n.y-o.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:p};break;case"left":v={x:n.x-o.width,y:p};break;default:v={x:n.x,y:n.y}}switch(Dt(t)){case"start":v[a]-=g*(r&&u?-1:1);break;case"end":v[a]+=g*(r&&u?-1:1);break}return v}const ef=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=ys(u,n,c),g=n,v={},w=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:h,y:C,data:S,reset:k}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});f=h??f,p=C??p,v={...v,[x]:{...v[x],...S}},k&&w<=50&&(w++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=ys(u,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:v}};async function qt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:v=0}=Ue(t,e),w=ha(v),x=i[g?p==="floating"?"reference":"floating":p],y=Er(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),h=p==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},k=Er(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:h,offsetParent:C,strategy:c}):h);return{top:(y.top-k.top+w.top)/S.y,bottom:(k.bottom-y.bottom+w.bottom)/S.y,left:(y.left-k.left+w.left)/S.x,right:(k.right-y.right+w.right)/S.x}}const tf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=Ue(e,t)||{};if(u==null)return{};const p=ha(f),g={x:r,y:n},v=eo(o),w=Qn(v),m=await a.getDimensions(u),x=v==="y",y=x?"top":"left",h=x?"bottom":"right",C=x?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[v]-g[v]-s.floating[w],k=g[v]-s.reference[v],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=N?N[C]:0;(!_||!await(a.isElement==null?void 0:a.isElement(N)))&&(_=i.floating[C]||s.floating[w]);const T=S/2-k/2,H=_/2-m[w]/2-1,K=et(p[y],H),ee=et(p[h],H),J=K,Y=_-m[w]-ee,z=_/2-m[w]/2+T,j=On(J,z,Y),A=!c.arrow&&Dt(o)!=null&&z!==j&&s.reference[w]/2-(z<J?K:ee)-m[w]/2<0,D=A?z<J?z-J:z-Y:0;return{[v]:g[v]+D,data:{[v]:j,centerOffset:z-j-D,...A&&{alignmentOffset:D}},reset:A}}}),rf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...x}=Ue(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const y=Ke(o),h=Le(i),C=Ke(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(C||!m?[Sr(i)]:Yd(i)),N=w!=="none";!g&&N&&k.push(...Jd(i,m,w,S));const _=[i,...k],T=await qt(t,x),H=[];let K=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&H.push(T[y]),p){const z=Kd(o,a,S);H.push(T[z[0]],T[z[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every(z=>z<=0)){var ee,J;const z=(((ee=s.flip)==null?void 0:ee.index)||0)+1,j=_[z];if(j&&(!(p==="alignment"?h!==Le(j):!1)||K.every(E=>Le(E.placement)===h?E.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:j}};let A=(J=K.filter(D=>D.overflows[0]<=0).sort((D,E)=>D.overflows[1]-E.overflows[1])[0])==null?void 0:J.placement;if(!A)switch(v){case"bestFit":{var Y;const D=(Y=K.filter(E=>{if(N){const G=Le(E.placement);return G===h||G==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(G=>G>0).reduce((G,oe)=>G+oe,0)]).sort((E,G)=>E[1]-G[1])[0])==null?void 0:Y[0];D&&(A=D);break}case"initialPlacement":A=i;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function ws(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cs(e){return zd.some(t=>e[t]>=0)}const nf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ue(e,t);switch(n){case"referenceHidden":{const s=await qt(t,{...o,elementContext:"reference"}),a=ws(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Cs(a)}}}case"escaped":{const s=await qt(t,{...o,altBoundary:!0}),a=ws(s,r.floating);return{data:{escapedOffsets:a,escaped:Cs(a)}}}default:return{}}}}},xa=new Set(["left","top"]);async function of(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ke(r),i=Dt(r),c=Le(r)==="y",u=xa.has(a)?-1:1,f=s&&c?-1:1,p=Ue(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(v=i==="end"?w*-1:w),c?{x:v*f,y:g*u}:{x:g*u,y:v*f}}const sf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await of(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},af=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:y,y:h}=x;return{x:y,y:h}}},...c}=Ue(e,t),u={x:r,y:n},f=await qt(t,c),p=Le(Ke(o)),g=Jn(p);let v=u[g],w=u[p];if(s){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",h=v+f[x],C=v-f[y];v=On(h,v,C)}if(a){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",h=w+f[x],C=w-f[y];w=On(h,w,C)}const m=i.fn({...t,[g]:v,[p]:w});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:s,[p]:a}}}}}},cf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ue(e,t),f={x:r,y:n},p=Le(o),g=Jn(p);let v=f[g],w=f[p];const m=Ue(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const C=g==="y"?"height":"width",S=s.reference[g]-s.floating[C]+x.mainAxis,k=s.reference[g]+s.reference[C]-x.mainAxis;v<S?v=S:v>k&&(v=k)}if(u){var y,h;const C=g==="y"?"width":"height",S=xa.has(Ke(o)),k=s.reference[p]-s.floating[C]+(S&&((y=a.offset)==null?void 0:y[p])||0)+(S?0:x.crossAxis),N=s.reference[p]+s.reference[C]+(S?0:((h=a.offset)==null?void 0:h[p])||0)-(S?x.crossAxis:0);w<k?w=k:w>N&&(w=N)}return{[g]:v,[p]:w}}}},lf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ue(e,t),f=await qt(t,u),p=Ke(o),g=Dt(o),v=Le(o)==="y",{width:w,height:m}=s.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const h=m-f.top-f.bottom,C=w-f.left-f.right,S=et(m-f[x],h),k=et(w-f[y],C),N=!t.middlewareData.shift;let _=S,T=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(T=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=h),N&&!g){const K=Ce(f.left,0),ee=Ce(f.right,0),J=Ce(f.top,0),Y=Ce(f.bottom,0);v?T=w-2*(K!==0||ee!==0?K+ee:Ce(f.left,f.right)):_=m-2*(J!==0||Y!==0?J+Y:Ce(f.top,f.bottom))}await c({...t,availableWidth:T,availableHeight:_});const H=await a.getDimensions(i.floating);return w!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function Lr(){return typeof window<"u"}function Mt(e){return ba(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function We(e){var t;return(t=(ba(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ba(e){return Lr()?e instanceof Node||e instanceof Se(e).Node:!1}function Ne(e){return Lr()?e instanceof Element||e instanceof Se(e).Element:!1}function Be(e){return Lr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ss(e){return!Lr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const uf=new Set(["inline","contents"]);function er(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!uf.has(o)}const df=new Set(["table","td","th"]);function ff(e){return df.has(Mt(e))}const pf=[":popover-open",":modal"];function Vr(e){return pf.some(t=>{try{return e.matches(t)}catch{return!1}})}const mf=["transform","translate","scale","rotate","perspective"],gf=["transform","translate","scale","rotate","perspective","filter"],vf=["paint","layout","strict","content"];function to(e){const t=ro(),r=Ne(e)?_e(e):e;return mf.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||gf.some(n=>(r.willChange||"").includes(n))||vf.some(n=>(r.contain||"").includes(n))}function hf(e){let t=tt(e);for(;Be(t)&&!Nt(t);){if(to(t))return t;if(Vr(t))return null;t=tt(t)}return null}function ro(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xf=new Set(["html","body","#document"]);function Nt(e){return xf.has(Mt(e))}function _e(e){return Se(e).getComputedStyle(e)}function Br(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tt(e){if(Mt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ss(e)&&e.host||We(e);return Ss(t)?t.host:t}function ya(e){const t=tt(e);return Nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&er(t)?t:ya(t)}function Xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ya(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=Se(o);if(s){const i=Dn(a);return t.concat(a,a.visualViewport||[],er(o)?o:[],i&&r?Xt(i):[])}return t.concat(o,Xt(o,[],r))}function Dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wa(e){const t=_e(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Be(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=Cr(r)!==s||Cr(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function no(e){return Ne(e)?e:e.contextElement}function Tt(e){const t=no(e);if(!Be(t))return Ve(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=wa(t);let a=(s?Cr(r.width):r.width)/n,i=(s?Cr(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const bf=Ve(0);function Ca(e){const t=Se(e);return!ro()||!t.visualViewport?bf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Se(e)?!1:t}function dt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=no(e);let a=Ve(1);t&&(n?Ne(n)&&(a=Tt(n)):a=Tt(e));const i=yf(s,r,n)?Ca(s):Ve(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const g=Se(s),v=n&&Ne(n)?Se(n):n;let w=g,m=Dn(w);for(;m&&n&&v!==w;){const x=Tt(m),y=m.getBoundingClientRect(),h=_e(m),C=y.left+(m.clientLeft+parseFloat(h.paddingLeft))*x.x,S=y.top+(m.clientTop+parseFloat(h.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,p*=x.y,c+=C,u+=S,w=Se(m),m=Dn(w)}}return Er({width:f,height:p,x:c,y:u})}function Wr(e,t){const r=Br(e).scrollLeft;return t?t.left+r:dt(We(e)).left+r}function Sa(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Wr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function wf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",a=We(n),i=t?Vr(t.floating):!1;if(n===a||i&&s)return r;let c={scrollLeft:0,scrollTop:0},u=Ve(1);const f=Ve(0),p=Be(n);if((p||!p&&!s)&&((Mt(n)!=="body"||er(a))&&(c=Br(n)),Be(n))){const v=dt(n);u=Tt(n),f.x=v.x+n.clientLeft,f.y=v.y+n.clientTop}const g=a&&!p&&!s?Sa(a,c):Ve(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-c.scrollTop*u.y+f.y+g.y}}function Cf(e){return Array.from(e.getClientRects())}function Sf(e){const t=We(e),r=Br(e),n=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Wr(e);const i=-r.scrollTop;return _e(n).direction==="rtl"&&(a+=Ce(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Es=25;function Ef(e,t){const r=Se(e),n=We(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=ro();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Wr(n);if(u<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),v=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-v);w<=Es&&(s-=w)}else u<=Es&&(s+=u);return{width:s,height:a,x:i,y:c}}const Pf=new Set(["absolute","fixed"]);function Rf(e,t){const r=dt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Be(e)?Tt(e):Ve(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:a,height:i,x:c,y:u}}function Ps(e,t,r){let n;if(t==="viewport")n=Ef(e,r);else if(t==="document")n=Sf(We(e));else if(Ne(t))n=Rf(t,r);else{const o=Ca(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Er(n)}function Ea(e,t){const r=tt(e);return r===t||!Ne(r)||Nt(r)?!1:_e(r).position==="fixed"||Ea(r,t)}function kf(e,t){const r=t.get(e);if(r)return r;let n=Xt(e,[],!1).filter(i=>Ne(i)&&Mt(i)!=="body"),o=null;const s=_e(e).position==="fixed";let a=s?tt(e):e;for(;Ne(a)&&!Nt(a);){const i=_e(a),c=to(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&Pf.has(o.position)||er(a)&&!c&&Ea(e,a))?n=n.filter(f=>f!==a):o=i,a=tt(a)}return t.set(e,n),n}function Tf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Vr(t)?[]:kf(t,this._c):[].concat(r),n],i=a[0],c=a.reduce((u,f)=>{const p=Ps(t,f,o);return u.top=Ce(p.top,u.top),u.right=et(p.right,u.right),u.bottom=et(p.bottom,u.bottom),u.left=Ce(p.left,u.left),u},Ps(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Af(e){const{width:t,height:r}=wa(e);return{width:t,height:r}}function Nf(e,t,r){const n=Be(t),o=We(t),s=r==="fixed",a=dt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Ve(0);function u(){c.x=Wr(o)}if(n||!n&&!s)if((Mt(t)!=="body"||er(o))&&(i=Br(t)),n){const v=dt(t,!0,s,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&u();s&&!n&&o&&u();const f=o&&!n&&!s?Sa(o,i):Ve(0),p=a.left+i.scrollLeft-c.x-f.x,g=a.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:a.width,height:a.height}}function vn(e){return _e(e).position==="static"}function Rs(e,t){if(!Be(e)||_e(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return We(e)===r&&(r=r.ownerDocument.body),r}function Pa(e,t){const r=Se(e);if(Vr(e))return r;if(!Be(e)){let o=tt(e);for(;o&&!Nt(o);){if(Ne(o)&&!vn(o))return o;o=tt(o)}return r}let n=Rs(e,t);for(;n&&ff(n)&&vn(n);)n=Rs(n,t);return n&&Nt(n)&&vn(n)&&!to(n)?r:n||hf(e)||r}const _f=async function(e){const t=this.getOffsetParent||Pa,r=this.getDimensions,n=await r(e.floating);return{reference:Nf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function If(e){return _e(e).direction==="rtl"}const Of={convertOffsetParentRelativeRectToViewportRelativeRect:wf,getDocumentElement:We,getClippingRect:Tf,getOffsetParent:Pa,getElementRects:_f,getClientRects:Cf,getDimensions:Af,getScale:Tt,isElement:Ne,isRTL:If};function Ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jf(e,t){let r=null,n;const o=We(e);function s(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:v}=u;if(i||t(),!g||!v)return;const w=fr(p),m=fr(o.clientWidth-(f+g)),x=fr(o.clientHeight-(p+v)),y=fr(f),C={rootMargin:-w+"px "+-m+"px "+-x+"px "+-y+"px",threshold:Ce(0,et(1,c))||1};let S=!0;function k(N){const _=N[0].intersectionRatio;if(_!==c){if(!S)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}_===1&&!Ra(u,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,C)}r.observe(e)}return a(!0),s}function Df(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=no(e),f=o||s?[...u?Xt(u):[],...Xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const p=u&&i?jf(u,r):null;let g=-1,v=null;a&&(v=new ResizeObserver(y=>{let[h]=y;h&&h.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),r()}),u&&!c&&v.observe(u),v.observe(t));let w,m=c?dt(e):null;c&&x();function x(){const y=dt(e);m&&!Ra(m,y)&&r(),m=y,w=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(h=>{o&&h.removeEventListener("scroll",r),s&&h.removeEventListener("resize",r)}),p==null||p(),(y=v)==null||y.disconnect(),v=null,c&&cancelAnimationFrame(w)}}const Mf=sf,Ff=af,$f=rf,Lf=lf,Vf=nf,ks=tf,Bf=cf,Wf=(e,t,r)=>{const n=new Map,o={platform:Of,...r},s={...o.platform,_c:n};return ef(e,t,{...o,platform:s})};var zf=typeof document<"u",Gf=function(){},xr=zf?P.useLayoutEffect:Gf;function Pr(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Pr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Pr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ka(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ts(e,t){const r=ka(e);return Math.round(t*r)/r}function hn(e){const t=l.useRef(e);return xr(()=>{t.current=e}),t}function Hf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=l.useState(n);Pr(g,n)||v(n);const[w,m]=l.useState(null),[x,y]=l.useState(null),h=l.useCallback(E=>{E!==N.current&&(N.current=E,m(E))},[]),C=l.useCallback(E=>{E!==_.current&&(_.current=E,y(E))},[]),S=s||w,k=a||x,N=l.useRef(null),_=l.useRef(null),T=l.useRef(f),H=c!=null,K=hn(c),ee=hn(o),J=hn(u),Y=l.useCallback(()=>{if(!N.current||!_.current)return;const E={placement:t,strategy:r,middleware:g};ee.current&&(E.platform=ee.current),Wf(N.current,_.current,E).then(G=>{const oe={...G,isPositioned:J.current!==!1};z.current&&!Pr(T.current,oe)&&(T.current=oe,jr.flushSync(()=>{p(oe)}))})},[g,t,r,ee,J]);xr(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[u]);const z=l.useRef(!1);xr(()=>(z.current=!0,()=>{z.current=!1}),[]),xr(()=>{if(S&&(N.current=S),k&&(_.current=k),S&&k){if(K.current)return K.current(S,k,Y);Y()}},[S,k,Y,K,H]);const j=l.useMemo(()=>({reference:N,floating:_,setReference:h,setFloating:C}),[h,C]),A=l.useMemo(()=>({reference:S,floating:k}),[S,k]),D=l.useMemo(()=>{const E={position:r,left:0,top:0};if(!A.floating)return E;const G=Ts(A.floating,f.x),oe=Ts(A.floating,f.y);return i?{...E,transform:"translate("+G+"px, "+oe+"px)",...ka(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:G,top:oe}},[r,i,A.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:j,elements:A,floatingStyles:D}),[f,Y,j,A,D])}const Uf=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?ks({element:n.current,padding:o}).fn(r):{}:n?ks({element:n,padding:o}).fn(r):{}}}},Kf=(e,t)=>({...Mf(e),options:[e,t]}),Yf=(e,t)=>({...Ff(e),options:[e,t]}),qf=(e,t)=>({...Bf(e),options:[e,t]}),Xf=(e,t)=>({...$f(e),options:[e,t]}),Zf=(e,t)=>({...Lf(e),options:[e,t]}),Jf=(e,t)=>({...Vf(e),options:[e,t]}),Qf=(e,t)=>({...Uf(e),options:[e,t]});var ep="Arrow",Ta=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return d.jsx(U.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ta.displayName=ep;var tp=Ta;function Aa(e){const[t,r]=l.useState(void 0);return he(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var oo="Popper",[Na,Ft]=ke(oo),[rp,_a]=Na(oo),Ia=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return d.jsx(rp,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ia.displayName=oo;var Oa="PopperAnchor",ja=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=_a(Oa,r),a=l.useRef(null),i=de(t,a),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),n?null:d.jsx(U.div,{...o,ref:i})});ja.displayName=Oa;var so="PopperContent",[np,op]=Na(so),Da=l.forwardRef((e,t)=>{var O,q,te,re,ie,se;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:w,...m}=e,x=_a(so,r),[y,h]=l.useState(null),C=de(t,xe=>h(xe)),[S,k]=l.useState(null),N=Aa(S),_=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,H=n+(s!=="center"?"-"+s:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},ee=Array.isArray(u)?u:[u],J=ee.length>0,Y={padding:K,boundary:ee.filter(ap),altBoundary:J},{refs:z,floatingStyles:j,placement:A,isPositioned:D,middlewareData:E}=Hf({strategy:"fixed",placement:H,whileElementsMounted:(...xe)=>Df(...xe,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Kf({mainAxis:o+T,alignmentAxis:a}),c&&Yf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?qf():void 0,...Y}),c&&Xf({...Y}),Zf({...Y,apply:({elements:xe,rects:Pe,availableWidth:De,availableHeight:Te})=>{const{width:Xe,height:cr}=Pe.reference,Ge=xe.floating.style;Ge.setProperty("--radix-popper-available-width",`${De}px`),Ge.setProperty("--radix-popper-available-height",`${Te}px`),Ge.setProperty("--radix-popper-anchor-width",`${Xe}px`),Ge.setProperty("--radix-popper-anchor-height",`${cr}px`)}}),S&&Qf({element:S,padding:i}),ip({arrowWidth:_,arrowHeight:T}),g&&Jf({strategy:"referenceHidden",...Y})]}),[G,oe]=$a(A),le=Qe(w);he(()=>{D&&(le==null||le())},[D,le]);const R=(O=E.arrow)==null?void 0:O.x,F=(q=E.arrow)==null?void 0:q.y,W=((te=E.arrow)==null?void 0:te.centerOffset)!==0,[L,Q]=l.useState();return he(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:D?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:L,"--radix-popper-transform-origin":[(re=E.transformOrigin)==null?void 0:re.x,(ie=E.transformOrigin)==null?void 0:ie.y].join(" "),...((se=E.hide)==null?void 0:se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(np,{scope:r,placedSide:G,onArrowChange:k,arrowX:R,arrowY:F,shouldHideArrow:W,children:d.jsx(U.div,{"data-side":G,"data-align":oe,...m,ref:C,style:{...m.style,animation:D?void 0:"none"}})})})});Da.displayName=so;var Ma="PopperArrow",sp={top:"bottom",right:"left",bottom:"top",left:"right"},Fa=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=op(Ma,n),a=sp[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(tp,{...o,ref:r,style:{...o.style,display:"block"}})})});Fa.displayName=Ma;function ap(e){return e!==null}var ip=e=>({name:"transformOrigin",options:e,fn(t){var x,y,h;const{placement:r,rects:n,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=$a(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,v=(((h=o.arrow)==null?void 0:h.y)??0)+c/2;let w="",m="";return u==="bottom"?(w=a?p:`${g}px`,m=`${-c}px`):u==="top"?(w=a?p:`${g}px`,m=`${n.floating.height+c}px`):u==="right"?(w=`${-c}px`,m=a?p:`${v}px`):u==="left"&&(w=`${n.floating.width+c}px`,m=a?p:`${v}px`),{data:{x:w,y:m}}}});function $a(e){const[t,r="center"]=e.split("-");return[t,r]}var ao=Ia,zr=ja,io=Da,co=Fa,cp="Portal",tr=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,s]=l.useState(!1);he(()=>s(!0),[]);const a=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?Jt.createPortal(d.jsx(U.div,{...n,ref:t}),a):null});tr.displayName=cp;var lp=l[" useInsertionEffect ".trim().toString()]||he;function Ee({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=up({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const u=l.useCallback(f=>{var p;if(i){const g=dp(f)?f(e):f;g!==e&&((p=a.current)==null||p.call(a,g))}else s(f)},[i,e,s,a]);return[c,u]}function up({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),s=l.useRef(t);return lp(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==r&&((a=s.current)==null||a.call(s,r),o.current=r)},[r,o]),[r,n,s]}function dp(e){return typeof e=="function"}function La(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Va=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"}),fp="VisuallyHidden",Ba=l.forwardRef((e,t)=>d.jsx(U.span,{...e,ref:t,style:{...Va,...e.style}}));Ba.displayName=fp;var pp=Ba,mp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wt=new WeakMap,pr=new WeakMap,mr={},xn=0,Wa=function(e){return e&&(e.host||Wa(e.parentNode))},gp=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Wa(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},vp=function(e,t,r,n){var o=gp(t,Array.isArray(e)?e:[e]);mr[r]||(mr[r]=new WeakMap);var s=mr[r],a=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var v=g.getAttribute(n),w=v!==null&&v!=="false",m=(wt.get(g)||0)+1,x=(s.get(g)||0)+1;wt.set(g,m),s.set(g,x),a.push(g),m===1&&w&&pr.set(g,!0),x===1&&g.setAttribute(r,"true"),w||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),i.clear(),xn++,function(){a.forEach(function(p){var g=wt.get(p)-1,v=s.get(p)-1;wt.set(p,g),s.set(p,v),g||(pr.has(p)||p.removeAttribute(n),pr.delete(p)),v||p.removeAttribute(r)}),xn--,xn||(wt=new WeakMap,wt=new WeakMap,pr=new WeakMap,mr={})}},lo=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=mp(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),vp(n,o,r,"aria-hidden")):function(){return null}},$e=function(){return $e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$e.apply(this,arguments)};function za(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function hp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var br="right-scroll-bar-position",yr="width-before-scroll-bar",xp="with-scroll-bars-hidden",bp="--removed-body-scroll-bar-size";function bn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yp(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var wp=typeof window<"u"?l.useLayoutEffect:l.useEffect,As=new WeakMap;function Cp(e,t){var r=yp(null,function(n){return e.forEach(function(o){return bn(o,n)})});return wp(function(){var n=As.get(r);if(n){var o=new Set(n),s=new Set(e),a=r.current;o.forEach(function(i){s.has(i)||bn(i,null)}),s.forEach(function(i){o.has(i)||bn(i,a)})}As.set(r,e)},[e]),r}function Sp(e){return e}function Ep(e,t){t===void 0&&(t=Sp);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(i){return s(i)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(s),a=r}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),r}}}};return o}function Pp(e){e===void 0&&(e={});var t=Ep(null);return t.options=$e({async:!0,ssr:!1},e),t}var Ga=function(e){var t=e.sideCar,r=za(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,$e({},r))};Ga.isSideCarExport=!0;function Rp(e,t){return e.useMedium(t),Ga}var Ha=Pp(),yn=function(){},Gr=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:yn,onWheelCapture:yn,onTouchMoveCapture:yn}),o=n[0],s=n[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,w=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,h=y===void 0?"div":y,C=e.gapMode,S=za(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,N=Cp([r,t]),_=$e($e({},S),o);return l.createElement(l.Fragment,null,f&&l.createElement(k,{sideCar:Ha,removeScrollBar:u,shards:p,noRelative:v,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:r,gapMode:C}),a?l.cloneElement(l.Children.only(i),$e($e({},_),{ref:N})):l.createElement(h,$e({},_,{className:c,ref:N}),i))});Gr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gr.classNames={fullWidth:yr,zeroRight:br};var kp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kp();return t&&e.setAttribute("nonce",t),e}function Ap(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Np(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _p=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Tp())&&(Ap(t,r),Np(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ip=function(){var e=_p();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ua=function(){var e=Ip(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Op={left:0,top:0,right:0,gap:0},wn=function(e){return parseInt(e||"",10)||0},jp=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wn(r),wn(n),wn(o)]},Dp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Op;var t=jp(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Mp=Ua(),At="data-scroll-locked",Fp=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
31
+ .`.concat(xp,` {
32
32
  overflow: hidden `).concat(n,`;
33
33
  padding-right: `).concat(i,"px ").concat(n,`;
34
34
  }
35
- body[`).concat(Ct,`] {
35
+ body[`).concat(At,`] {
36
36
  overflow: hidden `).concat(n,`;
37
37
  overscroll-behavior: contain;
38
38
  `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
39
39
  padding-left: `.concat(o,`px;
40
- padding-top: `).concat(a,`px;
41
- padding-right: `).concat(s,`px;
40
+ padding-top: `).concat(s,`px;
41
+ padding-right: `).concat(a,`px;
42
42
  margin-left:0;
43
43
  margin-top:0;
44
44
  margin-right: `).concat(i,"px ").concat(n,`;
45
45
  `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
46
46
  }
47
47
 
48
- .`).concat(lr,` {
48
+ .`).concat(br,` {
49
49
  right: `).concat(i,"px ").concat(n,`;
50
50
  }
51
51
 
52
- .`).concat(cr,` {
52
+ .`).concat(yr,` {
53
53
  margin-right: `).concat(i,"px ").concat(n,`;
54
54
  }
55
55
 
56
- .`).concat(lr," .").concat(lr,` {
56
+ .`).concat(br," .").concat(br,` {
57
57
  right: 0 `).concat(n,`;
58
58
  }
59
59
 
60
- .`).concat(cr," .").concat(cr,` {
60
+ .`).concat(yr," .").concat(yr,` {
61
61
  margin-right: 0 `).concat(n,`;
62
62
  }
63
63
 
64
- body[`).concat(Ct,`] {
65
- `).concat(Of,": ").concat(i,`px;
64
+ body[`).concat(At,`] {
65
+ `).concat(bp,": ").concat(i,`px;
66
66
  }
67
- `)},da=function(){var e=parseInt(document.body.getAttribute(Ct)||"0",10);return isFinite(e)?e:0},Xf=function(){c.useEffect(function(){return document.body.setAttribute(Ct,(da()+1).toString()),function(){var e=da()-1;e<=0?document.body.removeAttribute(Ct):document.body.setAttribute(Ct,e.toString())}},[])},Zf=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Xf();var a=c.useMemo(function(){return Kf(o)},[o]);return c.createElement(Yf,{styles:qf(a,!t,o,r?"":"!important")})},yn=!1;if(typeof window<"u")try{var or=Object.defineProperty({},"passive",{get:function(){return yn=!0,!0}});window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{yn=!1}var ht=yn?{passive:!1}:!1,Jf=function(e){return e.tagName==="TEXTAREA"},Es=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Jf(e)&&r[t]==="visible")},Qf=function(e){return Es(e,"overflowY")},ep=function(e){return Es(e,"overflowX")},fa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Rs(e,n);if(o){var a=Ps(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tp=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rp=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Rs=function(e,t){return e==="v"?Qf(t):ep(t)},Ps=function(e,t){return e==="v"?tp(t):rp(t)},np=function(e,t){return e==="h"&&t==="rtl"?-1:1},op=function(e,t,r,n,o){var a=np(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),u=!1,d=s>0,p=0,v=0;do{if(!i)break;var h=Ps(e,i),w=h[0],m=h[1],b=h[2],y=m-b-a*w;(w||y)&&Rs(e,i)&&(p+=y,v+=w);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(d&&Math.abs(p)<1||!d&&Math.abs(v)<1)&&(u=!0),u},ar=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pa=function(e){return[e.deltaX,e.deltaY]},ma=function(e){return e&&"current"in e?e.current:e},ap=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sp=function(e){return`
67
+ `)},Ns=function(){var e=parseInt(document.body.getAttribute(At)||"0",10);return isFinite(e)?e:0},$p=function(){l.useEffect(function(){return document.body.setAttribute(At,(Ns()+1).toString()),function(){var e=Ns()-1;e<=0?document.body.removeAttribute(At):document.body.setAttribute(At,e.toString())}},[])},Lp=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;$p();var s=l.useMemo(function(){return Dp(o)},[o]);return l.createElement(Mp,{styles:Fp(s,!t,o,r?"":"!important")})},Mn=!1;if(typeof window<"u")try{var gr=Object.defineProperty({},"passive",{get:function(){return Mn=!0,!0}});window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Mn=!1}var Ct=Mn?{passive:!1}:!1,Vp=function(e){return e.tagName==="TEXTAREA"},Ka=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Vp(e)&&r[t]==="visible")},Bp=function(e){return Ka(e,"overflowY")},Wp=function(e){return Ka(e,"overflowX")},_s=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ya(e,n);if(o){var s=qa(e,n),a=s[1],i=s[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},zp=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Gp=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ya=function(e,t){return e==="v"?Bp(t):Wp(t)},qa=function(e,t){return e==="v"?zp(t):Gp(t)},Hp=function(e,t){return e==="h"&&t==="rtl"?-1:1},Up=function(e,t,r,n,o){var s=Hp(e,window.getComputedStyle(t).direction),a=s*n,i=r.target,c=t.contains(i),u=!1,f=a>0,p=0,g=0;do{if(!i)break;var v=qa(e,i),w=v[0],m=v[1],x=v[2],y=m-x-s*w;(w||y)&&Ya(e,i)&&(p+=y,g+=w);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},vr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Is=function(e){return[e.deltaX,e.deltaY]},Os=function(e){return e&&"current"in e?e.current:e},Kp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Yp=function(e){return`
68
68
  .block-interactivity-`.concat(e,` {pointer-events: none;}
69
69
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
70
- `)},ip=0,bt=[];function lp(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),o=c.useState(ip++)[0],a=c.useState(Ss)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Tf([e.lockRef.current],(e.shards||[]).map(ma),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=ar(m),x=r.current,C="deltaX"in m?m.deltaX:x[0]-y[0],S="deltaY"in m?m.deltaY:x[1]-y[1],E,_=m.target,P=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in m&&P==="h"&&_.type==="range")return!1;var R=fa(P,_);if(!R)return!0;if(R?E=P:(E=P==="v"?"h":"v",R=fa(P,_)),!R)return!1;if(!n.current&&"changedTouches"in m&&(C||S)&&(n.current=E),!E)return!0;var W=n.current||E;return op(W,b,m,W==="h"?C:S)},[]),l=c.useCallback(function(m){var b=m;if(!(!bt.length||bt[bt.length-1]!==a)){var y="deltaY"in b?pa(b):ar(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&ap(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(ma).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=C.length>0?i(b,C[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=c.useCallback(function(m,b,y,x){var C={name:m,delta:b,target:y,should:x,shadowParent:cp(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=c.useCallback(function(m){r.current=ar(m),n.current=void 0},[]),p=c.useCallback(function(m){u(m.type,pa(m),m.target,i(m,e.lockRef.current))},[]),v=c.useCallback(function(m){u(m.type,ar(m),m.target,i(m,e.lockRef.current))},[]);c.useEffect(function(){return bt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",l,ht),document.addEventListener("touchmove",l,ht),document.addEventListener("touchstart",d,ht),function(){bt=bt.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,ht),document.removeEventListener("touchmove",l,ht),document.removeEventListener("touchstart",d,ht)}},[]);var h=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(a,{styles:sp(o)}):null,h?c.createElement(Zf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const up=Lf(Cs,lp);var Or=c.forwardRef(function(e,t){return c.createElement(_r,De({},e,{ref:t,sideCar:up}))});Or.classNames=_r.classNames;var dp=[" ","Enter","ArrowUp","ArrowDown"],fp=[" ","Enter"],it="Select",[Nr,Ir,pp]=jn(it),[Ot,Bh]=ke(it,[pp,_t]),jr=_t(),[mp,Je]=Ot(it),[gp,vp]=Ot(it),ks=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:v,required:h,form:w}=e,m=jr(t),[b,y]=c.useState(null),[x,C]=c.useState(null),[S,E]=c.useState(!1),_=Er(u),[P,R]=Ee({prop:n,defaultProp:o??!1,onChange:a,caller:it}),[W,K]=Ee({prop:s,defaultProp:i,onChange:l,caller:it}),re=c.useRef(null),ee=b?w||!!b.closest("form"):!0,[Y,z]=c.useState(new Set),X=Array.from(Y).map(L=>L.props.value).join(";");return f.jsx(Hn,{...m,children:f.jsxs(mp,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:ve(),value:W,onValueChange:K,open:P,onOpenChange:R,dir:_,triggerPointerDownPosRef:re,disabled:v,children:[f.jsx(Nr.Provider,{scope:t,children:f.jsx(gp,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(L=>{z(q=>new Set(q).add(L))},[]),onNativeOptionRemove:c.useCallback(L=>{z(q=>{const A=new Set(q);return A.delete(L),A})},[]),children:r})}),ee?f.jsxs(Js,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:p,value:W,onChange:L=>K(L.target.value),disabled:v,form:w,children:[W===void 0?f.jsx("option",{value:""}):null,Array.from(Y)]},X):null]})})};ks.displayName=it;var As="SelectTrigger",Ts=c.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=jr(r),s=Je(As,r),i=s.disabled||n,l=ce(t,s.onTriggerChange),u=Ir(r),d=c.useRef("touch"),[p,v,h]=ei(m=>{const b=u().filter(C=>!C.disabled),y=b.find(C=>C.value===s.value),x=ti(b,m,y);x!==void 0&&s.onValueChange(x.value)}),w=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return f.jsx(Tr,{asChild:!0,...a,children:f.jsx(B.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Qs(s.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&w(m)}),onPointerDown:U(o.onPointerDown,m=>{d.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const b=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&v(m.key),!(b&&m.key===" ")&&dp.includes(m.key)&&(w(),m.preventDefault())})})})});Ts.displayName=As;var _s="SelectValue",Os=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,l=Je(_s,r),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,p=ce(t,l.onValueNodeChange);return he(()=>{u(d)},[u,d]),f.jsx(B.span,{...i,ref:p,style:{pointerEvents:"none"},children:Qs(l.value)?f.jsx(f.Fragment,{children:s}):a})});Os.displayName=_s;var hp="SelectIcon",Ns=c.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return f.jsx(B.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ns.displayName=hp;var bp="SelectPortal",Is=e=>f.jsx(Ht,{asChild:!0,...e});Is.displayName=bp;var lt="SelectContent",js=c.forwardRef((e,t)=>{const r=Je(lt,e.__scopeSelect),[n,o]=c.useState();if(he(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?wr.createPortal(f.jsx(Ds,{scope:e.__scopeSelect,children:f.jsx(Nr.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),a):null}return f.jsx(Ms,{...e,ref:t})});js.displayName=lt;var Te=10,[Ds,Qe]=Ot(lt),xp="SelectContentImpl",yp=at("SelectContent.RemoveScroll"),Ms=c.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:b,...y}=e,x=Je(lt,r),[C,S]=c.useState(null),[E,_]=c.useState(null),P=ce(t,O=>S(O)),[R,W]=c.useState(null),[K,re]=c.useState(null),ee=Ir(r),[Y,z]=c.useState(!1),X=c.useRef(!1);c.useEffect(()=>{if(C)return Yn(C)},[C]),Dn();const L=c.useCallback(O=>{const[G,...J]=ee().map(ne=>ne.ref.current),[Q]=J.slice(-1),se=document.activeElement;for(const ne of O)if(ne===se||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===G&&E&&(E.scrollTop=0),ne===Q&&E&&(E.scrollTop=E.scrollHeight),ne==null||ne.focus(),document.activeElement!==se))return},[ee,E]),q=c.useCallback(()=>L([R,C]),[L,R,C]);c.useEffect(()=>{Y&&q()},[Y,q]);const{onOpenChange:A,triggerPointerDownPosRef:ae}=x;c.useEffect(()=>{if(C){let O={x:0,y:0};const G=Q=>{var se,ne;O={x:Math.abs(Math.round(Q.pageX)-(((se=ae.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((ne=ae.current)==null?void 0:ne.y)??0))}},J=Q=>{O.x<=10&&O.y<=10?Q.preventDefault():C.contains(Q.target)||A(!1),document.removeEventListener("pointermove",G),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",J,{capture:!0})}}},[C,A,ae]),c.useEffect(()=>{const O=()=>A(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[A]);const[de,ge]=ei(O=>{const G=ee().filter(se=>!se.disabled),J=G.find(se=>se.ref.current===document.activeElement),Q=ti(G,O,J);Q&&setTimeout(()=>Q.ref.current.focus())}),k=c.useCallback((O,G,J)=>{const Q=!X.current&&!J;(x.value!==void 0&&x.value===G||Q)&&(W(O),Q&&(X.current=!0))},[x.value]),j=c.useCallback(()=>C==null?void 0:C.focus(),[C]),$=c.useCallback((O,G,J)=>{const Q=!X.current&&!J;(x.value!==void 0&&x.value===G||Q)&&re(O)},[x.value]),D=n==="popper"?wn:Fs,Z=D===wn?{side:i,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:b}:{};return f.jsx(Ds,{scope:r,content:C,viewport:E,onViewportChange:_,itemRefCallback:k,selectedItem:R,onItemLeave:j,itemTextRefCallback:$,focusSelectedItem:q,selectedItemText:K,position:n,isPositioned:Y,searchRef:de,children:f.jsx(Or,{as:yp,allowPinchZoom:!0,children:f.jsx(Rr,{asChild:!0,trapped:x.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:U(o,O=>{var G;(G=x.trigger)==null||G.focus({preventScroll:!0}),O.preventDefault()}),children:f.jsx(zt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:f.jsx(D,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:O=>O.preventDefault(),...y,...Z,onPlaced:()=>z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:U(y.onKeyDown,O=>{const G=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!G&&O.key.length===1&&ge(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let Q=ee().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(O.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const se=O.target,ne=Q.indexOf(se);Q=Q.slice(ne+1)}setTimeout(()=>L(Q)),O.preventDefault()}})})})})})})});Ms.displayName=xp;var wp="SelectItemAlignedPosition",Fs=c.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=Je(lt,r),s=Qe(lt,r),[i,l]=c.useState(null),[u,d]=c.useState(null),p=ce(t,P=>d(P)),v=Ir(r),h=c.useRef(!1),w=c.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=s,C=c.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&m&&b&&y){const P=a.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),W=a.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(a.dir!=="rtl"){const se=K.left-R.left,ne=W.left-se,be=P.left-ne,Re=P.width+be,je=Math.max(Re,R.width),Ae=window.innerWidth-Te,He=Ho(ne,[Te,Math.max(Te,Ae-je)]);i.style.minWidth=Re+"px",i.style.left=He+"px"}else{const se=R.right-K.right,ne=window.innerWidth-W.right-se,be=window.innerWidth-P.right-ne,Re=P.width+be,je=Math.max(Re,R.width),Ae=window.innerWidth-Te,He=Ho(ne,[Te,Math.max(Te,Ae-je)]);i.style.minWidth=Re+"px",i.style.right=He+"px"}const re=v(),ee=window.innerHeight-Te*2,Y=m.scrollHeight,z=window.getComputedStyle(u),X=parseInt(z.borderTopWidth,10),L=parseInt(z.paddingTop,10),q=parseInt(z.borderBottomWidth,10),A=parseInt(z.paddingBottom,10),ae=X+L+Y+A+q,de=Math.min(b.offsetHeight*5,ae),ge=window.getComputedStyle(m),k=parseInt(ge.paddingTop,10),j=parseInt(ge.paddingBottom,10),$=P.top+P.height/2-Te,D=ee-$,Z=b.offsetHeight/2,O=b.offsetTop+Z,G=X+L+O,J=ae-G;if(G<=$){const se=re.length>0&&b===re[re.length-1].ref.current;i.style.bottom="0px";const ne=u.clientHeight-m.offsetTop-m.offsetHeight,be=Math.max(D,Z+(se?j:0)+ne+q),Re=G+be;i.style.height=Re+"px"}else{const se=re.length>0&&b===re[0].ref.current;i.style.top="0px";const be=Math.max($,X+m.offsetTop+(se?k:0)+Z)+J;i.style.height=be+"px",m.scrollTop=G-$+m.offsetTop}i.style.margin=`${Te}px 0`,i.style.minHeight=de+"px",i.style.maxHeight=ee+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[v,a.trigger,a.valueNode,i,u,m,b,y,a.dir,n]);he(()=>C(),[C]);const[S,E]=c.useState();he(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=c.useCallback(P=>{P&&w.current===!0&&(C(),x==null||x(),w.current=!1)},[C,x]);return f.jsx(Sp,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:_,children:f.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:f.jsx(B.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Fs.displayName=wp;var Cp="SelectPopperPosition",wn=c.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Te,...a}=e,s=jr(r);return f.jsx(Un,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});wn.displayName=Cp;var[Sp,qn]=Ot(lt,{}),Cn="SelectViewport",Ls=c.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Qe(Cn,r),s=qn(Cn,r),i=ce(t,a.onViewportChange),l=c.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),f.jsx(Nr.Slot,{scope:r,children:f.jsx(B.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&p){const h=Math.abs(l.current-d.scrollTop);if(h>0){const w=window.innerHeight-Te*2,m=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),y=Math.max(m,b);if(y<w){const x=y+h,C=Math.min(w,x),S=x-C;p.style.height=C+"px",p.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Ls.displayName=Cn;var $s="SelectGroup",[Ep,Rp]=Ot($s),Vs=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ve();return f.jsx(Ep,{scope:r,id:o,children:f.jsx(B.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Vs.displayName=$s;var Bs="SelectLabel",Ws=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Rp(Bs,r);return f.jsx(B.div,{id:o.id,...n,ref:t})});Ws.displayName=Bs;var mr="SelectItem",[Pp,zs]=Ot(mr),Gs=c.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=Je(mr,r),l=Qe(mr,r),u=i.value===n,[d,p]=c.useState(a??""),[v,h]=c.useState(!1),w=ce(t,x=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,x,n,o)}),m=ve(),b=c.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(Pp,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:c.useCallback(x=>{p(C=>C||((x==null?void 0:x.textContent)??"").trim())},[]),children:f.jsx(Nr.ItemSlot,{scope:r,value:n,disabled:o,textValue:d,children:f.jsx(B.div,{role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:U(s.onFocus,()=>h(!0)),onBlur:U(s.onBlur,()=>h(!1)),onClick:U(s.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:U(s.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:U(s.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:U(s.onPointerMove,x=>{var C;b.current=x.pointerType,o?(C=l.onItemLeave)==null||C.call(l):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(s.onPointerLeave,x=>{var C;x.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:U(s.onKeyDown,x=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(fp.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Gs.displayName=mr;var Lt="SelectItemText",Hs=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=Je(Lt,r),i=Qe(Lt,r),l=zs(Lt,r),u=vp(Lt,r),[d,p]=c.useState(null),v=ce(t,y=>p(y),l.onItemTextChange,y=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,y,l.value,l.disabled)}),h=d==null?void 0:d.textContent,w=c.useMemo(()=>f.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=u;return he(()=>(m(w),()=>b(w)),[m,b,w]),f.jsxs(f.Fragment,{children:[f.jsx(B.span,{id:l.textId,...a,ref:v}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?wr.createPortal(a.children,s.valueNode):null]})});Hs.displayName=Lt;var Us="SelectItemIndicator",Ks=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return zs(Us,r).isSelected?f.jsx(B.span,{"aria-hidden":!0,...n,ref:t}):null});Ks.displayName=Us;var Sn="SelectScrollUpButton",Ys=c.forwardRef((e,t)=>{const r=Qe(Sn,e.__scopeSelect),n=qn(Sn,e.__scopeSelect),[o,a]=c.useState(!1),s=ce(t,n.onScrollButtonChange);return he(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=l.scrollTop>0;a(u)};const l=r.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?f.jsx(Xs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=r;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});Ys.displayName=Sn;var En="SelectScrollDownButton",qs=c.forwardRef((e,t)=>{const r=Qe(En,e.__scopeSelect),n=qn(En,e.__scopeSelect),[o,a]=c.useState(!1),s=ce(t,n.onScrollButtonChange);return he(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;a(d)};const l=r.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?f.jsx(Xs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=r;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});qs.displayName=En;var Xs=c.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Qe("SelectScrollButton",r),s=c.useRef(null),i=Ir(r),l=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),he(()=>{var d;const u=i().find(p=>p.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[i]),f.jsx(B.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:U(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),kp="SelectSeparator",Zs=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return f.jsx(B.div,{"aria-hidden":!0,...n,ref:t})});Zs.displayName=kp;var Rn="SelectArrow",Ap=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=jr(r),a=Je(Rn,r),s=Qe(Rn,r);return a.open&&s.position==="popper"?f.jsx(Kn,{...o,...n,ref:t}):null});Ap.displayName=Rn;var Tp="SelectBubbleInput",Js=c.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=c.useRef(null),a=ce(n,o),s=vs(t);return c.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&d){const p=new Event("change",{bubbles:!0});d.call(i,t),i.dispatchEvent(p)}},[s,t]),f.jsx(B.select,{...r,style:{...hs,...r.style},ref:a,defaultValue:t})});Js.displayName=Tp;function Qs(e){return e===""||e===void 0}function ei(e){const t=Ye(e),r=c.useRef(""),n=c.useRef(0),o=c.useCallback(s=>{const i=r.current+s;t(i),(function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(i)},[t]),a=c.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ti(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=_p(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function _p(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Op=ks,ri=Ts,Np=Os,Ip=Ns,jp=Is,ni=js,Dp=Ls,Mp=Vs,oi=Ws,ai=Gs,Fp=Hs,Lp=Ks,si=Ys,ii=qs,li=Zs;/**
70
+ `)},qp=0,St=[];function Xp(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(qp++)[0],s=l.useState(Ua)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=hp([e.lockRef.current],(e.shards||[]).map(Os),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=vr(m),h=r.current,C="deltaX"in m?m.deltaX:h[0]-y[0],S="deltaY"in m?m.deltaY:h[1]-y[1],k,N=m.target,_=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in m&&_==="h"&&N.type==="range")return!1;var T=_s(_,N);if(!T)return!0;if(T?k=_:(k=_==="v"?"h":"v",T=_s(_,N)),!T)return!1;if(!n.current&&"changedTouches"in m&&(C||S)&&(n.current=k),!k)return!0;var H=n.current||k;return Up(H,x,m,H==="h"?C:S)},[]),c=l.useCallback(function(m){var x=m;if(!(!St.length||St[St.length-1]!==s)){var y="deltaY"in x?Is(x):vr(x),h=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Kp(k.delta,y)})[0];if(h&&h.should){x.cancelable&&x.preventDefault();return}if(!h){var C=(a.current.shards||[]).map(Os).filter(Boolean).filter(function(k){return k.contains(x.target)}),S=C.length>0?i(x,C[0]):!a.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,h){var C={name:m,delta:x,target:y,should:h,shadowParent:Zp(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),f=l.useCallback(function(m){r.current=vr(m),n.current=void 0},[]),p=l.useCallback(function(m){u(m.type,Is(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,vr(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return St.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ct),document.addEventListener("touchmove",c,Ct),document.addEventListener("touchstart",f,Ct),function(){St=St.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Ct),document.removeEventListener("touchmove",c,Ct),document.removeEventListener("touchstart",f,Ct)}},[]);var v=e.removeScrollBar,w=e.inert;return l.createElement(l.Fragment,null,w?l.createElement(s,{styles:Yp(o)}):null,v?l.createElement(Lp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Jp=Rp(Ha,Xp);var Hr=l.forwardRef(function(e,t){return l.createElement(Gr,$e({},e,{ref:t,sideCar:Jp}))});Hr.classNames=Gr.classNames;var Qp=[" ","Enter","ArrowUp","ArrowDown"],em=[" ","Enter"],ft="Select",[Ur,Kr,tm]=Xn(ft),[$t,Lb]=ke(ft,[tm,Ft]),Yr=Ft(),[rm,nt]=$t(ft),[nm,om]=$t(ft),Xa=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:g,required:v,form:w}=e,m=Yr(t),[x,y]=l.useState(null),[h,C]=l.useState(null),[S,k]=l.useState(!1),N=Fr(u),[_,T]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:ft}),[H,K]=Ee({prop:a,defaultProp:i,onChange:c,caller:ft}),ee=l.useRef(null),J=x?w||!!x.closest("form"):!0,[Y,z]=l.useState(new Set),j=Array.from(Y).map(A=>A.props.value).join(";");return d.jsx(ao,{...m,children:d.jsxs(rm,{required:v,scope:t,trigger:x,onTriggerChange:y,valueNode:h,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:ve(),value:H,onValueChange:K,open:_,onOpenChange:T,dir:N,triggerPointerDownPosRef:ee,disabled:g,children:[d.jsx(Ur.Provider,{scope:t,children:d.jsx(nm,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(A=>{z(D=>new Set(D).add(A))},[]),onNativeOptionRemove:l.useCallback(A=>{z(D=>{const E=new Set(D);return E.delete(A),E})},[]),children:r})}),J?d.jsxs(wi,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:H,onChange:A=>K(A.target.value),disabled:g,form:w,children:[H===void 0?d.jsx("option",{value:""}):null,Array.from(Y)]},j):null]})})};Xa.displayName=ft;var Za="SelectTrigger",Ja=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,s=Yr(r),a=nt(Za,r),i=a.disabled||n,c=de(t,a.onTriggerChange),u=Kr(r),f=l.useRef("touch"),[p,g,v]=Si(m=>{const x=u().filter(C=>!C.disabled),y=x.find(C=>C.value===a.value),h=Ei(x,m,y);h!==void 0&&a.onValueChange(h.value)}),w=m=>{i||(a.onOpenChange(!0),v()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return d.jsx(zr,{asChild:!0,...s,children:d.jsx(U.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ci(a.value)?"":void 0,...o,ref:c,onClick:Z(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&w(m)}),onPointerDown:Z(o.onPointerDown,m=>{f.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:Z(o.onKeyDown,m=>{const x=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Qp.includes(m.key)&&(w(),m.preventDefault())})})})});Ja.displayName=Za;var Qa="SelectValue",ei=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:s,placeholder:a="",...i}=e,c=nt(Qa,r),{onValueNodeHasChildrenChange:u}=c,f=s!==void 0,p=de(t,c.onValueNodeChange);return he(()=>{u(f)},[u,f]),d.jsx(U.span,{...i,ref:p,style:{pointerEvents:"none"},children:Ci(c.value)?d.jsx(d.Fragment,{children:a}):s})});ei.displayName=Qa;var sm="SelectIcon",ti=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return d.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});ti.displayName=sm;var am="SelectPortal",ri=e=>d.jsx(tr,{asChild:!0,...e});ri.displayName=am;var pt="SelectContent",ni=l.forwardRef((e,t)=>{const r=nt(pt,e.__scopeSelect),[n,o]=l.useState();if(he(()=>{o(new DocumentFragment)},[]),!r.open){const s=n;return s?jr.createPortal(d.jsx(oi,{scope:e.__scopeSelect,children:d.jsx(Ur.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),s):null}return d.jsx(si,{...e,ref:t})});ni.displayName=pt;var Ae=10,[oi,ot]=$t(pt),im="SelectContentImpl",cm=ut("SelectContent.RemoveScroll"),si=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:v,sticky:w,hideWhenDetached:m,avoidCollisions:x,...y}=e,h=nt(pt,r),[C,S]=l.useState(null),[k,N]=l.useState(null),_=de(t,O=>S(O)),[T,H]=l.useState(null),[K,ee]=l.useState(null),J=Kr(r),[Y,z]=l.useState(!1),j=l.useRef(!1);l.useEffect(()=>{if(C)return lo(C)},[C]),Zn();const A=l.useCallback(O=>{const[q,...te]=J().map(se=>se.ref.current),[re]=te.slice(-1),ie=document.activeElement;for(const se of O)if(se===ie||(se==null||se.scrollIntoView({block:"nearest"}),se===q&&k&&(k.scrollTop=0),se===re&&k&&(k.scrollTop=k.scrollHeight),se==null||se.focus(),document.activeElement!==ie))return},[J,k]),D=l.useCallback(()=>A([T,C]),[A,T,C]);l.useEffect(()=>{Y&&D()},[Y,D]);const{onOpenChange:E,triggerPointerDownPosRef:G}=h;l.useEffect(()=>{if(C){let O={x:0,y:0};const q=re=>{var ie,se;O={x:Math.abs(Math.round(re.pageX)-(((ie=G.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(re.pageY)-(((se=G.current)==null?void 0:se.y)??0))}},te=re=>{O.x<=10&&O.y<=10?re.preventDefault():C.contains(re.target)||E(!1),document.removeEventListener("pointermove",q),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",te,{capture:!0})}}},[C,E,G]),l.useEffect(()=>{const O=()=>E(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[E]);const[oe,le]=Si(O=>{const q=J().filter(ie=>!ie.disabled),te=q.find(ie=>ie.ref.current===document.activeElement),re=Ei(q,O,te);re&&setTimeout(()=>re.ref.current.focus())}),R=l.useCallback((O,q,te)=>{const re=!j.current&&!te;(h.value!==void 0&&h.value===q||re)&&(H(O),re&&(j.current=!0))},[h.value]),F=l.useCallback(()=>C==null?void 0:C.focus(),[C]),W=l.useCallback((O,q,te)=>{const re=!j.current&&!te;(h.value!==void 0&&h.value===q||re)&&ee(O)},[h.value]),L=n==="popper"?Fn:ai,Q=L===Fn?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:v,sticky:w,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(oi,{scope:r,content:C,viewport:k,onViewportChange:N,itemRefCallback:R,selectedItem:T,onItemLeave:F,itemTextRefCallback:W,focusSelectedItem:D,selectedItemText:K,position:n,isPositioned:Y,searchRef:oe,children:d.jsx(Hr,{as:cm,allowPinchZoom:!0,children:d.jsx($r,{asChild:!0,trapped:h.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:Z(o,O=>{var q;(q=h.trigger)==null||q.focus({preventScroll:!0}),O.preventDefault()}),children:d.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:d.jsx(L,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:O=>O.preventDefault(),...y,...Q,onPlaced:()=>z(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,O=>{const q=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!q&&O.key.length===1&&le(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let re=J().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(O.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const ie=O.target,se=re.indexOf(ie);re=re.slice(se+1)}setTimeout(()=>A(re)),O.preventDefault()}})})})})})})});si.displayName=im;var lm="SelectItemAlignedPosition",ai=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,s=nt(pt,r),a=ot(pt,r),[i,c]=l.useState(null),[u,f]=l.useState(null),p=de(t,_=>f(_)),g=Kr(r),v=l.useRef(!1),w=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:h}=a,C=l.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&u&&m&&x&&y){const _=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),H=s.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(s.dir!=="rtl"){const ie=K.left-T.left,se=H.left-ie,xe=_.left-se,Pe=_.width+xe,De=Math.max(Pe,T.width),Te=window.innerWidth-Ae,Xe=ls(se,[Ae,Math.max(Ae,Te-De)]);i.style.minWidth=Pe+"px",i.style.left=Xe+"px"}else{const ie=T.right-K.right,se=window.innerWidth-H.right-ie,xe=window.innerWidth-_.right-se,Pe=_.width+xe,De=Math.max(Pe,T.width),Te=window.innerWidth-Ae,Xe=ls(se,[Ae,Math.max(Ae,Te-De)]);i.style.minWidth=Pe+"px",i.style.right=Xe+"px"}const ee=g(),J=window.innerHeight-Ae*2,Y=m.scrollHeight,z=window.getComputedStyle(u),j=parseInt(z.borderTopWidth,10),A=parseInt(z.paddingTop,10),D=parseInt(z.borderBottomWidth,10),E=parseInt(z.paddingBottom,10),G=j+A+Y+E+D,oe=Math.min(x.offsetHeight*5,G),le=window.getComputedStyle(m),R=parseInt(le.paddingTop,10),F=parseInt(le.paddingBottom,10),W=_.top+_.height/2-Ae,L=J-W,Q=x.offsetHeight/2,O=x.offsetTop+Q,q=j+A+O,te=G-q;if(q<=W){const ie=ee.length>0&&x===ee[ee.length-1].ref.current;i.style.bottom="0px";const se=u.clientHeight-m.offsetTop-m.offsetHeight,xe=Math.max(L,Q+(ie?F:0)+se+D),Pe=q+xe;i.style.height=Pe+"px"}else{const ie=ee.length>0&&x===ee[0].ref.current;i.style.top="0px";const xe=Math.max(W,j+m.offsetTop+(ie?R:0)+Q)+te;i.style.height=xe+"px",m.scrollTop=q-W+m.offsetTop}i.style.margin=`${Ae}px 0`,i.style.minHeight=oe+"px",i.style.maxHeight=J+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[g,s.trigger,s.valueNode,i,u,m,x,y,s.dir,n]);he(()=>C(),[C]);const[S,k]=l.useState();he(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(_=>{_&&w.current===!0&&(C(),h==null||h(),w.current=!1)},[C,h]);return d.jsx(dm,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:v,onScrollButtonChange:N,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:d.jsx(U.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ai.displayName=lm;var um="SelectPopperPosition",Fn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ae,...s}=e,a=Yr(r);return d.jsx(io,{...a,...s,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Fn.displayName=um;var[dm,uo]=$t(pt,{}),$n="SelectViewport",ii=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,s=ot($n,r),a=uo($n,r),i=de(t,s.onViewportChange),c=l.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(Ur.Slot,{scope:r,children:d.jsx(U.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&p){const v=Math.abs(c.current-f.scrollTop);if(v>0){const w=window.innerHeight-Ae*2,m=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(m,x);if(y<w){const h=y+v,C=Math.min(w,h),S=h-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});ii.displayName=$n;var ci="SelectGroup",[fm,pm]=$t(ci),li=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ve();return d.jsx(fm,{scope:r,id:o,children:d.jsx(U.div,{role:"group","aria-labelledby":o,...n,ref:t})})});li.displayName=ci;var ui="SelectLabel",di=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=pm(ui,r);return d.jsx(U.div,{id:o.id,...n,ref:t})});di.displayName=ui;var Rr="SelectItem",[mm,fi]=$t(Rr),pi=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,...a}=e,i=nt(Rr,r),c=ot(Rr,r),u=i.value===n,[f,p]=l.useState(s??""),[g,v]=l.useState(!1),w=de(t,h=>{var C;return(C=c.itemRefCallback)==null?void 0:C.call(c,h,n,o)}),m=ve(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(mm,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(h=>{p(C=>C||((h==null?void 0:h.textContent)??"").trim())},[]),children:d.jsx(Ur.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:d.jsx(U.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:w,onFocus:Z(a.onFocus,()=>v(!0)),onBlur:Z(a.onBlur,()=>v(!1)),onClick:Z(a.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:Z(a.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:Z(a.onPointerDown,h=>{x.current=h.pointerType}),onPointerMove:Z(a.onPointerMove,h=>{var C;x.current=h.pointerType,o?(C=c.onItemLeave)==null||C.call(c):x.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(a.onPointerLeave,h=>{var C;h.currentTarget===document.activeElement&&((C=c.onItemLeave)==null||C.call(c))}),onKeyDown:Z(a.onKeyDown,h=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&h.key===" "||(em.includes(h.key)&&y(),h.key===" "&&h.preventDefault())})})})})});pi.displayName=Rr;var Ht="SelectItemText",mi=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...s}=e,a=nt(Ht,r),i=ot(Ht,r),c=fi(Ht,r),u=om(Ht,r),[f,p]=l.useState(null),g=de(t,y=>p(y),c.onItemTextChange,y=>{var h;return(h=i.itemTextRefCallback)==null?void 0:h.call(i,y,c.value,c.disabled)}),v=f==null?void 0:f.textContent,w=l.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return he(()=>(m(w),()=>x(w)),[m,x,w]),d.jsxs(d.Fragment,{children:[d.jsx(U.span,{id:c.textId,...s,ref:g}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?jr.createPortal(s.children,a.valueNode):null]})});mi.displayName=Ht;var gi="SelectItemIndicator",vi=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return fi(gi,r).isSelected?d.jsx(U.span,{"aria-hidden":!0,...n,ref:t}):null});vi.displayName=gi;var Ln="SelectScrollUpButton",hi=l.forwardRef((e,t)=>{const r=ot(Ln,e.__scopeSelect),n=uo(Ln,e.__scopeSelect),[o,s]=l.useState(!1),a=de(t,n.onScrollButtonChange);return he(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollTop>0;s(u)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(bi,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});hi.displayName=Ln;var Vn="SelectScrollDownButton",xi=l.forwardRef((e,t)=>{const r=ot(Vn,e.__scopeSelect),n=uo(Vn,e.__scopeSelect),[o,s]=l.useState(!1),a=de(t,n.onScrollButtonChange);return he(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;s(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(bi,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});xi.displayName=Vn;var bi=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,s=ot("SelectScrollButton",r),a=l.useRef(null),i=Kr(r),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),he(()=>{var f;const u=i().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),d.jsx(U.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),gm="SelectSeparator",yi=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return d.jsx(U.div,{"aria-hidden":!0,...n,ref:t})});yi.displayName=gm;var Bn="SelectArrow",vm=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Yr(r),s=nt(Bn,r),a=ot(Bn,r);return s.open&&a.position==="popper"?d.jsx(co,{...o,...n,ref:t}):null});vm.displayName=Bn;var hm="SelectBubbleInput",wi=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),s=de(n,o),a=La(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[a,t]),d.jsx(U.select,{...r,style:{...Va,...r.style},ref:s,defaultValue:t})});wi.displayName=hm;function Ci(e){return e===""||e===void 0}function Si(e){const t=Qe(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(a=>{const i=r.current+a;t(i),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(i)},[t]),s=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,s]}function Ei(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let a=xm(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==r));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function xm(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var bm=Xa,Pi=Ja,ym=ei,wm=ti,Cm=ri,Ri=ni,Sm=ii,Em=li,ki=di,Ti=pi,Pm=mi,Rm=vi,Ai=hi,Ni=xi,_i=yi;/**
71
71
  * @license lucide-react v0.525.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const $p=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ga=e=>{const t=Vp(e);return t.charAt(0).toUpperCase()+t.slice(1)},ci=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Bp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
75
+ */const km=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),js=e=>{const t=Tm(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ii=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Am=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
76
76
  * @license lucide-react v0.525.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */var Wp={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"};/**
80
+ */var Nm={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"};/**
81
81
  * @license lucide-react v0.525.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const zp=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},l)=>N.createElement("svg",{ref:l,...Wp,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ci("lucide",o),...!a&&!Bp(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>N.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
85
+ */const _m=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:a,...i},c)=>P.createElement("svg",{ref:c,...Nm,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Ii("lucide",o),...!s&&!Am(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>P.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
86
86
  * @license lucide-react v0.525.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const Nt=(e,t)=>{const r=N.forwardRef(({className:n,...o},a)=>N.createElement(zp,{ref:a,iconNode:t,className:ci(`lucide-${$p(ga(e))}`,`lucide-${e}`,n),...o}));return r.displayName=ga(e),r};/**
90
+ */const Lt=(e,t)=>{const r=P.forwardRef(({className:n,...o},s)=>P.createElement(_m,{ref:s,iconNode:t,className:Ii(`lucide-${km(js(e))}`,`lucide-${e}`,n),...o}));return r.displayName=js(e),r};/**
91
91
  * @license lucide-react v0.525.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const Gp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ui=Nt("check",Gp);/**
95
+ */const Im=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oi=Lt("check",Im);/**
96
96
  * @license lucide-react v0.525.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const Hp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xn=Nt("chevron-down",Hp);/**
100
+ */const Om=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fo=Lt("chevron-down",Om);/**
101
101
  * @license lucide-react v0.525.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const Up=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Kp=Nt("chevron-up",Up);/**
105
+ */const jm=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Dm=Lt("chevron-up",jm);/**
106
106
  * @license lucide-react v0.525.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const Yp=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],qp=Nt("chevrons-up-down",Yp);/**
110
+ */const Mm=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Fm=Lt("chevrons-up-down",Mm);/**
111
111
  * @license lucide-react v0.525.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const Xp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Zp=Nt("search",Xp);/**
115
+ */const $m=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Lm=Lt("search",$m);/**
116
116
  * @license lucide-react v0.525.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const Jp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qp=Nt("x",Jp),di=Op,em=Mp,fi=Np,Zn=c.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(ri,{ref:n,className:V(V("flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-mutted-700 border-purple-mutted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-mutted-300 md:text-sm ","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e)),...r,children:[t,f.jsx(Ip,{asChild:!0,children:f.jsx(Xn,{className:"h-4 w-4 text-purple-mutted-300"})})]}));Zn.displayName=ri.displayName;const Jn=c.forwardRef(({className:e,...t},r)=>f.jsx(si,{ref:r,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(Kp,{className:"h-4 w-4"})}));Jn.displayName=si.displayName;const Qn=c.forwardRef(({className:e,...t},r)=>f.jsx(ii,{ref:r,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(Xn,{className:"h-4 w-4"})}));Qn.displayName=ii.displayName;const eo=c.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>f.jsx(jp,{children:f.jsxs(ni,{ref:o,className:V("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[f.jsx(Jn,{}),f.jsx(Dp,{className:V("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),f.jsx(Qn,{})]})}));eo.displayName=ni.displayName;const pi=c.forwardRef(({className:e,...t},r)=>f.jsx(oi,{ref:r,className:V("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));pi.displayName=oi.displayName;const to=c.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(ai,{ref:n,className:V(V("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-mutted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),e),...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(Lp,{children:f.jsx(ui,{className:"h-4 w-4"})})}),f.jsx(Fp,{children:t})]}));to.displayName=ai.displayName;const mi=c.forwardRef(({className:e,...t},r)=>f.jsx(li,{ref:r,className:V("-mx-1 my-1 h-px bg-muted",e),...t}));mi.displayName=li.displayName;var va=1,tm=.9,rm=.8,nm=.17,ln=.1,cn=.999,om=.9999,am=.99,sm=/[\\\/_+.#"@\[\(\{&]/,im=/[\\\/_+.#"@\[\(\{&]/g,lm=/[\s-]/,gi=/[\s-]/g;function Pn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?va:am;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=n.charAt(a),u=r.indexOf(l,o),d=0,p,v,h,w;u>=0;)p=Pn(e,t,r,n,u+1,a+1,s),p>d&&(u===o?p*=va:sm.test(e.charAt(u-1))?(p*=rm,h=e.slice(o,u-1).match(im),h&&o>0&&(p*=Math.pow(cn,h.length))):lm.test(e.charAt(u-1))?(p*=tm,w=e.slice(o,u-1).match(gi),w&&o>0&&(p*=Math.pow(cn,w.length))):(p*=nm,o>0&&(p*=Math.pow(cn,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=om)),(p<ln&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(v=Pn(e,t,r,n,u+1,a+2,s),v*ln>p&&(p=v*ln)),p>d&&(d=p),u=r.indexOf(l,u+1);return s[i]=d,d}function ha(e){return e.toLowerCase().replace(gi," ")}function cm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Pn(e,t,ha(e),ha(t),0,0,{})}function um(e,t){return c.useReducer((r,n)=>t[r][n]??r,e)}var Ge=e=>{const{present:t,children:r}=e,n=dm(t),o=typeof r=="function"?r({present:n.isPresent}):c.Children.only(r),a=ce(n.ref,fm(o));return typeof r=="function"||n.isPresent?c.cloneElement(o,{ref:a}):null};Ge.displayName="Presence";function dm(e){const[t,r]=c.useState(),n=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),s=e?"mounted":"unmounted",[i,l]=um(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=sr(n.current);a.current=i==="mounted"?u:"none"},[i]),he(()=>{const u=n.current,d=o.current;if(d!==e){const v=a.current,h=sr(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),he(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=h=>{const m=sr(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},v=h=>{h.target===t&&(a.current=sr(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function sr(e){return(e==null?void 0:e.animationName)||"none"}function fm(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dr="Dialog",[vi,Wh]=ke(Dr),[pm,Ne]=vi(Dr),hi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=c.useRef(null),l=c.useRef(null),[u,d]=Ee({prop:n,defaultProp:o??!1,onChange:a,caller:Dr});return f.jsx(pm,{scope:t,triggerRef:i,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(p=>!p),[d]),modal:s,children:r})};hi.displayName=Dr;var bi="DialogTrigger",xi=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ne(bi,r),a=ce(t,o.triggerRef);return f.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":oo(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)})});xi.displayName=bi;var ro="DialogPortal",[mm,yi]=vi(ro,{forceMount:void 0}),wi=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Ne(ro,t);return f.jsx(mm,{scope:t,forceMount:r,children:c.Children.map(n,s=>f.jsx(Ge,{present:r||a.open,children:f.jsx(Ht,{asChild:!0,container:o,children:s})}))})};wi.displayName=ro;var gr="DialogOverlay",Ci=c.forwardRef((e,t)=>{const r=yi(gr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ne(gr,e.__scopeDialog);return a.modal?f.jsx(Ge,{present:n||a.open,children:f.jsx(vm,{...o,ref:t})}):null});Ci.displayName=gr;var gm=at("DialogOverlay.RemoveScroll"),vm=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ne(gr,r);return f.jsx(Or,{as:gm,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(B.div,{"data-state":oo(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ct="DialogContent",Si=c.forwardRef((e,t)=>{const r=yi(ct,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ne(ct,e.__scopeDialog);return f.jsx(Ge,{present:n||a.open,children:a.modal?f.jsx(hm,{...o,ref:t}):f.jsx(bm,{...o,ref:t})})});Si.displayName=ct;var hm=c.forwardRef((e,t)=>{const r=Ne(ct,e.__scopeDialog),n=c.useRef(null),o=ce(t,r.contentRef,n);return c.useEffect(()=>{const a=n.current;if(a)return Yn(a)},[]),f.jsx(Ei,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault())})}),bm=c.forwardRef((e,t)=>{const r=Ne(ct,e.__scopeDialog),n=c.useRef(!1),o=c.useRef(!1);return f.jsx(Ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ei=c.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=Ne(ct,r),l=c.useRef(null),u=ce(t,l);return Dn(),f.jsxs(f.Fragment,{children:[f.jsx(Rr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(zt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":oo(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(xm,{titleId:i.titleId}),f.jsx(wm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),no="DialogTitle",Ri=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ne(no,r);return f.jsx(B.h2,{id:o.titleId,...n,ref:t})});Ri.displayName=no;var Pi="DialogDescription",ki=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ne(Pi,r);return f.jsx(B.p,{id:o.descriptionId,...n,ref:t})});ki.displayName=Pi;var Ai="DialogClose",Ti=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ne(Ai,r);return f.jsx(B.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});Ti.displayName=Ai;function oo(e){return e?"open":"closed"}var _i="DialogTitleWarning",[zh,Oi]=Au(_i,{contentName:ct,titleName:no,docsSlug:"dialog"}),xm=({titleId:e})=>{const t=Oi(_i),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
120
+ */const Vm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bm=Lt("x",Vm),ji=bm,Wm=Em,Di=ym,po=l.forwardRef(({className:e,children:t,...r},n)=>d.jsxs(Pi,{ref:n,className:$($("flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-mutted-700 border-purple-mutted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-mutted-300 md:text-sm ","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e)),...r,children:[t,d.jsx(wm,{asChild:!0,children:d.jsx(fo,{className:"h-4 w-4 text-purple-mutted-300"})})]}));po.displayName=Pi.displayName;const mo=l.forwardRef(({className:e,...t},r)=>d.jsx(Ai,{ref:r,className:$("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Dm,{className:"h-4 w-4"})}));mo.displayName=Ai.displayName;const go=l.forwardRef(({className:e,...t},r)=>d.jsx(Ni,{ref:r,className:$("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(fo,{className:"h-4 w-4"})}));go.displayName=Ni.displayName;const vo=l.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>d.jsx(Cm,{children:d.jsxs(Ri,{ref:o,className:$("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[d.jsx(mo,{}),d.jsx(Sm,{className:$("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(go,{})]})}));vo.displayName=Ri.displayName;const Mi=l.forwardRef(({className:e,...t},r)=>d.jsx(ki,{ref:r,className:$("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Mi.displayName=ki.displayName;const ho=l.forwardRef(({className:e,children:t,...r},n)=>d.jsxs(Ti,{ref:n,className:$($("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-mutted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),e),...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Rm,{children:d.jsx(Oi,{className:"h-4 w-4"})})}),d.jsx(Pm,{children:t})]}));ho.displayName=Ti.displayName;const Fi=l.forwardRef(({className:e,...t},r)=>d.jsx(_i,{ref:r,className:$("-mx-1 my-1 h-px bg-muted",e),...t}));Fi.displayName=_i.displayName;var Ds=1,zm=.9,Gm=.8,Hm=.17,Cn=.1,Sn=.999,Um=.9999,Km=.99,Ym=/[\\\/_+.#"@\[\(\{&]/,qm=/[\\\/_+.#"@\[\(\{&]/g,Xm=/[\s-]/,$i=/[\s-]/g;function Wn(e,t,r,n,o,s,a){if(s===t.length)return o===e.length?Ds:Km;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var c=n.charAt(s),u=r.indexOf(c,o),f=0,p,g,v,w;u>=0;)p=Wn(e,t,r,n,u+1,s+1,a),p>f&&(u===o?p*=Ds:Ym.test(e.charAt(u-1))?(p*=Gm,v=e.slice(o,u-1).match(qm),v&&o>0&&(p*=Math.pow(Sn,v.length))):Xm.test(e.charAt(u-1))?(p*=zm,w=e.slice(o,u-1).match($i),w&&o>0&&(p*=Math.pow(Sn,w.length))):(p*=Hm,o>0&&(p*=Math.pow(Sn,u-o))),e.charAt(u)!==t.charAt(s)&&(p*=Um)),(p<Cn&&r.charAt(u-1)===n.charAt(s+1)||n.charAt(s+1)===n.charAt(s)&&r.charAt(u-1)!==n.charAt(s))&&(g=Wn(e,t,r,n,u+1,s+2,a),g*Cn>p&&(p=g*Cn)),p>f&&(f=p),u=r.indexOf(c,u+1);return a[i]=f,f}function Ms(e){return e.toLowerCase().replace($i," ")}function Zm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Wn(e,t,Ms(e),Ms(t),0,0,{})}function Jm(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ye=e=>{const{present:t,children:r}=e,n=Qm(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),s=de(n.ref,eg(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:s}):null};Ye.displayName="Presence";function Qm(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=Jm(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=hr(n.current);s.current=i==="mounted"?u:"none"},[i]),he(()=>{const u=n.current,f=o.current;if(f!==e){const g=s.current,v=hr(u);e?c("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),he(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=v=>{const m=hr(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=v=>{v.target===t&&(s.current=hr(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function hr(e){return(e==null?void 0:e.animationName)||"none"}function eg(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qr="Dialog",[Li,Vb]=ke(qr),[tg,Ie]=Li(qr),Vi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,f]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:qr});return d.jsx(tg,{scope:t,triggerRef:i,contentRef:c,contentId:ve(),titleId:ve(),descriptionId:ve(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:r})};Vi.displayName=qr;var Bi="DialogTrigger",Wi=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Bi,r),s=de(t,o.triggerRef);return d.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yo(o.open),...n,ref:s,onClick:Z(e.onClick,o.onOpenToggle)})});Wi.displayName=Bi;var xo="DialogPortal",[rg,zi]=Li(xo,{forceMount:void 0}),Gi=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=Ie(xo,t);return d.jsx(rg,{scope:t,forceMount:r,children:l.Children.map(n,a=>d.jsx(Ye,{present:r||s.open,children:d.jsx(tr,{asChild:!0,container:o,children:a})}))})};Gi.displayName=xo;var kr="DialogOverlay",Hi=l.forwardRef((e,t)=>{const r=zi(kr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Ie(kr,e.__scopeDialog);return s.modal?d.jsx(Ye,{present:n||s.open,children:d.jsx(og,{...o,ref:t})}):null});Hi.displayName=kr;var ng=ut("DialogOverlay.RemoveScroll"),og=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(kr,r);return d.jsx(Hr,{as:ng,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(U.div,{"data-state":yo(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),mt="DialogContent",Ui=l.forwardRef((e,t)=>{const r=zi(mt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Ie(mt,e.__scopeDialog);return d.jsx(Ye,{present:n||s.open,children:s.modal?d.jsx(sg,{...o,ref:t}):d.jsx(ag,{...o,ref:t})})});Ui.displayName=mt;var sg=l.forwardRef((e,t)=>{const r=Ie(mt,e.__scopeDialog),n=l.useRef(null),o=de(t,r.contentRef,n);return l.useEffect(()=>{const s=n.current;if(s)return lo(s)},[]),d.jsx(Ki,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault())})}),ag=l.forwardRef((e,t)=>{const r=Ie(mt,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ki,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ki=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Ie(mt,r),c=l.useRef(null),u=de(t,c);return Zn(),d.jsxs(d.Fragment,{children:[d.jsx($r,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Qt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":yo(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(ig,{titleId:i.titleId}),d.jsx(lg,{contentRef:c,descriptionId:i.descriptionId})]})]})}),bo="DialogTitle",Yi=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(bo,r);return d.jsx(U.h2,{id:o.titleId,...n,ref:t})});Yi.displayName=bo;var qi="DialogDescription",Xi=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(qi,r);return d.jsx(U.p,{id:o.descriptionId,...n,ref:t})});Xi.displayName=qi;var Zi="DialogClose",Ji=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Zi,r);return d.jsx(U.button,{type:"button",...n,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Ji.displayName=Zi;function yo(e){return e?"open":"closed"}var Qi="DialogTitleWarning",[Bb,ec]=vd(Qi,{contentName:mt,titleName:bo,docsSlug:"dialog"}),ig=({titleId:e})=>{const t=ec(Qi),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
121
121
 
122
122
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
123
123
 
124
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},ym="DialogDescriptionWarning",wm=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oi(ym).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ni=hi,Cm=xi,Ii=wi,ji=Ci,Di=Si,Sm=Ri,Em=ki,Mi=Ti,Ft='[cmdk-group=""]',un='[cmdk-group-items=""]',Rm='[cmdk-group-heading=""]',Fi='[cmdk-item=""]',ba=`${Fi}:not([aria-disabled="true"])`,kn="cmdk-item-select",xt="data-value",Pm=(e,t,r)=>cm(e,t,r),Li=c.createContext(void 0),Ut=()=>c.useContext(Li),$i=c.createContext(void 0),ao=()=>c.useContext($i),Vi=c.createContext(void 0),Bi=c.forwardRef((e,t)=>{let r=yt(()=>{var k,j;return{search:"",value:(j=(k=e.value)!=null?k:e.defaultValue)!=null?j:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=yt(()=>new Set),o=yt(()=>new Map),a=yt(()=>new Map),s=yt(()=>new Set),i=Wi(e),{label:l,children:u,value:d,onValueChange:p,filter:v,shouldFilter:h,loop:w,disablePointerSelection:m=!1,vimBindings:b=!0,...y}=e,x=ve(),C=ve(),S=ve(),E=c.useRef(null),_=Fm();ut(()=>{if(d!==void 0){let k=d.trim();r.current.value=k,P.emit()}},[d]),ut(()=>{_(6,Y)},[]);let P=c.useMemo(()=>({subscribe:k=>(s.current.add(k),()=>s.current.delete(k)),snapshot:()=>r.current,setState:(k,j,$)=>{var D,Z,O,G;if(!Object.is(r.current[k],j)){if(r.current[k]=j,k==="search")ee(),K(),_(1,re);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let J=document.getElementById(S);J?J.focus():(D=document.getElementById(x))==null||D.focus()}if(_(7,()=>{var J;r.current.selectedItemId=(J=z())==null?void 0:J.id,P.emit()}),$||_(5,Y),((Z=i.current)==null?void 0:Z.value)!==void 0){let J=j??"";(G=(O=i.current).onValueChange)==null||G.call(O,J);return}}P.emit()}},emit:()=>{s.current.forEach(k=>k())}}),[]),R=c.useMemo(()=>({value:(k,j,$)=>{var D;j!==((D=a.current.get(k))==null?void 0:D.value)&&(a.current.set(k,{value:j,keywords:$}),r.current.filtered.items.set(k,W(j,$)),_(2,()=>{K(),P.emit()}))},item:(k,j)=>(n.current.add(k),j&&(o.current.has(j)?o.current.get(j).add(k):o.current.set(j,new Set([k]))),_(3,()=>{ee(),K(),r.current.value||re(),P.emit()}),()=>{a.current.delete(k),n.current.delete(k),r.current.filtered.items.delete(k);let $=z();_(4,()=>{ee(),($==null?void 0:$.getAttribute("id"))===k&&re(),P.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{a.current.delete(k),o.current.delete(k)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:S,labelId:C,listInnerRef:E}),[]);function W(k,j){var $,D;let Z=(D=($=i.current)==null?void 0:$.filter)!=null?D:Pm;return k?Z(k,r.current.search,j):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let k=r.current.filtered.items,j=[];r.current.filtered.groups.forEach(D=>{let Z=o.current.get(D),O=0;Z.forEach(G=>{let J=k.get(G);O=Math.max(J,O)}),j.push([D,O])});let $=E.current;X().sort((D,Z)=>{var O,G;let J=D.getAttribute("id"),Q=Z.getAttribute("id");return((O=k.get(Q))!=null?O:0)-((G=k.get(J))!=null?G:0)}).forEach(D=>{let Z=D.closest(un);Z?Z.appendChild(D.parentElement===Z?D:D.closest(`${un} > *`)):$.appendChild(D.parentElement===$?D:D.closest(`${un} > *`))}),j.sort((D,Z)=>Z[1]-D[1]).forEach(D=>{var Z;let O=(Z=E.current)==null?void 0:Z.querySelector(`${Ft}[${xt}="${encodeURIComponent(D[0])}"]`);O==null||O.parentElement.appendChild(O)})}function re(){let k=X().find($=>$.getAttribute("aria-disabled")!=="true"),j=k==null?void 0:k.getAttribute(xt);P.setState("value",j||void 0)}function ee(){var k,j,$,D;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Z=0;for(let O of n.current){let G=(j=(k=a.current.get(O))==null?void 0:k.value)!=null?j:"",J=(D=($=a.current.get(O))==null?void 0:$.keywords)!=null?D:[],Q=W(G,J);r.current.filtered.items.set(O,Q),Q>0&&Z++}for(let[O,G]of o.current)for(let J of G)if(r.current.filtered.items.get(J)>0){r.current.filtered.groups.add(O);break}r.current.filtered.count=Z}function Y(){var k,j,$;let D=z();D&&(((k=D.parentElement)==null?void 0:k.firstChild)===D&&(($=(j=D.closest(Ft))==null?void 0:j.querySelector(Rm))==null||$.scrollIntoView({block:"nearest"})),D.scrollIntoView({block:"nearest"}))}function z(){var k;return(k=E.current)==null?void 0:k.querySelector(`${Fi}[aria-selected="true"]`)}function X(){var k;return Array.from(((k=E.current)==null?void 0:k.querySelectorAll(ba))||[])}function L(k){let j=X()[k];j&&P.setState("value",j.getAttribute(xt))}function q(k){var j;let $=z(),D=X(),Z=D.findIndex(G=>G===$),O=D[Z+k];(j=i.current)!=null&&j.loop&&(O=Z+k<0?D[D.length-1]:Z+k===D.length?D[0]:D[Z+k]),O&&P.setState("value",O.getAttribute(xt))}function A(k){let j=z(),$=j==null?void 0:j.closest(Ft),D;for(;$&&!D;)$=k>0?Dm($,Ft):Mm($,Ft),D=$==null?void 0:$.querySelector(ba);D?P.setState("value",D.getAttribute(xt)):q(k)}let ae=()=>L(X().length-1),de=k=>{k.preventDefault(),k.metaKey?ae():k.altKey?A(1):q(1)},ge=k=>{k.preventDefault(),k.metaKey?L(0):k.altKey?A(-1):q(-1)};return c.createElement(B.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:k=>{var j;(j=y.onKeyDown)==null||j.call(y,k);let $=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||$))switch(k.key){case"n":case"j":{b&&k.ctrlKey&&de(k);break}case"ArrowDown":{de(k);break}case"p":case"k":{b&&k.ctrlKey&&ge(k);break}case"ArrowUp":{ge(k);break}case"Home":{k.preventDefault(),L(0);break}case"End":{k.preventDefault(),ae();break}case"Enter":{k.preventDefault();let D=z();if(D){let Z=new Event(kn);D.dispatchEvent(Z)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:$m},l),Mr(e,k=>c.createElement($i.Provider,{value:P},c.createElement(Li.Provider,{value:R},k))))}),km=c.forwardRef((e,t)=>{var r,n;let o=ve(),a=c.useRef(null),s=c.useContext(Vi),i=Ut(),l=Wi(e),u=(n=(r=l.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;ut(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let d=zi(o,a,[e.value,e.children,a],e.keywords),p=ao(),v=Ze(_=>_.value&&_.value===d.current),h=Ze(_=>u||i.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);c.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(kn,w),()=>_.removeEventListener(kn,w)},[h,e.onSelect,e.disabled]);function w(){var _,P;m(),(P=(_=l.current).onSelect)==null||P.call(_,d.current)}function m(){p.setState("value",d.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:x,forceMount:C,keywords:S,...E}=e;return c.createElement(B.div,{ref:ot(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!v,"data-disabled":!!b,"data-selected":!!v,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:w},e.children)}),Am=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ve(),i=c.useRef(null),l=c.useRef(null),u=ve(),d=Ut(),p=Ze(h=>o||d.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);ut(()=>d.group(s),[]),zi(s,i,[e.value,e.heading,l]);let v=c.useMemo(()=>({id:s,forceMount:o}),[o]);return c.createElement(B.div,{ref:ot(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&c.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Mr(e,h=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},c.createElement(Vi.Provider,{value:v},h))))}),Tm=c.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=c.useRef(null),a=Ze(s=>!s.search);return!r&&!a?null:c.createElement(B.div,{ref:ot(o,t),...n,"cmdk-separator":"",role:"separator"})}),_m=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=ao(),s=Ze(u=>u.search),i=Ze(u=>u.selectedItemId),l=Ut();return c.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),c.createElement(B.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),Om=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=c.useRef(null),s=c.useRef(null),i=Ze(u=>u.selectedItemId),l=Ut();return c.useEffect(()=>{if(s.current&&a.current){let u=s.current,d=a.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=u.offsetHeight;d.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return v.observe(u),()=>{cancelAnimationFrame(p),v.unobserve(u)}}},[]),c.createElement(B.div,{ref:ot(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:l.listId},Mr(e,u=>c.createElement("div",{ref:ot(s,l.listInnerRef),"cmdk-list-sizer":""},u)))}),Nm=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return c.createElement(Ni,{open:r,onOpenChange:n},c.createElement(Ii,{container:s},c.createElement(ji,{"cmdk-overlay":"",className:o}),c.createElement(Di,{"aria-label":e.label,"cmdk-dialog":"",className:a},c.createElement(Bi,{ref:t,...i}))))}),Im=c.forwardRef((e,t)=>Ze(r=>r.filtered.count===0)?c.createElement(B.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),jm=c.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return c.createElement(B.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Mr(e,s=>c.createElement("div",{"aria-hidden":!0},s)))}),It=Object.assign(Bi,{List:Om,Item:km,Input:_m,Group:Am,Separator:Tm,Dialog:Nm,Empty:Im,Loading:jm});function Dm(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Mm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Wi(e){let t=c.useRef(e);return ut(()=>{t.current=e}),t}var ut=typeof window>"u"?c.useEffect:c.useLayoutEffect;function yt(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function Ze(e){let t=ao(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function zi(e,t,r,n=[]){let o=c.useRef(),a=Ut();return ut(()=>{var s;let i=(()=>{var u;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():o.current}})(),l=n.map(u=>u.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(xt,i),o.current=i}),o}var Fm=()=>{let[e,t]=c.useState(),r=yt(()=>new Map);return ut(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Lm(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Mr({asChild:e,children:t},r){return e&&c.isValidElement(t)?c.cloneElement(Lm(t),{ref:t.ref},r(t.props.children)):r(t)}var $m={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Vm({...e}){return f.jsx(Ni,{"data-slot":"dialog",...e})}function Bm({...e}){return f.jsx(Cm,{"data-slot":"dialog-trigger",...e})}function Gi({...e}){return f.jsx(Ii,{"data-slot":"dialog-portal",...e})}function Wm({...e}){return f.jsx(Mi,{"data-slot":"dialog-close",...e})}function Hi({className:e,...t}){return f.jsx(ji,{"data-slot":"dialog-overlay",className:V("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-foreground/50 dark:bg-foreground/50",e),...t})}function zm({className:e,children:t,showCloseButton:r=!0,...n}){return f.jsxs(Gi,{"data-slot":"dialog-portal",children:[f.jsx(Hi,{}),f.jsxs(Di,{"data-slot":"dialog-content",className:V("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&f.jsxs(Mi,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[f.jsx(Qp,{}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Gm({className:e,...t}){return f.jsx("div",{"data-slot":"dialog-header",className:V("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Hm({className:e,...t}){return f.jsx("div",{"data-slot":"dialog-footer",className:V("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Um({className:e,...t}){return f.jsx(Sm,{"data-slot":"dialog-title",className:V("text-lg leading-none font-semibold",e),...t})}function Km({className:e,...t}){return f.jsx(Em,{"data-slot":"dialog-description",className:V("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Ym({className:e,...t}){return f.jsx(It,{"data-slot":"command",className:V("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function qm({className:e,...t}){return f.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b border-purple-mutted-400 px-3 text-purple-mutted-300",children:[f.jsx(Zp,{className:"size-4 shrink-0 opacity-50"}),f.jsx(It.Input,{"data-slot":"command-input",className:V("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Xm({className:e,...t}){return f.jsx(It.List,{"data-slot":"command-list",className:V("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Zm({...e}){return f.jsx(It.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm text-purple-mutted-300",...e})}function Jm({className:e,...t}){return f.jsx(It.Group,{"data-slot":"command-group",className:V("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Qm({className:e,...t}){return f.jsx(It.Item,{"data-slot":"command-item",className:V("data-[selected=true]:bg-purple-mutted-500 data-[selected=true]:text-purple-100 [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Fr="Popover",[Ui,Gh]=ke(Fr,[_t]),Kt=_t(),[eg,et]=Ui(Fr),Ki=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Kt(t),l=c.useRef(null),[u,d]=c.useState(!1),[p,v]=Ee({prop:n,defaultProp:o??!1,onChange:a,caller:Fr});return f.jsx(Hn,{...i,children:f.jsx(eg,{scope:t,contentId:ve(),triggerRef:l,open:p,onOpenChange:v,onOpenToggle:c.useCallback(()=>v(h=>!h),[v]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>d(!0),[]),onCustomAnchorRemove:c.useCallback(()=>d(!1),[]),modal:s,children:r})})};Ki.displayName=Fr;var Yi="PopoverAnchor",tg=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=et(Yi,r),a=Kt(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return c.useEffect(()=>(s(),()=>i()),[s,i]),f.jsx(Tr,{...a,...n,ref:t})});tg.displayName=Yi;var qi="PopoverTrigger",Xi=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=et(qi,r),a=Kt(r),s=ce(t,o.triggerRef),i=f.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tl(o.open),...n,ref:s,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:f.jsx(Tr,{asChild:!0,...a,children:i})});Xi.displayName=qi;var so="PopoverPortal",[rg,ng]=Ui(so,{forceMount:void 0}),Zi=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=et(so,t);return f.jsx(rg,{scope:t,forceMount:r,children:f.jsx(Ge,{present:r||a.open,children:f.jsx(Ht,{asChild:!0,container:o,children:n})})})};Zi.displayName=so;var Et="PopoverContent",Ji=c.forwardRef((e,t)=>{const r=ng(Et,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=et(Et,e.__scopePopover);return f.jsx(Ge,{present:n||a.open,children:a.modal?f.jsx(ag,{...o,ref:t}):f.jsx(sg,{...o,ref:t})})});Ji.displayName=Et;var og=at("PopoverContent.RemoveScroll"),ag=c.forwardRef((e,t)=>{const r=et(Et,e.__scopePopover),n=c.useRef(null),o=ce(t,n),a=c.useRef(!1);return c.useEffect(()=>{const s=n.current;if(s)return Yn(s)},[]),f.jsx(Or,{as:og,allowPinchZoom:!0,children:f.jsx(Qi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:U(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),sg=c.forwardRef((e,t)=>{const r=et(Et,e.__scopePopover),n=c.useRef(!1),o=c.useRef(!1);return f.jsx(Qi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Qi=c.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...p}=e,v=et(Et,r),h=Kt(r);return Dn(),f.jsx(Rr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(zt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:f.jsx(Un,{"data-state":tl(v.open),role:"dialog",id:v.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),el="PopoverClose",ig=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=et(el,r);return f.jsx(B.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});ig.displayName=el;var lg="PopoverArrow",cg=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Kt(r);return f.jsx(Kn,{...o,...n,ref:t})});cg.displayName=lg;function tl(e){return e?"open":"closed"}var ug=Ki,dg=Xi,fg=Zi,pg=Ji;function mg({...e}){return f.jsx(ug,{"data-slot":"popover",...e})}function gg({...e}){return f.jsx(dg,{"data-slot":"popover-trigger",...e})}function vg({className:e,align:t="center",sideOffset:r=4,...n}){return f.jsx(fg,{children:f.jsx(pg,{"data-slot":"popover-content",align:t,sideOffset:r,className:V("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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const io=c.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:a="No option found.",disabled:s=!1,className:i,...l},u)=>{const[d,p]=c.useState(!1),[v,h]=c.useState(0),w=c.useRef(null),m=e.find(b=>b.value===t);return c.useEffect(()=>{w.current&&h(w.current.offsetWidth)},[]),f.jsxs(mg,{open:d,onOpenChange:p,children:[f.jsx(gg,{asChild:!0,children:f.jsxs(Sr,{ref:b=>{typeof u=="function"?u(b):u&&(u.current=b),w.current=b},variant:"outline",role:"combobox","aria-expanded":d,className:V("w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-mutted-500 bg-purple-mutted-700 hover:bg-purple-mutted-700","text-sm md:text-sm text-purple-mutted-300 hover:text-purple-mutted-300 focus:text-purple-mutted-300 active:text-purple-mutted-300","shadow-xs transition-[color,box-shadow] outline-none",{"text-muted-foreground":!m},i),disabled:s,...l,children:[m?m.label:n,f.jsx(qp,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),f.jsx(vg,{className:"p-0 border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300",style:{width:v>0?`${v}px`:"auto"},children:f.jsxs(Ym,{className:"w-full bg-purple-mutted-600",children:[f.jsx(qm,{placeholder:o}),f.jsxs(Xm,{children:[f.jsx(Zm,{children:a}),f.jsx(Jm,{children:e.map(b=>f.jsxs(Qm,{value:b.value,disabled:b.disabled,className:V("text-purple-100 hover:bg-purple-mutted-500","focus:bg-purple-mutted-500 focus:text-purple-100",{"bg-purple-mutted-500":t===b.value}),onSelect:y=>{y!==t&&(r==null||r(y===t?"":y)),p(!1)},children:[f.jsx(ui,{className:V("mr-2 h-4 w-4",t===b.value?"opacity-100":"opacity-0")}),b.label]},b.value))})]})]})})]})});io.displayName="Combobox";const hg=Cr("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 dark:border-border",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90 dark:bg-primary dark:text-primary-foreground dark:[a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 dark:bg-secondary dark:text-secondary-foreground dark:[a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-destructive-foreground [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive dark:text-destructive-foreground dark:[a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground dark:text-foreground dark:[a&]:hover:bg-accent dark:[a&]:hover:text-accent-foreground",success:"bg-green-100 text-green-800 border-green-200 dark:bg-green-900/30 dark:text-green-400 dark:border-green-800 "}},defaultVariants:{variant:"default"}});function bg({className:e,variant:t,asChild:r=!1,...n}){const o=r?za:"span";return f.jsx(o,{"data-slot":"badge",className:V(hg({variant:t}),e),...n})}function xg({className:e,...t}){return f.jsx("div",{"data-slot":"card",className:V("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function yg({className:e,...t}){return f.jsx("div",{"data-slot":"card-header",className:V("@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 wg({className:e,...t}){return f.jsx("div",{"data-slot":"card-title",className:V("leading-none font-semibold",e),...t})}function Cg({className:e,...t}){return f.jsx("div",{"data-slot":"card-description",className:V("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Sg({className:e,...t}){return f.jsx("div",{"data-slot":"card-action",className:V("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Eg({className:e,...t}){return f.jsx("div",{"data-slot":"card-content",className:V("px-6",e),...t})}function Rg({className:e,...t}){return f.jsx("div",{"data-slot":"card-footer",className:V("flex items-center px-6 [.border-t]:pt-6",e),...t})}var lo="Progress",co=100,[Pg,Hh]=ke(lo),[kg,Ag]=Pg(lo),rl=c.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Tg,...s}=e;(o||o===0)&&!xa(o)&&console.error(_g(`${o}`,"Progress"));const i=xa(o)?o:co;n!==null&&!ya(n,i)&&console.error(Og(`${n}`,"Progress"));const l=ya(n,i)?n:null,u=vr(l)?a(l,i):void 0;return f.jsx(kg,{scope:r,value:l,max:i,children:f.jsx(B.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":vr(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":al(l,i),"data-value":l??void 0,"data-max":i,...s,ref:t})})});rl.displayName=lo;var nl="ProgressIndicator",ol=c.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Ag(nl,r);return f.jsx(B.div,{"data-state":al(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});ol.displayName=nl;function Tg(e,t){return`${Math.round(e/t*100)}%`}function al(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vr(e){return typeof e=="number"}function xa(e){return vr(e)&&!isNaN(e)&&e>0}function ya(e,t){return vr(e)&&!isNaN(e)&&e<=t&&e>=0}function _g(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${co}\`.`}function Og(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
124
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cg="DialogDescriptionWarning",lg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ec(cg).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},tc=Vi,ug=Wi,rc=Gi,nc=Hi,oc=Ui,dg=Yi,fg=Xi,sc=Ji,Gt='[cmdk-group=""]',En='[cmdk-group-items=""]',pg='[cmdk-group-heading=""]',ac='[cmdk-item=""]',Fs=`${ac}:not([aria-disabled="true"])`,zn="cmdk-item-select",Pt="data-value",mg=(e,t,r)=>Zm(e,t,r),ic=l.createContext(void 0),rr=()=>l.useContext(ic),cc=l.createContext(void 0),wo=()=>l.useContext(cc),lc=l.createContext(void 0),uc=l.forwardRef((e,t)=>{let r=Rt(()=>{var R,F;return{search:"",value:(F=(R=e.value)!=null?R:e.defaultValue)!=null?F:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Rt(()=>new Set),o=Rt(()=>new Map),s=Rt(()=>new Map),a=Rt(()=>new Set),i=dc(e),{label:c,children:u,value:f,onValueChange:p,filter:g,shouldFilter:v,loop:w,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,h=ve(),C=ve(),S=ve(),k=l.useRef(null),N=Pg();gt(()=>{if(f!==void 0){let R=f.trim();r.current.value=R,_.emit()}},[f]),gt(()=>{N(6,Y)},[]);let _=l.useMemo(()=>({subscribe:R=>(a.current.add(R),()=>a.current.delete(R)),snapshot:()=>r.current,setState:(R,F,W)=>{var L,Q,O,q;if(!Object.is(r.current[R],F)){if(r.current[R]=F,R==="search")J(),K(),N(1,ee);else if(R==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let te=document.getElementById(S);te?te.focus():(L=document.getElementById(h))==null||L.focus()}if(N(7,()=>{var te;r.current.selectedItemId=(te=z())==null?void 0:te.id,_.emit()}),W||N(5,Y),((Q=i.current)==null?void 0:Q.value)!==void 0){let te=F??"";(q=(O=i.current).onValueChange)==null||q.call(O,te);return}}_.emit()}},emit:()=>{a.current.forEach(R=>R())}}),[]),T=l.useMemo(()=>({value:(R,F,W)=>{var L;F!==((L=s.current.get(R))==null?void 0:L.value)&&(s.current.set(R,{value:F,keywords:W}),r.current.filtered.items.set(R,H(F,W)),N(2,()=>{K(),_.emit()}))},item:(R,F)=>(n.current.add(R),F&&(o.current.has(F)?o.current.get(F).add(R):o.current.set(F,new Set([R]))),N(3,()=>{J(),K(),r.current.value||ee(),_.emit()}),()=>{s.current.delete(R),n.current.delete(R),r.current.filtered.items.delete(R);let W=z();N(4,()=>{J(),(W==null?void 0:W.getAttribute("id"))===R&&ee(),_.emit()})}),group:R=>(o.current.has(R)||o.current.set(R,new Set),()=>{s.current.delete(R),o.current.delete(R)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:h,inputId:S,labelId:C,listInnerRef:k}),[]);function H(R,F){var W,L;let Q=(L=(W=i.current)==null?void 0:W.filter)!=null?L:mg;return R?Q(R,r.current.search,F):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let R=r.current.filtered.items,F=[];r.current.filtered.groups.forEach(L=>{let Q=o.current.get(L),O=0;Q.forEach(q=>{let te=R.get(q);O=Math.max(te,O)}),F.push([L,O])});let W=k.current;j().sort((L,Q)=>{var O,q;let te=L.getAttribute("id"),re=Q.getAttribute("id");return((O=R.get(re))!=null?O:0)-((q=R.get(te))!=null?q:0)}).forEach(L=>{let Q=L.closest(En);Q?Q.appendChild(L.parentElement===Q?L:L.closest(`${En} > *`)):W.appendChild(L.parentElement===W?L:L.closest(`${En} > *`))}),F.sort((L,Q)=>Q[1]-L[1]).forEach(L=>{var Q;let O=(Q=k.current)==null?void 0:Q.querySelector(`${Gt}[${Pt}="${encodeURIComponent(L[0])}"]`);O==null||O.parentElement.appendChild(O)})}function ee(){let R=j().find(W=>W.getAttribute("aria-disabled")!=="true"),F=R==null?void 0:R.getAttribute(Pt);_.setState("value",F||void 0)}function J(){var R,F,W,L;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Q=0;for(let O of n.current){let q=(F=(R=s.current.get(O))==null?void 0:R.value)!=null?F:"",te=(L=(W=s.current.get(O))==null?void 0:W.keywords)!=null?L:[],re=H(q,te);r.current.filtered.items.set(O,re),re>0&&Q++}for(let[O,q]of o.current)for(let te of q)if(r.current.filtered.items.get(te)>0){r.current.filtered.groups.add(O);break}r.current.filtered.count=Q}function Y(){var R,F,W;let L=z();L&&(((R=L.parentElement)==null?void 0:R.firstChild)===L&&((W=(F=L.closest(Gt))==null?void 0:F.querySelector(pg))==null||W.scrollIntoView({block:"nearest"})),L.scrollIntoView({block:"nearest"}))}function z(){var R;return(R=k.current)==null?void 0:R.querySelector(`${ac}[aria-selected="true"]`)}function j(){var R;return Array.from(((R=k.current)==null?void 0:R.querySelectorAll(Fs))||[])}function A(R){let F=j()[R];F&&_.setState("value",F.getAttribute(Pt))}function D(R){var F;let W=z(),L=j(),Q=L.findIndex(q=>q===W),O=L[Q+R];(F=i.current)!=null&&F.loop&&(O=Q+R<0?L[L.length-1]:Q+R===L.length?L[0]:L[Q+R]),O&&_.setState("value",O.getAttribute(Pt))}function E(R){let F=z(),W=F==null?void 0:F.closest(Gt),L;for(;W&&!L;)W=R>0?Sg(W,Gt):Eg(W,Gt),L=W==null?void 0:W.querySelector(Fs);L?_.setState("value",L.getAttribute(Pt)):D(R)}let G=()=>A(j().length-1),oe=R=>{R.preventDefault(),R.metaKey?G():R.altKey?E(1):D(1)},le=R=>{R.preventDefault(),R.metaKey?A(0):R.altKey?E(-1):D(-1)};return l.createElement(U.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:R=>{var F;(F=y.onKeyDown)==null||F.call(y,R);let W=R.nativeEvent.isComposing||R.keyCode===229;if(!(R.defaultPrevented||W))switch(R.key){case"n":case"j":{x&&R.ctrlKey&&oe(R);break}case"ArrowDown":{oe(R);break}case"p":case"k":{x&&R.ctrlKey&&le(R);break}case"ArrowUp":{le(R);break}case"Home":{R.preventDefault(),A(0);break}case"End":{R.preventDefault(),G();break}case"Enter":{R.preventDefault();let L=z();if(L){let Q=new Event(zn);L.dispatchEvent(Q)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:kg},c),Xr(e,R=>l.createElement(cc.Provider,{value:_},l.createElement(ic.Provider,{value:T},R))))}),gg=l.forwardRef((e,t)=>{var r,n;let o=ve(),s=l.useRef(null),a=l.useContext(lc),i=rr(),c=dc(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:a==null?void 0:a.forceMount;gt(()=>{if(!u)return i.item(o,a==null?void 0:a.id)},[u]);let f=fc(o,s,[e.value,e.children,s],e.keywords),p=wo(),g=rt(N=>N.value&&N.value===f.current),v=rt(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=s.current;if(!(!N||e.disabled))return N.addEventListener(zn,w),()=>N.removeEventListener(zn,w)},[v,e.onSelect,e.disabled]);function w(){var N,_;m(),(_=(N=c.current).onSelect)==null||_.call(N,f.current)}function m(){p.setState("value",f.current,!0)}if(!v)return null;let{disabled:x,value:y,onSelect:h,forceMount:C,keywords:S,...k}=e;return l.createElement(U.div,{ref:lt(s,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:w},e.children)}),vg=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...s}=e,a=ve(),i=l.useRef(null),c=l.useRef(null),u=ve(),f=rr(),p=rt(v=>o||f.filter()===!1?!0:v.search?v.filtered.groups.has(a):!0);gt(()=>f.group(a),[]),fc(a,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:a,forceMount:o}),[o]);return l.createElement(U.div,{ref:lt(i,t),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Xr(e,v=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},l.createElement(lc.Provider,{value:g},v))))}),hg=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),s=rt(a=>!a.search);return!r&&!s?null:l.createElement(U.div,{ref:lt(o,t),...n,"cmdk-separator":"",role:"separator"})}),xg=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,s=wo(),a=rt(u=>u.search),i=rt(u=>u.selectedItemId),c=rr();return l.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),l.createElement(U.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),r==null||r(u.target.value)}})}),bg=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,s=l.useRef(null),a=l.useRef(null),i=rt(u=>u.selectedItemId),c=rr();return l.useEffect(()=>{if(a.current&&s.current){let u=a.current,f=s.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let v=u.offsetHeight;f.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),l.createElement(U.div,{ref:lt(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},Xr(e,u=>l.createElement("div",{ref:lt(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),yg=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:s,container:a,...i}=e;return l.createElement(tc,{open:r,onOpenChange:n},l.createElement(rc,{container:a},l.createElement(nc,{"cmdk-overlay":"",className:o}),l.createElement(oc,{"aria-label":e.label,"cmdk-dialog":"",className:s},l.createElement(uc,{ref:t,...i}))))}),wg=l.forwardRef((e,t)=>rt(r=>r.filtered.count===0)?l.createElement(U.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Cg=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...s}=e;return l.createElement(U.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Xr(e,a=>l.createElement("div",{"aria-hidden":!0},a)))}),Vt=Object.assign(uc,{List:bg,Item:gg,Input:xg,Group:vg,Separator:hg,Dialog:yg,Empty:wg,Loading:Cg});function Sg(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Eg(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function dc(e){let t=l.useRef(e);return gt(()=>{t.current=e}),t}var gt=typeof window>"u"?l.useEffect:l.useLayoutEffect;function Rt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function rt(e){let t=wo(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function fc(e,t,r,n=[]){let o=l.useRef(),s=rr();return gt(()=>{var a;let i=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=n.map(u=>u.trim());s.value(e,i,c),(a=t.current)==null||a.setAttribute(Pt,i),o.current=i}),o}var Pg=()=>{let[e,t]=l.useState(),r=Rt(()=>new Map);return gt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Rg(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Xr({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(Rg(t),{ref:t.ref},r(t.props.children)):r(t)}var kg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Tg({...e}){return d.jsx(tc,{"data-slot":"dialog",...e})}function Ag({...e}){return d.jsx(ug,{"data-slot":"dialog-trigger",...e})}function pc({...e}){return d.jsx(rc,{"data-slot":"dialog-portal",...e})}function Ng({...e}){return d.jsx(sc,{"data-slot":"dialog-close",...e})}function mc({className:e,...t}){return d.jsx(nc,{"data-slot":"dialog-overlay",className:$("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-foreground/50 dark:bg-foreground/50",e),...t})}function _g({className:e,children:t,showCloseButton:r=!0,...n}){return d.jsxs(pc,{"data-slot":"dialog-portal",children:[d.jsx(mc,{}),d.jsxs(oc,{"data-slot":"dialog-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&d.jsxs(sc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(Bm,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Ig({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:$("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Og({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:$("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function jg({className:e,...t}){return d.jsx(dg,{"data-slot":"dialog-title",className:$("text-lg leading-none font-semibold",e),...t})}function Dg({className:e,...t}){return d.jsx(fg,{"data-slot":"dialog-description",className:$("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Mg({className:e,...t}){return d.jsx(Vt,{"data-slot":"command",className:$("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Fg({className:e,...t}){return d.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b border-purple-mutted-400 px-3 text-purple-mutted-300",children:[d.jsx(Lm,{className:"size-4 shrink-0 opacity-50"}),d.jsx(Vt.Input,{"data-slot":"command-input",className:$("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function $g({className:e,...t}){return d.jsx(Vt.List,{"data-slot":"command-list",className:$("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Lg({...e}){return d.jsx(Vt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm text-purple-mutted-300",...e})}function Vg({className:e,...t}){return d.jsx(Vt.Group,{"data-slot":"command-group",className:$("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Bg({className:e,...t}){return d.jsx(Vt.Item,{"data-slot":"command-item",className:$("data-[selected=true]:bg-purple-mutted-500 data-[selected=true]:text-purple-100 [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Zr="Popover",[gc,Wb]=ke(Zr,[Ft]),nr=Ft(),[Wg,st]=gc(Zr),vc=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=nr(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,g]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:Zr});return d.jsx(ao,{...i,children:d.jsx(Wg,{scope:t,contentId:ve(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:a,children:r})})};vc.displayName=Zr;var hc="PopoverAnchor",zg=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=st(hc,r),s=nr(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(a(),()=>i()),[a,i]),d.jsx(zr,{...s,...n,ref:t})});zg.displayName=hc;var xc="PopoverTrigger",bc=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=st(xc,r),s=nr(r),a=de(t,o.triggerRef),i=d.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ec(o.open),...n,ref:a,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(zr,{asChild:!0,...s,children:i})});bc.displayName=xc;var Co="PopoverPortal",[Gg,Hg]=gc(Co,{forceMount:void 0}),yc=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,s=st(Co,t);return d.jsx(Gg,{scope:t,forceMount:r,children:d.jsx(Ye,{present:r||s.open,children:d.jsx(tr,{asChild:!0,container:o,children:n})})})};yc.displayName=Co;var _t="PopoverContent",wc=l.forwardRef((e,t)=>{const r=Hg(_t,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,s=st(_t,e.__scopePopover);return d.jsx(Ye,{present:n||s.open,children:s.modal?d.jsx(Kg,{...o,ref:t}):d.jsx(Yg,{...o,ref:t})})});wc.displayName=_t;var Ug=ut("PopoverContent.RemoveScroll"),Kg=l.forwardRef((e,t)=>{const r=st(_t,e.__scopePopover),n=l.useRef(null),o=de(t,n),s=l.useRef(!1);return l.useEffect(()=>{const a=n.current;if(a)return lo(a)},[]),d.jsx(Hr,{as:Ug,allowPinchZoom:!0,children:d.jsx(Cc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Yg=l.forwardRef((e,t)=>{const r=st(_t,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(Cc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Cc=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=st(_t,r),v=nr(r);return Zn(),d.jsx($r,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(io,{"data-state":Ec(g.open),role:"dialog",id:g.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Sc="PopoverClose",qg=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=st(Sc,r);return d.jsx(U.button,{type:"button",...n,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});qg.displayName=Sc;var Xg="PopoverArrow",Zg=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=nr(r);return d.jsx(co,{...o,...n,ref:t})});Zg.displayName=Xg;function Ec(e){return e?"open":"closed"}var Jg=vc,Qg=bc,ev=yc,tv=wc;function rv({...e}){return d.jsx(Jg,{"data-slot":"popover",...e})}function nv({...e}){return d.jsx(Qg,{"data-slot":"popover-trigger",...e})}function ov({className:e,align:t="center",sideOffset:r=4,...n}){return d.jsx(ev,{children:d.jsx(tv,{"data-slot":"popover-content",align:t,sideOffset:r,className:$("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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const So=l.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:s="No option found.",disabled:a=!1,className:i,...c},u)=>{const[f,p]=l.useState(!1),[g,v]=l.useState(0),w=l.useRef(null),m=e.find(x=>x.value===t);return l.useEffect(()=>{w.current&&v(w.current.offsetWidth)},[]),d.jsxs(rv,{open:f,onOpenChange:p,children:[d.jsx(nv,{asChild:!0,children:d.jsxs(Mr,{ref:x=>{typeof u=="function"?u(x):u&&(u.current=x),w.current=x},variant:"outline",role:"combobox","aria-expanded":f,className:$("w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-mutted-500 bg-purple-mutted-700 hover:bg-purple-mutted-700","text-sm md:text-sm text-purple-mutted-300 hover:text-purple-mutted-300 focus:text-purple-mutted-300 active:text-purple-mutted-300","shadow-xs transition-[color,box-shadow] outline-none",{"text-muted-foreground":!m},i),disabled:a,...c,children:[m?m.label:n,d.jsx(Fm,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),d.jsx(ov,{className:"p-0 border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300",style:{width:g>0?`${g}px`:"auto"},children:d.jsxs(Mg,{className:"w-full bg-purple-mutted-600",children:[d.jsx(Fg,{placeholder:o}),d.jsxs($g,{children:[d.jsx(Lg,{children:s}),d.jsx(Vg,{children:e.map(x=>d.jsxs(Bg,{value:x.value,disabled:x.disabled,className:$("text-purple-100 hover:bg-purple-mutted-500","focus:bg-purple-mutted-500 focus:text-purple-100",{"bg-purple-mutted-500":t===x.value}),onSelect:y=>{y!==t&&(r==null||r(y===t?"":y)),p(!1)},children:[d.jsx(Oi,{className:$("mr-2 h-4 w-4",t===x.value?"opacity-100":"opacity-0")}),x.label]},x.value))})]})]})})]})});So.displayName="Combobox";const sv=Dr("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 dark:border-border",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90 dark:bg-primary dark:text-primary-foreground dark:[a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 dark:bg-secondary dark:text-secondary-foreground dark:[a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-destructive-foreground [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive dark:text-destructive-foreground dark:[a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground dark:text-foreground dark:[a&]:hover:bg-accent dark:[a&]:hover:text-accent-foreground",success:"bg-green-100 text-green-800 border-green-200 dark:bg-green-900/30 dark:text-green-400 dark:border-green-800 "}},defaultVariants:{variant:"default"}});function av({className:e,variant:t,asChild:r=!1,...n}){const o=r?fa:"span";return d.jsx(o,{"data-slot":"badge",className:$(sv({variant:t}),e),...n})}function iv({className:e,...t}){return d.jsx("div",{"data-slot":"card",className:$("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function cv({className:e,...t}){return d.jsx("div",{"data-slot":"card-header",className:$("@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 lv({className:e,...t}){return d.jsx("div",{"data-slot":"card-title",className:$("leading-none font-semibold",e),...t})}function uv({className:e,...t}){return d.jsx("div",{"data-slot":"card-description",className:$("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function dv({className:e,...t}){return d.jsx("div",{"data-slot":"card-action",className:$("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function fv({className:e,...t}){return d.jsx("div",{"data-slot":"card-content",className:$("px-6",e),...t})}function pv({className:e,...t}){return d.jsx("div",{"data-slot":"card-footer",className:$("flex items-center px-6 [.border-t]:pt-6",e),...t})}var Eo="Progress",Po=100,[mv,zb]=ke(Eo),[gv,vv]=mv(Eo),Pc=l.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:s=hv,...a}=e;(o||o===0)&&!$s(o)&&console.error(xv(`${o}`,"Progress"));const i=$s(o)?o:Po;n!==null&&!Ls(n,i)&&console.error(bv(`${n}`,"Progress"));const c=Ls(n,i)?n:null,u=Tr(c)?s(c,i):void 0;return d.jsx(gv,{scope:r,value:c,max:i,children:d.jsx(U.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":Tr(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":Tc(c,i),"data-value":c??void 0,"data-max":i,...a,ref:t})})});Pc.displayName=Eo;var Rc="ProgressIndicator",kc=l.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=vv(Rc,r);return d.jsx(U.div,{"data-state":Tc(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});kc.displayName=Rc;function hv(e,t){return`${Math.round(e/t*100)}%`}function Tc(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Tr(e){return typeof e=="number"}function $s(e){return Tr(e)&&!isNaN(e)&&e>0}function Ls(e,t){return Tr(e)&&!isNaN(e)&&e<=t&&e>=0}function xv(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Po}\`.`}function bv(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
125
125
  - a positive number
126
- - less than the value passed to \`max\` (or ${co} if no \`max\` prop is set)
126
+ - less than the value passed to \`max\` (or ${Po} if no \`max\` prop is set)
127
127
  - \`null\` or \`undefined\` if the progress is indeterminate.
128
128
 
129
- Defaulting to \`null\`.`}var Ng=rl,Ig=ol;function jg({className:e,value:t,...r}){return f.jsx(Ng,{"data-slot":"progress",className:V("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:f.jsx(Ig,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Dg({className:e,...t}){return f.jsx("div",{"data-slot":"skeleton",className:V("bg-accent animate-pulse rounded-md dark:bg-accent",e),...t})}var Lr="Switch",[Mg,Uh]=ke(Lr),[Fg,Lg]=Mg(Lr),sl=c.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:u,form:d,...p}=e,[v,h]=c.useState(null),w=ce(t,C=>h(C)),m=c.useRef(!1),b=v?d||!!v.closest("form"):!0,[y,x]=Ee({prop:o,defaultProp:a??!1,onChange:u,caller:Lr});return f.jsxs(Fg,{scope:r,checked:y,disabled:i,children:[f.jsx(B.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":ul(y),"data-disabled":i?"":void 0,disabled:i,value:l,...p,ref:w,onClick:U(e.onClick,C=>{x(S=>!S),b&&(m.current=C.isPropagationStopped(),m.current||C.stopPropagation())})}),b&&f.jsx(cl,{control:v,bubbles:!m.current,name:n,value:l,checked:y,required:s,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});sl.displayName=Lr;var il="SwitchThumb",ll=c.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Lg(il,r);return f.jsx(B.span,{"data-state":ul(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});ll.displayName=il;var $g="SwitchBubbleInput",cl=c.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=c.useRef(null),i=ce(s,a),l=vs(r),u=ss(t);return c.useEffect(()=>{const d=s.current;if(!d)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==r&&h){const w=new Event("click",{bubbles:n});h.call(d,r),d.dispatchEvent(w)}},[l,r,n]),f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});cl.displayName=$g;function ul(e){return e?"checked":"unchecked"}var Vg=sl,Bg=ll;function Wg({className:e,...t}){return f.jsx(Vg,{"data-slot":"switch",className:V("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",e),...t,children:f.jsx(Bg,{"data-slot":"switch-thumb",className:V("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground")})})}var dl="Toggle",uo=c.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Ee({prop:r,onChange:o,defaultProp:n??!1,caller:dl});return f.jsx(B.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:U(e.onClick,()=>{e.disabled||i(!s)})})});uo.displayName=dl;var zg=uo;const fl=Cr("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function Gg({className:e,variant:t,size:r,...n}){return f.jsx(zg,{"data-slot":"toggle",className:V(fl({variant:t,size:r,className:e})),...n})}var dn="rovingFocusGroup.onEntryFocus",Hg={bubbles:!1,cancelable:!0},Yt="RovingFocusGroup",[An,pl,Ug]=jn(Yt),[Kg,ml]=ke(Yt,[Ug]),[Yg,qg]=Kg(Yt),gl=c.forwardRef((e,t)=>f.jsx(An.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(An.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(Xg,{...e,ref:t})})}));gl.displayName=Yt;var Xg=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,v=c.useRef(null),h=ce(t,v),w=Er(a),[m,b]=Ee({prop:s,defaultProp:i??null,onChange:l,caller:Yt}),[y,x]=c.useState(!1),C=Ye(u),S=pl(r),E=c.useRef(!1),[_,P]=c.useState(0);return c.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(dn,C),()=>R.removeEventListener(dn,C)},[C]),f.jsx(Yg,{scope:r,orientation:n,dir:w,loop:o,currentTabStopId:m,onItemFocus:c.useCallback(R=>b(R),[b]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>P(R=>R+1),[]),onFocusableItemRemove:c.useCallback(()=>P(R=>R-1),[]),children:f.jsx(B.div,{tabIndex:y||_===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{E.current=!0}),onFocus:U(e.onFocus,R=>{const W=!E.current;if(R.target===R.currentTarget&&W&&!y){const K=new CustomEvent(dn,Hg);if(R.currentTarget.dispatchEvent(K),!K.defaultPrevented){const re=S().filter(L=>L.focusable),ee=re.find(L=>L.active),Y=re.find(L=>L.id===m),X=[ee,Y,...re].filter(Boolean).map(L=>L.ref.current);bl(X,d)}}E.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),vl="RovingFocusGroupItem",hl=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ve(),u=a||l,d=qg(vl,r),p=d.currentTabStopId===u,v=pl(r),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:m}=d;return c.useEffect(()=>{if(n)return h(),()=>w()},[n,h,w]),f.jsx(An.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:f.jsx(B.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:U(e.onMouseDown,b=>{n?d.onItemFocus(u):b.preventDefault()}),onFocus:U(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:U(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Qg(b,d.orientation,d.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=v().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const S=C.indexOf(b.currentTarget);C=d.loop?ev(C,S+1):C.slice(S+1)}setTimeout(()=>bl(C))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});hl.displayName=vl;var Zg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Jg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Qg(e,t,r){const n=Jg(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Zg[n]}function bl(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function ev(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var tv=gl,rv=hl,tt="ToggleGroup",[xl,Kh]=ke(tt,[ml]),yl=ml(),fo=N.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return f.jsx(nv,{...o,ref:t})}if(r==="multiple"){const o=n;return f.jsx(ov,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${tt}\``)});fo.displayName=tt;var[wl,Cl]=xl(tt),nv=N.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=Ee({prop:r,defaultProp:n??"",onChange:o,caller:tt});return f.jsx(wl,{scope:e.__scopeToggleGroup,type:"single",value:N.useMemo(()=>s?[s]:[],[s]),onItemActivate:i,onItemDeactivate:N.useCallback(()=>i(""),[i]),children:f.jsx(Sl,{...a,ref:t})})}),ov=N.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=Ee({prop:r,defaultProp:n??[],onChange:o,caller:tt}),l=N.useCallback(d=>i((p=[])=>[...p,d]),[i]),u=N.useCallback(d=>i((p=[])=>p.filter(v=>v!==d)),[i]);return f.jsx(wl,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:l,onItemDeactivate:u,children:f.jsx(Sl,{...a,ref:t})})});fo.displayName=tt;var[av,sv]=xl(tt),Sl=N.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:i=!0,...l}=e,u=yl(r),d=Er(s),p={role:"group",dir:d,...l};return f.jsx(av,{scope:r,rovingFocus:o,disabled:n,children:o?f.jsx(tv,{asChild:!0,...u,orientation:a,dir:d,loop:i,children:f.jsx(B.div,{...p,ref:t})}):f.jsx(B.div,{...p,ref:t})})}),hr="ToggleGroupItem",El=N.forwardRef((e,t)=>{const r=Cl(hr,e.__scopeToggleGroup),n=sv(hr,e.__scopeToggleGroup),o=yl(e.__scopeToggleGroup),a=r.value.includes(e.value),s=n.disabled||e.disabled,i={...e,pressed:a,disabled:s},l=N.useRef(null);return n.rovingFocus?f.jsx(rv,{asChild:!0,...o,focusable:!s,active:a,ref:l,children:f.jsx(wa,{...i,ref:t})}):f.jsx(wa,{...i,ref:t})});El.displayName=hr;var wa=N.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=Cl(hr,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=a.type==="single"?s:void 0;return f.jsx(uo,{...i,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),iv=fo,lv=El;const Rl=c.createContext({size:"default",variant:"default"});function cv({className:e,variant:t,size:r,children:n,...o}){return f.jsx(iv,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:V("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:f.jsx(Rl.Provider,{value:{variant:t,size:r},children:n})})}function uv({className:e,children:t,variant:r,size:n,...o}){const a=c.useContext(Rl);return f.jsx(lv,{"data-slot":"toggle-group-item","data-variant":a.variant||r,"data-size":a.size||n,className:V(fl({variant:a.variant||r,size:a.size||n}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var[$r,Yh]=ke("Tooltip",[_t]),Vr=_t(),Pl="TooltipProvider",dv=700,Tn="tooltip.open",[fv,po]=$r(Pl),kl=e=>{const{__scopeTooltip:t,delayDuration:r=dv,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=c.useRef(!0),i=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),f.jsx(fv,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:c.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};kl.displayName=Pl;var Wt="Tooltip",[pv,qt]=$r(Wt),Al=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=po(Wt,e.__scopeTooltip),u=Vr(t),[d,p]=c.useState(null),v=ve(),h=c.useRef(0),w=s??l.disableHoverableContent,m=i??l.delayDuration,b=c.useRef(!1),[y,x]=Ee({prop:n,defaultProp:o??!1,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(Tn))):l.onClose(),a==null||a(P)},caller:Wt}),C=c.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,x(!0)},[x]),E=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),_=c.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,x(!0),h.current=0},m)},[m,x]);return c.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),f.jsx(Hn,{...u,children:f.jsx(pv,{scope:t,contentId:v,open:y,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?_():S()},[l.isOpenDelayedRef,_,S]),onTriggerLeave:c.useCallback(()=>{w?E():(window.clearTimeout(h.current),h.current=0)},[E,w]),onOpen:S,onClose:E,disableHoverableContent:w,children:r})})};Al.displayName=Wt;var _n="TooltipTrigger",Tl=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=qt(_n,r),a=po(_n,r),s=Vr(r),i=c.useRef(null),l=ce(t,i,o.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),f.jsx(Tr,{asChild:!0,...s,children:f.jsx(B.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:U(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});Tl.displayName=_n;var mo="TooltipPortal",[mv,gv]=$r(mo,{forceMount:void 0}),_l=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=qt(mo,t);return f.jsx(mv,{scope:t,forceMount:r,children:f.jsx(Ge,{present:r||a.open,children:f.jsx(Ht,{asChild:!0,container:o,children:n})})})};_l.displayName=mo;var Rt="TooltipContent",Ol=c.forwardRef((e,t)=>{const r=gv(Rt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=qt(Rt,e.__scopeTooltip);return f.jsx(Ge,{present:n||s.open,children:s.disableHoverableContent?f.jsx(Nl,{side:o,...a,ref:t}):f.jsx(vv,{side:o,...a,ref:t})})}),vv=c.forwardRef((e,t)=>{const r=qt(Rt,e.__scopeTooltip),n=po(Rt,e.__scopeTooltip),o=c.useRef(null),a=ce(t,o),[s,i]=c.useState(null),{trigger:l,onClose:u}=r,d=o.current,{onPointerInTransitChange:p}=n,v=c.useCallback(()=>{i(null),p(!1)},[p]),h=c.useCallback((w,m)=>{const b=w.currentTarget,y={x:w.clientX,y:w.clientY},x=yv(y,b.getBoundingClientRect()),C=wv(y,x),S=Cv(m.getBoundingClientRect()),E=Ev([...C,...S]);i(E),p(!0)},[p]);return c.useEffect(()=>()=>v(),[v]),c.useEffect(()=>{if(l&&d){const w=b=>h(b,d),m=b=>h(b,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[l,d,h,v]),c.useEffect(()=>{if(s){const w=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},x=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),C=!Sv(y,s);x?v():C&&(v(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,u,v]),f.jsx(Nl,{...e,ref:a})}),[hv,bv]=$r(Wt,{isInside:!1}),xv=Ou("TooltipContent"),Nl=c.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=qt(Rt,r),u=Vr(r),{onClose:d}=l;return c.useEffect(()=>(document.addEventListener(Tn,d),()=>document.removeEventListener(Tn,d)),[d]),c.useEffect(()=>{if(l.trigger){const p=v=>{const h=v.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),f.jsx(zt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:f.jsxs(Un,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(xv,{children:n}),f.jsx(hv,{scope:r,isInside:!0,children:f.jsx(Rf,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Ol.displayName=Rt;var Il="TooltipArrow",jl=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Vr(r);return bv(Il,r).isInside?null:f.jsx(Kn,{...o,...n,ref:t})});jl.displayName=Il;function yv(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function wv(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Cv(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Sv(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,d=i.y,p=l.x,v=l.y;d>n!=v>n&&r<(p-u)*(n-d)/(v-d)+u&&(o=!o)}return o}function Ev(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Rv(t)}function Rv(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Pv=kl,kv=Al,Av=Tl,Tv=_l,_v=Ol,Ov=jl;function Dl({delayDuration:e=0,...t}){return f.jsx(Pv,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Ml({...e}){return f.jsx(Dl,{children:f.jsx(kv,{"data-slot":"tooltip",...e})})}function Fl({...e}){return f.jsx(Av,{"data-slot":"tooltip-trigger",...e})}function Ll({className:e,sideOffset:t=0,children:r,...n}){return f.jsx(Tv,{children:f.jsxs(_v,{"data-slot":"tooltip-content",sideOffset:t,className:V("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance dark:bg-primary dark:text-primary-foreground",e),...n,children:[r,f.jsx(Ov,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] dark:bg-primary dark:fill-primary"})]})})}var Br="Collapsible",[Nv,$l]=ke(Br),[Iv,go]=Nv(Br),Vl=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,u]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:Br});return f.jsx(Iv,{scope:r,disabled:a,contentId:ve(),open:l,onOpenToggle:c.useCallback(()=>u(d=>!d),[u]),children:f.jsx(B.div,{"data-state":ho(l),"data-disabled":a?"":void 0,...i,ref:t})})});Vl.displayName=Br;var Bl="CollapsibleTrigger",Wl=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=go(Bl,r);return f.jsx(B.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ho(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Wl.displayName=Bl;var vo="CollapsibleContent",zl=c.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=go(vo,e.__scopeCollapsible);return f.jsx(Ge,{present:r||o.open,children:({present:a})=>f.jsx(jv,{...n,ref:t,present:a})})});zl.displayName=vo;var jv=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,s=go(vo,r),[i,l]=c.useState(n),u=c.useRef(null),d=ce(t,u),p=c.useRef(0),v=p.current,h=c.useRef(0),w=h.current,m=s.open||i,b=c.useRef(m),y=c.useRef(void 0);return c.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),he(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();p.current=C.height,h.current=C.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(n)}},[s.open,n]),f.jsx(B.div,{"data-state":ho(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...a,ref:d,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:m&&o})});function ho(e){return e?"open":"closed"}var Dv=Vl,Mv=Wl,Fv=zl,Ie="Accordion",Lv=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bo,$v,Vv]=jn(Ie),[Wr,qh]=ke(Ie,[Vv,$l]),xo=$l(),Gl=N.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return f.jsx(bo.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?f.jsx(Gv,{...a,ref:t}):f.jsx(zv,{...o,ref:t})})});Gl.displayName=Ie;var[Hl,Bv]=Wr(Ie),[Ul,Wv]=Wr(Ie,{collapsible:!1}),zv=N.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,l]=Ee({prop:r,defaultProp:n??"",onChange:o,caller:Ie});return f.jsx(Hl,{scope:e.__scopeAccordion,value:N.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:N.useCallback(()=>a&&l(""),[a,l]),children:f.jsx(Ul,{scope:e.__scopeAccordion,collapsible:a,children:f.jsx(Kl,{...s,ref:t})})})}),Gv=N.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=Ee({prop:r,defaultProp:n??[],onChange:o,caller:Ie}),l=N.useCallback(d=>i((p=[])=>[...p,d]),[i]),u=N.useCallback(d=>i((p=[])=>p.filter(v=>v!==d)),[i]);return f.jsx(Hl,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:f.jsx(Ul,{scope:e.__scopeAccordion,collapsible:!0,children:f.jsx(Kl,{...a,ref:t})})})}),[Hv,zr]=Wr(Ie),Kl=N.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...s}=e,i=N.useRef(null),l=ce(i,t),u=$v(r),p=Er(o)==="ltr",v=U(e.onKeyDown,h=>{var R;if(!Lv.includes(h.key))return;const w=h.target,m=u().filter(W=>{var K;return!((K=W.ref.current)!=null&&K.disabled)}),b=m.findIndex(W=>W.ref.current===w),y=m.length;if(b===-1)return;h.preventDefault();let x=b;const C=0,S=y-1,E=()=>{x=b+1,x>S&&(x=C)},_=()=>{x=b-1,x<C&&(x=S)};switch(h.key){case"Home":x=C;break;case"End":x=S;break;case"ArrowRight":a==="horizontal"&&(p?E():_());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(p?_():E());break;case"ArrowUp":a==="vertical"&&_();break}const P=x%y;(R=m[P].ref.current)==null||R.focus()});return f.jsx(Hv,{scope:r,disabled:n,direction:o,orientation:a,children:f.jsx(bo.Slot,{scope:r,children:f.jsx(B.div,{...s,"data-orientation":a,ref:l,onKeyDown:n?void 0:v})})})}),br="AccordionItem",[Uv,yo]=Wr(br),Yl=N.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=zr(br,r),s=Bv(br,r),i=xo(r),l=ve(),u=n&&s.value.includes(n)||!1,d=a.disabled||e.disabled;return f.jsx(Uv,{scope:r,open:u,disabled:d,triggerId:l,children:f.jsx(Dv,{"data-orientation":a.orientation,"data-state":ec(u),...i,...o,ref:t,disabled:d,open:u,onOpenChange:p=>{p?s.onItemOpen(n):s.onItemClose(n)}})})});Yl.displayName=br;var ql="AccordionHeader",Xl=N.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=zr(Ie,r),a=yo(ql,r);return f.jsx(B.h3,{"data-orientation":o.orientation,"data-state":ec(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});Xl.displayName=ql;var On="AccordionTrigger",Zl=N.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=zr(Ie,r),a=yo(On,r),s=Wv(On,r),i=xo(r);return f.jsx(bo.ItemSlot,{scope:r,children:f.jsx(Mv,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...n,ref:t})})});Zl.displayName=On;var Jl="AccordionContent",Ql=N.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=zr(Ie,r),a=yo(Jl,r),s=xo(r);return f.jsx(Fv,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ql.displayName=Jl;function ec(e){return e?"open":"closed"}var Kv=Gl,Yv=Yl,qv=Xl,Xv=Zl,Zv=Ql;function Jv({...e}){return f.jsx(Kv,{"data-slot":"accordion",...e})}function Qv({className:e,...t}){return f.jsx(Yv,{"data-slot":"accordion-item",className:V("border-b last:border-b-0 dark:border-border",e),...t})}function eh({className:e,children:t,...r}){return f.jsx(qv,{className:"flex",children:f.jsxs(Xv,{"data-slot":"accordion-trigger",className:V("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",e),...r,children:[t,f.jsx(Xn,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function th({className:e,children:t,...r}){return f.jsx(Zv,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground",...r,children:f.jsx("div",{className:V("pt-0 pb-4",e),children:t})})}var rh=e=>e.type==="checkbox",$t=e=>e instanceof Date,wo=e=>e==null;const tc=e=>typeof e=="object";var dt=e=>!wo(e)&&!Array.isArray(e)&&tc(e)&&!$t(e),nh=e=>dt(e)&&e.target?rh(e.target)?e.target.checked:e.target.value:e,oh=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ah=(e,t)=>e.has(oh(t)),sh=e=>{const t=e.constructor&&e.constructor.prototype;return dt(t)&&t.hasOwnProperty("isPrototypeOf")},ih=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function rc(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(ih&&(e instanceof Blob||n))&&(r||dt(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!sh(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=rc(e[o]));else return e;return t}var nc=e=>/^\w*$/.test(e),Nn=e=>e===void 0,lh=e=>Array.isArray(e)?e.filter(Boolean):[],oc=e=>lh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),we=(e,t,r)=>{if(!t||!dt(e))return r;const n=(nc(t)?[t]:oc(t)).reduce((o,a)=>wo(o)?o:o[a],e);return Nn(n)||n===e?Nn(e[t])?r:e[t]:n},fn=e=>typeof e=="boolean",Ca=(e,t,r)=>{let n=-1;const o=nc(t)?[t]:oc(t),a=o.length,s=a-1;for(;++n<a;){const i=o[n];let l=r;if(n!==s){const u=e[i];l=dt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const Sa={BLUR:"blur",CHANGE:"change"},Ea={all:"all"},Co=N.createContext(null);Co.displayName="HookFormContext";const Xt=()=>N.useContext(Co),ch=e=>{const{children:t,...r}=e;return N.createElement(Co.Provider,{value:r},t)};var uh=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Ea.all&&(t._proxyFormState[s]=!n||Ea.all),r&&(r[s]=!0),e[s]}});return o};const ac=typeof window<"u"?N.useLayoutEffect:N.useEffect;function sc(e){const t=Xt(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[s,i]=N.useState(r._formState),l=N.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ac(()=>r._subscribe({name:o,formState:l.current,exact:a,callback:u=>{!n&&i({...r._formState,...u})}}),[o,n,a]),N.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),N.useMemo(()=>uh(s,r,l.current,!1),[s,r])}var dh=e=>typeof e=="string",fh=(e,t,r,n,o)=>dh(e)?we(r,e,o):Array.isArray(e)?e.map(a=>we(r,a)):r,Ra=e=>wo(e)||!tc(e);function ic(e,t,r=new WeakSet){if(Ra(e)||Ra(t))return e===t;if($t(e)&&$t(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if($t(s)&&$t(i)||dt(s)&&dt(i)||Array.isArray(s)&&Array.isArray(i)?!ic(s,i,r):s!==i)return!1}}return!0}function ph(e){const t=Xt(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=N.useRef(o),u=N.useRef(i),d=N.useRef(void 0);u.current=i;const p=N.useMemo(()=>r._getWatch(n,l.current),[r,n]),[v,h]=N.useState(u.current?u.current(p):p);return ac(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:w=>{if(!a){const m=fh(n,r._names,w.values||r._formValues,!1,l.current);if(u.current){const b=u.current(m);ic(b,d.current)||(h(b),d.current=b)}else h(m)}}}),[r,a,n,s]),N.useEffect(()=>r._removeUnmounted()),v}function mh(e){const t=Xt(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:s}=e,i=ah(o._names.array,r),l=N.useMemo(()=>we(o._formValues,r,we(o._defaultValues,r,s)),[o,r,s]),u=ph({control:o,name:r,defaultValue:l,exact:!0}),d=sc({control:o,name:r,exact:!0}),p=N.useRef(e),v=N.useRef(o.register(r,{...e.rules,value:u,...fn(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const h=N.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!we(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!we(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!we(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!we(d.validatingFields,r)},error:{enumerable:!0,get:()=>we(d.errors,r)}}),[d,r]),w=N.useCallback(x=>v.current.onChange({target:{value:nh(x),name:r},type:Sa.CHANGE}),[r]),m=N.useCallback(()=>v.current.onBlur({target:{value:we(o._formValues,r),name:r},type:Sa.BLUR}),[r,o._formValues]),b=N.useCallback(x=>{const C=we(o._fields,r);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:S=>x.setCustomValidity(S),reportValidity:()=>x.reportValidity()})},[o._fields,r]),y=N.useMemo(()=>({name:r,value:u,...fn(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:w,onBlur:m,ref:b}),[r,n,d.disabled,w,m,b,u]);return N.useEffect(()=>{const x=o._options.shouldUnregister||a;o.register(r,{...p.current.rules,...fn(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(S,E)=>{const _=we(o._fields,S);_&&_._f&&(_._f.mount=E)};if(C(r,!0),x){const S=rc(we(o._options.defaultValues,r));Ca(o._defaultValues,r,S),Nn(we(o._formValues,r))&&Ca(o._formValues,r,S)}return!i&&o.register(r),()=>{(i?x&&!o._state.action:x)?o.unregister(r):C(r,!1)}},[r,o,i,a]),N.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),N.useMemo(()=>({field:y,formState:d,fieldState:h}),[y,d,h])}const gh=e=>e.render(mh(e)),lc=N.createContext(void 0),cc=e=>{const{methods:t,disabled:r,children:n}=e;return f.jsx(lc.Provider,{value:{disabled:r},children:f.jsx(ch,{...t,children:n})})},uc=()=>{const e=N.useContext(lc),t=Xt();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},vh=({type:e="button",...t})=>{const r=()=>e==="submit"||e==="reset"?"default":"outline";return f.jsx(Sr,{type:e,variant:r(),...t})};var dc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pa=N.createContext&&N.createContext(dc),hh=["attr","size","title"];function bh(e,t){if(e==null)return{};var r=xh(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xh(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xr.apply(this,arguments)}function ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ka(Object(r),!0).forEach(function(n){yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ka(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yh(e,t,r){return t=wh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wh(e){var t=Ch(e,"string");return typeof t=="symbol"?t:t+""}function Ch(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fc(e){return e&&e.map((t,r)=>N.createElement(t.tag,yr({key:r},t.attr),fc(t.child)))}function Sh(e){return t=>N.createElement(Eh,xr({attr:yr({},e.attr)},t),fc(e.child))}function Eh(e){var t=r=>{var{attr:n,size:o,title:a}=e,s=bh(e,hh),i=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),N.createElement("svg",xr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:yr(yr({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&N.createElement("title",null,a),e.children)};return Pa!==void 0?N.createElement(Pa.Consumer,null,r=>t(r)):t(dc)}function Rh(e){return Sh({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var Ph="Label",pc=c.forwardRef((e,t)=>f.jsx(B.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));pc.displayName=Ph;var kh=pc;function Ah({className:e,...t}){return f.jsx(kh,{"data-slot":"label",className:V("flex items-center text-purple-mutted-300 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 mc=c.createContext({}),Th=({...e})=>f.jsx(mc.Provider,{value:{name:e.name},children:f.jsx(gh,{...e})}),Gr=()=>{const e=c.useContext(mc),t=c.useContext(gc),{getFieldState:r}=Xt(),n=sc({name:e.name}),o=r(e.name,n);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}},gc=c.createContext({});function _h({className:e,...t}){const r=c.useId();return f.jsx(gc.Provider,{value:{id:r},children:f.jsx("div",{"data-slot":"form-item",className:V("grid gap-2",e),...t})})}function Oh({className:e,...t}){const{error:r,formItemId:n}=Gr();return f.jsx(Ah,{"data-slot":"form-label","data-error":!!r,className:V("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:n,...t})}function Nh({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Gr();return f.jsx(za,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Ih({className:e,...t}){const{formDescriptionId:r}=Gr();return f.jsx("p",{"data-slot":"form-description",id:r,className:V("text-purple-mutted-300 text-sm",e),...t})}function jh({className:e,...t}){const{error:r,formMessageId:n}=Gr(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?f.jsx("p",{"data-slot":"form-message",id:n,className:V("text-destructive text-sm",e),...t,children:o}):null}const So=e=>t=>{const{name:r,label:n,description:o,tooltip:a,...s}=t,{control:i,disabled:l}=uc(),u=()=>a?f.jsxs(Ml,{children:[f.jsx(Fl,{asChild:!0,children:f.jsx(Rh,{size:16})}),f.jsx(Ll,{children:f.jsx("p",{children:a})})]}):f.jsx(f.Fragment,{}),d=()=>o?f.jsx(Ih,{children:o}):f.jsx(f.Fragment,{});return f.jsx(Th,{control:i,name:r,render:({field:p})=>f.jsxs(_h,{className:"flex flex-col gap-1.5",children:[n&&f.jsx(Oh,{children:f.jsxs("span",{className:"flex items-center gap-1",children:[n,!!a&&u()]})}),f.jsx(Nh,{children:f.jsx(e,{...p,...s,disabled:l})}),!!o&&d(),f.jsx(jh,{})]})})},Dh=So(Wa),vc=N.forwardRef(({options:e,placeholder:t,value:r,onChange:n,disabled:o},a)=>{const s=l=>{n&&n({target:{value:l}})},i=l=>f.jsx(to,{value:l.value,disabled:l.disabled,children:l.label},l.value);return f.jsxs(di,{value:r,onValueChange:s,disabled:o,children:[f.jsx(Zn,{ref:a,children:f.jsx(fi,{placeholder:t})}),f.jsx(eo,{children:e.map(i)})]})});vc.displayName="BaseSelectComponent";const Mh=So(vc),Fh=N.forwardRef((e,t)=>{const{options:r=[],placeholder:n,value:o,onChange:a=()=>{},disabled:s,searchPlaceholder:i,emptyText:l}=e,u=d=>{a({target:{value:d}})};return f.jsx(io,{ref:t,options:r,value:o,onValueChange:u,placeholder:n,searchPlaceholder:i,emptyText:l,disabled:s})}),Lh=So(Fh),$h=e=>f.jsx("hr",{className:"w-full h-px border-purple-mutted-500",...e}),Vh=({children:e,description:t,className:r})=>f.jsxs("div",{className:V("space-y-1",r),children:[f.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&f.jsx("span",{className:"text-sm text-purple-mutted-300",children:t})]}),ft=e=>{const{className:t,disabled:r=!1,methods:n,onSubmit:o=()=>{},...a}=e,{handleSubmit:s}=n,i=V("flex flex-col gap-6",{},t);return f.jsx(cc,{methods:n,disabled:r,children:f.jsx("form",{className:i,onSubmit:s(o),...a})})};ft.Button=vh;ft.Input=Dh;ft.Select=Mh;ft.Combobox=Lh;ft.Divider=$h;ft.Title=Vh;exports.Accordion=Jv;exports.AccordionContent=th;exports.AccordionItem=Qv;exports.AccordionTrigger=eh;exports.Badge=bg;exports.Button=Sr;exports.Card=xg;exports.CardAction=Sg;exports.CardContent=Eg;exports.CardDescription=Cg;exports.CardFooter=Rg;exports.CardHeader=yg;exports.CardTitle=wg;exports.Combobox=io;exports.Dialog=Vm;exports.DialogClose=Wm;exports.DialogContent=zm;exports.DialogDescription=Km;exports.DialogFooter=Hm;exports.DialogHeader=Gm;exports.DialogOverlay=Hi;exports.DialogPortal=Gi;exports.DialogTitle=Um;exports.DialogTrigger=Bm;exports.Form=ft;exports.FormProvider=cc;exports.Input=Wa;exports.Progress=jg;exports.Select=di;exports.SelectContent=eo;exports.SelectGroup=em;exports.SelectItem=to;exports.SelectLabel=pi;exports.SelectScrollDownButton=Qn;exports.SelectScrollUpButton=Jn;exports.SelectSeparator=mi;exports.SelectTrigger=Zn;exports.SelectValue=fi;exports.Skeleton=Dg;exports.Switch=Wg;exports.Toggle=Gg;exports.ToggleGroup=cv;exports.ToggleGroupItem=uv;exports.Tooltip=Ml;exports.TooltipContent=Ll;exports.TooltipProvider=Dl;exports.TooltipTrigger=Fl;exports.borderRadius=Bc;exports.cn=V;exports.colors=$c;exports.spacing=Vc;exports.typography=Wc;exports.useFormContext=uc;
129
+ Defaulting to \`null\`.`}var yv=Pc,wv=kc;function Cv({className:e,value:t,...r}){return d.jsx(yv,{"data-slot":"progress",className:$("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:d.jsx(wv,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Sv({className:e,...t}){return d.jsx("div",{"data-slot":"skeleton",className:$("bg-accent animate-pulse rounded-md dark:bg-accent",e),...t})}var Jr="Switch",[Ev,Gb]=ke(Jr),[Pv,Rv]=Ev(Jr),Ac=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:s,required:a,disabled:i,value:c="on",onCheckedChange:u,form:f,...p}=e,[g,v]=l.useState(null),w=de(t,C=>v(C)),m=l.useRef(!1),x=g?f||!!g.closest("form"):!0,[y,h]=Ee({prop:o,defaultProp:s??!1,onChange:u,caller:Jr});return d.jsxs(Pv,{scope:r,checked:y,disabled:i,children:[d.jsx(U.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":Oc(y),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:w,onClick:Z(e.onClick,C=>{h(S=>!S),x&&(m.current=C.isPropagationStopped(),m.current||C.stopPropagation())})}),x&&d.jsx(Ic,{control:g,bubbles:!m.current,name:n,value:c,checked:y,required:a,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});Ac.displayName=Jr;var Nc="SwitchThumb",_c=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Rv(Nc,r);return d.jsx(U.span,{"data-state":Oc(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});_c.displayName=Nc;var kv="SwitchBubbleInput",Ic=l.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},s)=>{const a=l.useRef(null),i=de(a,s),c=La(r),u=Aa(t);return l.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&v){const w=new Event("click",{bubbles:n});v.call(f,r),f.dispatchEvent(w)}},[c,r,n]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ic.displayName=kv;function Oc(e){return e?"checked":"unchecked"}var Tv=Ac,Av=_c;function Nv({className:e,...t}){return d.jsx(Tv,{"data-slot":"switch",className:$("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",e),...t,children:d.jsx(Av,{"data-slot":"switch-thumb",className:$("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground")})})}var jc="Toggle",Ro=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...s}=e,[a,i]=Ee({prop:r,onChange:o,defaultProp:n??!1,caller:jc});return d.jsx(U.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:Z(e.onClick,()=>{e.disabled||i(!a)})})});Ro.displayName=jc;var _v=Ro;const Dc=Dr("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function Iv({className:e,variant:t,size:r,...n}){return d.jsx(_v,{"data-slot":"toggle",className:$(Dc({variant:t,size:r,className:e})),...n})}var Pn="rovingFocusGroup.onEntryFocus",Ov={bubbles:!1,cancelable:!0},or="RovingFocusGroup",[Gn,Mc,jv]=Xn(or),[Dv,Fc]=ke(or,[jv]),[Mv,Fv]=Dv(or),$c=l.forwardRef((e,t)=>d.jsx(Gn.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Gn.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx($v,{...e,ref:t})})}));$c.displayName=or;var $v=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),v=de(t,g),w=Fr(s),[m,x]=Ee({prop:a,defaultProp:i??null,onChange:c,caller:or}),[y,h]=l.useState(!1),C=Qe(u),S=Mc(r),k=l.useRef(!1),[N,_]=l.useState(0);return l.useEffect(()=>{const T=g.current;if(T)return T.addEventListener(Pn,C),()=>T.removeEventListener(Pn,C)},[C]),d.jsx(Mv,{scope:r,orientation:n,dir:w,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(T=>x(T),[x]),onItemShiftTab:l.useCallback(()=>h(!0),[]),onFocusableItemAdd:l.useCallback(()=>_(T=>T+1),[]),onFocusableItemRemove:l.useCallback(()=>_(T=>T-1),[]),children:d.jsx(U.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{k.current=!0}),onFocus:Z(e.onFocus,T=>{const H=!k.current;if(T.target===T.currentTarget&&H&&!y){const K=new CustomEvent(Pn,Ov);if(T.currentTarget.dispatchEvent(K),!K.defaultPrevented){const ee=S().filter(A=>A.focusable),J=ee.find(A=>A.active),Y=ee.find(A=>A.id===m),j=[J,Y,...ee].filter(Boolean).map(A=>A.ref.current);Bc(j,f)}}k.current=!1}),onBlur:Z(e.onBlur,()=>h(!1))})})}),Lc="RovingFocusGroupItem",Vc=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=ve(),u=s||c,f=Fv(Lc,r),p=f.currentTabStopId===u,g=Mc(r),{onFocusableItemAdd:v,onFocusableItemRemove:w,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return v(),()=>w()},[n,v,w]),d.jsx(Gn.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:d.jsx(U.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:Z(e.onMouseDown,x=>{n?f.onItemFocus(u):x.preventDefault()}),onFocus:Z(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:Z(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=Bv(x,f.orientation,f.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=g().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const S=C.indexOf(x.currentTarget);C=f.loop?Wv(C,S+1):C.slice(S+1)}setTimeout(()=>Bc(C))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:m!=null}):a})})});Vc.displayName=Lc;var Lv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Bv(e,t,r){const n=Vv(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Lv[n]}function Bc(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Wv(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var zv=$c,Gv=Vc,at="ToggleGroup",[Wc,Hb]=ke(at,[Fc]),zc=Fc(),ko=P.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return d.jsx(Hv,{...o,ref:t})}if(r==="multiple"){const o=n;return d.jsx(Uv,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${at}\``)});ko.displayName=at;var[Gc,Hc]=Wc(at),Hv=P.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Ee({prop:r,defaultProp:n??"",onChange:o,caller:at});return d.jsx(Gc,{scope:e.__scopeToggleGroup,type:"single",value:P.useMemo(()=>a?[a]:[],[a]),onItemActivate:i,onItemDeactivate:P.useCallback(()=>i(""),[i]),children:d.jsx(Uc,{...s,ref:t})})}),Uv=P.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Ee({prop:r,defaultProp:n??[],onChange:o,caller:at}),c=P.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=P.useCallback(f=>i((p=[])=>p.filter(g=>g!==f)),[i]);return d.jsx(Gc,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:c,onItemDeactivate:u,children:d.jsx(Uc,{...s,ref:t})})});ko.displayName=at;var[Kv,Yv]=Wc(at),Uc=P.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:s,dir:a,loop:i=!0,...c}=e,u=zc(r),f=Fr(a),p={role:"group",dir:f,...c};return d.jsx(Kv,{scope:r,rovingFocus:o,disabled:n,children:o?d.jsx(zv,{asChild:!0,...u,orientation:s,dir:f,loop:i,children:d.jsx(U.div,{...p,ref:t})}):d.jsx(U.div,{...p,ref:t})})}),Ar="ToggleGroupItem",Kc=P.forwardRef((e,t)=>{const r=Hc(Ar,e.__scopeToggleGroup),n=Yv(Ar,e.__scopeToggleGroup),o=zc(e.__scopeToggleGroup),s=r.value.includes(e.value),a=n.disabled||e.disabled,i={...e,pressed:s,disabled:a},c=P.useRef(null);return n.rovingFocus?d.jsx(Gv,{asChild:!0,...o,focusable:!a,active:s,ref:c,children:d.jsx(Vs,{...i,ref:t})}):d.jsx(Vs,{...i,ref:t})});Kc.displayName=Ar;var Vs=P.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,s=Hc(Ar,r),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=s.type==="single"?a:void 0;return d.jsx(Ro,{...i,...o,ref:t,onPressedChange:c=>{c?s.onItemActivate(n):s.onItemDeactivate(n)}})}),qv=ko,Xv=Kc;const Yc=l.createContext({size:"default",variant:"default"});function Zv({className:e,variant:t,size:r,children:n,...o}){return d.jsx(qv,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:$("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:d.jsx(Yc.Provider,{value:{variant:t,size:r},children:n})})}function Jv({className:e,children:t,variant:r,size:n,...o}){const s=l.useContext(Yc);return d.jsx(Xv,{"data-slot":"toggle-group-item","data-variant":s.variant||r,"data-size":s.size||n,className:$(Dc({variant:s.variant||r,size:s.size||n}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var[Qr,Ub]=ke("Tooltip",[Ft]),en=Ft(),qc="TooltipProvider",Qv=700,Hn="tooltip.open",[eh,To]=Qr(qc),Xc=e=>{const{__scopeTooltip:t,delayDuration:r=Qv,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(eh,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Xc.displayName=qc;var Zt="Tooltip",[th,sr]=Qr(Zt),Zc=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=To(Zt,e.__scopeTooltip),u=en(t),[f,p]=l.useState(null),g=ve(),v=l.useRef(0),w=a??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,h]=Ee({prop:n,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(Hn))):c.onClose(),s==null||s(_)},caller:Zt}),C=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),S=l.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x.current=!1,h(!0)},[h]),k=l.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h(!1)},[h]),N=l.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,h(!0),v.current=0},m)},[m,h]);return l.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),d.jsx(ao,{...u,children:d.jsx(th,{scope:t,contentId:g,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():S()},[c.isOpenDelayedRef,N,S]),onTriggerLeave:l.useCallback(()=>{w?k():(window.clearTimeout(v.current),v.current=0)},[k,w]),onOpen:S,onClose:k,disableHoverableContent:w,children:r})})};Zc.displayName=Zt;var Un="TooltipTrigger",Jc=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=sr(Un,r),s=To(Un,r),a=en(r),i=l.useRef(null),c=de(t,i,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(zr,{asChild:!0,...a,children:d.jsx(U.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:Z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Jc.displayName=Un;var Ao="TooltipPortal",[rh,nh]=Qr(Ao,{forceMount:void 0}),Qc=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,s=sr(Ao,t);return d.jsx(rh,{scope:t,forceMount:r,children:d.jsx(Ye,{present:r||s.open,children:d.jsx(tr,{asChild:!0,container:o,children:n})})})};Qc.displayName=Ao;var It="TooltipContent",el=l.forwardRef((e,t)=>{const r=nh(It,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,a=sr(It,e.__scopeTooltip);return d.jsx(Ye,{present:n||a.open,children:a.disableHoverableContent?d.jsx(tl,{side:o,...s,ref:t}):d.jsx(oh,{side:o,...s,ref:t})})}),oh=l.forwardRef((e,t)=>{const r=sr(It,e.__scopeTooltip),n=To(It,e.__scopeTooltip),o=l.useRef(null),s=de(t,o),[a,i]=l.useState(null),{trigger:c,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),v=l.useCallback((w,m)=>{const x=w.currentTarget,y={x:w.clientX,y:w.clientY},h=ch(y,x.getBoundingClientRect()),C=lh(y,h),S=uh(m.getBoundingClientRect()),k=fh([...C,...S]);i(k),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const w=x=>v(x,f),m=x=>v(x,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",m)}}},[c,f,v,g]),l.useEffect(()=>{if(a){const w=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},h=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),C=!dh(y,a);h?g():C&&(g(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,a,u,g]),d.jsx(tl,{...e,ref:s})}),[sh,ah]=Qr(Zt,{isInside:!1}),ih=bd("TooltipContent"),tl=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=sr(It,r),u=en(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Hn,f),()=>document.removeEventListener(Hn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const v=g.target;v!=null&&v.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),d.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(io,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(ih,{children:n}),d.jsx(sh,{scope:r,isInside:!0,children:d.jsx(pp,{id:c.contentId,role:"tooltip",children:o||n})})]})})});el.displayName=It;var rl="TooltipArrow",nl=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=en(r);return ah(rl,r).isInside?null:d.jsx(co,{...o,...n,ref:t})});nl.displayName=rl;function ch(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function lh(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function uh(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function dh(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function fh(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ph(t)}function ph(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var mh=Xc,gh=Zc,vh=Jc,hh=Qc,xh=el,bh=nl;function ol({delayDuration:e=0,...t}){return d.jsx(mh,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function sl({...e}){return d.jsx(ol,{children:d.jsx(gh,{"data-slot":"tooltip",...e})})}function al({...e}){return d.jsx(vh,{"data-slot":"tooltip-trigger",...e})}function il({className:e,sideOffset:t=0,children:r,...n}){return d.jsx(hh,{children:d.jsxs(xh,{"data-slot":"tooltip-content",sideOffset:t,className:$("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance dark:bg-primary dark:text-primary-foreground",e),...n,children:[r,d.jsx(bh,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] dark:bg-primary dark:fill-primary"})]})})}var tn="Collapsible",[yh,cl]=ke(tn),[wh,No]=yh(tn),ll=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:s,onOpenChange:a,...i}=e,[c,u]=Ee({prop:n,defaultProp:o??!1,onChange:a,caller:tn});return d.jsx(wh,{scope:r,disabled:s,contentId:ve(),open:c,onOpenToggle:l.useCallback(()=>u(f=>!f),[u]),children:d.jsx(U.div,{"data-state":Io(c),"data-disabled":s?"":void 0,...i,ref:t})})});ll.displayName=tn;var ul="CollapsibleTrigger",dl=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=No(ul,r);return d.jsx(U.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Io(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:Z(e.onClick,o.onOpenToggle)})});dl.displayName=ul;var _o="CollapsibleContent",fl=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=No(_o,e.__scopeCollapsible);return d.jsx(Ye,{present:r||o.open,children:({present:s})=>d.jsx(Ch,{...n,ref:t,present:s})})});fl.displayName=_o;var Ch=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...s}=e,a=No(_o,r),[i,c]=l.useState(n),u=l.useRef(null),f=de(t,u),p=l.useRef(0),g=p.current,v=l.useRef(0),w=v.current,m=a.open||i,x=l.useRef(m),y=l.useRef(void 0);return l.useEffect(()=>{const h=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(h)},[]),he(()=>{const h=u.current;if(h){y.current=y.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const C=h.getBoundingClientRect();p.current=C.height,v.current=C.width,x.current||(h.style.transitionDuration=y.current.transitionDuration,h.style.animationName=y.current.animationName),c(n)}},[a.open,n]),d.jsx(U.div,{"data-state":Io(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...s,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:m&&o})});function Io(e){return e?"open":"closed"}var Sh=ll,Eh=dl,Ph=fl,Oe="Accordion",Rh=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Oo,kh,Th]=Xn(Oe),[rn,Kb]=ke(Oe,[Th,cl]),jo=cl(),pl=P.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,s=n;return d.jsx(Oo.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?d.jsx(Ih,{...s,ref:t}):d.jsx(_h,{...o,ref:t})})});pl.displayName=Oe;var[ml,Ah]=rn(Oe),[gl,Nh]=rn(Oe,{collapsible:!1}),_h=P.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:s=!1,...a}=e,[i,c]=Ee({prop:r,defaultProp:n??"",onChange:o,caller:Oe});return d.jsx(ml,{scope:e.__scopeAccordion,value:P.useMemo(()=>i?[i]:[],[i]),onItemOpen:c,onItemClose:P.useCallback(()=>s&&c(""),[s,c]),children:d.jsx(gl,{scope:e.__scopeAccordion,collapsible:s,children:d.jsx(vl,{...a,ref:t})})})}),Ih=P.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Ee({prop:r,defaultProp:n??[],onChange:o,caller:Oe}),c=P.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=P.useCallback(f=>i((p=[])=>p.filter(g=>g!==f)),[i]);return d.jsx(ml,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:d.jsx(gl,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(vl,{...s,ref:t})})})}),[Oh,nn]=rn(Oe),vl=P.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:s="vertical",...a}=e,i=P.useRef(null),c=de(i,t),u=kh(r),p=Fr(o)==="ltr",g=Z(e.onKeyDown,v=>{var T;if(!Rh.includes(v.key))return;const w=v.target,m=u().filter(H=>{var K;return!((K=H.ref.current)!=null&&K.disabled)}),x=m.findIndex(H=>H.ref.current===w),y=m.length;if(x===-1)return;v.preventDefault();let h=x;const C=0,S=y-1,k=()=>{h=x+1,h>S&&(h=C)},N=()=>{h=x-1,h<C&&(h=S)};switch(v.key){case"Home":h=C;break;case"End":h=S;break;case"ArrowRight":s==="horizontal"&&(p?k():N());break;case"ArrowDown":s==="vertical"&&k();break;case"ArrowLeft":s==="horizontal"&&(p?N():k());break;case"ArrowUp":s==="vertical"&&N();break}const _=h%y;(T=m[_].ref.current)==null||T.focus()});return d.jsx(Oh,{scope:r,disabled:n,direction:o,orientation:s,children:d.jsx(Oo.Slot,{scope:r,children:d.jsx(U.div,{...a,"data-orientation":s,ref:c,onKeyDown:n?void 0:g})})})}),Nr="AccordionItem",[jh,Do]=rn(Nr),hl=P.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,s=nn(Nr,r),a=Ah(Nr,r),i=jo(r),c=ve(),u=n&&a.value.includes(n)||!1,f=s.disabled||e.disabled;return d.jsx(jh,{scope:r,open:u,disabled:f,triggerId:c,children:d.jsx(Sh,{"data-orientation":s.orientation,"data-state":Sl(u),...i,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?a.onItemOpen(n):a.onItemClose(n)}})})});hl.displayName=Nr;var xl="AccordionHeader",bl=P.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nn(Oe,r),s=Do(xl,r);return d.jsx(U.h3,{"data-orientation":o.orientation,"data-state":Sl(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});bl.displayName=xl;var Kn="AccordionTrigger",yl=P.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nn(Oe,r),s=Do(Kn,r),a=Nh(Kn,r),i=jo(r);return d.jsx(Oo.ItemSlot,{scope:r,children:d.jsx(Eh,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...i,...n,ref:t})})});yl.displayName=Kn;var wl="AccordionContent",Cl=P.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nn(Oe,r),s=Do(wl,r),a=jo(r);return d.jsx(Ph,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Cl.displayName=wl;function Sl(e){return e?"open":"closed"}var Dh=pl,Mh=hl,Fh=bl,$h=yl,Lh=Cl;function Vh({...e}){return d.jsx(Dh,{"data-slot":"accordion",...e})}function Bh({className:e,...t}){return d.jsx(Mh,{"data-slot":"accordion-item",className:$("border-b last:border-b-0 dark:border-border",e),...t})}function Wh({className:e,children:t,...r}){return d.jsx(Fh,{className:"flex",children:d.jsxs($h,{"data-slot":"accordion-trigger",className:$("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",e),...r,children:[t,d.jsx(fo,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function zh({className:e,children:t,...r}){return d.jsx(Lh,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground",...r,children:d.jsx("div",{className:$("pt-0 pb-4",e),children:t})})}var Gh=e=>e.type==="checkbox",Ut=e=>e instanceof Date,Mo=e=>e==null;const El=e=>typeof e=="object";var vt=e=>!Mo(e)&&!Array.isArray(e)&&El(e)&&!Ut(e),Hh=e=>vt(e)&&e.target?Gh(e.target)?e.target.checked:e.target.value:e,Uh=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Kh=(e,t)=>e.has(Uh(t)),Yh=e=>{const t=e.constructor&&e.constructor.prototype;return vt(t)&&t.hasOwnProperty("isPrototypeOf")},qh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Pl(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(qh&&(e instanceof Blob||n))&&(r||vt(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Yh(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Pl(e[o]));else return e;return t}var Rl=e=>/^\w*$/.test(e),Yn=e=>e===void 0,Xh=e=>Array.isArray(e)?e.filter(Boolean):[],kl=e=>Xh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),we=(e,t,r)=>{if(!t||!vt(e))return r;const n=(Rl(t)?[t]:kl(t)).reduce((o,s)=>Mo(o)?o:o[s],e);return Yn(n)||n===e?Yn(e[t])?r:e[t]:n},Rn=e=>typeof e=="boolean",Bs=(e,t,r)=>{let n=-1;const o=Rl(t)?[t]:kl(t),s=o.length,a=s-1;for(;++n<s;){const i=o[n];let c=r;if(n!==a){const u=e[i];c=vt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=c,e=e[i]}};const Ws={BLUR:"blur",CHANGE:"change"},zs={all:"all"},Fo=P.createContext(null);Fo.displayName="HookFormContext";const ar=()=>P.useContext(Fo),Zh=e=>{const{children:t,...r}=e;return P.createElement(Fo.Provider,{value:r},t)};var Jh=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==zs.all&&(t._proxyFormState[a]=!n||zs.all),r&&(r[a]=!0),e[a]}});return o};const Tl=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Al(e){const t=ar(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,i]=P.useState(r._formState),c=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Tl(()=>r._subscribe({name:o,formState:c.current,exact:s,callback:u=>{!n&&i({...r._formState,...u})}}),[o,n,s]),P.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),P.useMemo(()=>Jh(a,r,c.current,!1),[a,r])}var Qh=e=>typeof e=="string",ex=(e,t,r,n,o)=>Qh(e)?we(r,e,o):Array.isArray(e)?e.map(s=>we(r,s)):r,Gs=e=>Mo(e)||!El(e);function Nl(e,t,r=new WeakSet){if(Gs(e)||Gs(t))return e===t;if(Ut(e)&&Ut(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const i=t[s];if(Ut(a)&&Ut(i)||vt(a)&&vt(i)||Array.isArray(a)&&Array.isArray(i)?!Nl(a,i,r):a!==i)return!1}}return!0}function tx(e){const t=ar(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:i}=e||{},c=P.useRef(o),u=P.useRef(i),f=P.useRef(void 0);u.current=i;const p=P.useMemo(()=>r._getWatch(n,c.current),[r,n]),[g,v]=P.useState(u.current?u.current(p):p);return Tl(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:w=>{if(!s){const m=ex(n,r._names,w.values||r._formValues,!1,c.current);if(u.current){const x=u.current(m);Nl(x,f.current)||(v(x),f.current=x)}else v(m)}}}),[r,s,n,a]),P.useEffect(()=>r._removeUnmounted()),g}function rx(e){const t=ar(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,i=Kh(o._names.array,r),c=P.useMemo(()=>we(o._formValues,r,we(o._defaultValues,r,a)),[o,r,a]),u=tx({control:o,name:r,defaultValue:c,exact:!0}),f=Al({control:o,name:r,exact:!0}),p=P.useRef(e),g=P.useRef(o.register(r,{...e.rules,value:u,...Rn(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const v=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!we(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!we(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!we(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!we(f.validatingFields,r)},error:{enumerable:!0,get:()=>we(f.errors,r)}}),[f,r]),w=P.useCallback(h=>g.current.onChange({target:{value:Hh(h),name:r},type:Ws.CHANGE}),[r]),m=P.useCallback(()=>g.current.onBlur({target:{value:we(o._formValues,r),name:r},type:Ws.BLUR}),[r,o._formValues]),x=P.useCallback(h=>{const C=we(o._fields,r);C&&h&&(C._f.ref={focus:()=>h.focus&&h.focus(),select:()=>h.select&&h.select(),setCustomValidity:S=>h.setCustomValidity(S),reportValidity:()=>h.reportValidity()})},[o._fields,r]),y=P.useMemo(()=>({name:r,value:u,...Rn(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:w,onBlur:m,ref:x}),[r,n,f.disabled,w,m,x,u]);return P.useEffect(()=>{const h=o._options.shouldUnregister||s;o.register(r,{...p.current.rules,...Rn(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(S,k)=>{const N=we(o._fields,S);N&&N._f&&(N._f.mount=k)};if(C(r,!0),h){const S=Pl(we(o._options.defaultValues,r));Bs(o._defaultValues,r,S),Yn(we(o._formValues,r))&&Bs(o._formValues,r,S)}return!i&&o.register(r),()=>{(i?h&&!o._state.action:h)?o.unregister(r):C(r,!1)}},[r,o,i,s]),P.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),P.useMemo(()=>({field:y,formState:f,fieldState:v}),[y,f,v])}const nx=e=>e.render(rx(e)),_l=P.createContext(void 0),Il=e=>{const{methods:t,disabled:r,children:n}=e;return d.jsx(_l.Provider,{value:{disabled:r},children:d.jsx(Zh,{...t,children:n})})},Ol=()=>{const e=P.useContext(_l),t=ar();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},ox=({type:e="button",...t})=>{const r=()=>e==="submit"||e==="reset"?"default":"outline";return d.jsx(Mr,{type:e,variant:r(),...t})};var jl={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Hs=P.createContext&&P.createContext(jl),sx=["attr","size","title"];function ax(e,t){if(e==null)return{};var r=ix(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ix(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_r.apply(this,arguments)}function Us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Us(Object(r),!0).forEach(function(n){cx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Us(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cx(e,t,r){return t=lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(e){var t=ux(e,"string");return typeof t=="symbol"?t:t+""}function ux(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dl(e){return e&&e.map((t,r)=>P.createElement(t.tag,Ir({key:r},t.attr),Dl(t.child)))}function Ml(e){return t=>P.createElement(dx,_r({attr:Ir({},e.attr)},t),Dl(e.child))}function dx(e){var t=r=>{var{attr:n,size:o,title:s}=e,a=ax(e,sx),i=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),P.createElement("svg",_r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:Ir(Ir({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&P.createElement("title",null,s),e.children)};return Hs!==void 0?P.createElement(Hs.Consumer,null,r=>t(r)):t(jl)}function fx(e){return Ml({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var px="Label",Fl=l.forwardRef((e,t)=>d.jsx(U.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Fl.displayName=px;var mx=Fl;function gx({className:e,...t}){return d.jsx(mx,{"data-slot":"label",className:$("flex items-center text-purple-mutted-300 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 $l=l.createContext({}),vx=({...e})=>d.jsx($l.Provider,{value:{name:e.name},children:d.jsx(nx,{...e})}),on=()=>{const e=l.useContext($l),t=l.useContext(Ll),{getFieldState:r}=ar(),n=Al({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},Ll=l.createContext({});function hx({className:e,...t}){const r=l.useId();return d.jsx(Ll.Provider,{value:{id:r},children:d.jsx("div",{"data-slot":"form-item",className:$("grid gap-2",e),...t})})}function xx({className:e,...t}){const{error:r,formItemId:n}=on();return d.jsx(gx,{"data-slot":"form-label","data-error":!!r,className:$("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:n,...t})}function bx({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=on();return d.jsx(fa,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function yx({className:e,...t}){const{formDescriptionId:r}=on();return d.jsx("p",{"data-slot":"form-description",id:r,className:$("text-purple-mutted-300 text-sm",e),...t})}function wx({className:e,...t}){const{error:r,formMessageId:n}=on(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?d.jsx("p",{"data-slot":"form-message",id:n,className:$("text-destructive text-sm",e),...t,children:o}):null}const $o=e=>t=>{const{name:r,label:n,description:o,tooltip:s,...a}=t,{control:i,disabled:c}=Ol(),u=()=>s?d.jsxs(sl,{children:[d.jsx(al,{asChild:!0,children:d.jsx(fx,{size:16})}),d.jsx(il,{children:d.jsx("p",{children:s})})]}):d.jsx(d.Fragment,{}),f=()=>o?d.jsx(yx,{children:o}):d.jsx(d.Fragment,{});return d.jsx(vx,{control:i,name:r,render:({field:p})=>d.jsxs(hx,{className:"flex flex-col gap-1.5",children:[n&&d.jsx(xx,{children:d.jsxs("span",{className:"flex items-center gap-1",children:[n,!!s&&u()]})}),d.jsx(bx,{children:d.jsx(e,{...p,...a,disabled:c})}),!!o&&f(),d.jsx(wx,{})]})})},Cx=$o(da),Vl=P.forwardRef(({options:e,placeholder:t,value:r,onChange:n,disabled:o},s)=>{var c;const a=u=>{n&&n({target:{value:u}})},i=u=>d.jsx(ho,{value:u.value,disabled:u.disabled,children:d.jsxs("div",{className:"flex flex-col",children:[u.label,u.subLabel&&d.jsx("span",{className:"text-xs text-muted-foreground",style:{overflowWrap:"anywhere"},children:u.subLabel})]})},u.value);return d.jsxs(ji,{value:r,onValueChange:a,disabled:o,children:[d.jsx(po,{ref:s,children:d.jsx(Di,{placeholder:t,children:r&&((c=e.find(u=>u.value===r))==null?void 0:c.label)})}),d.jsx(vo,{children:e.map(i)})]})});Vl.displayName="BaseSelectComponent";const Sx=$o(Vl),Ex=P.forwardRef((e,t)=>{const{options:r=[],placeholder:n,value:o,onChange:s=()=>{},disabled:a,searchPlaceholder:i,emptyText:c}=e,u=f=>{s({target:{value:f}})};return d.jsx(So,{ref:t,options:r,value:o,onValueChange:u,placeholder:n,searchPlaceholder:i,emptyText:c,disabled:a})}),Px=$o(Ex),Rx=e=>d.jsx("hr",{className:"w-full h-px border-purple-mutted-500",...e}),kx=({children:e,description:t,className:r})=>d.jsxs("div",{className:$("space-y-1",r),children:[d.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&d.jsx("span",{className:"text-sm text-purple-mutted-300",children:t})]}),ht=e=>{const{className:t,disabled:r=!1,methods:n,onSubmit:o=()=>{},...s}=e,{handleSubmit:a}=n,i=$("flex flex-col gap-6",{},t);return d.jsx(Il,{methods:n,disabled:r,children:d.jsx("form",{className:i,onSubmit:a(o),...s})})};ht.Button=ox;ht.Input=Cx;ht.Select=Sx;ht.Combobox=Px;ht.Divider=Rx;ht.Title=kx;function Tx(e){return e==null?[]:Array.isArray(e)?e:[e]}var Ax=e=>Array.from(Array(e).keys()),Ks=e=>(e==null?void 0:e.constructor.name)==="Array",Nx=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Lo(e[r],t[r]))return!1;return!0},Lo=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Ks(e)&&Ks(t))return Nx(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const s=r[o];if(!Lo(e[s],t[s]))return!1}return!0},_x=e=>e!=null&&typeof e=="object",wr=e=>typeof e=="string",Kt=e=>typeof e=="function",Ix=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ox=e=>Object.prototype.toString.call(e),Bl=Function.prototype.toString,jx=Bl.call(Object),Dx=e=>{if(!_x(e)||Ox(e)!="[object Object]"||$x(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Ix(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Bl.call(r)==jx},Mx=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Fx=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,$x=e=>Mx(e)||Fx(e),Lx=e=>e(),Vx=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},Bx=e=>Number.isNaN(e),Wx=e=>Bx(e)?0:e,zx=(e,t,r)=>{const n=Wx(e),o=n>=t,s=r==null||n<=r;return o&&s};function Wl(e){if(!Dx(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Wl(o))}return r}function Ys(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function Gx(e,t){if(e==null)throw new Error(t())}var zl=e=>typeof e=="object"&&e!==null,Me=e=>e?"":void 0,Hx=9,Ux=e=>zl(e)&&e.nodeType===Hx,Kx=e=>zl(e)&&e===e.window;function Yx(e){if(!e)return!1;const t=e.getRootNode();return Gl(t)===e}function qx(e){return Ux(e)?e:Kx(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function Gl(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var Xx=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),Zx=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,qs=e=>{const t={};let r;for(;r=Zx.exec(e);)t[r[1]]=r[2];return t},Jx=(e,t)=>{if(wr(e)){if(wr(t))return`${e};${t}`;e=qs(e)}else wr(t)&&(t=qs(t));return Object.assign({},e??{},t??{})};function je(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=Vx(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=Xx(t[o],r[o]);continue}if(o==="style"){t[o]=Jx(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function Qx(e,t,r){let n=[],o;return s=>{const a=e(s);return(a.length!==n.length||a.some((c,u)=>!Lo(n[u],c)))&&(n=a,o=t(a,s)),o}}var kt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(kt||{}),kn="__init__";function eb(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},r=()=>qx(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>Gl(t()),isActiveElement:Yx,getById:a=>t().getElementById(a)}}function tb(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var rb=()=>e=>Array.from(new Set(e)),Hl=typeof globalThis.document<"u"?P.useLayoutEffect:P.useEffect;function Or(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=P.useState(t),[o,s]=P.useState(n),a=e().value!==void 0,i=P.useRef(o);i.current=a?e().value:o;const c=P.useRef(i.current);Hl(()=>{c.current=i.current},[o,e().value]);const u=p=>{var w,m;const g=c.current,v=Kt(p)?p(g):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:v,prev:g}),a||s(v),r(v,g)||(m=(w=e()).onChange)==null||m.call(w,v,g)};function f(){return a?e().value:o}return{initial:n,ref:i,get:f,set(p){(e().sync?Jt.flushSync:Lx)(()=>u(p))},invoke(p,g){var v,w;(w=(v=e()).onChange)==null||w.call(v,p,g)},hash(p){var g,v;return((v=(g=e()).hash)==null?void 0:v.call(g,p))??String(p)}}}Or.cleanup=e=>{P.useEffect(()=>e,[])};Or.ref=e=>{const t=P.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function nb(e){const t=P.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var ob=(e,t)=>{const r=P.useRef(!1),n=P.useRef(!1);P.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),P.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function sb(e,t={}){var ee,J,Y,z;const r=P.useMemo(()=>{const{id:j,ids:A,getRootNode:D}=t;return eb({id:j,ids:A,getRootNode:D})},[t]),n=(...j)=>{e.debug&&console.log(...j)},o=((ee=e.props)==null?void 0:ee.call(e,{props:Wl(t),scope:r}))??t,s=ab(o),a=(J=e.context)==null?void 0:J.call(e,{prop:s,bindable:Or,scope:r,flush:Xs,getContext(){return c},getComputed(){return k},getRefs(){return m},getEvent(){return v()}}),i=Ul(a),c={get(j){var A;return(A=i.current)==null?void 0:A[j].ref.current},set(j,A){var D;(D=i.current)==null||D[j].set(A)},initial(j){var A;return(A=i.current)==null?void 0:A[j].initial},hash(j){var D,E;const A=(D=i.current)==null?void 0:D[j].get();return(E=i.current)==null?void 0:E[j].hash(A)}},u=P.useRef(new Map),f=P.useRef(null),p=P.useRef(null),g=P.useRef({type:""}),v=()=>({...g.current,current(){return g.current},previous(){return p.current}}),w=()=>({...N,matches(...j){return j.includes(N.ref.current)},hasTag(j){var A,D;return!!((D=(A=e.states[N.ref.current])==null?void 0:A.tags)!=null&&D.includes(j))}}),m=nb(((Y=e.refs)==null?void 0:Y.call(e,{prop:s,context:c}))??{}),x=()=>({state:w(),context:c,event:v(),prop:s,send:K,action:y,guard:h,track:ob,refs:m,computed:k,flush:Xs,scope:r,choose:S}),y=j=>{const A=Kt(j)?j(x()):j;if(!A)return;const D=A.map(E=>{var oe,le;const G=(le=(oe=e.implementations)==null?void 0:oe.actions)==null?void 0:le[E];return G||Ys(`[zag-js] No implementation found for action "${JSON.stringify(E)}"`),G});for(const E of D)E==null||E(x())},h=j=>{var A,D;return Kt(j)?j(x()):(D=(A=e.implementations)==null?void 0:A.guards)==null?void 0:D[j](x())},C=j=>{const A=Kt(j)?j(x()):j;if(!A)return;const D=A.map(G=>{var le,R;const oe=(R=(le=e.implementations)==null?void 0:le.effects)==null?void 0:R[G];return oe||Ys(`[zag-js] No implementation found for effect "${JSON.stringify(G)}"`),oe}),E=[];for(const G of D){const oe=G==null?void 0:G(x());oe&&E.push(oe)}return()=>E.forEach(G=>G==null?void 0:G())},S=j=>Tx(j).find(A=>{let D=!A.guard;return wr(A.guard)?D=!!h(A.guard):Kt(A.guard)&&(D=A.guard(x())),D}),k=j=>{Gx(e.computed,()=>"[zag-js] No computed object found on machine");const A=e.computed[j];return A({context:c,event:v(),prop:s,refs:m,scope:r,computed:k})},N=Or(()=>({defaultValue:e.initialState({prop:s}),onChange(j,A){var E,G,oe,le;if(A){const R=u.current.get(A);R==null||R(),u.current.delete(A)}A&&y((E=e.states[A])==null?void 0:E.exit),y((G=f.current)==null?void 0:G.actions);const D=C((oe=e.states[j])==null?void 0:oe.effects);if(D&&u.current.set(j,D),A===kn){y(e.entry);const R=C(e.effects);R&&u.current.set(kn,R)}y((le=e.states[j])==null?void 0:le.entry)}})),_=P.useRef(void 0),T=P.useRef(kt.NotStarted);Hl(()=>{queueMicrotask(()=>{const D=T.current===kt.Started;T.current=kt.Started,n(D?"rehydrating...":"initializing...");const E=_.current??N.initial;N.invoke(E,D?N.get():kn)});const j=u.current,A=N.ref.current;return()=>{n("unmounting..."),_.current=A,T.current=kt.Stopped,j.forEach(D=>D==null?void 0:D()),u.current=new Map,f.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const H=()=>"ref"in N?N.ref.current:N.get(),K=j=>{queueMicrotask(()=>{var le,R;if(T.current!==kt.Started)return;p.current=g.current,g.current=j;let A=H();const D=((le=e.states[A].on)==null?void 0:le[j.type])??((R=e.on)==null?void 0:R[j.type]),E=S(D);if(!E)return;f.current=E;const G=E.target??A;n("transition",j.type,E.target||A,`(${E.actions})`);const oe=G!==A;oe?Jt.flushSync(()=>N.set(G)):E.reenter&&!oe?N.invoke(A,A):y(E.actions??[])})};return(z=e.watch)==null||z.call(e,x()),{state:w(),send:K,context:c,prop:s,scope:r,refs:m,computed:k,event:v(),getStatus:()=>T.current}}function Ul(e){const t=P.useRef(e);return t.current=e,t}function ab(e){const t=Ul(e);return function(n){return t.current[n]}}function Xs(e){queueMicrotask(()=>{Jt.flushSync(()=>e())})}var ib=tb(e=>e);function cb(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function lb(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Tn=e=>{const t=P.memo(P.forwardRef((r,n)=>{const{asChild:o,children:s,...a}=r;if(!o)return P.createElement(e,{...a,ref:n},s);if(!P.isValidElement(s))return null;const i=P.Children.only(s),c=lb(i);return P.cloneElement(i,{...je(a,i.props),ref:n?cb(n,c):c})}));return t.displayName=e.displayName||e.name,t},ub=()=>{const e=new Map;return new Proxy(Tn,{apply(t,r,n){return Tn(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Tn(n)),e.get(n)}})},ze=ub();function db(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ir(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,i=P.createContext(a);i.displayName=t;function c(){var f;const u=P.useContext(i);if(!u&&r){const p=new Error(s??db(n,o));throw p.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,p,c),p}return u}return[i.Provider,c,i]}const[fb,qe]=ir({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),Kl=P.forwardRef((e,t)=>{const r=qe(),n=je(r.getContentProps({index:r.count}),e);return d.jsx(ze.div,{...n,ref:t})});Kl.displayName="StepsCompletedContent";const Vo=()=>(e,t)=>t.reduce((r,n)=>{const[o,s]=r,a=n;return s[a]!==void 0&&(o[a]=s[a]),delete s[a],[o,s]},[{},{...e}]),Yl=P.forwardRef((e,t)=>{const[r,n]=Vo()(e,["index"]),o=qe(),s=je(o.getContentProps(r),n);return d.jsx(ze.div,{...s,ref:t})});Yl.displayName="StepsContent";const[pb,Bo]=ir({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),ql=P.forwardRef((e,t)=>{const r=qe(),n=Bo(),o=je(r.getIndicatorProps(n),e);return d.jsx(ze.div,{...o,ref:t})});ql.displayName="StepsIndicator";const[mb,Yb]=ir({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),Xl=P.forwardRef((e,t)=>{const[r,n]=Vo()(e,["index"]),o=qe(),s=je(o.getItemProps(r),n),a=o.getItemState(r);return d.jsx(pb,{value:r,children:d.jsx(mb,{value:a,children:d.jsx(ze.div,{...s,ref:t})})})});Xl.displayName="StepsItem";const Zl=P.forwardRef((e,t)=>{const r=qe(),n=je(r.getListProps(),e);return d.jsx(ze.div,{...n,ref:t})});Zl.displayName="StepsList";const Jl=P.forwardRef((e,t)=>{const r=qe(),n=je(r.getNextTriggerProps(),e);return d.jsx(ze.button,{...n,ref:t})});Jl.displayName="StepsNextTrigger";const Ql=P.forwardRef((e,t)=>{const r=qe(),n=je(r.getPrevTriggerProps(),e);return d.jsx(ze.button,{...n,ref:t})});Ql.displayName="StepsPrevTrigger";var Yt=(e,t=[])=>({parts:(...r)=>{if(gb(t))return Yt(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>Yt(e,[...t,...r]),omit:(...r)=>Yt(e,t.filter(n=>!r.includes(n))),rename:r=>Yt(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Et(e)}"][data-part="${Et(n)}"]`,`& [data-scope="${Et(e)}"][data-part="${Et(n)}"]`].join(", "),attrs:{"data-scope":Et(e),"data-part":Et(n)}}}),{})}),Et=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),gb=e=>e.length===0,vb=Yt("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),Fe=vb.build(),hb=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},xb=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},Zs=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},bb=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function yb(e,t){const{context:r,send:n,computed:o,prop:s,scope:a}=e,i=r.get("step"),c=s("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),g=y=>({triggerId:Zs(a,y.index),contentId:bb(a,y.index),current:y.index===i,completed:y.index<i,incomplete:y.index>i,index:y.index,first:y.index===0,last:y.index===c-1}),v=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},w=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},m=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},x=y=>{n({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:i,count:c,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:v,goToPrevStep:w,resetStep:m,getItemState:g,setStep:x,getRootProps(){return t.element({...Fe.root.attrs,id:hb(a),dir:s("dir"),"data-orientation":s("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const h=Ax(c).map((C,S)=>Zs(a,S));return t.element({...Fe.list.attrs,dir:s("dir"),id:xb(a),role:"tablist","aria-owns":h.join(" "),"aria-orientation":s("orientation"),"data-orientation":s("orientation")})},getItemProps(y){const h=g(y);return t.element({...Fe.item.attrs,dir:s("dir"),"aria-current":h.current?"step":void 0,"data-orientation":s("orientation")})},getTriggerProps(y){const h=g(y);return t.button({...Fe.trigger.attrs,id:h.triggerId,role:"tab",dir:s("dir"),tabIndex:!s("linear")||h.current?0:-1,"aria-selected":h.current,"aria-controls":h.contentId,"data-state":h.current?"open":"closed","data-orientation":s("orientation"),"data-complete":Me(h.completed),"data-current":Me(h.current),"data-incomplete":Me(h.incomplete),onClick(C){C.defaultPrevented||s("linear")||n({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const h=g(y);return t.element({...Fe.content.attrs,dir:s("dir"),id:h.contentId,role:"tabpanel",tabIndex:0,hidden:!h.current,"data-state":h.current?"open":"closed","data-orientation":s("orientation"),"aria-labelledby":h.triggerId})},getIndicatorProps(y){const h=g(y);return t.element({...Fe.indicator.attrs,dir:s("dir"),"aria-hidden":!0,"data-complete":Me(h.completed),"data-current":Me(h.current),"data-incomplete":Me(h.incomplete)})},getSeparatorProps(y){const h=g(y);return t.element({...Fe.separator.attrs,dir:s("dir"),"data-orientation":s("orientation"),"data-complete":Me(h.completed),"data-current":Me(h.current),"data-incomplete":Me(h.incomplete)})},getNextTriggerProps(){return t.button({...Fe.nextTrigger.attrs,dir:s("dir"),type:"button",disabled:!f,onClick(y){y.defaultPrevented||v()}})},getPrevTriggerProps(){return t.button({dir:s("dir"),...Fe.prevTrigger.attrs,type:"button",disabled:!p,onClick(y){y.defaultPrevented||w()}})},getProgressProps(){return t.element({dir:s("dir"),...Fe.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":Me(u===100)})}}}var wb={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,s;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((s=e("onStepComplete"))==null||s())}}))}},computed:{percent:Qx(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){Cb(t("count"),e.get("step"))}}}},Cb=(e,t)=>{if(!zx(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};rb()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[qb,Sb]=ir({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[Xb,Eb]=ir({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function Pb(e){const t=P.useId(),{getRootNode:r}=Sb(),{dir:n}=Eb(),o={id:t,dir:n,getRootNode:r,...e},s=sb(wb,o);return yb(s,ib)}const eu=P.forwardRef((e,t)=>{const[r,n]=Vo()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=Pb(r),s=je(o.getRootProps(),n);return d.jsx(fb,{value:o,children:d.jsx(ze.div,{...s,ref:t})})});eu.displayName="StepsRoot";const tu=P.forwardRef((e,t)=>{const r=qe(),n=Bo(),o=je(r.getSeparatorProps(n),e);return d.jsx(ze.div,{...o,ref:t})});tu.displayName="StepsSeparator";const ru=P.forwardRef((e,t)=>{const r=qe(),n=Bo(),o=je(r.getTriggerProps(n),e);return d.jsx(ze.button,{...o,ref:t})});ru.displayName="StepsTrigger";function Rb(e){return Ml({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const nu=P.createContext(void 0),kb=({children:e,step:t})=>d.jsx(nu.Provider,{value:{step:t},children:e}),ou=()=>{const e=P.useContext(nu);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},Tb=({className:e,step:t,...r})=>{const n=$("flex flex-col gap-4",e);return d.jsx(kb,{step:t??0,children:d.jsx(eu,{className:n,step:t,...r})})},Ab=({className:e,...t})=>{const r=$("flex flex-row gap-4",e);return d.jsx(Zl,{className:r,...t})},Nb=({className:e,...t})=>{const r=$("flex flex-row items-center gap-4",e);return d.jsx(Xl,{className:r,...t})},_b=({className:e,...t})=>{const r=$("flex flex-row items-center gap-4 text-purple-mutted-100 text-sm",e);return d.jsx(ru,{className:r,...t})},Ib=({index:e,className:t,...r})=>{const{step:n}=ou(),o=e===n,s=e<n,a=$("flex items-center justify-center w-8 h-8 rounded-full text-white",s&&"bg-green-700",o&&"bg-green-600",!s&&!o&&"bg-purple-mutted-500",t),i=$({"text-white":o,"text-purple-mutted-300":!s&&e!==n});return d.jsx(ql,{className:a,...r,children:s?d.jsx(Rb,{className:"text-green-400"}):d.jsx("span",{className:i,children:e+1})})},Ob=({index:e,className:t,...r})=>{const{step:n}=ou(),o=e<n,s=$("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return d.jsx(tu,{className:s,...r})},jb=({className:e,...t})=>{const r=$(e);return d.jsx(Yl,{className:r,...t})},Db=({className:e,...t})=>{const r=$(e);return d.jsx(Kl,{className:r,...t})},Mb=({className:e,...t})=>{const r=$("bg-primary text-white px-4 py-2 rounded-md",e);return d.jsx(Ql,{className:r,...t})},Fb=({className:e,...t})=>{const r=$("bg-primary text-white px-4 py-2 rounded-md",e);return d.jsx(Jl,{className:r,...t})},$b={Root:Tb,List:Ab,Item:Nb,Trigger:_b,Indicator:Ib,Separator:Ob,Content:jb,CompletedContent:Db,PrevTrigger:Mb,NextTrigger:Fb};exports.Accordion=Vh;exports.AccordionContent=zh;exports.AccordionItem=Bh;exports.AccordionTrigger=Wh;exports.Badge=av;exports.Button=Mr;exports.Card=iv;exports.CardAction=dv;exports.CardContent=fv;exports.CardDescription=uv;exports.CardFooter=pv;exports.CardHeader=cv;exports.CardTitle=lv;exports.Combobox=So;exports.Dialog=Tg;exports.DialogClose=Ng;exports.DialogContent=_g;exports.DialogDescription=Dg;exports.DialogFooter=Og;exports.DialogHeader=Ig;exports.DialogOverlay=mc;exports.DialogPortal=pc;exports.DialogTitle=jg;exports.DialogTrigger=Ag;exports.Form=ht;exports.FormProvider=Il;exports.Input=da;exports.Progress=Cv;exports.Select=ji;exports.SelectContent=vo;exports.SelectGroup=Wm;exports.SelectItem=ho;exports.SelectLabel=Mi;exports.SelectScrollDownButton=go;exports.SelectScrollUpButton=mo;exports.SelectSeparator=Fi;exports.SelectTrigger=po;exports.SelectValue=Di;exports.Skeleton=Sv;exports.Steps=$b;exports.Switch=Nv;exports.Toggle=Iv;exports.ToggleGroup=Zv;exports.ToggleGroupItem=Jv;exports.Tooltip=sl;exports.TooltipContent=il;exports.TooltipProvider=ol;exports.TooltipTrigger=al;exports.borderRadius=Au;exports.cn=$;exports.colors=ku;exports.spacing=Tu;exports.typography=Nu;exports.useFormContext=Ol;
130
130
  //# sourceMappingURL=index.cjs.js.map