@mriqbox/ui-kit 1.0.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.
Files changed (35) hide show
  1. package/README.md +71 -0
  2. package/dist/components/ui/Badge.d.ts +9 -0
  3. package/dist/components/ui/Badge.stories.d.ts +23 -0
  4. package/dist/components/ui/Button.d.ts +11 -0
  5. package/dist/components/ui/Button.stories.d.ts +14 -0
  6. package/dist/components/ui/ButtonGroup.d.ts +12 -0
  7. package/dist/components/ui/ButtonGroup.stories.d.ts +8 -0
  8. package/dist/components/ui/Card.d.ts +8 -0
  9. package/dist/components/ui/Card.stories.d.ts +15 -0
  10. package/dist/components/ui/Command.d.ts +78 -0
  11. package/dist/components/ui/Command.stories.d.ts +6 -0
  12. package/dist/components/ui/Dialog.d.ts +7 -0
  13. package/dist/components/ui/Dialog.stories.d.ts +6 -0
  14. package/dist/components/ui/Icons.d.ts +35 -0
  15. package/dist/components/ui/Icons.stories.d.ts +5 -0
  16. package/dist/components/ui/Input.d.ts +2 -0
  17. package/dist/components/ui/Input.stories.d.ts +24 -0
  18. package/dist/components/ui/Modal.d.ts +6 -0
  19. package/dist/components/ui/Modal.stories.d.ts +6 -0
  20. package/dist/components/ui/PageHeader.d.ts +11 -0
  21. package/dist/components/ui/PageHeader.stories.d.ts +8 -0
  22. package/dist/components/ui/Popover.d.ts +6 -0
  23. package/dist/components/ui/Popover.stories.d.ts +6 -0
  24. package/dist/components/ui/SelectSearch.d.ts +16 -0
  25. package/dist/components/ui/SelectSearch.stories.d.ts +6 -0
  26. package/dist/components/ui/Sidebar.d.ts +20 -0
  27. package/dist/components/ui/Sidebar.stories.d.ts +6 -0
  28. package/dist/components/ui/Table.d.ts +10 -0
  29. package/dist/components/ui/Table.stories.d.ts +6 -0
  30. package/dist/index.d.ts +15 -0
  31. package/dist/index.es.js +7060 -0
  32. package/dist/index.umd.js +114 -0
  33. package/dist/lib/utils.d.ts +3 -0
  34. package/dist/style.css +1 -0
  35. package/package.json +63 -0
