buildgrid-ui 1.1.0-alpha.4 → 1.1.0-dev.5

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 (66) hide show
  1. package/.storybook/main.ts +24 -25
  2. package/CHANGELOG.md +17 -0
  3. package/dist/buildgrid-ui.es.js +5259 -891
  4. package/dist/buildgrid-ui.umd.js +91 -11
  5. package/dist/components/adaptative-input/adaptative-input.d.ts +9 -0
  6. package/dist/components/adaptative-input/index.d.ts +1 -0
  7. package/dist/components/autocomplete/autocomplete.d.ts +14 -0
  8. package/dist/components/autocomplete/index.d.ts +1 -0
  9. package/dist/components/avatar/avatar.d.ts +6 -0
  10. package/dist/components/avatar/index.d.ts +1 -0
  11. package/dist/components/badge/index.d.ts +1 -1
  12. package/dist/components/button/{Button.d.ts → button.d.ts} +4 -3
  13. package/dist/components/button/index.d.ts +1 -1
  14. package/dist/components/card/index.d.ts +1 -1
  15. package/dist/components/checkbox/checkbox.d.ts +4 -0
  16. package/dist/components/checkbox/index.d.ts +1 -0
  17. package/dist/components/dropdown-menu/dropdown-menu.d.ts +27 -0
  18. package/dist/components/dropdown-menu/index.d.ts +1 -0
  19. package/dist/components/index.d.ts +7 -0
  20. package/dist/components/input/index.d.ts +1 -0
  21. package/dist/components/input/input.d.ts +9 -0
  22. package/dist/components/popover/index.d.ts +1 -0
  23. package/dist/components/popover/popover.d.ts +7 -0
  24. package/dist/components/skeleton/index.d.ts +1 -1
  25. package/dist/index.d.ts +7 -0
  26. package/package.json +7 -2
  27. package/src/components/adaptative-input/adaptative-input.stories.tsx +30 -0
  28. package/src/components/adaptative-input/adaptative-input.tsx +66 -0
  29. package/src/components/adaptative-input/index.ts +1 -0
  30. package/src/components/autocomplete/autocomplete.stories.tsx +85 -0
  31. package/src/components/autocomplete/autocomplete.tsx +136 -0
  32. package/src/components/autocomplete/index.ts +1 -0
  33. package/src/components/avatar/avatar.stories.tsx +29 -0
  34. package/src/components/avatar/avatar.tsx +48 -0
  35. package/src/components/avatar/index.ts +1 -0
  36. package/src/components/badge/{Badge.stories.tsx → badge.stories.tsx} +1 -1
  37. package/src/components/badge/index.ts +1 -1
  38. package/src/components/button/button.stories.tsx +62 -0
  39. package/src/components/button/button.tsx +82 -0
  40. package/src/components/button/index.ts +1 -1
  41. package/src/components/card/{Card.stories.tsx → card.stories.tsx} +1 -1
  42. package/src/components/card/index.ts +1 -1
  43. package/src/components/checkbox/checkbox.stories.tsx +36 -0
  44. package/src/components/checkbox/checkbox.tsx +28 -0
  45. package/src/components/checkbox/index.ts +1 -0
  46. package/src/components/dropdown-menu/dropdown-menu.stories.tsx +90 -0
  47. package/src/components/dropdown-menu/dropdown-menu.tsx +192 -0
  48. package/src/components/dropdown-menu/index.ts +1 -0
  49. package/src/components/index.ts +7 -0
  50. package/src/components/input/index.ts +1 -0
  51. package/src/components/input/input.stories.tsx +22 -0
  52. package/src/components/input/input.tsx +41 -0
  53. package/src/components/popover/index.ts +1 -0
  54. package/src/components/popover/popover.stories.tsx +32 -0
  55. package/src/components/popover/popover.tsx +30 -0
  56. package/src/components/skeleton/index.ts +1 -1
  57. package/src/index.ts +7 -0
  58. package/src/components/button/Button.stories.tsx +0 -40
  59. package/src/components/button/Button.tsx +0 -57
  60. /package/dist/components/badge/{Badge.d.ts → badge.d.ts} +0 -0
  61. /package/dist/components/card/{Card.d.ts → card.d.ts} +0 -0
  62. /package/dist/components/skeleton/{Skeleton.d.ts → skeleton.d.ts} +0 -0
  63. /package/src/components/badge/{Badge.tsx → badge.tsx} +0 -0
  64. /package/src/components/card/{Card.tsx → card.tsx} +0 -0
  65. /package/src/components/skeleton/{Skeleton.stories.tsx → skeleton.stories.tsx} +0 -0
  66. /package/src/components/skeleton/{Skeleton.tsx → skeleton.tsx} +0 -0
@@ -1,4 +1,4 @@
1
- (function(j,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],H):(j=typeof globalThis<"u"?globalThis:j||self,H(j.BuildgridUI={},j.React))})(this,function(j,H){"use strict";function cr(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return o.default=r,Object.freeze(o)}const C=cr(H);var ge={exports:{}},ne={};/**
1
+ (function(k,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],Y):(k=typeof globalThis<"u"?globalThis:k||self,Y(k.BuildgridUI={},k.React,k.ReactDOM))})(this,function(k,Y,er){"use strict";function tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=tr(Y),nr=tr(er);var Rt={exports:{}},it={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Re;function dr(){if(Re)return ne;Re=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function t(n,s,a){var d=null;if(a!==void 0&&(d=""+a),s.key!==void 0&&(d=""+s.key),"key"in s){a={};for(var i in s)i!=="key"&&(a[i]=s[i])}else a=s;return s=a.ref,{$$typeof:r,type:n,key:d,ref:s!==void 0?s:null,props:a}}return ne.Fragment=o,ne.jsx=t,ne.jsxs=t,ne}var se={};/**
9
+ */var rr;function Pa(){if(rr)return it;rr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return it.Fragment=t,it.jsx=n,it.jsxs=n,it}var ct={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,18 +14,98 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var je;function ur(){return je||(je=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case K:return"Fragment";case Z:return"Portal";case ce:return"Profiler";case le:return"StrictMode";case v:return"Suspense";case ee:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case D:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case F:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return l=e.displayName||null,l!==null?l:r(e.type)||"Memo";case re:l=e._payload,e=e._init;try{return r(e(l))}catch{}}return null}function o(e){return""+e}function t(e){try{o(e);var l=!1}catch{l=!0}if(l){l=console;var c=l.error,b=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",b),o(e)}}function n(){}function s(){if(pe===0){Ke=console.log,Qe=console.info,De=console.warn,er=console.error,rr=console.group,tr=console.groupCollapsed,or=console.groupEnd;var e={configurable:!0,enumerable:!0,value:n,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pe++}function a(){if(pe--,pe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:Ke}),info:S({},e,{value:Qe}),warn:S({},e,{value:De}),error:S({},e,{value:er}),group:S({},e,{value:rr}),groupCollapsed:S({},e,{value:tr}),groupEnd:S({},e,{value:or})})}0>pe&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function d(e){if(Ce===void 0)try{throw Error()}catch(c){var l=c.stack.trim().match(/\n( *(at )?)/);Ce=l&&l[1]||"",nr=-1<c.stack.indexOf(`
18
- at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
19
- `+Ce+e+nr}function i(e,l){if(!e||Ee)return"";var c=ke.get(e);if(c!==void 0)return c;Ee=!0,c=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=P.H,P.H=null,s();try{var N={DetermineComponentFrameRoot:function(){try{if(l){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch($){var me=$}Reflect.construct(e,[],B)}else{try{B.call()}catch($){me=$}e.call(B.prototype)}}else{try{throw Error()}catch($){me=$}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch($){if($&&me&&typeof $.stack=="string")return[$.stack,me.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=N.DetermineComponentFrameRoot(),W=f[0],oe=f[1];if(W&&oe){var _=W.split(`
20
- `),q=oe.split(`
21
- `);for(f=w=0;w<_.length&&!_[w].includes("DetermineComponentFrameRoot");)w++;for(;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;if(w===_.length||f===q.length)for(w=_.length-1,f=q.length-1;1<=w&&0<=f&&_[w]!==q[f];)f--;for(;1<=w&&0<=f;w--,f--)if(_[w]!==q[f]){if(w!==1||f!==1)do if(w--,f--,0>f||_[w]!==q[f]){var be=`
22
- `+_[w].replace(" at new "," at ");return e.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",e.displayName)),typeof e=="function"&&ke.set(e,be),be}while(1<=w&&0<=f);break}}}finally{Ee=!1,P.H=b,a(),Error.prepareStackTrace=c}return _=(_=e?e.displayName||e.name:"")?d(_):"",typeof e=="function"&&ke.set(e,_),_}function g(e){if(e==null)return"";if(typeof e=="function"){var l=e.prototype;return i(e,!(!l||!l.isReactComponent))}if(typeof e=="string")return d(e);switch(e){case v:return d("Suspense");case ee:return d("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case F:return e=i(e.render,!1),e;case U:return g(e.type);case re:l=e._payload,e=e._init;try{return g(e(l))}catch{}}return""}function p(){var e=P.A;return e===null?null:e.getOwner()}function y(e){if(fe.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function k(e,l){function c(){sr||(sr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",l))}c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}function E(){var e=r(this.type);return ar[e]||(ar[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,l,c,b,N,w){return c=w.ref,e={$$typeof:M,type:e,key:l,props:w,_owner:N},(c!==void 0?c:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:E}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function T(e,l,c,b,N,w){if(typeof e=="string"||typeof e=="function"||e===K||e===ce||e===le||e===v||e===ee||e===te||typeof e=="object"&&e!==null&&(e.$$typeof===re||e.$$typeof===U||e.$$typeof===D||e.$$typeof===Q||e.$$typeof===F||e.$$typeof===Kr||e.getModuleId!==void 0)){var f=l.children;if(f!==void 0)if(b)if(we(f)){for(b=0;b<f.length;b++)x(f[b],e);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(f,e)}else f="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?b="null":we(e)?b="array":e!==void 0&&e.$$typeof===M?(b="<"+(r(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,f);if(fe.call(l,"key")){f=r(e);var W=Object.keys(l).filter(function(_){return _!=="key"});b=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",ir[f+b]||(W=0<W.length?"{"+W.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var or;function Ma(){return or||(or=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===T?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case N:return"Fragment";case E:return"Portal";case O:return"Profiler";case A:return"StrictMode";case _:return"Suspense";case B:return"SuspenseList"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case L:return(p.displayName||"Context")+".Provider";case W:return(p._context.displayName||"Context")+".Consumer";case V:var P=p.render;return p=p.displayName,p||(p=P.displayName||P.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case $:return P=p.displayName||null,P!==null?P:e(p.type)||"Memo";case q:P=p._payload,p=p._init;try{return e(p(P))}catch{}}return null}function t(p){return""+p}function n(p){try{t(p);var P=!1}catch{P=!0}if(P){P=console;var M=P.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return M.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(p)}}function r(){}function o(){if(fe===0){Ge=console.log,ve=console.info,le=console.warn,De=console.error,ne=console.group,Le=console.groupCollapsed,Ct=console.groupEnd;var p={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}fe++}function s(){if(fe--,fe===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},p,{value:Ge}),info:z({},p,{value:ve}),warn:z({},p,{value:le}),error:z({},p,{value:De}),group:z({},p,{value:ne}),groupCollapsed:z({},p,{value:Le}),groupEnd:z({},p,{value:Ct})})}0>fe&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i(p){if(ot===void 0)try{throw Error()}catch(M){var P=M.stack.trim().match(/\n( *(at )?)/);ot=P&&P[1]||"",Fe=-1<M.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<M.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+ot+p+Fe}function a(p,P){if(!p||st)return"";var M=Et.get(p);if(M!==void 0)return M;st=!0,M=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var G=null;G=R.H,R.H=null,o();try{var te={DetermineComponentFrameRoot:function(){try{if(P){var $e=function(){throw Error()};if(Object.defineProperty($e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($e,[])}catch(Se){var Jt=Se}Reflect.construct(p,[],$e)}else{try{$e.call()}catch(Se){Jt=Se}p.call($e.prototype)}}else{try{throw Error()}catch(Se){Jt=Se}($e=p())&&typeof $e.catch=="function"&&$e.catch(function(){})}}catch(Se){if(Se&&Jt&&typeof Se.stack=="string")return[Se.stack,Jt.stack]}return[null,null]}};te.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Z=Object.getOwnPropertyDescriptor(te.DetermineComponentFrameRoot,"name");Z&&Z.configurable&&Object.defineProperty(te.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=te.DetermineComponentFrameRoot(),Ee=D[0],at=D[1];if(Ee&&at){var re=Ee.split(`
20
+ `),Ue=at.split(`
21
+ `);for(D=Z=0;Z<re.length&&!re[Z].includes("DetermineComponentFrameRoot");)Z++;for(;D<Ue.length&&!Ue[D].includes("DetermineComponentFrameRoot");)D++;if(Z===re.length||D===Ue.length)for(Z=re.length-1,D=Ue.length-1;1<=Z&&0<=D&&re[Z]!==Ue[D];)D--;for(;1<=Z&&0<=D;Z--,D--)if(re[Z]!==Ue[D]){if(Z!==1||D!==1)do if(Z--,D--,0>D||re[Z]!==Ue[D]){var St=`
22
+ `+re[Z].replace(" at new "," at ");return p.displayName&&St.includes("<anonymous>")&&(St=St.replace("<anonymous>",p.displayName)),typeof p=="function"&&Et.set(p,St),St}while(1<=Z&&0<=D);break}}}finally{st=!1,R.H=G,s(),Error.prepareStackTrace=M}return re=(re=p?p.displayName||p.name:"")?i(re):"",typeof p=="function"&&Et.set(p,re),re}function u(p){if(p==null)return"";if(typeof p=="function"){var P=p.prototype;return a(p,!(!P||!P.isReactComponent))}if(typeof p=="string")return i(p);switch(p){case _:return i("Suspense");case B:return i("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case V:return p=a(p.render,!1),p;case $:return u(p.type);case q:P=p._payload,p=p._init;try{return u(p(P))}catch{}}return""}function l(){var p=R.A;return p===null?null:p.getOwner()}function f(p){if(U.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function d(p,P){function M(){qt||(qt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",P))}M.isReactWarning=!0,Object.defineProperty(p,"key",{get:M,configurable:!0})}function m(){var p=e(this.type);return Zt[p]||(Zt[p]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),p=this.props.ref,p!==void 0?p:null}function v(p,P,M,G,te,Z){return M=Z.ref,p={$$typeof:x,type:p,key:P,props:Z,_owner:te},(M!==void 0?M:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:m}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function b(p,P,M,G,te,Z){if(typeof p=="string"||typeof p=="function"||p===N||p===O||p===A||p===_||p===B||p===F||typeof p=="object"&&p!==null&&(p.$$typeof===q||p.$$typeof===$||p.$$typeof===L||p.$$typeof===W||p.$$typeof===V||p.$$typeof===ce||p.getModuleId!==void 0)){var D=P.children;if(D!==void 0)if(G)if(Ce(D)){for(G=0;G<D.length;G++)g(D[G],p);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(D,p)}else D="",(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),p===null?G="null":Ce(p)?G="array":p!==void 0&&p.$$typeof===x?(G="<"+(e(p.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):G=typeof p,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,D);if(U.call(P,"key")){D=e(p);var Ee=Object.keys(P).filter(function(re){return re!=="key"});G=0<Ee.length?"{key: someKey, "+Ee.join(": ..., ")+": ...}":"{key: someKey}",Ve[D+G]||(Ee=0<Ee.length?"{"+Ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
23
  let props = %s;
24
24
  <%s {...props} />
25
25
  React keys must be passed directly to JSX without using spread:
26
26
  let props = %s;
27
- <%s key={someKey} {...props} />`,b,f,W,f),ir[f+b]=!0)}if(f=null,c!==void 0&&(t(c),f=""+c),y(l)&&(t(l.key),f=""+l.key),"key"in l){c={};for(var oe in l)oe!=="key"&&(c[oe]=l[oe])}else c=l;return f&&k(c,typeof e=="function"?e.displayName||e.name||"Unknown":e),z(e,f,w,N,p(),c)}function x(e,l){if(typeof e=="object"&&e&&e.$$typeof!==Qr){if(we(e))for(var c=0;c<e.length;c++){var b=e[c];m(b)&&R(b,l)}else if(m(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?c=null:(c=de&&e[de]||e["@@iterator"],c=typeof c=="function"?c:null),typeof c=="function"&&c!==e.entries&&(c=c.call(e),c!==e))for(;!(e=c.next()).done;)m(e.value)&&R(e.value,l)}}function m(e){return typeof e=="object"&&e!==null&&e.$$typeof===M}function R(e,l){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,l=O(l),!lr[l])){lr[l]=!0;var c="";e&&e._owner!=null&&e._owner!==p()&&(c=null,typeof e._owner.tag=="number"?c=r(e._owner.type):typeof e._owner.name=="string"&&(c=e._owner.name),c=" It was passed a child from "+c+".");var b=P.getCurrentStack;P.getCurrentStack=function(){var N=g(e.type);return b&&(N+=b()||""),N},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',l,c),P.getCurrentStack=b}}function O(e){var l="",c=p();return c&&(c=r(c.type))&&(l=`
27
+ <%s key={someKey} {...props} />`,G,D,Ee,D),Ve[D+G]=!0)}if(D=null,M!==void 0&&(n(M),D=""+M),f(P)&&(n(P.key),D=""+P.key),"key"in P){M={};for(var at in P)at!=="key"&&(M[at]=P[at])}else M=P;return D&&d(M,typeof p=="function"?p.displayName||p.name||"Unknown":p),v(p,D,Z,te,l(),M)}function g(p,P){if(typeof p=="object"&&p&&p.$$typeof!==Qn){if(Ce(p))for(var M=0;M<p.length;M++){var G=p[M];w(G)&&y(G,P)}else if(w(p))p._store&&(p._store.validated=1);else if(p===null||typeof p!="object"?M=null:(M=H&&p[H]||p["@@iterator"],M=typeof M=="function"?M:null),typeof M=="function"&&M!==p.entries&&(M=M.call(p),M!==p))for(;!(p=M.next()).done;)w(p.value)&&y(p.value,P)}}function w(p){return typeof p=="object"&&p!==null&&p.$$typeof===x}function y(p,P){if(p._store&&!p._store.validated&&p.key==null&&(p._store.validated=1,P=C(P),!Aa[P])){Aa[P]=!0;var M="";p&&p._owner!=null&&p._owner!==l()&&(M=null,typeof p._owner.tag=="number"?M=e(p._owner.type):typeof p._owner.name=="string"&&(M=p._owner.name),M=" It was passed a child from "+M+".");var G=R.getCurrentStack;R.getCurrentStack=function(){var te=u(p.type);return G&&(te+=G()||""),te},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',P,M),R.getCurrentStack=G}}function C(p){var P="",M=l();return M&&(M=e(M.type))&&(P=`
28
28
 
29
- Check the render method of \``+c+"`."),l||(e=r(e))&&(l=`
29
+ Check the render method of \``+M+"`."),P||(p=e(p))&&(P=`
30
30
 
31
- Check the top-level render call using <`+e+">."),l}var L=H,M=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),D=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),de=Symbol.iterator,ue=Symbol.for("react.client.reference"),P=L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Object.prototype.hasOwnProperty,S=Object.assign,Kr=Symbol.for("react.client.reference"),we=Array.isArray,pe=0,Ke,Qe,De,er,rr,tr,or;n.__reactDisabledLog=!0;var Ce,nr,Ee=!1,ke=new(typeof WeakMap=="function"?WeakMap:Map),Qr=Symbol.for("react.client.reference"),sr,ar={},ir={},lr={};se.Fragment=K,se.jsx=function(e,l,c,b,N){return T(e,l,c,!1,b,N)},se.jsxs=function(e,l,c,b,N){return T(e,l,c,!0,b,N)}}()),se}var Se;function fr(){return Se||(Se=1,process.env.NODE_ENV==="production"?ge.exports=dr():ge.exports=ur()),ge.exports}var A=fr();function Ne(r){var o,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(o=0;o<s;o++)r[o]&&(t=Ne(r[o]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function Ae(){for(var r,o,t=0,n="",s=arguments.length;t<s;t++)(r=arguments[t])&&(o=Ne(r))&&(n&&(n+=" "),n+=o);return n}const Te=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,_e=Ae,Oe=(r,o)=>t=>{var n;if((o==null?void 0:o.variants)==null)return _e(r,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:s,defaultVariants:a}=o,d=Object.keys(s).map(p=>{const y=t==null?void 0:t[p],k=a==null?void 0:a[p];if(y===null)return null;const E=Te(y)||Te(k);return s[p][E]}),i=t&&Object.entries(t).reduce((p,y)=>{let[k,E]=y;return E===void 0||(p[k]=E),p},{}),g=o==null||(n=o.compoundVariants)===null||n===void 0?void 0:n.reduce((p,y)=>{let{class:k,className:E,...z}=y;return Object.entries(z).every(T=>{let[x,m]=T;return Array.isArray(m)?m.includes({...a,...i}[x]):{...a,...i}[x]===m})?[...p,k,E]:p},[]);return _e(r,d,g,t==null?void 0:t.class,t==null?void 0:t.className)},ve="-",pr=r=>{const o=gr(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:d=>{const i=d.split(ve);return i[0]===""&&i.length!==1&&i.shift(),ze(i,o)||br(d)},getConflictingClassGroupIds:(d,i)=>{const g=t[d]||[];return i&&n[d]?[...g,...n[d]]:g}}},ze=(r,o)=>{var d;if(r.length===0)return o.classGroupId;const t=r[0],n=o.nextPart.get(t),s=n?ze(r.slice(1),n):void 0;if(s)return s;if(o.validators.length===0)return;const a=r.join(ve);return(d=o.validators.find(({validator:i})=>i(a)))==null?void 0:d.classGroupId},Pe=/^\[(.+)\]$/,br=r=>{if(Pe.test(r)){const o=Pe.exec(r)[1],t=o==null?void 0:o.substring(0,o.indexOf(":"));if(t)return"arbitrary.."+t}},gr=r=>{const{theme:o,prefix:t}=r,n={nextPart:new Map,validators:[]};return vr(Object.entries(r.classGroups),t).forEach(([a,d])=>{he(d,n,a,o)}),n},he=(r,o,t,n)=>{r.forEach(s=>{if(typeof s=="string"){const a=s===""?o:Me(o,s);a.classGroupId=t;return}if(typeof s=="function"){if(mr(s)){he(s(n),o,t,n);return}o.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([a,d])=>{he(d,Me(o,a),t,n)})})},Me=(r,o)=>{let t=r;return o.split(ve).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},mr=r=>r.isThemeGetter,vr=(r,o)=>o?r.map(([t,n])=>{const s=n.map(a=>typeof a=="string"?o+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([d,i])=>[o+d,i])):a);return[t,s]}):r,hr=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,t=new Map,n=new Map;const s=(a,d)=>{t.set(a,d),o++,o>r&&(o=0,n=t,t=new Map)};return{get(a){let d=t.get(a);if(d!==void 0)return d;if((d=n.get(a))!==void 0)return s(a,d),d},set(a,d){t.has(a)?t.set(a,d):s(a,d)}}},Ve="!",yr=r=>{const{separator:o,experimentalParseClassName:t}=r,n=o.length===1,s=o[0],a=o.length,d=i=>{const g=[];let p=0,y=0,k;for(let m=0;m<i.length;m++){let R=i[m];if(p===0){if(R===s&&(n||i.slice(m,m+a)===o)){g.push(i.slice(y,m)),y=m+a;continue}if(R==="/"){k=m;continue}}R==="["?p++:R==="]"&&p--}const E=g.length===0?i:i.substring(y),z=E.startsWith(Ve),T=z?E.substring(1):E,x=k&&k>y?k-y:void 0;return{modifiers:g,hasImportantModifier:z,baseClassName:T,maybePostfixModifierPosition:x}};return t?i=>t({className:i,parseClassName:d}):d},xr=r=>{if(r.length<=1)return r;const o=[];let t=[];return r.forEach(n=>{n[0]==="["?(o.push(...t.sort(),n),t=[]):t.push(n)}),o.push(...t.sort()),o},wr=r=>({cache:hr(r.cacheSize),parseClassName:yr(r),...pr(r)}),Cr=/\s+/,Er=(r,o)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:s}=o,a=[],d=r.trim().split(Cr);let i="";for(let g=d.length-1;g>=0;g-=1){const p=d[g],{modifiers:y,hasImportantModifier:k,baseClassName:E,maybePostfixModifierPosition:z}=t(p);let T=!!z,x=n(T?E.substring(0,z):E);if(!x){if(!T){i=p+(i.length>0?" "+i:i);continue}if(x=n(E),!x){i=p+(i.length>0?" "+i:i);continue}T=!1}const m=xr(y).join(":"),R=k?m+Ve:m,O=R+x;if(a.includes(O))continue;a.push(O);const L=s(x,T);for(let M=0;M<L.length;++M){const Z=L[M];a.push(R+Z)}i=p+(i.length>0?" "+i:i)}return i};function kr(){let r=0,o,t,n="";for(;r<arguments.length;)(o=arguments[r++])&&(t=Ge(o))&&(n&&(n+=" "),n+=t);return n}const Ge=r=>{if(typeof r=="string")return r;let o,t="";for(let n=0;n<r.length;n++)r[n]&&(o=Ge(r[n]))&&(t&&(t+=" "),t+=o);return t};function Rr(r,...o){let t,n,s,a=d;function d(g){const p=o.reduce((y,k)=>k(y),r());return t=wr(p),n=t.cache.get,s=t.cache.set,a=i,i(g)}function i(g){const p=n(g);if(p)return p;const y=Er(g,t);return s(g,y),y}return function(){return a(kr.apply(null,arguments))}}const h=r=>{const o=t=>t[r]||[];return o.isThemeGetter=!0,o},We=/^\[(?:([a-z-]+):)?(.+)\]$/i,jr=/^\d+\/\d+$/,Sr=new Set(["px","full","screen"]),Nr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ar=/\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$/,Tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_r=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=r=>J(r)||Sr.has(r)||jr.test(r),I=r=>X(r,"length",Ir),J=r=>!!r&&!Number.isNaN(Number(r)),ye=r=>X(r,"number",J),ae=r=>!!r&&Number.isInteger(Number(r)),zr=r=>r.endsWith("%")&&J(r.slice(0,-1)),u=r=>We.test(r),Y=r=>Nr.test(r),Pr=new Set(["length","size","percentage"]),Mr=r=>X(r,Pr,$e),Vr=r=>X(r,"position",$e),Gr=new Set(["image","url"]),Wr=r=>X(r,Gr,Ur),$r=r=>X(r,"",Yr),ie=()=>!0,X=(r,o,t)=>{const n=We.exec(r);return n?n[1]?typeof o=="string"?n[1]===o:o.has(n[1]):t(n[2]):!1},Ir=r=>Ar.test(r)&&!Tr.test(r),$e=()=>!1,Yr=r=>_r.test(r),Ur=r=>Or.test(r),Br=Rr(()=>{const r=h("colors"),o=h("spacing"),t=h("blur"),n=h("brightness"),s=h("borderColor"),a=h("borderRadius"),d=h("borderSpacing"),i=h("borderWidth"),g=h("contrast"),p=h("grayscale"),y=h("hueRotate"),k=h("invert"),E=h("gap"),z=h("gradientColorStops"),T=h("gradientColorStopPositions"),x=h("inset"),m=h("margin"),R=h("opacity"),O=h("padding"),L=h("saturate"),M=h("scale"),Z=h("sepia"),K=h("skew"),le=h("space"),ce=h("translate"),Q=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",u,o],v=()=>[u,o],ee=()=>["",G,I],U=()=>["auto",J,u],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],te=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",u],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[J,u];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[G,I],blur:["none","",Y,u],brightness:S(),borderColor:[r],borderRadius:["none","","full",Y,u],borderSpacing:v(),borderWidth:ee(),contrast:S(),grayscale:P(),hueRotate:S(),invert:P(),gap:v(),gradientColorStops:[r],gradientColorStopPositions:[zr,I],inset:F(),margin:F(),opacity:S(),padding:v(),saturate:S(),scale:S(),sepia:P(),skew:S(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...re(),u]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ae,u]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ae,u]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",ae,u]},u]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[ae,u]},u]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,o]}],"min-w":[{"min-w":[u,o,"min","max","fit"]}],"max-w":[{"max-w":[u,o,"none","full","min","max","fit","prose",{screen:[Y]},Y]}],h:[{h:[u,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,o,"auto","min","max","fit"]}],"font-size":[{text:["base",Y,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ye]}],"font-family":[{font:[ie]}],"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",u]}],"line-clamp":[{"line-clamp":["none",J,ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,I]}],"underline-offset":[{"underline-offset":["auto",G,u]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),Vr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wr]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-to-pos":[{to:[T]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...te(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:te()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...te()]}],"outline-offset":[{"outline-offset":[G,u]}],"outline-w":[{outline:[G,I]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[G,I]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",Y,$r]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Y,u]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[k]}],saturate:[{saturate:[L]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ae,u]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",r]}],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",u]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",u]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[G,I,ye]}],stroke:[{stroke:[r,"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 V(...r){return Br(Ae(r))}const Ie=Oe("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 Lr({className:r,variant:o,...t}){return A.jsx("div",{className:V(Ie({variant:o}),r),...t})}function Ye(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Fr(...r){return o=>{let t=!1;const n=r.map(s=>{const a=Ye(s,o);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let s=0;s<n.length;s++){const a=n[s];typeof a=="function"?a():Ye(r[s],null)}}}}var Ue=C.forwardRef((r,o)=>{const{children:t,...n}=r,s=C.Children.toArray(t),a=s.find(Hr);if(a){const d=a.props.children,i=s.map(g=>g===a?C.Children.count(d)>1?C.Children.only(null):C.isValidElement(d)?d.props.children:null:g);return A.jsx(xe,{...n,ref:o,children:C.isValidElement(d)?C.cloneElement(d,void 0,i):null})}return A.jsx(xe,{...n,ref:o,children:t})});Ue.displayName="Slot";var xe=C.forwardRef((r,o)=>{const{children:t,...n}=r;if(C.isValidElement(t)){const s=Xr(t);return C.cloneElement(t,{...Jr(n,t.props),ref:o?Fr(o,s):s})}return C.Children.count(t)>1?C.Children.only(null):null});xe.displayName="SlotClone";var qr=({children:r})=>A.jsx(A.Fragment,{children:r});function Hr(r){return C.isValidElement(r)&&r.type===qr}function Jr(r,o){const t={...o};for(const n in o){const s=r[n],a=o[n];/^on[A-Z]/.test(n)?s&&a?t[n]=(...i)=>{a(...i),s(...i)}:s&&(t[n]=s):n==="style"?t[n]={...s,...a}:n==="className"&&(t[n]=[s,a].filter(Boolean).join(" "))}return{...r,...t}}function Xr(r){var n,s;let o=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?r.ref:(o=(s=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:s.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}const Be=Oe("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",xl:"h-12 rounded-md px-10 text-xl",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Le=C.forwardRef(({className:r,variant:o,size:t,asChild:n=!1,...s},a)=>{const d=n?Ue:"button";return A.jsx(d,{className:V(Be({variant:o,size:t,className:r})),ref:a,...s})});Le.displayName="Button";const Fe=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("rounded-xl border bg-card text-card-foreground shadow",r),...o}));Fe.displayName="Card";const qe=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("flex flex-col space-y-1.5 p-6",r),...o}));qe.displayName="CardHeader";const He=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("font-semibold leading-none tracking-tight pb-4",r),...o}));He.displayName="CardTitle";const Je=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("text-sm text-muted-foreground",r),...o}));Je.displayName="CardDescription";const Xe=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("p-6 py-0",r),...o}));Xe.displayName="CardContent";const Ze=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("flex items-center p-6 pt-6",r),...o}));Ze.displayName="CardFooter";const Zr=({className:r,repeat:o=1,...t})=>A.jsx(A.Fragment,{children:Array.from({length:o??1}).map((n,s)=>A.jsx("div",{className:V("animate-pulse rounded-md bg-gray-700/10",r),...t},s))});j.Badge=Lr,j.Button=Le,j.Card=Fe,j.CardContent=Xe,j.CardDescription=Je,j.CardFooter=Ze,j.CardHeader=qe,j.CardTitle=He,j.Skeleton=Zr,j.badgeVariants=Ie,j.buttonVariants=Be,j.cn=V,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
31
+ Check the top-level render call using <`+p+">."),P}var S=Y,x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),L=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),H=Symbol.iterator,T=Symbol.for("react.client.reference"),R=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,z=Object.assign,ce=Symbol.for("react.client.reference"),Ce=Array.isArray,fe=0,Ge,ve,le,De,ne,Le,Ct;r.__reactDisabledLog=!0;var ot,Fe,st=!1,Et=new(typeof WeakMap=="function"?WeakMap:Map),Qn=Symbol.for("react.client.reference"),qt,Zt={},Ve={},Aa={};ct.Fragment=N,ct.jsx=function(p,P,M,G,te){return b(p,P,M,!1,G,te)},ct.jsxs=function(p,P,M,G,te){return b(p,P,M,!0,G,te)}}()),ct}var sr;function Na(){return sr||(sr=1,process.env.NODE_ENV==="production"?Rt.exports=Pa():Rt.exports=Ma()),Rt.exports}var h=Na();function ar(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const Qt="-",_a=e=>{const t=ka(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Qt);return a[0]===""&&a.length!==1&&a.shift(),cr(a,t)||Oa(i)},getConflictingClassGroupIds:(i,a)=>{const u=n[i]||[];return a&&r[i]?[...u,...r[i]]:u}}},cr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?cr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Qt);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},lr=/^\[(.+)\]$/,Oa=e=>{if(lr.test(e)){const t=lr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ka=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ia(Object.entries(e.classGroups),n).forEach(([s,i])=>{en(i,r,s,t)}),r},en=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ur(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Ta(o)){en(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{en(i,ur(t,s),n,r)})})},ur=(e,t)=>{let n=e;return t.split(Qt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ta=e=>e.isThemeGetter,Ia=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,ja=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},dr="!",Da=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const u=[];let l=0,f=0,d;for(let w=0;w<a.length;w++){let y=a[w];if(l===0){if(y===o&&(r||a.slice(w,w+s)===t)){u.push(a.slice(f,w)),f=w+s;continue}if(y==="/"){d=w;continue}}y==="["?l++:y==="]"&&l--}const m=u.length===0?a:a.substring(f),v=m.startsWith(dr),b=v?m.substring(1):m,g=d&&d>f?d-f:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},La=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Fa=e=>({cache:ja(e.cacheSize),parseClassName:Da(e),..._a(e)}),$a=/\s+/,Wa=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split($a);let a="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:f,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:v}=n(l);let b=!!v,g=r(b?m.substring(0,v):m);if(!g){if(!b){a=l+(a.length>0?" "+a:a);continue}if(g=r(m),!g){a=l+(a.length>0?" "+a:a);continue}b=!1}const w=La(f).join(":"),y=d?w+dr:w,C=y+g;if(s.includes(C))continue;s.push(C);const S=o(g,b);for(let x=0;x<S.length;++x){const E=S[x];s.push(y+E)}a=l+(a.length>0?" "+a:a)}return a};function za(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=fr(t))&&(r&&(r+=" "),r+=n);return r}const fr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=fr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ba(e,...t){let n,r,o,s=i;function i(u){const l=t.reduce((f,d)=>d(f),e());return n=Fa(l),r=n.cache.get,o=n.cache.set,s=a,a(u)}function a(u){const l=r(u);if(l)return l;const f=Wa(u,n);return o(u,f),f}return function(){return s(za.apply(null,arguments))}}const X=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},pr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ga=/^\d+\/\d+$/,Va=new Set(["px","full","screen"]),Ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ka=/\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$/,Ha=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ya=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,be=e=>Ke(e)||Va.has(e)||Ga.test(e),Re=e=>He(e,"length",ri),Ke=e=>!!e&&!Number.isNaN(Number(e)),tn=e=>He(e,"number",Ke),lt=e=>!!e&&Number.isInteger(Number(e)),qa=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),I=e=>pr.test(e),Ae=e=>Ua.test(e),Za=new Set(["length","size","percentage"]),Ja=e=>He(e,Za,mr),Qa=e=>He(e,"position",mr),ei=new Set(["image","url"]),ti=e=>He(e,ei,si),ni=e=>He(e,"",oi),ut=()=>!0,He=(e,t,n)=>{const r=pr.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ri=e=>Ka.test(e)&&!Ha.test(e),mr=()=>!1,oi=e=>Ya.test(e),si=e=>Xa.test(e),ai=Ba(()=>{const e=X("colors"),t=X("spacing"),n=X("blur"),r=X("brightness"),o=X("borderColor"),s=X("borderRadius"),i=X("borderSpacing"),a=X("borderWidth"),u=X("contrast"),l=X("grayscale"),f=X("hueRotate"),d=X("invert"),m=X("gap"),v=X("gradientColorStops"),b=X("gradientColorStopPositions"),g=X("inset"),w=X("margin"),y=X("opacity"),C=X("padding"),S=X("saturate"),x=X("scale"),E=X("sepia"),N=X("skew"),A=X("space"),O=X("translate"),W=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",I,t],_=()=>[I,t],B=()=>["",be,Re],$=()=>["auto",Ke,I],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",I],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Ke,I];return{cacheSize:500,separator:":",theme:{colors:[ut],spacing:[be,Re],blur:["none","",Ae,I],brightness:z(),borderColor:[e],borderRadius:["none","","full",Ae,I],borderSpacing:_(),borderWidth:B(),contrast:z(),grayscale:R(),hueRotate:z(),invert:R(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[qa,Re],inset:V(),margin:V(),opacity:z(),padding:_(),saturate:z(),scale:z(),sepia:R(),skew:z(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Ae]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:[...q(),I]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],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",lt,I]}],basis:[{basis:V()}],"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:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",lt,I]}],"grid-cols":[{"grid-cols":[ut]}],"col-start-end":[{col:["auto",{span:["full",lt,I]},I]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ut]}],"row-start-end":[{row:["auto",{span:[lt,I]},I]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"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:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"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:[Ae]},Ae]}],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",Ae,Re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tn]}],"font-family":[{font:[ut]}],"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,tn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",be,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":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",be,Re]}],"underline-offset":[{"underline-offset":["auto",be,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:_()}],"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":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),Qa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ja]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ti]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[y]}],"border-style":[{border:[...F(),"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":[y]}],"divide-style":[{divide:F()}],"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:["",...F()]}],"outline-offset":[{"outline-offset":[be,I]}],"outline-w":[{outline:[be,Re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[be,Re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ae,ni]}],"shadow-color":[{shadow:[ut]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ae,I]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[lt,I]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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:[be,Re,tn]}],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 K(...e){return ai(ir(e))}const gr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,hr=ir,nn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return hr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const f=n==null?void 0:n[l],d=s==null?void 0:s[l];if(f===null)return null;const m=gr(f)||gr(d);return o[l][m]}),a=n&&Object.entries(n).reduce((l,f)=>{let[d,m]=f;return m===void 0||(l[d]=m),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:d,className:m,...v}=f;return Object.entries(v).every(b=>{let[g,w]=b;return Array.isArray(w)?w.includes({...s,...a}[g]):{...s,...a}[g]===w})?[...l,d,m]:l},[]);return hr(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)},ii=nn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{sizing:{sm:"h-8 text-xs px-2",md:"h-10 text-sm px-3",lg:"h-12 text-base px-4",xl:"h-14 text-lg px-5","2xl":"h-16 text-xl px-6"}},defaultVariants:{sizing:"md"}}),rn=c.forwardRef(({className:e,sizing:t,type:n,...r},o)=>h.jsx("input",{type:n,className:K(ii({sizing:t,className:e})),ref:o,...r}));rn.displayName="Input";const ci=(e,t)=>{const n=e.replace(/\D/g,"");let r="",o=0,s=0;for(;o<t.length&&s<n.length;)t[o]==="0"?(r+=n[s],s++):r+=t[o],o++;return r},on=c.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...s},i)=>{const a=u=>{const l=u.target;if(r){const f=ci(l.value,r);l.value=f}o==null||o(u)};return h.jsxs("div",{className:"relative w-fit",children:[t&&h.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),h.jsx(rn,{className:K(t&&"pl-8",n&&"pr-8",e),ref:i,onInput:a,...s}),n&&h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});on.displayName="AdaptiveInput";/**
32
+ * @license lucide-react v0.469.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const li=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
37
+ * @license lucide-react v0.469.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */var ui={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"};/**
42
+ * @license lucide-react v0.469.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const di=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},u)=>Y.createElement("svg",{ref:u,...ui,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vr("lucide",o),...a},[...i.map(([l,f])=>Y.createElement(l,f)),...Array.isArray(s)?s:[s]]));/**
47
+ * @license lucide-react v0.469.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const At=(e,t)=>{const n=Y.forwardRef(({className:r,...o},s)=>Y.createElement(di,{ref:s,iconNode:t,className:vr(`lucide-${li(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
52
+ * @license lucide-react v0.469.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const br=At("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
57
+ * @license lucide-react v0.469.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const fi=At("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
62
+ * @license lucide-react v0.469.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const pi=At("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
67
+ * @license lucide-react v0.469.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const mi=At("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function wr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=wr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():wr(e[o],null)}}}}function Q(...e){return c.useCallback(Pt(...e),e)}function Pe(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),u=n.length;n=[...n,i];const l=d=>{var y;const{scope:m,children:v,...b}=d,g=((y=m==null?void 0:m[e])==null?void 0:y[u])||a,w=c.useMemo(()=>b,Object.values(b));return h.jsx(g.Provider,{value:w,children:v})};l.displayName=s+"Provider";function f(d,m){var g;const v=((g=m==null?void 0:m[e])==null?void 0:g[u])||a,b=c.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,gi(o,...t)]}function gi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var We=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),s=o.find(vi);if(s){const i=s.props.children,a=o.map(u=>u===s?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:u);return h.jsx(sn,{...r,ref:t,children:c.isValidElement(i)?c.cloneElement(i,void 0,a):null})}return h.jsx(sn,{...r,ref:t,children:n})});We.displayName="Slot";var sn=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=wi(n);return c.cloneElement(n,{...bi(r,n.props),ref:t?Pt(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});sn.displayName="SlotClone";var hi=({children:e})=>h.jsx(h.Fragment,{children:e});function vi(e){return c.isValidElement(e)&&e.type===hi}function bi(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],J=yi.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?We:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yr(e,t){e&&nr.flushSync(()=>e.dispatchEvent(t))}function oe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function xi(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ci="DismissableLayer",an="dismissableLayer.update",Ei="dismissableLayer.pointerDownOutside",Si="dismissableLayer.focusOutside",xr,Cr=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...u}=e,l=c.useContext(Cr),[f,d]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),b=Q(t,A=>d(A)),g=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(w),C=f?g.indexOf(f):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,x=C>=y,E=Pi(A=>{const O=A.target,W=[...l.branches].some(L=>L.contains(O));!x||W||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},m),N=Mi(A=>{const O=A.target;[...l.branches].some(L=>L.contains(O))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},m);return xi(A=>{C===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},m),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Er(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=xr)}},[f,m,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Er())},[f,l]),c.useEffect(()=>{const A=()=>v({});return document.addEventListener(an,A),()=>document.removeEventListener(an,A)},[]),h.jsx(J.div,{...u,ref:b,style:{pointerEvents:S?x?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,N.onFocusCapture),onBlurCapture:j(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});cn.displayName=Ci;var Ri="DismissableLayerBranch",Ai=c.forwardRef((e,t)=>{const n=c.useContext(Cr),r=c.useRef(null),o=Q(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.jsx(J.div,{...e,ref:o})});Ai.displayName=Ri;function Pi(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let u=function(){Sr(Ei,n,l,{discrete:!0})};const l={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);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Mi(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&Sr(Si,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Er(){const e=new CustomEvent(an);document.dispatchEvent(e)}function Sr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yr(o,s):o.dispatchEvent(s)}var ln=0;function Rr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ar()),document.body.insertAdjacentElement("beforeend",e[1]??Ar()),ln++,()=>{ln===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ln--}},[])}function Ar(){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 un="focusScope.autoFocusOnMount",dn="focusScope.autoFocusOnUnmount",Pr={bubbles:!1,cancelable:!0},Ni="FocusScope",fn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,u]=c.useState(null),l=oe(o),f=oe(s),d=c.useRef(null),m=Q(t,g=>u(g)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let g=function(S){if(v.paused||!a)return;const x=S.target;a.contains(x)?d.current=x:Me(d.current,{select:!0})},w=function(S){if(v.paused||!a)return;const x=S.relatedTarget;x!==null&&(a.contains(x)||Me(d.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&Me(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const C=new MutationObserver(y);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),C.disconnect()}}},[r,a,v.paused]),c.useEffect(()=>{if(a){_r.add(v);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(un,Pr);a.addEventListener(un,l),a.dispatchEvent(y),y.defaultPrevented||(_i(ji(Mr(a)),{select:!0}),document.activeElement===g&&Me(a))}return()=>{a.removeEventListener(un,l),setTimeout(()=>{const y=new CustomEvent(dn,Pr);a.addEventListener(dn,f),a.dispatchEvent(y),y.defaultPrevented||Me(g??document.body,{select:!0}),a.removeEventListener(dn,f),_r.remove(v)},0)}}},[a,l,f,v]);const b=c.useCallback(g=>{if(!n&&!r||v.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(w&&y){const C=g.currentTarget,[S,x]=Oi(C);S&&x?!g.shiftKey&&y===x?(g.preventDefault(),n&&Me(S,{select:!0})):g.shiftKey&&y===S&&(g.preventDefault(),n&&Me(x,{select:!0})):y===C&&g.preventDefault()}},[n,r,v.paused]);return h.jsx(J.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});fn.displayName=Ni;function _i(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Me(r,{select:t}),document.activeElement!==n)return}function Oi(e){const t=Mr(e),n=Nr(t,e),r=Nr(t.reverse(),e);return[n,r]}function Mr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Nr(e,t){for(const n of e)if(!ki(n,{upTo:t}))return n}function ki(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 Ti(e){return e instanceof HTMLInputElement&&"select"in e}function Me(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ti(e)&&t&&e.select()}}var _r=Ii();function Ii(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Or(e,t),e.unshift(t)},remove(t){var n;e=Or(e,t),(n=e[0])==null||n.resume()}}}function Or(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ji(e){return e.filter(t=>t.tagName!=="A")}var we=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Di=c.useId||(()=>{}),Li=0;function Ye(e){const[t,n]=c.useState(Di());return we(()=>{e||n(r=>r??String(Li++))},[e]),e||(t?`radix-${t}`:"")}const Fi=["top","right","bottom","left"],Ne=Math.min,se=Math.max,Mt=Math.round,Nt=Math.floor,pe=e=>({x:e,y:e}),$i={left:"right",right:"left",bottom:"top",top:"bottom"},Wi={start:"end",end:"start"};function pn(e,t,n){return se(e,Ne(t,n))}function ye(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function Xe(e){return e.split("-")[1]}function mn(e){return e==="x"?"y":"x"}function gn(e){return e==="y"?"height":"width"}function _e(e){return["top","bottom"].includes(xe(e))?"y":"x"}function hn(e){return mn(_e(e))}function zi(e,t,n){n===void 0&&(n=!1);const r=Xe(e),o=hn(e),s=gn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=_t(i)),[i,_t(i)]}function Bi(e){const t=_t(e);return[vn(e),t,vn(t)]}function vn(e){return e.replace(/start|end/g,t=>Wi[t])}function Gi(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function Vi(e,t,n,r){const o=Xe(e);let s=Gi(xe(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(vn)))),s}function _t(e){return e.replace(/left|right|bottom|top/g,t=>$i[t])}function Ui(e){return{top:0,right:0,bottom:0,left:0,...e}}function kr(e){return typeof e!="number"?Ui(e):{top:e,right:e,bottom:e,left:e}}function Ot(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tr(e,t,n){let{reference:r,floating:o}=e;const s=_e(t),i=hn(t),a=gn(i),u=xe(t),l=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let v;switch(u){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(Xe(t)){case"start":v[i]-=m*(n&&l?-1:1);break;case"end":v[i]+=m*(n&&l?-1:1);break}return v}const Ki=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Tr(l,r,u),m=r,v={},b=0;for(let g=0;g<a.length;g++){const{name:w,fn:y}=a[g],{x:C,y:S,data:x,reset:E}=await y({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:l,platform:i,elements:{reference:e,floating:t}});f=C??f,d=S??d,v={...v,[w]:{...v[w],...x}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:d}=Tr(l,m,u)),g=-1)}return{x:f,y:d,placement:m,strategy:o,middlewareData:v}};async function dt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:v=0}=ye(t,e),b=kr(v),w=a[m?d==="floating"?"reference":"floating":d],y=Ot(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:u})),C=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},E=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:u}):C);return{top:(y.top-E.top+b.top)/x.y,bottom:(E.bottom-y.bottom+b.bottom)/x.y,left:(y.left-E.left+b.left)/x.x,right:(E.right-y.right+b.right)/x.x}}const Hi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:f=0}=ye(e,t)||{};if(l==null)return{};const d=kr(f),m={x:n,y:r},v=hn(o),b=gn(v),g=await i.getDimensions(l),w=v==="y",y=w?"top":"left",C=w?"bottom":"right",S=w?"clientHeight":"clientWidth",x=s.reference[b]+s.reference[v]-m[v]-s.floating[b],E=m[v]-s.reference[v],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=N?N[S]:0;(!A||!await(i.isElement==null?void 0:i.isElement(N)))&&(A=a.floating[S]||s.floating[b]);const O=x/2-E/2,W=A/2-g[b]/2-1,L=Ne(d[y],W),V=Ne(d[C],W),_=L,B=A-g[b]-V,$=A/2-g[b]/2+O,q=pn(_,$,B),F=!u.arrow&&Xe(o)!=null&&$!==q&&s.reference[b]/2-($<_?L:V)-g[b]/2<0,H=F?$<_?$-_:$-B:0;return{[v]:m[v]+H,data:{[v]:q,centerOffset:$-q-H,...F&&{alignmentOffset:H}},reset:F}}}),Yi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...w}=ye(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=xe(o),C=_e(a),S=xe(a)===a,x=await(u.isRTL==null?void 0:u.isRTL(l.floating)),E=m||(S||!g?[_t(a)]:Bi(a)),N=b!=="none";!m&&N&&E.push(...Vi(a,g,b,x));const A=[a,...E],O=await dt(t,w),W=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&W.push(O[y]),d){const $=zi(o,i,x);W.push(O[$[0]],O[$[1]])}if(L=[...L,{placement:o,overflows:W}],!W.every($=>$<=0)){var V,_;const $=(((V=s.flip)==null?void 0:V.index)||0)+1,q=A[$];if(q)return{data:{index:$,overflows:L},reset:{placement:q}};let F=(_=L.filter(H=>H.overflows[0]<=0).sort((H,T)=>H.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!F)switch(v){case"bestFit":{var B;const H=(B=L.filter(T=>{if(N){const R=_e(T.placement);return R===C||R==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,U)=>R+U,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:B[0];H&&(F=H);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Ir(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jr(e){return Fi.some(t=>e[t]>=0)}const Xi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ye(e,t);switch(r){case"referenceHidden":{const s=await dt(t,{...o,elementContext:"reference"}),i=Ir(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:jr(i)}}}case"escaped":{const s=await dt(t,{...o,altBoundary:!0}),i=Ir(s,n.floating);return{data:{escapedOffsets:i,escaped:jr(i)}}}default:return{}}}}};async function qi(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=xe(n),a=Xe(n),u=_e(n)==="y",l=["left","top"].includes(i)?-1:1,f=s&&u?-1:1,d=ye(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof b=="number"&&(v=a==="end"?b*-1:b),u?{x:v*f,y:m*l}:{x:m*l,y:v*f}}const Zi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await qi(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},Ji=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:y,y:C}=w;return{x:y,y:C}}},...u}=ye(e,t),l={x:n,y:r},f=await dt(t,u),d=_e(xe(o)),m=mn(d);let v=l[m],b=l[d];if(s){const w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",C=v+f[w],S=v-f[y];v=pn(C,v,S)}if(i){const w=d==="y"?"top":"left",y=d==="y"?"bottom":"right",C=b+f[w],S=b-f[y];b=pn(C,b,S)}const g=a.fn({...t,[m]:v,[d]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:s,[d]:i}}}}}},Qi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=ye(e,t),f={x:n,y:r},d=_e(o),m=mn(d);let v=f[m],b=f[d];const g=ye(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const S=m==="y"?"height":"width",x=s.reference[m]-s.floating[S]+w.mainAxis,E=s.reference[m]+s.reference[S]-w.mainAxis;v<x?v=x:v>E&&(v=E)}if(l){var y,C;const S=m==="y"?"width":"height",x=["top","left"].includes(xe(o)),E=s.reference[d]-s.floating[S]+(x&&((y=i.offset)==null?void 0:y[d])||0)+(x?0:w.crossAxis),N=s.reference[d]+s.reference[S]+(x?0:((C=i.offset)==null?void 0:C[d])||0)-(x?w.crossAxis:0);b<E?b=E:b>N&&(b=N)}return{[m]:v,[d]:b}}}},ec=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...l}=ye(e,t),f=await dt(t,l),d=xe(o),m=Xe(o),v=_e(o)==="y",{width:b,height:g}=s.floating;let w,y;d==="top"||d==="bottom"?(w=d,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,w=m==="end"?"top":"bottom");const C=g-f.top-f.bottom,S=b-f.left-f.right,x=Ne(g-f[w],C),E=Ne(b-f[y],S),N=!t.middlewareData.shift;let A=x,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=C),N&&!m){const L=se(f.left,0),V=se(f.right,0),_=se(f.top,0),B=se(f.bottom,0);v?O=b-2*(L!==0||V!==0?L+V:se(f.left,f.right)):A=g-2*(_!==0||B!==0?_+B:se(f.top,f.bottom))}await u({...t,availableWidth:O,availableHeight:A});const W=await i.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function kt(){return typeof window<"u"}function qe(e){return Dr(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(Dr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dr(e){return kt()?e instanceof Node||e instanceof ae(e).Node:!1}function ue(e){return kt()?e instanceof Element||e instanceof ae(e).Element:!1}function ge(e){return kt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function Lr(e){return!kt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function ft(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function tc(e){return["table","td","th"].includes(qe(e))}function Tt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bn(e){const t=wn(),n=ue(e)?de(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function nc(e){let t=Oe(e);for(;ge(t)&&!Ze(t);){if(bn(t))return t;if(Tt(t))return null;t=Oe(t)}return null}function wn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes(qe(e))}function de(e){return ae(e).getComputedStyle(e)}function It(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lr(e)&&e.host||me(e);return Lr(t)?t.host:t}function Fr(e){const t=Oe(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&ft(t)?t:Fr(t)}function pt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Fr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o);if(s){const a=yn(i);return t.concat(i,i.visualViewport||[],ft(o)?o:[],a&&n?pt(a):[])}return t.concat(o,pt(o,[],n))}function yn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $r(e){const t=de(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Mt(n)!==s||Mt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function xn(e){return ue(e)?e:e.contextElement}function Je(e){const t=xn(e);if(!ge(t))return pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=$r(t);let i=(s?Mt(n.width):n.width)/r,a=(s?Mt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const rc=pe(0);function Wr(e){const t=ae(e);return!wn()||!t.visualViewport?rc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function ze(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=xn(e);let i=pe(1);t&&(r?ue(r)&&(i=Je(r)):i=Je(e));const a=oc(s,n,r)?Wr(s):pe(0);let u=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(s){const m=ae(s),v=r&&ue(r)?ae(r):r;let b=m,g=yn(b);for(;g&&r&&v!==b;){const w=Je(g),y=g.getBoundingClientRect(),C=de(g),S=y.left+(g.clientLeft+parseFloat(C.paddingLeft))*w.x,x=y.top+(g.clientTop+parseFloat(C.paddingTop))*w.y;u*=w.x,l*=w.y,f*=w.x,d*=w.y,u+=S,l+=x,b=ae(g),g=yn(b)}}return Ot({width:f,height:d,x:u,y:l})}function Cn(e,t){const n=It(e).scrollLeft;return t?t.left+n:ze(me(e)).left+n}function zr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Cn(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function sc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=me(r),a=t?Tt(t.floating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},l=pe(1);const f=pe(0),d=ge(r);if((d||!d&&!s)&&((qe(r)!=="body"||ft(i))&&(u=It(r)),ge(r))){const v=ze(r);l=Je(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=i&&!d&&!s?zr(i,u,!0):pe(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-u.scrollTop*l.y+f.y+m.y}}function ac(e){return Array.from(e.getClientRects())}function ic(e){const t=me(e),n=It(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Cn(e);const a=-n.scrollTop;return de(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function cc(e,t){const n=ae(e),r=me(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const l=wn();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:s,height:i,x:a,y:u}}function lc(e,t){const n=ze(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Je(e):pe(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:i,height:a,x:u,y:l}}function Br(e,t,n){let r;if(t==="viewport")r=cc(e,n);else if(t==="document")r=ic(me(e));else if(ue(t))r=lc(t,n);else{const o=Wr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ot(r)}function Gr(e,t){const n=Oe(e);return n===t||!ue(n)||Ze(n)?!1:de(n).position==="fixed"||Gr(n,t)}function uc(e,t){const n=t.get(e);if(n)return n;let r=pt(e,[],!1).filter(a=>ue(a)&&qe(a)!=="body"),o=null;const s=de(e).position==="fixed";let i=s?Oe(e):e;for(;ue(i)&&!Ze(i);){const a=de(i),u=bn(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ft(i)&&!u&&Gr(e,i))?r=r.filter(f=>f!==i):o=a,i=Oe(i)}return t.set(e,r),r}function dc(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Tt(t)?[]:uc(t,this._c):[].concat(n),r],a=i[0],u=i.reduce((l,f)=>{const d=Br(t,f,o);return l.top=se(d.top,l.top),l.right=Ne(d.right,l.right),l.bottom=Ne(d.bottom,l.bottom),l.left=se(d.left,l.left),l},Br(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function fc(e){const{width:t,height:n}=$r(e);return{width:t,height:n}}function pc(e,t,n){const r=ge(t),o=me(t),s=n==="fixed",i=ze(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=pe(0);if(r||!r&&!s)if((qe(t)!=="body"||ft(o))&&(a=It(t)),r){const m=ze(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&(u.x=Cn(o));const l=o&&!r&&!s?zr(o,a):pe(0),f=i.left+a.scrollLeft-u.x-l.x,d=i.top+a.scrollTop-u.y-l.y;return{x:f,y:d,width:i.width,height:i.height}}function En(e){return de(e).position==="static"}function Vr(e,t){if(!ge(e)||de(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return me(e)===n&&(n=n.ownerDocument.body),n}function Ur(e,t){const n=ae(e);if(Tt(e))return n;if(!ge(e)){let o=Oe(e);for(;o&&!Ze(o);){if(ue(o)&&!En(o))return o;o=Oe(o)}return n}let r=Vr(e,t);for(;r&&tc(r)&&En(r);)r=Vr(r,t);return r&&Ze(r)&&En(r)&&!bn(r)?n:r||nc(e)||n}const mc=async function(e){const t=this.getOffsetParent||Ur,n=this.getDimensions,r=await n(e.floating);return{reference:pc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gc(e){return de(e).direction==="rtl"}const hc={convertOffsetParentRelativeRectToViewportRelativeRect:sc,getDocumentElement:me,getClippingRect:dc,getOffsetParent:Ur,getElementRects:mc,getClientRects:ac,getDimensions:fc,getScale:Je,isElement:ue,isRTL:gc};function vc(e,t){let n=null,r;const o=me(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const{left:l,top:f,width:d,height:m}=e.getBoundingClientRect();if(a||t(),!d||!m)return;const v=Nt(f),b=Nt(o.clientWidth-(l+d)),g=Nt(o.clientHeight-(f+m)),w=Nt(l),C={rootMargin:-v+"px "+-b+"px "+-g+"px "+-w+"px",threshold:se(0,Ne(1,u))||1};let S=!0;function x(E){const N=E[0].intersectionRatio;if(N!==u){if(!S)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(x,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,C)}n.observe(e)}return i(!0),s}function bc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=xn(e),f=o||s?[...l?pt(l):[],...pt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=l&&a?vc(l,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(y=>{let[C]=y;C&&C.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=v)==null||S.observe(t)})),n()}),l&&!u&&v.observe(l),v.observe(t));let b,g=u?ze(e):null;u&&w();function w(){const y=ze(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,b=requestAnimationFrame(w)}return n(),()=>{var y;f.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),d==null||d(),(y=v)==null||y.disconnect(),v=null,u&&cancelAnimationFrame(b)}}const wc=Zi,yc=Ji,xc=Yi,Cc=ec,Ec=Xi,Kr=Hi,Sc=Qi,Rc=(e,t,n)=>{const r=new Map,o={platform:hc,...n},s={...o.platform,_c:r};return Ki(e,t,{...o,platform:s})};var jt=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function Dt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Dt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Dt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Hr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yr(e,t){const n=Hr(e);return Math.round(t*n)/n}function Sn(e){const t=c.useRef(e);return jt(()=>{t.current=e}),t}function Ac(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(r);Dt(m,r)||v(r);const[b,g]=c.useState(null),[w,y]=c.useState(null),C=c.useCallback(T=>{T!==N.current&&(N.current=T,g(T))},[]),S=c.useCallback(T=>{T!==A.current&&(A.current=T,y(T))},[]),x=s||b,E=i||w,N=c.useRef(null),A=c.useRef(null),O=c.useRef(f),W=u!=null,L=Sn(u),V=Sn(o),_=Sn(l),B=c.useCallback(()=>{if(!N.current||!A.current)return;const T={placement:t,strategy:n,middleware:m};V.current&&(T.platform=V.current),Rc(N.current,A.current,T).then(R=>{const U={...R,isPositioned:_.current!==!1};$.current&&!Dt(O.current,U)&&(O.current=U,nr.flushSync(()=>{d(U)}))})},[m,t,n,V,_]);jt(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[l]);const $=c.useRef(!1);jt(()=>($.current=!0,()=>{$.current=!1}),[]),jt(()=>{if(x&&(N.current=x),E&&(A.current=E),x&&E){if(L.current)return L.current(x,E,B);B()}},[x,E,B,L,W]);const q=c.useMemo(()=>({reference:N,floating:A,setReference:C,setFloating:S}),[C,S]),F=c.useMemo(()=>({reference:x,floating:E}),[x,E]),H=c.useMemo(()=>{const T={position:n,left:0,top:0};if(!F.floating)return T;const R=Yr(F.floating,f.x),U=Yr(F.floating,f.y);return a?{...T,transform:"translate("+R+"px, "+U+"px)",...Hr(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:U}},[n,a,F.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:B,refs:q,elements:F,floatingStyles:H}),[f,B,q,F,H])}const Pc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kr({element:r.current,padding:o}).fn(n):{}:r?Kr({element:r,padding:o}).fn(n):{}}}},Mc=(e,t)=>({...wc(e),options:[e,t]}),Nc=(e,t)=>({...yc(e),options:[e,t]}),_c=(e,t)=>({...Sc(e),options:[e,t]}),Oc=(e,t)=>({...xc(e),options:[e,t]}),kc=(e,t)=>({...Cc(e),options:[e,t]}),Tc=(e,t)=>({...Ec(e),options:[e,t]}),Ic=(e,t)=>({...Pc(e),options:[e,t]});var jc="Arrow",Xr=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return h.jsx(J.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xr.displayName=jc;var Dc=Xr;function qr(e){const[t,n]=c.useState(void 0);return we(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rn="Popper",[Zr,Lt]=Pe(Rn),[Lc,Jr]=Zr(Rn),Qr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return h.jsx(Lc,{scope:t,anchor:r,onAnchorChange:o,children:n})};Qr.displayName=Rn;var eo="PopperAnchor",to=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Jr(eo,n),i=c.useRef(null),a=Q(t,i);return c.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:h.jsx(J.div,{...o,ref:a})});to.displayName=eo;var An="PopperContent",[Fc,$c]=Zr(An),no=c.forwardRef((e,t)=>{var le,De,ne,Le,Ct,ot;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,...g}=e,w=Jr(An,n),[y,C]=c.useState(null),S=Q(t,Fe=>C(Fe)),[x,E]=c.useState(null),N=qr(x),A=(N==null?void 0:N.width)??0,O=(N==null?void 0:N.height)??0,W=r+(s!=="center"?"-"+s:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},V=Array.isArray(l)?l:[l],_=V.length>0,B={padding:L,boundary:V.filter(zc),altBoundary:_},{refs:$,floatingStyles:q,placement:F,isPositioned:H,middlewareData:T}=Ac({strategy:"fixed",placement:W,whileElementsMounted:(...Fe)=>bc(...Fe,{animationFrame:v==="always"}),elements:{reference:w.anchor},middleware:[Mc({mainAxis:o+O,alignmentAxis:i}),u&&Nc({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?_c():void 0,...B}),u&&Oc({...B}),kc({...B,apply:({elements:Fe,rects:st,availableWidth:Et,availableHeight:Qn})=>{const{width:qt,height:Zt}=st.reference,Ve=Fe.floating.style;Ve.setProperty("--radix-popper-available-width",`${Et}px`),Ve.setProperty("--radix-popper-available-height",`${Qn}px`),Ve.setProperty("--radix-popper-anchor-width",`${qt}px`),Ve.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),x&&Ic({element:x,padding:a}),Bc({arrowWidth:A,arrowHeight:O}),m&&Tc({strategy:"referenceHidden",...B})]}),[R,U]=so(F),z=oe(b);we(()=>{H&&(z==null||z())},[H,z]);const ce=(le=T.arrow)==null?void 0:le.x,Ce=(De=T.arrow)==null?void 0:De.y,fe=((ne=T.arrow)==null?void 0:ne.centerOffset)!==0,[Ge,ve]=c.useState();return we(()=>{y&&ve(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ge,"--radix-popper-transform-origin":[(Le=T.transformOrigin)==null?void 0:Le.x,(Ct=T.transformOrigin)==null?void 0:Ct.y].join(" "),...((ot=T.hide)==null?void 0:ot.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(Fc,{scope:n,placedSide:R,onArrowChange:E,arrowX:ce,arrowY:Ce,shouldHideArrow:fe,children:h.jsx(J.div,{"data-side":R,"data-align":U,...g,ref:S,style:{...g.style,animation:H?void 0:"none"}})})})});no.displayName=An;var ro="PopperArrow",Wc={top:"bottom",right:"left",bottom:"top",left:"right"},oo=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=$c(ro,r),i=Wc[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(Dc,{...o,ref:n,style:{...o.style,display:"block"}})})});oo.displayName=ro;function zc(e){return e!==null}var Bc=e=>({name:"transformOrigin",options:e,fn(t){var w,y,C;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,f]=so(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,v=(((C=o.arrow)==null?void 0:C.y)??0)+u/2;let b="",g="";return l==="bottom"?(b=i?d:`${m}px`,g=`${-u}px`):l==="top"?(b=i?d:`${m}px`,g=`${r.floating.height+u}px`):l==="right"?(b=`${-u}px`,g=i?d:`${v}px`):l==="left"&&(b=`${r.floating.width+u}px`,g=i?d:`${v}px`),{data:{x:b,y:g}}}});function so(e){const[t,n="center"]=e.split("-");return[t,n]}var Pn=Qr,Mn=to,ao=no,io=oo,Gc="Portal",Nn=c.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=c.useState(!1);we(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?er.createPortal(h.jsx(J.div,{...r,ref:t}),i):null});Nn.displayName=Gc;function Vc(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ke=e=>{const{present:t,children:n}=e,r=Uc(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),s=Q(r.ref,Kc(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:s}):null};ke.displayName="Presence";function Uc(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,u]=Vc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ft(r.current);s.current=a==="mounted"?l:"none"},[a]),we(()=>{const l=r.current,f=o.current;if(f!==e){const m=s.current,v=Ft(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),we(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=v=>{const g=Ft(r.current).includes(v.animationName);if(v.target===t&&g&&(u("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=v=>{v.target===t&&(s.current=Ft(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Ft(e){return(e==null?void 0:e.animationName)||"none"}function Kc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function mt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Hc({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=oe(n),u=c.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[s,e,o,a]);return[i,u]}function Hc({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),s=oe(t);return c.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Yc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,$t=new WeakMap,Wt={},_n=0,co=function(e){return e&&(e.host||co(e.parentNode))},Xc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=co(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qc=function(e,t,n,r){var o=Xc(t,Array.isArray(e)?e:[e]);Wt[n]||(Wt[n]=new WeakMap);var s=Wt[n],i=[],a=new Set,u=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(m){if(a.has(m))f(m);else try{var v=m.getAttribute(r),b=v!==null&&v!=="false",g=(Qe.get(m)||0)+1,w=(s.get(m)||0)+1;Qe.set(m,g),s.set(m,w),i.push(m),g===1&&b&&$t.set(m,!0),w===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),_n++,function(){i.forEach(function(d){var m=Qe.get(d)-1,v=s.get(d)-1;Qe.set(d,m),s.set(d,v),m||($t.has(d)||d.removeAttribute(r),$t.delete(d)),v||d.removeAttribute(n)}),_n--,_n||(Qe=new WeakMap,Qe=new WeakMap,$t=new WeakMap,Wt={})}},lo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Yc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qc(r,o,n,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},he.apply(this,arguments)};function uo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Zc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zt="right-scroll-bar-position",Bt="width-before-scroll-bar",Jc="with-scroll-bars-hidden",Qc="--removed-body-scroll-bar-size";function On(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function el(e,t){var n=Y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var tl=typeof window<"u"?c.useLayoutEffect:c.useEffect,fo=new WeakMap;function nl(e,t){var n=el(null,function(r){return e.forEach(function(o){return On(o,r)})});return tl(function(){var r=fo.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||On(a,null)}),s.forEach(function(a){o.has(a)||On(a,i)})}fo.set(n,e)},[e]),n}function rl(e){return e}function ol(e,t){t===void 0&&(t=rl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var u=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function sl(e){e===void 0&&(e={});var t=ol(null);return t.options=he({async:!0,ssr:!1},e),t}var po=function(e){var t=e.sideCar,n=uo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,he({},n))};po.isSideCarExport=!0;function al(e,t){return e.useMedium(t),po}var mo=sl(),kn=function(){},Gt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,v=e.noIsolation,b=e.inert,g=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,C=e.gapMode,S=uo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,E=nl([n,t]),N=he(he({},S),o);return c.createElement(c.Fragment,null,f&&c.createElement(x,{sideCar:mo,removeScrollBar:l,shards:d,noIsolation:v,inert:b,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?c.cloneElement(c.Children.only(a),he(he({},N),{ref:E})):c.createElement(y,he({},N,{className:u,ref:E}),a))});Gt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gt.classNames={fullWidth:Bt,zeroRight:zt};var il=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=il();return t&&e.setAttribute("nonce",t),e}function ll(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ul(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cl())&&(ll(t,n),ul(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fl=function(){var e=dl();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},go=function(){var e=fl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},pl={left:0,top:0,right:0,gap:0},Tn=function(e){return parseInt(e||"",10)||0},ml=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tn(n),Tn(r),Tn(o)]},gl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pl;var t=ml(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hl=go(),et="data-scroll-locked",vl=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
72
+ .`.concat(Jc,` {
73
+ overflow: hidden `).concat(r,`;
74
+ padding-right: `).concat(a,"px ").concat(r,`;
75
+ }
76
+ body[`).concat(et,`] {
77
+ overflow: hidden `).concat(r,`;
78
+ overscroll-behavior: contain;
79
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
80
+ padding-left: `.concat(o,`px;
81
+ padding-top: `).concat(s,`px;
82
+ padding-right: `).concat(i,`px;
83
+ margin-left:0;
84
+ margin-top:0;
85
+ margin-right: `).concat(a,"px ").concat(r,`;
86
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
87
+ }
88
+
89
+ .`).concat(zt,` {
90
+ right: `).concat(a,"px ").concat(r,`;
91
+ }
92
+
93
+ .`).concat(Bt,` {
94
+ margin-right: `).concat(a,"px ").concat(r,`;
95
+ }
96
+
97
+ .`).concat(zt," .").concat(zt,` {
98
+ right: 0 `).concat(r,`;
99
+ }
100
+
101
+ .`).concat(Bt," .").concat(Bt,` {
102
+ margin-right: 0 `).concat(r,`;
103
+ }
104
+
105
+ body[`).concat(et,`] {
106
+ `).concat(Qc,": ").concat(a,`px;
107
+ }
108
+ `)},ho=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},bl=function(){c.useEffect(function(){return document.body.setAttribute(et,(ho()+1).toString()),function(){var e=ho()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},wl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;bl();var s=c.useMemo(function(){return gl(o)},[o]);return c.createElement(hl,{styles:vl(s,!t,o,n?"":"!important")})},In=!1;if(typeof window<"u")try{var Vt=Object.defineProperty({},"passive",{get:function(){return In=!0,!0}});window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch{In=!1}var tt=In?{passive:!1}:!1,yl=function(e){return e.tagName==="TEXTAREA"},vo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yl(e)&&n[t]==="visible")},xl=function(e){return vo(e,"overflowY")},Cl=function(e){return vo(e,"overflowX")},bo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=wo(e,r);if(o){var s=yo(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},El=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},wo=function(e,t){return e==="v"?xl(t):Cl(t)},yo=function(e,t){return e==="v"?El(t):Sl(t)},Rl=function(e,t){return e==="h"&&t==="rtl"?-1:1},Al=function(e,t,n,r,o){var s=Rl(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,u=t.contains(a),l=!1,f=i>0,d=0,m=0;do{var v=yo(e,a),b=v[0],g=v[1],w=v[2],y=g-w-s*b;(b||y)&&wo(e,a)&&(d+=y,m+=b),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&(Math.abs(d)<1||!o)||!f&&(Math.abs(m)<1||!o))&&(l=!0),l},Ut=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xo=function(e){return[e.deltaX,e.deltaY]},Co=function(e){return e&&"current"in e?e.current:e},Pl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ml=function(e){return`
109
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
110
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
111
+ `)},Nl=0,nt=[];function _l(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Nl++)[0],s=c.useState(go)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Zc([e.lockRef.current],(e.shards||[]).map(Co),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=Ut(g),C=n.current,S="deltaX"in g?g.deltaX:C[0]-y[0],x="deltaY"in g?g.deltaY:C[1]-y[1],E,N=g.target,A=Math.abs(S)>Math.abs(x)?"h":"v";if("touches"in g&&A==="h"&&N.type==="range")return!1;var O=bo(A,N);if(!O)return!0;if(O?E=A:(E=A==="v"?"h":"v",O=bo(A,N)),!O)return!1;if(!r.current&&"changedTouches"in g&&(S||x)&&(r.current=E),!E)return!0;var W=r.current||E;return Al(W,w,g,W==="h"?S:x,!0)},[]),u=c.useCallback(function(g){var w=g;if(!(!nt.length||nt[nt.length-1]!==s)){var y="deltaY"in w?xo(w):Ut(w),C=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&Pl(E.delta,y)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var S=(i.current.shards||[]).map(Co).filter(Boolean).filter(function(E){return E.contains(w.target)}),x=S.length>0?a(w,S[0]):!i.current.noIsolation;x&&w.cancelable&&w.preventDefault()}}},[]),l=c.useCallback(function(g,w,y,C){var S={name:g,delta:w,target:y,should:C,shadowParent:Ol(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(x){return x!==S})},1)},[]),f=c.useCallback(function(g){n.current=Ut(g),r.current=void 0},[]),d=c.useCallback(function(g){l(g.type,xo(g),g.target,a(g,e.lockRef.current))},[]),m=c.useCallback(function(g){l(g.type,Ut(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return nt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",u,tt),document.addEventListener("touchmove",u,tt),document.addEventListener("touchstart",f,tt),function(){nt=nt.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,tt),document.removeEventListener("touchmove",u,tt),document.removeEventListener("touchstart",f,tt)}},[]);var v=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(s,{styles:Ml(o)}):null,v?c.createElement(wl,{gapMode:e.gapMode}):null)}function Ol(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kl=al(mo,_l);var jn=c.forwardRef(function(e,t){return c.createElement(Gt,he({},e,{ref:t,sideCar:kl}))});jn.classNames=Gt.classNames;var Dn="Popover",[Eo,Td]=Pe(Dn,[Lt]),gt=Lt(),[Tl,Te]=Eo(Dn),So=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=gt(t),u=c.useRef(null),[l,f]=c.useState(!1),[d=!1,m]=mt({prop:r,defaultProp:o,onChange:s});return h.jsx(Pn,{...a,children:h.jsx(Tl,{scope:t,contentId:Ye(),triggerRef:u,open:d,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(v=>!v),[m]),hasCustomAnchor:l,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:n})})};So.displayName=Dn;var Ro="PopoverAnchor",Ao=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Te(Ro,n),s=gt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return c.useEffect(()=>(i(),()=>a()),[i,a]),h.jsx(Mn,{...s,...r,ref:t})});Ao.displayName=Ro;var Po="PopoverTrigger",Mo=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Te(Po,n),s=gt(n),i=Q(t,o.triggerRef),a=h.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":To(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:h.jsx(Mn,{asChild:!0,...s,children:a})});Mo.displayName=Po;var Ln="PopoverPortal",[Il,jl]=Eo(Ln,{forceMount:void 0}),No=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Te(Ln,t);return h.jsx(Il,{scope:t,forceMount:n,children:h.jsx(ke,{present:n||s.open,children:h.jsx(Nn,{asChild:!0,container:o,children:r})})})};No.displayName=Ln;var rt="PopoverContent",_o=c.forwardRef((e,t)=>{const n=jl(rt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Te(rt,e.__scopePopover);return h.jsx(ke,{present:r||s.open,children:s.modal?h.jsx(Dl,{...o,ref:t}):h.jsx(Ll,{...o,ref:t})})});_o.displayName=rt;var Dl=c.forwardRef((e,t)=>{const n=Te(rt,e.__scopePopover),r=c.useRef(null),o=Q(t,r),s=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return lo(i)},[]),h.jsx(jn,{as:We,allowPinchZoom:!0,children:h.jsx(Oo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,l=a.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:j(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ll=c.forwardRef((e,t)=>{const n=Te(rt,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return h.jsx(Oo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Oo=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:f,...d}=e,m=Te(rt,n),v=gt(n);return Rr(),h.jsx(fn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:h.jsx(cn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>m.onOpenChange(!1),children:h.jsx(ao,{"data-state":To(m.open),role:"dialog",id:m.contentId,...v,...d,ref:t,style:{...d.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)"}})})})}),ko="PopoverClose",Fl=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Te(ko,n);return h.jsx(J.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Fl.displayName=ko;var $l="PopoverArrow",Wl=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=gt(n);return h.jsx(io,{...o,...r,ref:t})});Wl.displayName=$l;function To(e){return e?"open":"closed"}var zl=So,Bl=Ao,Gl=Mo,Vl=No,Io=_o;const jo=zl,Do=Gl,Ul=Bl,Fn=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>h.jsx(Vl,{children:h.jsx(Io,{ref:o,align:t,sideOffset:n,className:K("z-50 w-72 rounded-md border 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),...r})}));Fn.displayName=Io.displayName;function Kl(e){const{value:t="",onChange:n,options:r,className:o,placeholder:s="Search...",emptyMessage:i="Nothing found"}=e,[a,u]=Y.useState(t),[l,f]=Y.useState(r),[d,m]=Y.useState(-1),[v,b]=Y.useState(!1),g=x=>{const E=x.target.value;u(E),n==null||n(E),m(-1),b(!0),E.trim()===""?f(r):f(r.filter(N=>N.label.toLowerCase().includes(E.toLowerCase())))},w=x=>{if(x.key==="ArrowDown")x.preventDefault(),m(E=>E<l.length-1?E+1:E);else if(x.key==="ArrowUp")x.preventDefault(),m(E=>E>0?E-1:-1);else if(x.key==="Enter"&&d>=0){const E=l[d];u(E.label),n==null||n(E.value),f([]),m(-1),b(!1)}else x.key==="Escape"&&(f([]),m(-1))},y=x=>{b(!1),u(x.label),n==null||n(x.value),f(r),m(-1)},C=()=>{b(!0)},S=()=>{b(!1)};return h.jsxs(jo,{open:v,children:[h.jsx(Do,{asChild:!0,children:h.jsx("div",{className:"relative w-fit",children:h.jsx(on,{type:"text",placeholder:s,value:a,onChange:g,onKeyDown:w,onClick:C,onFocus:C,onBlur:S,className:K("pr-10",o),"aria-label":"Search field","aria-autocomplete":"list","aria-controls":"suggestions-list","aria-expanded":l.length>0,leftIcon:h.jsx(mi,{className:"w-4 h-4"})})})}),h.jsx(Fn,{className:"p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto",children:l.length>0?h.jsx("ul",{id:"suggestions-list",role:"listbox",children:l.map((x,E)=>h.jsx("li",{className:`px-4 py-2 cursor-pointer hover:bg-muted ${E===d?"bg-muted":""}`,onClick:()=>y(x),role:"option","aria-selected":E===d,children:x.label},x.value))}):h.jsx("span",{className:"px-4 py-2 block",children:i})})]})}var $n="Avatar",[Hl,Id]=Pe($n),[Yl,Lo]=Hl($n),Fo=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=c.useState("idle");return h.jsx(Yl,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:h.jsx(J.span,{...r,ref:t})})});Fo.displayName=$n;var $o="AvatarImage",Wo=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=Lo($o,n),a=Xl(r,s.referrerPolicy),u=oe(l=>{o(l),i.onImageLoadingStatusChange(l)});return we(()=>{a!=="idle"&&u(a)},[a,u]),a==="loaded"?h.jsx(J.img,{...s,ref:t,src:r}):null});Wo.displayName=$o;var zo="AvatarFallback",Bo=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Lo(zo,n),[i,a]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(u)}},[r]),i&&s.imageLoadingStatus!=="loaded"?h.jsx(J.span,{...o,ref:t}):null});Bo.displayName=zo;function Xl(e,t){const[n,r]=c.useState("idle");return we(()=>{if(!e){r("error");return}let o=!0;const s=new window.Image,i=a=>()=>{o&&r(a)};return r("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Go=Fo,Vo=Wo,Uo=Bo;const Ko=c.forwardRef(({className:e,...t},n)=>h.jsx(Go,{ref:n,className:K("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ko.displayName=Go.displayName;const Ho=c.forwardRef(({className:e,...t},n)=>h.jsx(Vo,{ref:n,className:K("aspect-square h-full w-full",e),...t}));Ho.displayName=Vo.displayName;const Yo=c.forwardRef(({className:e,...t},n)=>h.jsx(Uo,{ref:n,className:K("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Yo.displayName=Uo.displayName;const Xo=nn("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 ql({className:e,variant:t,...n}){return h.jsx("div",{className:K(Xo({variant:t}),e),...n})}const qo=nn("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",xl:"h-12 rounded-md px-10 text-xl",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Zo=c.forwardRef(({className:e,variant:t,size:n,isLoading:r=!1,asChild:o=!1,...s},i)=>{const a=o?We:"button";return h.jsxs(a,{className:K(qo({variant:t,size:n,className:e})),ref:i,...s,disabled:r||s.disabled,children:[r&&h.jsxs("svg",{className:"animate-spin -ml-1 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),s.children]})});Zo.displayName="Button";const Jo=c.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:K("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Jo.displayName="Card";const Qo=c.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:K("flex flex-col space-y-1.5 p-6",e),...t}));Qo.displayName="CardHeader";const es=c.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:K("font-semibold leading-none tracking-tight pb-4",e),...t}));es.displayName="CardTitle";const ts=c.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:K("text-sm text-muted-foreground",e),...t}));ts.displayName="CardDescription";const ns=c.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:K("p-6 py-0",e),...t}));ns.displayName="CardContent";const rs=c.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:K("flex items-center p-6 pt-6",e),...t}));rs.displayName="CardFooter";function Zl(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Wn="Checkbox",[Jl,jd]=Pe(Wn),[Ql,eu]=Jl(Wn),os=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:u="on",onCheckedChange:l,form:f,...d}=e,[m,v]=c.useState(null),b=Q(t,x=>v(x)),g=c.useRef(!1),w=m?f||!!m.closest("form"):!0,[y=!1,C]=mt({prop:o,defaultProp:s,onChange:l}),S=c.useRef(y);return c.useEffect(()=>{const x=m==null?void 0:m.form;if(x){const E=()=>C(S.current);return x.addEventListener("reset",E),()=>x.removeEventListener("reset",E)}},[m,C]),h.jsxs(Ql,{scope:n,state:y,disabled:a,children:[h.jsx(J.button,{type:"button",role:"checkbox","aria-checked":Ie(y)?"mixed":y,"aria-required":i,"data-state":is(y),"data-disabled":a?"":void 0,disabled:a,value:u,...d,ref:b,onKeyDown:j(e.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:j(e.onClick,x=>{C(E=>Ie(E)?!0:!E),w&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),w&&h.jsx(tu,{control:m,bubbles:!g.current,name:r,value:u,checked:y,required:i,disabled:a,form:f,style:{transform:"translateX(-100%)"},defaultChecked:Ie(s)?!1:s})]})});os.displayName=Wn;var ss="CheckboxIndicator",as=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=eu(ss,n);return h.jsx(ke,{present:r||Ie(s.state)||s.state===!0,children:h.jsx(J.span,{"data-state":is(s.state),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});as.displayName=ss;var tu=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...s}=e,i=c.useRef(null),a=Zl(n),u=qr(t);c.useEffect(()=>{const f=i.current,d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&v){const b=new Event("click",{bubbles:r});f.indeterminate=Ie(n),v.call(f,Ie(n)?!1:n),f.dispatchEvent(b)}},[a,n,r]);const l=c.useRef(Ie(n)?!1:n);return h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??l.current,...s,tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ie(e){return e==="indeterminate"}function is(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}var cs=os,nu=as;const ls=c.forwardRef(({className:e,...t},n)=>h.jsx(cs,{ref:n,className:K("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:h.jsx(nu,{className:K("flex items-center justify-center text-current"),children:h.jsx(br,{className:"h-4 w-4"})})}));ls.displayName=cs.displayName;function us(e){const t=e+"CollectionProvider",[n,r]=Pe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:b,children:g}=v,w=Y.useRef(null),y=Y.useRef(new Map).current;return h.jsx(o,{scope:b,itemMap:y,collectionRef:w,children:g})};i.displayName=t;const a=e+"CollectionSlot",u=Y.forwardRef((v,b)=>{const{scope:g,children:w}=v,y=s(a,g),C=Q(b,y.collectionRef);return h.jsx(We,{ref:C,children:w})});u.displayName=a;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=Y.forwardRef((v,b)=>{const{scope:g,children:w,...y}=v,C=Y.useRef(null),S=Q(b,C),x=s(l,g);return Y.useEffect(()=>(x.itemMap.set(C,{ref:C,...y}),()=>void x.itemMap.delete(C))),h.jsx(We,{[f]:"",ref:S,children:w})});d.displayName=l;function m(v){const b=s(e+"CollectionConsumer",v);return Y.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((x,E)=>y.indexOf(x.ref.current)-y.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:d},m,r]}var ru=c.createContext(void 0);function ds(e){const t=c.useContext(ru);return e||t||"ltr"}var zn="rovingFocusGroup.onEntryFocus",ou={bubbles:!1,cancelable:!0},Kt="RovingFocusGroup",[Bn,fs,su]=us(Kt),[au,ps]=Pe(Kt,[su]),[iu,cu]=au(Kt),ms=c.forwardRef((e,t)=>h.jsx(Bn.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(Bn.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(lu,{...e,ref:t})})}));ms.displayName=Kt;var lu=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,m=c.useRef(null),v=Q(t,m),b=ds(s),[g=null,w]=mt({prop:i,defaultProp:a,onChange:u}),[y,C]=c.useState(!1),S=oe(l),x=fs(n),E=c.useRef(!1),[N,A]=c.useState(0);return c.useEffect(()=>{const O=m.current;if(O)return O.addEventListener(zn,S),()=>O.removeEventListener(zn,S)},[S]),h.jsx(iu,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:c.useCallback(O=>w(O),[w]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(O=>O+1),[]),onFocusableItemRemove:c.useCallback(()=>A(O=>O-1),[]),children:h.jsx(J.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,O=>{const W=!E.current;if(O.target===O.currentTarget&&W&&!y){const L=new CustomEvent(zn,ou);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const V=x().filter(F=>F.focusable),_=V.find(F=>F.active),B=V.find(F=>F.id===g),q=[_,B,...V].filter(Boolean).map(F=>F.ref.current);vs(q,f)}}E.current=!1}),onBlur:j(e.onBlur,()=>C(!1))})})}),gs="RovingFocusGroupItem",hs=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=Ye(),u=s||a,l=cu(gs,n),f=l.currentTabStopId===u,d=fs(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=l;return c.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),h.jsx(Bn.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:h.jsx(J.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?l.onItemFocus(u):b.preventDefault()}),onFocus:j(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){l.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const g=fu(b,l.orientation,l.dir);if(g!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=d().filter(C=>C.focusable).map(C=>C.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const C=y.indexOf(b.currentTarget);y=l.loop?pu(y,C+1):y.slice(C+1)}setTimeout(()=>vs(y))}})})})});hs.displayName=gs;var uu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function du(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fu(e,t,n){const r=du(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return uu[r]}function vs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mu=ms,gu=hs,Gn=["Enter"," "],hu=["ArrowDown","PageUp","Home"],bs=["ArrowUp","PageDown","End"],vu=[...hu,...bs],bu={ltr:[...Gn,"ArrowRight"],rtl:[...Gn,"ArrowLeft"]},wu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ht="Menu",[vt,yu,xu]=us(ht),[Be,ws]=Pe(ht,[xu,Lt,ps]),bt=Lt(),ys=ps(),[xs,je]=Be(ht),[Cu,wt]=Be(ht),Cs=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=bt(t),[u,l]=c.useState(null),f=c.useRef(!1),d=oe(s),m=ds(o);return c.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),h.jsx(Pn,{...a,children:h.jsx(xs,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:l,children:h.jsx(Cu,{scope:t,onClose:c.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:m,modal:i,children:r})})})};Cs.displayName=ht;var Eu="MenuAnchor",Vn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=bt(n);return h.jsx(Mn,{...o,...r,ref:t})});Vn.displayName=Eu;var Un="MenuPortal",[Su,Es]=Be(Un,{forceMount:void 0}),Ss=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=je(Un,t);return h.jsx(Su,{scope:t,forceMount:n,children:h.jsx(ke,{present:n||s.open,children:h.jsx(Nn,{asChild:!0,container:o,children:r})})})};Ss.displayName=Un;var ie="MenuContent",[Ru,Kn]=Be(ie),Rs=c.forwardRef((e,t)=>{const n=Es(ie,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=je(ie,e.__scopeMenu),i=wt(ie,e.__scopeMenu);return h.jsx(vt.Provider,{scope:e.__scopeMenu,children:h.jsx(ke,{present:r||s.open,children:h.jsx(vt.Slot,{scope:e.__scopeMenu,children:i.modal?h.jsx(Au,{...o,ref:t}):h.jsx(Pu,{...o,ref:t})})})})}),Au=c.forwardRef((e,t)=>{const n=je(ie,e.__scopeMenu),r=c.useRef(null),o=Q(t,r);return c.useEffect(()=>{const s=r.current;if(s)return lo(s)},[]),h.jsx(Hn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Pu=c.forwardRef((e,t)=>{const n=je(ie,e.__scopeMenu);return h.jsx(Hn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Hn=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:v,disableOutsideScroll:b,...g}=e,w=je(ie,n),y=wt(ie,n),C=bt(n),S=ys(n),x=yu(n),[E,N]=c.useState(null),A=c.useRef(null),O=Q(t,A,w.onContentChange),W=c.useRef(0),L=c.useRef(""),V=c.useRef(0),_=c.useRef(null),B=c.useRef("right"),$=c.useRef(0),q=b?jn:c.Fragment,F=b?{as:We,allowPinchZoom:!0}:void 0,H=R=>{var le,De;const U=L.current+R,z=x().filter(ne=>!ne.disabled),ce=document.activeElement,Ce=(le=z.find(ne=>ne.ref.current===ce))==null?void 0:le.textValue,fe=z.map(ne=>ne.textValue),Ge=$u(fe,U,Ce),ve=(De=z.find(ne=>ne.textValue===Ge))==null?void 0:De.ref.current;(function ne(Le){L.current=Le,window.clearTimeout(W.current),Le!==""&&(W.current=window.setTimeout(()=>ne(""),1e3))})(U),ve&&setTimeout(()=>ve.focus())};c.useEffect(()=>()=>window.clearTimeout(W.current),[]),Rr();const T=c.useCallback(R=>{var z,ce;return B.current===((z=_.current)==null?void 0:z.side)&&zu(R,(ce=_.current)==null?void 0:ce.area)},[]);return h.jsx(Ru,{scope:n,searchRef:L,onItemEnter:c.useCallback(R=>{T(R)&&R.preventDefault()},[T]),onItemLeave:c.useCallback(R=>{var U;T(R)||((U=A.current)==null||U.focus(),N(null))},[T]),onTriggerLeave:c.useCallback(R=>{T(R)&&R.preventDefault()},[T]),pointerGraceTimerRef:V,onPointerGraceIntentChange:c.useCallback(R=>{_.current=R},[]),children:h.jsx(q,{...F,children:h.jsx(fn,{asChild:!0,trapped:o,onMountAutoFocus:j(s,R=>{var U;R.preventDefault(),(U=A.current)==null||U.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:h.jsx(cn,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:v,children:h.jsx(mu,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:N,onEntryFocus:j(u,R=>{y.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(ao,{role:"menu","aria-orientation":"vertical","data-state":Gs(w.open),"data-radix-menu-content":"",dir:y.dir,...C,...g,ref:O,style:{outline:"none",...g.style},onKeyDown:j(g.onKeyDown,R=>{const z=R.target.closest("[data-radix-menu-content]")===R.currentTarget,ce=R.ctrlKey||R.altKey||R.metaKey,Ce=R.key.length===1;z&&(R.key==="Tab"&&R.preventDefault(),!ce&&Ce&&H(R.key));const fe=A.current;if(R.target!==fe||!vu.includes(R.key))return;R.preventDefault();const ve=x().filter(le=>!le.disabled).map(le=>le.ref.current);bs.includes(R.key)&&ve.reverse(),Lu(ve)}),onBlur:j(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(W.current),L.current="")}),onPointerMove:j(e.onPointerMove,xt(R=>{const U=R.target,z=$.current!==R.clientX;if(R.currentTarget.contains(U)&&z){const ce=R.clientX>$.current?"right":"left";B.current=ce,$.current=R.clientX}}))})})})})})})});Rs.displayName=ie;var Mu="MenuGroup",Yn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(J.div,{role:"group",...r,ref:t})});Yn.displayName=Mu;var Nu="MenuLabel",As=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(J.div,{...r,ref:t})});As.displayName=Nu;var Ht="MenuItem",Ps="menu.itemSelect",Yt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=c.useRef(null),i=wt(Ht,e.__scopeMenu),a=Kn(Ht,e.__scopeMenu),u=Q(t,s),l=c.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(Ps,{bubbles:!0,cancelable:!0});d.addEventListener(Ps,v=>r==null?void 0:r(v),{once:!0}),yr(d,m),m.defaultPrevented?l.current=!1:i.onClose()}};return h.jsx(Ms,{...o,ref:u,disabled:n,onClick:j(e.onClick,f),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),l.current=!0},onPointerUp:j(e.onPointerUp,d=>{var m;l.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:j(e.onKeyDown,d=>{const m=a.searchRef.current!=="";n||m&&d.key===" "||Gn.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Yt.displayName=Ht;var Ms=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=Kn(Ht,n),a=ys(n),u=c.useRef(null),l=Q(t,u),[f,d]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const b=u.current;b&&v((b.textContent??"").trim())},[s.children]),h.jsx(vt.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:h.jsx(gu,{asChild:!0,...a,focusable:!r,children:h.jsx(J.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:l,onPointerMove:j(e.onPointerMove,xt(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,xt(b=>i.onItemLeave(b))),onFocus:j(e.onFocus,()=>d(!0)),onBlur:j(e.onBlur,()=>d(!1))})})})}),_u="MenuCheckboxItem",Ns=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return h.jsx(Is,{scope:e.__scopeMenu,checked:n,children:h.jsx(Yt,{role:"menuitemcheckbox","aria-checked":Xt(n)?"mixed":n,...o,ref:t,"data-state":Zn(n),onSelect:j(o.onSelect,()=>r==null?void 0:r(Xt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ns.displayName=_u;var _s="MenuRadioGroup",[Ou,ku]=Be(_s,{value:void 0,onValueChange:()=>{}}),Os=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=oe(r);return h.jsx(Ou,{scope:e.__scopeMenu,value:n,onValueChange:s,children:h.jsx(Yn,{...o,ref:t})})});Os.displayName=_s;var ks="MenuRadioItem",Ts=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=ku(ks,e.__scopeMenu),s=n===o.value;return h.jsx(Is,{scope:e.__scopeMenu,checked:s,children:h.jsx(Yt,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Zn(s),onSelect:j(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Ts.displayName=ks;var Xn="MenuItemIndicator",[Is,Tu]=Be(Xn,{checked:!1}),js=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Tu(Xn,n);return h.jsx(ke,{present:r||Xt(s.checked)||s.checked===!0,children:h.jsx(J.span,{...o,ref:t,"data-state":Zn(s.checked)})})});js.displayName=Xn;var Iu="MenuSeparator",Ds=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(J.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ds.displayName=Iu;var ju="MenuArrow",Ls=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=bt(n);return h.jsx(io,{...o,...r,ref:t})});Ls.displayName=ju;var qn="MenuSub",[Du,Fs]=Be(qn),$s=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=je(qn,t),i=bt(t),[a,u]=c.useState(null),[l,f]=c.useState(null),d=oe(o);return c.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),h.jsx(Pn,{...i,children:h.jsx(xs,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:f,children:h.jsx(Du,{scope:t,contentId:Ye(),triggerId:Ye(),trigger:a,onTriggerChange:u,children:n})})})};$s.displayName=qn;var yt="MenuSubTrigger",Ws=c.forwardRef((e,t)=>{const n=je(yt,e.__scopeMenu),r=wt(yt,e.__scopeMenu),o=Fs(yt,e.__scopeMenu),s=Kn(yt,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=s,l={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),u(null)}},[a,u]),h.jsx(Vn,{asChild:!0,...l,children:h.jsx(Ms,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Gs(n.open),...e,ref:Pt(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,xt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:j(e.onPointerLeave,xt(d=>{var v,b;f();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,w=g==="right",y=w?-5:5,C=m[w?"left":"right"],S=m[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:C,y:m.top},{x:S,y:m.top},{x:S,y:m.bottom},{x:C,y:m.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,d=>{var v;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||bu[r.dir].includes(d.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),d.preventDefault())})})})});Ws.displayName=yt;var zs="MenuSubContent",Bs=c.forwardRef((e,t)=>{const n=Es(ie,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=je(ie,e.__scopeMenu),i=wt(ie,e.__scopeMenu),a=Fs(zs,e.__scopeMenu),u=c.useRef(null),l=Q(t,u);return h.jsx(vt.Provider,{scope:e.__scopeMenu,children:h.jsx(ke,{present:r||s.open,children:h.jsx(vt.Slot,{scope:e.__scopeMenu,children:h.jsx(Hn,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=u.current)==null||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:j(e.onFocusOutside,f=>{f.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:j(e.onKeyDown,f=>{var v;const d=f.currentTarget.contains(f.target),m=wu[i.dir].includes(f.key);d&&m&&(s.onOpenChange(!1),(v=a.trigger)==null||v.focus(),f.preventDefault())})})})})})});Bs.displayName=zs;function Gs(e){return e?"open":"closed"}function Xt(e){return e==="indeterminate"}function Zn(e){return Xt(e)?"indeterminate":e?"checked":"unchecked"}function Lu(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Fu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $u(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Fu(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const u=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function Wu(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,u=t[s].y,l=t[i].x,f=t[i].y;u>r!=f>r&&n<(l-a)*(r-u)/(f-u)+a&&(o=!o)}return o}function zu(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Wu(n,t)}function xt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Bu=Cs,Gu=Vn,Vu=Ss,Uu=Rs,Ku=Yn,Hu=As,Yu=Yt,Xu=Ns,qu=Os,Zu=Ts,Ju=js,Qu=Ds,ed=Ls,td=$s,nd=Ws,rd=Bs,Jn="DropdownMenu",[od,Dd]=Pe(Jn,[ws]),ee=ws(),[sd,Vs]=od(Jn),Us=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,u=ee(t),l=c.useRef(null),[f=!1,d]=mt({prop:o,defaultProp:s,onChange:i});return h.jsx(sd,{scope:t,triggerId:Ye(),triggerRef:l,contentId:Ye(),open:f,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(m=>!m),[d]),modal:a,children:h.jsx(Bu,{...u,open:f,onOpenChange:d,dir:r,modal:a,children:n})})};Us.displayName=Jn;var Ks="DropdownMenuTrigger",Hs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Vs(Ks,n),i=ee(n);return h.jsx(Gu,{asChild:!0,...i,children:h.jsx(J.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Pt(t,s.triggerRef),onPointerDown:j(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:j(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Hs.displayName=Ks;var ad="DropdownMenuPortal",Ys=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ee(t);return h.jsx(Vu,{...r,...n})};Ys.displayName=ad;var Xs="DropdownMenuContent",qs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Vs(Xs,n),s=ee(n),i=c.useRef(!1);return h.jsx(Uu,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{var u;i.current||(u=o.triggerRef.current)==null||u.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:j(e.onInteractOutside,a=>{const u=a.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,f=u.button===2||l;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qs.displayName=Xs;var id="DropdownMenuGroup",Zs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Ku,{...o,...r,ref:t})});Zs.displayName=id;var cd="DropdownMenuLabel",Js=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Hu,{...o,...r,ref:t})});Js.displayName=cd;var ld="DropdownMenuItem",Qs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Yu,{...o,...r,ref:t})});Qs.displayName=ld;var ud="DropdownMenuCheckboxItem",ea=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Xu,{...o,...r,ref:t})});ea.displayName=ud;var dd="DropdownMenuRadioGroup",ta=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(qu,{...o,...r,ref:t})});ta.displayName=dd;var fd="DropdownMenuRadioItem",na=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Zu,{...o,...r,ref:t})});na.displayName=fd;var pd="DropdownMenuItemIndicator",ra=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Ju,{...o,...r,ref:t})});ra.displayName=pd;var md="DropdownMenuSeparator",oa=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(Qu,{...o,...r,ref:t})});oa.displayName=md;var gd="DropdownMenuArrow",hd=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(ed,{...o,...r,ref:t})});hd.displayName=gd;var vd=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,i=ee(t),[a=!1,u]=mt({prop:r,defaultProp:s,onChange:o});return h.jsx(td,{...i,open:a,onOpenChange:u,children:n})},bd="DropdownMenuSubTrigger",sa=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(nd,{...o,...r,ref:t})});sa.displayName=bd;var wd="DropdownMenuSubContent",aa=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return h.jsx(rd,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});aa.displayName=wd;var yd=Us,xd=Hs,ia=Ys,ca=qs,Cd=Zs,la=Js,ua=Qs,da=ea,Ed=ta,fa=na,pa=ra,ma=oa,Sd=vd,ga=sa,ha=aa;const Rd=yd,Ad=xd,Pd=Cd,Md=ia,Nd=Sd,_d=Ed,va=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>h.jsxs(ga,{ref:o,className:K("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,h.jsx(fi,{className:"ml-auto"})]}));va.displayName=ga.displayName;const ba=c.forwardRef(({className:e,...t},n)=>h.jsx(ha,{ref:n,className:K("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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),...t}));ba.displayName=ha.displayName;const wa=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(ia,{children:h.jsx(ca,{ref:r,sideOffset:t,className:K("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));wa.displayName=ca.displayName;const ya=c.forwardRef(({className:e,inset:t,...n},r)=>h.jsx(ua,{ref:r,className:K("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));ya.displayName=ua.displayName;const xa=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>h.jsxs(da,{ref:o,className:K("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(pa,{children:h.jsx(br,{className:"h-4 w-4"})})}),t]}));xa.displayName=da.displayName;const Ca=c.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(fa,{ref:r,className:K("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(pa,{children:h.jsx(pi,{className:"h-2 w-2 fill-current"})})}),t]}));Ca.displayName=fa.displayName;const Ea=c.forwardRef(({className:e,inset:t,...n},r)=>h.jsx(la,{ref:r,className:K("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Ea.displayName=la.displayName;const Sa=c.forwardRef(({className:e,...t},n)=>h.jsx(ma,{ref:n,className:K("-mx-1 my-1 h-px bg-muted",e),...t}));Sa.displayName=ma.displayName;const Ra=({className:e,...t})=>h.jsx("span",{className:K("ml-auto text-xs tracking-widest opacity-60",e),...t});Ra.displayName="DropdownMenuShortcut";const Od=({className:e,repeat:t=1,...n})=>h.jsx(h.Fragment,{children:Array.from({length:t??1}).map((r,o)=>h.jsx("div",{className:K("animate-pulse rounded-md bg-gray-700/10",e),...n},o))});k.AdaptiveInput=on,k.Autocomplete=Kl,k.Avatar=Ko,k.AvatarFallback=Yo,k.AvatarImage=Ho,k.Badge=ql,k.Button=Zo,k.Card=Jo,k.CardContent=ns,k.CardDescription=ts,k.CardFooter=rs,k.CardHeader=Qo,k.CardTitle=es,k.Checkbox=ls,k.DropdownMenu=Rd,k.DropdownMenuCheckboxItem=xa,k.DropdownMenuContent=wa,k.DropdownMenuGroup=Pd,k.DropdownMenuItem=ya,k.DropdownMenuLabel=Ea,k.DropdownMenuPortal=Md,k.DropdownMenuRadioGroup=_d,k.DropdownMenuRadioItem=Ca,k.DropdownMenuSeparator=Sa,k.DropdownMenuShortcut=Ra,k.DropdownMenuSub=Nd,k.DropdownMenuSubContent=ba,k.DropdownMenuSubTrigger=va,k.DropdownMenuTrigger=Ad,k.Input=rn,k.Popover=jo,k.PopoverAnchor=Ul,k.PopoverContent=Fn,k.PopoverTrigger=Do,k.Skeleton=Od,k.badgeVariants=Xo,k.buttonVariants=qo,k.cn=K,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});