@@ -0,0 +1,114 @@
1
+ (function(O,le){typeof exports=="object"&&typeof module<"u"?le(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],le):(O=typeof globalThis<"u"?globalThis:O||self,le(O.MriUiKit={},O.React,O.ReactDOM))})(this,function(O,le,Zr){"use strict";function Jr(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=Jr(le),Qr=Jr(Zr);var Jt={exports:{}},pt={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var en;function Wi(){if(en)return pt;en=1;var e=le,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,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,u,c){var d,p={},h=null,v=null;c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(v=u.ref);for(d in u)n.call(u,d)&&!i.hasOwnProperty(d)&&(p[d]=u[d]);if(a&&a.defaultProps)for(d in u=a.defaultProps,u)p[d]===void 0&&(p[d]=u[d]);return{$$typeof:t,type:a,key:h,ref:v,props:p,_owner:o.current}}return pt.Fragment=r,pt.jsx=s,pt.jsxs=s,pt}var mt={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var tn;function $i(){return tn||(tn=1,process.env.NODE_ENV!=="production"&&function(){var e=le,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,g="@@iterator";function b(f){if(f===null||typeof f!="object")return null;var C=y&&f[y]||f[g];return typeof C=="function"?C:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(f){{for(var C=arguments.length,A=new Array(C>1?C-1:0),M=1;M<C;M++)A[M-1]=arguments[M];P("error",f,A)}}function P(f,C,A){{var M=w.ReactDebugCurrentFrame,q=M.getStackAddendum();q!==""&&(C+="%s",A=A.concat([q]));var ee=A.map(function(H){return String(H)});ee.unshift("Warning: "+C),Function.prototype.apply.call(console[f],console,ee)}}var R=!1,S=!1,N=!1,k=!1,B=!1,G;G=Symbol.for("react.module.reference");function z(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===i||B||f===o||f===c||f===d||k||f===v||R||S||N||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===s||f.$$typeof===a||f.$$typeof===u||f.$$typeof===G||f.getModuleId!==void 0))}function K(f,C,A){var M=f.displayName;if(M)return M;var q=C.displayName||C.name||"";return q!==""?A+"("+q+")":A}function T(f){return f.displayName||"Context"}function V(f){if(f==null)return null;if(typeof f.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var C=f;return T(C)+".Consumer";case s:var A=f;return T(A._context)+".Provider";case u:return K(f,f.render,"ForwardRef");case p:var M=f.displayName||null;return M!==null?M:V(f.type)||"Memo";case h:{var q=f,ee=q._payload,H=q._init;try{return V(H(ee))}catch{return null}}}return null}var L=Object.assign,J=0,Y,Z,D,Q,se,ie,E;function _(){}_.__reactDisabledLog=!0;function F(){{if(J===0){Y=console.log,Z=console.info,D=console.warn,Q=console.error,se=console.group,ie=console.groupCollapsed,E=console.groupEnd;var f={configurable:!0,enumerable:!0,value:_,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}J++}}function j(){{if(J--,J===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},f,{value:Y}),info:L({},f,{value:Z}),warn:L({},f,{value:D}),error:L({},f,{value:Q}),group:L({},f,{value:se}),groupCollapsed:L({},f,{value:ie}),groupEnd:L({},f,{value:E})})}J<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=w.ReactCurrentDispatcher,X;function ne(f,C,A){{if(X===void 0)try{throw Error()}catch(q){var M=q.stack.trim().match(/\n( *(at )?)/);X=M&&M[1]||""}return`
18
+ `+X+f}}var re=!1,ge;{var Kt=typeof WeakMap=="function"?WeakMap:Map;ge=new Kt}function Et(f,C){if(!f||re)return"";{var A=ge.get(f);if(A!==void 0)return A}var M;re=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ee;ee=U.current,U.current=null,F();try{if(C){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(fe){M=fe}Reflect.construct(f,[],H)}else{try{H.call()}catch(fe){M=fe}f.call(H.prototype)}}else{try{throw Error()}catch(fe){M=fe}f()}}catch(fe){if(fe&&M&&typeof fe.stack=="string"){for(var W=fe.stack.split(`
19
+ `),ce=M.stack.split(`
20
+ `),oe=W.length-1,ae=ce.length-1;oe>=1&&ae>=0&&W[oe]!==ce[ae];)ae--;for(;oe>=1&&ae>=0;oe--,ae--)if(W[oe]!==ce[ae]){if(oe!==1||ae!==1)do if(oe--,ae--,ae<0||W[oe]!==ce[ae]){var ve=`
21
+ `+W[oe].replace(" at new "," at ");return f.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",f.displayName)),typeof f=="function"&&ge.set(f,ve),ve}while(oe>=1&&ae>=0);break}}}finally{re=!1,U.current=ee,j(),Error.prepareStackTrace=q}var ft=f?f.displayName||f.name:"",Ye=ft?ne(ft):"";return typeof f=="function"&&ge.set(f,Ye),Ye}function Ue(f,C,A){return Et(f,!1)}function Xt(f){var C=f.prototype;return!!(C&&C.isReactComponent)}function ut(f,C,A){if(f==null)return"";if(typeof f=="function")return Et(f,Xt(f));if(typeof f=="string")return ne(f);switch(f){case c:return ne("Suspense");case d:return ne("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case u:return Ue(f.render);case p:return ut(f.type,C,A);case h:{var M=f,q=M._payload,ee=M._init;try{return ut(ee(q),C,A)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,qt={},Zt=w.ReactDebugCurrentFrame;function je(f){if(f){var C=f._owner,A=ut(f.type,f._source,C?C.type:null);Zt.setExtraStackFrame(A)}else Zt.setExtraStackFrame(null)}function Fu(f,C,A,M,q){{var ee=Function.call.bind(Ge);for(var H in f)if(ee(f,H)){var W=void 0;try{if(typeof f[H]!="function"){var ce=Error((M||"React class")+": "+A+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ce.name="Invariant Violation",ce}W=f[H](C,H,M,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){W=oe}W&&!(W instanceof Error)&&(je(q),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).",M||"React class",A,H,typeof W),je(null)),W instanceof Error&&!(W.message in qt)&&(qt[W.message]=!0,je(q),x("Failed %s type: %s",A,W.message),je(null))}}}var Wu=Array.isArray;function Gr(f){return Wu(f)}function $u(f){{var C=typeof Symbol=="function"&&Symbol.toStringTag,A=C&&f[Symbol.toStringTag]||f.constructor.name||"Object";return A}}function Bu(f){try{return Pi(f),!1}catch{return!0}}function Pi(f){return""+f}function Ai(f){if(Bu(f))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$u(f)),Pi(f)}var Ni=w.ReactCurrentOwner,zu={key:!0,ref:!0,__self:!0,__source:!0},Oi,ji;function Vu(f){if(Ge.call(f,"ref")){var C=Object.getOwnPropertyDescriptor(f,"ref").get;if(C&&C.isReactWarning)return!1}return f.ref!==void 0}function Hu(f){if(Ge.call(f,"key")){var C=Object.getOwnPropertyDescriptor(f,"key").get;if(C&&C.isReactWarning)return!1}return f.key!==void 0}function Uu(f,C){typeof f.ref=="string"&&Ni.current}function Gu(f,C){{var A=function(){Oi||(Oi=!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)",C))};A.isReactWarning=!0,Object.defineProperty(f,"key",{get:A,configurable:!0})}}function Yu(f,C){{var A=function(){ji||(ji=!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)",C))};A.isReactWarning=!0,Object.defineProperty(f,"ref",{get:A,configurable:!0})}}var Ku=function(f,C,A,M,q,ee,H){var W={$$typeof:t,type:f,key:C,ref:A,props:H,_owner:ee};return W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(W,"_self",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.defineProperty(W,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W};function Xu(f,C,A,M,q){{var ee,H={},W=null,ce=null;A!==void 0&&(Ai(A),W=""+A),Hu(C)&&(Ai(C.key),W=""+C.key),Vu(C)&&(ce=C.ref,Uu(C,q));for(ee in C)Ge.call(C,ee)&&!zu.hasOwnProperty(ee)&&(H[ee]=C[ee]);if(f&&f.defaultProps){var oe=f.defaultProps;for(ee in oe)H[ee]===void 0&&(H[ee]=oe[ee])}if(W||ce){var ae=typeof f=="function"?f.displayName||f.name||"Unknown":f;W&&Gu(H,ae),ce&&Yu(H,ae)}return Ku(f,W,ce,q,M,Ni.current,H)}}var Yr=w.ReactCurrentOwner,Ti=w.ReactDebugCurrentFrame;function dt(f){if(f){var C=f._owner,A=ut(f.type,f._source,C?C.type:null);Ti.setExtraStackFrame(A)}else Ti.setExtraStackFrame(null)}var Kr;Kr=!1;function Xr(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function _i(){{if(Yr.current){var f=V(Yr.current.type);if(f)return`
22
+
23
+ Check the render method of \``+f+"`."}return""}}function qu(f){return""}var Mi={};function Zu(f){{var C=_i();if(!C){var A=typeof f=="string"?f:f.displayName||f.name;A&&(C=`
24
+
25
+ Check the top-level render call using <`+A+">.")}return C}}function Di(f,C){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var A=Zu(C);if(Mi[A])return;Mi[A]=!0;var M="";f&&f._owner&&f._owner!==Yr.current&&(M=" It was passed a child from "+V(f._owner.type)+"."),dt(f),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,M),dt(null)}}function Ii(f,C){{if(typeof f!="object")return;if(Gr(f))for(var A=0;A<f.length;A++){var M=f[A];Xr(M)&&Di(M,C)}else if(Xr(f))f._store&&(f._store.validated=!0);else if(f){var q=b(f);if(typeof q=="function"&&q!==f.entries)for(var ee=q.call(f),H;!(H=ee.next()).done;)Xr(H.value)&&Di(H.value,C)}}}function Ju(f){{var C=f.type;if(C==null||typeof C=="string")return;var A;if(typeof C=="function")A=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===u||C.$$typeof===p))A=C.propTypes;else return;if(A){var M=V(C);Fu(A,f.props,"prop",M,f)}else if(C.PropTypes!==void 0&&!Kr){Kr=!0;var q=V(C);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qu(f){{for(var C=Object.keys(f.props),A=0;A<C.length;A++){var M=C[A];if(M!=="children"&&M!=="key"){dt(f),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M),dt(null);break}}f.ref!==null&&(dt(f),x("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Li={};function Fi(f,C,A,M,q,ee){{var H=z(f);if(!H){var W="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(W+=" 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 ce=qu();ce?W+=ce:W+=_i();var oe;f===null?oe="null":Gr(f)?oe="array":f!==void 0&&f.$$typeof===t?(oe="<"+(V(f.type)||"Unknown")+" />",W=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof f,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,W)}var ae=Xu(f,C,A,q,ee);if(ae==null)return ae;if(H){var ve=C.children;if(ve!==void 0)if(M)if(Gr(ve)){for(var ft=0;ft<ve.length;ft++)Ii(ve[ft],f);Object.freeze&&Object.freeze(ve)}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 Ii(ve,f)}if(Ge.call(C,"key")){var Ye=V(f),fe=Object.keys(C).filter(function(id){return id!=="key"}),qr=fe.length>0?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}";if(!Li[Ye+qr]){var od=fe.length>0?"{"+fe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,qr,Ye,od,Ye),Li[Ye+qr]=!0}}return f===n?Qu(ae):Ju(ae),ae}}function ed(f,C,A){return Fi(f,C,A,!0)}function td(f,C,A){return Fi(f,C,A,!1)}var rd=td,nd=ed;mt.Fragment=n,mt.jsx=rd,mt.jsxs=nd}()),mt}process.env.NODE_ENV==="production"?Jt.exports=Wi():Jt.exports=$i();var m=Jt.exports;function rn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Te(...e){return t=>{let r=!1;const n=e.map(o=>{const i=rn(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():rn(e[o],null)}}}}function be(...e){return l.useCallback(Te(...e),e)}var Bi=Symbol.for("react.lazy"),Rt=l[" use ".trim().toString()];function zi(e){return typeof e=="object"&&e!==null&&"then"in e}function nn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Bi&&"_payload"in e&&zi(e._payload)}function on(e){const t=Hi(e),r=l.forwardRef((n,o)=>{let{children:i,...s}=n;nn(i)&&typeof Rt=="function"&&(i=Rt(i._payload));const a=l.Children.toArray(i),u=a.find(Gi);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Vi=on("Slot");function Hi(e){const t=l.forwardRef((r,n)=>{let{children:o,...i}=r;if(nn(o)&&typeof Rt=="function"&&(o=Rt(o._payload)),l.isValidElement(o)){const s=Ki(o),a=Yi(i,o.props);return o.type!==l.Fragment&&(a.ref=n?Te(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ui=Symbol("radix.slottable");function Gi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ui}function Yi(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ki(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 an(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=an(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=an(e))&&(n&&(n+=" "),n+=t);return n}const ln=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cn=sn,un=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return cn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=r==null?void 0:r[c],p=i==null?void 0:i[c];if(d===null)return null;const h=ln(d)||ln(p);return o[c][h]}),a=r&&Object.entries(r).reduce((c,d)=>{let[p,h]=d;return h===void 0||(c[p]=h),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:p,className:h,...v}=d;return Object.entries(v).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...i,...a}[g]):{...i,...a}[g]===b})?[...c,p,h]:c},[]);return cn(e,s,u,r==null?void 0:r.class,r==null?void 0:r.className)},Qt="-",Xi=e=>{const t=Zi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Qt);return a[0]===""&&a.length!==1&&a.shift(),dn(a,t)||qi(s)},getConflictingClassGroupIds:(s,a)=>{const u=r[s]||[];return a&&n[s]?[...u,...n[s]]:u}}},dn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?dn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Qt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},fn=/^\[(.+)\]$/,qi=e=>{if(fn.test(e)){const t=fn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Zi=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Qi(Object.entries(e.classGroups),r).forEach(([i,s])=>{er(s,n,i,t)}),n},er=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:pn(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Ji(o)){er(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{er(s,pn(t,i),r,n)})})},pn=(e,t)=>{let r=e;return t.split(Qt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ji=e=>e.isThemeGetter,Qi=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,ea=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},mn="!",ta=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const u=[];let c=0,d=0,p;for(let b=0;b<a.length;b++){let w=a[b];if(c===0){if(w===o&&(n||a.slice(b,b+i)===t)){u.push(a.slice(d,b)),d=b+i;continue}if(w==="/"){p=b;continue}}w==="["?c++:w==="]"&&c--}const h=u.length===0?a:a.substring(d),v=h.startsWith(mn),y=v?h.substring(1):h,g=p&&p>d?p-d:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:s}):s},ra=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},na=e=>({cache:ea(e.cacheSize),parseClassName:ta(e),...Xi(e)}),oa=/\s+/,ia=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(oa);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=r(c);let y=!!v,g=n(y?h.substring(0,v):h);if(!g){if(!y){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=ra(d).join(":"),w=p?b+mn:b,x=w+g;if(i.includes(x))continue;i.push(x);const P=o(g,y);for(let R=0;R<P.length;++R){const S=P[R];i.push(w+S)}a=c+(a.length>0?" "+a:a)}return a};function aa(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=hn(t))&&(n&&(n+=" "),n+=r);return n}const hn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=hn(e[n]))&&(r&&(r+=" "),r+=t);return r};function sa(e,...t){let r,n,o,i=s;function s(u){const c=t.reduce((d,p)=>p(d),e());return r=na(c),n=r.cache.get,o=r.cache.set,i=a,a(u)}function a(u){const c=n(u);if(c)return c;const d=ia(u,r);return o(u,d),d}return function(){return i(aa.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},gn=/^\[(?:([a-z-]+):)?(.+)\]$/i,la=/^\d+\/\d+$/,ca=new Set(["px","full","screen"]),ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,da=/\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$/,fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=e=>Ke(e)||ca.has(e)||la.test(e),_e=e=>Xe(e,"length",Ca),Ke=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>Xe(e,"number",Ke),ht=e=>!!e&&Number.isInteger(Number(e)),ha=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),I=e=>gn.test(e),Me=e=>ua.test(e),ga=new Set(["length","size","percentage"]),va=e=>Xe(e,ga,vn),ba=e=>Xe(e,"position",vn),ya=new Set(["image","url"]),wa=e=>Xe(e,ya,Ra),xa=e=>Xe(e,"",Ea),gt=()=>!0,Xe=(e,t,r)=>{const n=gn.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ca=e=>da.test(e)&&!fa.test(e),vn=()=>!1,Ea=e=>pa.test(e),Ra=e=>ma.test(e),Sa=sa(()=>{const e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),o=te("borderColor"),i=te("borderRadius"),s=te("borderSpacing"),a=te("borderWidth"),u=te("contrast"),c=te("grayscale"),d=te("hueRotate"),p=te("invert"),h=te("gap"),v=te("gradientColorStops"),y=te("gradientColorStopPositions"),g=te("inset"),b=te("margin"),w=te("opacity"),x=te("padding"),P=te("saturate"),R=te("scale"),S=te("sepia"),N=te("skew"),k=te("space"),B=te("translate"),G=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],T=()=>[I,t],V=()=>["",Ae,_e],L=()=>["auto",Ke,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",I],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Ke,I];return{cacheSize:500,separator:":",theme:{colors:[gt],spacing:[Ae,_e],blur:["none","",Me,I],brightness:ie(),borderColor:[e],borderRadius:["none","","full",Me,I],borderSpacing:T(),borderWidth:V(),contrast:ie(),grayscale:Q(),hueRotate:ie(),invert:Q(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[ha,_e],inset:K(),margin:K(),opacity:ie(),padding:T(),saturate:ie(),scale:ie(),sepia:Q(),skew:ie(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Me]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),I]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ht,I]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",ht,I]}],"grid-cols":[{"grid-cols":[gt]}],"col-start-end":[{col:["auto",{span:["full",ht,I]},I]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[gt]}],"row-start-end":[{row:["auto",{span:[ht,I]},I]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Me]},Me]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Me,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[gt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Ke,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ae,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae,_e]}],"underline-offset":[{"underline-offset":["auto",Ae,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ba]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",va]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Y()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Ae,I]}],"outline-w":[{outline:[Ae,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ae,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Me,xa]}],"shadow-color":[{shadow:[gt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Me,I]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ht,I]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,_e,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function $(...e){return Sa(sn(e))}const bn=un("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),St=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const s=n?Vi:"button";return m.jsx(s,{className:$(bn({variant:t,size:r,className:e})),ref:i,...o})});St.displayName="Button";function ka(e){return m.jsx("input",{...e,className:$("w-full rounded-lg border border-input bg-background/50 px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",e.className)})}const yn=un("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pa({className:e,variant:t,...r}){return m.jsx("div",{className:$(yn({variant:t}),e),...r})}const wn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("rounded-xl border bg-card text-card-foreground shadow",e),...t}));wn.displayName="Card";const xn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex flex-col space-y-1.5 p-6",e),...t}));xn.displayName="CardHeader";const Cn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("font-semibold leading-none tracking-tight",e),...t}));Cn.displayName="CardTitle";const En=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("text-sm text-muted-foreground",e),...t}));En.displayName="CardDescription";const Rn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("p-6 pt-0",e),...t}));Rn.displayName="CardContent";const Sn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex items-center p-6 pt-0",e),...t}));Sn.displayName="CardFooter";var kn=1,Aa=.9,Na=.8,Oa=.17,rr=.1,nr=.999,ja=.9999,Ta=.99,_a=/[\\\/_+.#"@\[\(\{&]/,Ma=/[\\\/_+.#"@\[\(\{&]/g,Da=/[\s-]/,Pn=/[\s-]/g;function or(e,t,r,n,o,i,s){if(i===t.length)return o===e.length?kn:Ta;var a=`${o},${i}`;if(s[a]!==void 0)return s[a];for(var u=n.charAt(i),c=r.indexOf(u,o),d=0,p,h,v,y;c>=0;)p=or(e,t,r,n,c+1,i+1,s),p>d&&(c===o?p*=kn:_a.test(e.charAt(c-1))?(p*=Na,v=e.slice(o,c-1).match(Ma),v&&o>0&&(p*=Math.pow(nr,v.length))):Da.test(e.charAt(c-1))?(p*=Aa,y=e.slice(o,c-1).match(Pn),y&&o>0&&(p*=Math.pow(nr,y.length))):(p*=Oa,o>0&&(p*=Math.pow(nr,c-o))),e.charAt(c)!==t.charAt(i)&&(p*=ja)),(p<rr&&r.charAt(c-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(c-1)!==n.charAt(i))&&(h=or(e,t,r,n,c+1,i+2,s),h*rr>p&&(p=h*rr)),p>d&&(d=p),c=r.indexOf(u,c+1);return s[a]=d,d}function An(e){return e.toLowerCase().replace(Pn," ")}function Ia(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,or(e,t,An(e),An(t),0,0,{})}function pe(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 La(e,t){const r=l.createContext(t),n=i=>{const{children:s,...a}=i,u=l.useMemo(()=>a,Object.values(a));return m.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function o(i){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function ir(e,t=[]){let r=[];function n(i,s){const a=l.createContext(s),u=r.length;r=[...r,s];const c=p=>{var w;const{scope:h,children:v,...y}=p,g=((w=h==null?void 0:h[e])==null?void 0:w[u])||a,b=l.useMemo(()=>y,Object.values(y));return m.jsx(g.Provider,{value:b,children:v})};c.displayName=i+"Provider";function d(p,h){var g;const v=((g=h==null?void 0:h[e])==null?void 0:g[u])||a,y=l.useContext(v);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=r.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[n,Fa(o,...t)]}function Fa(...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(i){const s=n.reduce((a,{useScope:u,scopeName:c})=>{const p=u(i)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var De=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Wa=l[" useId ".trim().toString()]||(()=>{}),$a=0;function Ce(e){const[t,r]=l.useState(Wa());return De(()=>{r(n=>n??String($a++))},[e]),t?`radix-${t}`:""}var Ba=l[" useInsertionEffect ".trim().toString()]||De;function Nn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=za({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=l.useCallback(d=>{var p;if(a){const h=Va(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[u,c]}function za({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),i=l.useRef(t);return Ba(()=>{i.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Va(e){return typeof e=="function"}function ar(e){const t=Ha(e),r=l.forwardRef((n,o)=>{const{children:i,...s}=n,a=l.Children.toArray(i),u=a.find(Ga);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Ha(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const s=Ka(o),a=Ya(i,o.props);return o.type!==l.Fragment&&(a.ref=n?Te(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ua=Symbol("radix.slottable");function Ga(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ua}function Ya(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ka(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 Xa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=Xa.reduce((e,t)=>{const r=ar(`Primitive.${t}`),n=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qa(e,t){e&&Qr.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 Za(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 Ja="DismissableLayer",sr="dismissableLayer.update",Qa="dismissableLayer.pointerDownOutside",es="dismissableLayer.focusOutside",On,jn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(jn),[d,p]=l.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=l.useState({}),y=be(t,k=>p(k)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(b),x=d?g.indexOf(d):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,S=ns(k=>{const B=k.target,G=[...c.branches].some(z=>z.contains(B));!R||G||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},h),N=os(k=>{const B=k.target;[...c.branches].some(z=>z.contains(B))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},h);return Za(k=>{x===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(On=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Tn(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=On)}},[d,h,r,c]),l.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Tn())},[d,c]),l.useEffect(()=>{const k=()=>v({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),m.jsx(ue.div,{...u,ref:y,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});lr.displayName=Ja;var ts="DismissableLayerBranch",rs=l.forwardRef((e,t)=>{const r=l.useContext(jn),n=l.useRef(null),o=be(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),m.jsx(ue.div,{...e,ref:o})});rs.displayName=ts;function ns(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let u=function(){_n(Qa,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function os(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&_n(es,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Tn(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function _n(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?qa(o,i):o.dispatchEvent(i)}var cr="focusScope.autoFocusOnMount",ur="focusScope.autoFocusOnUnmount",Mn={bubbles:!1,cancelable:!0},is="FocusScope",dr=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=l.useState(null),c=qe(o),d=qe(i),p=l.useRef(null),h=be(t,g=>u(g)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(P){if(v.paused||!a)return;const R=P.target;a.contains(R)?p.current=R:Ie(p.current,{select:!0})},b=function(P){if(v.paused||!a)return;const R=P.relatedTarget;R!==null&&(a.contains(R)||Ie(p.current,{select:!0}))},w=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(w);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[n,a,v.paused]),l.useEffect(()=>{if(a){Ln.add(v);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(cr,Mn);a.addEventListener(cr,c),a.dispatchEvent(w),w.defaultPrevented||(as(ds(Dn(a)),{select:!0}),document.activeElement===g&&Ie(a))}return()=>{a.removeEventListener(cr,c),setTimeout(()=>{const w=new CustomEvent(ur,Mn);a.addEventListener(ur,d),a.dispatchEvent(w),w.defaultPrevented||Ie(g??document.body,{select:!0}),a.removeEventListener(ur,d),Ln.remove(v)},0)}}},[a,c,d,v]);const y=l.useCallback(g=>{if(!r&&!n||v.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(b&&w){const x=g.currentTarget,[P,R]=ss(x);P&&R?!g.shiftKey&&w===R?(g.preventDefault(),r&&Ie(P,{select:!0})):g.shiftKey&&w===P&&(g.preventDefault(),r&&Ie(R,{select:!0})):w===x&&g.preventDefault()}},[r,n,v.paused]);return m.jsx(ue.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});dr.displayName=is;function as(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==r)return}function ss(e){const t=Dn(e),r=In(t,e),n=In(t.reverse(),e);return[r,n]}function Dn(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 In(e,t){for(const r of e)if(!ls(r,{upTo:t}))return r}function ls(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 cs(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cs(e)&&t&&e.select()}}var Ln=us();function us(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Fn(e,t),e.unshift(t)},remove(t){var r;e=Fn(e,t),(r=e[0])==null||r.resume()}}}function Fn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ds(e){return e.filter(t=>t.tagName!=="A")}var fs="Portal",fr=l.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=l.useState(!1);De(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Zr.createPortal(m.jsx(ue.div,{...n,ref:t}),s):null});fr.displayName=fs;function ps(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ze=e=>{const{present:t,children:r}=e,n=ms(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=be(n.ref,hs(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};Ze.displayName="Presence";function ms(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=ps(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=kt(n.current);i.current=a==="mounted"?c:"none"},[a]),De(()=>{const c=n.current,d=o.current;if(d!==e){const h=i.current,v=kt(c);e?u("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),De(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=v=>{const g=kt(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(u("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=v=>{v.target===t&&(i.current=kt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function kt(e){return(e==null?void 0:e.animationName)||"none"}function hs(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 pr=0;function Wn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$n()),document.body.insertAdjacentElement("beforeend",e[1]??$n()),pr++,()=>{pr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pr--}},[])}function $n(){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 Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ee.apply(this,arguments)};function Bn(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 gs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pt="right-scroll-bar-position",At="width-before-scroll-bar",vs="with-scroll-bars-hidden",bs="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ys(e,t){var r=le.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 ws=typeof window<"u"?l.useLayoutEffect:l.useEffect,zn=new WeakMap;function xs(e,t){var r=ys(null,function(n){return e.forEach(function(o){return mr(o,n)})});return ws(function(){var n=zn.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||mr(a,null)}),i.forEach(function(a){o.has(a)||mr(a,s)})}zn.set(r,e)},[e]),r}function Cs(e){return e}function Es(e,t){t===void 0&&(t=Cs);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(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var u=function(){var d=s;s=[],d.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),r}}}};return o}function Rs(e){e===void 0&&(e={});var t=Es(null);return t.options=Ee({async:!0,ssr:!1},e),t}var Vn=function(e){var t=e.sideCar,r=Bn(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,Ee({},r))};Vn.isSideCarExport=!0;function Ss(e,t){return e.useMedium(t),Vn}var Hn=Rs(),hr=function(){},Nt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,v=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,P=e.gapMode,R=Bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,N=xs([r,t]),k=Ee(Ee({},R),o);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Hn,removeScrollBar:c,shards:p,noRelative:v,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:P}),s?l.cloneElement(l.Children.only(a),Ee(Ee({},k),{ref:N})):l.createElement(x,Ee({},k,{className:u,ref:N}),a))});Nt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nt.classNames={fullWidth:At,zeroRight:Pt};var ks=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ps(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ks();return t&&e.setAttribute("nonce",t),e}function As(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ns(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Os=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ps())&&(As(t,r),Ns(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},js=function(){var e=Os();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Un=function(){var e=js(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ts={left:0,top:0,right:0,gap:0},gr=function(e){return parseInt(e||"",10)||0},_s=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[gr(r),gr(n),gr(o)]},Ms=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ts;var t=_s(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])}},Ds=Un(),Je="data-scroll-locked",Is=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
31
+ .`.concat(vs,` {
32
+ overflow: hidden `).concat(n,`;
33
+ padding-right: `).concat(a,"px ").concat(n,`;
34
+ }
35
+ body[`).concat(Je,`] {
36
+ overflow: hidden `).concat(n,`;
37
+ overscroll-behavior: contain;
38
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
39
+ padding-left: `.concat(o,`px;
40
+ padding-top: `).concat(i,`px;
41
+ padding-right: `).concat(s,`px;
42
+ margin-left:0;
43
+ margin-top:0;
44
+ margin-right: `).concat(a,"px ").concat(n,`;
45
+ `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
46
+ }
47
+
48
+ .`).concat(Pt,` {
49
+ right: `).concat(a,"px ").concat(n,`;
50
+ }
51
+
52
+ .`).concat(At,` {
53
+ margin-right: `).concat(a,"px ").concat(n,`;
54
+ }
55
+
56
+ .`).concat(Pt," .").concat(Pt,` {
57
+ right: 0 `).concat(n,`;
58
+ }
59
+
60
+ .`).concat(At," .").concat(At,` {
61
+ margin-right: 0 `).concat(n,`;
62
+ }
63
+
64
+ body[`).concat(Je,`] {
65
+ `).concat(bs,": ").concat(a,`px;
66
+ }
67
+ `)},Gn=function(){var e=parseInt(document.body.getAttribute(Je)||"0",10);return isFinite(e)?e:0},Ls=function(){l.useEffect(function(){return document.body.setAttribute(Je,(Gn()+1).toString()),function(){var e=Gn()-1;e<=0?document.body.removeAttribute(Je):document.body.setAttribute(Je,e.toString())}},[])},Fs=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Ls();var i=l.useMemo(function(){return Ms(o)},[o]);return l.createElement(Ds,{styles:Is(i,!t,o,r?"":"!important")})},vr=!1;if(typeof window<"u")try{var Ot=Object.defineProperty({},"passive",{get:function(){return vr=!0,!0}});window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{vr=!1}var Qe=vr?{passive:!1}:!1,Ws=function(e){return e.tagName==="TEXTAREA"},Yn=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ws(e)&&r[t]==="visible")},$s=function(e){return Yn(e,"overflowY")},Bs=function(e){return Yn(e,"overflowX")},Kn=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Xn(e,n);if(o){var i=qn(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},zs=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Vs=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Xn=function(e,t){return e==="v"?$s(t):Bs(t)},qn=function(e,t){return e==="v"?zs(t):Vs(t)},Hs=function(e,t){return e==="h"&&t==="rtl"?-1:1},Us=function(e,t,r,n,o){var i=Hs(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,u=t.contains(a),c=!1,d=s>0,p=0,h=0;do{if(!a)break;var v=qn(e,a),y=v[0],g=v[1],b=v[2],w=g-b-i*y;(y||w)&&Xn(e,a)&&(p+=w,h+=y);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(c=!0),c},jt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zn=function(e){return[e.deltaX,e.deltaY]},Jn=function(e){return e&&"current"in e?e.current:e},Gs=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ys=function(e){return`
68
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
69
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
70
+ `)},Ks=0,et=[];function Xs(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Ks++)[0],i=l.useState(Un)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=gs([e.lockRef.current],(e.shards||[]).map(Jn),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var w=jt(g),x=r.current,P="deltaX"in g?g.deltaX:x[0]-w[0],R="deltaY"in g?g.deltaY:x[1]-w[1],S,N=g.target,k=Math.abs(P)>Math.abs(R)?"h":"v";if("touches"in g&&k==="h"&&N.type==="range")return!1;var B=window.getSelection(),G=B&&B.anchorNode,z=G?G===N||G.contains(N):!1;if(z)return!1;var K=Kn(k,N);if(!K)return!0;if(K?S=k:(S=k==="v"?"h":"v",K=Kn(k,N)),!K)return!1;if(!n.current&&"changedTouches"in g&&(P||R)&&(n.current=S),!S)return!0;var T=n.current||S;return Us(T,b,g,T==="h"?P:R)},[]),u=l.useCallback(function(g){var b=g;if(!(!et.length||et[et.length-1]!==i)){var w="deltaY"in b?Zn(b):jt(b),x=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&Gs(S.delta,w)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var P=(s.current.shards||[]).map(Jn).filter(Boolean).filter(function(S){return S.contains(b.target)}),R=P.length>0?a(b,P[0]):!s.current.noIsolation;R&&b.cancelable&&b.preventDefault()}}},[]),c=l.useCallback(function(g,b,w,x){var P={name:g,delta:b,target:w,should:x,shadowParent:qs(w)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(R){return R!==P})},1)},[]),d=l.useCallback(function(g){r.current=jt(g),n.current=void 0},[]),p=l.useCallback(function(g){c(g.type,Zn(g),g.target,a(g,e.lockRef.current))},[]),h=l.useCallback(function(g){c(g.type,jt(g),g.target,a(g,e.lockRef.current))},[]);l.useEffect(function(){return et.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Qe),document.addEventListener("touchmove",u,Qe),document.addEventListener("touchstart",d,Qe),function(){et=et.filter(function(g){return g!==i}),document.removeEventListener("wheel",u,Qe),document.removeEventListener("touchmove",u,Qe),document.removeEventListener("touchstart",d,Qe)}},[]);var v=e.removeScrollBar,y=e.inert;return l.createElement(l.Fragment,null,y?l.createElement(i,{styles:Ys(o)}):null,v?l.createElement(Fs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qs(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zs=Ss(Hn,Xs);var br=l.forwardRef(function(e,t){return l.createElement(Nt,Ee({},e,{ref:t,sideCar:Zs}))});br.classNames=Nt.classNames;var Js=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tt=new WeakMap,Tt=new WeakMap,_t={},yr=0,Qn=function(e){return e&&(e.host||Qn(e.parentNode))},Qs=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Qn(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})},el=function(e,t,r,n){var o=Qs(t,Array.isArray(e)?e:[e]);_t[r]||(_t[r]=new WeakMap);var i=_t[r],s=[],a=new Set,u=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var d=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var v=h.getAttribute(n),y=v!==null&&v!=="false",g=(tt.get(h)||0)+1,b=(i.get(h)||0)+1;tt.set(h,g),i.set(h,b),s.push(h),g===1&&y&&Tt.set(h,!0),b===1&&h.setAttribute(r,"true"),y||h.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return d(t),a.clear(),yr++,function(){s.forEach(function(p){var h=tt.get(p)-1,v=i.get(p)-1;tt.set(p,h),i.set(p,v),h||(Tt.has(p)||p.removeAttribute(n),Tt.delete(p)),v||p.removeAttribute(r)}),yr--,yr||(tt=new WeakMap,tt=new WeakMap,Tt=new WeakMap,_t={})}},eo=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Js(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),el(n,o,r,"aria-hidden")):function(){return null}},Mt="Dialog",[to]=ir(Mt),[tl,ye]=to(Mt),ro=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),u=l.useRef(null),[c,d]=Nn({prop:n,defaultProp:o??!1,onChange:i,caller:Mt});return m.jsx(tl,{scope:t,triggerRef:a,contentRef:u,contentId:Ce(),titleId:Ce(),descriptionId:Ce(),open:c,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(p=>!p),[d]),modal:s,children:r})};ro.displayName=Mt;var no="DialogTrigger",rl=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(no,r),i=be(t,o.triggerRef);return m.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cr(o.open),...n,ref:i,onClick:pe(e.onClick,o.onOpenToggle)})});rl.displayName=no;var wr="DialogPortal",[nl,oo]=to(wr,{forceMount:void 0}),io=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=ye(wr,t);return m.jsx(nl,{scope:t,forceMount:r,children:l.Children.map(n,s=>m.jsx(Ze,{present:r||i.open,children:m.jsx(fr,{asChild:!0,container:o,children:s})}))})};io.displayName=wr;var Dt="DialogOverlay",ao=l.forwardRef((e,t)=>{const r=oo(Dt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=ye(Dt,e.__scopeDialog);return i.modal?m.jsx(Ze,{present:n||i.open,children:m.jsx(il,{...o,ref:t})}):null});ao.displayName=Dt;var ol=ar("DialogOverlay.RemoveScroll"),il=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(Dt,r);return m.jsx(br,{as:ol,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(ue.div,{"data-state":Cr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ze="DialogContent",so=l.forwardRef((e,t)=>{const r=oo(ze,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=ye(ze,e.__scopeDialog);return m.jsx(Ze,{present:n||i.open,children:i.modal?m.jsx(al,{...o,ref:t}):m.jsx(sl,{...o,ref:t})})});so.displayName=ze;var al=l.forwardRef((e,t)=>{const r=ye(ze,e.__scopeDialog),n=l.useRef(null),o=be(t,r.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return eo(i)},[]),m.jsx(lo,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),sl=l.forwardRef((e,t)=>{const r=ye(ze,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(lo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),lo=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=ye(ze,r),u=l.useRef(null),c=be(t,u);return Wn(),m.jsxs(m.Fragment,{children:[m.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:m.jsx(lr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Cr(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(dl,{titleId:a.titleId}),m.jsx(pl,{contentRef:u,descriptionId:a.descriptionId})]})]})}),xr="DialogTitle",ll=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(xr,r);return m.jsx(ue.h2,{id:o.titleId,...n,ref:t})});ll.displayName=xr;var co="DialogDescription",cl=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(co,r);return m.jsx(ue.p,{id:o.descriptionId,...n,ref:t})});cl.displayName=co;var uo="DialogClose",ul=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(uo,r);return m.jsx(ue.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});ul.displayName=uo;function Cr(e){return e?"open":"closed"}var fo="DialogTitleWarning",[sd,po]=La(fo,{contentName:ze,titleName:xr,docsSlug:"dialog"}),dl=({titleId:e})=>{const t=po(fo),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
71
+
72
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
73
+
74
+ 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},fl="DialogDescriptionWarning",pl=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${po(fl).contentName}}.`;return l.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ml=ro,hl=io,gl=ao,vl=so,bl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=bl.reduce((e,t)=>{const r=on(`Primitive.${t}`),n=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vt='[cmdk-group=""]',Er='[cmdk-group-items=""]',yl='[cmdk-group-heading=""]',mo='[cmdk-item=""]',ho=`${mo}:not([aria-disabled="true"])`,Rr="cmdk-item-select",rt="data-value",wl=(e,t,r)=>Ia(e,t,r),go=l.createContext(void 0),bt=()=>l.useContext(go),vo=l.createContext(void 0),Sr=()=>l.useContext(vo),bo=l.createContext(void 0),yo=l.forwardRef((e,t)=>{let r=nt(()=>{var E,_;return{search:"",value:(_=(E=e.value)!=null?E:e.defaultValue)!=null?_:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=nt(()=>new Set),o=nt(()=>new Map),i=nt(()=>new Map),s=nt(()=>new Set),a=wo(e),{label:u,children:c,value:d,onValueChange:p,filter:h,shouldFilter:v,loop:y,disablePointerSelection:g=!1,vimBindings:b=!0,...w}=e,x=Ce(),P=Ce(),R=Ce(),S=l.useRef(null),N=jl();Ve(()=>{if(d!==void 0){let E=d.trim();r.current.value=E,k.emit()}},[d]),Ve(()=>{N(6,V)},[]);let k=l.useMemo(()=>({subscribe:E=>(s.current.add(E),()=>s.current.delete(E)),snapshot:()=>r.current,setState:(E,_,F)=>{var j,U,X,ne;if(!Object.is(r.current[E],_)){if(r.current[E]=_,E==="search")T(),z(),N(1,K);else if(E==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let re=document.getElementById(R);re?re.focus():(j=document.getElementById(x))==null||j.focus()}if(N(7,()=>{var re;r.current.selectedItemId=(re=L())==null?void 0:re.id,k.emit()}),F||N(5,V),((U=a.current)==null?void 0:U.value)!==void 0){let re=_??"";(ne=(X=a.current).onValueChange)==null||ne.call(X,re);return}}k.emit()}},emit:()=>{s.current.forEach(E=>E())}}),[]),B=l.useMemo(()=>({value:(E,_,F)=>{var j;_!==((j=i.current.get(E))==null?void 0:j.value)&&(i.current.set(E,{value:_,keywords:F}),r.current.filtered.items.set(E,G(_,F)),N(2,()=>{z(),k.emit()}))},item:(E,_)=>(n.current.add(E),_&&(o.current.has(_)?o.current.get(_).add(E):o.current.set(_,new Set([E]))),N(3,()=>{T(),z(),r.current.value||K(),k.emit()}),()=>{i.current.delete(E),n.current.delete(E),r.current.filtered.items.delete(E);let F=L();N(4,()=>{T(),(F==null?void 0:F.getAttribute("id"))===E&&K(),k.emit()})}),group:E=>(o.current.has(E)||o.current.set(E,new Set),()=>{i.current.delete(E),o.current.delete(E)}),filter:()=>a.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:x,inputId:R,labelId:P,listInnerRef:S}),[]);function G(E,_){var F,j;let U=(j=(F=a.current)==null?void 0:F.filter)!=null?j:wl;return E?U(E,r.current.search,_):0}function z(){if(!r.current.search||a.current.shouldFilter===!1)return;let E=r.current.filtered.items,_=[];r.current.filtered.groups.forEach(j=>{let U=o.current.get(j),X=0;U.forEach(ne=>{let re=E.get(ne);X=Math.max(re,X)}),_.push([j,X])});let F=S.current;J().sort((j,U)=>{var X,ne;let re=j.getAttribute("id"),ge=U.getAttribute("id");return((X=E.get(ge))!=null?X:0)-((ne=E.get(re))!=null?ne:0)}).forEach(j=>{let U=j.closest(Er);U?U.appendChild(j.parentElement===U?j:j.closest(`${Er} > *`)):F.appendChild(j.parentElement===F?j:j.closest(`${Er} > *`))}),_.sort((j,U)=>U[1]-j[1]).forEach(j=>{var U;let X=(U=S.current)==null?void 0:U.querySelector(`${vt}[${rt}="${encodeURIComponent(j[0])}"]`);X==null||X.parentElement.appendChild(X)})}function K(){let E=J().find(F=>F.getAttribute("aria-disabled")!=="true"),_=E==null?void 0:E.getAttribute(rt);k.setState("value",_||void 0)}function T(){var E,_,F,j;if(!r.current.search||a.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let U=0;for(let X of n.current){let ne=(_=(E=i.current.get(X))==null?void 0:E.value)!=null?_:"",re=(j=(F=i.current.get(X))==null?void 0:F.keywords)!=null?j:[],ge=G(ne,re);r.current.filtered.items.set(X,ge),ge>0&&U++}for(let[X,ne]of o.current)for(let re of ne)if(r.current.filtered.items.get(re)>0){r.current.filtered.groups.add(X);break}r.current.filtered.count=U}function V(){var E,_,F;let j=L();j&&(((E=j.parentElement)==null?void 0:E.firstChild)===j&&((F=(_=j.closest(vt))==null?void 0:_.querySelector(yl))==null||F.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function L(){var E;return(E=S.current)==null?void 0:E.querySelector(`${mo}[aria-selected="true"]`)}function J(){var E;return Array.from(((E=S.current)==null?void 0:E.querySelectorAll(ho))||[])}function Y(E){let _=J()[E];_&&k.setState("value",_.getAttribute(rt))}function Z(E){var _;let F=L(),j=J(),U=j.findIndex(ne=>ne===F),X=j[U+E];(_=a.current)!=null&&_.loop&&(X=U+E<0?j[j.length-1]:U+E===j.length?j[0]:j[U+E]),X&&k.setState("value",X.getAttribute(rt))}function D(E){let _=L(),F=_==null?void 0:_.closest(vt),j;for(;F&&!j;)F=E>0?Nl(F,vt):Ol(F,vt),j=F==null?void 0:F.querySelector(ho);j?k.setState("value",j.getAttribute(rt)):Z(E)}let Q=()=>Y(J().length-1),se=E=>{E.preventDefault(),E.metaKey?Q():E.altKey?D(1):Z(1)},ie=E=>{E.preventDefault(),E.metaKey?Y(0):E.altKey?D(-1):Z(-1)};return l.createElement(Le.div,{ref:t,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:E=>{var _;(_=w.onKeyDown)==null||_.call(w,E);let F=E.nativeEvent.isComposing||E.keyCode===229;if(!(E.defaultPrevented||F))switch(E.key){case"n":case"j":{b&&E.ctrlKey&&se(E);break}case"ArrowDown":{se(E);break}case"p":case"k":{b&&E.ctrlKey&&ie(E);break}case"ArrowUp":{ie(E);break}case"Home":{E.preventDefault(),Y(0);break}case"End":{E.preventDefault(),Q();break}case"Enter":{E.preventDefault();let j=L();if(j){let U=new Event(Rr);j.dispatchEvent(U)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:B.inputId,id:B.labelId,style:_l},u),It(e,E=>l.createElement(vo.Provider,{value:k},l.createElement(go.Provider,{value:B},E))))}),xl=l.forwardRef((e,t)=>{var r,n;let o=Ce(),i=l.useRef(null),s=l.useContext(bo),a=bt(),u=wo(e),c=(n=(r=u.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ve(()=>{if(!c)return a.item(o,s==null?void 0:s.id)},[c]);let d=xo(o,i,[e.value,e.children,i],e.keywords),p=Sr(),h=Fe(N=>N.value&&N.value===d.current),v=Fe(N=>c||a.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=i.current;if(!(!N||e.disabled))return N.addEventListener(Rr,y),()=>N.removeEventListener(Rr,y)},[v,e.onSelect,e.disabled]);function y(){var N,k;g(),(k=(N=u.current).onSelect)==null||k.call(N,d.current)}function g(){p.setState("value",d.current,!0)}if(!v)return null;let{disabled:b,value:w,onSelect:x,forceMount:P,keywords:R,...S}=e;return l.createElement(Le.div,{ref:Te(i,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||a.getDisablePointerSelection()?void 0:g,onClick:b?void 0:y},e.children)}),Cl=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=Ce(),a=l.useRef(null),u=l.useRef(null),c=Ce(),d=bt(),p=Fe(v=>o||d.filter()===!1?!0:v.search?v.filtered.groups.has(s):!0);Ve(()=>d.group(s),[]),xo(s,a,[e.value,e.heading,u]);let h=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(Le.div,{ref:Te(a,t),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),It(e,v=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},l.createElement(bo.Provider,{value:h},v))))}),El=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),i=Fe(s=>!s.search);return!r&&!i?null:l.createElement(Le.div,{ref:Te(o,t),...n,"cmdk-separator":"",role:"separator"})}),Rl=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,i=Sr(),s=Fe(c=>c.search),a=Fe(c=>c.selectedItemId),u=bt();return l.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),l.createElement(Le.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":a,id:u.inputId,type:"text",value:o?e.value:s,onChange:c=>{o||i.setState("search",c.target.value),r==null||r(c.target.value)}})}),Sl=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=l.useRef(null),s=l.useRef(null),a=Fe(c=>c.selectedItemId),u=bt();return l.useEffect(()=>{if(s.current&&i.current){let c=s.current,d=i.current,p,h=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let v=c.offsetHeight;d.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return h.observe(c),()=>{cancelAnimationFrame(p),h.unobserve(c)}}},[]),l.createElement(Le.div,{ref:Te(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":n,id:u.listId},It(e,c=>l.createElement("div",{ref:Te(s,u.listInnerRef),"cmdk-list-sizer":""},c)))}),kl=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...a}=e;return l.createElement(ml,{open:r,onOpenChange:n},l.createElement(hl,{container:s},l.createElement(gl,{"cmdk-overlay":"",className:o}),l.createElement(vl,{"aria-label":e.label,"cmdk-dialog":"",className:i},l.createElement(yo,{ref:t,...a}))))}),Pl=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(Le.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Al=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return l.createElement(Le.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},It(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),de=Object.assign(yo,{List:Sl,Item:xl,Input:Rl,Group:Cl,Separator:El,Dialog:kl,Empty:Pl,Loading:Al});function Nl(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Ol(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function wo(e){let t=l.useRef(e);return Ve(()=>{t.current=e}),t}var Ve=typeof window>"u"?l.useEffect:l.useLayoutEffect;function nt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=Sr(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function xo(e,t,r,n=[]){let o=l.useRef(),i=bt();return Ve(()=>{var s;let a=(()=>{var c;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():o.current}})(),u=n.map(c=>c.trim());i.value(e,a,u),(s=t.current)==null||s.setAttribute(rt,a),o.current=a}),o}var jl=()=>{let[e,t]=l.useState(),r=nt(()=>new Map);return Ve(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Tl(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function It({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(Tl(t),{ref:t.ref},r(t.props.children)):r(t)}var _l={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};/**
75
+ * @license lucide-react v0.344.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */var Ml={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
+ * @license lucide-react v0.344.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Dl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ot=(e,t)=>{const r=le.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,...c},d)=>le.createElement("svg",{ref:d,...Ml,width:o,height:o,stroke:n,strokeWidth:s?Number(i)*24/Number(o):i,className:["lucide",`lucide-${Dl(e)}`,a].join(" "),...c},[...t.map(([p,h])=>le.createElement(p,h)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/**
85
+ * @license lucide-react v0.344.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const Il=ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
90
+ * @license lucide-react v0.344.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Ll=ot("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
95
+ * @license lucide-react v0.344.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const Fl=ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
100
+ * @license lucide-react v0.344.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Wl=ot("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
105
+ * @license lucide-react v0.344.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const $l=ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
110
+ * @license lucide-react v0.344.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Bl=ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kr=l.forwardRef(({className:e,...t},r)=>m.jsx(de,{ref:r,className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));kr.displayName=de.displayName;const Pr=l.forwardRef(({className:e,...t},r)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx($l,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(de.Input,{ref:r,className:$("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Pr.displayName=de.Input.displayName;const Co=l.forwardRef(({className:e,...t},r)=>m.jsx(de.List,{ref:r,className:$("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Co.displayName=de.List.displayName;const Ar=l.forwardRef((e,t)=>m.jsx(de.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ar.displayName=de.Empty.displayName;const Nr=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Group,{ref:r,className:$("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Nr.displayName=de.Group.displayName;const Eo=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Separator,{ref:r,className:$("-mx-1 h-px bg-border",e),...t}));Eo.displayName=de.Separator.displayName;const Or=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Item,{ref:r,className:$("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...t}));Or.displayName=de.Item.displayName;const Ro=({className:e,...t})=>m.jsx("span",{className:$("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ro.displayName="CommandShortcut";function So({children:e,onClose:t,className:r}){return le.useEffect(()=>{function n(o){(o.key==="Escape"||o.key==="Esc")&&t&&t()}return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),le.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[m.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm transition-opacity",onClick:t}),m.jsx("div",{className:$("relative w-full max-w-sm transform rounded-xl bg-card border border-border p-6 shadow-2xl transition-all","animate-in fade-in zoom-in-95 duration-200",r),children:e})]})}function zl({title:e,children:t,onClose:r,className:n}){return m.jsxs(So,{onClose:r,className:n,children:[m.jsxs("div",{className:"flex items-center justify-between mb-6",children:[m.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:e}),m.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:m.jsx(Bl,{className:"w-5 h-5"})})]}),m.jsx("div",{children:t})]})}const Vl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"9",r:"2.5",fill:"currentColor"})]}),Hl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M7 10l5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 5v12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ul=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M11 16l-4-4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Gl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12a9 9 0 11-3-6.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 8v8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yl=(e={})=>m.jsx("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),Kl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12 11v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"10",r:"1.5",fill:"currentColor"})]}),Xl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M16 3l3 3v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M9 8h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5"})]}),Zl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 9v4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"17",r:"0.8",fill:"currentColor"})]}),Jl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15 10l-6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M4.93 4.93l14.14 14.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function ec({title:e,icon:t,count:r,countLabel:n,children:o,className:i,...s}){return m.jsxs("div",{className:$("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",i),...s,children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(t,{className:"w-6 h-6 text-primary"}),m.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&m.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),m.jsx("div",{className:"flex items-center gap-3",children:o})]})}const tc=["top","right","bottom","left"],We=Math.min,me=Math.max,Lt=Math.round,Ft=Math.floor,Re=e=>({x:e,y:e}),rc={left:"right",right:"left",bottom:"top",top:"bottom"},nc={start:"end",end:"start"};function jr(e,t,r){return me(e,We(t,r))}function Ne(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Tr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}const oc=new Set(["top","bottom"]);function Se(e){return oc.has(Oe(e))?"y":"x"}function Mr(e){return Tr(Se(e))}function ic(e,t,r){r===void 0&&(r=!1);const n=it(e),o=Mr(e),i=_r(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wt(s)),[s,Wt(s)]}function ac(e){const t=Wt(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.replace(/start|end/g,t=>nc[t])}const ko=["left","right"],Po=["right","left"],sc=["top","bottom"],lc=["bottom","top"];function cc(e,t,r){switch(e){case"top":case"bottom":return r?t?Po:ko:t?ko:Po;case"left":case"right":return t?sc:lc;default:return[]}}function uc(e,t,r,n){const o=it(e);let i=cc(Oe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Dr)))),i}function Wt(e){return e.replace(/left|right|bottom|top/g,t=>rc[t])}function dc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?dc(e):{top:e,right:e,bottom:e,left:e}}function $t(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 No(e,t,r){let{reference:n,floating:o}=e;const i=Se(t),s=Mr(t),a=_r(s),u=Oe(t),c=i==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let v;switch(u){case"top":v={x:d,y:n.y-o.height};break;case"bottom":v={x:d,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(it(t)){case"start":v[s]-=h*(r&&c?-1:1);break;case"end":v[s]+=h*(r&&c?-1:1);break}return v}const fc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=No(c,n,u),h=n,v={},y=0;for(let g=0;g<a.length;g++){const{name:b,fn:w}=a[g],{x,y:P,data:R,reset:S}=await w({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=x??d,p=P??p,v={...v,[b]:{...v[b],...R}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:p}=No(c,h,u)),g=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:v}};async function yt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=Ne(t,e),y=Ao(v),b=a[h?p==="floating"?"reference":"floating":p],w=$t(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),x=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),R=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},S=$t(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:u}):x);return{top:(w.top-S.top+y.top)/R.y,bottom:(S.bottom-w.bottom+y.bottom)/R.y,left:(w.left-S.left+y.left)/R.x,right:(S.right-w.right+y.right)/R.x}}const pc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:d=0}=Ne(e,t)||{};if(c==null)return{};const p=Ao(d),h={x:r,y:n},v=Mr(o),y=_r(v),g=await s.getDimensions(c),b=v==="y",w=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",R=i.reference[y]+i.reference[v]-h[v]-i.floating[y],S=h[v]-i.reference[v],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=N?N[P]:0;(!k||!await(s.isElement==null?void 0:s.isElement(N)))&&(k=a.floating[P]||i.floating[y]);const B=R/2-S/2,G=k/2-g[y]/2-1,z=We(p[w],G),K=We(p[x],G),T=z,V=k-g[y]-K,L=k/2-g[y]/2+B,J=jr(T,L,V),Y=!u.arrow&&it(o)!=null&&L!==J&&i.reference[y]/2-(L<T?z:K)-g[y]/2<0,Z=Y?L<T?L-T:L-V:0;return{[v]:h[v]+Z,data:{[v]:J,centerOffset:L-J-Z,...Y&&{alignmentOffset:Z}},reset:Y}}}),mc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=Ne(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const w=Oe(o),x=Se(a),P=Oe(a)===a,R=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(P||!g?[Wt(a)]:ac(a)),N=y!=="none";!h&&N&&S.push(...uc(a,g,y,R));const k=[a,...S],B=await yt(t,b),G=[];let z=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&G.push(B[w]),p){const L=ic(o,s,R);G.push(B[L[0]],B[L[1]])}if(z=[...z,{placement:o,overflows:G}],!G.every(L=>L<=0)){var K,T;const L=(((K=i.flip)==null?void 0:K.index)||0)+1,J=k[L];if(J&&(!(p==="alignment"?x!==Se(J):!1)||z.every(D=>Se(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:L,overflows:z},reset:{placement:J}};let Y=(T=z.filter(Z=>Z.overflows[0]<=0).sort((Z,D)=>Z.overflows[1]-D.overflows[1])[0])==null?void 0:T.placement;if(!Y)switch(v){case"bestFit":{var V;const Z=(V=z.filter(D=>{if(N){const Q=Se(D.placement);return Q===x||Q==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Q=>Q>0).reduce((Q,se)=>Q+se,0)]).sort((D,Q)=>D[1]-Q[1])[0])==null?void 0:V[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jo(e){return tc.some(t=>e[t]>=0)}const hc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ne(e,t);switch(n){case"referenceHidden":{const i=await yt(t,{...o,elementContext:"reference"}),s=Oo(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jo(s)}}}case"escaped":{const i=await yt(t,{...o,altBoundary:!0}),s=Oo(i,r.floating);return{data:{escapedOffsets:s,escaped:jo(s)}}}default:return{}}}}},To=new Set(["left","top"]);async function gc(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Oe(r),a=it(r),u=Se(r)==="y",c=To.has(s)?-1:1,d=i&&u?-1:1,p=Ne(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(v=a==="end"?y*-1:y),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await gc(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},bc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...u}=Ne(e,t),c={x:r,y:n},d=await yt(t,u),p=Se(Oe(o)),h=Tr(p);let v=c[h],y=c[p];if(i){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=v+d[b],P=v-d[w];v=jr(x,v,P)}if(s){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=y+d[b],P=y-d[w];y=jr(x,y,P)}const g=a.fn({...t,[h]:v,[p]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[p]:s}}}}}},yc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=Ne(e,t),d={x:r,y:n},p=Se(o),h=Tr(p);let v=d[h],y=d[p];const g=Ne(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const P=h==="y"?"height":"width",R=i.reference[h]-i.floating[P]+b.mainAxis,S=i.reference[h]+i.reference[P]-b.mainAxis;v<R?v=R:v>S&&(v=S)}if(c){var w,x;const P=h==="y"?"width":"height",R=To.has(Oe(o)),S=i.reference[p]-i.floating[P]+(R&&((w=s.offset)==null?void 0:w[p])||0)+(R?0:b.crossAxis),N=i.reference[p]+i.reference[P]+(R?0:((x=s.offset)==null?void 0:x[p])||0)-(R?b.crossAxis:0);y<S?y=S:y>N&&(y=N)}return{[h]:v,[p]:y}}}},wc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=Ne(e,t),d=await yt(t,c),p=Oe(o),h=it(o),v=Se(o)==="y",{width:y,height:g}=i.floating;let b,w;p==="top"||p==="bottom"?(b=p,w=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,P=y-d.left-d.right,R=We(g-d[b],x),S=We(y-d[w],P),N=!t.middlewareData.shift;let k=R,B=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=x),N&&!h){const z=me(d.left,0),K=me(d.right,0),T=me(d.top,0),V=me(d.bottom,0);v?B=y-2*(z!==0||K!==0?z+K:me(d.left,d.right)):k=g-2*(T!==0||V!==0?T+V:me(d.top,d.bottom))}await u({...t,availableWidth:B,availableHeight:k});const G=await s.getDimensions(a.floating);return y!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Bt(){return typeof window<"u"}function at(e){return _o(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(_o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _o(e){return Bt()?e instanceof Node||e instanceof he(e).Node:!1}function we(e){return Bt()?e instanceof Element||e instanceof he(e).Element:!1}function Pe(e){return Bt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Mo(e){return!Bt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const xc=new Set(["inline","contents"]);function wt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!xc.has(o)}const Cc=new Set(["table","td","th"]);function Ec(e){return Cc.has(at(e))}const Rc=[":popover-open",":modal"];function zt(e){return Rc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Sc=["transform","translate","scale","rotate","perspective"],kc=["transform","translate","scale","rotate","perspective","filter"],Pc=["paint","layout","strict","content"];function Ir(e){const t=Lr(),r=we(e)?xe(e):e;return Sc.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)||kc.some(n=>(r.willChange||"").includes(n))||Pc.some(n=>(r.contain||"").includes(n))}function Ac(e){let t=$e(e);for(;Pe(t)&&!st(t);){if(Ir(t))return t;if(zt(t))return null;t=$e(t)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nc=new Set(["html","body","#document"]);function st(e){return Nc.has(at(e))}function xe(e){return he(e).getComputedStyle(e)}function Vt(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mo(e)&&e.host||ke(e);return Mo(t)?t.host:t}function Do(e){const t=$e(e);return st(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&wt(t)?t:Do(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Do(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=he(o);if(i){const a=Fr(s);return t.concat(s,s.visualViewport||[],wt(o)?o:[],a&&r?xt(a):[])}return t.concat(o,xt(o,[],r))}function Fr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Io(e){const t=xe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Pe(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Lt(r)!==i||Lt(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Wr(e){return we(e)?e:e.contextElement}function lt(e){const t=Wr(e);if(!Pe(t))return Re(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Io(t);let s=(i?Lt(r.width):r.width)/n,a=(i?Lt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Oc=Re(0);function Lo(e){const t=he(e);return!Lr()||!t.visualViewport?Oc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==he(e)?!1:t}function He(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Wr(e);let s=Re(1);t&&(n?we(n)&&(s=lt(n)):s=lt(e));const a=jc(i,r,n)?Lo(i):Re(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=he(i),v=n&&we(n)?he(n):n;let y=h,g=Fr(y);for(;g&&n&&v!==y;){const b=lt(g),w=g.getBoundingClientRect(),x=xe(g),P=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,R=w.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,p*=b.y,u+=P,c+=R,y=he(g),g=Fr(y)}}return $t({width:d,height:p,x:u,y:c})}function Ht(e,t){const r=Vt(e).scrollLeft;return t?t.left+r:He(ke(e)).left+r}function Fo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ht(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Tc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=ke(n),a=t?zt(t.floating):!1;if(n===s||a&&i)return r;let u={scrollLeft:0,scrollTop:0},c=Re(1);const d=Re(0),p=Pe(n);if((p||!p&&!i)&&((at(n)!=="body"||wt(s))&&(u=Vt(n)),Pe(n))){const v=He(n);c=lt(n),d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}const h=s&&!p&&!i?Fo(s,u):Re(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-u.scrollTop*c.y+d.y+h.y}}function _c(e){return Array.from(e.getClientRects())}function Mc(e){const t=ke(e),r=Vt(e),n=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ht(e);const a=-r.scrollTop;return xe(n).direction==="rtl"&&(s+=me(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Wo=25;function Dc(e,t){const r=he(e),n=ke(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const d=Lr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=Ht(n);if(c<=0){const d=n.ownerDocument,p=d.body,h=getComputedStyle(p),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-v);y<=Wo&&(i-=y)}else c<=Wo&&(i+=c);return{width:i,height:s,x:a,y:u}}const Ic=new Set(["absolute","fixed"]);function Lc(e,t){const r=He(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Pe(e)?lt(e):Re(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=n*i.y;return{width:s,height:a,x:u,y:c}}function $o(e,t,r){let n;if(t==="viewport")n=Dc(e,r);else if(t==="document")n=Mc(ke(e));else if(we(t))n=Lc(t,r);else{const o=Lo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(n)}function Bo(e,t){const r=$e(e);return r===t||!we(r)||st(r)?!1:xe(r).position==="fixed"||Bo(r,t)}function Fc(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(a=>we(a)&&at(a)!=="body"),o=null;const i=xe(e).position==="fixed";let s=i?$e(e):e;for(;we(s)&&!st(s);){const a=xe(s),u=Ir(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&Ic.has(o.position)||wt(s)&&!u&&Bo(e,s))?n=n.filter(d=>d!==s):o=a,s=$e(s)}return t.set(e,n),n}function Wc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?zt(t)?[]:Fc(t,this._c):[].concat(r),n],a=s[0],u=s.reduce((c,d)=>{const p=$o(t,d,o);return c.top=me(p.top,c.top),c.right=We(p.right,c.right),c.bottom=We(p.bottom,c.bottom),c.left=me(p.left,c.left),c},$o(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function $c(e){const{width:t,height:r}=Io(e);return{width:t,height:r}}function Bc(e,t,r){const n=Pe(t),o=ke(t),i=r==="fixed",s=He(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Re(0);function c(){u.x=Ht(o)}if(n||!n&&!i)if((at(t)!=="body"||wt(o))&&(a=Vt(t)),n){const v=He(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?Fo(o,a):Re(0),p=s.left+a.scrollLeft-u.x-d.x,h=s.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function $r(e){return xe(e).position==="static"}function zo(e,t){if(!Pe(e)||xe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function Vo(e,t){const r=he(e);if(zt(e))return r;if(!Pe(e)){let o=$e(e);for(;o&&!st(o);){if(we(o)&&!$r(o))return o;o=$e(o)}return r}let n=zo(e,t);for(;n&&Ec(n)&&$r(n);)n=zo(n,t);return n&&st(n)&&$r(n)&&!Ir(n)?r:n||Ac(e)||r}const zc=async function(e){const t=this.getOffsetParent||Vo,r=this.getDimensions,n=await r(e.floating);return{reference:Bc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vc(e){return xe(e).direction==="rtl"}const Hc={convertOffsetParentRelativeRectToViewportRelativeRect:Tc,getDocumentElement:ke,getClippingRect:Wc,getOffsetParent:Vo,getElementRects:zc,getClientRects:_c,getDimensions:$c,getScale:lt,isElement:we,isRTL:Vc};function Ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uc(e,t){let r=null,n;const o=ke(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:v}=c;if(a||t(),!h||!v)return;const y=Ft(p),g=Ft(o.clientWidth-(d+h)),b=Ft(o.clientHeight-(p+v)),w=Ft(d),P={rootMargin:-y+"px "+-g+"px "+-b+"px "+-w+"px",threshold:me(0,We(1,u))||1};let R=!0;function S(N){const k=N[0].intersectionRatio;if(k!==u){if(!R)return s();k?s(!1,k):n=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Ho(c,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(S,{...P,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,P)}r.observe(e)}return s(!0),i}function Gc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=Wr(e),d=o||i?[...c?xt(c):[],...xt(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),i&&w.addEventListener("resize",r)});const p=c&&a?Uc(c,r):null;let h=-1,v=null;s&&(v=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=v)==null||P.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let y,g=u?He(e):null;u&&b();function b(){const w=He(e);g&&!Ho(g,w)&&r(),g=w,y=requestAnimationFrame(b)}return r(),()=>{var w;d.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),p==null||p(),(w=v)==null||w.disconnect(),v=null,u&&cancelAnimationFrame(y)}}const Yc=vc,Kc=bc,Xc=mc,qc=wc,Zc=hc,Uo=pc,Jc=yc,Qc=(e,t,r)=>{const n=new Map,o={platform:Hc,...r},i={...o.platform,_c:n};return fc(e,t,{...o,platform:i})};var eu=typeof document<"u",tu=function(){},Ut=eu?le.useLayoutEffect:tu;function Gt(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(!Gt(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 i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Gt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Go(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yo(e,t){const r=Go(e);return Math.round(t*r)/r}function Br(e){const t=l.useRef(e);return Ut(()=>{t.current=e}),t}function ru(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=l.useState(n);Gt(h,n)||v(n);const[y,g]=l.useState(null),[b,w]=l.useState(null),x=l.useCallback(D=>{D!==N.current&&(N.current=D,g(D))},[]),P=l.useCallback(D=>{D!==k.current&&(k.current=D,w(D))},[]),R=i||y,S=s||b,N=l.useRef(null),k=l.useRef(null),B=l.useRef(d),G=u!=null,z=Br(u),K=Br(o),T=Br(c),V=l.useCallback(()=>{if(!N.current||!k.current)return;const D={placement:t,strategy:r,middleware:h};K.current&&(D.platform=K.current),Qc(N.current,k.current,D).then(Q=>{const se={...Q,isPositioned:T.current!==!1};L.current&&!Gt(B.current,se)&&(B.current=se,Qr.flushSync(()=>{p(se)}))})},[h,t,r,K,T]);Ut(()=>{c===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(D=>({...D,isPositioned:!1})))},[c]);const L=l.useRef(!1);Ut(()=>(L.current=!0,()=>{L.current=!1}),[]),Ut(()=>{if(R&&(N.current=R),S&&(k.current=S),R&&S){if(z.current)return z.current(R,S,V);V()}},[R,S,V,z,G]);const J=l.useMemo(()=>({reference:N,floating:k,setReference:x,setFloating:P}),[x,P]),Y=l.useMemo(()=>({reference:R,floating:S}),[R,S]),Z=l.useMemo(()=>{const D={position:r,left:0,top:0};if(!Y.floating)return D;const Q=Yo(Y.floating,d.x),se=Yo(Y.floating,d.y);return a?{...D,transform:"translate("+Q+"px, "+se+"px)",...Go(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Q,top:se}},[r,a,Y.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:V,refs:J,elements:Y,floatingStyles:Z}),[d,V,J,Y,Z])}const nu=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?Uo({element:n.current,padding:o}).fn(r):{}:n?Uo({element:n,padding:o}).fn(r):{}}}},ou=(e,t)=>({...Yc(e),options:[e,t]}),iu=(e,t)=>({...Kc(e),options:[e,t]}),au=(e,t)=>({...Jc(e),options:[e,t]}),su=(e,t)=>({...Xc(e),options:[e,t]}),lu=(e,t)=>({...qc(e),options:[e,t]}),cu=(e,t)=>({...Zc(e),options:[e,t]}),uu=(e,t)=>({...nu(e),options:[e,t]});var du="Arrow",Ko=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return m.jsx(ue.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ko.displayName=du;var fu=Ko;function pu(e){const[t,r]=l.useState(void 0);return De(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var zr="Popper",[Xo,qo]=ir(zr),[mu,Zo]=Xo(zr),Jo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return m.jsx(mu,{scope:t,anchor:n,onAnchorChange:o,children:r})};Jo.displayName=zr;var Qo="PopperAnchor",ei=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Zo(Qo,r),s=l.useRef(null),a=be(t,s),u=l.useRef(null);return l.useEffect(()=>{const c=u.current;u.current=(n==null?void 0:n.current)||s.current,c!==u.current&&i.onAnchorChange(u.current)}),n?null:m.jsx(ue.div,{...o,ref:a})});ei.displayName=Qo;var Vr="PopperContent",[hu,gu]=Xo(Vr),ti=l.forwardRef((e,t)=>{var X,ne,re,ge,Kt,Et;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...g}=e,b=Zo(Vr,r),[w,x]=l.useState(null),P=be(t,Ue=>x(Ue)),[R,S]=l.useState(null),N=pu(R),k=(N==null?void 0:N.width)??0,B=(N==null?void 0:N.height)??0,G=n+(i!=="center"?"-"+i:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},K=Array.isArray(c)?c:[c],T=K.length>0,V={padding:z,boundary:K.filter(bu),altBoundary:T},{refs:L,floatingStyles:J,placement:Y,isPositioned:Z,middlewareData:D}=ru({strategy:"fixed",placement:G,whileElementsMounted:(...Ue)=>Gc(...Ue,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[ou({mainAxis:o+B,alignmentAxis:s}),u&&iu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?au():void 0,...V}),u&&su({...V}),lu({...V,apply:({elements:Ue,rects:Xt,availableWidth:ut,availableHeight:Ge})=>{const{width:qt,height:Zt}=Xt.reference,je=Ue.floating.style;je.setProperty("--radix-popper-available-width",`${ut}px`),je.setProperty("--radix-popper-available-height",`${Ge}px`),je.setProperty("--radix-popper-anchor-width",`${qt}px`),je.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),R&&uu({element:R,padding:a}),yu({arrowWidth:k,arrowHeight:B}),h&&cu({strategy:"referenceHidden",...V})]}),[Q,se]=oi(Y),ie=qe(y);De(()=>{Z&&(ie==null||ie())},[Z,ie]);const E=(X=D.arrow)==null?void 0:X.x,_=(ne=D.arrow)==null?void 0:ne.y,F=((re=D.arrow)==null?void 0:re.centerOffset)!==0,[j,U]=l.useState();return De(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),m.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:Z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(ge=D.transformOrigin)==null?void 0:ge.x,(Kt=D.transformOrigin)==null?void 0:Kt.y].join(" "),...((Et=D.hide)==null?void 0:Et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(hu,{scope:r,placedSide:Q,onArrowChange:S,arrowX:E,arrowY:_,shouldHideArrow:F,children:m.jsx(ue.div,{"data-side":Q,"data-align":se,...g,ref:P,style:{...g.style,animation:Z?void 0:"none"}})})})});ti.displayName=Vr;var ri="PopperArrow",vu={top:"bottom",right:"left",bottom:"top",left:"right"},ni=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=gu(ri,n),s=vu[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(fu,{...o,ref:r,style:{...o.style,display:"block"}})})});ni.displayName=ri;function bu(e){return e!==null}var yu=e=>({name:"transformOrigin",options:e,fn(t){var b,w,x;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=oi(r),p={start:"0%",center:"50%",end:"100%"}[d],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let y="",g="";return c==="bottom"?(y=s?p:`${h}px`,g=`${-u}px`):c==="top"?(y=s?p:`${h}px`,g=`${n.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?p:`${v}px`):c==="left"&&(y=`${n.floating.width+u}px`,g=s?p:`${v}px`),{data:{x:y,y:g}}}});function oi(e){const[t,r="center"]=e.split("-");return[t,r]}var wu=Jo,ii=ei,xu=ti,Cu=ni,Yt="Popover",[ai]=ir(Yt,[qo]),Ct=qo(),[Eu,Be]=ai(Yt),si=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=Ct(t),u=l.useRef(null),[c,d]=l.useState(!1),[p,h]=Nn({prop:n,defaultProp:o??!1,onChange:i,caller:Yt});return m.jsx(wu,{...a,children:m.jsx(Eu,{scope:t,contentId:Ce(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:c,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:s,children:r})})};si.displayName=Yt;var li="PopoverAnchor",Ru=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(li,r),i=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return l.useEffect(()=>(s(),()=>a()),[s,a]),m.jsx(ii,{...i,...n,ref:t})});Ru.displayName=li;var ci="PopoverTrigger",ui=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(ci,r),i=Ct(r),s=be(t,o.triggerRef),a=m.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hi(o.open),...n,ref:s,onClick:pe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:m.jsx(ii,{asChild:!0,...i,children:a})});ui.displayName=ci;var Hr="PopoverPortal",[Su,ku]=ai(Hr,{forceMount:void 0}),di=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Be(Hr,t);return m.jsx(Su,{scope:t,forceMount:r,children:m.jsx(Ze,{present:r||i.open,children:m.jsx(fr,{asChild:!0,container:o,children:n})})})};di.displayName=Hr;var ct="PopoverContent",fi=l.forwardRef((e,t)=>{const r=ku(ct,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Be(ct,e.__scopePopover);return m.jsx(Ze,{present:n||i.open,children:i.modal?m.jsx(Au,{...o,ref:t}):m.jsx(Nu,{...o,ref:t})})});fi.displayName=ct;var Pu=ar("PopoverContent.RemoveScroll"),Au=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(null),o=be(t,n),i=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return eo(s)},[]),m.jsx(br,{as:Pu,allowPinchZoom:!0,children:m.jsx(pi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Nu=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),pi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,h=Be(ct,r),v=Ct(r);return Wn(),m.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:m.jsx(lr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:m.jsx(xu,{"data-state":hi(h.open),role:"dialog",id:h.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)"}})})})}),mi="PopoverClose",Ou=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(mi,r);return m.jsx(ue.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Ou.displayName=mi;var ju="PopoverArrow",Tu=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return m.jsx(Cu,{...o,...n,ref:t})});Tu.displayName=ju;function hi(e){return e?"open":"closed"}var _u=si,Mu=ui,Du=di,gi=fi;const vi=_u,bi=Mu,Ur=l.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>m.jsx(Du,{children:m.jsx(gi,{ref:o,align:t,sideOffset:r,className:$("z-50 w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ur.displayName=gi.displayName;function Iu({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:i="No results found.",className:s,disabled:a}){const[u,c]=le.useState(!1),d=e.find(p=>String(p.value)===String(t));return m.jsxs(vi,{open:u,onOpenChange:c,children:[m.jsx(bi,{asChild:!0,children:m.jsxs(St,{variant:"outline",role:"combobox",disabled:a,"aria-expanded":u,className:$("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",s),children:[m.jsx("span",{className:"truncate",children:d?d.label:n}),m.jsx(Wl,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(Ur,{className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover",children:m.jsxs(kr,{className:"bg-transparent",children:[m.jsx(Pr,{placeholder:o,className:"h-9"}),m.jsx(Ar,{children:i}),m.jsx(Nr,{className:"max-h-60 overflow-auto p-1",children:e.map(p=>m.jsxs(Or,{value:p.label,onSelect:()=>{r(String(p.value)),c(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[m.jsx(Il,{className:$("mr-2 h-4 w-4 text-primary",String(t)===String(p.value)?"opacity-100":"opacity-0")}),m.jsx("span",{className:"truncate",children:p.label})]},p.value))})]})})]})}const yi=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:r,className:$("w-full caption-bottom text-sm",e),...t})}));yi.displayName="Table";const wi=l.forwardRef(({className:e,...t},r)=>m.jsx("thead",{ref:r,className:$("[&_tr]:border-b",e),...t}));wi.displayName="TableHeader";const xi=l.forwardRef(({className:e,...t},r)=>m.jsx("tbody",{ref:r,className:$("[&_tr:last-child]:border-0",e),...t}));xi.displayName="TableBody";const Ci=l.forwardRef(({className:e,...t},r)=>m.jsx("tfoot",{ref:r,className:$("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Ci.displayName="TableFooter";const Ei=l.forwardRef(({className:e,...t},r)=>m.jsx("tr",{ref:r,className:$("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Ei.displayName="TableRow";const Ri=l.forwardRef(({className:e,...t},r)=>m.jsx("th",{ref:r,className:$("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Ri.displayName="TableHead";const Si=l.forwardRef(({className:e,...t},r)=>m.jsx("td",{ref:r,className:$("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Si.displayName="TableCell";const ki=l.forwardRef(({className:e,...t},r)=>m.jsx("caption",{ref:r,className:$("mt-4 text-sm text-muted-foreground",e),...t}));ki.displayName="TableCaption";function Lu({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:i,children:s,className:a}){const u=({item:c})=>{if(c.divider)return m.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=c.icon,p=c.route&&t===c.route;return m.jsxs(St,{variant:"ghost",className:$("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",p?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",a),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},title:n?c.label:void 0,children:[m.jsx(d,{className:$("h-5 w-5 shrink-0",p?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&m.jsx("span",{className:$("truncate font-medium",p?"text-foreground":"text-muted-foreground"),children:c.label}),n&&p&&m.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return m.jsxs("div",{className:$("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",a),children:[m.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((c,d)=>m.jsx(u,{item:c},d)),s]}),m.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[i,o&&m.jsx("button",{onClick:o,className:$("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?m.jsx(Fl,{className:"h-5 w-5"}):m.jsx(Ll,{className:"h-5 w-5"})})]})]})}O.Badge=Pa,O.BanIcon=Ql,O.BringIcon=Hl,O.Button=St,O.Card=wn,O.CardContent=Rn,O.CardDescription=En,O.CardFooter=Sn,O.CardHeader=xn,O.CardTitle=Cn,O.ClothingIcon=Xl,O.Command=kr,O.CommandEmpty=Ar,O.CommandGroup=Nr,O.CommandInput=Pr,O.CommandItem=Or,O.CommandList=Co,O.CommandSeparator=Eo,O.CommandShortcut=Ro,O.Dialog=zl,O.EyeIcon=ql,O.Input=ka,O.KickIcon=Jl,O.Modal=So,O.MoneyIcon=Kl,O.PageHeader=ec,O.Popover=vi,O.PopoverContent=Ur,O.PopoverTrigger=bi,O.ReviveIcon=Gl,O.SelectSearch=Iu,O.SendBackIcon=Ul,O.Sidebar=Lu,O.Table=yi,O.TableBody=xi,O.TableCaption=ki,O.TableCell=Si,O.TableFooter=Ci,O.TableHead=Ri,O.TableHeader=wi,O.TableRow=Ei,O.TeleportIcon=Vl,O.VerifyIcon=Yl,O.WarnIcon=Zl,O.badgeVariants=yn,O.buttonVariants=bn,O.cn=$,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,3 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ export declare function cn(...inputs: ClassValue[]): string;
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 240 10% 4%;--foreground: 0 0% 98%;--card: 240 10% 6%;--card-foreground: 0 0% 98%;--popover: 240 10% 6%;--popover-foreground: 0 0% 98%;--primary: 160 100% 45%;--primary-foreground: 144 100% 10%;--secondary: 240 5% 15%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 15%;--muted-foreground: 240 5% 60%;--accent: 240 5% 15%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 5% 15%;--input: 240 5% 15%;--ring: 160 100% 45%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:transparent;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;overflow:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-50{z-index:50}.z-\[-1\]{z-index:-1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[600px\]{height:600px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:15rem}.max-h-\[300px\]{max-height:300px}.min-h-\[5rem\]{min-height:5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[--radix-popover-trigger-width\]{width:var(--radix-popover-trigger-width)}.w-\[100px\]{width:100px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[450px\]{width:450px}.w-full{width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-border{border-color:hsl(var(--border))}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-border_primary{--tw-border-opacity: 1;border-color:rgb(55 58 64 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-transparent{border-color:transparent}.border-white\/5{border-color:#ffffff0d}.bg-background{background-color:hsl(var(--background))}.bg-background\/50{background-color:hsl(var(--background) / .5)}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/30{background-color:hsl(var(--card) / .3)}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-20{padding:5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pr-1{padding-right:.25rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.\!font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif!important}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.\!text-foreground{color:hsl(var(--foreground))!important}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[inset_3px_0_0_0_var\(--primary\)\]{--tw-shadow: inset 3px 0 0 0 var(--primary);--tw-shadow-colored: inset 3px 0 0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.drop-shadow-\[0_0_8px_rgba\(0\,227\,150\,0\.5\)\]{--tw-drop-shadow: drop-shadow(0 0 8px rgba(0,227,150,.5));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}#root{height:85%;width:85%;display:flex;align-items:center;justify-content:center}.app-shell{height:100%;width:100%;display:flex;border-radius:.75rem;border-width:1px;border-color:hsl(var(--border));background-color:hsl(var(--background));--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:hidden}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{border-radius:9999px;background-color:hsl(var(--muted))}::-webkit-scrollbar-thumb:hover{background-color:hsl(var(--muted-foreground) / .3)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-red-400\/10:hover{background-color:#f871711a}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-ring:focus{border-color:hsl(var(--ring))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[0\.5px\]>[role=checkbox]{--tw-translate-y: .5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@mriqbox/ui-kit",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "1.0.1",
7
+ "type": "module",
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.es.js",
14
+ "require": "./dist/index.umd.js",
15
+ "types": "./dist/index.d.ts"
16
+ },
17
+ "./dist/style.css": "./dist/style.css"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "tsc && vite build",
25
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
26
+ "preview": "vite preview",
27
+ "storybook": "storybook dev -p 6006",
28
+ "build-storybook": "storybook build"
29
+ },
30
+ "dependencies": {
31
+ "@radix-ui/react-dialog": "^1.0.5",
32
+ "@radix-ui/react-popover": "^1.0.7",
33
+ "@radix-ui/react-slot": "^1.0.2",
34
+ "class-variance-authority": "^0.7.0",
35
+ "clsx": "^2.1.0",
36
+ "cmdk": "^1.0.0",
37
+ "lucide-react": "^0.344.0",
38
+ "react": "^18.2.0",
39
+ "react-dom": "^18.2.0",
40
+ "tailwind-merge": "^2.2.1"
41
+ },
42
+ "devDependencies": {
43
+ "@storybook/addon-essentials": "^7.6.17",
44
+ "@storybook/addon-interactions": "^7.6.17",
45
+ "@storybook/addon-links": "^7.6.17",
46
+ "@storybook/blocks": "^7.6.17",
47
+ "@storybook/manager-api": "^8.6.14",
48
+ "@storybook/react": "^7.6.17",
49
+ "@storybook/react-vite": "^7.6.17",
50
+ "@storybook/theming": "^8.6.14",
51
+ "@types/react": "^18.2.64",
52
+ "@types/react-dom": "^18.2.21",
53
+ "@vitejs/plugin-react": "^4.2.1",
54
+ "autoprefixer": "^10.4.18",
55
+ "postcss": "^8.4.35",
56
+ "storybook": "^7.6.17",
57
+ "tailwindcss": "^3.4.1",
58
+ "tailwindcss-animate": "^1.0.7",
59
+ "typescript": "^5.2.2",
60
+ "vite": "^5.1.6",
61
+ "vite-plugin-dts": "^3.7.3"
62
+ }
63
+ }